Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[HOWTO] Enable local APIC on DELL INSPIRON/LATITUDE
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
ercxy
n00b
n00b


Joined: 26 Apr 2004
Posts: 55
Location: MA

PostPosted: Sat Aug 28, 2004 1:27 am    Post subject: Reply with quote

Well there is new bios (A13) for lattitude D600, i am sure there is similar bios for inspirons too. .. I don't know if this new bios overcome the Apic problem but after updating my system, boot posting is much more faster.
Back to top
View user's profile Send private message
kwenspc
Advocate
Advocate


Joined: 21 Sep 2003
Posts: 4954

PostPosted: Sun Sep 19, 2004 4:12 pm    Post subject: Reply with quote

local APIC works on Inspiron 5100
-> BIOS A31
-> gentoo-dev-sources-2.6.8-r3
-> dmi_scan.c and apic.c are customized

nevertheless, IO-APIC must be disabled.
Back to top
View user's profile Send private message
thj
n00b
n00b


Joined: 16 Jan 2004
Posts: 70
Location: Denmark

PostPosted: Fri Oct 22, 2004 6:41 pm    Post subject: Reply with quote

Hrm, I think theres some problem with Dell i8500 + APIC on the 2.6.9-gentoo-r1 kernel.
When I do:
Code:
# dmesg | grep Dell

It returns:

"i8k: unable to get SMM Dell signature

And yes, the Local APIC is enablet in the kernel.

