Received: by 2002:a05:7412:8521:b0:e2:908c:2ebd with SMTP id t33csp2259638rdf; Mon, 6 Nov 2023 08:56:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHuhDiUE+AUugPReps1WWftKUYKfZMdUbUGCMhNnKrMRGvUBd6BzUxEzaKbpZEWueFGvywK X-Received: by 2002:a05:6358:d094:b0:168:dbbb:1a6 with SMTP id jc20-20020a056358d09400b00168dbbb01a6mr30965616rwb.12.1699289800598; Mon, 06 Nov 2023 08:56:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699289800; cv=none; d=google.com; s=arc-20160816; b=ZtNHo8t1qLXq3Anlx+IXxr73DUeSiS/58MNdC90VawNZL8F9iLqAZYUOnCEXmBpV0O +iGRIOa2BZ5Vvdioc2kV6foo5PGZTnhDC8oJ+6GO2buWdk0p5gNZpdUGCxYiip/KV6aq OCL0SQGSnY4B1TsTKIEHRfoqr1txlQe2Pdl1p5+Sj6UZjTCEdNW99U2QZ8u0aBXQRbqR 3Zz/68KKbC3GIKdUhMSR5b3dG/QLggyeQ0bUyusDhObF0+0GVJ4SsoNmEgllkK2gjpa6 78IAmKtevxzVm3WsUx2w7IGD9m3yZ/50B2yRIB5dwWSFu3gZj4YqVElbghKaIN3CuONA ENiw== 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=alAxQ7E5oSuVFPStBPyKJDDCOhb3s2DIeYQfUTb7TAs=; fh=8cvjAovnzuMyhuRPKV6+Ny1fj4QQWhH7Se/V+zK+aDw=; b=PgfFwiuODmwymbQc99A0or9qtrLVJVT9kLm6Obd1oD98zoZij/72txSjgrsoecP979 5ZhtlocAKhNWqM2CrXJ5UAP5HKcjEYIjjUTRBFAKWvWBv+3Agrqn0tnQUHCMscr42TQC ab5nUMniBUeQkA2HC4w49VFjTt1gtLxn/frol/yEvMivG03kkSCRDuud44vAbrRYZ2LC K6HfhYx1TeQUqogNCmg5uK+PY4ZDf4YDnKz45MMj0plF6Y08BcwHg/wb9YrM0wJFT5xx ysE8fc2InpJIwqKh0VZE04BuHXU5wTju5ofC/QWrbpXFQ3RS20LycO+78xS4L+tvP4kF UpTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="aOvqtD/f"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id d187-20020a6336c4000000b005bd3b016f84si70879pga.24.2023.11.06.08.56.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 08:56:40 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="aOvqtD/f"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 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 fry.vger.email (Postfix) with ESMTP id BA75F80782AC; Mon, 6 Nov 2023 08:56:37 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232875AbjKFQ4V (ORCPT + 99 others); Mon, 6 Nov 2023 11:56:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42392 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232869AbjKFQ4T (ORCPT ); Mon, 6 Nov 2023 11:56:19 -0500 Received: from mail-lj1-x22b.google.com (mail-lj1-x22b.google.com [IPv6:2a00:1450:4864:20::22b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C5F7FB8 for ; Mon, 6 Nov 2023 08:56:15 -0800 (PST) Received: by mail-lj1-x22b.google.com with SMTP id 38308e7fff4ca-2c50d1b9f22so62999271fa.0 for ; Mon, 06 Nov 2023 08:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1699289774; x=1699894574; 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=alAxQ7E5oSuVFPStBPyKJDDCOhb3s2DIeYQfUTb7TAs=; b=aOvqtD/f1FjuoFeG41m8/2sC36igUqfQt5RLQzL6kLULTY3uQ1RXLsbC4t4jFGyVgY XpucJTgUnzTIm/0gs8+/CD3jMDArft+r5XFB/wj436h8RPSzYWQa8RVVlMT/9C2poI7X qaH6a83bMFK4+KPmKuJcfX33dTizL1PQoRRuQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699289774; x=1699894574; 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=alAxQ7E5oSuVFPStBPyKJDDCOhb3s2DIeYQfUTb7TAs=; b=b6Z5LTYa0Nf+BecTvAd1KUBoGemPubPLi0SBLEMsuvFjpJKT1/6HV5ApyP5kC2NU5H 5ZtxXMHZjkaZyx6wVvB2IWs5HOFzNpofoLo9n8A7slw/qPUKLuJljmrwKRPJhbn0eNTr vh+PhHg8mNMle39oqqUYjFPYY5wWV3IxbdIOMi79XZ0rd6euftJLzkZFk+CyjOXGGI8Z Hl+ChN/J881pxtez9Ei+1R5rX0kB/JagiVQXHNzWBoRt7L2FScKWu/W9L0ax3vHfN1m6 JnkKx+vV1W6uqEmh0YhABmRrYgXABgO5hYph5ve2myborNc1ir8BOuf29zDj1iBZM8Am 4ZJA== X-Gm-Message-State: AOJu0YxMtMbDa6Swqi7lF/vrdYglw0ihukE+pX+7ScrSLe9UL12SgQb8 CaXLGqAqGD0pOktnLVjP7AkAhFl3k2fhOpjJkCPpiVEg X-Received: by 2002:ac2:4c43:0:b0:509:4aae:f2b1 with SMTP id o3-20020ac24c43000000b005094aaef2b1mr11577758lfk.8.1699289774063; Mon, 06 Nov 2023 08:56:14 -0800 (PST) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id e9-20020a195009000000b004fe3bd81278sm26175lfb.70.2023.11.06.08.56.13 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 06 Nov 2023 08:56:13 -0800 (PST) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-507c9305727so5958e87.1 for ; Mon, 06 Nov 2023 08:56:13 -0800 (PST) X-Received: by 2002:a05:6512:2806:b0:505:6e12:9e70 with SMTP id cf6-20020a056512280600b005056e129e70mr156923lfb.6.1699289773464; Mon, 06 Nov 2023 08:56:13 -0800 (PST) MIME-Version: 1.0 References: <20231103105440.23904-1-quic_anshar@quicinc.com> In-Reply-To: From: Doug Anderson Date: Mon, 6 Nov 2023 08:56:01 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] arm64: dts: qcom: sc7280: Add capacity and DPC properties To: Konrad Dybcio 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 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 fry.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 (fry.vger.email [0.0.0.0]); Mon, 06 Nov 2023 08:56:37 -0800 (PST) Hi, On Sat, Nov 4, 2023 at 4:52=E2=80=AFAM 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. -Doug