From owner-freebsd-current@FreeBSD.ORG Thu Aug 28 21:57:22 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D031716A4BF for ; Thu, 28 Aug 2003 21:57:22 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id 6C4E843FE5 for ; Thu, 28 Aug 2003 21:57:22 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 41918 invoked by uid 1000); 29 Aug 2003 04:57:24 -0000 Date: Thu, 28 Aug 2003 21:57:24 -0700 (PDT) From: Nate Lawson To: current@freebsd.org Message-ID: <20030828215209.T41901@root.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: ATAng suspend/resume support broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 04:57:22 -0000 With today's ATAng, I can suspend my laptop but when I resume, the system hangs. I'll try to get the exact dmesg with a serial console since syscons gets screwed up by resuming (this is normal behavior). In any case, my laptop hangs with the drive light on while trying to reset the ata controller. I can't enter DDB. By reverting just the ATAng commit to 2003/08/23, suspend and resume work well. Here is my dmesg from a working suspend/resume... -Nate ======== acpi_printcpu() debug dump ======== gdt[0077:c03fc3a0] idt[0407:c03fc740] ldt[0028] tr[0020] efl[00000086] eax[0000d000] ebx[c11f2d80] ecx[c35d38b0] edx[bfc00034] esi[00000000] edi[c35d38b0] ebp[d4002ad0] esp[d4002a98] cr0[8005003b] cr2[081c0420] cr3[105b9000] cr4[00000691] cs[0008] ds[0010] es[0010] fs[0018] gs[002f] ss[0010] ======== acpi_printcpu() debug dump ======== gdt[0077:c03fc3a0] idt[0407:c03fc740] ldt[0028] tr[0020] efl[00000002] eax[00000001] ebx[c11f2d80] ecx[00000001] edx[c34ff850] esi[00000000] edi[c35d38b0] ebp[d4002ad0] esp[d4002a98] cr0[8005003b] cr2[081c0420] cr3[105b9000] cr4[00000691] cs[0008] ds[0010] es[0010] fs[0018] gs[002f] ss[0010] usb0: cannot start usb1: cannot start usb2: cannot start wakeup from sleeping state (slept 00:00:21) ata0: resetting devices .. usb0: resume detect usb0: host system error usb0: host controller process error usb0: host controller halted usb0 regs: cmd=ffff, sts=ffff, intr=ffff, frnum=ffff, flbase=ffffffff, sof=00ff, portsc1=ffff, portsc2=ffff intrs=0 QH(0xc32d6f80) at 0060af80: hlink=0060afa2 elink=00000001 usb1: resume detect usb1: host system error usb1: host controller process error usb1: host controller halted usb1 regs: cmd=ffff, sts=ffff, intr=ffff, frnum=ffff, flbase=ffffffff, sof=00ff, portsc1=ffff, portsc2=ffff intrs=0 QH(0xc3307f80) at 0065bf80: hlink=0065bfa2 elink=00000001 usb2: resume detect usb2: host system error usb2: host controller process error usb2: host controller halted usb2 regs: cmd=ffff, sts=ffff, intr=ffff, frnum=ffff, flbase=ffffffff, sof=00ff, portsc1=ffff, portsc2=ffff intrs=0 QH(0xc32fff80) at 00673f80: hlink=00673fa2 elink=00000001 acpi_cmbat1: battery initialization failed, giving up done ata1: resetting devices .. ata1-slave: timeout waiting for interrupt ata1-slave: ATAPI identify failed done acpi_cmbat0: battery initialization start acpi_cmbat0: battery initialization done, tried 1 times acpi_cmbat1: battery initialization start acpi_cmbat1: battery initialization failed, giving up Here is dmesg for my controller/drives: atapci0: port 0x1860-0x186f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 31.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ata1-slave: timeout waiting for interrupt ata1-slave: ATAPI identify failed ad0: 19077MB [41344/15/63] at ata0-master UDMA100 acd0: CD-RW at ata1-master PIO4