Date: Mon, 01 Nov 1999 11:30:12 +0900 From: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> To: current@freebsd.org Cc: Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> Subject: Strange atapi active state, ending in ATA_IGNORE_INTR? Message-ID: <199911010230.LAA39297@rina.r.dl.itc.u-tokyo.ac.jp>
next in thread | raw e-mail | index | archive | help
My box has got three ata disks and one atapi cdrom drive(on secondary slave). Since a few weeks ago the cdrom drive does not get probed. <dmesg> Oct 30 19:31:46 silver /kernel: ata-pci0: <Intel PIIX4 IDE controller> at device 4.1 on pci0 Oct 30 19:31:46 silver /kernel: ata-pci0: Busmastering DMA supported Oct 30 19:31:46 silver /kernel: ata0: iobase=0x01f0 altiobase=0x03f6 Oct 30 19:31:46 silver /kernel: ata0: mask=03 status0=50 status1=50 Oct 30 19:31:46 silver /kernel: ata0: mask=03 status0=50 status1=50 Oct 30 19:31:46 silver /kernel: ata0: devices = 0x3 Oct 30 19:31:46 silver /kernel: ata0 at 0x01f0 irq 14 on ata-pci0 Oct 30 19:31:46 silver /kernel: ata1: iobase=0x0170 altiobase=0x0376 Oct 30 19:31:46 silver /kernel: ata1: mask=03 status0=50 status1=50 Oct 30 19:31:47 silver /kernel: ata1: mask=03 status0=50 status1=00 Oct 30 19:31:47 silver /kernel: ata1: devices = 0x9 Oct 30 19:31:47 silver /kernel: ata1 at 0x0170 irq 15 on ata-pci0 (snip) Oct 30 19:31:49 silver /kernel: ata0: master: success setting up UDMA2 mode on PIIX4 chip Oct 30 19:31:49 silver /kernel: ad0: piomode=4 dmamode=2 udmamode=2 Oct 30 19:31:49 silver /kernel: ad0: <QUANTUM FIREBALL ST6.4A/A0F.0400> ATA-3 disk at ata0 as master Oct 30 19:31:49 silver /kernel: ad0: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 63 S/T, 512 B/S Oct 30 19:31:49 silver /kernel: ad0: 16 secs/int, 0 depth queue, UDMA33 Oct 30 19:31:49 silver /kernel: Creating DISK ad0 Oct 30 19:31:49 silver /kernel: Creating DISK wd0 Oct 30 19:31:49 silver /kernel: ata0: slave: success setting up UDMA2 mode on PIIX4 chip Oct 30 19:31:49 silver /kernel: ad1: piomode=4 dmamode=2 udmamode=2 Oct 30 19:31:49 silver /kernel: ad1: <WDC AC23200L/09.09M08> ATA-4 disk at ata0 as slave Oct 30 19:31:49 silver /kernel: ad1: 3098MB (6346368 sectors), 6296 cyls, 16 heads, 63 S/T, 512 B/S Oct 30 19:31:49 silver /kernel: ad1: 16 secs/int, 0 depth queue, UDMA33 Oct 30 19:31:49 silver /kernel: Creating DISK ad1 Oct 30 19:31:49 silver /kernel: Creating DISK wd1 Oct 30 19:31:49 silver /kernel: ata1: master: success setting up UDMA2 mode on PIIX4 chip Oct 30 19:31:49 silver /kernel: ad2: piomode=4 dmamode=2 udmamode=2 Oct 30 19:31:49 silver /kernel: ad2: <WDC AC26400B/32.02S32> ATA-4 disk at ata1 as master Oct 30 19:31:49 silver /kernel: ad2: 6149MB (12594960 sectors), 13328 cyls, 15 heads, 63 S/T, 512 B/S Oct 30 19:31:49 silver /kernel: ad2: 16 secs/int, 0 depth queue, UDMA33 Oct 30 19:31:49 silver /kernel: Creating DISK ad2 Oct 30 19:31:49 silver /kernel: Creating DISK wd2 Oct 30 19:31:49 silver /kernel: DANGER wait_intr active=ATA_IGNORE_INTR </dmesg> The active state after disk probe does not get back to ATA_IDLE, resulting atapi_getparam() to fail on atapi_wait(). Calling atapi_getparam() twice continuously in atapi_attach() helped me, although it is not a proper fix at all. Below is the dmesg. <dmesg> Oct 30 19:36:39 silver /kernel: ata1-slave: piomode=3 dmamode=1 udmamode=-1 dmaflag=1 Oct 30 19:36:39 silver /kernel: atapi: MODE_SENSE_BIG - UNIT ATTENTION skey=6 asc=29 ascq=00 error=04 Oct 30 19:36:39 silver /kernel: atapi: MODE_SENSE_BIG - UNIT ATTENTION skey=6 asc=28 ascq=00 error=04 Oct 30 19:36:39 silver /kernel: acd0: <CD-516E/1.0F> CDROM drive at ata1 as slave Oct 30 19:36:39 silver /kernel: acd0: read 2755KB/s (2755KB/s), 128KB buffer, PIO Oct 30 19:36:39 silver /kernel: acd0: supported read types: CD-DA Oct 30 19:36:39 silver /kernel: acd0: Audio: play, 16 volume levels Oct 30 19:36:39 silver /kernel: acd0: Mechanism: ejectable tray Oct 30 19:36:39 silver /kernel: acd0: Medium: CD-ROM 120mm audio disc loaded, unlocked </dmesg> Seigo Tanimura <tanimura@r.dl.itc.u-tokyo.ac.jp> <tanimura@freebsd.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911010230.LAA39297>