linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Grant Likely <grant.likely@secretlab.ca>
To: "Albrecht Dreß" <albrecht.dress@arcor.de>
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [5200] ATA and (BAD) interrupts question
Date: Fri, 7 Aug 2009 23:48:46 -0600	[thread overview]
Message-ID: <fa686aa40908072248n22324ec6p17e21c5dcea6812e@mail.gmail.com> (raw)
In-Reply-To: <24979490.1248785451446.JavaMail.ngmail@webmail10.arcor-online.net>

On Tue, Jul 28, 2009 at 6:50 AM, Albrecht Dre=DF<albrecht.dress@arcor.de> w=
rote:
> 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.
>
> Immediately after the boot, /proc/interrupts reports (inter alia)
>
> 135: =A0 =A0 =A0 =A0 =A08 =A0MPC52xx Peripherals Edge =A0 =A0 =A0mpc52xx_=
ata
> 194: =A0 =A0 =A0 =A0 =A00 =A0MPC52xx SDMA Edge =A0 =A0 =A0ATA task
> BAD: =A0 =A0 =A0 =A0 44
>
> Then I say 'mount -t vfat -o noatime /dev/sda1 /mnt/cf0', and I get
>
> 135: =A0 =A0 =A0 =A0 41 =A0MPC52xx Peripherals Edge =A0 =A0 =A0mpc52xx_at=
a
> 194: =A0 =A0 =A0 =A0 =A00 =A0MPC52xx SDMA Edge =A0 =A0 =A0ATA task
> BAD: =A0 =A0 =A0 =A0 44
>
> Then, 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 121863
>
> Is 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.

      reply	other threads:[~2009-08-08  5:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28 12:50 [5200] ATA and (BAD) interrupts question Albrecht Dreß
2009-08-08  5:48 ` Grant Likely [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fa686aa40908072248n22324ec6p17e21c5dcea6812e@mail.gmail.com \
    --to=grant.likely@secretlab.ca \
    --cc=albrecht.dress@arcor.de \
    --cc=linuxppc-dev@lists.ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).