Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: sudeep.holla@arm.com (Sudeep Holla)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC PATCH] Documentation: DT: arm: Add topology property to define package boundaries
Date: Tue, 23 Jan 2018 10:35:32 +0000	[thread overview]
Message-ID: <09a288f7-44a5-8f2c-b568-ad117a2ef701@arm.com> (raw)
In-Reply-To: <dcafd8bc-1c10-bdfa-e855-5d48cfe63381@arm.com>



On 22/01/18 23:25, Jeremy Linton wrote:
> Hi,
> 
> On 01/22/2018 11:15 AM, Lorenzo Pieralisi wrote:
>> The current ARM DT topology description provides the operating system
>> with a topological view of the system that is based on leaf nodes
>> representing either cores or threads (in an SMT system) and a
>> hierarchical set of cluster nodes that creates a hierarchical topology
>> view of how those cores and threads are grouped.
>>
>> As opposed to the ACPI topology description ([1], PPTT table), this
>> hierarchical representation of clusters does not allow to describe what
>> topology level actually represents the physical package boundary, which
>> is a key piece of information to be used by an operating system to
>> optimize resource allocation and scheduling.
>>
>> Define an optional, backward compatible boolean property for cluster
>> nodes that, by reusing the ACPI nomenclature, add to the ARM DT
>> topological description a binding to define what cluster level
>> represents a physical package boundary.
>>
>> [1] http://www.uefi.org/sites/default/files/resources/ACPI_6_2.pdf
>>
>> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
>> Cc: Rob Herring <robh+dt@kernel.org>
>> Cc: Sudeep Holla <sudeep.holla@arm.com>
>> Cc: Jeremy Linton <jeremy.linton@arm.com>
>> Cc: Morten Rasmussen <morten.rasmussen@arm.com>
>> Cc: Mark Rutland <mark.rutland@arm.com>
>> ---
>> ? Documentation/devicetree/bindings/arm/topology.txt | 9 +++++++++
>> ? 1 file changed, 9 insertions(+)
>>
>> diff --git a/Documentation/devicetree/bindings/arm/topology.txt
>> b/Documentation/devicetree/bindings/arm/topology.txt
>> index de9eb0486630..8e78d76b0671 100644
>> --- a/Documentation/devicetree/bindings/arm/topology.txt
>> +++ b/Documentation/devicetree/bindings/arm/topology.txt
>> @@ -109,6 +109,15 @@ Bindings for cluster/cpu/thread nodes are defined
>> as follows:
>> ????? The cluster node name must be "clusterN" as described in 2.1 above.
>> ????? A cluster node can not be a leaf node.
>> ? +??? Properties for cluster nodes:
>> +
>> +??? - physical-package
>> +??????? Usage: optional
>> +??????? Value type: <empty>
>> +??????? Definition: if present the cluster node represents the
>> +??????????????? boundary of a physical package, whether socketed
>> +??????????????? or surface mounted.
>> +
>> ????? A cluster node's child nodes must be:
>> ? ????? - one or more cluster nodes; or
>>
> 
> Looks good so far, but I would worry about it being optional. 

We have no choice, it has to be optional for compatibility reasons as
stated in the commit message.

> That seemed like a mistake on the ACPI side.

Not necessarily. It's firmware choice as long as it knows how to deal
with the default(absence in case of DT)

> 
> Assuming it is optional, it might be worth a sentence explaining what
> the fallback behavior is if the property is missing.

That would be helpful.

-- 
Regards,
Sudeep

  reply	other threads:[~2018-01-23 10:35 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-22 17:15 [RFC PATCH] Documentation: DT: arm: Add topology property to define package boundaries Lorenzo Pieralisi
2018-01-22 17:29 ` Sudeep Holla
2018-02-08 11:05   ` Lorenzo Pieralisi
2018-01-22 23:25 ` Jeremy Linton
2018-01-23 10:35   ` Sudeep Holla [this message]
2018-01-23  4:45 ` Frank Rowand
2018-02-08 10:57   ` Lorenzo Pieralisi
2018-02-08 22:22     ` Frank Rowand
2018-02-09  9:43       ` Lorenzo Pieralisi

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=09a288f7-44a5-8f2c-b568-ad117a2ef701@arm.com \
    --to=sudeep.holla@arm.com \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox