Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Nov 2000 22:16:34 +0100
From:      "lango" <lango@home.se>
To:        <freebsd-questions@FreeBSD.ORG>
Subject:   Disable DMA in kernel?
Message-ID:  <000a01c04ced$d6b5e960$0100a8c0@lango>

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

[-- Attachment #1 --]
Yeah I am a freeBSD newbie and I have a lame disk that doesn't work very well with DMA although it says it does. I know how to disable dma with the command sysctl -w hw.atamode=dma,--,pio,pio. ( I have a 19 Gb disk on ata0 and a 8 Gb disk and a Atapi cdrom on ata1, Win2000 on disk0ata0 and freebsd on disk0ata1, I have the bootstrap on disk1ata1). I cant't get it to work automatically in the boot process when i use sysctl.conf in /etc. It say's in the man that sysctl should read in this file but it doenst change the settings. my sysctl.conf look like this
hw.atamode=dma,---,pio,pio
I can't use DMA since it produces a lot of write errors so I want a way to disabel DMA in the kernel/bootprocess so you dont have to type it in every time. The ideal thing would be to disable it when i compile a new kernel since it produces write errors early in the boot process...

[-- Attachment #2 --]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4522.1800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV><FONT face=Arial size=2>Yeah I am a freeBSD newbie and I have a lame disk 
that doesn't work very well with DMA although it says it does. I know how to 
disable dma with the command sysctl -w hw.atamode=dma,--,pio,pio. ( I have a 19 
Gb disk on&nbsp;ata0 and a 8&nbsp;Gb disk and a&nbsp;Atapi cdrom on ata1, 
Win2000 on disk0ata0 </FONT><FONT face=Arial size=2>and freebsd on disk0ata1, I 
have the bootstrap on disk1ata1</FONT><FONT face=Arial size=2>).&nbsp;I cant't 
get it to work automatically in the boot process&nbsp;when i use sysctl.conf in 
/etc. It say's in the man that sysctl should read in this file but it doenst 
change the settings. my sysctl.conf look like this</FONT></DIV>
<DIV><FONT face=Arial size=2>hw.atamode=dma,---,pio,pio</FONT></DIV>
<DIV><FONT face=Arial size=2>I can't use DMA&nbsp;since it produces a lot of 
write errors so I want a way to disabel DMA in the kernel/bootprocess so you 
dont have to type it in every time. The ideal thing would be to disable it when 
i compile a new kernel since it produces write errors early in the boot 
process...</FONT></DIV></BODY></HTML>

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000a01c04ced$d6b5e960$0100a8c0>