mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Laura Abbott <labbott@redhat.com>
Cc: Jiang Liu <jiang.liu@linux.intel.com>,
	Joerg Roedel <joro@8bytes.org>, Tony Luck <tony.luck@intel.com>,
	Borislav Petkov <bp@alien8.de>,
	javiermon@gmail.com, x86@kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Boot crash with 659006b x86/x2apic: Split enable and setup function
Date: Mon, 17 Aug 2015 19:04:07 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.11.1508171902431.3873@nanos> (raw)
In-Reply-To: <55C75CDD.5080109@redhat.com>

On Sun, 9 Aug 2015, Laura Abbott wrote:
> (missed the LKML cc apologies for the noise)
> 
> On 08/09/2015 06:51 AM, Laura Abbott wrote:
> > Hi,
> > 
> > We received a report[1] of an early boot crash. The reporter had difficulty
> > getting a full
> > kernel log to view and only had a screenshot which showed a crash in
> > native_apic_mem_read
> > (full screenshot available at the bugzilla along with dmesg from working
> > kernel)
> > 
> >   Bisection identified the following commit:
> > 
> > commit 659006bf3ae37a08706907ce1a36ddf57c9131d2
> > Author: Thomas Gleixner <tglx@linutronix.de>
> > Date:   Thu Jan 15 21:22:26 2015 +0000
> > 
> >      x86/x2apic: Split enable and setup function
> > 
> >      enable_x2apic() is a convoluted unreadable mess because it is used for
> >      both enablement in early boot and for setup in cpu_init().
> > 
> >      Split the code into x2apic_enable() for enablement and x2apic_setup()
> >      for setup of (secondary cpus). Make use of the new state tracking to
> >      simplify the logic.
> > 
> >      Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> >      Cc: Jiang Liu <jiang.liu@linux.intel.com>
> >      Cc: Joerg Roedel <joro@8bytes.org>
> >      Cc: Tony Luck <tony.luck@intel.com>
> >      Cc: Borislav Petkov <bp@alien8.de>
> >      Link: http://lkml.kernel.org/r/20150115211703.129287153@linutronix.de
> >      Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
> > 
> > The report indicates that if local x2apic is disabled in the BIOS the kernel
> > boots.
> > 
> > Any ideas?

Does the patch below fix the issue?

Thanks,

	tglx

-------------------->
diff --git a/arch/x86/kernel/apic/apic.c b/arch/x86/kernel/apic/apic.c
index dcb52850a28f..339cf4fc4ca9 100644
--- a/arch/x86/kernel/apic/apic.c
+++ b/arch/x86/kernel/apic/apic.c
@@ -1424,7 +1424,7 @@ static inline void __x2apic_disable(void)
 {
 	u64 msr;
 
-	if (cpu_has_apic)
+	if (!cpu_has_apic)
 		return;
 
 	rdmsrl(MSR_IA32_APICBASE, msr);

      reply	other threads:[~2015-08-17 17:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <55C75AEB.4070703@redhat.com>
2015-08-09 13:59 ` Laura Abbott
2015-08-17 17:04   ` Thomas Gleixner [this message]

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=alpine.DEB.2.11.1508171902431.3873@nanos \
    --to=tglx@linutronix.de \
    --cc=bp@alien8.de \
    --cc=javiermon@gmail.com \
    --cc=jiang.liu@linux.intel.com \
    --cc=joro@8bytes.org \
    --cc=labbott@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tony.luck@intel.com \
    --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

all inboxes | Powered by JetHome®