From se@FreeBSD.org Mon Nov 18 09:57:57 2002 Return-Path: Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E34E637B401 for ; Mon, 18 Nov 2002 09:57:57 -0800 (PST) Received: from mailout01.sul.t-online.com (mailout01.sul.t-online.com [194.25.134.80]) by mx1.FreeBSD.org (Postfix) with ESMTP id DE6B843E8A for ; Mon, 18 Nov 2002 09:57:56 -0800 (PST) (envelope-from se@FreeBSD.org) Received: from fwd01.sul.t-online.de by mailout01.sul.t-online.com with smtp id 18Dq9k-0005QX-04; Mon, 18 Nov 2002 18:57:56 +0100 Received: from Gatekeeper.FreeBSD.org (520047440004-0001@[217.81.1.106]) by fmrl01.sul.t-online.com with esmtp id 18Dq9a-0BeNTkC; Mon, 18 Nov 2002 18:57:46 +0100 Received: from StefanEsser.FreeBSD.org (StefanEsser [10.0.0.1]) by Gatekeeper.FreeBSD.org (Postfix) with ESMTP id 3E6315F1C for ; Mon, 18 Nov 2002 18:57:46 +0100 (CET) Received: by StefanEsser.FreeBSD.org (Postfix, from userid 200) id 1B8F51620; Mon, 18 Nov 2002 18:57:46 +0100 (CET) Message-Id: <20021118175746.1B8F51620@StefanEsser.FreeBSD.org> Date: Mon, 18 Nov 2002 18:57:46 +0100 (CET) From: Stefan Esser Reply-To: Stefan Esser To: FreeBSD-gnats-submit@freebsd.org Cc: Subject: tagged/non-tagged IDE drives as MASTER/SLAVE fails on first write to SLAVE X-Send-Pr-Version: 3.113 X-GNATS-Notify: >Number: 45413 >Category: kern >Synopsis: tagged/non-tagged IDE drives as MASTER/SLAVE fail on first write to SLAVE >Confidential: no >Severity: serious >Priority: medium >Responsible: sos >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Nov 18 10:00:03 PST 2002 >Closed-Date: Mon Apr 28 11:39:41 PDT 2003 >Last-Modified: Mon Apr 28 11:39:41 PDT 2003 >Originator: Stefan Esser >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD StefanEsser 5.0-CURRENT FreeBSD 5.0-CURRENT #4: Mon Nov 18 18:20:40 CET 2002 se@FreeBSD.org:/usr/src/sys/i386/compile/ISDN686 i386 atapci0: port 0x9000-0x900f at device 17.1 on pci0 ata0: iobase=0x01f0 altiobase=0x03f6 bmaddr=0x9000 ata0: mask=03 ostat0=50 ostat2=50 ata0-master: ATAPI 00 00 ata0-slave: ATAPI 00 00 ata0: mask=03 stat0=50 stat1=50 ata0-master: ATA 01 a5 ata0-slave: ATA 01 a5 ata0: devices=03 ata0: at 0x1f0 irq 14 on atapci0 ata1: iobase=0x0170 altiobase=0x0376 bmaddr=0x9008 ata1: mask=03 ostat0=50 ostat2=50 ata1-master: ATAPI 14 eb ata1-slave: ATAPI 14 eb ata1: mask=03 stat0=00 stat1=00 ata1: devices=0c ata1: at 0x170 irq 15 on atapci0 ata: ata0 already exists; skipping it ata: ata1 already exists; skipping it ad0: ATA-5 disk at ata0-master ad1: ATA-4 disk at ata0-slave ata1-master: piomode=4 dmamode=2 udmamode=3 dmaflag=1 ata1-master: DMA limited to UDMA33, non-ATA66 cable or device ata1-master: success setting UDMA2 on VIA chip acd0: DVD-ROM drive at ata1 as master acd0: Medium: CD-ROM 120mm data disc ata1-slave: piomode=4 dmamode=2 udmamode=2 dmaflag=1 ata1-slave: success setting UDMA2 on VIA chip acd1: CD-RW drive at ata1 as slave >Description: Mixing an 45GB IBM DTLA (UDMA100) as master and an old 8GB Maxtor (UDMA33) as slave makes the Maxtor fail, if tags are enabled on the IBM. The driver falls back to PIO mode for the Maxtor, which becomes usable in that mode. Disabling tags on the IBM makes the Maxtor co-exist with the IBM, which seems to indicate a driver problem. (E.g. tagged commands sent to the IBM leaves state in the controller or driver that is unsuitable for the Maxtor.) >How-To-Repeat: Configure an IDE bus with tagged master, non-tagged slave and enable IDE tagged command queuing via "hw.ata.tags=1" in /boot/loader.conf. First write to the slave causes a hang until the retries are exhausted. Same setup works fine if "hw.ata.tags=0". >Fix: Unknown. Maybe disabling tags for all drives on an IDE cable should be attempted as recovery procedure before falling back to PIO. >Release-Note: >Audit-Trail: Responsible-Changed-From-To: freebsd-bugs->sos Responsible-Changed-By: se Responsible-Changed-When: Mon Nov 18 12:45:57 PST 2002 Responsible-Changed-Why: Assign PR opened by me to Søren Schmidt. http://www.freebsd.org/cgi/query-pr.cgi?pr=45413 State-Changed-From-To: open->closed State-Changed-By: sos State-Changed-When: Mon Apr 28 11:38:41 PDT 2003 State-Changed-Why: Belived to be fixed in -stable. http://www.freebsd.org/cgi/query-pr.cgi?pr=45413 >Unformatted: