Skip to contentSkip to conversation

drm/msm/dpu: point sc8280xp_dpu_cfg to sc8280xp_regdma

PATCH In review Dmitry Baryshkov 2 participants 7 messages Jan 18, 2023

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

PATCH 1/2 drm/msm/dpu: point sc8280xp_dpu_cfg to sc8280xp_regdma

SC8280XP configuration missed the reg_dma configuration. We do not use regdma for now, but let's put the correct pointer anyway.

Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")
---
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +2 -0
index 4375e72a9aab..3d0fbc1746e2 100644
@@ -2680,6 +2680,8 @@ static const struct dpu_mdss_cfg sc8280xp_dpu_cfg = {
 	.intf = sc8280xp_intf,
 	.vbif_count = ARRAY_SIZE(sdm845_vbif),
 	.vbif = sdm845_vbif,
+	.reg_dma_count = 1,
+	.dma_cfg = &sc8280xp_regdma,
 	.perf = &sc8280xp_perf_data,
 	.mdss_irqs = IRQ_SC8280XP_MASK,
 };
Signature · 1 line
2.39.0
#1 lore raw

PATCH 2/2 drm/msm/dpu: use sm8350_regdma on SM8350 platform

Correct sm8350_dpu_cfg.dma_cfg to point to sm8350_regdma rather than sm8250_regdma.

Fixes 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog")
---
 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 3d0fbc1746e2..e6618e678384 100644
@@ -2737,7 +2737,7 @@ static const struct dpu_mdss_cfg sm8350_dpu_cfg = {
 	.vbif_count = ARRAY_SIZE(sdm845_vbif),
 	.vbif = sdm845_vbif,
 	.reg_dma_count = 1,
-	.dma_cfg = &sm8250_regdma,
+	.dma_cfg = &sm8350_regdma,
 	.perf = &sm8350_perf_data,
 	.mdss_irqs = IRQ_SM8350_MASK,
 };
Signature · 1 line
2.39.0
#2 lore raw

Re: [PATCH 2/2] drm/msm/dpu: use sm8350_regdma on SM8350 platform

Quoted 14 lines · Dmitry Baryshkov

Correct sm8350_dpu_cfg.dma_cfg to point to sm8350_regdma rather than sm8250_regdma.

