From: Stefan Roese <sr@denx.de>
To: Grant Likely <grant.likely@secretlab.ca>
Cc: linuxppc-dev@ozlabs.org,
devicetree-discuss list <devicetree-discuss@ozlabs.org>
Subject: Re: physmap_of and partitions (mtd concat support)
Date: Tue, 24 Mar 2009 16:39:56 +0100 [thread overview]
Message-ID: <200903241639.56637.sr@denx.de> (raw)
In-Reply-To: <fa686aa40903240757n569f2b04t1309e817fd30728d@mail.gmail.com>
On Tuesday 24 March 2009, Grant Likely wrote:
> >> Sounds to me like a physmap_of driver bug. =A0I don't think there is a=
ny
> >> advantage in changing the partition syntax since concatenated flash
> >> will always be used as a single device. =A0It doesn't make any sense to
> >> try and span partitions over two nodes.
> >
> > Yes, I would really love to make this possible with only one flash node.
> > But just think about the following system configuration:
> >
> > One Intel Strataflash (compatible =3D "cfi-flash") and one non-cfi
> > compatible flash (e.g. compatible =3D "jedec-flash"). And the user want=
s to
> > define a partition that spans over both flash chips. How could this be
> > described in one flash node?
> >
> >> Do additional properties need to be added to describe the concat layou=
t?
> >
> > Not sure. If we have multiple identical devices they can currently be
> > described in one flash node. So with some changes to the physmap_of
> > driver this configuration will work with concat as well. But more compl=
ex
> > is a system configuration as described above. Meaning two or more
> > non-identical chips. I don't see how this could be described in a sane
> > way in one flash node.
>
> Are there any such platforms?
Yes, I know some. Even though they are currently not used with a partition=
=20
spanning over those multiple chips (jedec and cfi).
> Is there much likelihood that such a=20
> platform will be created? Would it even be a good idea to span
> partitions across such an arrangement given that different devices
> will behave differently?
OK, in the example above such a spanning partition is not so likely. But th=
ink=20
about my original example, the Intel P30 with two different cfi compatible=
=20
chips on one die. Here a partition spanning over both devices is very likel=
y.
As a sidenote: All this (concat over different chips) is possible with the=
=20
physmap.c mapping driver which was used on most of my platforms in the "old=
"=20
arch/ppc days.
> I think just leave that arrangement as hypothetical until the
> situation actually occurs. If it does occur, then strongly recommend
> to not span a partition across the boundary. If someone really
> insists on doing this then we can create a new binding for the
> purpose; but leave the old binding as is. Maybe something like:
>
> mtd {
> #address-cells =3D <1>;
> #size-cells =3D <1>;
> compatibly =3D "weird-mtd-concat";
> devices =3D <&mtd1 &mtd2 &mtd3>;
> partition1@0 {
> reg =3D <0 0x100000>;
> };
> partition2@100000 {
> reg =3D <0x100000 0x100000>;
> };
> }
>
> Where mtd1, 2 & 3 point to real flash nodes. That way the
> concatenated MTD devices could be anything NAND, NOR, SRAM, whatever
> and it doesn't have to try and overload the existing device bindings.
I think I like this idea. If nobody objects or has a better idea then I cou=
ld=20
start implementing it this way in a while.
Thanks.
Best regards,
Stefan
WARNING: multiple messages have this Message-ID (diff)
From: Stefan Roese <sr-ynQEQJNshbs@public.gmane.org>
To: Grant Likely <grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org>
Cc: linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
devicetree-discuss list
<devicetree-discuss-mnsaURCQ41sdnm+yROfE0A@public.gmane.org>
Subject: Re: physmap_of and partitions (mtd concat support)
Date: Tue, 24 Mar 2009 16:39:56 +0100 [thread overview]
Message-ID: <200903241639.56637.sr@denx.de> (raw)
In-Reply-To: <fa686aa40903240757n569f2b04t1309e817fd30728d-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Tuesday 24 March 2009, Grant Likely wrote:
> >> Sounds to me like a physmap_of driver bug. I don't think there is any
> >> advantage in changing the partition syntax since concatenated flash
> >> will always be used as a single device. It doesn't make any sense to
> >> try and span partitions over two nodes.
> >
> > Yes, I would really love to make this possible with only one flash node.
> > But just think about the following system configuration:
> >
> > One Intel Strataflash (compatible = "cfi-flash") and one non-cfi
> > compatible flash (e.g. compatible = "jedec-flash"). And the user wants to
> > define a partition that spans over both flash chips. How could this be
> > described in one flash node?
> >
> >> Do additional properties need to be added to describe the concat layout?
> >
> > Not sure. If we have multiple identical devices they can currently be
> > described in one flash node. So with some changes to the physmap_of
> > driver this configuration will work with concat as well. But more complex
> > is a system configuration as described above. Meaning two or more
> > non-identical chips. I don't see how this could be described in a sane
> > way in one flash node.
>
> Are there any such platforms?
Yes, I know some. Even though they are currently not used with a partition
spanning over those multiple chips (jedec and cfi).
> Is there much likelihood that such a
> platform will be created? Would it even be a good idea to span
> partitions across such an arrangement given that different devices
> will behave differently?
OK, in the example above such a spanning partition is not so likely. But think
about my original example, the Intel P30 with two different cfi compatible
chips on one die. Here a partition spanning over both devices is very likely.
As a sidenote: All this (concat over different chips) is possible with the
physmap.c mapping driver which was used on most of my platforms in the "old"
arch/ppc days.
> I think just leave that arrangement as hypothetical until the
> situation actually occurs. If it does occur, then strongly recommend
> to not span a partition across the boundary. If someone really
> insists on doing this then we can create a new binding for the
> purpose; but leave the old binding as is. Maybe something like:
>
> mtd {
> #address-cells = <1>;
> #size-cells = <1>;
> compatibly = "weird-mtd-concat";
> devices = <&mtd1 &mtd2 &mtd3>;
> partition1@0 {
> reg = <0 0x100000>;
> };
> partition2@100000 {
> reg = <0x100000 0x100000>;
> };
> }
>
> Where mtd1, 2 & 3 point to real flash nodes. That way the
> concatenated MTD devices could be anything NAND, NOR, SRAM, whatever
> and it doesn't have to try and overload the existing device bindings.
I think I like this idea. If nobody objects or has a better idea then I could
start implementing it this way in a while.
Thanks.
Best regards,
Stefan
next prev parent reply other threads:[~2009-03-24 15:39 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-23 10:51 physmap_of and partitions (mtd concat support) Stefan Roese
2009-03-23 15:37 ` Grant Likely
2009-03-24 9:07 ` Stefan Roese
2009-03-24 14:57 ` Grant Likely
2009-03-24 14:57 ` Grant Likely
2009-03-24 15:39 ` Stefan Roese [this message]
2009-03-24 15:39 ` Stefan Roese
2009-03-24 16:28 ` Grant Likely
2009-03-24 16:28 ` Grant Likely
2009-03-25 9:35 ` Stefan Roese
2009-03-25 9:35 ` Stefan Roese
2009-03-25 13:28 ` Grant Likely
2009-03-25 13:28 ` Grant Likely
2009-03-25 14:14 ` Stefan Roese
2009-03-25 14:14 ` Stefan Roese
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=200903241639.56637.sr@denx.de \
--to=sr@denx.de \
--cc=devicetree-discuss@ozlabs.org \
--cc=grant.likely@secretlab.ca \
--cc=linuxppc-dev@ozlabs.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 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.