Message ID | 20230726-topic-icc_coeff-v1-0-31616960818c@linaro.org |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp560121vqo; Wed, 26 Jul 2023 10:41:52 -0700 (PDT) X-Google-Smtp-Source: APBJJlGGGfVj1m/Pt5367XOAEyxWEhvIcagZLhn8UnA07Cfy8i3OhLR6xjXEawzMbDObndstbEEW X-Received: by 2002:a05:6512:3f4:b0:4fd:bec3:776a with SMTP id n20-20020a05651203f400b004fdbec3776amr1752279lfq.61.1690393311854; Wed, 26 Jul 2023 10:41:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690393311; cv=none; d=google.com; s=arc-20160816; b=Jj1u4zo45EQf0454+a1w+yX7y/z4JUSzJo+MCZJmK7AkE42jN/LdOi9Zq6f/qTP7Lo hFbi2ieC/qOeJPDlGL+0pvZX0hgrkGT/WLixxHhJEh7cpSi19glcS5ye8qOv9JHKBKv/ baM6+sYg6d/u1mBBqqzWNv6N6hhVfVV4F9kwhBt3PsrrUtf1hzIO6ap7piajt+4PTVGL 1OWhw03kFZZEs8yvEh5ykX+850s5PmVASX1PDPcDVpff1WunZChpiWBafXP7wucMsl4c z3HbrxUuwueQ2RB39Nth7Zq1jTKGwy0sDuFTlBbRVbgrMHkWqSNfW+XoXtQgfs9fTXbp IZvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature; bh=xtHQBtt9K2RUz6FUMy8Umw5TAB7QVL9VYYVqvdUwQZk=; fh=KLHuMtIqFjU14h8YTIh1Q1bd/pq1uD8Tms+Spx3Dr4Q=; b=k6Q8qwsMUK12J+RjxS7bSzRVb6zBCH11JhWIYdvfVyP7+dLW6hNjT3yJ40ZJuFPHEy kMXk8d78MEoZKNQPGZGjBXKEP6fsAlcmGQI5quDSzjX25RR9LKsUXSN2Q9bvtoni7/ZK PvmOnXpBOH+J0xnAkT83qEL8wK1VODVPQBgqinmwNOjw49xovpOAUIIju0nwO+yfvcm+ xyxBILdS/q02NDLc5W5BvrXLiHpWJ+EX1uSKfihj6RSfO92h1G65Xsw0kETTlLsk1fxi l6BHrCp5kNlwAvHfnNPMu4iyn19QL8Rpkq6ix2mxlsHeLhcWr4RjHtsmy8aHJIpbICUS 8/KQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=sX4e+9Su; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020aa7c24e000000b005221fc36675si6401298edo.78.2023.07.26.10.41.27; Wed, 26 Jul 2023 10:41:51 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=sX4e+9Su; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233501AbjGZQZ5 (ORCPT <rfc822;kloczko.tomasz@gmail.com> + 99 others); Wed, 26 Jul 2023 12:25:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46746 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232582AbjGZQZy (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 26 Jul 2023 12:25:54 -0400 Received: from mail-lf1-x136.google.com (mail-lf1-x136.google.com [IPv6:2a00:1450:4864:20::136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 569A426A6 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 09:25:52 -0700 (PDT) Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fe0c566788so2636201e87.0 for <linux-kernel@vger.kernel.org>; Wed, 26 Jul 2023 09:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1690388750; x=1690993550; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:from:to:cc:subject:date:message-id:reply-to; bh=xtHQBtt9K2RUz6FUMy8Umw5TAB7QVL9VYYVqvdUwQZk=; b=sX4e+9Suf1XGPIpahj8nxXpnBz8h1xHBZKRqqK4NeKvDd7ODoWPALlD1ToXj/4g/lA RT0wcYBepNTMNufT2W6zcOU5NH/YI8x5T5vC10e6qxrKjR+dtL9+Vbka09ych1J0r8bx NUopIowCuIkxd71KzSZLxIiw3YNwcetkopE/2QbhTjpW0joFtq5aTI62YatJjJj7dVTD WtebVDFv87bCoVkj+aTwwUCsr5h0xYYvZywLZfhegqjJpFHm4Bs5QjIsXdk2Va4oFrf8 IQFwVV/9Jlyr6pC8/1KzfN5PKuNu5RRlF9D3HAkcm/Jap0hbMSctbDxzv9AU0UTqZAm9 b78w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690388750; x=1690993550; h=cc:to:content-transfer-encoding:mime-version:message-id:date :subject:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xtHQBtt9K2RUz6FUMy8Umw5TAB7QVL9VYYVqvdUwQZk=; b=SkR5FJo5tIgsA5v0l/4ozKN8BjF03+W9ZBfImuecYMEZw7SZa9c8maZrZKMe5HFSgH w0CDrVmLuAl+pktB0rm7o3KkO4Kx1LpOAENX+kH1ZqJVDbpNSWp4bkUmvOCj2/9kF59K 5Y9ZDygLvulueN0YupUATxqrXls1yKx4Yz7rMSG5/1ozH11P/aeydLG5dtqnUZzBstXS mFX/FyAQ8XBidG0SVgiV9OY6YIGYDbnp7fr5tuANY9MEQ+YmkDPY55X2ZG0SRF45nVXN txc4teiF8UOQTrN0B+3qdXrtKfAnC5WXOJzAPY9SscXhZ1DTl7POQnxKn9ahAsa30wt9 2j5g== X-Gm-Message-State: ABy/qLYa3xtkm4oNUGDWPB0jWdpw2Q80QMSaISAgHUURWY8idNMWMTeQ ImqhHDYeTzVeYYoVnOsUs+cAgw== X-Received: by 2002:a05:6512:34cb:b0:4fd:ddbc:158d with SMTP id w11-20020a05651234cb00b004fdddbc158dmr1790166lfr.17.1690388750422; Wed, 26 Jul 2023 09:25:50 -0700 (PDT) Received: from [192.168.1.101] (abxh240.neoplus.adsl.tpnet.pl. [83.9.1.240]) by smtp.gmail.com with ESMTPSA id a14-20020a056512374e00b004fba5c20ab1sm3336299lfs.167.2023.07.26.09.25.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 09:25:50 -0700 (PDT) From: Konrad Dybcio <konrad.dybcio@linaro.org> Subject: [PATCH 0/4] Fix up icc clock rate calculation on some platforms Date: Wed, 26 Jul 2023 18:25:42 +0200 Message-Id: <20230726-topic-icc_coeff-v1-0-31616960818c@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIAAZJwWQC/x2N0QqDMAwAf0XybKCrU3G/ImO0MdWAtNJOGYj/v uDjHRx3QuEsXOBVnZD5kCIpKjzqCmhxcWaUSRmssY3pbYfftAmhEH0ocQjoTdtM7dMMfgiglXe F0WcXadEu7uuqcssc5Hdvxvd1/QGMSP5cdgAAAA== To: Andy Gross <agross@kernel.org>, Bjorn Andersson <andersson@kernel.org>, Georgi Djakov <djakov@kernel.org> Cc: Marijn Suijten <marijn.suijten@somainline.org>, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio <konrad.dybcio@linaro.org> X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1690388749; l=1079; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=5DEHJUNt1qkMRUOpBTPxO+56vwTa2U0qrmcAMPRfkFM=; b=SWgiAod8spQxLkcza1joCe79uNA8jIT7q92MlAA9AxFQ+Qk0MLBR0DlE4fzZY1xRQcHrxyz89 BwZqrzw6+k4Ba96n+zEPgdSSOkNDvQiLwM+DNg5OCp0hGX1KGInvq17 X-Developer-Key: i=konrad.dybcio@linaro.org; a=ed25519; pk=iclgkYvtl2w05SSXO5EjjSYlhFKsJ+5OSZBjOkQuEms= X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772505857618103094 X-GMAIL-MSGID: 1772505857618103094 |
Series |
Fix up icc clock rate calculation on some platforms
|
|
Message
Konrad Dybcio
July 26, 2023, 4:25 p.m. UTC
Certain platforms require that some buses (or individual nodes) make
some additional changes to the clock rate formula, throwing in some
magic, Qualcomm-defined coefficients, to account for "inefficiencies".
Add the framework for it and utilize it on a couple SoCs.
Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org>
---
Konrad Dybcio (4):
interconnect: qcom: icc-rpm: Add AB/IB calculations coefficients
interconnect: qcom: qcm2290: Set AB coefficients
interconnect: qcom: sdm660: Set AB/IB coefficients
interconnect: qcom: msm8996: Set AB/IB coefficients
drivers/interconnect/qcom/icc-rpm.c | 10 +++++++++-
drivers/interconnect/qcom/icc-rpm.h | 5 +++++
drivers/interconnect/qcom/msm8996.c | 8 ++++++--
drivers/interconnect/qcom/qcm2290.c | 3 +++
drivers/interconnect/qcom/sdm660.c | 4 ++++
5 files changed, 27 insertions(+), 3 deletions(-)
---
base-commit: 1e25dd7772483f477f79986d956028e9f47f990a
change-id: 20230726-topic-icc_coeff-b053d5409b9f
Best regards,