Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-20 Thread H. Peter Anvin
On 12/20/2012 08:46 AM, Yinghai Lu wrote: > On Thu, Dec 20, 2012 at 2:38 AM, Zhang, Lin-Bao (Linux Kernel R) > wrote: >> I think current core argument is our BIOS did following judgement , >> but Linux kernel did not(Linux seems just judge BSP supports x2apic mode or >> not by CPUID method) > >

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-20 Thread Yinghai Lu
On Thu, Dec 20, 2012 at 2:38 AM, Zhang, Lin-Bao (Linux Kernel R) wrote: > I think current core argument is our BIOS did following judgement , > but Linux kernel did not(Linux seems just judge BSP supports x2apic mode or > not by CPUID method) kernel checks that, if the BSP in x2apic mode,

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-20 Thread Zhang, Lin-Bao (Linux Kernel R)
Hi Yinghai, Maybe two days ago, mis-understand the usage of MSR. Today, I carefully researched Intel? 64 Architecture x2APIC Specification which is open for all people. I think current core argument is our BIOS did following judgement , but Linux kernel did not(Linux seems just judge

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-20 Thread Zhang, Lin-Bao (Linux Kernel RD)
Hi Yinghai, Maybe two days ago, mis-understand the usage of MSR. Today, I carefully researched Intel? 64 Architecture x2APIC Specification which is open for all people. I think current core argument is our BIOS did following judgement , but Linux kernel did not(Linux seems just judge

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-20 Thread Yinghai Lu
On Thu, Dec 20, 2012 at 2:38 AM, Zhang, Lin-Bao (Linux Kernel RD) linbao.zh...@hp.com wrote: I think current core argument is our BIOS did following judgement , but Linux kernel did not(Linux seems just judge BSP supports x2apic mode or not by CPUID method) kernel checks that, if the BSP in

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-20 Thread H. Peter Anvin
On 12/20/2012 08:46 AM, Yinghai Lu wrote: On Thu, Dec 20, 2012 at 2:38 AM, Zhang, Lin-Bao (Linux Kernel RD) linbao.zh...@hp.com wrote: I think current core argument is our BIOS did following judgement , but Linux kernel did not(Linux seems just judge BSP supports x2apic mode or not by CPUID

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread H. Peter Anvin
On 12/18/2012 09:49 AM, Yinghai Lu wrote: > > So you need to make cpuid show does not support x2apic --- check with > intel they have way to do that. > No, but there is a flag in ACPI that "this BIOS is broken with x2APIC". Setting that flag as opposed to fixing the bugs, though is very much

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread Yinghai Lu
On Wed, Dec 19, 2012 at 2:36 AM, Zhang, Lin-Bao (Linux Kernel R) wrote: > Hi Yinghai , > > Actually ,my question like this: > OS can really enable x2apic correctly without BIOS' help in this case : > BIOS has claimed definitely it doesn't enable x2apic ,but OS feel it can > enable x2apic(based

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread Yinghai Lu
On Wed, Dec 19, 2012 at 2:13 AM, Zhang, Lin-Bao (Linux Kernel R) wrote: >> > b) If BIOS feel the system doesn't meet x2apic conditions , it will not set >> x2apic enablement bit in MSR ,and pass control to OS with xapic mode. >> >> kernel will check if cpuid support x2apic, if it supports x2apic,

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread Zhang, Lin-Bao (Linux Kernel R)
Hi Yinghai , Actually ,my question like this: OS can really enable x2apic correctly without BIOS' help in this case : BIOS has claimed definitely it doesn't enable x2apic ,but OS feel it can enable x2apic(based on BSP supports x2apic) ). If Linux don't need BIOS' help , how did linux

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-19 Thread Zhang, Lin-Bao (Linux Kernel R)
Hi Yinghai , Thanks very much for your reply. I also checked some other previous emails about x2apic patches. > From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of > Yinghai Lu I just worry about this case, > > b) If BIOS feel the system doesn't meet x2apic

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-19 Thread Zhang, Lin-Bao (Linux Kernel RD)
Hi Yinghai , Thanks very much for your reply. I also checked some other previous emails about x2apic patches. From: yhlu.ker...@gmail.com [mailto:yhlu.ker...@gmail.com] On Behalf Of Yinghai Lu I just worry about this case, b) If BIOS feel the system doesn't meet x2apic conditions

RE: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-19 Thread Zhang, Lin-Bao (Linux Kernel RD)
Hi Yinghai , Actually ,my question like this: OS can really enable x2apic correctly without BIOS' help in this case : BIOS has claimed definitely it doesn't enable x2apic ,but OS feel it can enable x2apic(based on BSP supports x2apic) ). If Linux don't need BIOS' help , how did linux

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-19 Thread Yinghai Lu
On Wed, Dec 19, 2012 at 2:13 AM, Zhang, Lin-Bao (Linux Kernel RD) linbao.zh...@hp.com wrote: b) If BIOS feel the system doesn't meet x2apic conditions , it will not set x2apic enablement bit in MSR ,and pass control to OS with xapic mode. kernel will check if cpuid support x2apic, if it

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-19 Thread Yinghai Lu
On Wed, Dec 19, 2012 at 2:36 AM, Zhang, Lin-Bao (Linux Kernel RD) linbao.zh...@hp.com wrote: Hi Yinghai , Actually ,my question like this: OS can really enable x2apic correctly without BIOS' help in this case : BIOS has claimed definitely it doesn't enable x2apic ,but OS feel it can enable

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-19 Thread H. Peter Anvin
On 12/18/2012 09:49 AM, Yinghai Lu wrote: So you need to make cpuid show does not support x2apic --- check with intel they have way to do that. No, but there is a flag in ACPI that this BIOS is broken with x2APIC. Setting that flag as opposed to fixing the bugs, though is very much not

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR->x2apic enablement bit ?

2012-12-18 Thread Yinghai Lu
On Tue, Dec 18, 2012 at 1:50 AM, Zhang, Lin-Bao (Linux Kernel R) wrote: > Hi Suresh and other guys , > > In 3.4.4/3.6.6 ,I found a x2apic issue . if I am wrong , sorry first > , and welcome your correction . thanks for your forwarding other maintainers. > I am testing a server , its BIOS

Re: Why Linux kernel forced to enter X2APIC mode( just because of booting cpu has supported x2apic) without depending on BIOS' setting in MSR-x2apic enablement bit ?

2012-12-18 Thread Yinghai Lu
On Tue, Dec 18, 2012 at 1:50 AM, Zhang, Lin-Bao (Linux Kernel RD) linbao.zh...@hp.com wrote: Hi Suresh and other guys , In 3.4.4/3.6.6 ,I found a x2apic issue . if I am wrong , sorry first , and welcome your correction . thanks for your forwarding other maintainers. I am testing a