From: linus.walleij@stericsson.com (Linus Walleij)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] mmci: fixup broken_blockend variant patch v2
Date: Mon, 17 Jan 2011 17:02:08 +0100 [thread overview]
Message-ID: <4D346800.3070603@stericsson.com> (raw)
In-Reply-To: <AANLkTin67iTj34QBv3T-9+oMdo6q=EsYKf=5ca=6B69s@mail.gmail.com>
On 01/17/2011 04:12 PM, Rabin Vincent wrote:
> On Mon, Jan 17, 2011 at 20:07, Linus Walleij
> <linus.walleij@stericsson.com> wrote:
>
>> + * On the U300 and Ux500 a few to many MCI_DATABLOCKEND interrupts
>> + * are usually missing, so the data counter is not properly increased.
>> + * This is likely because new block arrive while the IRQ is being
>> + * processed without the transfers being held back, and ACK:in the
>> + * interrupt will only clear the very last block and intermediate
>> + * blockend interrupts get lost. So we simply mask of the blockend
>> + * interrupt on these and only use the dataend interrupt.
>>
> Have you observed this to be different on the ARM variants? I asked a
> related question about this earlier:
>
> http://thread.gmane.org/gmane.linux.ports.arm.kernel/101118:
> | In MMCI, on variants which use the DATABLOCKEND interrupt, if we cross
> | more than one block boundary in the loop inside mmc_pio_read() or
> | mmci_pio_write(), when the DATABLOCKEND irq is handled after interrupts
> | are enabled in mmci_pio_irq(), won't the block count be incorrect
> | because we would consider that only one block has been transferred, when
> | in fact it has been two? Or can this never happen for some reason?
>
Yes it is very different, see the log I sent in reply to Russells earlier
mail. It's not just one blockend missing, sometimes it's two (on U300)
and on Ux500 it's something like 5 out of 128 blockends that actually
get fired, the rest are missing.
Now the only variant actually using that interrupt is the original
ARM version found in RealView & Versatile. I have run this code
on the PB1176 but it wasn't missing any blockends. No errors.
I tried to increase the clock speed to see if I could provoke the
error in the RealView, but hit FIFO overflow (since these variants
does not have hardware flow control) before I got to the speed
where I presume the error could occur.
Yours,
Linus Walleij
next prev parent reply other threads:[~2011-01-17 16:02 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-17 14:37 [PATCH] mmci: fixup broken_blockend variant patch v2 Linus Walleij
2011-01-17 15:12 ` Rabin Vincent
2011-01-17 16:02 ` Linus Walleij [this message]
2011-01-18 12:14 ` Russell King - ARM Linux
2011-01-19 20:34 ` Linus Walleij
2011-01-19 20:51 ` Russell King - ARM Linux
2011-01-19 23:52 ` Linus Walleij
2011-01-21 12:53 ` Linus Walleij
2011-01-23 18:01 ` Russell King - ARM Linux
2011-01-23 21:40 ` Linus Walleij
2011-01-23 23:09 ` Russell King - ARM Linux
2011-01-24 8:18 ` Linus Walleij
2011-01-24 11:21 ` Russell King - ARM Linux
2011-01-24 14:29 ` Linus Walleij
2011-01-27 11:06 ` Russell King - ARM Linux
2011-01-27 14:16 ` Linus Walleij
2011-01-17 15:36 ` Rabin Vincent
2011-01-17 15:56 ` Linus Walleij
2011-01-17 16:56 ` Rabin Vincent
2011-01-18 15:01 ` Linus Walleij
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=4D346800.3070603@stericsson.com \
--to=linus.walleij@stericsson.com \
--cc=linux-arm-kernel@lists.infradead.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).