From: Richard Weinberger <richard@nod.at>
To: Ricard Wanderlof <ricard.wanderlof@axis.com>,
Graham Moore <grmoore@opensource.altera.com>
Cc: Dinh Nguyen <dinh.linux@gmail.com>,
Josh Triplett <josh@joshtriplett.org>,
Linux List <linux-kernel@vger.kernel.org>,
"yamada.m@jp.panasonic.com" <yamada.m@jp.panasonic.com>,
"linux-mtd@lists.infradead.org" <linux-mtd@lists.infradead.org>,
Dinh Nguyen <dinguyen@opensource.altera.com>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH] mtd: denali: Disable sub-page writes in Denali NAND driver
Date: Fri, 06 Feb 2015 10:28:53 +0100 [thread overview]
Message-ID: <54D48955.40700@nod.at> (raw)
In-Reply-To: <alpine.DEB.2.02.1502060925000.11532@lnxricardw1.se.axis.com>
Am 06.02.2015 um 09:29 schrieb Ricard Wanderlof:
>
> On Thu, 5 Feb 2015, Graham Moore wrote:
>
>> Actually, we made this change to make UBIFS work. So, yes, the driver
>> never worked for UBI. Worked fine for JFFS2, raw data.
>>
>> A customer reported an issue with ECC errors when using UBIFS on NAND
>> flash with Altera SoC.
>>
>> We debugged it and found the ECC errors occur because the UBI subsystem
>> is trying to write sub-pages in the NAND, but neither the NAND chip
>> itself nor the Denali NAND controller support sub-page writes.
>
> Just a bit curious.
>
> It is not uncommon for controllers or chips not to support sub-page
> writes. In that case however, the partition(s) used by UBI should be
> formatted accordingly, i.e. using the appropriate --sub-page-size argument
> to ubiformat (when formatting partitions on the system itself), or the
> corresponding argument to ubinize (when preparing images offline).
>
> If that is done correctly, then the lack of subpage write capability is
> not a problem per se (of course, the UBI EC and VID headers then take up
> more space so less space is available for user data; on a flash with 2k
> pages it is only 2k bytes per LEB that is lost however).
Yeah, but UBI automatically will use subpages unless you specify
use the vid_hdr_offs parameter.
IOW, if the driver advertises subpages UBI will use them.
Thanks,
//richard
next prev parent reply other threads:[~2015-02-06 9:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-14 15:38 [PATCH] mtd: denali: Disable sub-page writes in Denali NAND driver dinguyen
2015-01-14 15:38 ` dinguyen
2015-02-03 22:15 ` Dinh Nguyen
2015-02-03 22:15 ` Dinh Nguyen
2015-02-03 22:23 ` Richard Weinberger
2015-02-03 22:23 ` Richard Weinberger
2015-02-05 16:18 ` Graham Moore
2015-02-05 16:18 ` Graham Moore
2015-02-06 8:29 ` Ricard Wanderlof
2015-02-06 8:29 ` Ricard Wanderlof
2015-02-06 9:28 ` Richard Weinberger [this message]
2015-03-31 1:33 ` Brian Norris
2015-03-31 1:33 ` 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=54D48955.40700@nod.at \
--to=richard@nod.at \
--cc=computersforpeace@gmail.com \
--cc=dinguyen@opensource.altera.com \
--cc=dinh.linux@gmail.com \
--cc=dwmw2@infradead.org \
--cc=grmoore@opensource.altera.com \
--cc=josh@joshtriplett.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=ricard.wanderlof@axis.com \
--cc=yamada.m@jp.panasonic.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.