Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Dec 2003 18:15:46 +0100 (CET)
From:      hm@kts.org (Hellmuth Michaelis)
To:        FreeBSD-current Mailinglist <freebsd-current@freebsd.org>
Subject:   Re: More info: ATA hang on resume
Message-ID:  <20031227171546.29695D@bert.int.kts.org>
In-Reply-To: <20031225015633.27341e18.eyes@navi.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Hiroyuki Aizu wrote:

> On Tue, 23 Dec 2003 17:38:39 -0800 (PST)
> Nate Lawson <nate@root.org> 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: <AcerLabs Aladdin UDMA66 controller> 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: <Intel ICH4 UDMA100 controller> 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<ATA_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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: <IC25N040ATMR04-0/MO2OAD4A> 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: <UJDA740 DVD/CDRW/1.04> 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<ATA_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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<ATAPI_SLAVE,ATAPI_MASTER>
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031227171546.29695D>