Date: Wed, 12 Jun 2002 22:29:59 +0200 (CEST) From: Cyrille Lefevre <cyrille.lefevre@laposte.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: misc/39202: ata(4) refer to sysctl(8) instead of atacontrol(8). Message-ID: <200206122029.g5CKTxEE033539@gits.gits.dyndns.org>
next in thread | raw e-mail | index | archive | help
>Number: 39202
>Category: misc
>Synopsis: ata(4) refer to sysctl(8) instead of atacontrol(8).
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: doc-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 12 13:40:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator: Cyrille Lefevre
>Release: FreeBSD 4.6-RC i386
>Organization:
ACME
>Environment:
System: FreeBSD gits 4.6-RC FreeBSD 4.6-RC #11: Sun Jun 9 19:48:37 CEST 2002 root@gits:/disk2/freebsd/src/sys/compile/CUSTOM i386
>Description:
ata(4) says :
To see the devices' current access modes, use the command line:
sysctl hw.atamodes
which results in the modes of the devices being displayed as a string
like this:
hw.atamodes: dma,pio,---,pio,dma,---,dma,---, (--- = no device)
This means that ata0-master is in DMA mode, ata0-slave is in PIO mode,
and so forth. You can set the mode with sysctl and a string like the
above, for example:
sysctl hw.atamodes=pio,pio,---,dma,pio,---,dma,---,
The new modes are set as soon as the sysctl command returns.
while it should refer to atacontrol(8) to change ata modes
since the sysctl hw.atamodes doesn't exists anymore.
>How-To-Repeat:
man 4 ata
>Fix:
Index: ata.4
===================================================================
RCS file: /home/ncvs/src/share/man/man4/ata.4,v
retrieving revision 1.3.2.14
diff -u -r1.3.2.14 ata.4
--- ata.4 10 Feb 2002 07:24:08 -0000 1.3.2.14
+++ ata.4 12 Jun 2002 20:24:44 -0000
@@ -160,22 +160,23 @@
.Pp
To see the devices' current access modes, use the command line:
.Pp
-.Dl sysctl hw.atamodes
+.Dl atacontrol mode 0
.Pp
which results in the modes of the devices being displayed as a string
like this:
.Pp
-.Dl hw.atamodes: dma,pio,---,pio,dma,---,dma,---, (--- = no device)
+.Dl Master = WDMA2
+.Dl Slave = PIO4
.Pp
This means that ata0-master is in DMA mode,
ata0-slave is in PIO mode,
and so forth.
-You can set the mode with sysctl and a string like the above,
+You can set the mode with atacontrol and a string like the above,
for example:
.Pp
-.Dl sysctl hw.atamodes=pio,pio,---,dma,pio,---,dma,---,
+.Dl atacontrol mode 0 PIO4 PIO4
.Pp
-The new modes are set as soon as the sysctl command returns.
+The new modes are set as soon as the atacontrol command returns.
.Sh FILES
.Bl -tag -width "/sys/i386/conf/GENERIC " -compact
.It Pa /dev/ad*
@@ -219,6 +220,8 @@
unless they are run at the non-UDMA4 device's lower speed.
The driver has been designed to handle that kind of setup but lots of
older devices do not like this.
+.Sh SEE ALSO
+.Xr atacontrol 8
.Sh HISTORY
The
.Nm
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206122029.g5CKTxEE033539>
