public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: "Latitude with broken BIOS" ?
@ 2003-01-20 14:38 Alessandro Suardi
  0 siblings, 0 replies; 13+ messages in thread
From: Alessandro Suardi @ 2003-01-20 14:38 UTC (permalink / raw)
  To: mikpe; +Cc: linux-kernel

Mikael Pettersson wrote:

> On Mon, 20 Jan 2003 04:31:58 -0800 (GMT-08:00), Alessandro Suardi wrote:
> >  I was hoping to use HT on my new Latitude C640 (P4 @ 1.8Ghz) but at boot
> >  both 2.4.21-pre3 and 2.5.59 (obviously with a SMP kernel) tell me
> >
> > "Dell Latitude with broken BIOS detected. Refusing to enable the local APIC."
> >
> > Is this anything that can be played with ?
>
> First of all, your 1.8GHz mobile P4 doesn't actually have HT.
> The only ones to have it are the new 3.06GHz P4s, and most Xeons.

Ok.

> Secondly, I'm responsible for the message you quoted. Many if not all
> Pentium III-based Dell laptops (including Latitude Cnnn and I8nnn)
> that have local-APIC capable processors fail miserably if the OS
> actually enables it. For instance, pulling or inserting the DC
> power plug would hang the machine. This is a BIOS bug we can't work
> around, except by refusing to enable the local APIC.
>
> Your P4-based Latitude probably has a different BIOS than the buggy
> P3-based ones, and it may work better. Try commenting out the
> local_apic_kills_bios entry for "Dell Latitude" at around line 692
> in arch/i386/kernel/dmi_scan.c and rebuild the kernel. If it

(ahem) I had tried that in 2.5.58 already ;)

However I rebuilt 2.5.59 with that change, and I'm not going further:

 No local APIC present or hardware disabled

I have both CONFIG_X86_IO_APIC and CONFIG_X86_LOCAL_APIC=y.

(while I'm using my old PIII/750 the PIV is still okay for testing ;)


Ciao,

--alessandro

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: "Latitude with broken BIOS" ?
@ 2003-05-23  8:55 Brouard Nicolas
  2003-05-23  9:02 ` mikpe
  2003-05-23 17:41 ` Mark Watts
  0 siblings, 2 replies; 13+ messages in thread
From: Brouard Nicolas @ 2003-05-23  8:55 UTC (permalink / raw)
  To: mikpe; +Cc: linux-kernel

I am not well aware of what APIC is but I was running Mandrake 8.2 on my Linux 
partition of a Dell Pentium III latitude 550 MHz and I don't remember such a 
dmesg message. But when I upgraded to Mandrake 9.1 here it is. The problem I 
have is that I can't have any suspend mode any more neither battery 
indicators and /etc/rc.d/init.d/apm start claims that apm is no more in the 
kernel. Is it linked to that APIC problem and this BIOS problem, why did it 
work earlier? Do you think that if I found a new bios from Dell it will help?

Any information will be greatly appreciated (I am sorry no to be able to 
change my laptop so frequently...)

-- 
Nicolas Brouard


^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: "Latitude with broken BIOS" ?
@ 2003-01-20 15:23 Alessandro Suardi
  0 siblings, 0 replies; 13+ messages in thread
From: Alessandro Suardi @ 2003-01-20 15:23 UTC (permalink / raw)
  To: mikpe; +Cc: linux-kernel

Mikael Pettersson wrote:

> Alessandro Suardi wrote:
>
> > > Your P4-based Latitude probably has a different BIOS than the buggy
> > > P3-based ones, and it may work better. Try commenting out the
> > > local_apic_kills_bios entry for "Dell Latitude" at around line 692
> > > in arch/i386/kernel/dmi_scan.c and rebuild the kernel. If it
> > 
> > (ahem) I had tried that in 2.5.58 already ;)
> > 
> > However I rebuilt 2.5.59 with that change, and I'm not going further:
> > 
> >  No local APIC present or hardware disabled
>
> Ah, your P4 needs another patch. Edit arch/i386/kernel/apic.c, function
> detect_init_APIC(), at line 631, and remove the "&& cpu_has_apic" after
> the "boot_cpu_data.x86 == 15" test. (Or check if your BIOS can be set up
> to boot with the local APIC enabled.)
>
> /Mikael

