Linux EDAC development
 help / color / mirror / Atom feed
From: John Clemens <john@deater.net>
To: "Rafał Miłecki" <zajec5@gmail.com>,
	"Borislav Petkov" <bp@alien8.de>,
	"Ghannam, Yazen" <Yazen.Ghannam@amd.com>
Cc: "Tony Luck" <tony.luck@intel.com>,
	"linux-edac@vger.kernel.org" <linux-edac@vger.kernel.org>,
	"Aravind Gopalakrishnan" <aravindksg.lkml@gmail.com>,
	"Thomas Gleixner" <tglx@linutronix.de>,
	"Ingo Molnar" <mingo@redhat.com>,
	"H . Peter Anvin" <hpa@zytor.com>,
	"x86@kernel.org" <x86@kernel.org>,
	"Rafał Miłecki" <rafal@milecki.pl>
Subject: x86/MCE/AMD: Fix the thresholding machinery initialization order
Date: Tue, 27 Nov 2018 22:06:55 -0500	[thread overview]
Message-ID: <3bf1f6fc-b093-77bc-c8bb-c376e2d554c7@deater.net> (raw)

On 11/27/18 3:38 PM, Rafał Miłecki wrote:
> On 27.11.2018 20:25, Borislav Petkov wrote:
>> Currently, the code sets up the thresholding interrupt vector and only
>> then goes about initializing the thresholding banks. Which is wrong,
>> because an early thresholding interrupt would cause a NULL pointer
>> dereference when accessing those banks and prevent the machine from
>> booting.
>>
>> Therefore, set the thresholding interrupt vector only *after* having
>> initialized the banks successfully.
>>
>> Fixes: 18807ddb7f88 ("x86/mce/AMD: Reset Threshold Limit after logging 
>> error")
>> Reported-by: Rafał Miłecki <rafal@milecki.pl>
>> Reported-by: John Clemens <clemej@gmail.com>
>> Signed-off-by: Borislav Petkov <bp@suse.de>
>> Cc: Aravind Gopalakrishnan <aravindksg.lkml@gmail.com>
>> Cc: linux-edac@vger.kernel.org
>> Cc: stable@vger.kernel.org
>> Cc: Tony Luck <tony.luck@intel.com>
>> Cc: x86@kernel.org
>> Cc: Yazen Ghannam <Yazen.Ghannam@amd.com>
>> Link: https://lkml.kernel.org/r/20181127101700.2964-1-zajec5@gmail.com
>> Link: https://bugzilla.kernel.org/show_bug.cgi?id=201291
> 
> Tested on top of 4.14.83 and 4.20-rc4. It fixed both kernels for me!
> 
> Tested-by: Rafał Miłecki <rafal@milecki.pl>

Not that anyone needs further verification at this point, but tested 
working on top of 4.19.5, on the HP EliteBook 745 G5, BIOS Q81 v01.03.01 
(same as bugzilla report).

Tested-by: John Clemens <john@deater.net>

> John: thanks a lot for bisecting this issue down and finding a
> workaround (mce=off). It allowed me to boot recent Linux & debug it
> further.

Thank you for taking it the rest of the way, life got in the way after 
the bisect.  I'm glad you were able to pick it up.

> Borislav: thank you for looking at my patch and coming with a nicer fix
> SO quickly!

My thanks as well, to all.

john.c

             reply	other threads:[~2018-11-28  3:06 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-28  3:06 John Clemens [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-11-28  9:09 x86/MCE/AMD: Fix the thresholding machinery initialization order Borislav Petkov
2018-11-27 20:38 Rafał Miłecki
2018-11-27 19:25 Borislav Petkov

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=3bf1f6fc-b093-77bc-c8bb-c376e2d554c7@deater.net \
    --to=john@deater.net \
    --cc=Yazen.Ghannam@amd.com \
    --cc=aravindksg.lkml@gmail.com \
    --cc=bp@alien8.de \
    --cc=hpa@zytor.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=rafal@milecki.pl \
    --cc=tglx@linutronix.de \
    --cc=tony.luck@intel.com \
    --cc=x86@kernel.org \
    --cc=zajec5@gmail.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