Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 874B3C433EF for ; Thu, 4 Nov 2021 07:13:15 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 85D6B61053 for ; Thu, 4 Nov 2021 07:13:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 85D6B61053 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1miWU5-0007kz-TW; Thu, 04 Nov 2021 02:44:25 -0400 Received: from mscreen.etri.re.kr ([129.254.9.16]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA (Exim 4.94.2) (envelope-from ) id 1miWU1-0007hG-C3 for kernelnewbies@kernelnewbies.org; Thu, 04 Nov 2021 02:44:22 -0400 Received: from unknown (HELO send001-relay.gov-dooray.com) (211.180.235.152) by 129.254.9.16 with ESMTP; 4 Nov 2021 15:44:12 +0900 X-Original-SENDERIP: 211.180.235.152 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: kernelnewbies@kernelnewbies.org Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send001-relay.gov-dooray.com with SMTP id ba09d78c6183813c; Thu, 04 Nov 2021 15:44:12 +0900 DKIM-Signature: a=rsa-sha256; b=PF3Y+jquhk7R4euuNww74sz9XhQbawnqOo3o0SBhkELh0UyHfeD0XJF+oJIX23xBWbOFL96U9g td32is2CJHXiVwh4I5qyFYK21sVwuFD2nyCKm7kGKtKQhDKL0n3nO7JArhExg/r7+b4j2XVEanbA ZZyShQoU5tiBNMkJVcdSYSoq0jgV0ysIgGFXH8tdx3KBUJo8Wwo/LgQCYmLKRTm8a6ck/Wi3pJ0F yN2Tw/Zg4u/7GiayuEP+r/XKtlNl018biUK/hbr+TODDEF3CndbKjrHJ6rJLcVFjzzGl4gWbD5fv BgKrqzEuD0LGllT/pw6HR2rhz5b6ETpKckonqJQg==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=g7EpAhpBBoHi3ZMz+tqp4d6d0XBQAiBKvlCC5B7Wzxw=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id 6095e89c6183813c; Thu, 04 Nov 2021 15:44:12 +0900 From: "Chan Kim" To: Subject: In the device tree, what does multiple cpu nodes mean inside 'cpus' node without the wrapping 'cpu-map' node? Date: Thu, 4 Nov 2021 15:44:10 +0900 Message-ID: <001f01d7d147$5faaef00$1f00cd00$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AdfRRr1YiBYHOQc8TzixOmckTgVrXg== Content-Language: ko X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============8225325272373350152==" Errors-To: kernelnewbies-bounces@kernelnewbies.org This is a multipart message in MIME format. --===============8225325272373350152== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0020_01D7D192.CF957D30" Content-Language: ko This is a multipart message in MIME format. ------=_NextPart_000_0020_01D7D192.CF957D30 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hello all, There is something I can't understand clearly about the device tree's cpu topology so I ask it here. In Documentation/devicetree/bindings/cpu/cpu-topology.txt, it says abput cpu-map node, - cpu-map node Usage: Optional - On SMP systems provide CPUs topology to the OS. Uniprocessor systems do not require a topology description and therefore should not define a cpu-map node. Description: The cpu-map node is just a container node where its subnodes describe the CPU topology. Node name must be "cpu-map". The cpu-map node's parent node must be the cpus node. The cpu-map node's child nodes can be: - one or more cluster nodes or - one or more socket nodes in a multi-socket system Any other configuration is considered invalid. And the arch/arm64/boot/dts/arm/juno.dts files shows the usage of this cpu-map node. cpus { #address-cells = <2>; #size-cells = <0>; cpu-map { cluster0 { core0 { cpu = <&A57_0>; }; core1 { cpu = <&A57_1>; }; }; cluster1 { core0 { cpu = <&A53_0>; }; core1 { cpu = <&A53_1>; }; core2 { cpu = <&A53_2>; }; core3 { cpu = <&A53_3>; }; }; }; But in arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts, cpus { #address-cells = <2>; #size-cells = <0>; cpu@0 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0 0>; next-level-cache = <&L2_0>; }; cpu@1 { device_type = "cpu"; compatible = "arm,cortex-a53"; reg = <0 1>; next-level-cache = <&L2_0>; }; L2_0: l2-cache0 { compatible = "cache"; }; }; So, uni-processor system should not define a cpu-map node and the above vexpress-v2f-1xv7-ca53x2 fpga tile has this multiple cpus directly inside the cpus node(without wrapping with cpu-map node). So even though it is not uni-processor system, it doesn't have cpu-map node, Just cpu nodes. What does it mean? Does it mean this system doesn't support SMP? Or, I can use style without violation? Any comment/explanation will be very much appreciated. Thank you! Chan Kim ------=_NextPart_000_0020_01D7D192.CF957D30 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hello = all,

 

There is something I can’t understand clearly about = the device tree’s cpu topology so I ask it = here.

In = Documentation/devicetree/bindings/cpu/cpu-topology.txt, it says abput = cpu-map node, 

 

- cpu-map = node

 

        Usage: Optional = - On SMP systems provide CPUs topology to the = OS.

          =         Uniprocessor systems do not = require a topology

      =             d= escription and therefore should not define a

          =         cpu-map = node.

 

        Description: The = cpu-map node is just a container node where its

          =        subnodes describe the CPU = topology.

 

        Node name must = be "cpu-map".

 

        The cpu-map = node's parent node must be the cpus node.

 

        The cpu-map = node's child nodes can be:

 

        - one or more = cluster nodes or

        - one or more = socket nodes in a multi-socket system

 

        Any other = configuration is considered invalid.

 

And the = arch/arm64/boot/dts/arm/juno.dts files shows the usage of this cpu-map = node.

 

cpus = {

          =   #address-cells =3D <2>;

          =   #size-cells =3D <0>;

 

          =   cpu-map {

          =       cluster0 {

          =           core0 = {

          =             &= nbsp; cpu =3D <&A57_0>;

          =           = };

          =           core1 = {

          =             &= nbsp; cpu =3D <&A57_1>;

          =           = };

        =         };

<= p class=3DMsoPlainText> 

          =       cluster1 {

          =           core0 = {

          =             &= nbsp; cpu =3D <&A53_0>;

          =           = };

          =           core1 = {

          =             &= nbsp; cpu =3D <&A53_1>;

          =           = };

          =           core2 = {

          =             &= nbsp; cpu =3D <&A53_2>;

          =           = };

          =           core3 = {

          =             &= nbsp; cpu =3D <&A53_3>;

          =           = };

          =       };

          =   };

 

But in = arch/arm64/boot/dts/arm/vexpress-v2f-1xv7-ca53x2.dts,  =

 

cpus = {

          =   #address-cells =3D <2>;

          =   #size-cells =3D <0>;

 

          =   cpu@0 {

          =       device_type =3D = "cpu";

          =       compatible =3D = "arm,cortex-a53";

          =       reg =3D <0 = 0>;

          =       next-level-cache =3D = <&L2_0>;

          =   };

 

          =   cpu@1 {

          =       device_type =3D = "cpu";

          =       compatible =3D = "arm,cortex-a53";

          =       reg =3D <0 = 1>;

          =       next-level-cache =3D = <&L2_0>;

          =   };

 

   =          L2_0: l2-cache0 = {

          =       compatible =3D = "cache";

          =   };

        = };

 

So, uni-processor system should not define a cpu-map node = and the above vexpress-v2f-1xv7-ca53x2 fpga tile has this multiple cpus = directly inside the cpus node(without wrapping with cpu-map node). So = even though it is not uni-processor system, it doesn't have cpu-map = node, Just cpu nodes.

What does it mean? Does it mean = this system doesn't support SMP? Or, I can use style without = violation?

Any comment/explanation will be very much = appreciated.

Thank you!

 

Chan = Kim

------=_NextPart_000_0020_01D7D192.CF957D30-- --===============8225325272373350152== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies --===============8225325272373350152==--