Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2258601rdf; Mon, 6 Nov 2023 08:54:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkcCs2KfjNoHC6wAE4CszMRPEsNjauemXM+pzipvrhZOlC6uE3sm9AocN5uuVMz81oRP+R X-Received: by 2002:a17:90b:f83:b0:27d:2108:af18 with SMTP id ft3-20020a17090b0f8300b0027d2108af18mr28876574pjb.25.1699289673276; Mon, 06 Nov 2023 08:54:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699289673; cv=none; d=google.com; s=arc-20160816; b=yi1JTtPlICkgXLSldGd4tozou9U4DhhF+aK/WMtK5Ur+GVmOelhJDG15lUVuMsVkRG GDfdqepOp9r3XG8WyutruEZxovRlht3jQhqdaDLXSS3T4FxEhu4HSv7YMuY0TdJpMu3I xRvaDMgN+GrrEGTUgQSqAbNjXDBjPBKTAv9HAk7E4dBv/mG8KSx/F0v3UmiMz3xHr4Xb Yf0kMMg+CuEwd+cXWXNNEJVgyvF00a8KScdUAC/TZPDRy65jzTUz5YkyhCIKJk2rj+Hv qO+yr2EXcp0ieCV7fDyxjp65TAysGTr2mQgTvRaGOr9WRR6LCLJNYr0nPDHVLAy7xFUx OU8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=ONrkCNODdlggpLA5mWEcjOQapfgKfPxTrYxnVyq0KIA=; fh=vl+qqhOXzdBnEAuw/eIaCk6U/i8zZ3icAGyXYr54dTg=; b=xv0CuldL9sOhS4PwnMLBzNX6/709nkjRuTzDQCKuBAN0BOcZoMUtbu2wbNEJrBcyzO kRSfeFINWLIh485wWw7wWLw35iriIypt3J4k0IS8jTMhYPLqb1t+JNFwT+EVq2lvgMZT jP8mh0+0cW4ub/RxU3cRTGYT0A67tRWgp3b0NvRaQlOGS+CqDUMZtatuzknsDiLet3dp In7lWqCkDNx+bMNgW2veW4s+eT52wvn8viIs5Ff8T5n30Gf8lO8jcxaq8Me3TsMe0atb a7lvkXGZdvW3HDH9D3KHfnMdsp4P9R1LS5tz0+Krt5Mabi6sDyHgPUHDj3SikA2VqGFb WGrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R3Ij1IqQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id mq5-20020a17090b380500b00280c2b23021si9334130pjb.108.2023.11.06.08.54.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:54:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=R3Ij1IqQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 93AFB8038D61; Mon, 6 Nov 2023 08:54:30 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232064AbjKFQyW (ORCPT + 99 others); Mon, 6 Nov 2023 11:54:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46670 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbjKFQyU (ORCPT ); Mon, 6 Nov 2023 11:54:20 -0500 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9264CB8 for ; Mon, 6 Nov 2023 08:54:17 -0800 (PST) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-9c603e235d1so693510366b.3 for ; Mon, 06 Nov 2023 08:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699289653; x=1699894453; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ONrkCNODdlggpLA5mWEcjOQapfgKfPxTrYxnVyq0KIA=; b=R3Ij1IqQr3d9D/9+aXfZ166oFufd3il1HNh2NqMcE7qRP9SWdYobrMNQQFRykAu1g2 mar/98Lwyt5an9U1DVAER1lwj0EG8UGI8Hmlv+vLHa6UVBUG5gQr7b1sPEfIlO57iUK3 r7jl6yT1AMWP7xMuyW6VlEY4CqFmlgmaNLtB4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699289653; x=1699894453; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ONrkCNODdlggpLA5mWEcjOQapfgKfPxTrYxnVyq0KIA=; b=b41S4OkBT/WOaVTNBOdQJkQiZsGwztWx+U+rYBUnnGg/Szw/Yq+uLXztR8fdKqLMRO HxhQBAbc6jzAwq00dVlq3bKUmiWETBrKGB4Qm3CNpnYQx9dhIOg3ZBowWoAkfOWmOvxt H2O8o+B9VFy2RtQ3UtpXt3GE745neMwfMt2TIqjCRw/SLFxpjEZFCZyqQqKARsrvol4f 7Kf7hkuYitirsSos1XXlK4i+hwjATOXLBHeZG8zXfav00olDsjlWAV4NxAVWF8qHtMXn gWXCiXDOf8OANPWoszksayUZKlOmG42RkJMb5Ojhf5NQ1WL5sZ38+5AndUsSHnelPVAK cWMA== X-Gm-Message-State: AOJu0YzDyNmHM7pOOT0A6NiMsn8YgRzCbt797iShRu4ewBgpxPHHv6to 0PJcFXDEDJFB42U1gZuKLqzXUQckWuQjcixBk2s33A== X-Received: by 2002:a17:907:e92:b0:9be:2991:81f9 with SMTP id ho18-20020a1709070e9200b009be299181f9mr15250604ejc.1.1699289652313; Mon, 06 Nov 2023 08:54:12 -0800 (PST) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com. [209.85.128.48]) by smtp.gmail.com with ESMTPSA id n3-20020a170906724300b009ddc90505desm29617ejk.141.2023.11.06.08.54.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 08:54:12 -0800 (PST) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4078fe6a063so108555e9.1 for ; Mon, 06 Nov 2023 08:54:11 -0800 (PST) X-Received: by 2002:a05:600c:4c19:b0:3f6:f4b:d4a6 with SMTP id d25-20020a05600c4c1900b003f60f4bd4a6mr146334wmp.7.1699289651347; Mon, 06 Nov 2023 08:54:11 -0800 (PST) MIME-Version: 1.0 References: <20231103105440.23904-1-quic_anshar@quicinc.com> In-Reply-To: <20231103105440.23904-1-quic_anshar@quicinc.com> From: Doug Anderson Date: Mon, 6 Nov 2023 08:53:59 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] arm64: dts: qcom: sc7280: Add capacity and DPC properties To: Ankit Sharma Cc: cros-qcom-dts-watchers@chromium.org, agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, linux-arm-msm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, quic_ashayj@quicinc.com, quic_atulpant@quicinc.com, quic_rgottimu@quicinc.com, quic_shashim@quicinc.com, quic_pkondeti@quicinc.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 06 Nov 2023 08:54:30 -0800 (PST) Hi, On Fri, Nov 3, 2023 at 3:54=E2=80=AFAM Ankit Sharma wrote: > > The "capacity-dmips-mhz" and "dynamic-power-coefficient" are > used to build Energy Model which in turn is used by EAS to take > placement decisions. So add it to SC7280 soc. > > Signed-off-by: Ankit Sharma > --- > changes in v2: https://lore.kernel.org/all/20231103095358.29312-1-quic_an= shar@quicinc.com/ > - updated commit message and subject. > > arch/arm64/boot/dts/qcom/sc7280.dtsi | 16 ++++++++++++++++ > 1 file changed, 16 insertions(+) > > diff --git a/arch/arm64/boot/dts/qcom/sc7280.dtsi b/arch/arm64/boot/dts/q= com/sc7280.dtsi > index 8601253aec70..b1890824188c 100644 > --- a/arch/arm64/boot/dts/qcom/sc7280.dtsi > +++ b/arch/arm64/boot/dts/qcom/sc7280.dtsi > @@ -176,6 +176,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_0>; > operating-points-v2 =3D <&cpu0_opp_table>; > + capacity-dmips-mhz =3D <1024>; > + dynamic-power-coefficient =3D <100>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 0>; > @@ -204,6 +206,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_100>; > operating-points-v2 =3D <&cpu0_opp_table>; > + capacity-dmips-mhz =3D <1024>; > + dynamic-power-coefficient =3D <100>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 0>; > @@ -227,6 +231,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_200>; > operating-points-v2 =3D <&cpu0_opp_table>; > + capacity-dmips-mhz =3D <1024>; > + dynamic-power-coefficient =3D <100>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 0>; > @@ -250,6 +256,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_300>; > operating-points-v2 =3D <&cpu0_opp_table>; > + capacity-dmips-mhz =3D <1024>; > + dynamic-power-coefficient =3D <100>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 0>; > @@ -273,6 +281,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_400>; > operating-points-v2 =3D <&cpu4_opp_table>; > + capacity-dmips-mhz =3D <1946>; Though I don't think it's technically required, in other systems (including the examples in the documentation) the biggest CPU gets 1024 "capacity-dmips-mhz" and the other ones are scaled to that. > + dynamic-power-coefficient =3D <520>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 1>; > @@ -296,6 +306,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_500>; > operating-points-v2 =3D <&cpu4_opp_table>; > + capacity-dmips-mhz =3D <1946>; > + dynamic-power-coefficient =3D <520>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 1>; > @@ -319,6 +331,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_600>; > operating-points-v2 =3D <&cpu4_opp_table>; > + capacity-dmips-mhz =3D <1946>; > + dynamic-power-coefficient =3D <520>; > interconnects =3D <&gem_noc MASTER_APPSS_PROC 3 &= mc_virt SLAVE_EBI1 3>, > <&epss_l3 MASTER_EPSS_L3_APPS &ep= ss_l3 SLAVE_EPSS_L3_SHARED>; > qcom,freq-domain =3D <&cpufreq_hw 1>; > @@ -342,6 +356,8 @@ > &CLUSTER_SLEEP_0>; > next-level-cache =3D <&L2_700>; > operating-points-v2 =3D <&cpu7_opp_table>; > + capacity-dmips-mhz =3D <1985>; > + dynamic-power-coefficient =3D <552>; The fact that cpu7 has different values for capacity-dmips-mhz and dynamic-power-coefficient is surprising to me. I think what this means is that at the same MHz this core can process more instructions than the other big CPUs but that (at the same MHz) it burns more power doing so. Is that really true? I thought that this core was essentially the same as the other big cores but was simply anointed to be able to run a little faster. -Doug