From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 09:16:50 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 BF97716A4CE for ; Sat, 27 Dec 2003 09:16:50 -0800 (PST) Received: from mailout09.sul.t-online.com (mailout09.sul.t-online.com [194.25.134.84]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F2CA43D58 for ; Sat, 27 Dec 2003 09:16:01 -0800 (PST) (envelope-from hm@kts.org) Received: from fwd01.aul.t-online.de by mailout09.sul.t-online.com with smtp id 1AaI2i-0002MP-00; Sat, 27 Dec 2003 18:16:00 +0100 Received: from ernie.kts.org (Sa1vd-ZUQeqxezQAyHIVkiFL5AmCQEI1CIAKZH3qrR6BGMrRWofFkj@[80.129.210.148]) by fmrl01.sul.t-online.com with esmtp id 1AaI2W-0nKLwm0; Sat, 27 Dec 2003 18:15:48 +0100 Received: from localhost (localhost.kts.org [127.0.0.1]) by ernie.kts.org (Postfix) with ESMTP id 325FEFDA8 for ; Sat, 27 Dec 2003 17:15:48 +0000 (GMT) Received: from ernie.kts.org ([127.0.0.1]) by localhost (ernie.kts.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00263-07 for ; Sat, 27 Dec 2003 18:15:46 +0100 (CET) Received: from bert.int.kts.org (bert.int.kts.org [172.31.42.2]) by ernie.kts.org (Postfix) with ESMTP id 427ADFDA7 for ; Sat, 27 Dec 2003 18:15:46 +0100 (CET) Received: by bert.int.kts.org (Postfix, from userid 100) id 29695D; Sat, 27 Dec 2003 18:15:46 +0100 (CET) In-Reply-To: <20031225015633.27341e18.eyes@navi.org> To: FreeBSD-current Mailinglist Date: Sat, 27 Dec 2003 18:15:46 +0100 (CET) Organization: Kitchen Table Systems X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Message-Id: <20031227171546.29695D@bert.int.kts.org> From: hm@kts.org (Hellmuth Michaelis) X-Virus-Scanned-KTSORG: by amavisd-new at kts.org X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) X-Seen: false X-ID: Sa1vd-ZUQeqxezQAyHIVkiFL5AmCQEI1CIAKZH3qrR6BGMrRWofFkj@t-dialin.net Subject: Re: More info: ATA hang on resume X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hellmuth.michaelis@t-online.de List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2003 17:16:50 -0000 Hiroyuki Aizu wrote: > On Tue, 23 Dec 2003 17:38:39 -0800 (PST) > Nate Lawson wrote: > > > I did some more tracing on this and found that the reset of ata0 is indeed > > hanging. My machine does not have an APIC, just a simple PIC laptop (IBM > > T23). I've disabled most devices and am not using atapi-cam. > > I have same problem on TOSHIBA Libretto L5. Recently I found simple > but effective solution. The ata controller is like this (from dmesg). > > # atapci0: port 0xe9f0-0xe9ff at device 16.0 on pci0 > > Try this patch. > (However I don't know this effect to ThinkPad' ata controller.) An IBM TP R40 hangs in a similar manner on resume. After applying this patch it looks like it is "properly" resuming now. Will have a look on this. hellmuth -- Hellmuth Michaelis Hamburg, Europe hm\at\kts\dot\org www.kts.org There is a difference between an open mind and a hole in the head (Jeff Kell) [...] atapci0: port 0x1860-0x186f,0-0x3,0-0x7,0-0x3,0-0x7 at device 31.1 on pci0 ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ata0-master: stat=0x50 err=0x01 lsb=0x00 msb=0x00 ata0-slave: stat=0x00 err=0x01 lsb=0x00 msb=0x00 ata0: reset tp2 mask=03 stat0=50 stat1=00 devices=0x1 ata0: at 0x1f0 irq 14 on atapci0 ata0: [MPSAFE] ata1: reset tp1 mask=03 ostat0=50 ostat1=00 ata1-master: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: at 0x170 irq 15 on atapci0 ata1: [MPSAFE] [...] ata0-master: pio=0x0c wdma=0x22 udma=0x45 cable=80pin ata0-master: setting PIO4 on Intel ICH4 chip ata0-master: setting UDMA100 on Intel ICH4 chip GEOM: create disk ad0 dp=0xc2d97160 ad0: ATA-6 disk at ata0-master ad0: 35049MB (71781365 sectors), 71211 C, 16 H, 63 S, 512 B ad0: 16 secs/int, 1 depth queue, UDMA100 [...] ata1-master: pio=0x0c wdma=0x22 udma=0x42 cable=40pin ata1-master: setting PIO4 on Intel ICH4 chip acd0: CDRW drive at ata1 as master acd0: read 689KB/s (4134KB/s) write 4134KB/s (4134KB/s), 2048KB buffer, PIO4 acd0: Reads: CDR, CDRW, CDDA stream, DVDROM, DVDR, DVDRAM, packet acd0: Writes: CDR, CDRW, test write, burnproof acd0: Audio: play, 256 volume levels acd0: Mechanism: ejectable tray, unlocked acd0: Medium: no/blank disc [...] fwohci0: fwohci_pci_suspend pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:29 INTA BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:29 INTB BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:29 INTC BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:29 INTD BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:31 INTB BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:31 INTB BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 0:31 INTB BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 1:0 INTA BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 2:0 INTA BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 2:2 INTA BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 2:7 INTA BIOS irq 11 pci_cfgintr_valid: BIOS irq 11 is valid pci_cfgintr: 2:8 INTA BIOS irq 11 fwohci0: fwohci_pci_resume: power_state = 0x00000000 fwohci0: latency timer 64 -> 64. fwohci0: cache size 8 -> 8. fwohci0: resetting OHCI...done (loop=0) fwohci0: fwphy_rddata: 0x2 loop=0, retry=0 fwohci0: fwphy_rddata: 0x3 loop=0, retry=0 fwohci0: Phy 1394a available S400, 1 ports. fwohci0: fwphy_rddata: 0x5 loop=0, retry=0 fwohci0: Enable 1394a Enhancements fwohci0: fwphy_rddata: 0x5 loop=0, retry=0 fwohci0: fwphy_rddata: 0x2 loop=0, retry=0 fwohci0: fwphy_rddata: 0x4 loop=0, retry=0 fwohci0: fwphy_rddata: 0x4 loop=0, retry=0 fwohci0: fwphy_rddata: 0x4 loop=0, retry=0 fwohci0: Link S400, max_rec 2048 bytes. fwohci0: BUS_OPT 0xa002 -> 0xf800a002 sbp_post_busreset fwohci0: fwohci_set_intr: 1 fwohci0: Initiate bus reset fwohci0: fwphy_rddata: 0x1 loop=0, retry=0 fwohci0: fwphy_rddata: 0x1 loop=0, retry=0 wakeup from sleeping state (slept 00:00:25) atkbd: the current kbd controller command byte 0065 atkbd: keyboard ID 0x54ab (2) kbdc: RESET_KBD return code:00fa kbdc: RESET_KBD status:00aa ata0: resetting devices .. ata0: reset tp1 mask=03 ostat0=50 ostat1=00 ad0: stat=0x50 err=0x01 lsb=0x00 msb=0x00 ata0-slave: stat=0x00 err=0x01 lsb=0x00 msb=0x00 ata0: reset tp2 mask=03 stat0=50 stat1=00 devices=0x1 fwohci0: BUS reset sbp_post_busreset fwohci0: node_id=0xc000ffc0, gen=1, CYCLEMASTER mode firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) fwohci0: fw_set_bus_manager: 0->0 (loop=0) firewire0: bus manager 0 (me) send phy_config root_node=-1 gap_count=5 fwohci0: start AT DMA status=0 Current DB 0 ch = 0 Current OP KEY INT BR len Addr Depend Stat: Cnt 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 840b:0035 RUN,ACTIVE, tcode err(b) 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat 0f961080 OUTM ST0 NEV NEV 0 00000000 00000000 0000:0000 Nostat ad0: pio=0x0c wdma=0x22 udma=0x45 cable=80pin ad0: setting PIO4 on Intel ICH4 chip ad0: setting UDMA100 on Intel ICH4 chip ad0: setting UDMA100 on Intel ICH4 chip done ata1: resetting devices .. ata1: reset tp1 mask=03 ostat0=50 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc ata1: reset tp1 mask=03 ostat0=00 ostat1=00 acd0: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1-slave: stat=0x00 err=0x01 lsb=0x14 msb=0xeb ata1: reset tp2 mask=03 stat0=00 stat1=00 devices=0xc acd0: pio=0x0c wdma=0x22 udma=0x42 cable=40pin acd0: setting PIO4 on Intel ICH4 chip acd0: setting PIO4 on Intel ICH4 chip done bus_explore done sbp_post_explore (sbp_cold=1) cbb0: Unsupported card type detected ums0: at uhub1 port 2 (addr 2) disconnected ums0: detached ums0: Microsoft Microsoft 3-Button Mouse with IntelliEye?, rev 2.00/0.00, addr 2, iclass 3/1 ums0: 3 buttons and Z dir.