Results 1 to 6 of 6

Thread: dma probs with 2.4.22 kernel

  1. #1
    Guest

    dma probs with 2.4.22 kernel

    Hi I'm experiencing some crazy CPU usage whenever I'm doing heavy I/O operations (such as moving big files from one location to another, using jack to rip a CD, apt-get update, apt-get upgrade) on my harddisk. So I'm assuming DMA isn't enabled, however I've checked all the options (that I believe to be applicable) when I did my make xconfig.

    I've also tried using hdparm, but get these results:
    Code:
    hdparm -d1 /dev/hdb2
     
    /dev/hdb2:
     setting using_dma to 1 (on)
     HDIO_SET_DMA failed: Invalid argument
     using_dma    =  0 (off)
    also:
    Code:
    hdparm -c1 -d1 /dev/hdb2
     
    /dev/hdb2:
     setting 32-bit IO_support flag to 1
     HDIO_SET_32BIT failed: Invalid argument
     setting using_dma to 1 (on)
     HDIO_SET_DMA failed: Invalid argument
     IO_support   =  0 (default 16-bit)
     using_dma    =  0 (off)
    Any ideas? Thanks

  2. #2

    Re:dma probs with 2.4.22 kernel

    Try this take a look in /etc/sysconfig/harddisks (open with your pavorite text editor" and uncomment any lines. like #DMA=1 (working from memory) that is and easy way to enable/check that DMA is enabled

    Hope this helps you ;D

  3. #3

    Re:dma probs with 2.4.22 kernel

    humms - it works with mine.

    here are (most) the options i used in my config, the ones i omitted were for specific chipsets.
    Code:
    #
    # IDE, ATA and ATAPI Block devices
    #
    CONFIG_BLK_DEV_IDE=y
    
    
    CONFIG_BLK_DEV_IDEDISK=y
    CONFIG_IDEDISK_MULTI_MODE=y
    CONFIG_BLK_DEV_IDECD=m
    CONFIG_BLK_DEV_IDEFLOPPY=m
    CONFIG_BLK_DEV_IDESCSI=m
    CONFIG_BLK_DEV_IDEPCI=y
    CONFIG_BLK_DEV_GENERIC=y
    CONFIG_IDEPCI_SHARE_IRQ=y
    CONFIG_BLK_DEV_IDEDMA_PCI=y
    # CONFIG_BLK_DEV_OFFBOARD is not set
    # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
    CONFIG_IDEDMA_PCI_AUTO=y
    # CONFIG_IDEDMA_ONLYDISK is not set
    CONFIG_BLK_DEV_IDEDMA=y
    CONFIG_BLK_DEV_SIIMAGE=y
    CONFIG_BLK_DEV_VIA82CXXX=y
    # CONFIG_IDE_CHIPSETS is not set
    CONFIG_IDEDMA_AUTO=y
    # CONFIG_IDEDMA_IVB is not set
    # CONFIG_DMA_NONPCI is not set
    CONFIG_BLK_DEV_IDE_MODES=y
    # CONFIG_BLK_DEV_ATARAID is not set

  4. #4
    Guest

    Re:dma probs with 2.4.22 kernel

    [quote author=The Great Mojo Jojo link=board=1;threadid=8123;start=0#msg73841 date=1068774113]
    Try this take a look in /etc/sysconfig/harddisks (open with your pavorite text editor" and uncomment any lines. like #DMA=1 (working from memory) that is and easy way to enable/check that DMA is enabled

    Hope this helps you ;D
    [/quote]

    Hi, I don't have such a file in my etc directory, I've done a locate on it and it doesn't show up. I'm assuming you're not using Debian (or I'm not using whichever distro you are).

  5. #5

    Re:dma probs with 2.4.22 kernel

    I'm using Fedora so I thought they could kinda be the same

  6. #6
    Guest

    Re:dma probs with 2.4.22 kernel

    [quote author=pbharris link=board=1;threadid=8123;start=0#msg73842 date=1068774535]
    humms - it works with mine.

    here are (most) the options i used in my config, the ones i omitted were for specific chipsets.
    Code:
    #
    # IDE, ATA and ATAPI Block devices
    #
    CONFIG_BLK_DEV_IDE=y
    
    
    CONFIG_BLK_DEV_IDEDISK=y
    CONFIG_IDEDISK_MULTI_MODE=y
    CONFIG_BLK_DEV_IDECD=m
    CONFIG_BLK_DEV_IDEFLOPPY=m
    CONFIG_BLK_DEV_IDESCSI=m
    CONFIG_BLK_DEV_IDEPCI=y
    CONFIG_BLK_DEV_GENERIC=y
    CONFIG_IDEPCI_SHARE_IRQ=y
    CONFIG_BLK_DEV_IDEDMA_PCI=y
    # CONFIG_BLK_DEV_OFFBOARD is not set
    # CONFIG_BLK_DEV_IDEDMA_FORCED is not set
    CONFIG_IDEDMA_PCI_AUTO=y
    # CONFIG_IDEDMA_ONLYDISK is not set
    CONFIG_BLK_DEV_IDEDMA=y
    CONFIG_BLK_DEV_SIIMAGE=y
    CONFIG_BLK_DEV_VIA82CXXX=y
    # CONFIG_IDE_CHIPSETS is not set
    CONFIG_IDEDMA_AUTO=y
    # CONFIG_IDEDMA_IVB is not set
    # CONFIG_DMA_NONPCI is not set
    CONFIG_BLK_DEV_IDE_MODES=y
    # CONFIG_BLK_DEV_ATARAID is not set
    [/quote]

    Hi, I just recompiled my kernel and although it seems like it's *much* speedier than before when I perform the aforementioned operations, there's still a little delay in everything. The only options that I didn't have enabled from your .config were:
    CONFIG_BLK_DEV_SIIMAGE=y
    CONFIG_BLK_DEV_VIA82CXXX=y
    which I believed to be chipset stuff which I'm clueless as to whether I have or do not.

Similar Threads

  1. namad crash, but not sure :-)
    By GNEEOT in forum Ubuntu / Debian
    Replies: 4
    Last Post: 01-27-2007, 05:31 PM
  2. getgrnam failed for$Enabling swap space
    By infinite_root in forum Linux - General Topics
    Replies: 8
    Last Post: 11-15-2003, 07:07 AM
  3. Redhat 9 reboots by it self
    By in forum Linux - General Topics
    Replies: 22
    Last Post: 10-14-2003, 02:54 PM
  4. Sony Microvault, and Red Hat 9
    By vwgtiturbo in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 08-29-2003, 11:13 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •