From: Scott Wood <scottwood@freescale.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: devicetree@vger.kernel.org,
Poonam Aggrwal <poonam.aggrwal@freescale.com>,
Geoff Thorpe <Geoff.Thorpe@freescale.com>,
Emil Medve <Emilian.Medve@freescale.com>,
linuxppc-dev@ozlabs.org, Chunhe Lan <Chunhe.Lan@freescale.com>
Subject: Re: [PATCH v3 3/4] powerpc/mpc85xx: Add FSL QorIQ DPAA BMan support to device tree(s)
Date: Wed, 3 Dec 2014 22:04:10 -0600 [thread overview]
Message-ID: <1417665850.15957.237.camel@freescale.com> (raw)
In-Reply-To: <7923839.hEiWgLtlCl@wuerfel>
On Wed, 2014-12-03 at 20:42 +0100, Arnd Bergmann wrote:
> On Wednesday 03 December 2014 01:53:39 Emil Medve wrote:
> > On 12/02/2014 06:32 PM, Scott Wood wrote:
> > > On Mon, 2014-12-01 at 04:02 -0600, Emil Medve wrote:
> > >> diff --git a/arch/powerpc/boot/dts/t4240rdb.dts b/arch/powerpc/boot/dts/t4240rdb.dts
> > >> index 53761d4..431bf4e 100644
> > >> --- a/arch/powerpc/boot/dts/t4240rdb.dts
> > >> +++ b/arch/powerpc/boot/dts/t4240rdb.dts
> > >> @@ -69,10 +69,27 @@
> > >> device_type = "memory";
> > >> };
> > >>
> > >> + reserved-memory {
> > >> + #address-cells = <2>;
> > >> + #size-cells = <2>;
> > >> + ranges;
> > >> +
> > >> + bman_fbpr: bman-fbpr {
> > >> + compatible = "fsl,bman-fbpr";
> > >> + alloc-ranges = <0 0 0xffff 0xffffffff>;
> > >> + size = <0 0x1000000>;
> > >> + alignment = <0 0x1000000>;
> > >> + };
> > >> + };
> > >
> > > Can't this be done at the SoC level rather than board level?
> >
> > The size of the memory is not SoC specific. Among other things is
> > determined by the number of MACs that are pinned-out on the board
> >
Oh, right.
> Is this really a hardware property then, or some setting?
It's sort of a gray area (as is the reserved-memory mechanism itself)...
The hardware technically allows software to choose the size of the
memory, but the size required to perform optimally is primarily
determined by the ethernet ports that are pinned out on a given board --
except for any extra memory required by accelerators.
I previously suggested an extension to the reserved-memory binding to
convey the fact that the region can potentially be sized differently:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2014-October/122300.html
In most cases the size calculated from the board's ethernet ports is
what is desired, so I think providing a sane default counts as hardware
description.
-Scott
WARNING: multiple messages have this Message-ID (diff)
From: Scott Wood <scottwood-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
To: Arnd Bergmann <arnd-r2nGTMty4D4@public.gmane.org>
Cc: Emil Medve
<Emilian.Medve-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
linuxppc-dev-mnsaURCQ41sdnm+yROfE0A@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Kumar Gala
<galak-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>,
Geoff Thorpe
<Geoff.Thorpe-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Hai-Ying Wang
<Haiying.Wang-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Chunhe Lan <Chunhe.Lan-KZfg59tc24xl57MIdRCFDg@public.gmane.org>,
Poonam Aggrwal
<poonam.aggrwal-KZfg59tc24xl57MIdRCFDg@public.gmane.org>
Subject: Re: [PATCH v3 3/4] powerpc/mpc85xx: Add FSL QorIQ DPAA BMan support to device tree(s)
Date: Wed, 3 Dec 2014 22:04:10 -0600 [thread overview]
Message-ID: <1417665850.15957.237.camel@freescale.com> (raw)
In-Reply-To: <7923839.hEiWgLtlCl@wuerfel>
On Wed, 2014-12-03 at 20:42 +0100, Arnd Bergmann wrote:
> On Wednesday 03 December 2014 01:53:39 Emil Medve wrote:
> > On 12/02/2014 06:32 PM, Scott Wood wrote:
> > > On Mon, 2014-12-01 at 04:02 -0600, Emil Medve wrote:
> > >> diff --git a/arch/powerpc/boot/dts/t4240rdb.dts b/arch/powerpc/boot/dts/t4240rdb.dts
> > >> index 53761d4..431bf4e 100644
> > >> --- a/arch/powerpc/boot/dts/t4240rdb.dts
> > >> +++ b/arch/powerpc/boot/dts/t4240rdb.dts
> > >> @@ -69,10 +69,27 @@
> > >> device_type = "memory";
> > >> };
> > >>
> > >> + reserved-memory {
> > >> + #address-cells = <2>;
> > >> + #size-cells = <2>;
> > >> + ranges;
> > >> +
> > >> + bman_fbpr: bman-fbpr {
> > >> + compatible = "fsl,bman-fbpr";
> > >> + alloc-ranges = <0 0 0xffff 0xffffffff>;
> > >> + size = <0 0x1000000>;
> > >> + alignment = <0 0x1000000>;
> > >> + };
> > >> + };
> > >
> > > Can't this be done at the SoC level rather than board level?
> >
> > The size of the memory is not SoC specific. Among other things is
> > determined by the number of MACs that are pinned-out on the board
> >
Oh, right.
> Is this really a hardware property then, or some setting?
It's sort of a gray area (as is the reserved-memory mechanism itself)...
The hardware technically allows software to choose the size of the
memory, but the size required to perform optimally is primarily
determined by the ethernet ports that are pinned out on a given board --
except for any extra memory required by accelerators.
I previously suggested an extension to the reserved-memory binding to
convey the fact that the region can potentially be sized differently:
https://lists.ozlabs.org/pipermail/linuxppc-dev/2014-October/122300.html
In most cases the size calculated from the board's ethernet ports is
what is desired, so I think providing a sane default counts as hardware
description.
-Scott
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-12-04 4:04 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-01 10:02 [PATCH v3 0/4] powerpc/mpc85xx: Add FSL QorIQ DPAA B/QMan support to device tree(s) Emil Medve
2014-12-01 10:02 ` Emil Medve
2014-12-01 10:02 ` [PATCH v3 1/4] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA BMan Emil Medve
2014-12-01 10:02 ` Emil Medve
2014-12-03 0:28 ` Scott Wood
2014-12-03 0:28 ` Scott Wood
2014-12-01 10:02 ` [PATCH v3 2/4] powerpc/mpc85xx: Create dts components for the FSL QorIQ DPAA QMan Emil Medve
2014-12-01 10:02 ` Emil Medve
2014-12-01 10:02 ` [PATCH v3 3/4] powerpc/mpc85xx: Add FSL QorIQ DPAA BMan support to device tree(s) Emil Medve
2014-12-01 10:02 ` Emil Medve
2014-12-03 0:32 ` Scott Wood
2014-12-03 0:32 ` Scott Wood
2014-12-03 7:53 ` Emil Medve
2014-12-03 7:53 ` Emil Medve
2014-12-03 19:42 ` Arnd Bergmann
2014-12-03 19:42 ` Arnd Bergmann
2014-12-03 20:19 ` Emil Medve
2014-12-03 20:19 ` Emil Medve
2014-12-04 4:04 ` Scott Wood [this message]
2014-12-04 4:04 ` Scott Wood
2014-12-01 10:02 ` [PATCH v3 4/4] powerpc/mpc85xx: Add FSL QorIQ DPAA QMan " Emil Medve
2014-12-01 10:02 ` Emil Medve
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=1417665850.15957.237.camel@freescale.com \
--to=scottwood@freescale.com \
--cc=Chunhe.Lan@freescale.com \
--cc=Emilian.Medve@freescale.com \
--cc=Geoff.Thorpe@freescale.com \
--cc=arnd@arndb.de \
--cc=devicetree@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=poonam.aggrwal@freescale.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.