From patchwork Tue Aug 8 11:43:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 132897 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c44e:0:b0:3f2:4152:657d with SMTP id w14csp2414360vqr; Tue, 8 Aug 2023 14:50:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFePF7jh6Pg7ge5hT7LAGlYo38mZ5HjeCGXOCACfM6VWjvWwups+yRmqvniLPtpWGFTbqBL X-Received: by 2002:a17:90a:d384:b0:263:9661:a35c with SMTP id q4-20020a17090ad38400b002639661a35cmr663623pju.8.1691531424410; Tue, 08 Aug 2023 14:50:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691531424; cv=none; d=google.com; s=arc-20160816; b=TSrOhPR/IgC8CtJJXqDGEY2r1GgWW091PHeHxCwbo/346zayX/FvHxPnsNTjb8NNN9 3QN/fpeqvPrnHiv8nFXD4lrqPuoVwcWUHKGXcjgSNVS6na90iOLK2RbTgvs+w0D3VDvV 1EyX6OU2YYExb1Gz1wjoTwXHx//jv4TbHOUhYBsquPzm9fAZ5DTqVELyiUhYb38Gg3Sz Utm56NlK/X1aJNJs95HtHznb18flhAATDUdmjDDVmmcyHMSSYqhsC13OFbe2DS2EsDxw OH9pCh+hkTEIEB6+g01ytWT4KiTzSME5kLOD54jFPvsjGM/+NYNRW0wDmUvH3mr2ne6k YIFQ== 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=qZQ93ryTVkLJ674HaEi8fy9NL3vC9KyVwveDa7EddrM=; fh=eQYZoDkT5yiXC4FOuYG6Kem76e5j3IG0APJeW7cmDrc=; b=JZrhbIUBpTt+lhoWxRWgqxUFIS+OLSUKnCPvssu52rDt8+W0Ut7RtW5TdtjJisC9Cg IcpkniPQ92rMNLs213xIIPpme/IkbYj6Du+qDT3YlHNVL9VQaJ4I/NMUJ0n3xyaISeq3 v73MWQojh+rBhHeSHtOHp6F3tgI76lVXJcMJf7+aRaC/NvyxEgQcdN9eKC2R+cvbhkUj nWbs5aVqqBqQz8WfIgZ86RlWm+PZBMOb+kqu2P2qAwrYssQkzhgwTo6ou14YrPhHvT/e BTRl996TJICA94R1N7HMV5Q28NmCtbr/BHHOh+fIJA6pg/17d5EYyz3oSzFRPVIRDqOQ iCiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r0z+PRLt; 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 pi4-20020a17090b1e4400b002680dba282csi24683pjb.182.2023.08.08.14.50.11; Tue, 08 Aug 2023 14:50:24 -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=r0z+PRLt; 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 S235107AbjHHRvr (ORCPT + 99 others); Tue, 8 Aug 2023 13:51:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34710 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231256AbjHHRvJ (ORCPT ); Tue, 8 Aug 2023 13:51:09 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1C1BAB5E80 for ; Tue, 8 Aug 2023 09:22:54 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe2d218eedso50315625e9.0 for ; Tue, 08 Aug 2023 09:22:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691511755; x=1692116555; 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=qZQ93ryTVkLJ674HaEi8fy9NL3vC9KyVwveDa7EddrM=; b=r0z+PRLt0/zbirxy25Qkewfrp4xsC6480ww6wEuyuWau5XeYgVOkvz5mtAUHQ42MSV wTx9HJo9d6ee7r0Jz8wqkChRRoe5BQqvabD/0ZpDb6DZmL2mEkKspe+MLgWNjGM8XO1z xJPf/ZJPu0e88bF/xdbmmmlRQHzAQdk8zwJmOBNen8tXokpmiUmgNue9exX45cbiNtxI oBr1GV+hpp98/aQmnWX3WX9VAAVuwoVf7KJP26LErtkD1vH1C4XA4aEQL4ZqyMRKqVaJ 1pyGt9bsuYcDAzIPD1oSdFQ6EUt7IBFnOjbjlByDUInfstTEHVGmx0BPxru11DI1qGSW 3kxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691511755; x=1692116555; 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=qZQ93ryTVkLJ674HaEi8fy9NL3vC9KyVwveDa7EddrM=; b=OqTLLvohen50ngUVIaRIW2OEioKqnY+KxApKAFCpS4oviqmRwfCyqNmaIHzmqzi9rp frZ0L7ZBxisFkfnnDlKWWAjQrQGJI6rzAzUdgckPgAt6mhs3w/J+EAGQnS0YQhtGcBlD 5rZLVY2kX9HsYoWhpHoeRccZ3AhdXJqdoRfvFzYPwLvLiZYM2c25BegzQ/jbVYqR13D2 /bfpRakySxkfEfBJVvfnWkP5T/z7UQlf89K7gR5xFBQ+KETwF1gn4LHARV1gg5XRiBCC GIkYyik0g7dq+i4TNQCvCQpXz0FbzuPyWKBlPPKmbPFBXZlB0uCNlAPpMMXFYZIY/Fg7 gOlw== X-Gm-Message-State: AOJu0YwwGWla4TwUPrNXnOPSuU23R/goxs0ZHKyQe9bEJCfdHgOmQPLy alPpoUHRkx0GogOakTnI3oUCvu7sZ1ivvuj8d7k= X-Received: by 2002:a05:6512:10d2:b0:4fd:d538:b97b with SMTP id k18-20020a05651210d200b004fdd538b97bmr9355921lfg.29.1691495026441; Tue, 08 Aug 2023 04:43:46 -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.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Aug 2023 04:43:46 -0700 (PDT) From: Konrad Dybcio Date: Tue, 08 Aug 2023 13:43:40 +0200 Subject: [PATCH v3 09/10] interconnect: qcom: msm8996: Set AB/IB coefficients MIME-Version: 1.0 Message-Id: <20230726-topic-icc_coeff-v3-9-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=1682; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=6Ylk54qLtCUKuTX9FA4QTRZGSUqgBkVW+4oTAnkFbFA=; b=G6C3tehG5i+wpYLksQeibNa9TcRRryQx2c1C+PbgLjLNinmWth7Kgiq6h+P+yrqSg+hvkS8hs P/WvsN11oQzB97MrKtKeOynWWxsSz6KKpBWsjH96NjyOnz66wttLu7H 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: 1773699254871858393 X-GMAIL-MSGID: 1773699254871858393 Some buses and nodes need additional manual adjustments atop the usual calculations. Fill in the missing coefficients. Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/msm8996.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/interconnect/qcom/msm8996.c b/drivers/interconnect/qcom/msm8996.c index 88683dfa468f..b73566c9b21f 100644 --- a/drivers/interconnect/qcom/msm8996.c +++ b/drivers/interconnect/qcom/msm8996.c @@ -448,6 +448,7 @@ static struct qcom_icc_node mas_mdp_p0 = { .name = "mas_mdp_p0", .id = MSM8996_MASTER_MDP_PORT0, .buswidth = 32, + .ib_coeff = 25, .mas_rpm_id = 8, .slv_rpm_id = -1, .qos.ap_owned = true, @@ -463,6 +464,7 @@ static struct qcom_icc_node mas_mdp_p1 = { .name = "mas_mdp_p1", .id = MSM8996_MASTER_MDP_PORT1, .buswidth = 32, + .ib_coeff = 25, .mas_rpm_id = 61, .slv_rpm_id = -1, .qos.ap_owned = true, @@ -1889,7 +1891,8 @@ static const struct qcom_icc_desc msm8996_bimc = { .nodes = bimc_nodes, .num_nodes = ARRAY_SIZE(bimc_nodes), .bus_clk_desc = &bimc_clk, - .regmap_cfg = &msm8996_bimc_regmap_config + .regmap_cfg = &msm8996_bimc_regmap_config, + .ab_coeff = 154, }; static struct qcom_icc_node * const cnoc_nodes[] = { @@ -2004,7 +2007,8 @@ static const struct qcom_icc_desc msm8996_mnoc = { .bus_clk_desc = &mmaxi_0_clk, .intf_clocks = mm_intf_clocks, .num_intf_clocks = ARRAY_SIZE(mm_intf_clocks), - .regmap_cfg = &msm8996_mnoc_regmap_config + .regmap_cfg = &msm8996_mnoc_regmap_config, + .ab_coeff = 154, }; static struct qcom_icc_node * const pnoc_nodes[] = {