Subject: Re: ACPI and invalid devices
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Todd Kover <kovert@omniscient.com>
List: port-amd64
Date: 03/30/2007 14:50:08
 > On Fri, Mar 30, 2007 at 02:28:25PM -0400, Todd Kover wrote:
 > > 
 > >  > >  > OK, so what about the attached patch ? It works for me.
 > >  > > 
 > >  > > this patch didn't work for me on my dell pe2950.
 > >  > 
 > >  > What happens ? Does it still panics ? What is the panic message ?
 > > 
 > > A diffrent error, this time.  bootup messages:
 > > 
 > > NetBSD 4.99.16 (GENERIC.MPDEBUG) #4: Fri Mar 30 16:42:22 UTC 2007
 > >         kovert@daori.omniscient.com:/usr/obj/current/i386/os/NetBSD/src/sys
 > > total memory = 2047 MB
 > > rbus: rbus_min_start set to 0x80000000
 > > avail memory = 1989 MB
 > > sysctl_createv: sysctl_create(machine) returned 17
 > > mainbus0 (root)
 > > mainbus0: scanning 0x9f000 to 0x9f3f0 for MP signature
 > > mainbus0: scanning 0x9ec00 to 0x9eff0 for MP signature
 > > mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
 > > mainbus0: MP floating pointer found in bios at 0xfe710
 > > mainbus0: MP config table at 0xf0000, 764 bytes long
 > > cpu0 at mainbus0 apid 0: (boot processor)
 > > cpu0: Intel Core 2 (Merom) (686-class), 1995.11 MHz, id 0x6f6
 > > cpu0: "Intel(R) Xeon(R) CPU            5130  @ 2.00GHz"
 > > cpu1 at mainbus0 apid 1: (application processor)
 > > cpu1: Intel Core 2 (Merom) (686-class), 1995.00 MHz, id 0x6f6
 > > cpu1: "Intel(R) Xeon(R) CPU            5130  @ 2.00GHz"
 > > ioapic0 at mainbus0 apid 2
 > > , virtual wire modeioapic1 at mainbus0 apid 3
 > > , virtual wire modeacpi0 at mainbus0: Advanced Configuration and Power Interface
 > > ACPI-Fast 24-bit timer
 > > mpacpi: found root PCI bus 0 at level 1
 > > multiply freed item 0xc38c0480
 > > panic: free: duplicated free
 > > Stopped in pid 0.1 (swapper) at netbsd:cpu_Debugger+0x4:        popl    %ebp
 > 
 > Can you provide the stack trace ?

db{0}> trace 
cpu_Debugger(c097fca3,c0b927b4,c0b927a8,c048c525,e) at netbsd:cpu_Debugger+0x4
panic(c09555a4,c38c0480,c0b927d8,c0464b1f,c0a9ef82) at netbsd:panic+0x155
free(c38c0480,c0a4ca00,c0b92858,c051fd1c,c38c0480) at netbsd:free+0x1de
AcpiOsFree(c38c0480,c0a014a0,2,c3db1f20,c3db1f20) at netbsd:AcpiOsFree+0x1a
mpacpi_pcibus_cb(c3db1660,2,c3d0f300,0,1000000) at netbsd:mpacpi_pcibus_cb+0xfc
AcpiNsWalkNamespace(6,c3db1e00,64,1,c051fc20) at netbsd:AcpiNsWalkNamespace+0xde

AcpiWalkNamespace(6,c3db1e00,64,c051fc20,c3d0f300) at netbsd:AcpiWalkNamespace+0
x7e
mpacpi_find_interrupts(c3d0f300,43b8c9,18,c3d0f358,c3d0f300) at netbsd:mpacpi_fi
nd_interrupts+0x789
acpi_md_callback(c3d0f300,c076eea0,c3d0f358,c38c0f10,1) at netbsd:acpi_md_callba
ck+0x67
acpi_attach(c38a4f80,c3d0f300,c0b92b3c,0,c0b92b3c) at netbsd:acpi_attach+0x176
config_attach_loc(c38a4f80,c09f5480,0,c0b92b3c,0) at netbsd:config_attach_loc+0x
156
config_found_ia(c38a4f80,c093e296,c0b92b3c,0,c3821f40) at netbsd:config_found_ia
+0x32
mainbus_attach(0,c38a4f80,0,c047f6be,c093d799) at netbsd:mainbus_attach+0x1c1
config_attach_loc(0,c09f3db8,0,0,0) at netbsd:config_attach_loc+0x156
config_attach(0,c09f3db8,0,0,c0b8f010) at netbsd:config_attach+0x2c
config_rootfound(c093d799,0,c0b92c28,c0480ebf,c0a020a0) at netbsd:config_rootfou
nd+0x44    
cpu_configure(c0a020a0,a,0,0,c0aa44f0) at netbsd:cpu_configure+0x27
configure(c0aa0d80,1,0,0,ffff) at netbsd:configure+0x2f
main(fbff,c01002d2,0,0,0) at netbsd:main+0x115

-Todd