I read on some page, that I should add apic=debug to my kernel parameter in grub.conf because thats required for kernel 2.6.9 (something about it's disabled by BIOS i think).

So, I did that, and heres the output of dmesg:
Code:
# dmesg | grep APIC

It returns:

No local APIC present or hardware disabled
mapped APIC to ffffd000 (01649000)
Local APIC not tetected. Using dummy APIC emulation.


So, it dosen't work. :)

I think that you should know that I can't do step 4, because theres nothing that says "Dell Inspiron" in dmi_scan.c - so maybe it's therefore it dosen't work, but I don't know. Actually dmi_scan.c only contains "DELL GX240" concerning Dell stuff.

I hope you can help me out here, because I get alot of IRQ errors, so I hope that APIC will help on that
_________________
/ Tommy Holm Jacobsen
holmjacobsen.com
Back to top
View user's profile Send private message
thj
n00b
n00b


Joined: 16 Jan 2004
Posts: 70
Location: Denmark

PostPosted: Sun Oct 24, 2004 12:02 pm    Post subject: Reply with quote

I think I've got a bit closer to solve the problem, after following your guide step by step again and again, and changed stuff in my kernel, I get this msg when doing "dmesg | grep APIC"
"No local APIC present or hardware disabled"

And yes, I have done step 9.
I think it's strange that theres no "Dell Inspiron" section in the dmi_scan.c file.

Another question, have you guys enabled "Dell Support" in the kernel? afaik. it's only for i8000 right?

Hope you can help, bye.


Sys:
Dell i8500
BIOS A06
_________________
/ Tommy Holm Jacobsen
holmjacobsen.com
Back to top
View user's profile Send private message
thj
n00b
n00b


Joined: 16 Jan 2004
Posts: 70
Location: Denmark

PostPosted: Sun Oct 24, 2004 6:25 pm    Post subject: Reply with quote

I think I've solved the problem now.
What i did, was applying the patch I've found here: http://lkml.org/lkml/2004/10/24/116 and added the kernel parameters lapic and apic=debug.

Heres the results:

Code:
# dmesg |grep -i apic
Kernel command line: root=/dev/hda5 vga=792 lapic apic=debug
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
mapped APIC to ffffd000 (fee00000)
Using local APIC timer interrupts.
calibrating APIC timer ...


Afaik, that seems to be good.
But, when I do a dmesg | grep -i acpi, i still get alot of "ACPI: PCI interrupt bla bla bla bla IRQ 11"
And thats not good, right?

So what can I do now, to get rid of thoose IRQ interrupts/errors or what you call it?
_________________
/ Tommy Holm Jacobsen
holmjacobsen.com
Back to top
View user's profile Send private message
mfkr79
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2004
Posts: 143
Location: Italy

PostPosted: Mon Oct 25, 2004 2:12 pm    Post subject: Reply with quote

thj wrote:
Hrm, I think theres some problem with Dell i8500 + APIC on the 2.6.9-gentoo-r1 kernel.
When I do:
Code:
# dmesg | grep Dell

It returns:

"i8k: unable to get SMM Dell signature

And yes, the Local APIC is enablet in the kernel.

SMM error message is not related with APIC enabling, BUT with the i8k module,
the so called "Inspiron laptop support" in the kernel.
It is due to the fact that the driver was developed before the 8500 existence, so it can't correctly recognise our model; in a way (ie forcing module loading)
we can make it works well
The driver reads bios version, cpu temp, fans & a/c status, all good except the fact that fan rotation is uncorrect & CPU / GPU fans status is inverted
you can check all with "cat /proc/i8k" if you load i8k with
"modprobe i8k force=1 restricted=1"
Quote:
...I think that you should know that I can't do step 4, because theres nothing that says "Dell Inspiron" in dmi_scan.c - so maybe it's therefore it dosen't work, but I don't know. Actually dmi_scan.c only contains "DELL GX240" concerning Dell stuff.

I last try to enable apic with 2.6.8 series...
If kernel sources are changed, I'm forced to update the HowTO :)
Quote:
I think I've solved the problem now
...
But, when I do a dmesg | grep -i acpi, i still get alot of "ACPI: PCI interrupt bla bla bla bla IRQ 11"
And thats not good, right?

So what can I do now, to get rid of thoose IRQ interrupts/errors or what you call it?

Give me some time to pair my situation with your progress, hopefully tonight I'll come with something new :wink:
BTW, in the meanwhile, Can you post here or send me by pm your last dmesg output and the result of "cat /proc/interrupts" with and without apic enabled ?
Bye
_________________
Gentoo ~amd64 on DELL XPS M1530
Back to top
View user's profile Send private message
mfkr79
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2004
Posts: 143
Location: Italy

PostPosted: Mon Oct 25, 2004 9:50 pm    Post subject: Reply with quote

Thanks to thj I discover that
the original procedure is no more necessary with 2.6.9 kernels
cause sources are changed

I've updated the initial post...Now enabling APIC it's simpler
_________________
Gentoo ~amd64 on DELL XPS M1530
Back to top
View user's profile Send private message
GrimSage
n00b
n00b


Joined: 13 Sep 2004
Posts: 42

PostPosted: Tue Nov 02, 2004 11:01 pm    Post subject: Reply with quote

Quote:

Then you need a further step, ie you have to pass to your bootloader these parameters
Code:

apic=debug lapic
[/code]


I am still new to most of this. Where exactly do I put this?[/quote]
Back to top
View user's profile Send private message
mfkr79
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2004
Posts: 143
Location: Italy

PostPosted: Tue Nov 02, 2004 11:50 pm    Post subject: Reply with quote

put in the config file of your bootloader

lilo.conf if you use lilo, in the append section
...
image=/boot/kernel-2.6.x
label="Gentoo-2.6"
append="root=/dev/hdx ... apic=debug lapic ..."


grub.conf if you use grub
...
# For booting Gentoo
title Gentoo Linux 2004 (gentoo-dev-sources)
root (hd?,?)
kernel /boot/kernel-gentoo root=/dev/hdx ... apic=debug lapic ...

Bye
_________________
Gentoo ~amd64 on DELL XPS M1530
Back to top
View user's profile Send private message
xanderhsia
n00b
n00b


Joined: 08 Jul 2004
Posts: 34

PostPosted: Thu Nov 18, 2004 3:22 pm    Post subject: apic=debug lapic hangs my laptop when lid is closed! Reply with quote

On my Dell Inspiron 8600, adding apic=debug lapic does enable the local apic exactly as stated in the first post. However, it seems to have the very bad side effect of causing the acpi lid event to hard crash my laptop. :( I have to do the "hold down the power button for 4 seconds" dance to get out of the hard lock. For whatever strange reason, doing a Fn+F8 (which on the 8600 is a special key combo that is supposed to switch between CRT and the LCD) also causes a crash.

Removing the apic option on the boot line makes the lid work again and the Fn+F8 combo press innocuous (generates no scancodes/acpi events whatsoever). Mind you that I had no acpi scripts to respond to events, so the crashing is not a result of the laptop trying to enter some unsupported suspend mode.

So be warned! I googled a bit, but didn't find anything conclusive. APIC support seems to be intimately tangled with the BIOS which is written by the vendor. And we all know how "superb" vendor BIOS coding is :wink:

If you know a workaround, please post. I'd love to have apic w/o crashing!
Back to top
View user's profile Send private message
desertstalker
Apprentice
Apprentice


Joined: 18 Sep 2004
Posts: 209

PostPosted: Sat Nov 20, 2004 12:34 am    Post subject: Reply with quote

Thought Id post my findings: The APIC on my D600 works however I cannot resume from S3 if have it enabled. This occurs with kernel 2.6.10-rc1 and 2.6.9.

I guess i will leave it unenabled
Back to top
View user's profile Send private message
paladin-zero
Guru
Guru


Joined: 19 May 2004
Posts: 322

PostPosted: Thu Nov 25, 2004 7:32 am    Post subject: Reply with quote

mfkr79 wrote:

The broken BIOS message still looks like previous
Code:
Dell Latitude with broken BIOS detected. Refusing to enable the local APIC


I just saw this, don't know if its already known to this forum:

http://www.bay-wolf.com/flashbios.htm#problems

Quote:
Known problems with BIOS Versions

1. If you are using Linux on an Inspiron 8000, do not upgrade the BIOS beyond version 17. All of the subsequent BIOS images are flawed. The kernel gives this message - "Dell Inspiron with broken BIOS detected. Refusing to enable the local APIC."
Back to top
View user's profile Send private message
einstein1981
Guru
Guru


Joined: 10 Mar 2004
Posts: 395
Location: Venezuela , Caracas

PostPosted: Tue Dec 14, 2004 3:16 pm    Post subject: Reply with quote

hi guys, been reading up on it, but unfortunatly my english only gets me so far, I just want the battery monitor running on my 5150, I emerged acpid, and added the battery run level, and the script as satedt in the gentoo guide for this.
now I try to add the gnome battery monitor, and still get a message that says : "Can't access ACPI events in /var/run/acpid.socket! Make sure the ACPI subsystem is working and the acpid daemon is running."

now here is the output of my dmesg,
Code:
[B] -> GSI 17 (level, low) -> IRQ 17
ACPI: PCI interrupt 0000:01:00.0[A] -> GSI 20 (level, low) -> IRQ 20
ACPI: PCI interrupt 0000:02:01.0[A] -> GSI 17 (level, low) -> IRQ 17
ACPI: PCI interrupt 0000:02:04.0[A] -> GSI 16 (level, low) -> IRQ 16
ACPI: PCI interrupt 0000:02:04.1[A] -> GSI 16 (level, low) -> IRQ 16
Machine check exception polling timer started.
audit: initializing netlink socket (disabled)
audit(1102972449.387:0): initialized

.
.
.
.
.
ACPI: AC Adapter [AC] (on-line)
ACPI: Battery Slot [BAT0] (battery present)
ACPI: Lid Switch [LID]
ACPI: Power Button (CM) [PBTN]
ACPI: Sleep Button (CM) [SBTN]
ACPI: Processor [CPU0] (supports C1 C2 C3, 8 throttling states)
ACPI: Thermal Zone [THM] (71 C)
i8042.c: Warning: Keylock active.
serio: i8042 AUX port at 0x60,0x64 irq 12
serio: i8042 KBD port at 0x60,0x64 irq 1
Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing disabled
ACPI: PCI interrupt 0000:00:1f.6[B] -> GSI 17 (level, low) -> IRQ 17
mice: PS/2 mouse device common for all mice
input: AT Translated Set 2 keyboard on isa0060/serio0
Synaptics Touchpad, model: 1
 Firmware: 5.9
 Sensor: 37
 new absolute packet format
 Touchpad has extended capability bits


thanks
_________________
thesis.
Back to top
View user's profile Send private message
MonsterMord
Guru
Guru


Joined: 28 Apr 2004
Posts: 395
Location: Italy --> Forli'

PostPosted: Tue Jan 11, 2005 8:28 am    Post subject: Reply with quote

Hi guys,
with the new 2.6.10-gentoo-r4:

without lapic option
Code:

dmesg | grep -i apic
Local APIC disabled by BIOS -- you can enable it with "lapic"
mapped APIC to ffffd000 (01405000)


with lapic option
Code:
dmesg | grep -i apic
Kernel command line: root=/dev/hda7 lapic video=vesafb:mtrr,ywrap splash=verbose,theme:linux
Local APIC disabled by BIOS -- reenabling.
Found and enabled local APIC!
mapped APIC to ffffd000 (fee00000)


It seems work fine!
_________________
Gentoo GNU/Linux on DELL Inspiron 8500
Back to top
View user's profile Send private message
mfkr79
Tux's lil' helper
Tux's lil' helper


Joined: 04 Jul 2004
Posts: 143
Location: Italy

PostPosted: Tue Jan 11, 2005 10:42 pm    Post subject: Reply with quote

Does it power off normally or not ?
ie, after the shutdown sequence, you don't have to hold down power button for 5 secs to halt the system
_________________
Gentoo ~amd64 on DELL XPS M1530
Back to top
View user's profile Send private message
gnasnis
n00b
n00b


Joined: 20 Aug 2004
Posts: 3

PostPosted: Wed Jan 19, 2005 2:07 pm    Post subject: APIC works for me but it seems unstable. Reply with quote

kernel ; gentoo-sources-2.6.10-r6
baselayout ; 1.11.8-r3

Latitude C810 Pentium III 866MHz

Sometimes, my machine stopped during booting.

If boot step passes, APIC works. It seems no problem except stopping during booting.


P.S. Gentoo-sources-2.6.10-r5 kills my USB-HDD, argh!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum