Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Dec 2003 22:07:16 -0000
From:      "Mark Dixon" <mark@markdnet.demon.co.uk>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/60670: Aacontrol doesn't know about WDMA1
Message-ID:  <1072649236@lizacnet.demon.co.uk>
Resent-Message-ID: <200312282210.hBSMAIOg076513@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         60670
>Category:       bin
>Synopsis:       Aacontrol doesn't know about WDMA1
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 28 14:10:18 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mark Dixon
>Release:        FreeBSD 5.2-RC i386
>Organization:
>Environment:


System: FreeBSD lizacnet.demon.co.uk 5.2-RC FreeBSD 5.2-RC #20: Mon Dec 22 23:47:06 GMT 2003     mark@lizacnet.demon.co.uk:/usr/obj/usr/src/sys/MARKS i386

Relevent bit of dmesg:

GEOM: create disk afd0 dp=0xc3b0626c
afd0: REMOVABLE <LS-120 VER5 00 UHD Floppy> at ata1-slave WDMA1



>Description:


The atacontrol program returns the mode of WDMA1 devices as ?????. I think it should be WDMA1.

e.g. 

abox# atacontrol mode 1
Master = BIOSPIO
Slave  = ???

should be:

abox# atacontrol mode 1
Master = BIOSPIO
Slave  = WDMA1





>How-To-Repeat:


Run atacontrol with a WDMA1 device.


>Fix:


Apply this diff to src/sbin/atacontrol/atacontrol.c

--- atacontrol.bak      Sun Dec 28 22:01:33 2003
+++ atacontrol.c        Sun Dec 28 22:02:49 2003
@@ -59,6 +59,7 @@
        case ATA_PIO2: return "PIO2";
        case ATA_PIO3: return "PIO3";
        case ATA_PIO4: return "PIO4";
+       case ATA_WDMA1: return "WDMA1";
        case ATA_WDMA2: return "WDMA2";
        case ATA_UDMA2: return "UDMA33";
        case ATA_UDMA4: return "UDMA66";



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1072649236>