Skip to contentSkip to conversation

drm/msm/dpu: set DPU_MDP_PERIPH_0_REMOVED for sc8280xp

PATCH Superseded Dmitry Baryshkov 3 participants 3 messages Feb 10, 2023 – Feb 11, 2023

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/msm/dpu: set DPU_MDP_PERIPH_0_REMOVED for sc8280xp

The SC8280XP also has a black hole at the top of MDP_TOP region. Set corresponding bit to disable access to that region.

Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -1
index 3fa202da62fb..f792275dc48f 100644
@@ -743,7 +743,7 @@ static const struct dpu_mdp_cfg sc8280xp_mdp[] = {
 	{
 	.name = "top_0", .id = MDP_TOP,
 	.base = 0x0, .len = 0x494,
-	.features = 0,
+	.features = BIT(DPU_MDP_PERIPH_0_REMOVED),
 	.clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0},
 	.clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0},
 	.clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0},
Signature · 1 line
2.39.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 14 lines · Dmitry Baryshkov

The SC8280XP also has a black hole at the top of MDP_TOP region. Set corresponding bit to disable access to that region.

Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")
---
  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -0
index 3fa202da62fb..f792275dc48f 100644

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_mdp_cfg sc8280xp_mdp[] = { · line 749

Quoted 8 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -1
@@ -743,7 +743,7 @@ static const struct dpu_mdp_cfg sc8280xp_mdp[] = {
  	{
  	.name = "top_0", .id = MDP_TOP,
  	.base = 0x0, .len = 0x494,
-	.features = 0,
+	.features = BIT(DPU_MDP_PERIPH_0_REMOVED),
  	.clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0},
  	.clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0},
  	.clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0},
Reviewed-by on v1 1/1
#2 lore raw
In reply to Dmitry Baryshkov
Quoted 8 lines · Dmitry Baryshkov

The SC8280XP also has a black hole at the top of MDP_TOP region. Set corresponding bit to disable access to that region.

Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")
---
  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Will pick this up for -fixes,