Skip to contentSkip to conversation

DMA not supported with Intel ICH4 I/O controller?

DISCUSSION Kathy Frazier 5 participants 14 messages Jul 28, 2003 – Jul 29, 2003

lore
Share & tools
lore
#0 lore raw

I just read on an Intel site
(http://64.143.3.64/downloads/drivers/845/perform/linux/udma.htmthat) "ICH4 requires kernel 2.5.12 or later to enable any DMA mode". Can you guys support or refute this? No wonder I'm having problems with my DMA device on the ASUS P4PE (using Intel 845PE and ICH4 chipsets)! Are there any patches, by chance, against a 2.4.20-8 that will give our system DMA support? Or maybe a patch for 2.4.21? kernel.org shows that the latest (albeit beta) kernel is 2.6.0-test2 . . . I hestiate to use that, because we would like something more stable to ship with our product.

Thanks,

Kathy Frazier
Senior Software Engineer
Max Daetwyler Corporation-Dayton Division
2133 Lyons Road
Miamisburg, OH 45342
Tel #: 937.439-1582 ext 6158
Fax #: 937.439-1592
Email: [email protected]
http://www.daetwyler.com

#1 lore raw
Quoted 9 lines · Kathy Frazier

I just read on an Intel site
(http://64.143.3.64/downloads/drivers/845/perform/linux/udma.htmthat) "ICH4 requires kernel 2.5.12 or later to enable any DMA mode". Can you guys support or refute this? No wonder I'm having problems with my DMA device on the ASUS P4PE (using Intel 845PE and ICH4 chipsets)! Are there any patches, by chance, against a 2.4.20-8 that will give our system DMA support? Or maybe a patch for 2.4.21? kernel.org shows that the latest (albeit beta) kernel is 2.6.0-test2 . . . I hestiate to use that, because we would like something more stable to ship with our product.

I'm running 2.4.21 on this particular machine, and know it worked under 2.4.20.

Bus 0, device 31, function 1:

    IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 1).
      IRQ 10.
      I/O at 0xf000 [0xf00f].
      Non-prefetchable 32 bit memory at 0x20000000 [0x200003ff].
mike:~# hdparm /dev/hda

/dev/hda:

 multcount    = 16 (on)
 IO_support   =  3 (32-bit w/sync)
 unmaskirq    =  0 (off)
 using_dma    =  1 (on)
mike:~# hdparm -Tt /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.37 seconds =345.95 MB/sec
Timing buffered disk reads: 64 MB in 1.88 seconds = 34.04 MB/sec

ASUS P4B533 here, and other similar machines work as well.

Mike

#2 lore raw
Quoted 4 lines
Quoted 4 lines · Kathy Frazier

I just read on an Intel site
(http://64.143.3.64/downloads/drivers/845/perform/linux/udma.htmthat)

"ICH4

Quoted 2 lines
Quoted 2 lines

requires kernel 2.5.12 or later to enable any DMA mode". Can you guys support or refute this? No wonder I'm having problems with my DMA device

on

Quoted 9 lines · Mike Dresser

I'm running 2.4.21 on this particular machine, and know it worked under 2.4.20.

Bus 0, device 31, function 1:

   IDE interface: Intel Corp. 82801DB ICH4 IDE (rev 1).
     IRQ 10.
     I/O at 0xf000 [0xf00f].
     Non-prefetchable 32 bit memory at 0x20000000 [0x200003ff].
Quoted 7 lines
mike:~# hdparm /dev/hda

/dev/hda:

multcount    = 16 (on)
IO_support   =  3 (32-bit w/sync)
unmaskirq    =  0 (off)
using_dma    =  1 (on)

I checked the results of the hdparm on my system and it shows that hda has DMA on . . . Hmmm. I have seen a lot of rumblings concerning DMA and IDE devices in the archives of this mailing list. Is it possible that the ide drivers now set up the hardware correctly for the DMA? But somehow the O/S does not support ICH4 for other DMA devices?

Kathy

#3 lore raw
Quoted 8 lines · Kathy Frazier

I checked the results of the hdparm on my system and it shows that hda has DMA on . . . Hmmm. I have seen a lot of rumblings concerning DMA and IDE devices in the archives of this mailing list. Is it possible that the ide drivers now set up the hardware correctly for the DMA? But somehow the O/S does not support ICH4 for other DMA devices?

Kathy

Ok, what is the DMA device? Hard drive? Can you give details?

Mike

#4 lore raw
Quoted 1 line

Ok, what is the DMA device? Hard drive? Can you give details?

Mike,

It's a proprietary board that we use to allow the PC to send blocks of data to some industrial equipment. We developed the hardware and Linux driver in-house. This same board works (under Linux) on a MoBo using the Intel 815E chipset (Pentium III) with an IHC2 I/O Controller Hub. This is the system I did _all_ my stress testing in. The plan was to ship our product with these ASUS P4PE MoBos (using Intel 845PE and ICH4 controller) and were un-pleasantly surprise when it didn't work.

Kathy

#5 lore raw
Quoted 12 lines · Kathy Frazier
Quoted 1 line

Ok, what is the DMA device? Hard drive? Can you give details?

Mike,

It's a proprietary board that we use to allow the PC to send blocks of data to some industrial equipment. We developed the hardware and Linux driver in-house. This same board works (under Linux) on a MoBo using the Intel 815E chipset (Pentium III) with an IHC2 I/O Controller Hub. This is the system I did _all_ my stress testing in. The plan was to ship our product with these ASUS P4PE MoBos (using Intel 845PE and ICH4 controller) and were un-pleasantly surprise when it didn't work.

Quoted 2 lines

Kathy

Ok, you're definately well beyond my abilities to help then.

Hopefully someone else on the list can.

Mike

#6 lore raw
In reply to Kathy Frazier
Quoted 4 lines · Kathy Frazier

815E chipset (Pentium III) with an IHC2 I/O Controller Hub. This is the system I did _all_ my stress testing in. The plan was to ship our product with these ASUS P4PE MoBos (using Intel 845PE and ICH4 controller) and were un-pleasantly surprise when it didn't work.

Later 2.4 supports ICH4 UDMA

#7 lore raw

Alan,

Thanks for your reply! Later? Could you be more specific? What version? Management is chomping at the bit here. We have invested a lot of effort to move to Linux and get away from Solaris!

Thanks for your help!
Kathy

-----Original Message-----
From: [email protected] [mailto:[email protected]]On Behalf Of Alan Cox
Sent: Monday, July 28, 2003 3:19 PM
To: Kathy Frazier
Cc: Mike Dresser; Linux Kernel Mailing List
Subject: RE: DMA not supported with Intel ICH4 I/O controller?

Quoted 3 lines · Kathy Frazier

815E chipset (Pentium III) with an IHC2 I/O Controller Hub. This is the system I did _all_ my stress testing in. The plan was to ship our product with these ASUS P4PE MoBos (using Intel 845PE and ICH4 controller) and

were

Quoted 1 line

un-pleasantly surprise when it didn't work.

Later 2.4 supports ICH4 UDMA

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

#8 lore raw
Quoted 2 lines · Kathy Frazier

Thanks for your reply! Later? Could you be more specific? What version?

as far as I can tell, 2.4.21 doesn't support it, but 2.4.22-pre8 mentions the chipset in drivers/ide/pci/piix.h. try downloading 2.4.21 and patch it up to 2.4.22-pre8 and see if it works. :-)

Quoted 1 line

Management is chomping at the bit here.

you have my sympathy, for what it's worth.

[ ... ]

Signature · 1 line
Terje
#9 lore raw

Terje,

Quoted 3 lines

as far as I can tell, 2.4.21 doesn't support it, but 2.4.22-pre8 mentions the chipset in drivers/ide/pci/piix.h. try downloading 2.4.21 and patch it up to 2.4.22-pre8 and see if it works. :-)

Thanks. But, from what I'm hearing, this problem with the ICH4 is only concerned with UDMA of IDE devices, so it doesn't sound like an O/S upgrade will help my DMA bus master device (it's NOT an IDE device).

Quoted 3 lines
Quoted 1 line

Management is chomping at the bit here.

you have my sympathy, for what it's worth.

lol. Ahhh, some humor! Thanks!

Regards,
Kathy

#10 lore raw
In reply to Kathy Frazier
Quoted 5 lines · Kathy Frazier

Alan,

Thanks for your reply! Later? Could you be more specific? What version? Management is chomping at the bit here. We have invested a lot of effort to move to Linux and get away from Solaris!

2.4.20 or later should do it. Red Hat 9 current errata, probably the current errata kernels of other vendors too.

hdparm -d /dev/hda will tell you

#11 lore raw
Quoted 5 lines · Alan Cox

2.4.20 or later should do it. Red Hat 9 current errata, probably the current errata kernels of other vendors too.

hdparm -d /dev/hda will tell you

I had thought it was a hard drive as well, since that's what everyone elses problem with DMA turns out to be. Turns out it's a piece of hardware they're working on that has problems.

Unless I misunderstood again :)
Mike

#12 lore raw
In reply to Kathy Frazier

Kathy> It's a proprietary board that we use to allow the PC to Kathy> send blocks of data to some industrial equipment. We Kathy> developed the hardware and Linux driver in-house. This Kathy> same board works (under Linux) on a MoBo using the Intel Kathy> 815E chipset (Pentium III) with an IHC2 I/O Controller Hub. Kathy> This is the system I did _all_ my stress testing in. The Kathy> plan was to ship our product with these ASUS P4PE MoBos Kathy> (using Intel 845PE and ICH4 controller) and were Kathy> un-pleasantly surprise when it didn't work.

It sounds like your board is acting as a PCI bus master. This is completely different from DMA for the IDE controller. External PCI bus masters should be supported by any version of Linux that works on the motherboard at all.

However there are of course many differences between an 815E and an 845PE motherboard, and between the ICH2 and ICH4. You may have borderline PCI compliance or signal integrity issues that only cause problems on the P4PE motherboard. The BIOS on the P4PE may be setting your device up differently from the 815E motherboard. Your device might be confusing the BIOS on the P4PE so that the IRQ routing information (eg in ACPI tables) is screwed up. And so on.

However, I have not heard of any generic problems with external PCI bus masters and the ICH4.

Best,
Roland

#13 lore raw

Roland,

Thanks for your response!

Quoted 2 lines

It sounds like your board is acting as a PCI bus master. This is completely different from DMA for the IDE controller. External PCI

That's correct, we are a PCI bus master device.

Quoted 4 lines

The BIOS on the P4PE may be setting
your device up differently from the 815E motherboard. Your device might be confusing the BIOS on the P4PE so that the IRQ routing information (eg in ACPI tables) is screwed up. And so on.

With respect to the IRQ routing: If the routing was messed up, wouldn't this mean that no IRQs would get through on that device? We are getting some . . .

Quoted 2 lines

However, I have not heard of any generic problems with external PCI bus masters and the ICH4.

. . . thanks for the feedback.

Regards,
Kathy

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/