From owner-freebsd-current Fri Jan 28 9: 9:16 2000 Delivered-To: freebsd-current@freebsd.org Received: from dead-end.net (dead-end.net [216.15.131.2]) by hub.freebsd.org (Postfix) with ESMTP id 7AA8E15B7A for ; Fri, 28 Jan 2000 09:09:05 -0800 (PST) (envelope-from rock@dead-end.net) Received: from mailto.dead-end.net (dead-end.net [216.15.131.2]) by dead-end.net (8.9.3/DEAD-END/1999102300-Deliver) with ESMTP id SAA44840 for ; Fri, 28 Jan 2000 18:08:45 +0100 (CET) (envelope-from rock@dead-end.net) Received: from server.rock.net (p3E9C361A.dip.t-dialin.net [62.156.54.26]) by mailto.dead-end.net (8.9.3/DEAD-END/2000011500-Customer) with ESMTP id SAA44836 for ; Fri, 28 Jan 2000 18:08:44 +0100 (CET) (envelope-from rock@dead-end.net) Received: from dead-end.net (laptop [172.23.7.128]) by server.rock.net (8.9.3+Sun/8.9.3) with ESMTP id SAA25131 for ; Fri, 28 Jan 2000 18:08:55 +0100 (MET) Message-ID: <3891BF08.35C20143@dead-end.net> Date: Fri, 28 Jan 2000 17:08:40 +0100 From: "D. Rock" X-Mailer: Mozilla 4.7 [de] (Win98; U) X-Accept-Language: de, en MIME-Version: 1.0 To: current@freebsd.org Subject: ata: panic with new sysctl variable Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, just noticed the new sysctl variable for ata. I just wanted to use the new way for disabling DMA on my disk (has some strange problems, even under windows). Previously I just commented out the ata_dmainit() lines in ata_disk.c, now I wanted to set it with sysctl: sysctl -w hw.atamodes="pio,dma,dma,dma" but this paniced my machine. I later discovered that there is no sanity check during setting the new modes: The machine in question didn't have a secondary IDE controller, but the variables were set without a range check. My solution was simple. Just use sysctl -w hw.atamodes="pio,dma" but I think, the ata driver should range check the settings. Daniel To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message