From: boris.brezillon@free-electrons.com (Boris Brezillon)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v6 0/3] mtd: nand: gpmi: add proper raw access support
Date: Mon, 1 Dec 2014 09:58:58 +0100 [thread overview]
Message-ID: <20141201095858.75ac3889@bbrezillon> (raw)
In-Reply-To: <20141201084709.GI29070@brian-ubuntu>
Hi Brian,
On Mon, 1 Dec 2014 00:47:09 -0800
Brian Norris <computersforpeace@gmail.com> wrote:
> On Sun, Nov 30, 2014 at 07:10:27PM +0100, Boris Brezillon wrote:
> > Hello,
> >
> > This series provides an implementation for raw accesses taking care of
> > hidding the specific layout used by the GPMI controller.
> >
> > Best Regards,
> >
> > Boris
> >
> > Changes since v5:
> > - rename gpmi_move_bits into gpmi_copy_bits
> >
> > Changes since v4:
> > - fixed a few corner cases in gpmi_move_bits (tested it with:
> > https://github.com/bbrezillon/gpmi-move-bits-test/blob/master/gpmi-move-bits-test.c)
> > - add documentation and comments for the new gpmi functions
> >
> > Changes since v3:
> > - add comments to the gpmi_move_bits function
> > - extend raw read/write documentation
> > - move last part of the raw_page_read function into a conditional block
> >
> > Changes since v2:
> > - fixed a bug in gpmi_move_bits
> > - add a raw_buffer field to be used when using raw access methods
> > (experienced memory corruptions when directly using page_buffer_virt
> > buffer)
> > - add raw OOB access functions
>
> Applied the series. Thanks!
>
> Out of curiosity, what tests does gpmi-nand.c now pass/fail?
The oobtest is still failing. I started to debug it, but didn't have
enough time to make it work.
The nandbiterrs test is working, though I didn't manage to make the
incremental test fail (writing the same pattern 10000 times without
erasing the block between each write does not generate any bit flips) on
my SLC NAND: MT29F2G08ABAEAH4.
Can someone with another SLC NAND chip try it ?
>
> Also, is it time to yank / fixup some of these comments from
> gpmi-nand.c?
I was asking myself the same question...
>
> ...
> * FIXME: The following paragraph is incorrect, now that there exist
> * ecc.read_oob_raw and ecc.write_oob_raw functions.
> *
> * Since MTD assumes the OOB is not covered by ECC, there is no pair of
> * ECC-based/raw functions for reading or or writing the OOB. The fact that the
> * caller wants an ECC-based or raw view of the page is not propagated down to
> * this driver.
> */
I guess we can remove them.
Huang can you confirm that the raw access functions introduced in this
series are covering what's described here ?
Regards,
Boris
--
Boris Brezillon, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-12-01 8:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-30 18:10 [PATCH v6 0/3] mtd: nand: gpmi: add proper raw access support Boris Brezillon
2014-11-30 18:10 ` [PATCH v6 1/3] mtd: nand: gpmi: add gpmi_copy_bits function Boris Brezillon
2014-11-30 18:10 ` [PATCH v6 2/3] mtd: nand: gpmi: add proper raw access support Boris Brezillon
2014-11-30 18:10 ` [PATCH v6 3/3] mtd: nand: gpmi: add raw oob access functions Boris Brezillon
2014-12-01 8:47 ` [PATCH v6 0/3] mtd: nand: gpmi: add proper raw access support Brian Norris
2014-12-01 8:58 ` Boris Brezillon [this message]
2014-12-02 0:47 ` Huang Shijie
2014-12-02 8:21 ` Boris Brezillon
2014-12-02 18:01 ` Brian Norris
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=20141201095858.75ac3889@bbrezillon \
--to=boris.brezillon@free-electrons.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).