From: Dave Jones <davej@redhat.com>
To: Tigran Aivazian <tigran@veritas.com>
Cc: Simon Trimmer <simon@urbanmyth.org>,
kim.jensen2@hp.com, linux-kernel@vger.kernel.org
Subject: Re: microcode_ctl question (fwd)
Date: Thu, 6 May 2004 14:16:19 +0100 [thread overview]
Message-ID: <20040506131619.GB27851@redhat.com> (raw)
In-Reply-To: <Pine.LNX.4.44.0405061307310.3358-100000@einstein.homenet>
On Thu, May 06, 2004 at 01:23:42PM +0100, Tigran Aivazian wrote:
Hi Tigran,
> Btw, I have just noticed what may be a bug wrt not being aware of kernel
> preemption, i.e. we cache the CPU id in a local variable and later use it,
> but then there seems to be no protection against kernel preemption (i.e.
> we hold no spinlocks, only a semaphore) at that point, so the original CPU
> id may not be quite the same as the CPU id for which the data was
> collected. I should fix this if it is a problem. The question to
> linux-kernel guys is to confirm that this is indeed a bug, i.e. to clarify
> under which condition the kernel preemption can and cannot occur.
>
> In particular can such preemption occur while executing a function called
> via IPI mechanism?
I fixed up microcode.c to use on_each_cpu() last year sometime, which
I thought should fix things up wrt preemption. Can you point to the
bits you think are still problematic ?
Dave
next prev parent reply other threads:[~2004-05-06 13:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.53.0405052017190.31452@calcium.webfusion.co.uk>
2004-05-06 12:23 ` Tigran Aivazian
2004-05-06 13:16 ` Dave Jones [this message]
2004-05-06 13:25 ` Tigran Aivazian
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040506131619.GB27851@redhat.com \
--to=davej@redhat.com \
--cc=kim.jensen2@hp.com \
--cc=linux-kernel@vger.kernel.org \
--cc=simon@urbanmyth.org \
--cc=tigran@veritas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®