Subject: kern/22507: ACPI assumed to be always present
To: None <gnats-bugs@gnats.netbsd.org>
From: None <Christoph_Egger@gmx.de>
List: netbsd-bugs
Date: 08/17/2003 04:16:12
>Number:         22507
>Category:       kern
>Synopsis:       ACPI assumed to be always present
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 17 00:17:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Charlie Root
>Release:        NetBSD 1.6W
>Organization:
	
>Environment:
	
	
System: NetBSD athene.eggernet.de 1.6W NetBSD 1.6W (MYKERNEL) #5: Sun Aug 17 01:43:11 CEST 2003 root@athene.eggernet.de:/usr/src-current/sys/arch/i386/compile/MYKERNEL i386
Architecture: i386
Machine: i386
>Description:
	

I have an ASUS SP97-XV board. Its manual says it is "ACPI ready",
but the BIOS does NOT have ACPI support.

Anyway, I enabled ACPI just to see what's happening.
dmesg says this:

NetBSD 1.6W (MYKERNEL) #5: Sun Aug 17 01:43:11 CEST 2003
        root@athene.eggernet.de:/usr/src-current/sys/arch/i386/compile/MYKERNEL
total memory = 255 MB
avail memory = 232 MB
using 3297 buffers containing 13188 KB of memory
BIOS32 rev. 0 found at 0xf04a0
mainbus0 (root)
    ACPI-0162: *** Error: AcpiLoadTables: Could not get RSDP, AE_NO_ACPI_TABLES
    ACPI-0216: *** Error: AcpiLoadTables: Could not load tables: AE_NO_ACPI_TABL
ES
ACPI: unable to load tables: 2
cpu0 at mainbus0: (uniprocessor)
cpu0: AMD K6 (586-class), 233.88 MHz, id 0x562
cpu0: features 8001bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8>
cpu0: features 8001bf<MMX>
cpu0: I-cache 32 KB 32b/line 2-way, D-cache 32 KB 32b/line 2-way
cpu0: ITLB 64 4 KB entries direct-mapped
cpu0: DTLB 128 4 KB entries 2-way
cpu0: 4 page colors
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System 5597/5598 host bridge (rev. 0x02)
pcib0 at pci0 dev 1 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x01)
pciide0 at pci0 dev 1 function 1: Silicon Integrated System 5597/5598 IDE contro
ller (rev. 0xd0)
pciide0: bus-master DMA support present
[...]

The system is running stable until I shutdown it via 'halt -p'.
Normal 'halt' works, though.

'halt -p' results in this:

syncing disks...done
uvm_fault(0xd38bea80,0,0,1) -> 0xe
kernel: page fault trap, code = 0
Stopped in pid 1911.1 (halt) at netbsd:AcpiHwLoadLevelRead+0x19: movl 0x4(%ecx),%eax
db> bt
AcpiHwLowLevelRead(10,d4287d8c,94,0,1) at netbsd:AcpiHwLowLevelRead+0x19
AcpiHwRegisterRead(0,1,d4287dcc,c029ab75,808) at netbsd:AcpiHwRegisterRead+0x88
AcpiSetRegister(6,1,1,c036cb0f,808) at netbsd:AcpiSetRegister+0x8b
AcpiEnterSleepState(5,7530,d4287e50,c0379277,5) at netbsd:AcpiEnterSleepState+0x85
acpi_enter_sleep_state(0,5,d4287e90,c02f4f65,7a120) at netbsd:acpi_enter_sleep_state+0x165
cpu_reboot(808,0,d4287ee0,c027117f,d38c1d00) at netbsd:cpu_reboot+0xa1
sys_reboot(d38c1d00,d4287f80,d4287f78,c02fff6b,2) at netbsd:sys_reboot+0x5e
syscall_plain(1f,1f,1f,1f,0) at netbsd:syscall_plain+0xab
db>



>How-To-Repeat:
Enable ACPI on a board NOT supporting ACPI and shutdown it via
'halt -p'
	
>Fix:
My guess is that if ACPI is enabled and not present, it should be disabled automatically and fall back to use APM, if compiled in.
	
>Release-Note:
>Audit-Trail:
>Unformatted: