From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Thomas Gleixner <tglx@linutronix.de>,
Joseph Salisbury <joseph.salisbury@canonical.com>
Cc: "Peter Zijlstra (Intel)" <peterz@infradead.org>,
Andi Kleen <andi.kleen@intel.com>,
Andrew Morton <akpm@linux-foundation.org>,
Andy Lutomirski <luto@amacapital.net>,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>,
Denys Vlasenko <dvlasenk@redhat.com>,
"H. Peter Anvin" <hpa@zytor.com>,
Harish Chegondi <harish.chegondi@intel.com>,
Jacob Pan <jacob.jun.pan@linux.intel.com>,
Jiri Olsa <jolsa@redhat.com>, Kan Liang <kan.liang@intel.com>,
Linus Torvalds <torvalds@linux-foundation.org>,
"Luis R. Rodriguez" <mcgrof@suse.com>,
Stephane Eranian <eranian@google.com>,
Toshi Kani <toshi.kani@hp.com>,
Vince Weaver <vincent.weaver@maine.edu>,
LKML <linux-kernel@vger.kernel.org>,
yingying.zhao@intel.com, "Zhang,
Xiong Y" <xiong.y.zhang@intel.com>,
1573231@bugs.launchpad.net, 1397880@bugs.launchpad.net,
Ingo Molnar <mingo@redhat.com>,
x86@kernel.org,
Andy Shevchenko <andriy.shevchenko@linux.intel.com>,
Chen Yucong <slaoub@gmail.com>,
Laura Abbott <labbott@fedoraproject.org>,
David Vrabel <david.vrabel@citrix.com>
Subject: Re: [v4.6-rc1 Regression] x86/topology: Create logical package id
Date: Fri, 6 May 2016 15:13:17 -0400 [thread overview]
Message-ID: <572CECCD.2010205@oracle.com> (raw)
In-Reply-To: <alpine.DEB.2.11.1605062046270.3540@nanos>
On 05/06/2016 02:48 PM, Thomas Gleixner wrote:
> On Fri, 6 May 2016, Joseph Salisbury wrote:
>> A kernel bug report was opened against Ubuntu [0]. After a kernel
>> bisect, it was found that reverting the following commit resolved this bug:
>>
>> commit 1f12e32f4cd5243ae46d8b933181be0d022c6793
>> Author: Thomas Gleixner <tglx@linutronix.de>
>> Date: Mon Feb 22 22:19:15 2016 +0000
>>
>> x86/topology: Create logical package id
>>
>> To build successfully with this commit reverted, I also had to revert
>> commits: e7ee3e8,2d4de83,87f01cc and 33c3cc7.
>>
>> The regression was introduced as of v4.6-rc1.
>>
>> I was hoping to get your feedback, since you are the patch author. Do
>> you think gathering any additional data will help diagnose this issue,
>> or would it be best to submit a revert request?
> Yuck. That dies with a divide error. And that looks like XEN is supplying crap
> data in the CPUID.
Joe, do you have
ed6069b xen/apic: Provide Xen-specific version of cpu_present_to_apicid
APIC op
-boris
>
> Does the patch below cure the issue?
>
> Thanks,
>
> tglx
>
> 8<---------------
>
> --- a/arch/x86/kernel/smpboot.c
> +++ b/arch/x86/kernel/smpboot.c
> @@ -332,6 +332,11 @@ static void __init smp_init_package_map(
> * primary cores.
> */
> ncpus = boot_cpu_data.x86_max_cores;
> + if (!ncpus) {
> + pr_warn("x86_max_cores == zero !?!?");
> + ncpus = 1;
> + }
> +
> __max_logical_packages = DIV_ROUND_UP(total_cpus, ncpus);
>
> /*
next prev parent reply other threads:[~2016-05-06 19:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-06 18:15 [v4.6-rc1 Regression] x86/topology: Create logical package id Joseph Salisbury
2016-05-06 18:48 ` Thomas Gleixner
2016-05-06 19:13 ` Boris Ostrovsky [this message]
2016-05-06 19:38 ` Joseph Salisbury
2016-05-06 20:46 ` Boris Ostrovsky
2016-05-06 20:51 ` Joseph Salisbury
2016-05-06 21:24 ` Boris Ostrovsky
2016-05-06 19:38 ` Joseph Salisbury
2016-05-06 20:50 ` Joseph Salisbury
2016-05-07 5:16 ` Ingo Molnar
2016-05-07 8:12 ` [tip:x86/urgent] x86/topology: Handle CPUID bogosity gracefully tip-bot for Thomas Gleixner
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=572CECCD.2010205@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=1397880@bugs.launchpad.net \
--cc=1573231@bugs.launchpad.net \
--cc=acme@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=andi.kleen@intel.com \
--cc=andriy.shevchenko@linux.intel.com \
--cc=bp@alien8.de \
--cc=brgerst@gmail.com \
--cc=david.vrabel@citrix.com \
--cc=dvlasenk@redhat.com \
--cc=eranian@google.com \
--cc=harish.chegondi@intel.com \
--cc=hpa@zytor.com \
--cc=jacob.jun.pan@linux.intel.com \
--cc=jolsa@redhat.com \
--cc=joseph.salisbury@canonical.com \
--cc=kan.liang@intel.com \
--cc=labbott@fedoraproject.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=mcgrof@suse.com \
--cc=mingo@redhat.com \
--cc=peterz@infradead.org \
--cc=slaoub@gmail.com \
--cc=tglx@linutronix.de \
--cc=torvalds@linux-foundation.org \
--cc=toshi.kani@hp.com \
--cc=vincent.weaver@maine.edu \
--cc=x86@kernel.org \
--cc=xiong.y.zhang@intel.com \
--cc=yingying.zhao@intel.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;
as well as URLs for NNTP newsgroup(s).