LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 724|回复: 9

hdparm的问题

[复制链接]
发表于 2005-3-23 22:19:09 | 显示全部楼层 |阅读模式
bash-2.05b# /sbin/hdparm -d1 -c3 -u1 -m16 -k1 -X69 /dev/hda

/dev/hda:
setting 32-bit IO_support flag to 3
setting multcount to 16
setting unmaskirq to 1 (on)
setting using_dma to 1 (on)
HDIO_SET_DMA failed: Operation not permitted
setting keep_settings to 1 (on)
setting xfermode to 69 (UltraDMA mode5)
multcount    = 16 (on)
IO_support   =  3 (32-bit w/sync)
unmaskirq    =  1 (on)
using_dma    =  0 (off)
keepsettings =  1 (on)
出现这样的提示呢。我的硬盘是ATA100的啊!!
这是我的内核关于ATA部分的设置:
# ATA/ATAPI/MFM/RLL support
#
CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
# CONFIG_IDEDISK_MULTI_MODE is not set
CONFIG_BLK_DEV_IDECD=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
# CONFIG_IDE_TASK_IOCTL is not set
# CONFIG_IDE_TASKFILE_IO is not set

#
# IDE chipset support/bugfixes
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_CMD640 is not set
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
# CONFIG_BLK_DEV_OFFBOARD is not set
CONFIG_BLK_DEV_GENERIC=y
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_IDEDMA_FORCED is not set
# CONFIG_IDEDMA_PCI_AUTO is not set
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
# CONFIG_BLK_DEV_AMD74XX is not set
# CONFIG_BLK_DEV_ATIIXP is not set
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
# CONFIG_BLK_DEV_SC1200 is not set
# CONFIG_BLK_DEV_PIIX is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
# CONFIG_BLK_DEV_PDC202XX_NEW is not set
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_IDE_ARM is not set
CONFIG_BLK_DEV_IDEDMA=y
# CONFIG_IDEDMA_IVB is not set
# CONFIG_IDEDMA_AUTO is not set
# CONFIG_BLK_DEV_HD is not set
是不是内核设置的错误呢??
兄弟们帮忙啊!!!!
发表于 2005-3-23 22:41:29 | 显示全部楼层
dma是关的???
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-24 11:30:25 | 显示全部楼层
怎么打开啊,还望大哥指教!!!
回复 支持 反对

使用道具 举报

发表于 2005-3-24 12:25:49 | 显示全部楼层
内核中关于 主板IDE控制器 的那里有没有正确选择?

比如我是kt266的主板,我要在相应的地方选中 VIA82XXX
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-3-24 21:50:44 | 显示全部楼层
能不能麻烦大哥,给看看具体的是在哪项选啊,这是我lspci的信息:
bash-2.05b# lspci
00:00.0 Host bridge: Intel Corp. 82845 845 (Brookdale) Chipset Host Bridge (rev 04)
00:01.0 PCI bridge: Intel Corp. 82845 845 (Brookdale) Chipset AGP Bridge (rev 04)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB PCI Bridge (rev 05)
00:1f.0 ISA bridge: Intel Corp. 82801BA ISA Bridge (LPC) (rev 05)
00:1f.1 IDE interface: Intel Corp. 82801BA IDE U100 (rev 05)
00:1f.2 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #1) (rev 05)
00:1f.3 SMBus: Intel Corp. 82801BA/BAM SMBus (rev 05)
00:1f.4 USB Controller: Intel Corp. 82801BA/BAM USB (Hub #2) (rev 05)
00:1f.5 Multimedia audio controller: Intel Corp. 82801BA/BAM AC'97 Audio (rev 05)

01:00.0 VGA compatible controller: nVidia Corporation RIVA TNT2 Model 64 (rev 15)
02:02.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)
先谢谢了!!!
对了,我的内核是2.6.9的!!!
回复 支持 反对

使用道具 举报

发表于 2005-3-24 22:10:25 | 显示全部楼层
你操作系统默认的 内核 能否使用你的命令打开 DMA?
当硬件出现问题的时候,有时候会出现无法打开DMA的情况。
回复 支持 反对

使用道具 举报

