From owner-freebsd-acpi@FreeBSD.ORG Fri Aug 10 11:45:34 2007 Return-Path: Delivered-To: acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A25216A419 for ; Fri, 10 Aug 2007 11:45:34 +0000 (UTC) (envelope-from brucec@muon.bluestop.org) Received: from muon.bluestop.org (muon.bluestop.org [80.68.94.188]) by mx1.freebsd.org (Postfix) with ESMTP id D7E8513C474 for ; Fri, 10 Aug 2007 11:45:33 +0000 (UTC) (envelope-from brucec@muon.bluestop.org) Received: by muon.bluestop.org (Postfix, from userid 1000) id C39AA30123; Fri, 10 Aug 2007 12:12:17 +0100 (BST) Date: Fri, 10 Aug 2007 12:12:17 +0100 From: bruce@cran.org.uk To: Julian Elischer Message-ID: <20070810111217.GA22825@muon.bluestop.org> References: <65dfa4fc0705151353v1eb9a16dsff46c9f6ea6f4b63@mail.gmail.com> <46BC1418.9070008@cran.org.uk> <46BC26FD.6080203@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46BC26FD.6080203@elischer.org> User-Agent: Mutt/1.5.13 (2006-08-11) Cc: acpi@freebsd.org, current@freebsd.org Subject: Re: Reboot on "shutdown -r" hangs after final "uptime ..." string X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Aug 2007 11:45:34 -0000 On Fri, Aug 10, 2007 at 01:51:09AM -0700, Julian Elischer wrote: > Bruce Cran wrote: > >Thomas Sparrevohn wrote: > >>I have the same problem - just as a test try to load a kernel without > >>any USB drivers at all > >>And shutdown - on my machine it the ACPI part works - however the > >>system hangs during the device Shutdown phase - this machine is a dell > >>as well - would be nice if somebody using other than dell has the problem > >> > >I'm running 7.0-CURRENT and am seeing the same problem on my Dell > >Inspiron 1501 amd64 laptop. This machine has OHCI and EHCI controllers; > >removing the EHCI driver solves the problem and allows the computer to > >reboot properly. I initially thought it was an ACPI problem but now I'm > >not so sure - is there anything I can do to help debug it? I've added > >printfs to kern_shutdown.c and as far as I can see the last function to > >be called is shutdown_wait; since that doesn't do anything I know more > >is going on, but I don't know where to look. > > I have the same problem on my Dell inspiron 7500. > it HAS worked in the past. It has even powered down in the past when asked. > but now it just hangs.. I suspect that acpi may have something to do with > it. > > No idea where to look though. On this laptop, FreeBSD 6.2 really struggled with ACPI - just listing the hw.acpi sysctls would result in lots of AE_NOT_FOUND messages; 7.0-CURRENT works a lot better, and the only warning relating to ACPI I see is during boot: acpi0: reservation of fed00000, 400 (3) failed acpi0: reservation of 0, 1000 (3) failed Compiling the disassembled AML generated by acpidump results in the following error: brucecran-DellInspiron1501.asl 5724: Unload (PB5) Error 4044 - Invalid type ^ ([Device|Reference] found, Unload operator requires [DdbHandle]) As a starting point, I've uploaded the output of 'acpidump -dt' to http://www.cran.org.uk/~brucec/freebsd/i1501_shutdown/brucecran-DellInspiron1501.asl I've also put a verbose boot log, with ACPI debugging output enabled at http://www.cran.org.uk/~brucec/freebsd/i1501_shutdown/dmesg_bootverbose.txt -- Bruce Cran > >>>-----Original Message----- > >>>From: owner-freebsd-acpi@freebsd.org [mailto:owner-freebsd- > >>>acpi@freebsd.org] On Behalf Of Artem Naluzhny > >>>Sent: 15 May 2007 21:54 > >>>To: acpi@freebsd.org > >>>Subject: Reboot on "shutdown -r" hangs after final "uptime ..." string > >>> > >>>Hi > >>> > >>>I played with different combinations of debug.acpi.do_powerstate, > >>>hw.acpi.disable_on_reboot and hw.acpi.handle_reboot sysctls on my > >>>Inspiron 1501 notebook without success. Environment: > >>> > >>>FreeBSD 7.0-CURRENT #1: Thu May 10 21:22:20 EEST 2007 > >>> root@tut.intra:/usr/obj/usr/src/sys/TUT > >>>WARNING: WITNESS option enabled, expect reduced performance. > >>>Preloaded elf kernel "/boot/kernel/kernel" at 0xc082b000. > >>>Preloaded elf module "/boot/kernel/acpi.ko" at 0xc082b1c4. > >>>Calibrating clock(s) ... i8254 clock: 1193176 Hz > >>>CLK_USE_I8254_CALIBRATION not specified - using default frequency > >>>Timecounter "i8254" frequency 1193182 Hz quality 0 > >>>Calibrating TSC clock ... TSC clock: 1596011252 Hz > >>>CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-50 (1596.01-MHz 686- > >>>class CPU) > >>> Origin = "AuthenticAMD" Id = 0x40f82 Stepping = 2 > >>> > >>>Features=0x178bfbff >>>E,MCA,CMOV,PAT,PSE36,CLFLU > >>>SH,MMX,FXSR,SSE,SSE2,HTT> > >>> Features2=0x2001 > >>> AMD > >>>Features=0xea500800 > >>> AMD Features2=0x1f > >>>HTT bit cleared - FreeBSD does not have licensing issues requiring it. > >>> > >>> Cores per package: 2 > >>>Data TLB: 32 entries, fully associative > >>>Instruction TLB: 32 entries, fully associative > >>>L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative > >>>L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way > >>>associative > >>>L2 internal cache: 256 kbytes, 64 bytes/line, 1 lines/tag, 8-way > >>>associative > >>>real memory = 937885696 (894 MB) > >>>Physical memory chunk(s): > >>>0x0000000000001000 - 0x000000000009cfff, 638976 bytes (156 pages) > >>>0x0000000000100000 - 0x00000000003fffff, 3145728 bytes (768 pages) > >>>0x0000000000c28000 - 0x0000000036e6ffff, 908361728 bytes (221768 pages) > >>>avail memory = 908304384 (866 MB) > >>>Table 'FACP' at 0x37e7fb9a > >>>Table 'TCPA' at 0x37e7fc0e > >>>Table 'SSDT' at 0x37e7fc40 > >>>Table 'APIC' at 0x37e7fdc2 > >>>MADT: Found table at 0x37e7fdc2 > >>>MP Configuration Table version 1.4 found at 0xc009e171 > >>>APIC: Using the MADT enumerator. > >>>MADT: Found CPU APIC ID 0 ACPI ID 0: enabled > >>>SMP: Added CPU 0 (AP) > >>>MADT: Found CPU APIC ID 1 ACPI ID 1: enabled > >>>SMP: Added CPU 1 (AP) > >>>ACPI APIC Table: > >>>INTR: Adding local APIC 1 as a target > >>>FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > >>> cpu0 (BSP): APIC ID: 0 > >>> cpu1 (AP): APIC ID: 1 > >>>bios32: Found BIOS32 Service Directory header at 0xc00f84a0 > >>>bios32: Entry = 0xfdc84 (c00fdc84) Rev = 0 Len = 1 > >>>pcibios: PCI BIOS entry at 0xfdc80+0x0 > >>>pnpbios: Found PnP BIOS data at 0xc00f8540 > >>>pnpbios: Entry = e5d0:9499 Rev = 1.0 > >>>Other BIOS signatures found: > >>>APIC: CPU 0 has ACPI ID 0 > >>>APIC: CPU 1 has ACPI ID 1 > >>>ACPI: RSDP @ 0x0xf8500/0x0014 (v 0 PTLTD ) > >>>ACPI: RSDT @ 0x0x37e79578/0x0040 (v 1 DELL M08 0x06040000 LTP > >>>0x00000000) > >>>ACPI: FACP @ 0x0x37e7fb9a/0x0074 (v 1 ATI Bowfin 0x06040000 ATI > >>>0x000F4240) > >>>ACPI: DSDT @ 0x0x37e795b8/0x65E2 (v 1 ATI SB600 0x06040000 MSFT > >>>0x03000000) > >>>ACPI: FACS @ 0x0x37e90fc0/0x0040 > >>>ACPI: TCPA @ 0x0x37e7fc0e/0x0032 (v 2 AMD 0x06040000 PTEC > >>>0x00000000) > >>>ACPI: SSDT @ 0x0x37e7fc40/0x0182 (v 1 PTLTD POWERNOW 0x06040000 LTP > >>>0x00000001) > >>>ACPI: APIC @ 0x0x37e7fdc2/0x0054 (v 1 PTLTD APIC 0x06040000 > >>>LTP 0x00000000) > >>>ACPI: MCFG @ 0x0x37e7fe16/0x003C (v 1 PTLTD MCFG 0x06040000 LTP > >>>0x00000000) > >>>ACPI: HPET @ 0x0x37e7fe52/0x0038 (v 1 PTLTD HPETTBL 0x06040000 LTP > >>>0x00000001) > >>>ACPI: SLIC @ 0x0x37e7fe8a/0x0176 (v 1 DELL M08 0x06040000 LTP > >>>0x00000000) > >>>MADT: Found IO APIC ID 2, Interrupt 0 at 0xfec00000 > >>>ioapic0: Routing external 8259A's -> intpin 0 > >>>lapic0: Routing NMI -> LINT1 > >>>lapic0: LINT1 trigger: edge > >>>lapic0: LINT1 polarity: high > >>>lapic1: Routing NMI -> LINT1 > >>>lapic1: LINT1 trigger: edge > >>>lapic1: LINT1 polarity: high > >>>MADT: Forcing active-low polarity and level trigger for SCI > >>>ioapic0: intpin 9 polarity: low > >>>ioapic0: intpin 9 trigger: level > >>>ioapic0 irqs 0-23 on motherboard > >>>cpu0 BSP: > >>> ID: 0x00000000 VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff > >>> lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff > >>> timer: 0x000100ef therm: 0x00010000 err: 0x00010000 pcm: 0x00010000 > >>>io: > >>>null: > >>>random: > >>>kbd: new array size 4 > >>>kbd1 at kbdmux0 > >>>mem: > >>>Pentium Pro MTRR support enabled > >>>npx0: INT 16 interface > >>>acpi0: on motherboard > >>>ioapic0: routing intpin 9 (ISA IRQ 9) to vector 48 > >>>acpi0: [MPSAFE] > >>>acpi0: [ITHREAD] > >>>pci_open(1): mode 1 addr port (0x0cf8) is 0x80009020 > >>>pci_open(1a): mode1res=0x80000000 (0x80000000) > >>>pci_cfgcheck: device 0 [class=060000] [hdr=00] is there (id=59501002) > >>>pcibios: BIOS_PRESENT call failed > >>>AcpiOsDerivePciId: bus 0 dev 18 func 0 > >>>AcpiOsDerivePciId: bus 0 dev 17 func 0 > >>>acpi0: Power Button (fixed) > >>>acpi0: wakeup code va 0xd5a40000 pa 0x9c000 > >>>AcpiOsDerivePciId: bus 0 dev 20 func 1 > >>>unknown: I/O range not supported > >>>AcpiOsDerivePciId: bus 0 dev 0 func 0 > >>>AcpiOsDerivePciId: bus 0 dev 20 func 0 > >>>acpi0: reservation of 0, 1000 (3) failed > >>>ACPI timer: 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 1/1 -> 10 > >>>Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > >>>acpi_timer0: <32-bit timer at 3.579545MHz> port 0x8008-0x800b on acpi0 > >>>acpi_ec0: port 0x62,0x66 on acpi0 > >>> > >>> > >>>Any suggestions? > >>> > >>>-- > >>>tut > >>>DaRK VoIP GuRU > >>>_______________________________________________ > >>>freebsd-acpi@freebsd.org mailing list > >>>http://lists.freebsd.org/mailman/listinfo/freebsd-acpi > >>>To unsubscribe, send any mail to "freebsd-acpi-unsubscribe@freebsd.org" > >>> > >> > >> > > > >_______________________________________________ > >freebsd-current@freebsd.org mailing list > >http://lists.freebsd.org/mailman/listinfo/freebsd-current > >To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >