linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* DMA errors with HTP370 IDE in <= 2.6.18.2
@ 2007-01-08 19:51 Michael Bueker
  2007-01-09 12:42 ` Sergei Shtylyov
  0 siblings, 1 reply; 2+ messages in thread
From: Michael Bueker @ 2007-01-08 19:51 UTC (permalink / raw)
  To: linux-ide

Hello,

[please CC me upon replying - thank you]

I have a Highpoint 370 PCI IDE controller, and both my 2.6.18.2 and
Knoppix 5's 2.6.17 display the following messages:

> HPT370: IDE controller at PCI slot 0000:01:09.0
> HPT370: chipset revision 3
> HPT370: 100% native mode on irq 11
> HPT37X: using 33MHz PCI clock
>     ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:DMA, hdf:DMA
> HPT37X: using 33MHz PCI clock
>     ide3: BM-DMA at 0xa008-0xa00f, BIOS settings: hdg:pio, hdh:pio
> Probing IDE interface ide2...
> hde: ST340823A, ATA DISK drive
> hdf: ExcelStor Technology J840, ATA DISK drive
> ide2 at 0x9000-0x9007,0x9402 on irq 11
> Probing IDE interface ide3...
> hdg: LITE-ON LTR-52246S, ATAPI CD/DVD-ROM drive
> ide3 at 0x9800-0x9807,0x9c02 on irq 11
> hde: max request size: 128KiB
> hde: 78165360 sectors (40020 MB) w/1024KiB Cache, CHS=65535/16/63, UDMA(100)
> hde: cache flushes not supported
>  hde:<4>hde: dma_timer_expiry: dma status == 0x61
> hde: DMA timeout error
> hde: 0 bytes in FIFO
> hde: timeout waiting for DMA
> hde: dma timeout error: status=0x80 { Busy }
> ide: failed opcode was: unknown
> hde: DMA disabled
> hdf: DMA disabled
> ide2: reset: success
>  hde1 hde2 <<4>hde: dma_timer_expiry: dma status == 0x21
> hde: DMA timeout error
> hde: 0 bytes in FIFO
> hde: timeout waiting for DMA
> hde: dma timeout error: status=0x80 { Busy }
> ide: failed opcode was: unknown
> hde: DMA disabled
> ide2: reset: success
>  hde5<4>hde: dma_timer_expiry: dma status == 0x21
> hde: DMA timeout error
> hde: 0 bytes in FIFO
> hde: timeout waiting for DMA
> hde: dma timeout error: status=0x80 { Busy }
> ide: failed opcode was: unknown
> hde: DMA disabled
> ide2: reset: success
>  hde6 >
> hdf: max request size: 512KiB
> hdf: 80418240 sectors (41174 MB) w/1719KiB Cache, CHS=16383/255/63
> hdf: cache flushes supported
>  hdf: unknown partition table
> hde: dma_timer_expiry: dma status == 0x21
> hde: DMA timeout error
> hde: 0 bytes in FIFO
> hde: timeout waiting for DMA
> hde: dma timeout error: status=0x80 { Busy }
> ide: failed opcode was: unknown
> hde: DMA disabled
> ide2: reset: success

(hdf is naked, there's no error in partition detection)

The same messages appear when manually trying to enable DMA with hdparm.
The hdparm reading of hde is:

> /dev/hde:
>  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     = 65535/16/63, sectors = 78165360, start = 0

hda, which is on the mainboard controller and works as hde used to as
well, reads:

> /dev/hda:
>  multcount    = 16 (on)
>  IO_support   =  1 (32-bit)
>  unmaskirq    =  1 (on)
>  using_dma    =  1 (on)
>  keepsettings =  0 (off)
>  readonly     =  0 (off)
>  readahead    = 256 (on)
>  geometry     = 65535/16/63, sectors = 117231408, start = 0

In the controller's setup utility, I can choose access modes. If i
switch it from UDMA5 to PIO0, the only difference during boot is:

> ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:pio, hdf:pio

instead of

> ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:DMA, hdf:DMA

Please help me getting DMA to work with this controller.

Thanks in advance,
~Mik

-- 
So, how can you tell me you're lonely?
And say that you don't have no life?
Let me take you by the hand and show you all the geeks of London
I'll show you something to make you change your mind!


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: DMA errors with HTP370 IDE in <= 2.6.18.2
  2007-01-08 19:51 DMA errors with HTP370 IDE in <= 2.6.18.2 Michael Bueker
@ 2007-01-09 12:42 ` Sergei Shtylyov
  0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2007-01-09 12:42 UTC (permalink / raw)
  To: Michael Bueker; +Cc: linux-ide

Michael Bueker wrote:

  > In the controller's setup utility, I can choose access modes. If i
> switch it from UDMA5 to PIO0, the only difference during boot is:

    PIO0 is outrageously slow, use PIO4 (very slow as well but at least 
somewhat faster).  Anyway, this won't help with Linux...

>> ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:pio, hdf:pio

> instead of

>> ide2: BM-DMA at 0xa000-0xa007, BIOS settings: hde:DMA, hdf:DMA

    You should specify the option ide=nodma to the kernel to disable IDE core 
from using DMA.

> Please help me getting DMA to work with this controller.

    For starters, please try the driver from 2.6.20-rc1 and (if that doesn't 
help) from the -mm tree. I rewrote it and it's working OK on at least my HPT370...

> Thanks in advance,
> ~Mik

WBR, Sergei

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-01-09 12:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-08 19:51 DMA errors with HTP370 IDE in <= 2.6.18.2 Michael Bueker
2007-01-09 12:42 ` Sergei Shtylyov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).