Enabling DMA on an Intel 856PE chipset.

Enabling DMA on an Intel 856PE chipset.

Post by Scott Rayne » Sat, 03 Jul 2004 23:47:27



Hi all,

I've searched and searched on how to get DMA working on my harddrive,
but it's still not working :)

I'm running a Gigabyte 8IPE1000 mobo, which is based on an Intel 865PE
chipset. The controller is an ICH5.

I've got a SATA Seagate 160GB 7200.7 which runs beatifully (50MB/sec),
but the PATA Seagate 80GB Barracuda V (/dev/hdd) runs like dog's
bollocks (2MB/sec).

beast:/home/scottr# hdparm /dev/hdd

/dev/hdd:
  multcount    = 16 (on)
  IO_support   =  0 (default 16-bit)
  unmaskirq    =  0 (off)
  using_dma    =  0 (off)
  keepsettings =  0 (off)
  readonly     =  0 (off)
  readahead    = 256 (on)
  geometry     = 16383/255/63, sectors = 156299375, start = 0
beast:/home/scottr# hdparm -i /dev/hdd

/dev/hdd:

  Model=ST380011A, FwRev=3.04, SerialNo=3JV02WWK
  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
  BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=16
  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156299375
  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
  PIO modes:  pio0 pio1 pio2 pio3 pio4
  DMA modes:  mdma0 mdma1 mdma2
  UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
  AdvancedPM=no WriteCache=enabled
  Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:

  * signifies the current active mode

beast:/home/scottr#

Problem is, when I try to enable DMA I get:

beast:/home/scottr# hdparm -d1 /dev/hdd

/dev/hdd:
  setting using_dma to 1 (on)
  HDIO_SET_DMA failed: Operation not permitted
  using_dma    =  0 (off)
beast:/home/scottr#

I've compiled my own 2.6.6 kernel after downloading the source deb from
the Debian archive.

I've selected the follwing options, which I read that I needed from many
many sources:
CONFIG_IDE_GENERIC = y
CONFIG_BLK_DEV_IDEPCI = y
CONFIG_BLK_DEV_GENERIC = y
CONFIG_BLK_DEV_IDEDMA_PCI = y
CONFIG_IDEDMA_PCI_AUTO = y
CONFIG_BLK_DEV_PIIX = y
and also for the SATA support:
CONFIG_SCSI_ATA_PIIX = y

I'm pretty sure this is all I need - am I missing something? I'm running
an up to date Debian Sarge. Or is this an issue I should be taking
somewhere else?

Any help is appreciated... I'm what you'd call an advanced Windows user
who's trying desperately to migrate, but this is slowing things down a
bit :)

Cheers,

Scott Raynel.

 
 
 

Enabling DMA on an Intel 856PE chipset.

Post by Scott Rayne » Sat, 03 Jul 2004 23:53:25


This is also probably useful information:

beast:/home/scottr# lspci
0000:00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM
Controller/Host-Hub Interface (rev 02)
0000:00:01.0 PCI bridge: Intel Corp. 82865G/PE/P PCI to AGP Controller
(rev 02)
0000:00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB
UHCI #1 (rev 02)
0000:00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB
UHCI #2 (rev 02)
0000:00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB
UHCI #3 (rev 02)
0000:00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB
UHCI #4 (rev 02)
0000:00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2
EHCI Controller (rev 02)
0000:00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface
to PCI Bridge (rev c2)
0000:00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge
(rev 02)
0000:00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150
Storage Controller (rev 02)
0000:00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller
(rev 02)
0000:01:00.0 VGA compatible controller: nVidia Corporation NV31 [GeForce
FX 5600] (rev a1)
0000:02:02.0 Multimedia audio controller: Creative Labs SB Audigy (rev 04)
0000:02:02.1 Input device controller: Creative Labs SB Audigy MIDI/Game
port (rev 04)
0000:02:02.2 FireWire (IEEE 1394): Creative Labs SB Audigy FireWire Port
(rev 04)
0000:02:04.0 Ethernet controller: Realtek Semiconductor Co., Ltd.
RTL-8139/8139C/8139C+ (rev 10)
beast:/home/scottr#

