From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/9] CACHE: nand read/write: Test if start address is aligned
Date: Tue, 26 Jun 2012 14:38:54 -0500 [thread overview]
Message-ID: <4FEA0FCE.4040101@freescale.com> (raw)
In-Reply-To: <201206260316.02206.marex@denx.de>
On 06/25/2012 08:16 PM, Marek Vasut wrote:
> Dear Scott Wood,
>> Note that in the case of "nand read.oob", depending on NAND page size
>> and platform, there's a good chance that you're imposing an alignment
>> restriction that is larger than the data being transferred even if the
>> user asks to read the entire OOB.
>
> I don't think I completely follow here.
Why should I need to have 64-byte alignment for transfering a 16-byte OOB?
>> What about "nand write.yaffs2" or multi-page "nand read.raw", which deal
>> with arrays of interleaved main+spare? With a small page NAND chip,
>> you'll need cache lines that are 16 bytes or smaller to avoid unaligned
>> transactions -- and those will bypass your front-end check (unless the
>> user is so "stupid" as to want to modify the data after a raw-read, and
>> do a raw-write of a particular page).
>
> Ok, I think I'm very stupid now, probably since I have high fever. I'll read
> this after I sleep. Sorry Scott, I'm sure you're rolling out a valid point, it's
> just that I'm incapable of understanding it right now.
Probably best to wait until you're feeling better for the rest of it,
too. Hope you get well soon.
>>>> In the specific case of NAND, how many NAND drivers use DMA at all?
>>>
>>> Many do,
>>
>> How many? Specifically, how many that have alignment restrictions, that
>> would need to be fixed?
>
> At least all on the ARM architecture. And more will come, since ARM is on the
> rise.
atmel: no, doesn't use DMA
davinci: no, doesn't use DMA
kb9202: no, doesn't use DMA
kirkwood: no, doesn't use DMA
mxc: I don't think this uses DMA, but this driver scares me. :-)
mxs: Even scarier. Looks like this one does use DMA.
omap_gpmc: no, doesn't use DMA
s3c64xx: no, doesn't use DMA
spr: no, doesn't use DMA
s3c2410: no, doesn't use DMA
If this is about not wanting to touch the mxs_nand driver again, I
sympathize. :-)
>>> it's not only nand, it's all over the place.
>>
>> This patch is about NAND.
>
> Check the whole patchset ... and that still only covers a small part of it all.
Right, I think it's wrong elsewhere too when it's user interface, but
I'll let the relevant custodians argue those cases.
-Scott
next prev parent reply other threads:[~2012-06-26 19:38 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-25 0:17 [U-Boot] [PATCH 0/9] CACHE: Finishing touches Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 1/9] COMMON: Add __stringify() function Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 2/9] CACHE: Add cache_aligned() macro Marek Vasut
2012-06-25 21:12 ` Scott Wood
2012-06-25 23:30 ` Marek Vasut
2012-07-07 3:00 ` Aneesh V
2012-06-25 0:17 ` [U-Boot] [PATCH 3/9] CACHE: ext2load: Test if start address is aligned Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 4/9] CACHE: fatload: " Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 5/9] CACHE: mmc read/write: " Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 6/9] CACHE: nand " Marek Vasut
2012-06-25 16:58 ` Scott Wood
2012-06-25 18:43 ` Tom Rini
2012-06-25 20:08 ` Scott Wood
2012-06-25 20:48 ` Tom Rini
2012-06-25 21:17 ` Scott Wood
2012-06-25 21:22 ` Tom Rini
2012-06-25 23:42 ` Marek Vasut
2012-06-26 0:37 ` Scott Wood
2012-06-26 1:16 ` Marek Vasut
2012-06-26 19:38 ` Scott Wood [this message]
2012-06-25 23:38 ` Marek Vasut
2012-06-25 23:37 ` Marek Vasut
2012-06-25 23:57 ` Scott Wood
2012-06-26 1:33 ` Marek Vasut
2012-06-26 19:25 ` Scott Wood
2012-06-26 20:39 ` Marek Vasut
2012-07-07 3:05 ` Aneesh V
2012-06-25 0:17 ` [U-Boot] [PATCH 7/9] CACHE: net: " Marek Vasut
2012-06-25 18:05 ` Joe Hershberger
2012-06-25 23:16 ` Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 8/9] CACHE: net: asix: Fix asix driver to work with data cache on Marek Vasut
2012-06-25 18:07 ` Joe Hershberger
2012-06-25 23:16 ` Marek Vasut
2012-07-06 23:09 ` Marek Vasut
2012-07-06 23:16 ` Marek Vasut
2012-06-25 0:17 ` [U-Boot] [PATCH 9/9] M28EVK: Enable instruction and data cache Marek Vasut
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=4FEA0FCE.4040101@freescale.com \
--to=scottwood@freescale.com \
--cc=u-boot@lists.denx.de \
/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