From: Ingo Molnar <mingo@elte.hu>
To: Borislav Petkov <petkovbb@googlemail.com>,
Andi Kleen <andi@firstfloor.org>,
x86@kernel.org, linux-kernel@vger.kernel.org,
Borislav Petkov <borislav.petkov@amd.com>,
torvalds@osdl.org
Subject: Re: x86: mce: Please revert 22223c9b417be5fd0ab2cf9ad17eb7bd1e19f7b9
Date: Thu, 1 Oct 2009 01:09:47 +0200 [thread overview]
Message-ID: <20090930230947.GA9346@elte.hu> (raw)
In-Reply-To: <20090930223956.GE17712@liondog.tnic>
* Borislav Petkov <petkovbb@googlemail.com> wrote:
> On Wed, Sep 30, 2009 at 11:48:59PM +0200, Ingo Molnar wrote:
> > I.e. something like the patch below. Completely untested.
>
> [..]
>
> > Note, while looking at the interaction of decode_mce() with the other
> > MCE code i also noticed a few other things and made the following
> > cleanups/fixes:
> >
> > - Fixed the mce_decode() weak alias - a weak alias is really not good
> > here, it should be a proper callback. A weak alias will be overriden
> > if a piece of code is built into the kernel - not good, obviously.
>
> The original idea was for the edac_mce_amd.o module to override the
> weak symbol but the problem with that is that when CONFIG_CPU_SUP_AMD
> is set, MCE decoding is built in by default thus overriding the weak
> symbol even on non-AMD systems running distro kernels with multiple
> x86 CPU types support. Your patch solves that.
>
> However, currently we can't get rid of the decoding code when booted
> on non-AMD boxes - it amounts to ~ 15K of object code on non-debug
> builds. Is it worth the trouble to add it to initmem on such boxes and
> remove it during boot?
it's ~5K here. Btw., how would that work? Initmem cannot generally be
discarded optionally like that.
But even if it's 15K, as long as it's in well-concentrated code staying
out of the hotpath (which it is here) is not nearly as much of a problem
as forms of bloat affecting the hotpath. We do have other forms of CPU
support code too which could remove an equal amount of code.
Generally, if your hardware is so constrained that it cannot keep
general x86 compatibility code around, you will build a specific bzImage
tailored specifically to that hardware environment. Such a box can
twiddle the existing config options just fine to include (or exclude)
this code.
> > - The patch initializes the callback on AMD family 10h and 11h - a
> > quick glance suggests that decoding of earlier models isnt supported?
>
> Actually, the K8 error types and messages should be decoded just fine
> too. I'll doublecheck and adjust the family check accordingly.
Ok.
Thanks,
Ingo
next prev parent reply other threads:[~2009-09-30 23:10 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-30 14:09 x86: mce: Please revert 22223c9b417be5fd0ab2cf9ad17eb7bd1e19f7b9 Andi Kleen
2009-09-30 19:40 ` Borislav Petkov
2009-09-30 20:46 ` Ingo Molnar
2009-09-30 21:48 ` Ingo Molnar
2009-09-30 22:39 ` Borislav Petkov
2009-09-30 23:09 ` Ingo Molnar [this message]
2009-10-01 14:14 ` Borislav Petkov
2009-10-01 14:34 ` Linus Torvalds
2009-10-01 14:46 ` Borislav Petkov
2009-10-01 15:00 ` Ingo Molnar
2009-10-01 15:21 ` Borislav Petkov
2009-10-01 15:32 ` Ingo Molnar
2009-10-02 13:21 ` Borislav Petkov
2009-10-02 13:22 ` [PATCH 1/3] x86, mce, edac: Fix MCE decoding callback logic Borislav Petkov
2009-10-02 13:23 ` [PATCH 2/3] initcalls: add early_initcall for modules Borislav Petkov
2009-10-02 14:01 ` [tip:x86/urgent] initcalls: Add early_initcall() " tip-bot for Borislav Petkov
2009-10-02 13:26 ` x86: mce: Please revert 22223c9b417be5fd0ab2cf9ad17eb7bd1e19f7b9 Ingo Molnar
2009-10-02 13:31 ` [PATCH 3/3] EDAC: carve out AMD MCE decoding logic Borislav Petkov
2009-10-02 13:39 ` Ingo Molnar
2009-10-02 18:26 ` Borislav Petkov
2009-10-02 18:47 ` Ingo Molnar
2009-10-03 6:57 ` Borislav Petkov
2009-10-03 7:18 ` Ingo Molnar
2009-10-05 15:15 ` Borislav Petkov
2009-10-16 12:55 ` [tip:perf/mce] mce, edac: Use an atomic notifier for MCEs decoding tip-bot for Borislav Petkov
2009-10-02 14:01 ` [tip:x86/urgent] x86: EDAC: carve out AMD MCE decoding logic tip-bot for Borislav Petkov
2009-10-01 14:55 ` x86: mce: Please revert 22223c9b417be5fd0ab2cf9ad17eb7bd1e19f7b9 Ingo Molnar
2009-10-01 15:26 ` Andi Kleen
2009-10-02 14:01 ` [tip:x86/urgent] x86: EDAC: MCE: Fix MCE decoding callback logic tip-bot for Ingo Molnar
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=20090930230947.GA9346@elte.hu \
--to=mingo@elte.hu \
--cc=andi@firstfloor.org \
--cc=borislav.petkov@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=petkovbb@googlemail.com \
--cc=torvalds@osdl.org \
--cc=x86@kernel.org \
/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