Thanks again,

Scott.

 
 
 

Enabling DMA on an Intel 856PE chipset.

Post by anc » Mon, 05 Jul 2004 05:30:29



> Hi all,

> I've searched and searched on how to get DMA working on my harddrive,
> but it's still not working :)

> I'm running a Gigabyte 8IPE1000 mobo, which is based on an Intel 865PE
> chipset. The controller is an ICH5.

> Any help is appreciated... I'm what you'd call an advanced Windows user
> who's trying desperately to migrate, but this is slowing things down a
> bit :)

> Cheers,

> Scott Raynel.

Try this link.

http://www.linuxmafia.com/faq/Hardware/sata.html

It covers the ICH5 chipset , hope that helps.

 
 
 

Enabling DMA on an Intel 856PE chipset.

Post by Scott Rayne » Mon, 05 Jul 2004 14:47:28




>>Hi all,

>>I've searched and searched on how to get DMA working on my harddrive,
>>but it's still not working :)

>>I'm running a Gigabyte 8IPE1000 mobo, which is based on an Intel 865PE
>>chipset. The controller is an ICH5.

>>Any help is appreciated... I'm what you'd call an advanced Windows user
>>who's trying desperately to migrate, but this is slowing things down a
>>bit :)

>>Cheers,

>>Scott Raynel.

> Try this link.

> http://www.linuxmafia.com/faq/Hardware/sata.html

> It covers the ICH5 chipset , hope that helps.

Thanks for the info. However, the SATA drive is running well - it's the
PATA drive that I can't seem to get working properly. I might have to
bite the bullet and re-install onto the SATA drive instead. I hear the
Debian Installer beta4 has support for SATA and kernel 2.6. Has anyone
had any experience with it? Especially if you are using an ICH5 chipset?

Thanks again,

Scott.

 
 
 

Enabling DMA on an Intel 856PE chipset.

Post by Scott Rayne » Thu, 15 Jul 2004 16:45:45


Here's the fix for anyone who is stuck...

I'm using a Gigabyte 8IPE1000 motherboard, and I had SATA Port 0 mapped
to the Primary IDE channel.

Doing this means that you can't enable DMA on the Secondary IDE channel
either, which is what I was trying to do, so getting rid of the mapping
and changing it back to SATA Port 0 meant that I could set up DMA on my
Primary and Secondary IDE channels. I'm now enjoying 46MB/sec reads off
the PATA drive, and 54MB/sec off the SATA.

The reason I had the SATA drive mapped to the Primary IDE channel was
because I wanted to have the SATA drive as my C: drive in Windows, and
when it installed it set C: as the Primary Master drive, so I had to
remap it. After installing it, I was able to change it back to the SATA
Port setting and Windows was fine.

Hope this helps someone,

Scott.


> Hi all,

> I've searched and searched on how to get DMA working on my harddrive,
> but it's still not working :)

> I'm running a Gigabyte 8IPE1000 mobo, which is based on an Intel 865PE
> chipset. The controller is an ICH5.

> I've got a SATA Seagate 160GB 7200.7 which runs beatifully (50MB/sec),
> but the PATA Seagate 80GB Barracuda V (/dev/hdd) runs like dog's
> bollocks (2MB/sec).

> beast:/home/scottr# hdparm /dev/hdd

> /dev/hdd:
>  multcount    = 16 (on)
>  IO_support   =  0 (default 16-bit)
>  unmaskirq    =  0 (off)
>  using_dma    =  0 (off)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    = 256 (on)
>  geometry     = 16383/255/63, sectors = 156299375, start = 0
> beast:/home/scottr# hdparm -i /dev/hdd

> /dev/hdd:

