Skip to contentSkip to conversation

Hook up ACV enable_mask for everybody

PATCH In review Konrad Dybcio 1 participant 13 messages Aug 11, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover Hook up ACV enable_mask for everybody

In the downstream kernel, ACV enable_mask has not been mentioned explicitly, rather being handled by a sneaky if-condition [1], [2].

Add it to all RPMh platforms to actually enable that BCM.

Based atop [3].

[1] https://git.codelinaro.org/clo/la/kernel/msm-4.19/-/blob/LA.UM.10.2.1.c25/drivers/soc/qcom/msm_bus/msm_bus_arb_rpmh.c#L556-567
[2] https://git.codelinaro.org/clo/la/kernel/msm-4.19/-/blob/LA.UM.10.2.1.c25/drivers/soc/qcom/msm_bus/msm_bus_arb_rpmh.c#L475-495
[3] https://lore.kernel.org/linux-arm-msm/[email protected]/T/#t

---
Changes in v2:
- Remove the define and use raw BIT(3) as the APPS mask may change (Mike)
- Pick up tags (Bjorn)
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Konrad Dybcio (11):
interconnect: qcom: qdu1000: Set ACV enable_mask
interconnect: qcom: sc7180: Set ACV enable_mask
interconnect: qcom: sc7280: Set ACV enable_mask
interconnect: qcom: sc8180x: Set ACV enable_mask
interconnect: qcom: sc8280xp: Set ACV enable_mask
interconnect: qcom: sdm670: Set ACV enable_mask
interconnect: qcom: sdm845: Set ACV enable_mask
interconnect: qcom: sm6350: Set ACV enable_mask
interconnect: qcom: sm8150: Set ACV enable_mask
interconnect: qcom: sm8250: Set ACV enable_mask
interconnect: qcom: sm8350: Set ACV enable_mask

 drivers/interconnect/qcom/qdu1000.c  | 1 +
 drivers/interconnect/qcom/sc7180.c   | 1 +
 drivers/interconnect/qcom/sc7280.c   | 1 +
 drivers/interconnect/qcom/sc8180x.c  | 1 +
 drivers/interconnect/qcom/sc8280xp.c | 1 +
 drivers/interconnect/qcom/sdm670.c   | 1 +
 drivers/interconnect/qcom/sdm845.c   | 1 +
 drivers/interconnect/qcom/sm6350.c   | 1 +
 drivers/interconnect/qcom/sm8150.c   | 1 +
 drivers/interconnect/qcom/sm8250.c   | 1 +
 drivers/interconnect/qcom/sm8350.c   | 1 +
 11 files changed, 11 insertions(+)

---
base-commit: ee4aa20e094643232438b896f49a405361406fbf
change-id: 20230811-topic-acv-72aca8ad6f41

Best regards,

Signature · 1 line
Konrad Dybcio <[email protected]>
#1 lore raw

PATCH v2 1/11 interconnect: qcom: qdu1000: Set ACV enable_mask

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 1f51339f7dd0 ("interconnect: qcom: Add QDU1000/QRU1000 interconnect driver")
---
 drivers/interconnect/qcom/qdu1000.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/qdu1000.c +1 -0
index bf800dd7d4ba..a7392eb73d4a 100644
@@ -769,6 +769,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.num_nodes = 1,
 	.nodes = { &ebi },
 };
Signature · 1 line
2.41.0
#2 lore raw

PATCH v2 2/11 interconnect: qcom: sc7180: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 2d1f95ab9feb ("interconnect: qcom: Add SC7180 interconnect provider driver")
---
 drivers/interconnect/qcom/sc7180.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sc7180.c +1 -0
index d94ab9b39f3d..af2be1543840 100644
@@ -1238,6 +1238,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#3 lore raw

PATCH v2 3/11 interconnect: qcom: sc7280: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 46bdcac533cc ("interconnect: qcom: Add SC7280 interconnect provider driver")
---
 drivers/interconnect/qcom/sc7280.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sc7280.c +1 -0
index 6592839b4d94..a626dbc71999 100644
@@ -1285,6 +1285,7 @@ static struct qcom_icc_node srvc_snoc = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.num_nodes = 1,
 	.nodes = { &ebi },
 };
Signature · 1 line
2.41.0
#4 lore raw

PATCH v2 4/11 interconnect: qcom: sc8180x: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 9c8c6bac1ae8 ("interconnect: qcom: Add SC8180x providers")
---
 drivers/interconnect/qcom/sc8180x.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sc8180x.c +1 -0
