Skip to content

Commit be02db2

Browse files
superna9999Georgi Djakov
authored andcommitted
interconnect: qcom: sm8450: add enable_mask for bcm nodes
Set the proper enable_mask to nodes requiring such value to be used instead of a bandwidth when voting. The masks were copied from the downstream implementation at [1]. [1] https://git.codelinaro.org/clo/la/kernel/msm-5.10/-/blob/KERNEL.PLATFORM.1.0.r2-05600-WAIPIOLE.0/drivers/interconnect/qcom/waipio.c Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org> Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20230619-topic-sm8550-upstream-interconnect-mask-vote-v2-2-709474b151cc@linaro.org Fixes: fafc114 ("interconnect: qcom: Add SM8450 interconnect provider driver") Signed-off-by: Georgi Djakov <djakov@kernel.org>
1 parent d8630f0 commit be02db2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

drivers/interconnect/qcom/sm8450.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1337,6 +1337,7 @@ static struct qcom_icc_node qns_mem_noc_sf_disp = {
13371337

13381338
static struct qcom_icc_bcm bcm_acv = {
13391339
.name = "ACV",
1340+
.enable_mask = 0x8,
13401341
.num_nodes = 1,
13411342
.nodes = { &ebi },
13421343
};
@@ -1349,6 +1350,7 @@ static struct qcom_icc_bcm bcm_ce0 = {
13491350

13501351
static struct qcom_icc_bcm bcm_cn0 = {
13511352
.name = "CN0",
1353+
.enable_mask = 0x1,
13521354
.keepalive = true,
13531355
.num_nodes = 55,
13541356
.nodes = { &qnm_gemnoc_cnoc, &qnm_gemnoc_pcie,
@@ -1383,6 +1385,7 @@ static struct qcom_icc_bcm bcm_cn0 = {
13831385

13841386
static struct qcom_icc_bcm bcm_co0 = {
13851387
.name = "CO0",
1388+
.enable_mask = 0x1,
13861389
.num_nodes = 2,
13871390
.nodes = { &qxm_nsp, &qns_nsp_gemnoc },
13881391
};
@@ -1403,6 +1406,7 @@ static struct qcom_icc_bcm bcm_mm0 = {
14031406

14041407
static struct qcom_icc_bcm bcm_mm1 = {
14051408
.name = "MM1",
1409+
.enable_mask = 0x1,
14061410
.num_nodes = 12,
14071411
.nodes = { &qnm_camnoc_hf, &qnm_camnoc_icp,
14081412
&qnm_camnoc_sf, &qnm_mdp,
@@ -1445,6 +1449,7 @@ static struct qcom_icc_bcm bcm_sh0 = {
14451449

14461450
static struct qcom_icc_bcm bcm_sh1 = {
14471451
.name = "SH1",
1452+
.enable_mask = 0x1,
14481453
.num_nodes = 7,
14491454
.nodes = { &alm_gpu_tcu, &alm_sys_tcu,
14501455
&qnm_nsp_gemnoc, &qnm_pcie,
@@ -1461,6 +1466,7 @@ static struct qcom_icc_bcm bcm_sn0 = {
14611466

14621467
static struct qcom_icc_bcm bcm_sn1 = {
14631468
.name = "SN1",
1469+
.enable_mask = 0x1,
14641470
.num_nodes = 4,
14651471
.nodes = { &qhm_gic, &qxm_pimem,
14661472
&xm_gic, &qns_gemnoc_gc },
@@ -1492,6 +1498,7 @@ static struct qcom_icc_bcm bcm_sn7 = {
14921498

14931499
static struct qcom_icc_bcm bcm_acv_disp = {
14941500
.name = "ACV",
1501+
.enable_mask = 0x1,
14951502
.num_nodes = 1,
14961503
.nodes = { &ebi_disp },
14971504
};
@@ -1510,6 +1517,7 @@ static struct qcom_icc_bcm bcm_mm0_disp = {
15101517

15111518
static struct qcom_icc_bcm bcm_mm1_disp = {
15121519
.name = "MM1",
1520+
.enable_mask = 0x1,
15131521
.num_nodes = 3,
15141522
.nodes = { &qnm_mdp_disp, &qnm_rot_disp,
15151523
&qns_mem_noc_sf_disp },
@@ -1523,6 +1531,7 @@ static struct qcom_icc_bcm bcm_sh0_disp = {
15231531

15241532
static struct qcom_icc_bcm bcm_sh1_disp = {
15251533
.name = "SH1",
1534+
.enable_mask = 0x1,
15261535
.num_nodes = 1,
15271536
.nodes = { &qnm_pcie_disp },
15281537
};

0 commit comments

Comments
 (0)