Re: SiS APIC, hacker looking for docs/help, was : Re: 2.6.4 under heavy ioload disables sis5513 DMA

From: Michael Frank
Date: Thu Mar 18 2004 - 07:01:27 EST


On Thu, 18 Mar 2004 12:30:17 +0100, Lionel Bouton <Lionel.Bouton@xxxxxxxx> wrote:

Michael Frank wrote the following on 03/18/2004 11:52 AM :
Happens every few hours with heavy io and cpu load:

hda: dma_timer_expiry: dma status == 0x21
hda: DMA timeout error
hda: dma timeout error: status=0xd0 { Busy }

hda: DMA disabled
ide0: reset: success

DMA auto-reenabled by boot time hdparm -k


Hum, I'm wondering if -k is fully functionnal (hdparm man page hints
that this isn't supported by all drives and I don't remember any
success/failure stories here).

It is OK here as otherwhise io-performance would collapse and hdparm -iI would show PIO.


lspci -vv

00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]

SiS chipset : is APIC functionnal ? (cat /proc/interrupts)

APIC disabled in BIOS.
APIC not compiled in kernel. This board did not work well with APIC,
lots of spurious interrupts and delayloop-cal hangs during boot also
with 2.4 but have not tried in 6 months.


If not, I believe this might be the problem and the solutions still
eludes me (I don't think the problem lies in the IDE driver but in APIC
support).

I've 2 SiS based mainboards forced to use XT-PIC (SiS735 and SiS645
based) here but without this kind of problems (everything works until I
start to add to many PCI cards in one system...). I'm willing to start
hacking around (mostly on the 645 as the 735 is an always-on system).

No (PCI,AGP) cards plugged in.


Is reading the arch/i386/kernel/*pic* files (and probably others) enough
to start or is there somewhere else to look for information ?


Dunno how DMA timeout is related to interrupts or are you suggesting it
is loosing dma-complete interrupts?

Same board runs same and higher loads with 2.4.2[345] flawlessly. Also
8 hours OK with 2.4.26-pre4 last night + 430 cycles of swsusp2.

By now, it happened with 2.6.4 four (4) times in 2.7 hours

IO is still at 20MB/s average btw so it is still using DMA.

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