From: Brian Norris <computersforpeace@gmail.com>
To: Boris Brezillon <boris.brezillon@free-electrons.com>
Cc: David Woodhouse <dwmw2@infradead.org>,
linux-mtd@lists.infradead.org,
Richard Weinberger <richard@nod.at>,
George Spelvin <linux@sciencehorizons.net>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/3] mtd: introduce the mtd_pairing_scheme concept
Date: Thu, 1 Sep 2016 11:15:24 -0700 [thread overview]
Message-ID: <20160901181524.GA22366@localhost> (raw)
In-Reply-To: <20160809004218.672bc924@bbrezillon>
Hi,
I've had this on my plate to respond to for a while now, and I haven't
brought myself to actually care that much about the choice. So I'll
respond now to keep from leaving you hanging, but I'm not sure I'm that
helpful :(
On Tue, Aug 09, 2016 at 12:42:18AM +0200, Boris Brezillon wrote:
> On Thu, 4 Aug 2016 12:37:51 +0800
> Brian Norris <computersforpeace@gmail.com> wrote:
> > On Mon, Jun 20, 2016 at 03:50:16PM +0200, Boris Brezillon wrote:
>
> >
> > > + * (3 bits in a single cell). A pair should regroup all pages that are sharing
> > > + * the same cell. Pairs are then indexed in ascending order.
> > > + *
> > > + * @group is defining the position of a page in a given pair. It can also be
> > > + * seen as the bit position in the cell: page attached to bit 0 belongs to
> > > + * group 0, page attached to bit 1 belongs to group 1, etc.
> > > + *
> > > + * Example:
> > > + * The H27UCG8T2BTR-BC datasheet describes the following pairing scheme:
> > > + *
> > > + * group-0 group-1
> > > + *
> > > + * pair-0 page-0 page-4
> > > + * pair-1 page-1 page-5
> > > + * pair-2 page-2 page-8
> > > + * ...
> > > + * pair-127 page-251 page-255
> > > + *
> > > + *
> > > + * Note that the "group" and "pair" terms were extracted from Samsung and
> > > + * Hynix datasheets, and might be referenced under other names in other
> > > + * datasheets (Micron is describing this concept as "shared pages").
> >
> > Very, very helpful (to me, even though I'm moderately familiar with the
> > concepts, but hopefully moreso for others who want to read and
> > understand this). Thanks for writing this up.
>
> Actually, the more I think about it, the more I doubt those terms are
> appropriate (even if they are widely used in technical documents).
>
> How about using the following names instead:
>
> struct mtd_cell_sharing_scheme {
> ...
> };
>
> struct mtd_cell_sharing_info {
> /* the bit position in the cell */
> int bitpos;
> /*
> * What was previously known as 'pair': an id representing a
Wait, so you're replacing the literature's "pair" term with "group", but
the literature already used "group" to mean something else? That seems
to be an unwise choice. (Or I'm misreading you.)
> * group of cells forming a 'pair of pages'.
> * I can't find a good description/word for this concept. Do
> * you have better ideas?
> */
> int group;
> };
>
> What do you think?
I think there's something to be said for matching the literature out
there, and I personally thought that simply providing a little bit of
clarifying explanation in the comments was sufficient. But if you feel
like choosing a more generic name is better, then that's probably OK
too. So other than the above comment (don't overload terms too freely!),
I'd use your judgment.
FWIW, it still takes me a while to parse what the "pair" and "group" (or
"bitpos" and "group" -- although "bitpos" is actually quite clear, so I
guess I like that) actually mean, so I tend to refer back to these
comments every time I'm reading it.
Brian
next prev parent reply other threads:[~2016-09-01 18:15 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-20 13:50 [PATCH v2 0/3] mtd: add support for pairing scheme description Boris Brezillon
2016-06-20 13:50 ` [PATCH v2 1/3] mtd: introduce the mtd_pairing_scheme concept Boris Brezillon
2016-08-04 4:37 ` Brian Norris
2016-08-08 22:42 ` Boris Brezillon
2016-09-01 18:15 ` Brian Norris [this message]
2016-09-04 19:06 ` Boris Brezillon
2016-06-20 13:50 ` [PATCH v2 2/3] mtd: nand: implement two pairing scheme Boris Brezillon
2016-06-20 13:50 ` [PATCH v2 3/3] mtd: nand: add a pairing field to nand_flash_dev Boris Brezillon
2016-07-25 12:41 ` [PATCH v2 0/3] mtd: add support for pairing scheme description Boris Brezillon
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=20160901181524.GA22366@localhost \
--to=computersforpeace@gmail.com \
--cc=boris.brezillon@free-electrons.com \
--cc=dwmw2@infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linux@sciencehorizons.net \
--cc=richard@nod.at \
/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.