Date: Sun, 2 Dec 2001 01:40:01 +0100 From: "Jose M. Alcaide" <jose@we.lc.ehu.es> To: hardware@FreeBSD.org Subject: ata(4) does not detect WDMA2-capable CD-ROM, but NetBSD does Message-ID: <20011202014001.A335@v-ger.we.lc.ehu.es>
next in thread | raw e-mail | index | archive | help
Just after I got a bigger hard disk for my laptop, I reserved a partition for doing experiments, and my first experiment was installing NetBSD 1.5.2. After finishing the installation I found something surprising: NetBSD detected the CD-ROM drive (a Toshiba XM-1902B) as WDMA2-capable: cd0 at atapibus0 drive 0: <TOSHIBA CD-ROM XM-1902B, ,1A15> type 5 cdrom removable cd0: 32-bit data port cd0: drive supports PIO mode 4, DMA mode 2 pciide0: secondary channel interrupting at irq 15 cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers) However, FreeBSD (4.4-STABLE) does not detect that WDMA2 capability and puts it into PIO4 mode: atapci0: <Intel PIIX4 ATA33 controller> port 0x860-0x86f at device 7.1 on pci0 ... ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x0868 ata1: mask=03 status0=50 status1=00 ata1: mask=03 ostat0=50 ostat2=00 ata1-master: ATAPI probe a=14 b=eb ata1-slave: ATAPI probe a=7f b=7f ata1: mask=03 status0=00 status1=00 ata1: devices=04 ata1: at 0x170 irq 15 on atapci0 ... ata1-master: piomode=4 dmamode=2 udmamode=-1 dmaflag=1 ata1-master: success setting PIO4 on generic chip acd0: <TOSHIBA CD-ROM XM-1902B/1A15> CDROM drive at ata1 as master acd0: read 4134KB/s (34515KB/s), 128KB buffer, PIO4 Obviously hw.ata.atapi_dma is enabled. If I set hw.atamodes=dma,---,dma,---, a "dd if=/dev/acd0c of=/dev/null bs=2k" gets blocked in ps(1)'s "D" state. I wonder why NetBSD can put this CD-ROM drive into WDMA2 mode while FreeBSD cannot. This is not a real problem for me, but I would like to find out the reason ;-) Søren? -- ****** Jose M. Alcaide // jose@we.lc.ehu.es // jmas@FreeBSD.org ****** ** "Beware of Programmers who carry screwdrivers" -- Leonard Brandwein ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hardware" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011202014001.A335>