From owner-freebsd-bugs Wed Jun 12 13:40:15 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CFD7237B410 for ; Wed, 12 Jun 2002 13:40:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g5CKe2J12234; Wed, 12 Jun 2002 13:40:02 -0700 (PDT) (envelope-from gnats) Received: from smtp.noos.fr (verlaine.noos.net [212.198.2.73]) by hub.freebsd.org (Postfix) with ESMTP id 6EDFB37B400 for ; Wed, 12 Jun 2002 13:30:02 -0700 (PDT) Received: (qmail 17767845 invoked by uid 0); 12 Jun 2002 20:30:00 -0000 Received: from unknown (HELO gits.gits.dyndns.org) ([212.198.230.194]) (envelope-sender ) by 212.198.2.73 (qmail-ldap-1.03) with SMTP for ; 12 Jun 2002 20:30:00 -0000 Received: from gits.gits.dyndns.org (mquaslh5eoyz22g5@localhost [127.0.0.1]) by gits.gits.dyndns.org (8.12.3/8.12.3) with ESMTP id g5CKTxa6033540 for ; Wed, 12 Jun 2002 22:29:59 +0200 (CEST) (envelope-from root@gits.dyndns.org) Received: (from root@localhost) by gits.gits.dyndns.org (8.12.3/8.12.3/Submit) id g5CKTxEE033539; Wed, 12 Jun 2002 22:29:59 +0200 (CEST) (envelope-from root) Message-Id: <200206122029.g5CKTxEE033539@gits.gits.dyndns.org> Date: Wed, 12 Jun 2002 22:29:59 +0200 (CEST) From: Cyrille Lefevre Reply-To: Cyrille Lefevre To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: misc/39202: ata(4) refer to sysctl(8) instead of atacontrol(8). Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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