Skip to content

Commit 463ba32

Browse files
committed
drm/msm/dpu: expand sm8550 catalog
Duplicate sm8450 catalog entries to sm8550 to remove dependencies between DPU instances. Signed-off-by: Dmitry Baryshkov <[email protected]> Reviewed-by: Abhinav Kumar <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/530864/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 5ce2248 commit 463ba32

File tree

1 file changed

+31
-1
lines changed

1 file changed

+31
-1
lines changed

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

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,36 @@ static const struct dpu_intf_cfg sm8550_intf[] = {
172172
INTF_BLK("intf_3", INTF_3, 0x37000, 0x280, INTF_DP, MSM_DP_CONTROLLER_1, 24, INTF_SC7280_MASK, MDP_SSPP_TOP0_INTR, 30, 31),
173173
};
174174

175+
static const struct dpu_perf_cfg sm8550_perf_data = {
176+
.max_bw_low = 13600000,
177+
.max_bw_high = 18200000,
178+
.min_core_ib = 2500000,
179+
.min_llcc_ib = 0,
180+
.min_dram_ib = 800000,
181+
.min_prefill_lines = 35,
182+
/* FIXME: lut tables */
183+
.danger_lut_tbl = {0x3ffff, 0x3ffff, 0x0},
184+
.safe_lut_tbl = {0xfe00, 0xfe00, 0xffff},
185+
.qos_lut_tbl = {
186+
{.nentry = ARRAY_SIZE(sc7180_qos_linear),
187+
.entries = sc7180_qos_linear
188+
},
189+
{.nentry = ARRAY_SIZE(sc7180_qos_macrotile),
190+
.entries = sc7180_qos_macrotile
191+
},
192+
{.nentry = ARRAY_SIZE(sc7180_qos_nrt),
193+
.entries = sc7180_qos_nrt
194+
},
195+
/* TODO: macrotile-qseed is different from macrotile */
196+
},
197+
.cdp_cfg = {
198+
{.rd_enable = 1, .wr_enable = 1},
199+
{.rd_enable = 1, .wr_enable = 0}
200+
},
201+
.clk_inefficiency_factor = 105,
202+
.bw_inefficiency_factor = 120,
203+
};
204+
175205
static const struct dpu_mdss_cfg sm8550_dpu_cfg = {
176206
.caps = &sm8550_dpu_caps,
177207
.ubwc = &sm8550_ubwc_cfg,
@@ -195,7 +225,7 @@ static const struct dpu_mdss_cfg sm8550_dpu_cfg = {
195225
.vbif = sdm845_vbif,
196226
.reg_dma_count = 1,
197227
.dma_cfg = &sm8450_regdma,
198-
.perf = &sm8450_perf_data,
228+
.perf = &sm8550_perf_data,
199229
.mdss_irqs = IRQ_SM8450_MASK,
200230
};
201231

0 commit comments

Comments
 (0)