Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2422835rdf; Mon, 6 Nov 2023 13:52:49 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXE7HhtkNrOCXd106Q2uw0kUqA96xhRtLoBtmvL3GV5cH5wFQbIV2oMtQ6vvy0pcAFC93P X-Received: by 2002:a17:90a:3cc7:b0:27d:546b:4258 with SMTP id k7-20020a17090a3cc700b0027d546b4258mr24558274pjd.31.1699307568827; Mon, 06 Nov 2023 13:52:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699307568; cv=none; d=google.com; s=arc-20160816; b=b86/T/X+GBkQ3q+kU93ExHLszMbyVjmeD6Y0Qblo698YuKqdRRav1p+5gAvAjUjP0o cTGiYGn+x+yz39ovQjqdKinbGoRQwvh3d6g6EesHVXYMUDt/AnlfU5Z26YrRGlkmk8LC zwkmMT2dfwSBQDlpOAj8Nt2ZnKUVhfN7x9ZJFumd6pbohYTcAd6IFV8GQXtdpnjvPrnM K8Mz7uQy1vsn89KXoGD2RsCpCnCzYD2NFzhjPTfLNmijv593RA4AHfZFsoxEnHqUGCVn tRxW48hvmu0+bj39Kzf9Fk5D3Llbwe7i1eqmeAs75tdeyPka8YIDHRX8odNkkPRxK9Yv DiYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=/qRrFx/wNeMYw9ETElF53MB35UWxI/2rKGXFKbSlTEw=; fh=9xT+tA37LwXyPWvHQXeKNnfwNMVJ98SWZUiqSiBtM6E=; b=SJIEqRGS107C0rOWssqSs85sCaeMTjMknA6z3IwYIUtQv+qY8/hVh7JfJD2HufENG+ gF9L0lqiNdd9S7ouIw51w9o+exBeNvwH17OHRP0wLaR0L/9ome1lzdcPsruuyvxOZlXf R6JILBBsBk0D7yUZkIpDILnua3pp9tRbgmmdx0V9kAHsB0c5+iD0FLrNR/sNYDI5A+xm fPIiXYDE+WuSsR2vp/lWpkV1PnYHSjiZxlGpc2zvPr2FCeuAxZTdVX266gioKBsYMUR9 Q0IcCMnHoyw1AkjXFjXQyYxYU7ieGQyef7sBU34PL6GCmcYvmsgjHRUDyb7B3yJbqrbU rQ4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X54NDkNi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id d12-20020a17090a2a4c00b002773cc10d3csi8957405pjg.78.2023.11.06.13.52.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 13:52:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=X54NDkNi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 524BA80C47A7; Mon, 6 Nov 2023 13:52:46 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233144AbjKFVwb (ORCPT + 99 others); Mon, 6 Nov 2023 16:52:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58704 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232992AbjKFVwa (ORCPT ); Mon, 6 Nov 2023 16:52:30 -0500 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 473F0D57 for ; Mon, 6 Nov 2023 13:52:26 -0800 (PST) Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-509109104e2so6542178e87.3 for ; Mon, 06 Nov 2023 13:52:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699307544; x=1699912344; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=/qRrFx/wNeMYw9ETElF53MB35UWxI/2rKGXFKbSlTEw=; b=X54NDkNi7eB0X80HC5GMsu+fqiV8dWuUr+TMXvt8c7KhE8RXrnvFhHr1nloTfb3rED csSv17el10DU5U/iM/JBJjLkW0zcIAkUizo6z+yl7lVRIWkUxTP6N6oL3v5maxhiaTRQ LE3uS8m+Uds6howuq/7C6ePkWbQJ2fyUYgGHWiGEzrvywQeZ6gAt+zfaKcKj7g97ZS7W 76HHS2f5JrcwiZW09VuDxzJjn6ILgZfR68qgHmlo6oGZiSBAj37DRKoOObB0uuXYIP4C Ow8st+UgikN5BpB/rs97Tmq9vfmyraf07q6WRSNGOFF9xntwuVM8jraJNB49dFFZPYty fiRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699307544; x=1699912344; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=/qRrFx/wNeMYw9ETElF53MB35UWxI/2rKGXFKbSlTEw=; b=bIS5ahfbNNhAO1quUo+wZ5tfPgo5hnFr0Zl6MmilJj9TiO4L0FcDUiYBFTOHU1z0Be u43zujG0o/+7EGWpIdRTJ+nvf+rQMJVDdx3UyPNZi/M/PQKMrvNUjoxlQ0tB9X5XPMvx iykbC7PO6W4TB+qs1leXv7pI/Js1/C4AM5VIEkh3rexZNsokVs0AEBTNXFU+SrSw5E+X /aWiEgR3BgA8kXnqI5SAVTm2UjBYGp4A/NB4cs2KGg42H4B0sleeiQhHJmdQRMj0fcz9 RRGjExju9+QxN9bgUjTokqsCS4vBECNzEc3MrHp9MBVluVNgEb3ErmInpBIlEkIBAVMS S4yA== X-Gm-Message-State: AOJu0YzEMtALYep4ya6bg/pHsERMcbhg5bfap2hEuEC1JqQuu2eJP1+t LTgItOAhffiMVzXdzM3riamJug== X-Received: by 2002:ac2:5def:0:b0:500:daec:2817 with SMTP id z15-20020ac25def000000b00500daec2817mr22298941lfq.54.1699307544506; Mon, 06 Nov 2023 13:52:24 -0800 (PST) Received: from [172.30.204.18] (UNUSED.212-182-62-129.lubman.net.pl. [212.182.62.129]) by smtp.gmail.com with ESMTPSA id c3-20020a196543000000b00501c12fe522sm105077lfj.73.2023.11.06.13.52.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 13:52:24 -0800 (PST) Message-ID: Date: Mon, 6 Nov 2023 22:52:22 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2] arm64: dts: qcom: sc7280: Add capacity and DPC properties To: Doug Anderson Cc: Ankit Sharma , cros-qcom-dts-watchers@chromium.org, agross@kernel.org, andersson@kernel.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 References: <20231103105440.23904-1-quic_anshar@quicinc.com> Content-Language: en-US From: Konrad Dybcio In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=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 agentk.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 (agentk.vger.email [0.0.0.0]); Mon, 06 Nov 2023 13:52:46 -0800 (PST) On 11/6/23 17:56, Doug Anderson wrote: > Hi, > > On Sat, Nov 4, 2023 at 4:52 AM Konrad Dybcio wrote: >> >> >> >> On 11/3/23 11:54, 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 >>> ---Hi, thanks for this patch >> >> Reviewed-by: Konrad Dybcio >> >> I performed a quick grep in arch/arm64/boot/dts/qcom and noticed >> that at least one of these values is missing for: >> >> rg -l --files-without-match dynamic-power-coeff $(rg cpu@ -l) | sort >> ipq5018.dtsi (homogeneous cluster) >> ipq5332.dtsi (homogeneous cluster) >> ipq6018.dtsi (homogeneous cluster) >> ipq8074.dtsi (homogeneous cluster) >> ipq9574.dtsi (homogeneous cluster) >> msm8916.dtsi (homogeneous cluster) >> msm8939.dtsi >> msm8953.dtsi >> msm8976.dtsi >> msm8994.dtsi >> msm8996.dtsi >> msm8998.dtsi >> qcs404.dtsi (homogeneous cluster) >> qdu1000.dtsi (homogeneous cluster) >> sa8775p.dtsi >> sc7280.dtsi >> sc8180x.dtsi >> sc8280xp.dtsi >> sdm630.dtsi >> sm4450.dtsi >> sm6125.dtsi >> sm6375.dtsi >> sm8350.dtsi >> sm8450.dtsi >> >> rg -l --files-without-match capacity-dmips $(rg cpu@ -l) | sort >> ipq5018.dtsi (homogeneous cluster) >> ipq5332.dtsi (homogeneous cluster) >> ipq6018.dtsi (homogeneous cluster) >> ipq8074.dtsi (homogeneous cluster) >> ipq9574.dtsi (homogeneous cluster) >> msm8916.dtsi (homogeneous cluster) >> msm8939.dtsi >> msm8994.dtsi >> qcs404.dtsi (homogeneous cluster) >> qdu1000.dtsi (homogeneous cluster) >> sa8775p.dtsi >> sc7280.dtsi >> sm4450.dtsi >> sm6375.dtsi >> sm8350.dtsi >> sm8450.dtsi >> >> Where platforms with a single, homogeneous cluster likely don't >> benefit from EAS.. >> >> Is there any chance you could dig up the correct values, for at least >> some of these platforms? Or would you know whom to ask? >> >> FWIW the one we're missing the most is sc8280xp.. > > FWIW, I wrote up a longwinded commit message when I added these values > for sc7180. See commit 82ea7d411d43 ("arm64: dts: qcom: sc7180: Base > dynamic CPU power coefficients in reality"). > > The short of it is that if you have hardware and a basic "smart > battery" to measure power consumption it's pretty easy for anyone to > add some reasonable numbers. That's a big ask, especially with stupid laptop battmgr firmware that only refreshes data every 5 to 25 seconds :) Qcom probably has some reasonable numbers somewhere, given they are likely to test their SoCs' characteristics before taping them out en masse :P Konrad