From: Scott Wood <oss@buserror.net>
To: Zhiqiang Hou <zhiqiang.hou@nxp.com>,
"linuxppc-dev@lists.ozlabs.org" <linuxppc-dev@lists.ozlabs.org>,
"benh@kernel.crashing.org" <benh@kernel.crashing.org>,
"paulus@samba.org" <paulus@samba.org>,
"mpe@ellerman.id.au" <mpe@ellerman.id.au>,
linux-mtd@lists.infradead.org
Cc: Mingkai Hu <mingkai.hu@nxp.com>
Subject: Re: [PATCH] powerpc/config: Disable the 4KiB erase granularity of SPI flash
Date: Sat, 16 Apr 2016 20:58:32 -0500 [thread overview]
Message-ID: <1460858312.32510.182.camel@buserror.net> (raw)
In-Reply-To: <AM4PR04MB21485158542FA13151D6B23484900@AM4PR04MB2148.eurprd04.prod.outlook.com>
On Thu, 2016-04-07 at 03:17 +0000, Zhiqiang Hou wrote:
> Hi Scott,
>
> Thanks for your comments.
>
> > -----Original Message-----
> > From: Scott Wood [mailto:oss@buserror.net]
> > Sent: 2016年4月7日 6:01
> > To: Zhiqiang Hou <zhiqiang.hou@nxp.com>; linuxppc-dev@lists.ozlabs.org;
> > benh@kernel.crashing.org; paulus@samba.org; mpe@ellerman.id.au
> > Cc: Mingkai Hu <mingkai.hu@nxp.com>
> > Subject: Re: [PATCH] powerpc/config: Disable the 4KiB erase granularity of
> > SPI
> > flash
> >
> > On Wed, 2016-04-06 at 18:14 +0800, Zhiqiang Hou wrote:
> > > From: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> > >
> > > Disable the subsector (4KiB) erase granularity to speed up the erase
> > > operation.
> > >
> > > Signed-off-by: Hou Zhiqiang <Zhiqiang.Hou@nxp.com>
> > > ---
> > > arch/powerpc/configs/85xx-hw.config | 1 +
> > > 1 file changed, 1 insertion(+)
> > >
> > > diff --git a/arch/powerpc/configs/85xx-hw.config
> > > b/arch/powerpc/configs/85xx -hw.config index 528ff0e..a0f4e70 100644
> > > --- a/arch/powerpc/configs/85xx-hw.config
> > > +++ b/arch/powerpc/configs/85xx-hw.config
> > > @@ -77,6 +77,7 @@ CONFIG_MTD_PHYSMAP_OF=y
> > CONFIG_MTD_PHYSMAP=y
> > > CONFIG_MTD_PLATRAM=y CONFIG_MTD_SPI_NOR=y
> > > +# CONFIG_MTD_SPI_NOR_USE_4K_SECTORS is not set
> > > CONFIG_NETDEVICES=y
> > > CONFIG_NVRAM=y
> > > CONFIG_PATA_ALI=y
> >
> > Is there a reason specific to 85xx to have a different default than every
> > other
> > platform except lpc18xx? The description of MTD_SPI_NOR_USE_4K_SECTORS
> > acknowledges that erase speed is a tradeoff. Why is that concern more
> > compelling on 85xx than elsewhere?
> >
>
> I don't want to specify 85xx, but configs of fsl.
That doesn't change my question (but it does mean you put it in the wrong
file).
> For this patch, it takes about 13 mins to erase 64MiB by subsector erase
> command
> (4KiB per time), but takes 2 mins by sector erase command(64KiB per time).
> It is
> conspicuous decrease. Why it uses the 4KiB granularity by default, what's
> the
> benefit?
Again, the help text for this item says that it slows writes down, yet it's
still on by default. Presumably there are other benefits that are deemed to
outweigh the slower erase.
-Scott
prev parent reply other threads:[~2016-04-17 1:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-06 10:14 [PATCH] powerpc/config: Disable the 4KiB erase granularity of SPI flash Zhiqiang Hou
2016-04-06 22:01 ` Scott Wood
2016-04-07 3:17 ` Zhiqiang Hou
2016-04-08 16:01 ` David Laight
2016-04-11 5:25 ` Zhiqiang Hou
2016-04-17 1:58 ` Scott Wood [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=1460858312.32510.182.camel@buserror.net \
--to=oss@buserror.net \
--cc=benh@kernel.crashing.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mingkai.hu@nxp.com \
--cc=mpe@ellerman.id.au \
--cc=paulus@samba.org \
--cc=zhiqiang.hou@nxp.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 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).