Skip to content

Commit 42d0d25

Browse files
fltolumag
authored andcommitted
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. Fixes: efcd010 ("drm/msm/dpu: add support for SM8550") Signed-off-by: Jonathan Marek <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Tested-by: Neil Armstrong <[email protected]> # on SM8550-QRD Patchwork: https://patchwork.freedesktop.org/patch/550968/ Link: https://lore.kernel.org/r/[email protected] [DB: fixed the Fixes tag] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 3d5199a commit 42d0d25

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,8 @@ const struct dpu_mdss_cfg dpu_sm8550_cfg = {
440440
.merge_3d = sm8550_merge_3d,
441441
.intf_count = ARRAY_SIZE(sm8550_intf),
442442
.intf = sm8550_intf,
443-
.vbif_count = ARRAY_SIZE(sdm845_vbif),
444-
.vbif = sdm845_vbif,
443+
.vbif_count = ARRAY_SIZE(sm8550_vbif),
444+
.vbif = sm8550_vbif,
445445
.perf = &sm8550_perf_data,
446446
};
447447

drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -539,6 +539,26 @@ static const struct dpu_vbif_cfg sdm845_vbif[] = {
539539
},
540540
};
541541

542+
static const struct dpu_vbif_cfg sm8550_vbif[] = {
543+
{
544+
.name = "vbif_rt", .id = VBIF_RT,
545+
.base = 0, .len = 0x1040,
546+
.features = BIT(DPU_VBIF_QOS_REMAP),
547+
.xin_halt_timeout = 0x4000,
548+
.qos_rp_remap_size = 0x40,
549+
.qos_rt_tbl = {
550+
.npriority_lvl = ARRAY_SIZE(sdm845_rt_pri_lvl),
551+
.priority_lvl = sdm845_rt_pri_lvl,
552+
},
553+
.qos_nrt_tbl = {
554+
.npriority_lvl = ARRAY_SIZE(sdm845_nrt_pri_lvl),
555+
.priority_lvl = sdm845_nrt_pri_lvl,
556+
},
557+
.memtype_count = 16,
558+
.memtype = {3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3},
559+
},
560+
};
561+
542562
/*************************************************************
543563
* PERF data config
544564
*************************************************************/

0 commit comments

Comments
 (0)