Fixes 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog")
---
  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 3d0fbc1746e2..e6618e678384 100644

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_mdss_cfg sm8350_dpu_cfg = { · line 2739

Quoted 3 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -0
@@ -2737,7 +2737,7 @@ static const struct dpu_mdss_cfg sm8350_dpu_cfg = {
  	.vbif_count = ARRAY_SIZE(sdm845_vbif),
  	.vbif = sdm845_vbif,
  	.reg_dma_count = 1,

Since you are adding the .dma_cfg, lets stick to the convention of the rest of the entries and use ARRAY_SIZE.

Quoted 5 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -1
-	.dma_cfg = &sm8250_regdma,
+	.dma_cfg = &sm8350_regdma,
  	.perf = &sm8350_perf_data,
  	.mdss_irqs = IRQ_SM8350_MASK,
  };
Reviewed-by
#3 lore raw

Re: [PATCH 2/2] drm/msm/dpu: use sm8350_regdma on SM8350 platform

Quoted 12 lines · Abhinav Kumar
Quoted 9 lines · Dmitry Baryshkov

Correct sm8350_dpu_cfg.dma_cfg to point to sm8350_regdma rather than sm8250_regdma.

Fixes 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog")

---
  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +-

  1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 10 lines

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_mdss_cfg sm8350_dpu_cfg = { · line 2739

Quoted 8 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -0
index 3d0fbc1746e2..e6618e678384 100644
@@ -2737,7 +2737,7 @@ static const struct dpu_mdss_cfg sm8350_dpu_cfg = {
       .vbif_count = ARRAY_SIZE(sdm845_vbif),
       .vbif = sdm845_vbif,
       .reg_dma_count = 1,

Since you are adding the .dma_cfg, lets stick to the convention of the rest of the entries and use ARRAY_SIZE.

Since reg_dma is not an array yet,

Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -1
-    .dma_cfg = &sm8250_regdma,
+    .dma_cfg = &sm8350_regdma,
       .perf = &sm8350_perf_data,
       .mdss_irqs = IRQ_SM8350_MASK,
   };
#4 lore raw
In reply to Dmitry Baryshkov
Quoted 14 lines · Dmitry Baryshkov

SC8280XP configuration missed the reg_dma configuration. We do not use regdma for now, but let's put the correct pointer anyway.

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

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_mdss_cfg sc8280xp_dpu_cfg = { · line 2683

Quoted 4 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -0
@@ -2680,6 +2680,8 @@ static const struct dpu_mdss_cfg sc8280xp_dpu_cfg = {
  	.intf = sc8280xp_intf,
  	.vbif_count = ARRAY_SIZE(sdm845_vbif),
  	.vbif = sdm845_vbif,
+	.reg_dma_count = 1,

Lets stick to the convention of the rest of the entries and use ARRAY_SIZE.

Quoted 4 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -0
+	.dma_cfg = &sc8280xp_regdma,
  	.perf = &sc8280xp_perf_data,
  	.mdss_irqs = IRQ_SC8280XP_MASK,
  };
#5 lore raw
Quoted 12 lines · Abhinav Kumar
Quoted 9 lines · Dmitry Baryshkov

SC8280XP configuration missed the reg_dma configuration. We do not use regdma for now, but let's put the correct pointer anyway.

Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")

---
  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 ++

  1 file changed, 2 insertions(+)
Quoted 12 lines

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_mdss_cfg · line 2684

Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -0
index 4375e72a9aab..3d0fbc1746e2 100644
@@ -2680,6 +2680,8 @@ static const struct dpu_mdss_cfg 
 sc8280xp_dpu_cfg = {
       .intf = sc8280xp_intf,
       .vbif_count = ARRAY_SIZE(sdm845_vbif),
       .vbif = sdm845_vbif,
+    .reg_dma_count = 1,

Lets stick to the convention of the rest of the entries and use ARRAY_SIZE.

regdma is not an array, so all platforms use 1 here. We should probably change this, as some of newer platforms seem to have two regdma blocks, but I haven't taken a look into that.

Quoted 5 lines
Quoted 5 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -0
+    .dma_cfg = &sc8280xp_regdma,
       .perf = &sc8280xp_perf_data,
       .mdss_irqs = IRQ_SC8280XP_MASK,

  };

Signature · 2 lines
With best wishes
Dmitry
Reviewed-by
#6 lore raw
Quoted 26 lines · Dmitry Baryshkov
Quoted 12 lines · Abhinav Kumar
Quoted 9 lines · Dmitry Baryshkov

SC8280XP configuration missed the reg_dma configuration. We do not use regdma for now, but let's put the correct pointer anyway.

Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")

---
  drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 ++

  1 file changed, 2 insertions(+)
Quoted 12 lines

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_mdss_cfg · line 2684

Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -0
index 4375e72a9aab..3d0fbc1746e2 100644
@@ -2680,6 +2680,8 @@ static const struct dpu_mdss_cfg 
 sc8280xp_dpu_cfg = {
       .intf = sc8280xp_intf,
       .vbif_count = ARRAY_SIZE(sdm845_vbif),
       .vbif = sdm845_vbif,
+    .reg_dma_count = 1,

Lets stick to the convention of the rest of the entries and use ARRAY_SIZE.

Quoted 1 line

regdma is not an array, so all platforms use 1 here. We should probably change this, as some of newer platforms seem to have two regdma blocks, but I haven't taken a look into that.

Ah .... ack, then this is fine. We should probably change that though,

Quoted 7 lines
Quoted 6 lines
Quoted 6 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -0
+    .dma_cfg = &sc8280xp_regdma,
       .perf = &sc8280xp_perf_data,
       .mdss_irqs = IRQ_SC8280XP_MASK,

  };