打印

这个机子的dma怎么搞定

这个机子的dma怎么搞定

这种问题好像有帖子提过了,但好像没解决过.我现在的麻烦与之前的那位仁兄类似。

也许与硬件无关,也许有关。
我的麻烦是这样的,现在由于某种原因,我的机子上挂了两个IDE硬盘,并且,由于我是915G的主板,这块该死的板子只有一个IDE口,因为要光驱,只能用了一个随主板送的SATA转IDE线连上光驱。现在无法打开DMA,我试过多种方法,包括编译的时候去掉ide_generic模块,结果是……,出现了这以下提示:
[code:1]Alert!/dev/hd5 does not exist.Dropping to a shell.[/code:1]我保证没设错menu.lst,之前的内核就是用这个menu.lst。顺便说一下,我在用光盘安装时发现只能用2.4的内核才能检出那个用SATA转IDE线连的光驱,2.6的内核不管sarge还是etch的盘(我怎么会下两张盘?)都不行。

TOP

看看你的硬盘是否都能mount,然后看看hdparm的配置,
我的hdparm的配置是
引用:
# /etc/conf.d/hdparm: config file for /etc/init.d/hdparm

# You can either set hdparm arguments for each drive using hdX_args,
# discX_args, cdromX_args and genericX_args, e.g.
#
hda_args="-d1 -X69 -c1"
# disc1_args="-d1"
cdrom0_args="-d1"

# or, you can set hdparm options for ALL drives using all_args, e.g.
#
all_args="-d1"
man hdparm的说明
引用:
       -d     Disable/enable the "using_dma" flag for this drive.  This option
              now  works  with  most combinations of drives and PCI interfaces
              which support DMA and which are known to the kernel IDE  driver.
              It  is also a good idea to use the appropriate -X option in com-
              bination with -d1 to ensure that the drive itself is  programmed
              for the correct DMA mode, although most BIOSs should do this for
              you at boot time.  Using DMA nearly always gives the  best  per-
              formance, with fast I/O throughput and low CPU usage.  But there
              are at least a few configurations of  chipsets  and  drives  for
              which  DMA  does not make much of a difference, or may even slow
              things down (on really messed up hardware!).  Your  mileage  may
              vary.

TOP

我再试试,不过好像不能mount。
春风不疑到天涯,二月山城未见花。残雪压枝犹有橘,冻雷惊笋欲抽芽。夜闻归雁生思乡,病入新年感物华。曾是洛阳花下客,野芳虽晚不须嗟。

TOP

刚才试了一下官方的内核,装的很方便,apt-get install kernel-image就行了,但重起后,马上出现与上面描述一样的情况。
[code:1]
dmesg|grep -i ide
...................
ide0:I/O resource 0x1F0-0x1F7 not Free
ide0:ports already in use sking probo
....................
dmesg|grep -i 0x1F0
ata1:SATA max............[/code:1]于是把光驱禁了,再试,结果可以进系统了而且DMA也打开了。但我总不能不用光驱吧,所以不知道有没有更好的方法可以解决这个问题。
春风不疑到天涯,二月山城未见花。残雪压枝犹有橘,冻雷惊笋欲抽芽。夜闻归雁生思乡,病入新年感物华。曾是洛阳花下客,野芳虽晚不须嗟。

TOP