Skip to content

Commit c6c9f12

Browse files
Yuanjie Yanglumag
authored andcommitted
drm/msm/dpu: Add Kaanapali WB support
Add support for Kaanapali WB, which introduce register relocations, use the updated registeri definition to ensure compatibility. Co-developed-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Signed-off-by: Yongxing Mou <yongxing.mou@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Yuanjie Yang <yuanjie.yang@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/698715/ Link: https://lore.kernel.org/r/20260115092749.533-12-yuanjie.yang@oss.qualcomm.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
1 parent 688c773 commit c6c9f12

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

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

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,15 @@ static void dpu_hw_wb_setup_qos_lut(struct dpu_hw_wb *ctx,
148148
cfg);
149149
}
150150

151+
static void dpu_hw_wb_setup_qos_lut_v13(struct dpu_hw_wb *ctx,
152+
struct dpu_hw_qos_cfg *cfg)
153+
{
154+
if (!ctx || !cfg)
155+
return;
156+
157+
dpu_hw_setup_qos_lut_v13(&ctx->hw, cfg);
158+
}
159+
151160
static void dpu_hw_wb_setup_cdp(struct dpu_hw_wb *ctx,
152161
const struct msm_format *fmt,
153162
bool enable)
@@ -202,8 +211,12 @@ static void _setup_wb_ops(struct dpu_hw_wb_ops *ops,
202211
if (test_bit(DPU_WB_XY_ROI_OFFSET, &features))
203212
ops->setup_roi = dpu_hw_wb_roi;
204213

205-
if (test_bit(DPU_WB_QOS, &features))
206-
ops->setup_qos_lut = dpu_hw_wb_setup_qos_lut;
214+
if (test_bit(DPU_WB_QOS, &features)) {
215+
if (mdss_rev->core_major_ver >= 13)
216+
ops->setup_qos_lut = dpu_hw_wb_setup_qos_lut_v13;
217+
else
218+
ops->setup_qos_lut = dpu_hw_wb_setup_qos_lut;
219+
}
207220

208221
if (test_bit(DPU_WB_CDP, &features))
209222
ops->setup_cdp = dpu_hw_wb_setup_cdp;

0 commit comments

Comments
 (0)