>  Model=ST380011A, FwRev=3.04, SerialNo=3JV02WWK
>  Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs RotSpdTol>.5% }
>  RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
>  BuffType=unknown, BuffSize=2048kB, MaxMultSect=16, MultSect=16
>  CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=156299375
>  IORDY=on/off, tPIO={min:240,w/IORDY:120}, tDMA={min:120,rec:120}
>  PIO modes:  pio0 pio1 pio2 pio3 pio4
>  DMA modes:  mdma0 mdma1 mdma2
>  UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
>  AdvancedPM=no WriteCache=enabled
>  Drive conforms to: ATA/ATAPI-6 T13 1410D revision 2:

>  * signifies the current active mode

> beast:/home/scottr#

> Problem is, when I try to enable DMA I get:

> beast:/home/scottr# hdparm -d1 /dev/hdd

> /dev/hdd:
>  setting using_dma to 1 (on)
>  HDIO_SET_DMA failed: Operation not permitted
>  using_dma    =  0 (off)
> beast:/home/scottr#

> I've compiled my own 2.6.6 kernel after downloading the source deb from
> the Debian archive.

> I've selected the follwing options, which I read that I needed from many
> many sources:
> CONFIG_IDE_GENERIC = y
> CONFIG_BLK_DEV_IDEPCI = y
> CONFIG_BLK_DEV_GENERIC = y
> CONFIG_BLK_DEV_IDEDMA_PCI = y
> CONFIG_IDEDMA_PCI_AUTO = y
> CONFIG_BLK_DEV_PIIX = y
> and also for the SATA support:
> CONFIG_SCSI_ATA_PIIX = y

> I'm pretty sure this is all I need - am I missing something? I'm running
> an up to date Debian Sarge. Or is this an issue I should be taking
> somewhere else?

> Any help is appreciated... I'm what you'd call an advanced Windows user
> who's trying desperately to migrate, but this is slowing things down a
> bit :)

> Cheers,

> Scott Raynel.

 
 
 

1. Getting DMA enabled on the intel 7500 chipset

I have 2 remote servers I'm trying to get DMA enabled on.  Both are the
tyan Thunder i7500 (S2720) motherboard running redhat7.3.  Both have the
latest BIOS which is suppose to fix the problem but didn't.  From
searching the archives and talking to people, its a known problem that is
fixed in one of the -ac patches to 2.4.19.  I've tried several patches
myself and it seems to fix the DMA but when the init scripts start they
get a lot of file not found and never comes fully up.  I used the some
config from the stock redhat kernel, 2.4.18-3 for 2.4.19 (which works fine
other than the DMA problem) and the patched 2.4.19-acx kernels.  I also
tried the script in the kernel tree that is suppose to apply all the
patches I thought.  It only applied the latest patch which did not work.
It is at least access the root file system.  BTW, I had to mkinitrd images
myself in most cases but in one case, make install seems to have made one.
 The modules are out there in their correct places,
/lib/modules/2.4.19-acx.  Lilo knows to load the initrd image, I copied
the same section as for the 2.4.19 entry that works and changed the names
of everything to match the test kernel. Anyone know of what could be
happening to keep these kernels from starting up properly? Thanks for any
input

GO

2. Modelines

3. How to enable DMA on HX-chipsets???

4. Netatalk

5. Can not enable DMA --- Intel 82801 CAM Ultra ATA Storage controller-248A

6. mirrordir question/help

7. Is Ultra DMA EIDE (Fast ATA-2) on Intel 430TX chipset supported?

8. *** Remote Logins ***

9. Intel 915 chipset, DRI and IDE DMA questions

10. GART driver support for generic AGP 3.0 device detection/ enabling & Intel 7205/7505 chipset support

11. Intel 440 BX chipset and IDE DMA problems - please help

12. Ultra DMA, Intel 440LX chipset?

13. GART driver support for generic AGP 3.0 device detect ion/ enabling & Intel 7505 chipset support