From: Robert Richter <robert.richter@caviumnetworks.com>
To: Arnd Bergmann <arnd@arndb.de>, Rob Herring <robh+dt@kernel.org>
Cc: mark.rutland@arm.com, devicetree@vger.kernel.org,
steve.capper@linaro.org, pawel.moll@arm.com, al.stone@linaro.org,
ard.biesheuvel@linaro.org, catalin.marinas@arm.com,
ijc+devicetree@hellion.org.uk, Will.Deacon@arm.com,
leif.lindholm@linaro.org, rfranz@cavium.com,
galak@codeaurora.org, hanjun.guo@linaro.org, msalter@redhat.com,
grant.likely@linaro.org,
Ganapatrao Kulkarni <gkulkarni@caviumnetworks.com>,
linux-arm-kernel@lists.infradead.org, gpkulkarni@gmail.com
Subject: Re: [PATCH v5 2/4] Documentation: arm64/arm: dt bindings for numa.
Date: Sat, 22 Aug 2015 17:06:16 +0200 [thread overview]
Message-ID: <20150822150616.GC8624@rric.localhost> (raw)
In-Reply-To: <1439570374-4079-3-git-send-email-gkulkarni@caviumnetworks.com>
On 14.08.15 22:09:32, Ganapatrao Kulkarni wrote:
> DT bindings for numa map for memory, cores and IOs using
> arm,associativity device node property.
Arnd, Rob,
as the change below suggests the same topology syntax as already
implemented for PPC, could you take a look at this one for arm64?
Please ack the devicetree changes, assuming you are fine with it.
All other review comments are addressed so far and there are no open
issues with the patches. This would help us to further drive this
series upstream.
Many thanks,
-Robert
> Signed-off-by: Ganapatrao Kulkarni <gkulkarni@caviumnetworks.com>
> ---
> Documentation/devicetree/bindings/arm/numa.txt | 212 +++++++++++++++++++++++++
> 1 file changed, 212 insertions(+)
> create mode 100644 Documentation/devicetree/bindings/arm/numa.txt
>
> diff --git a/Documentation/devicetree/bindings/arm/numa.txt b/Documentation/devicetree/bindings/arm/numa.txt
> new file mode 100644
> index 0000000..dc3ef86
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/arm/numa.txt
> @@ -0,0 +1,212 @@
> +==============================================================================
> +NUMA binding description.
> +==============================================================================
> +
> +==============================================================================
> +1 - Introduction
> +==============================================================================
> +
> +Systems employing a Non Uniform Memory Access (NUMA) architecture contain
> +collections of hardware resources including processors, memory, and I/O buses,
> +that comprise what is commonly known as a NUMA node.
> +Processor accesses to memory within the local NUMA node is generally faster
> +than processor accesses to memory outside of the local NUMA node.
> +DT defines interfaces that allow the platform to convey NUMA node
> +topology information to OS.
> +
> +==============================================================================
> +2 - arm,associativity
> +==============================================================================
> +The mapping is done using arm,associativity device property.
> +this property needs to be present in every device node which needs to to be
> +mapped to numa nodes.
> +
> +arm,associativity property is set of 32-bit integers which defines level of
> +topology and boundary in the system at which a significant difference in
> +performance can be measured between cross-device accesses within
> +a single location and those spanning multiple locations.
> +The first cell always contains the broadest subdivision within the system,
> +while the last cell enumerates the individual devices, such as an SMT thread
> +of a CPU, or a bus bridge within an SoC".
> +
> +ex:
> + /* board 0, socket 0, cluster 0, core 0 thread 0 */
> + arm,associativity = <0 0 0 0 0>;
> +
> +==============================================================================
> +3 - arm,associativity-reference-points
> +==============================================================================
> +This property is a set of 32-bit integers, each representing an index into
> +the arm,associativity nodes. The first integer is the most significant
> +NUMA boundary and the following are progressively less significant boundaries.
> +There can be more than one level of NUMA.
> +
> +Ex:
> + arm,associativity-reference-points = <0 1>;
> + The board Id(index 0) used first to calculate the associativity (node
> + distance), then follows the socket id(index 1).
> +
> + arm,associativity-reference-points = <1 0>;
> + The socket Id(index 1) used first to calculate the associativity,
> + then follows the board id(index 0).
> +
> + arm,associativity-reference-points = <0>;
> + Only the board Id(index 0) used to calculate the associativity.
> +
> + arm,associativity-reference-points = <1>;
> + Only socket Id(index 1) used to calculate the associativity.
> +
> +==============================================================================
> +4 - Example dts
> +==============================================================================
> +
> +Example: 2 Node system consists of 2 boards and each board having one socket
> +and 8 core in each socket.
> +
> + arm,associativity-reference-points = <0>;
> +
> + memory@00c00000 {
> + device_type = "memory";
> + reg = <0x0 0x00c00000 0x0 0x80000000>;
> + /* board 0, socket 0, no specific core */
> + arm,associativity = <0 0 0xffff>;
> + };
> +
> + memory@10000000000 {
> + device_type = "memory";
> + reg = <0x100 0x00000000 0x0 0x80000000>;
> + /* board 1, socket 0, no specific core */
> + arm,associativity = <1 0 0xffff>;
> + };
> +
> + cpus {
> + #address-cells = <2>;
> + #size-cells = <0>;
> +
> + cpu@000 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x000>;
> + enable-method = "psci";
> + /* board 0, socket 0, core 0*/
> + arm,associativity = <0 0 0>;
> + };
> + cpu@001 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x001>;
> + enable-method = "psci";
> + arm,associativity = <0 0 1>;
> + };
> + cpu@002 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x002>;
> + enable-method = "psci";
> + arm,associativity = <0 0 2>;
> + };
> + cpu@003 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x003>;
> + enable-method = "psci";
> + arm,associativity = <0 0 3>;
> + };
> + cpu@004 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x004>;
> + enable-method = "psci";
> + arm,associativity = <0 0 4>;
> + };
> + cpu@005 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x005>;
> + enable-method = "psci";
> + arm,associativity = <0 0 5>;
> + };
> + cpu@006 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x006>;
> + enable-method = "psci";
> + arm,associativity = <0 0 6>;
> + };
> + cpu@007 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x007>;
> + enable-method = "psci";
> + arm,associativity = <0 0 7>;
> + };
> + cpu@008 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x008>;
> + enable-method = "psci";
> + /* board 1, socket 0, core 0*/
> + arm,associativity = <1 0 0>;
> + };
> + cpu@009 {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x009>;
> + enable-method = "psci";
> + arm,associativity = <1 0 1>;
> + };
> + cpu@00a {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x00a>;
> + enable-method = "psci";
> + arm,associativity = <0 0 2>;
> + };
> + cpu@00b {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x00b>;
> + enable-method = "psci";
> + arm,associativity = <1 0 3>;
> + };
> + cpu@00c {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x00c>;
> + enable-method = "psci";
> + arm,associativity = <1 0 4>;
> + };
> + cpu@00d {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x00d>;
> + enable-method = "psci";
> + arm,associativity = <1 0 5>;
> + };
> + cpu@00e {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x00e>;
> + enable-method = "psci";
> + arm,associativity = <1 0 6>;
> + };
> + cpu@00f {
> + device_type = "cpu";
> + compatible = "arm,armv8";
> + reg = <0x0 0x00f>;
> + enable-method = "psci";
> + arm,associativity = <1 0 7>;
> + };
> + };
> +
> + pcie0: pcie0@0x8480,00000000 {
> + compatible = "arm,armv8";
> + device_type = "pci";
> + bus-range = <0 255>;
> + #size-cells = <2>;
> + #address-cells = <3>;
> + reg = <0x8480 0x00000000 0 0x10000000>; /* Configuration space */
> + ranges = <0x03000000 0x8010 0x00000000 0x8010 0x00000000 0x70 0x00000000>; /* mem ranges */
> + /* board 0, socket 0, pci bus 0*/
> + arm,associativity = <0 0 0>;
> + };
> --
> 1.8.1.4
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
next prev parent reply other threads:[~2015-08-22 15:06 UTC|newest]
Thread overview: 48+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-14 16:39 [PATCH v5 0/8] arm64, numa: Add numa support for arm64 platforms Ganapatrao Kulkarni
2015-08-14 16:39 ` [PATCH v5 1/4] arm64, numa: adding " Ganapatrao Kulkarni
[not found] ` <1439570374-4079-2-git-send-email-gkulkarni-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2015-09-03 9:52 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXXiU3LcUWvjP8r4pHUysYe7X4DJBvjhXzf+p4qaJdBVWA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-03 10:13 ` Will Deacon
[not found] ` <20150903101328.GB877-5wv7dgnIgG8@public.gmane.org>
2015-09-29 8:43 ` Ganapatrao Kulkarni
2015-10-05 5:24 ` Ganapatrao Kulkarni
2015-08-14 16:39 ` [PATCH v5 2/4] Documentation: arm64/arm: dt bindings for numa Ganapatrao Kulkarni
2015-08-22 15:06 ` Robert Richter [this message]
[not found] ` <1439570374-4079-3-git-send-email-gkulkarni-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2015-08-23 21:49 ` Rob Herring
2015-08-28 11:32 ` Matthias Brugger
2015-08-28 12:32 ` Mark Rutland
2015-08-28 14:02 ` Rob Herring
[not found] ` <CAL_JsqLOpUTVeKbkJ6uPi0EYistd=BowAHdtSmaUYYDhU6c9Sg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-28 21:37 ` Benjamin Herrenschmidt
[not found] ` <1440797856.2912.239.camel-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2015-09-02 17:11 ` Ganapatrao Kulkarni
2015-08-29 9:46 ` Leizhen (ThunderTown)
[not found] ` <55E17F58.5020101-hv44wF8Li93QT0dZR+AlfA@public.gmane.org>
2015-08-29 10:37 ` Benjamin Herrenschmidt
[not found] ` <1440844631.2912.248.camel-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2015-08-31 1:46 ` Leizhen (ThunderTown)
2015-08-29 14:56 ` Ganapatrao Kulkarni
2015-08-31 2:53 ` Leizhen (ThunderTown)
[not found] ` <CAFpQJXWO0xT0kxWf09L_XcAOXm1Lov8i2U2BQzk-x0TStj7vBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-08 13:27 ` Hanjun Guo
[not found] ` <55EEE229.7070301-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
2015-09-08 16:27 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXV66dAfDMttMNTApyy1554-rvw=Q0n60BOtsp=61gJ+zQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-11 3:53 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXX0KYiKKgxM3B467PFLS0jCakTp8A2u=QEs8_Fj4EZYBg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-11 6:43 ` Leizhen (ThunderTown)
2015-09-29 8:35 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXWzM644KsFWP9ei-k6gWgNVpBVT+UbY7NYdyfmyL=zMkw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-29 8:38 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXWFx2dQ_vv0POqkOiLe3eh9Ee=Sf+2Xx_08Vp=E4g6gLQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-09-29 9:42 ` Benjamin Herrenschmidt
2015-09-30 0:28 ` Benjamin Herrenschmidt
[not found] ` <1443572883.2865.42.camel-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
2015-09-30 10:19 ` Ganapatrao Kulkarni
2015-09-30 10:53 ` Mark Rutland
2015-09-30 17:50 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXVegqortRLK+g7_9p82KMYwq0hg8n3_9bJqjGHsJvngaA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-01 1:05 ` Benjamin Herrenschmidt
2015-10-01 5:11 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXXKcwks0iZN+3B=U0-9uYKFpAXcZE90GCHN9WyM45Hdpw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-01 5:25 ` Ganapatrao Kulkarni
2015-10-01 7:17 ` Benjamin Herrenschmidt
2015-10-01 11:36 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXUPWZxOWeJQnkw8E_voDoqhphH8iR-fr0xo0m3+FiL4sA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-10-13 16:47 ` Mark Rutland
2015-10-13 17:07 ` Ganapatrao Kulkarni
2015-10-14 13:21 ` Hanjun Guo
2015-08-14 16:39 ` [PATCH v5 3/4] arm64, numa, dt: adding dt based numa support using dt node property arm, associativity Ganapatrao Kulkarni
[not found] ` <1439570374-4079-4-git-send-email-gkulkarni-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2015-10-09 15:18 ` Catalin Marinas
[not found] ` <20151009151850.GX17192-M2fw3Uu6cmfZROr8t4l/smS4ubULX0JqMm0uRHvK7Nw@public.gmane.org>
2015-10-09 16:51 ` Ganapatrao Kulkarni
2015-08-14 16:39 ` [PATCH v5 4/4] arm64, dt, thunderx: Add initial dts for Cavium Thunder SoC in 2 Node topology Ganapatrao Kulkarni
[not found] ` <1439570374-4079-5-git-send-email-gkulkarni-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2015-08-18 6:16 ` Jisheng Zhang
[not found] ` <1439570374-4079-1-git-send-email-gkulkarni-M3mlKVOIwJVv6pq1l3V1OdBPR1lH4CV8@public.gmane.org>
2015-08-14 16:44 ` [PATCH v5 0/8] arm64, numa: Add numa support for arm64 platforms Ganapatrao Kulkarni
[not found] ` <CAFpQJXXXFmWE5rk9=KW_Vg0B9aA+Cd_6YQOeiCZ21Q61cSQ+ew-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-20 6:50 ` Ganapatrao Kulkarni
2015-08-28 14:31 ` Matthias Brugger
[not found] ` <55E070D6.8060604-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-08-28 14:59 ` Ganapatrao Kulkarni
[not found] ` <CAFpQJXUYycrvxp_p=A_pmeNUpHVs=8kYUfZP9dYDhYLqeCTZ3Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-08-28 15:36 ` Matthias Brugger
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=20150822150616.GC8624@rric.localhost \
--to=robert.richter@caviumnetworks.com \
--cc=Will.Deacon@arm.com \
--cc=al.stone@linaro.org \
--cc=ard.biesheuvel@linaro.org \
--cc=arnd@arndb.de \
--cc=catalin.marinas@arm.com \
--cc=devicetree@vger.kernel.org \
--cc=galak@codeaurora.org \
--cc=gkulkarni@caviumnetworks.com \
--cc=gpkulkarni@gmail.com \
--cc=grant.likely@linaro.org \
--cc=hanjun.guo@linaro.org \
--cc=ijc+devicetree@hellion.org.uk \
--cc=leif.lindholm@linaro.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=mark.rutland@arm.com \
--cc=msalter@redhat.com \
--cc=pawel.moll@arm.com \
--cc=rfranz@cavium.com \
--cc=robh+dt@kernel.org \
--cc=steve.capper@linaro.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;
as well as URLs for NNTP newsgroup(s).