From patchwork Tue Jul 11 12:18:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konrad Dybcio X-Patchwork-Id: 118470 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp441072vqm; Tue, 11 Jul 2023 05:31:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlFWbOPqasS62TelHdm2ZelBIau+bDC/RrLQ+azqdU4t688g7qwJAgDgp4jybh+Id6e4jXxO X-Received: by 2002:a05:6a00:391c:b0:682:9162:720f with SMTP id fh28-20020a056a00391c00b006829162720fmr14660562pfb.6.1689078706750; Tue, 11 Jul 2023 05:31:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689078706; cv=none; d=google.com; s=arc-20160816; b=Tbg6GBypk4OVjWXq2CsXd7TQdJmq8pNHY4gCw5/spbUdGsJwWVissopKFcjzb7idKf FJsow5HT/GfzF82TemTuxcy44AfYkzov6XS0u4JxpgxYje+4dkrDBxxAryFtGs/fucW/ GiQpg9uPw3OUAqybHQq8SBqQnTAR9iPCr74QUUXkK13TXqvi0BRWIr2msPmVBGTOVf3Y QVXa6xfb6bTxhyCpxDYX6XMuVwfWiAYyk0h3j0wbXPACAfsBEOPLlCicfaoXuW04aU7T 42C663DGxbwPjBQZY4T74F7m2Y/8o1uAyS94c7/j7Q03PwkBRknfBNxma0ZSJc7mu7vK 8Lwg== 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=yjEw0XoxZw/g1nfL12bHFSyvJYF4vER1wXRrobCe4VQ=; fh=JoAcrgft0uy82XIp94lSiB7rWiE0KfkQABjXnED6+RA=; b=dtTV7PRxYxuNGeYnkQ6AoqFGL7BZ8mmaUkTHCjCEclSMJePr54RnsRVizSwHGVCJ5d zWecUoMmyDavespix4OyVcmZqD417yWDNNJx3Bu3jrhnZxPY8CxrILXCmCkn/HgjjHr3 E/PoyLLma/AiCUo6+WyUR0d1nmSUdK41G6JJa2pVVbpq3pBXiqIVGX1NXMwvTD2a5CaS s/fu+e+JX8vvuzsNt9Vz87CrYkPcbglo1do9+DDuXrEllufTnhXddOUWBrOGyCizzjx/ RJdwHMQv8ABpT9zK9+K+kdMGmEJ07xlGHrdgwVV5I1xC3jieKe97nkToKMwAJHm6SYM+ 1POQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SO8G7gtb; 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 p19-20020a056a000b5300b00682759c6440si1441011pfo.40.2023.07.11.05.31.34; Tue, 11 Jul 2023 05:31:46 -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=SO8G7gtb; 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 S230182AbjGKMUw (ORCPT + 99 others); Tue, 11 Jul 2023 08:20:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbjGKMUO (ORCPT ); Tue, 11 Jul 2023 08:20:14 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E577170B for ; Tue, 11 Jul 2023 05:19:25 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-2b63e5f94f1so70073011fa.1 for ; Tue, 11 Jul 2023 05:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1689077941; x=1691669941; 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=yjEw0XoxZw/g1nfL12bHFSyvJYF4vER1wXRrobCe4VQ=; b=SO8G7gtbOhkPbaLWlVi2A26EGBnLGR8WhCcdISpfIxmVj2nnLs76mUyH9u5Yb2u/zl O23xnH972rd94DWKwWGzotqQfkg95kfDfWHlh5AwRuw1ZGZ4bY/8DqOBJTYTItniJ6Lj aQH/9+u3Vne8pGuwL8tZ738RoU25IpWGAj+cpGd8oqvT4Drh3wWkBBGPwZ8XTpE9+qxH YchmIVyssp9NL7wM2Ki7YOMCj60Qr+oA4/6793eA385fc9B6i2ASKEtGNhlj2cjXScM3 tYk8EidHxGtCZY+XbqdO+hQND0yUzPS0xkzjN/ddpZsPdYtnrTAi2iSvEz5n+XSYzQLU DmZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689077941; x=1691669941; 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=yjEw0XoxZw/g1nfL12bHFSyvJYF4vER1wXRrobCe4VQ=; b=KOFcQraVzhDlhU86fa0C8CKvPz2vEb+HNAwMzDdGhB5JXEhLgN/c4K93xtJHHYSVSn 5Uv77UJYidx85BjD6GQ8nnBEHuFcApOjQDghYp/tQoH0zOdxuuazhNIlgsb2WpkOUyxC ytnmj/Rc7MS6XdsYowNFfe8F1Yl/+tGu/WyU/XsOLhqB7XB4WSqfaSqZROjIfmHknBaZ gZ6bbfvCBloDlBbBomwVHbzytcupWhY/v/DgjkoznQUxU9EkUcUCVvHGHZq7MkPgpqt2 siE3an/FI8uEJnXUdtMBdt/ugGtzw0/9im2tewIhu5r/Ljv9JsfWinvYZwCOd8yqvfcB 6nzg== X-Gm-Message-State: ABy/qLaVgi5L1MLkjcF+L23cDjONezqZHHnSYanZSFr0TbknFcqoOu+k 0bIIlpb4Sv7AIMg//IZ4puBkGA== X-Received: by 2002:a2e:8e35:0:b0:2b6:ee7a:f5ae with SMTP id r21-20020a2e8e35000000b002b6ee7af5aemr7635646ljk.16.1689077941421; Tue, 11 Jul 2023 05:19:01 -0700 (PDT) Received: from [192.168.1.101] (abyl96.neoplus.adsl.tpnet.pl. [83.9.31.96]) by smtp.gmail.com with ESMTPSA id d18-20020a2e96d2000000b002b708450951sm435563ljj.88.2023.07.11.05.19.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jul 2023 05:19:01 -0700 (PDT) From: Konrad Dybcio Date: Tue, 11 Jul 2023 14:18:25 +0200 Subject: [PATCH 26/53] interconnect: qcom: qdu1000: Explicitly assign voter_idx MIME-Version: 1.0 Message-Id: <20230708-topic-rpmh_icc_rsc-v1-26-b223bd2ac8dd@linaro.org> References: <20230708-topic-rpmh_icc_rsc-v1-0-b223bd2ac8dd@linaro.org> In-Reply-To: <20230708-topic-rpmh_icc_rsc-v1-0-b223bd2ac8dd@linaro.org> To: Andy Gross , Bjorn Andersson , Georgi Djakov , Rob Herring , Krzysztof Kozlowski , Conor Dooley , cros-qcom-dts-watchers@chromium.org Cc: Marijn Suijten , linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Konrad Dybcio X-Mailer: b4 0.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1689077904; l=2723; i=konrad.dybcio@linaro.org; s=20230215; h=from:subject:message-id; bh=9xNumb4mlVPJURVONYP61q5QOzs9rfLdvbN1jnXwzpk=; b=IUepLalcILF7YN5hx4w8ucTFotgb8EVQk+WRRg8BB2vlIGoZ5lTxmAmV/VZbcNjfozWT0W6Bq V1lkz8druzNCYbmJ0YerskqCPBdQR+cpC3t0UpsAEdKCdRw2G5z5+Mu 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=ham 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: 1771127394350441252 X-GMAIL-MSGID: 1771127394350441252 To avoid confusion, explicitly assign the BCM voter index. Note the assignment may be incorrect, but this commit brings no functional change. Signed-off-by: Konrad Dybcio --- drivers/interconnect/qcom/qdu1000.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/interconnect/qcom/qdu1000.c b/drivers/interconnect/qcom/qdu1000.c index a4cf559de2b0..f9c54e9ad9d1 100644 --- a/drivers/interconnect/qcom/qdu1000.c +++ b/drivers/interconnect/qcom/qdu1000.c @@ -768,18 +768,21 @@ static struct qcom_icc_node xs_sys_tcu_cfg = { static struct qcom_icc_bcm bcm_acv = { .name = "ACV", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 1, .nodes = { &ebi }, }; static struct qcom_icc_bcm bcm_ce0 = { .name = "CE0", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 1, .nodes = { &qxm_crypto }, }; static struct qcom_icc_bcm bcm_cn0 = { .name = "CN0", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 44, .nodes = { &qhm_qpic, &qhm_qspi, &qnm_gemnoc_cnoc, &qnm_gemnoc_modem_slave, @@ -808,24 +811,28 @@ static struct qcom_icc_bcm bcm_cn0 = { static struct qcom_icc_bcm bcm_mc0 = { .name = "MC0", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 1, .nodes = { &ebi }, }; static struct qcom_icc_bcm bcm_qup0 = { .name = "QUP0", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 2, .nodes = { &qup0_core_slave, &qup1_core_slave }, }; static struct qcom_icc_bcm bcm_sh0 = { .name = "SH0", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 1, .nodes = { &qns_llcc }, }; static struct qcom_icc_bcm bcm_sh1 = { .name = "SH1", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 11, .nodes = { &alm_sys_tcu, &chm_apps, &qnm_ecpri_dma, &qnm_fec_2_gemnoc, @@ -838,12 +845,14 @@ static struct qcom_icc_bcm bcm_sh1 = { static struct qcom_icc_bcm bcm_sn0 = { .name = "SN0", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 1, .nodes = { &qns_gemnoc_sf }, }; static struct qcom_icc_bcm bcm_sn1 = { .name = "SN1", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 6, .nodes = { &qhm_gic, &qxm_pimem, &xm_gic, &xm_qdss_etr0, @@ -853,6 +862,7 @@ static struct qcom_icc_bcm bcm_sn1 = { static struct qcom_icc_bcm bcm_sn2 = { .name = "SN2", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 5, .nodes = { &qnm_aggre_noc, &qxm_ecpri_gsi, &xm_ecpri_dma, &qns_anoc_snoc_gsi, @@ -862,6 +872,7 @@ static struct qcom_icc_bcm bcm_sn2 = { static struct qcom_icc_bcm bcm_sn7 = { .name = "SN7", + .voter_idx = ICC_BCM_VOTER_APPS, .num_nodes = 2, .nodes = { &qns_pcie_gemnoc, &xs_pcie }, };