From patchwork Tue Aug 8 11:43:37 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 132697 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2323725vqr; Tue, 8 Aug 2023 11:45:19 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGHAqDO864KTkbgaRUZKFhaTbGCGmQ1r4rpgbDqdTnEdJKytV/GKHmDr32IgPDEs+buBQ9h X-Received: by 2002:a05:6a20:430a:b0:131:c760:2a0b with SMTP id h10-20020a056a20430a00b00131c7602a0bmr451805pzk.52.1691520318801; Tue, 08 Aug 2023 11:45:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520318; cv=none; d=google.com; s=arc-20160816; b=Acf0R41eVpw3oZni9ljbp8ice4fUnBk/8tLkTXl9dvnglbYsPk/GQVXxNPDqIVD5K3 cRJYPEyHdSJubAdPXvxOJcRGYfDo8iFANFFeNRcPwx+ySaKMhx0f3/ifYmN1VTpjpWYn cY93Wc6HByv5SBNHAOSCkMWVcklMUv9TeOlbLMu1UqkLloky8e1VmWcS0Tv5dxYyP5xV ZxJoTSa7VS1Cv7txfQuy/Y8u9fJHIx6JHjO0Noo1TVJuYZLvwHfmD2Z2EPWRXCN7OzmX AnjpLGLa4x+z1orCf9QAiTHydEMer1eo886hGB6BnvFm8IpXBF0hekjJZCYcpFcEfIyA yoEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:message-id :content-transfer-encoding:mime-version:subject:date:from :dkim-signature; bh=gc7oZvOcJDkiBa4MtO2BaU3uRCE2+ug+vLU72IFcWhs=; fh=eQYZoDkT5yiXC4FOuYG6Kem76e5j3IG0APJeW7cmDrc=; b=BpTMm6KrWF3+BdRTtZRaB131MkUcqxt5qwB/9AWGCrdo7Cs7mbte5dhoquy0mJQ3dZ MN2QC0deVxgCPB4ajyZcVGalDOXOCn3GQgYm/RpdH/RPzawwb4AEe4KeTmKVbjTzVh/F yc4zAHFPOuoTQ+CSow04QMKEiiCe3D956Oa+1PKb7rUb/+Yx/clUzUrxRIF1KrdZJAFH Tba9tM7mo/66svlFVnWaYV0dMNKrDhxpB5CQ91IWXDN3I7x9MnPVfd65pO/Mm0KklNPT 3MfJF1lftGH/Yy4kHh4NwkT/gZNiYJUCh9gEDuoRb7aQYoyhR4xckjJA1smok43Myv8U HSPA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="So/t9V1O"; 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 s71-20020a632c4a000000b00543a6cc74bfsi7468320pgs.634.2023.08.08.11.45.05; Tue, 08 Aug 2023 11:45:18 -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="So/t9V1O"; 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 S234572AbjHHSH2 (ORCPT + 99 others); Tue, 8 Aug 2023 14:07:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235304AbjHHSHA (ORCPT ); Tue, 8 Aug 2023 14:07:00 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3E52461B07 for ; Tue, 8 Aug 2023 10:07:23 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99c10ba30afso9960266b.1 for ; Tue, 08 Aug 2023 10:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691514442; x=1692119242; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=gc7oZvOcJDkiBa4MtO2BaU3uRCE2+ug+vLU72IFcWhs=; b=So/t9V1O2PcMl59BBf5TOIyRhC4Fmn+Ed4evyj3xPnjkPxA0gBueRwyPFECmGuZA9Q zMrtWdLaDBxwdTRoUkvcEz/W/F+alKS0Powxjn3867A+XUYQy2y2m8lCjUthbpPhezqe f8lMm8FqROUoaqiAzMBdsNe6WNVyI14ZSc2k+V0RGRmj9dT8El/P8XgwBa9m1KsuJH9g 8JhA7YDdtNdXzkWWoGBtCaFqxWtCTQYHtW7Am+xmio2C0uSL6DCPIrHA3QKe09lCTeEQ psNhMGT+mSIOGNVlxEjYsT5U5QY7ujGwPEVOsNmFxCVBdI798P70KK3YfJr4V42JVuvn krIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691514442; x=1692119242; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=gc7oZvOcJDkiBa4MtO2BaU3uRCE2+ug+vLU72IFcWhs=; b=DDqeDThpsqzsFhun/EP+BJDmuMc2H1Yc7M3ad7jEdle31f5i+R9FXWLoLscfJZ8/sH /SHEhu8/WzvjS6VOFAbleRE4dg/Tfi2+D1vJ7+qGNywNCpGrCPXVaNsFu0Mvid5uNd3r aFi2O/XRxBSXipswjtqr6NpCW/8EPsH2Qy7CnsWhWlUyxFCN/a6rgPJLFJAHSS+Mt/9O oNmsA4TZt0AKEJIdHUtvVDQ6a3TN6FkagTLHrsM0YHdrL4yedYu+O5haGpEK5rW7wYud K8Rl8ljGQcYIoXp38zOgoCXuSg8wQmO41reHTvZsL5KmYVdcERp1dHY2WHpcq3zMjurh e+5w== X-Gm-Message-State: AOJu0YzMkND+51kY/Z2rmTj1udm6jZBbabQJx5sjq47wdnR8Ek6yzftD rUJaU8VJtuqDBwMp7WeWr/eLq9ScOiCz/tUtC58= X-Received: by 2002:a05:6512:159c:b0:4fe:8be:6065 with SMTP id bp28-20020a056512159c00b004fe08be6065mr3416540lfb.5.1691495023110; Tue, 08 Aug 2023 04:43:43 -0700 (PDT) Received: from [192.168.1.101] (abxi185.neoplus.adsl.tpnet.pl. [83.9.2.185]) by smtp.gmail.com with ESMTPSA id j20-20020ac253b4000000b004fbdba4b075sm1861679lfh.57.2023.08.08.04.43.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 04:43:42 -0700 (PDT) From: Konrad Dybcio Date: Tue, 08 Aug 2023 13:43:37 +0200 Subject: [PATCH v3 06/10] interconnect: qcom: qcm2290: Set AB coefficients MIME-Version: 1.0 Message-Id: <20230726-topic-icc_coeff-v3-6-dee684d6cdd2@linaro.org> References: <20230726-topic-icc_coeff-v3-0-dee684d6cdd2@linaro.org> In-Reply-To: <20230726-topic-icc_coeff-v3-0-dee684d6cdd2@linaro.org> To: Andy Gross , Bjorn Andersson , Georgi Djakov , Michael Turquette , Stephen Boyd Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-clk@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1691495013; l=1336; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=gKAcxl1xTWi9i07xf8cB7oRhF8MPHDTJc+D4hon02Tw=; b=/bhzfzY1MtFGMTp+JULsYOGnTOJIwGJE49F01H2p/MlyJ9JEx0rnCkANXo4at1X8Tkomohnvh OqvdFmQjUgZBW8klOIAOfgdxaBhjsxg6abuLyt5iCorjdgBVtxRUJaA 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_BLOCKED, SPF_HELO_NONE,SPF_PASS,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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1773687609631259196 X-GMAIL-MSGID: 1773687609631259196 Some buses need additional manual adjustments atop the usual calculations. Fill in the missing coefficients. Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/qcm2290.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/interconnect/qcom/qcm2290.c b/drivers/interconnect/qcom/qcm2290.c index 52a6eb32e832..42fa01c66e73 100644 --- a/drivers/interconnect/qcom/qcm2290.c +++ b/drivers/interconnect/qcom/qcm2290.c @@ -1201,6 +1201,7 @@ static const struct qcom_icc_desc qcm2290_bimc = { .regmap_cfg = &qcm2290_bimc_regmap_config, /* M_REG_BASE() in vendor msm_bus_bimc_adhoc driver */ .qos_offset = 0x8000, + .ab_coeff = 153, }; static struct qcom_icc_node * const qcm2290_cnoc_nodes[] = { @@ -1327,6 +1328,7 @@ static const struct qcom_icc_desc qcm2290_mmnrt_virt = { .bus_clk_desc = &mmaxi_0_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, .qos_offset = 0x15000, + .ab_coeff = 142, }; static struct qcom_icc_node * const qcm2290_mmrt_virt_nodes[] = { @@ -1342,6 +1344,7 @@ static const struct qcom_icc_desc qcm2290_mmrt_virt = { .bus_clk_desc = &mmaxi_1_clk, .regmap_cfg = &qcm2290_snoc_regmap_config, .qos_offset = 0x15000, + .ab_coeff = 139, }; static const struct of_device_id qcm2290_noc_of_match[] = {