index 0fb4898dabcf..bdd3471d4ac8 100644
@@ -1345,6 +1345,7 @@ static struct qcom_icc_node slv_qup_core_2 = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.num_nodes = 1,
 	.nodes = { &slv_ebi }
 };
Signature · 1 line
2.41.0
#5 lore raw

PATCH v2 5/11 interconnect: qcom: sc8280xp: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes f29dabda7917 ("interconnect: qcom: Add SC8280XP interconnect provider")
---
 drivers/interconnect/qcom/sc8280xp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sc8280xp.c +1 -0
index b82c5493cbb5..0270f6c64481 100644
@@ -1712,6 +1712,7 @@ static struct qcom_icc_node srvc_snoc = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.num_nodes = 1,
 	.nodes = { &ebi },
 };
Signature · 1 line
2.41.0
#6 lore raw

PATCH v2 6/11 interconnect: qcom: sdm670: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 7e438e18874e ("interconnect: qcom: add sdm670 interconnects")
---
 drivers/interconnect/qcom/sdm670.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sdm670.c +1 -0
index 540a2108b77c..907e1ff4ff81 100644
@@ -1047,6 +1047,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#7 lore raw

PATCH v2 7/11 interconnect: qcom: sdm845: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes b5d2f741077a ("interconnect: qcom: Add sdm845 interconnect provider driver")
---
 drivers/interconnect/qcom/sdm845.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sdm845.c +1 -0
index b9243c0aa626..855802be93fe 100644
@@ -1265,6 +1265,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#8 lore raw

PATCH v2 8/11 interconnect: qcom: sm6350: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 6a6eff73a954 ("interconnect: qcom: Add SM6350 driver support")
---
 drivers/interconnect/qcom/sm6350.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sm6350.c +1 -0
index 49aed492e9b8..f41d7e19ba26 100644
@@ -1164,6 +1164,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#9 lore raw

PATCH v2 9/11 interconnect: qcom: sm8150: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes a09b817c8bad ("interconnect: qcom: Add SM8150 interconnect provider driver")
---
 drivers/interconnect/qcom/sm8150.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sm8150.c +1 -0
index c7c9cf7f746b..edfe824cad35 100644
@@ -1282,6 +1282,7 @@ static struct qcom_icc_node xs_sys_tcu_cfg = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#10 lore raw

PATCH v2 10/11 interconnect: qcom: sm8250: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes 6df5b349491e ("interconnect: qcom: Add SM8250 interconnect provider driver")
---
 drivers/interconnect/qcom/sm8250.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sm8250.c +1 -0
index d4a4ecef11f0..661dc18d99db 100644
@@ -1397,6 +1397,7 @@ static struct qcom_icc_node qup2_core_slave = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#11 lore raw

PATCH v2 11/11 interconnect: qcom: sm8350: Set ACV enable_mask

In reply to Konrad Dybcio

ACV expects an enable_mask corresponding to the APPS RSC, fill it in.

Fixes d26a56674497 ("interconnect: qcom: Add SM8350 interconnect provider driver")
---
 drivers/interconnect/qcom/sm8350.c | 1 +
 1 file changed, 1 insertion(+)
drivers/interconnect/qcom/sm8350.c +1 -0
index bdf75839e6d1..562322d4fc3c 100644
@@ -1356,6 +1356,7 @@ static struct qcom_icc_node qns_mem_noc_sf_disp = {
 
 static struct qcom_icc_bcm bcm_acv = {
 	.name = "ACV",
+	.enable_mask = BIT(3),
 	.keepalive = false,
 	.num_nodes = 1,
 	.nodes = { &ebi },
Signature · 1 line
2.41.0
#12 lore raw
In reply to Konrad Dybcio
Quoted 11 lines · Konrad Dybcio

In the downstream kernel, ACV enable_mask has not been mentioned explicitly, rather being handled by a sneaky if-condition [1], [2].

Add it to all RPMh platforms to actually enable that BCM.

Based atop [3].

[1] https://git.codelinaro.org/clo/la/kernel/msm-4.19/-/blob/LA.UM.10.2.1.c25/drivers/soc/qcom/msm_bus/msm_bus_arb_rpmh.c#L556-567
[2] https://git.codelinaro.org/clo/la/kernel/msm-4.19/-/blob/LA.UM.10.2.1.c25/drivers/soc/qcom/msm_bus/msm_bus_arb_rpmh.c#L475-495
[3] https://lore.kernel.org/linux-arm-msm/[email protected]/T/#t

Quoted 5 lines

---
Changes in v2:
- Remove the define and use raw BIT(3) as the APPS mask may change (Mike)
- Pick up tags (Bjorn)

Whoops sorry, there were no tags (and none were picked up)!

Konrad