The BIOS doesn't seem to have any such option... and the code change
 does exactly what you imagined - pull the power cord, instant hang.

It seems even BIOS A05 of the C640 is legitimately blacklisted :(


Thanks, ciao,

--alessandro

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: "Latitude with broken BIOS" ?
@ 2003-01-20 15:02 Mikael Pettersson
  0 siblings, 0 replies; 13+ messages in thread
From: Mikael Pettersson @ 2003-01-20 15:02 UTC (permalink / raw)
  To: ALESSANDRO.SUARDI; +Cc: linux-kernel

Alessandro Suardi wrote:
> > Your P4-based Latitude probably has a different BIOS than the buggy
> > P3-based ones, and it may work better. Try commenting out the
> > local_apic_kills_bios entry for "Dell Latitude" at around line 692
> > in arch/i386/kernel/dmi_scan.c and rebuild the kernel. If it
> 
> (ahem) I had tried that in 2.5.58 already ;)
> 
> However I rebuilt 2.5.59 with that change, and I'm not going further:
> 
>  No local APIC present or hardware disabled

Ah, your P4 needs another patch. Edit arch/i386/kernel/apic.c, function
detect_init_APIC(), at line 631, and remove the "&& cpu_has_apic" after
the "boot_cpu_data.x86 == 15" test. (Or check if your BIOS can be set up
to boot with the local APIC enabled.)

/Mikael

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: "Latitude with broken BIOS" ?
@ 2003-01-20 14:13 Mikael Pettersson
  0 siblings, 0 replies; 13+ messages in thread
From: Mikael Pettersson @ 2003-01-20 14:13 UTC (permalink / raw)
  To: ALESSANDRO.SUARDI, linux-kernel

On Mon, 20 Jan 2003 04:31:58 -0800 (GMT-08:00), Alessandro Suardi wrote:
>  I was hoping to use HT on my new Latitude C640 (P4 @ 1.8Ghz) but at boot
>  both 2.4.21-pre3 and 2.5.59 (obviously with a SMP kernel) tell me
>
> "Dell Latitude with broken BIOS detected. Refusing to enable the local APIC."
>
> Is this anything that can be played with ?

First of all, your 1.8GHz mobile P4 doesn't actually have HT.
The only ones to have it are the new 3.06GHz P4s, and most Xeons.

Secondly, I'm responsible for the message you quoted. Many if not all
Pentium III-based Dell laptops (including Latitude Cnnn and I8nnn)
that have local-APIC capable processors fail miserably if the OS
actually enables it. For instance, pulling or inserting the DC
power plug would hang the machine. This is a BIOS bug we can't work
around, except by refusing to enable the local APIC.

Your P4-based Latitude probably has a different BIOS than the buggy
P3-based ones, and it may work better. Try commenting out the
local_apic_kills_bios entry for "Dell Latitude" at around line 692
in arch/i386/kernel/dmi_scan.c and rebuild the kernel. If it
boots ok and enables the local APIC, try various things that
should trigger BIOS (actually SMM) events:
- pull and insert the DC power plug
- enter and exit the BIOS setup screens
- run a big heavy compile job for half an hour or so

Let us know if it survives all this, or if it hangs or crashes.

/Mikael

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: "Latitude with broken BIOS" ?
@ 2003-01-20 13:49 Alessandro Suardi
  0 siblings, 0 replies; 13+ messages in thread
From: Alessandro Suardi @ 2003-01-20 13:49 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel

