mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: SiS APIC, hacker looking for docs/help, was : Re: 2.6.4 under heavy ioload disables sis5513 DMA
@ 2004-03-18 13:48 Ross Dickson
  0 siblings, 0 replies; 4+ messages in thread
From: Ross Dickson @ 2004-03-18 13:48 UTC (permalink / raw)
  To: linux-kernel; +Cc: Lionel.Bouton

<snip>
> > Dunno how DMA timeout is related to interrupts or are you suggesting it 
> > is loosing dma-complete interrupts? 
> > 
> > I don't know the details (yet I hope), but I'm quite sure that interrupt 
> > handling in XT-PIC mode leads to problems on several SiS configurations 
> > (when you reorganize PCI cards in a system and the behaviour changes or 
> > when you disable the VGA IRQ and some things start to work, the suspect 
> > becomes obvious). One user reported that putting 2 disks on one channel 
> > instead of one on each (so 1 IRQ used instead of 2) solve instability 
> > issues too... I ruled out IDE driver problems several times by 
> > repeatedly checking the code and the run-time register values against 
> > known-good values. My lack of knowledge on the interrupt handling 
> > details is what prevents me from being 100% sure that the problem lies 
> > here. This is why I'm willing to work on this subject. 
 
I had a report that my patch helped an sis740 board run in apic ioapic mode.
Don't know if it would help your situation. Here is relevant link.
http://linux.derkeiler.com/Mailing-Lists/Kernel/2004-03/4278.html

There is a problem with apm mode with my patch - small fix here if reqd.
http://linux.derkeiler.com/Mailing-Lists/Kernel/2004-03/4410.html

Hope it helps.
Ross.

> > 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. 
> > 
 

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

* Re: SiS APIC, hacker looking for docs/help, was : Re: 2.6.4 under heavy ioload disables sis5513 DMA
  2004-03-18 11:52   ` Michael Frank
@ 2004-03-18 12:26     ` Lionel Bouton
  0 siblings, 0 replies; 4+ messages in thread
From: Lionel Bouton @ 2004-03-18 12:26 UTC (permalink / raw)
  To: Michael Frank; +Cc: kernel mailing list

Michael Frank wrote the following on 03/18/2004 12:52 PM :

>
>>
>> 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?
>

I don't know the details (yet I hope), but I'm quite sure that interrupt 
handling in XT-PIC mode leads to problems on several SiS configurations 
(when you reorganize PCI cards in a system and the behaviour changes or 
when you disable the VGA IRQ and some things start to work, the suspect 
becomes obvious). One user reported that putting 2 disks on one channel 
instead of one on each (so 1 IRQ used instead of 2) solve instability 
issues too... I ruled out IDE driver problems several times by 
repeatedly checking the code and the run-time register values against 
known-good values. My lack of knowledge on the interrupt handling 
details is what prevents me from being 100% sure that the problem lies 
here. This is why I'm willing to work on this subject.

> 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.
>

Now I remember why your name ringed a bell ! Thanks for your testing 
work on swsusp, my amount of free time went up thanks to 2.4's swsusp.

Regards,

-- 
Lionel Bouton - inet6
---------------------------------------------------------------------
   o              Siege social: 51, rue de Verdun - 92158 Suresnes
  /      _ __ _   Acces Bureaux: 33 rue Benoit Malon - 92150 Suresnes
 / /\  /_  / /_   France
 \/  \/_  / /_/   Tel. +33 (0) 1 41 44 85 36
  Inetsys S.A.    Fax  +33 (0) 1 46 97 20 10
 


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

* Re: SiS APIC, hacker looking for docs/help, was : Re: 2.6.4 under heavy ioload disables sis5513 DMA
  2004-03-18 11:30 ` SiS APIC, hacker looking for docs/help, was : " Lionel Bouton
@ 2004-03-18 11:52   ` Michael Frank
  2004-03-18 12:26     ` Lionel Bouton
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Frank @ 2004-03-18 11:52 UTC (permalink / raw)
  To: Lionel Bouton; +Cc: kernel mailing list

On Thu, 18 Mar 2004 12:30:17 +0100, Lionel Bouton <Lionel.Bouton@inet6.fr> 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

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

* SiS APIC, hacker looking for docs/help, was : Re: 2.6.4 under heavy ioload disables sis5513 DMA
  2004-03-18 10:52 Michael Frank
@ 2004-03-18 11:30 ` Lionel Bouton
  2004-03-18 11:52   ` Michael Frank
  0 siblings, 1 reply; 4+ messages in thread
From: Lionel Bouton @ 2004-03-18 11:30 UTC (permalink / raw)
  To: Michael Frank; +Cc: kernel mailing list

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).

> lspci -vv
> 
> 00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] 

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

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).

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

Regards,
-- 
Lionel Bouton - inet6
---------------------------------------------------------------------
    o              Siege social: 51, rue de Verdun - 92158 Suresnes
   /      _ __ _   Acces Bureaux: 33 rue Benoit Malon - 92150 Suresnes
  / /\  /_  / /_   France
  \/  \/_  / /_/   Tel. +33 (0) 1 41 44 85 36
   Inetsys S.A.    Fax  +33 (0) 1 46 97 20 10


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

end of thread, other threads:[~2004-03-18 13:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-18 13:48 SiS APIC, hacker looking for docs/help, was : Re: 2.6.4 under heavy ioload disables sis5513 DMA Ross Dickson
  -- strict thread matches above, loose matches on Subject: below --
2004-03-18 10:52 Michael Frank
2004-03-18 11:30 ` SiS APIC, hacker looking for docs/help, was : " Lionel Bouton
2004-03-18 11:52   ` Michael Frank
2004-03-18 12:26     ` Lionel Bouton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome