Skip to contentSkip to conversation

Gericom Supersonic ACPI hang (smi_cmd)

DISCUSSION Ulrich Dobramysl 1 participant 2 messages Oct 11, 2002 – Oct 12, 2002 1 message not in the archive ACPI

lore
Share & tools
lore
#0 lore raw

Hello there again!

I posted some days ago, that I have problems getting ACPI up and running
on my Gericom Laptop. The Kernel just hangs without any error message.
Arndt Schoenewald suggested some Kernel Configurations to me (thanks again!) , but none of them did work. It seems like I have a very rare Version of this laptop model, with a (very) broken BIOS.
So I tried to debug that myself. I'm not a very good C Programmer and have no clue about the ACPI specifications, so I cannot solve this problem myself.
I was able to trace down the hang where acpi_enable gets called and itself calls acpi_hw_set_mode. This goes into the function acpi_os_write_port(acpi_gbl_FADT->smi_cmd, (acpi_integer) acpi_gbl_FADT->acpi_enable, 8), where outb gets called with port acpi_gbl_FADT->smi_cmd and value acpi_gbl_FADT->acpi_enable. I think there is something wrong with the address smi_cmd. I could not find the part in the code where it gets set.
Tell me if I can provide more information about this problem or something.

Ulrich Dobramysl

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

A message that is not in the archive (sent off-list or not yet received): 000b01c27163$927d6e70$6600a8c0@rolilaptop

#2 lore raw

Success!
Thanks a lot! Now it works.
I had to tweak some things in the source file arch/i386/kernel/mpparse.c because FIX_APIC_BASE, Dprintk, and apic_read aren't defined when APIC is disabled, but needed by ACPI? I got a lot of compiler errors when trying to build the kernel. I just commented some things out, and made some real bad hacks, but it compiles and works now. I don't think that this is the normal way of doing this? ;-)

S1 just works fine, MUCH better than with APM.
Now I have problems putting the laptop in S4 (swsusp) state. It seems like swsusp goes into an endless loop, with many warnings that he is scheduling in atomic state or something.

Sometimes, when trying to read some state files in /proc/acpi (the battery state and some other things too), the reading process (cat in my case) hangs and I have to kill it with STRG-C.

The Lid fires no event when closed or opened.

I'm using kernel 2.5.40 and acpi patch 20021002, sorry I forgot to write that in my last mail.

Ulrich Dobramysl

Quoted 6 lines · Roland Moser

hi

Try deactivating APIC (yes APIC not ACPI!). There are 2 or 3 options with APIC.
Select everywhere no. Then it should boot (at least it does for me).

Quoted 44 lines

hope that helps

Roland Moser

PS:
APIC is the Advanced Programmable Interrupt Controller AFAIK Don't know why you have to deactivate it.

Quoted 32 lines

Hello there again!

I posted some days ago, that I have problems getting ACPI up and running
on my Gericom Laptop. The Kernel just hangs without any error message.
Arndt Schoenewald suggested some Kernel Configurations to me (thanks again!) , but none of them did work. It seems like I have a very rare Version of this laptop model, with a (very) broken BIOS.
So I tried to debug that myself. I'm not a very good C Programmer and have no clue about the ACPI specifications, so I cannot solve this problem myself.
I was able to trace down the hang where acpi_enable gets called and itself calls acpi_hw_set_mode. This goes into the function acpi_os_write_port(acpi_gbl_FADT->smi_cmd, (acpi_integer) acpi_gbl_FADT->acpi_enable, 8), where outb gets called with port acpi_gbl_FADT->smi_cmd and value acpi_gbl_FADT->acpi_enable.
I think there is something wrong with the address smi_cmd. I could not find the part in the code where it gets set.
Tell me if I can provide more information about this problem or something.

Ulrich Dobramysl

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Acpi-devel mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/acpi-devel

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven.
http://thinkgeek.com/sf