> On Mon, Jan 20, 2003 at 05:28:49AM -0800, Alessandro Suardi wrote:
>
>  > >  >  "Dell Latitude with broken BIOS detected. Refusing to enable the local APIC."
>  > >
>  > > Lots of Dell laptops (like other vendors) crash instantly when trying to
>  > > enable the APIC.
>  >
>  > Well my Dells power off on rebooting from 2.5... bug 119 or 134 in
>  >  http://bugme.osdl.org, no need to resort to messing with the APIC ;(
>
> That one IMO looks like an ACPI problem (Note ACPI != APIC)

More like PM in general, happens with my older Latitude with APM as well
 (I was making a point of ease of crashing, not confusing APIC and ACPI ;)

--alessandro

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Re: "Latitude with broken BIOS" ?
@ 2003-01-20 13:28 Alessandro Suardi
  2003-01-20 13:41 ` Dave Jones
  0 siblings, 1 reply; 13+ messages in thread
From: Alessandro Suardi @ 2003-01-20 13:28 UTC (permalink / raw)
  To: davej; +Cc: linux-kernel

Dave Jones wrote:

> On Mon, Jan 20, 2003 at 04:31:58AM -0800, Alessandro Suardi wrote:
>  >   I was hoping to use HT on my new Latitude C640 (P4 @ 1.8Ghz) but at boot
>  >   both 2.4.21-pre3 and 2.5.59 (obviously with a SMP kernel) tell me
>
> I'd be surprised^Wamazed if your laptop has HT. AFAIK, no-one is
> shipping such a system yet. Just because the CPU flags say 'ht' does
> not mean it has >1 CPU thread per CPU package.

I'd imagined this - but digging on the Intel website I couldn't find anything
 that told me "the mobile P4 can't do HT, period". As a matter of fact not
 even win2k (I'm dualbooting waiting to install Debian and RHAS...) sees
 the system as a 2-CPU.

>  >  "Dell Latitude with broken BIOS detected. Refusing to enable the local APIC."
>
> Lots of Dell laptops (like other vendors) crash instantly when trying to
> enable the APIC.

Well my Dells power off on rebooting from 2.5... bug 119 or 134 in
 http://bugme.osdl.org, no need to resort to messing with the APIC ;(

>  >  Is this anything that can be played with ?
>
> Nope.

Oh, okay. Giving up on this one...

Thanks for the quick reply ! Ciao,

--alessandro

^ permalink raw reply	[flat|nested] 13+ messages in thread
* "Latitude with broken BIOS" ?
@ 2003-01-20 12:31 Alessandro Suardi
  2003-01-20 13:19 ` Dave Jones
  0 siblings, 1 reply; 13+ messages in thread
From: Alessandro Suardi @ 2003-01-20 12:31 UTC (permalink / raw)
  To: linux-kernel

Hi,

  I was hoping to use HT on my new Latitude C640 (P4 @ 1.8Ghz) but at boot
  both 2.4.21-pre3 and 2.5.59 (obviously with a SMP kernel) tell me

 "Dell Latitude with broken BIOS detected. Refusing to enable the local APIC."

 Is this anything that can be played with ? I google'd a bit but was unable to
  turn up anything interesting. I flashed BIOS A05 (which is the latest on Dell
  support sites), but I still get the above kernel message.


Thanks in advance for any insight,

--alessandro

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2003-05-23 20:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-20 14:38 "Latitude with broken BIOS" ? Alessandro Suardi
  -- strict thread matches above, loose matches on Subject: below --
2003-05-23  8:55 Brouard Nicolas
2003-05-23  9:02 ` mikpe
2003-05-23 21:04   ` Brouard Nicolas
2003-05-23 17:41 ` Mark Watts
2003-01-20 15:23 Alessandro Suardi
2003-01-20 15:02 Mikael Pettersson
2003-01-20 14:13 Mikael Pettersson
2003-01-20 13:49 Alessandro Suardi
2003-01-20 13:28 Alessandro Suardi
2003-01-20 13:41 ` Dave Jones
2003-01-20 12:31 Alessandro Suardi
2003-01-20 13:19 ` Dave Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox