From owner-freebsd-hardware Sat Dec 1 16:48: 6 2001 Delivered-To: freebsd-hardware@freebsd.org Received: from polaris.we.lc.ehu.es (polaris.we.lc.ehu.es [158.227.6.43]) by hub.freebsd.org (Postfix) with ESMTP id 34D3437B417 for ; Sat, 1 Dec 2001 16:48:03 -0800 (PST) Received: from v-ger.we.lc.ehu.es (lxpx211.lx.ehu.es [158.227.26.111]) by polaris.we.lc.ehu.es (8.11.6/8.11.6) with ESMTP id fB20lsr10026 for ; Sun, 2 Dec 2001 01:47:54 +0100 (MET) Received: (from jose@localhost) by v-ger.we.lc.ehu.es (8.11.6/8.11.6) id fB20e1T00378 for hardware@FreeBSD.org; Sun, 2 Dec 2001 01:40:01 +0100 (CET) (envelope-from jose) Date: Sun, 2 Dec 2001 01:40:01 +0100 From: "Jose M. Alcaide" 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> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.2.5i X-Operating-System: FreeBSD 4.4-STABLE Sender: owner-freebsd-hardware@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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: 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: 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: 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