发表于 2005-3-24 23:32:26 | 显示全部楼层
linux-2.6.9
Device Drivers --->
   ATA/ATAPI/MFM/RLL support  --->
        <*> ATA/ATAPI/MFM/RLL support                                              │ │   
  │ │ <*>   Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support                  │ │   
  │ │ ---     Please see Documentation/ide.txt for help/info on IDE drives       │ │   
  │ │ [ ]     Support for SATA (deprecated; conflicts with libata SATA driver)   │ │   
  │ │ [ ]     Use old disk-only driver on primary interface                      │ │   
  │ │ <*>     Include IDE/ATA-2 DISK support                                     │ │   
  │ │ [ ]       Use multi-mode by default                                        │ │   
  │ │ <*>     Include IDE/ATAPI CDROM support                                    │ │   
  │ │ < >     Include IDE/ATAPI TAPE support (EXPERIMENTAL)                      │ │   
  │ │ < >     Include IDE/ATAPI FLOPPY support                                   │ │   
  │ │ <*>     SCSI emulation support                                             │ │   
  │ │ [ ]     IDE Taskfile Access
        
  •      IDE Taskfile IO (EXPERIMENTAL)                                     │ │   
      │ │ ---     IDE chipset support/bugfixes                                       │ │   
      │ │ <*>     generic/default IDE chipset support                                │ │   
      │ │ [ ]     CMD640 chipset bugfix/support                                      │ │   
      │ │
  •      PCI IDE chipset support                                            │ │   
      │ │ [ ]       Sharing PCI IDE interrupts support                               │ │   
      │ │ [ ]       Boot off-board chipsets first support                            │ │   
    这个也要选上
      │ │ <*>       Generic PCI IDE Chipset Support                                  │ │   
      │ │ < >       OPTi 82C621 chipset enhanced support (EXPERIMENTAL)              │ │   
      │ │ < >       RZ1000 chipset bugfix/support                                    │ │   
      这个也的打开
      │ │
  •        Generic PCI bus-master DMA support                               │ │   
      │ │ [ ]         Force enable legacy 2.0.X HOSTS to use DMA  
      在这个务必打开
            
  •          Use PCI DMA by default when available                          │ │   
      │ │ [ ]           Enable DMA only for disks                                    │ │   
      这里选择你特定的芯片组,你的应该和我的一样
      │ │ < >         AEC62XX chipset support                                        │ │   
      │ │ < >         ALI M15x3 chipset support                                      │ │   
      │ │ < >         AMD and nVidia IDE support                                     │ │   
      │ │ < >         ATI IXP chipset IDE support                                    │ │   
      │ │ < >         CMD64{3|6|8|9} chipset support                                 │ │   
      │ │ < >         Compaq Triflex IDE support                                     │ │   
      │ │ < >         CY82C693 chipset support                                       │ │   
      │ │ < >         Cyrix CS5510/20 MediaGX chipset support (VERY EXPERIMENTAL)    │ │   
      │ │ < >         Cyrix/National Semiconductor CS5530 MediaGX chipset support    │ │   
      │ │ < >         HPT36X/37X chipset support                                     │ │   
      │ │ < >         National SCx200 chipset support                                │ │   
      │ │ <*>         Intel PIIXn chipsets support                                   │ │   
      │ │ < >         NS87415 chipset support                                        │ │   
      │ │ < >         PROMISE PDC202{46|62|65|67} support                            │ │   
      │ │ < >         PROMISE PDC202{68|69|70|71|75|76|77} support                   │ │   
      │ │ < >         ServerWorks OSB4/CSB5/CSB6 chipsets support                    │ │   
      │ │ < >         Silicon Image chipset support                                  │ │   
      │ │ < >         SiS5513 chipset support                                        │ │   
      │ │ < >         SLC90E66 chipset support HPT34X chipset support
            < >         Tekram TRM290 chipset support                                  │ │   
      │ │ < >         VIA82CXXX chipset support                                      │ │   
      │ │ [ ]     IGNORE word93 Validation BITS
  • 回复 支持 反对

    使用道具 举报

     楼主| 发表于 2005-3-25 09:58:02 | 显示全部楼层
    哈哈,谢谢大哥了,够详细的了,等回家试试去,估计就是内核编译时的问题!!!
    回复 支持 反对

    使用道具 举报

    发表于 2005-3-30 20:07:17 | 显示全部楼层
    harold正解,鼓掌。

    to zhongyong35:
    # CONFIG_BLK_DEV_PIIX is not set

    从你第一个帖子里面,看到这一句肯定是错的了。
    回复 支持 反对

    使用道具 举报

     楼主| 发表于 2005-3-31 10:37:54 | 显示全部楼层
    哦,在两位大哥的帮助下已经成功解决,速度提高了7倍啊!!!
    呵呵!!
    回复 支持 反对

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    快速回复 返回顶部 返回列表