DMA being disabled during heavy HD activity

2008-02-17 Thread Paul Fleischer
Hi,

I am experiencing some strange behaviour. When I have heavy HDD
activity (running MythTV, for instance), I get 17 of these:

[   90.004956] hda: dma_intr: bad DMA status (dma_stat=76)
[   90.004963] hda: dma_intr: status=0x50 { DriveReady SeekComplete }
[   90.004966] ide: failed opcode was: unknown

Followed by the IDE subsystem giving up on DMA:

[   97.732622] hda: DMA disabled
[   97.732629] hdb: DMA disabled
[   97.809464] ide0: reset: success

I'm running with an Asus M2A-VM mainboard with an ATI SB600 chipset.
The harddrive is an plain old PATA drive, attached as master with a
cdrom drive as slave.

I'm running the Ubuntu Hardy development kernel, 2.6.24-9, although
same problem occurs with 2.6.22-14 (again Ubuntu kernel).
I have looked in the linux-ide mlist archives but haven't been able to
find anything related.

Thank you for your time,

Paul

Output from hdparm -I /dev/hda (after DMA has been disabled):
/dev/hda:

ATA device, with non-removable media
Model Number:   Maxtor 6Y080P0
Serial Number:  Y33ZYEKE
Firmware Revision:  YAR41BW0
Standards:
Used: ATA/ATAPI-7 T13 1532D revision 0
Supported: 7 6 5 4
Configuration:
Logical max current
cylinders   16383   16383
heads   16  16
sectors/track   63  63
--
CHS current addressable sectors:   16514064
LBAuser addressable sectors:  160086528
device size with M = 1024*1024:   78167 MBytes
device size with M = 1000*1000:   81964 MBytes (81 GB)
Capabilities:
LBA, IORDY(can be disabled)
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16  Current = 0
Advanced power management level: unknown setting (0x)
Recommended acoustic management value: 192, current value: 254
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 *udma5 udma6
 Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
 Cycle time: no flow control=120ns  IORDY flow control=120ns
Commands/features:
Enabled Supported:
SMART feature set
Security Mode feature set
   *Power Management feature set
   *Write cache
   *Look-ahead
   *Host Protected Area feature set
   *WRITE_VERIFY command
   *WRITE_BUFFER command
   *READ_BUFFER command
   *NOP cmd
   *DOWNLOAD_MICROCODE
Advanced Power Management feature set
SET_MAX security extension
   *Automatic Acoustic Management feature set
   *Device Configuration Overlay feature set
   *Mandatory FLUSH_CACHE
   *FLUSH_CACHE_EXT
   *SMART error logging
   *SMART self-test
Security:
Master password revision code = 65534
supported
not enabled
not locked
not frozen
not expired: security count
not supported: enhanced erase
HW reset results:
CBLID- above Vih
Device num = 0 determined by the jumper
Checksum: correct

Output from hdparm /dev/hda after DMA has been disabled:
/dev/hda:
 multcount =  0 (off)
 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 = 160086528, start = 0

Output from lspci -v:
00:00.0 Host bridge: ATI Technologies Inc RS690 Host Bridge
Subsystem: ASUSTeK Computer Inc. Unknown device 826d
Flags: bus master, 66MHz, medium devsel, latency 64

00:01.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge
(Internal gfx) (prog-if 00 [Normal decode])
Flags: bus master, 66MHz, medium devsel, latency 99
Bus: primary=00, secondary=01, subordinate=01, sec-latency=68
I/O behind bridge: e000-efff
Memory behind bridge: fde0-fdff
Prefetchable memory behind bridge: f000-f7ff
Capabilities: [44] HyperTransport: MSI Mapping
Capabilities: [b0] Subsystem: ATI Technologies Inc RS690 PCI
to PCI Bridge (Internal gfx)

00:07.0 PCI bridge: ATI Technologies Inc RS690 PCI to PCI Bridge (PCI
Express Port 3) (prog-if 00 [Normal decode])
Flags: bus master, fast devsel, latency 0
Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
I/O behind bridge: d000-dfff
Memory behind bridge: fdb0-fdbf
Prefetchable memory behind bridge: fda0-fdaf
Capabilities: [50] Power Management version 3
Capabilities: [58] Express Root Port (Slot-) IRQ 0
Capabilities: [80] Message Signalled Interrupts: Mask- 64bit-
Queue=0/0 Enable+
Capabilities: 

Re: DMA being disabled during heavy HD activity

2008-02-17 Thread Paul Fleischer
Hi again,

2008/2/17, Paul Fleischer [EMAIL PROTECTED]:
 Hi,

 I am experiencing some strange behaviour. When I have heavy HDD
 activity (running MythTV, for instance), I get 17 of these:

 [   90.004956] hda: dma_intr: bad DMA status (dma_stat=76)
 [   90.004963] hda: dma_intr: status=0x50 { DriveReady SeekComplete }
 [   90.004966] ide: failed opcode was: unknown

I have now found out that it is not heavy HDD activity that causes
this. It occurs when I start using the 3D capabilities of the fglrx
driver. I suspect that there is some kind of resource conflict between
the fglrx driver and the IDE system. But as the fglrx driver is closed
source I know that I'm on deep water here. Maybe someone has a
suggestions.

I apologize about the noise on the mailing list.

/Paul
-
To unsubscribe from this list: send the line unsubscribe linux-ide in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html