[5200] ATA and (BAD) interrupts question
Hi all,
I run linux 2.6.29.1 from kernel.org on a custom Freescale MPC5200B based b= oard, which has a CF card attached to the 5200's ATA. The CF seems to run = nicely, but I am somewhat confused by the interrupts reproted by the kernel= .
Immediately after the boot, /proc/interrupts reports (inter alia)
135: 8 MPC52xx Peripherals Edge mpc52xx_ata 194: 0 MPC52xx SDMA Edge ATA task
BAD: 44
Then I say 'mount -t vfat -o noatime /dev/sda1 /mnt/cf0', and I get
135: 41 MPC52xx Peripherals Edge mpc52xx_ata
194: 0 MPC52xx SDMA Edge ATA task
BAD: 44
Then, I recursively copy a folder to the CF card:
135: 125111 MPC52xx Peripherals Edge mpc52xx_ata
194: 0 MPC52xx SDMA Edge ATA task
BAD: 121863
Is it correct that the "ATA task" interrupts are still 0, and that I get su= ch a high number of BAD ones? Is there a way to detect which source actual= ly triggered the BAD interrupts?
Thanks in advance,
Albrecht.
Der E-Mail-Dienst PIA basic belegt im Test der Stiftung Warentest unter den=
kostenfreien Angeboten mit dem Qualit=E4tsurteil 3,0 den zweiten Platz!
(Testheft Juli 2009, Artikel "E-Mail-Dienste - Besser gratis") JETZT TESTEN: www.arcor.de/rd/pia_sw
On Tue, Jul 28, 2009 at 6:50 AM, Albrecht Dre=DF<[email protected]> w= rote:
Quoted 3 lines
Hi all,
I run linux 2.6.29.1 from kernel.org on a custom Freescale MPC5200B based=
board, which has a CF card attached to the 5200's ATA. =A0The CF seems to =
run nicely, but I am somewhat confused by the interrupts reproted by the ke= rnel.
Quoted 4 lines
Immediately after the boot,
/proc/interruptsreports (inter alia)135: =A0 =A0 =A0 =A0 =A08 =A0MPC52xx Peripherals Edge =A0 =A0 =A0mpc52xx_=
ata
Quoted 6 lines
194: =A0 =A0 =A0 =A0 =A00 =A0MPC52xx SDMA Edge =A0 =A0 =A0ATA task
BAD: =A0 =A0 =A0 =A0 44Then I say 'mount -t vfat -o noatime
/dev/sda1/mnt/cf0', and I get135: =A0 =A0 =A0 =A0 41 =A0MPC52xx Peripherals Edge =A0 =A0 =A0mpc52xx_at=
a
Quoted 10 lines
194: =A0 =A0 =A0 =A0 =A00 =A0MPC52xx SDMA Edge =A0 =A0 =A0ATA task
BAD: =A0 =A0 =A0 =A0 44Then, I recursively copy a folder to the CF card:
135: =A0 =A0 125111 =A0MPC52xx Peripherals Edge =A0 =A0 =A0mpc52xx_ata 194: =A0 =A0 =A0 =A0 =A00 =A0MPC52xx SDMA Edge =A0 =A0 =A0ATA task
BAD: =A0 =A0 121863Is it correct that the "ATA task" interrupts are still 0, and that I get =
such a high number of BAD ones? =A0Is there a way to detect which source ac= tually triggered the BAD interrupts?
No, not really, but I'd spend some time looking at the DMA portion of the IRQ handler. Either edge IRQs are not getting acked correctly, or the interrupt controller driver is not reading the pending IRQs correctly.
g.
--=20
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.