Skip to contentSkip to conversation

drm/msm/mdss: specify cfg bandwidth for SDM670

PATCH In review Dmitry Baryshkov 3 participants 3 messages Dec 15, 2023 – Jan 11, 2024

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

PATCH 1/1 drm/msm/mdss: specify cfg bandwidth for SDM670

Lower the requested CFG bus bandwidth for the SDM670 platform. The default value is 153600 kBps, which is twice as big as required by the platform according to the vendor kernel.

Fixes a55c8ff252d3 ("drm/msm/mdss: Handle the reg bus ICC path")
---
 drivers/gpu/drm/msm/msm_mdss.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_mdss.c +1 -0
index 455b2e3a0cdd..35423d10aafa 100644
@@ -562,6 +562,7 @@ static const struct msm_mdss_data sdm670_data = {
 	.ubwc_enc_version = UBWC_2_0,
 	.ubwc_dec_version = UBWC_2_0,
 	.highest_bank_bit = 1,
+	.reg_bus_bw = 76800,
 };
 
 static const struct msm_mdss_data sdm845_data = {
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Dmitry Baryshkov

Lower the requested CFG bus bandwidth for the SDM670 platform. The default value is 153600 kBps, which is twice as big as required by the platform according to the vendor kernel.

Fixes a55c8ff252d3 ("drm/msm/mdss: Handle the reg bus ICC path")
---
  drivers/gpu/drm/msm/msm_mdss.c | 1 +
  1 file changed, 1 insertion(+)
Tested-by on v1 1/1
#2 lore raw
In reply to Dmitry Baryshkov
Quoted 15 lines · Dmitry Baryshkov

Lower the requested CFG bus bandwidth for the SDM670 platform. The default value is 153600 kBps, which is twice as big as required by the platform according to the vendor kernel.

Fixes a55c8ff252d3 ("drm/msm/mdss: Handle the reg bus ICC path")
---
 drivers/gpu/drm/msm/msm_mdss.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/msm/msm_mdss.c +0 -0
index 455b2e3a0cdd..35423d10aafa 100644

drivers/gpu/drm/msm/msm_mdss.c static const struct msm_mdss_data sdm670_data = { · line 565

Quoted 4 lines
drivers/gpu/drm/msm/msm_mdss.c +1 -0
@@ -562,6 +562,7 @@ static const struct msm_mdss_data sdm670_data = {
 	.ubwc_enc_version = UBWC_2_0,
 	.ubwc_dec_version = UBWC_2_0,
 	.highest_bank_bit = 1,
+	.reg_bus_bw = 76800,

This seems to be the bandwidth applied to the "cpu-cfg" path, but it is not in the device tree yet and is not allowed by schema (for no particular reason). In sdm670.dtsi, it would be defined as:

<&gladiator_noc MASTER_AMPSS_M0 0 &config_noc SLAVE_DISPLAY_CFG 0>

Furthermore, I have not yet emailed the patches that I use to test the display on SDM670, namely, the panel driver and device tree changes for the Pixel 3a. Nevertheless, this does not break anything, even with the interconnect path and everything needed to test.

Quoted 6 lines
drivers/gpu/drm/msm/msm_mdss.c +0 -0
 };
 
 static const struct msm_mdss_data sdm845_data = {
Signature · 1 line
2.39.2