[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220629202800.GJ25951@gate.crashing.org>
Date: Wed, 29 Jun 2022 15:28:01 -0500
From: Segher Boessenkool <segher@...nel.crashing.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@...aro.org>
Cc: Ash Logan <ash@...quark.com>, krzysztof.kozlowski+dt@...aro.org,
paulus@...ba.org, mpe@...erman.id.au, christophe.leroy@...roup.eu,
robh+dt@...nel.org, benh@...nel.crashing.org,
devicetree@...r.kernel.org, linkmauve@...kmauve.fr,
linux-kernel@...r.kernel.org, rw-r-r-0644@...tonmail.com,
joel@....id.au, linuxppc-dev@...ts.ozlabs.org, j.ne@...teo.net
Subject: Re: [PATCH v3 02/12] powerpc: wiiu: device tree
On Wed, Jun 29, 2022 at 08:13:13PM +0200, Krzysztof Kozlowski wrote:
> On 29/06/2022 18:13, Segher Boessenkool wrote:
> > On Wed, Jun 29, 2022 at 11:58:18AM +0200, Krzysztof Kozlowski wrote:
> >>> + /* TODO: Add SMP */
> >>> + PowerPC,espresso@0 {
> >>
> >> Node name should be generic, so "cpu". Unless something needs the
> >> specific node name?
> >
> > This is how most other PowerPC firmwares do it. The PowerPC processor
> > binding is older than the generic naming practice, so CPU nodes have
> > device_type "cpu" instead.
>
> ePAPR 1.0 from 2008 explicitly asks for generic node names. So 4 years
> before Nintento Wii U. Maybe earlier ePAPR-s were also asking for this,
> no clue, don't have them.
The majority of PowerPC 750 systems long predate that. Many *current*
systems implement the PowerPC Processor Binding, too (not the epapr
thing, which is incompatible with the older standards!)
> > There is no added value in generic naming for CPU nodes anyway, since
> > you just find them as the children of the "/cpus" node :-)
>
> There is because you might have there caches. It also makes code easier
> to read.
In the processor binding the cache nodes were subnodes of cpu nodes or
other cache nodes. But in some server products you can have cache that
is enabled while the corresponding core is disabled; and also, not all
cache belongs to only one higher level anyway. This was modelled pretty
uncleanly, yup (cleaner would have been to have a /caches node as well
as /cpus, for example).
But on 750 you just have "l2-cache" subnodes, and all nodes in /cpus are
CPUs :-)
Segher
Powered by blists - more mailing lists