Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2013-03-10 Thread H. Peter Anvin
On 03/10/2013 07:13 PM, HATAYAMA Daisuke wrote: > > It seems to me that at least there needs to be the following design > policy for multiple CPUs on the 2nd kenrel: > > - There's no firmware, kernel components and modules that depend on > BSP flag being kept set on the original BSP flag and ne

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2013-03-10 Thread HATAYAMA Daisuke
From: HATAYAMA Daisuke Subject: Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP Date: Mon, 11 Mar 2013 10:07:21 +0900 > From: "Eric W. Biederman" > Subject: Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP > Date: Thu, 25 Oct 2012 21:13:25 -0700 >

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2013-03-10 Thread HATAYAMA Daisuke
From: "Eric W. Biederman" Subject: Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP Date: Thu, 25 Oct 2012 21:13:25 -0700 > HATAYAMA Daisuke writes: > >> From: "H. Peter Anvin" >> Subject: Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-25 Thread Eric W. Biederman
HATAYAMA Daisuke writes: > From: "H. Peter Anvin" > Subject: Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP > Date: Mon, 22 Oct 2012 17:35:47 -0700 > >> On 10/22/2012 02:29 PM, Eric W. Biederman wrote: >>>> >>>> As I s

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-25 Thread HATAYAMA Daisuke
From: "H. Peter Anvin" Subject: Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP Date: Mon, 22 Oct 2012 17:35:47 -0700 > On 10/22/2012 02:29 PM, Eric W. Biederman wrote: >>> >>> As I said, I thought Fenghua tried that but it didn't work, >>

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 02:29 PM, Eric W. Biederman wrote: As I said, I thought Fenghua tried that but it didn't work, experimentally. Fair enough. You described the problem with clearing bit 8 in a weird way. If the best we can muster are fuzzy memories it may be worth revisiting. Perhaps it works on

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 10/22/2012 01:43 PM, Eric W. Biederman wrote: >> >> The reason the BIOSen go wonky is the INIT cause the cpu to go to the >> reset vector at 4G-16 bytes. So it is very much expected that the >> BIOSen start acting like you just came out of reset. >> >> If you can

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:43 PM, Eric W. Biederman wrote: > > The reason the BIOSen go wonky is the INIT cause the cpu to go to the > reset vector at 4G-16 bytes. So it is very much expected that the > BIOSen start acting like you just came out of reset. > > If you can clear bit 8 of IA32_APIC_BASE_MSR a

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 10/22/2012 01:31 PM, Eric W. Biederman wrote: >>> >>> IIRC Fenghua experimented with that and it didn't work. Not all BIOSes >>> use that bit to determine BSP-ness. >> >> What does a BIOS have to do with anything? >> >> The practical issue here is does an INIT IPI

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:33 PM, H. Peter Anvin wrote: > On 10/22/2012 01:31 PM, Eric W. Biederman wrote: >>> >>> IIRC Fenghua experimented with that and it didn't work. Not all BIOSes >>> use that bit to determine BSP-ness. >> >> What does a BIOS have to do with anything? >> >> The practical issue here is

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:31 PM, Eric W. Biederman wrote: >> >> IIRC Fenghua experimented with that and it didn't work. Not all BIOSes >> use that bit to determine BSP-ness. > > What does a BIOS have to do with anything? > > The practical issue here is does an INIT IPI cause the cpu to go into > startup-

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
"H. Peter Anvin" writes: > On 10/22/2012 01:04 PM, Eric W. Biederman wrote: >> HATAYAMA Daisuke writes: >> >>> We disable BSP if boot cpu is AP. >>> >>> INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for >>> BSP since it causes BSP jump to BIOS init code; typical visible >>>

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread H. Peter Anvin
On 10/22/2012 01:04 PM, Eric W. Biederman wrote: > HATAYAMA Daisuke writes: > >> We disable BSP if boot cpu is AP. >> >> INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for >> BSP since it causes BSP jump to BIOS init code; typical visible >> behaviour is hang or immediate rese

Re: [PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-22 Thread Eric W. Biederman
HATAYAMA Daisuke writes: > We disable BSP if boot cpu is AP. > > INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for > BSP since it causes BSP jump to BIOS init code; typical visible > behaviour is hang or immediate reset, depending on the BIOS init code. > > INIT can be used t

[PATCH v1 2/2] x86, apic: Disable BSP if boot cpu is AP

2012-10-15 Thread HATAYAMA Daisuke
We disable BSP if boot cpu is AP. INIT-INIT-SIPI sequence, a protocal to initiate AP, cannot be used for BSP since it causes BSP jump to BIOS init code; typical visible behaviour is hang or immediate reset, depending on the BIOS init code. INIT can be used to reset AP in a fatal system error stat