drm/msm/dpu: point sc8280xp_dpu_cfg to sc8280xp_regdma
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.
--- 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
@@ -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
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.
--- 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
@@ -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
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_regdmarather thansm8250_regdma.Fixes 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog")Signed-off-by Dmitry Baryshkov <[email protected]>--- 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
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, };
Abhinav Kumar
Reviewed-byRe: [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_regdmarather thansm8250_regdma.Fixes 0e91bcbb0016 ("drm/msm/dpu: Add SM8350 to hw catalog")Signed-off-by Dmitry Baryshkov <[email protected]>---
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@@ -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, };
Quoted 14 lines · Dmitry Baryshkov
SC8280XP configuration missed the
reg_dmaconfiguration. We do not use regdma for now, but let's put the correct pointer anyway.Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")Signed-off-by Dmitry Baryshkov <[email protected]>--- 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
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, };
Quoted 12 lines · Abhinav Kumar
Quoted 9 lines · Dmitry Baryshkov
SC8280XP configuration missed the
reg_dmaconfiguration. We do not use regdma for now, but let's put the correct pointer anyway.Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")Signed-off-by Dmitry Baryshkov <[email protected]>---
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@@ -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
Abhinav Kumar
Reviewed-byQuoted 26 lines · Dmitry Baryshkov
Quoted 12 lines · Abhinav Kumar
Quoted 9 lines · Dmitry Baryshkov
SC8280XP configuration missed the
reg_dmaconfiguration. We do not use regdma for now, but let's put the correct pointer anyway.Fixes 4a352c2fc15a ("drm/msm/dpu: Introduce SC8280XP")Signed-off-by Dmitry Baryshkov <[email protected]>---
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@@ -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,};