From: Mikael Pettersson <mikpe@csd.uu.se>
To: macro@ds2.pg.gda.pl
Cc: linux-kernel@vger.kernel.org, marcelo@conectiva.com.br,
torvalds@transmeta.com
Subject: Re: [PATCH] 2.4.17/2.5.1 apic.c LVTERR fixes
Date: Fri, 4 Jan 2002 16:08:23 +0100 (MET) [thread overview]
Message-ID: <200201041508.QAA12387@harpo.it.uu.se> (raw)
On Fri, 4 Jan 2002 13:12:44 +0100 (MET), Maciej W. Rozycki wrote:
> Still the
>APIC looks insane for me -- it should really signal an error only once an
>interrupt is received, like it does for interrupts from remote sources.
But a remote interrupt source supplies a vector, doesn't it? If we
assume that the local APIC checks the vector on arrival _of_the_vector_,
then it does make some sense that it also flags a null vector written
to one of the LVT entries as an error. The bug really is that it forgets
to take the mask bit into account. However, the behaviour _is_ there and
we have to avoid triggering it.
>> + if (maxlvt > 3) /* Due to Pentium errata 3AP and 11AP. */
>> + apic_write(APIC_ESR, 0);
>
> Use apic_write_around() instead as the 11AP workaround -- it was
>introduced specifically for this purpose. Using anything else doesn't
>guarantee no back-to-back APIC writes due to interrupts (specifically
>writes to the EOI register).
I disagree. The write doesn't occur on P5s, so 11AP doesn't apply.
If I had used an unconditional write_around() instead, then someone
would complain that I'm violating erratum 3AP (even though it doesn't
matter in this case). The test as written unambiguously handles both
3AP and 11AP, and is identical to the "clear ESR" code in
setup_local_APIC() around line 385.
/Mikael
next reply other threads:[~2002-01-04 15:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 15:08 Mikael Pettersson [this message]
2002-01-04 16:32 ` Maciej W. Rozycki
-- strict thread matches above, loose matches on Subject: below --
2002-01-03 20:13 Mikael Pettersson
2002-01-04 12:12 ` Maciej W. Rozycki
2001-12-23 15:14 Mikael Pettersson
2002-01-03 14:57 ` Maciej W. Rozycki
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=200201041508.QAA12387@harpo.it.uu.se \
--to=mikpe@csd.uu.se \
--cc=linux-kernel@vger.kernel.org \
--cc=macro@ds2.pg.gda.pl \
--cc=marcelo@conectiva.com.br \
--cc=torvalds@transmeta.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®