Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp240987rwl; Wed, 4 Jan 2023 18:31:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXsC9V3vHqZhZ+oaHhAmF2/o/ujxqaRB82MZwcc067veR6iYgn3nuQYc2RUyGU/FFn4Er9Rs X-Received: by 2002:a50:c049:0:b0:488:8ee3:56b4 with SMTP id u9-20020a50c049000000b004888ee356b4mr23950654edd.19.1672885885375; Wed, 04 Jan 2023 18:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672885885; cv=none; d=google.com; s=arc-20160816; b=t9rAnCeFclhuNvfpAXv2fSj9o/XyOp8ycflei9rGp/pez4752Z2OSXMxz9+SQ99AxE vY9IYCUzQBl6bHbUJYN4ITNjzUbdkBs3Fpp5f3MwoC8u9mvlom7aoINNNyStbjY+6K8b O9PlticeXCskIAaWOHG9oIX0ui4FeRsPdVdZyfxkm4MFbjP5QnZrabHxpBsVpO/q514G 50dQgvqDDPmR/8ftAEimbM57QYWK3wjN20N03oYWPRNqlTWWEUP44K1E73OtXVYuwefu eiavYfh4QjYp4vTeP1rd7EqC00jTyL/uPN04uSqz2bEVeXd6FlrY4l+kp1kmyB2Y6B1n a3yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from; bh=iWWQvuIW+Lj7KGvqO3SA1y+IFmcsIveiaqRkoxuOLDo=; b=xJY3wiovojSm5UFKcoztbqoS7iYloGFM5HaLgzXQtTnOe1SHxgpXRJ1FSCo1ij/C5D uXzWtm2aT2ZeOK9zgn7yd0uST3OgWiZXkfwSIeYLt39THO/WoqYvk4u4NcU7z9XUcUz/ foPcNMHho2v1qBcTN0PmaMMhV5Yq4U5bTLKPjdz1wK/27FUUt8CQP1GFEE0ROnRS4IpV 8L6wbHmoTe5shhQ3CGKOyGp3Axpt3IseGCd5IxZsMb+jlwGQb4Z6t3pNkvtiaAzxalB2 EmAU4neObjIIoEMa5up0Nz8OtrliFfxLh0HFnSL221SobNC3lWt7GCLsnaTYe5OGBaZB xBJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x9-20020a05640226c900b0047e522a49e5si32010598edd.463.2023.01.04.18.31.11; Wed, 04 Jan 2023 18:31:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229832AbjAEBz6 convert rfc822-to-8bit (ORCPT + 56 others); Wed, 4 Jan 2023 20:55:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbjAEBz4 (ORCPT ); Wed, 4 Jan 2023 20:55:56 -0500 Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D350DE86; Wed, 4 Jan 2023 17:55:54 -0800 (PST) Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id 4F55424E1AB; Thu, 5 Jan 2023 09:55:53 +0800 (CST) Received: from EXMBX067.cuchost.com (172.16.6.67) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 5 Jan 2023 09:55:53 +0800 Received: from EXMBX161.cuchost.com (172.16.6.71) by EXMBX067.cuchost.com (172.16.6.67) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Thu, 5 Jan 2023 09:55:52 +0800 Received: from EXMBX161.cuchost.com ([fe80::f152:b9a3:2243:db3c]) by EXMBX161.cuchost.com ([fe80::f152:b9a3:2243:db3c%15]) with mapi id 15.00.1497.044; Thu, 5 Jan 2023 09:55:52 +0800 From: Leyfoon Tan To: Conor Dooley , "palmer@dabbelt.com" CC: Conor Dooley , Sudeep Holla , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , "Alex Shi" , Yanteng Si , "Lorenzo Pieralisi" , "devicetree@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-riscv@lists.infradead.org" , "linux-doc@vger.kernel.org" Subject: RE: [PATCH v1 2/2] dt-bindings: riscv: add a capacity-dmips-mhz cpu property Thread-Topic: [PATCH v1 2/2] dt-bindings: riscv: add a capacity-dmips-mhz cpu property Thread-Index: AQHZIGc9BMS8YNU6e0GmWB/Wrj6HBK6PEFog Date: Thu, 5 Jan 2023 01:55:52 +0000 Message-ID: References: <20230104180513.1379453-1-conor@kernel.org> <20230104180513.1379453-3-conor@kernel.org> In-Reply-To: <20230104180513.1379453-3-conor@kernel.org> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [202.188.176.82] x-yovoleruleagent: yovoleflag Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > > From: Conor Dooley > > Since commit 03f11f03dbfe ("RISC-V: Parse cpu topology during boot.") RISC- > V has used the generic arch topology code, which provides for disparate CPU > capacities. We never defined a binding to acquire this information from the > DT though, so document the one already used by the generic arch topology > code: "capacity-dmips-mhz". > > Signed-off-by: Conor Dooley > --- > Documentation/devicetree/bindings/riscv/cpus.yaml | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/Documentation/devicetree/bindings/riscv/cpus.yaml > b/Documentation/devicetree/bindings/riscv/cpus.yaml > index c6720764e765..2480c2460759 100644 > --- a/Documentation/devicetree/bindings/riscv/cpus.yaml > +++ b/Documentation/devicetree/bindings/riscv/cpus.yaml > @@ -114,6 +114,12 @@ properties: > List of phandles to idle state nodes supported > by this hart (see ./idle-states.yaml). > > + capacity-dmips-mhz: > + description: > + u32 value representing CPU capacity (see ../cpu/cpu-capacity.txt) in > + DMIPS/MHz, relative to highest capacity-dmips-mhz > + in the system. > + > required: > - riscv,isa > - interrupt-controller > -- > 2.39.0 Thanks Conor. Reviewed-by: Ley Foon Tan Regards Ley Foon