drm/msm/dpu: increase memtype count to 16 for sm8550
PATCH 1/1 drm/msm/dpu: increase memtype count to 16 for sm8550
sm8550 has 16 vbif clients.
This fixes the extra 2 clients (DMA4/DMA5) not having their memtype initialized. This fixes DMA4/DMA5 planes not displaying correctly.
--- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +2 -2
@@ -245,8 +245,8 @@ const struct dpu_mdss_cfg dpu_sm8550_cfg = { .merge_3d = sm8550_merge_3d, .intf_count = ARRAY_SIZE(sm8550_intf), .intf = sm8550_intf, - .vbif_count = ARRAY_SIZE(sdm845_vbif), - .vbif = sdm845_vbif, + .vbif_count = ARRAY_SIZE(sm8550_vbif), + .vbif = sm8550_vbif, .perf = &sm8550_perf_data, .mdss_irqs =BIT (MDP_SSPP_TOP0_INTR ) | \ BIT(MDP_SSPP_TOP0_INTR2) | \
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +20 -0
@@ -663,6 +663,26 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = { }, }; +static const struct dpu_vbif_cfg sm8550_vbif[] = { + { + .name ="vbif_rt" , .id =VBIF_RT , + .base =0 , .len =0x1040 , + .features =BIT (DPU_VBIF_QOS_REMAP ), + .xin_halt_timeout =0x4000 , + .qos_rp_remap_size =0x40 , + .qos_rt_tbl = { + .npriority_lvl =ARRAY_SIZE (sdm845_rt_pri_lvl), + .priority_lvl = sdm845_rt_pri_lvl, + }, + .qos_nrt_tbl = { + .npriority_lvl =ARRAY_SIZE (sdm845_nrt_pri_lvl), + .priority_lvl = sdm845_nrt_pri_lvl, + }, + .memtype_count =16 , + .memtype = {3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 ,3 }, + }, +}; +/************************************************************* * PERF data config *************************************************************/
Signature · 1 line
2.26.1
Quoted 8 lines · Jonathan Marek
sm8550 has 16 vbif clients.
This fixes the extra 2 clients (DMA4/DMA5) not having their memtype initialized. This fixes DMA4/DMA5 planes not displaying correctly.
Fixes efcd0107 ("drm/msm/dpu: add support for SM8550")Signed-off-by Jonathan Marek <[email protected]>
Thanks!
Quoted 4 lines
--- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-)
Signature · 2 lines
With best wishes Dmitry
Quoted 48 lines · Jonathan Marek
sm8550 has 16 vbif clients.
This fixes the extra 2 clients (DMA4/DMA5) not having their memtype initialized. This fixes DMA4/DMA5 planes not displaying correctly.
Fixes efcd0107 ("drm/msm/dpu: add support for SM8550")Signed-off-by Jonathan Marek <[email protected]>--- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 20 +++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +2
-2@@ -245,8 +245,8 @@ const struct dpu_mdss_cfg dpu_sm8550_cfg = { .merge_3d = sm8550_merge_3d, .intf_count = ARRAY_SIZE(sm8550_intf), .intf = sm8550_intf, - .vbif_count = ARRAY_SIZE(sdm845_vbif), - .vbif = sdm845_vbif, + .vbif_count = ARRAY_SIZE(sm8550_vbif), + .vbif = sm8550_vbif, .perf = &sm8550_perf_data, .mdss_irqs =BIT (MDP_SSPP_TOP0_INTR ) | \ BIT(MDP_SSPP_TOP0_INTR2) | \drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +13
-0@@ -663,6 +663,26 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = { }, }; +static const struct dpu_vbif_cfg sm8550_vbif[] = { + { + .name ="vbif_rt" , .id =VBIF_RT , + .base =0 , .len =0x1040 , + .features =BIT (DPU_VBIF_QOS_REMAP ), + .xin_halt_timeout =0x4000 , + .qos_rp_remap_size =0x40 , + .qos_rt_tbl = { + .npriority_lvl =ARRAY_SIZE (sdm845_rt_pri_lvl), + .priority_lvl = sdm845_rt_pri_lvl, + }, + .qos_nrt_tbl = { + .npriority_lvl =ARRAY_SIZE (sdm845_nrt_pri_lvl),
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_vbif_cfg sdm845_vbif[] = { · line 688
Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +7
-0+ .priority_lvl = sdm845_nrt_pri_lvl, + }, + .memtype_count = 16, + .memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3}, + }, +}; +/************************************************************* * PERF data config *************************************************************/
Thanks !
Dmitry Baryshkov
AppliedQuoted 6 lines · Jonathan Marek
sm8550 has 16 vbif clients.
This fixes the extra 2 clients (DMA4/DMA5) not having their memtype initialized. This fixes DMA4/DMA5 planes not displaying correctly.
Applied, thanks!
[1/1] drm/msm/dpu: increase memtype count to 16 for sm8550
https://gitlab.freedesktop.org/lumag/msm/-/commit/08bfcdc2c358
Best regards,
Signature · 1 line
Dmitry Baryshkov <[email protected]>
Dmitry Baryshkov
AppliedQuoted 6 lines · Jonathan Marek
sm8550 has 16 vbif clients.
This fixes the extra 2 clients (DMA4/DMA5) not having their memtype initialized. This fixes DMA4/DMA5 planes not displaying correctly.
Applied, thanks!
[1/1] drm/msm/dpu: increase memtype count to 16 for sm8550
https://gitlab.freedesktop.org/lumag/msm/-/commit/42d0d253ed03
Best regards,
Signature · 1 line
Dmitry Baryshkov <[email protected]>