From owner-freebsd-current Sun Oct 31 18:30:24 1999 Delivered-To: freebsd-current@freebsd.org Received: from rina.r.dl.itc.u-tokyo.ac.jp (rina.r.dl.itc.u-tokyo.ac.jp [133.11.199.247]) by hub.freebsd.org (Postfix) with ESMTP id B4509150C4 for ; Sun, 31 Oct 1999 18:30:14 -0800 (PST) (envelope-from tanimura@r.dl.itc.u-tokyo.ac.jp) Received: from rina.r.dl.itc.u-tokyo.ac.jp (localhost [127.0.0.1]) by rina.r.dl.itc.u-tokyo.ac.jp (8.9.3+3.2W/3.7W-r-0.1-19990829) with ESMTP id LAA39297; Mon, 1 Nov 1999 11:30:12 +0900 (JST) Message-Id: <199911010230.LAA39297@rina.r.dl.itc.u-tokyo.ac.jp> To: current@freebsd.org Cc: Seigo Tanimura Subject: Strange atapi active state, ending in ATA_IGNORE_INTR? From: Seigo Tanimura X-Mailer: Mew version 1.70 on Emacs 19.34.1 / Mule 2.3 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 01 Nov 1999 11:30:12 +0900 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Oct 30 19:31:46 silver /kernel: ata-pci0: 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: 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: 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: 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 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. 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: 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 Seigo Tanimura To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message