]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/msm/dpu: get rid of DPU_CTL_DSPP_SUB_BLOCK_FLUSH
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 22 May 2025 19:03:30 +0000 (22:03 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Fri, 4 Jul 2025 13:35:16 +0000 (16:35 +0300)
Continue migration to the MDSS-revision based checks and replace
DPU_CTL_DSPP_SUB_BLOCK_FLUSH feature bit with the core_major_ver >= 7
check.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Patchwork: https://patchwork.freedesktop.org/patch/655380/
Link: https://lore.kernel.org/r/20250522-dpu-drop-features-v5-11-3b2085a07884@oss.qualcomm.com
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c

index 6fed2cce082c476c1f7f8ee683f2a6f3eeaa5231..19a859e2a1f80c2321789af4ec7c5e299f0fb873 100644 (file)
        (BIT(DPU_PINGPONG_DITHER) | BIT(DPU_PINGPONG_DSC))
 
 #define CTL_SC7280_MASK \
-       (BIT(DPU_CTL_VM_CFG) | \
-        BIT(DPU_CTL_DSPP_SUB_BLOCK_FLUSH))
+       (BIT(DPU_CTL_VM_CFG))
 
 #define INTF_SC7180_MASK \
        (BIT(DPU_INTF_INPUT_CTRL) | \
index 82f04de6300eca7d05ece3ac880c26f3a56505b9..1e5fc1d5873975189a1759212b8a6c6078de22f9 100644 (file)
@@ -133,13 +133,11 @@ enum {
  * CTL sub-blocks
  * @DPU_CTL_SPLIT_DISPLAY:     CTL supports video mode split display
  * @DPU_CTL_VM_CFG:            CTL config to support multiple VMs
- * @DPU_CTL_DSPP_BLOCK_FLUSH:  CTL config to support dspp sub-block flush
  * @DPU_CTL_MAX
  */
 enum {
        DPU_CTL_SPLIT_DISPLAY = 0x1,
        DPU_CTL_VM_CFG,
-       DPU_CTL_DSPP_SUB_BLOCK_FLUSH,
        DPU_CTL_MAX
 };
 
index 772df53bfc4fcc2ff976f66ef7339be1ae3da8f4..edb82c81b0a449b1a7273fc258961b9447be8d9d 100644 (file)
@@ -804,7 +804,7 @@ struct dpu_hw_ctl *dpu_hw_ctl_init(struct drm_device *dev,
        c->ops.setup_blendstage = dpu_hw_ctl_setup_blendstage;
        c->ops.update_pending_flush_sspp = dpu_hw_ctl_update_pending_flush_sspp;
        c->ops.update_pending_flush_mixer = dpu_hw_ctl_update_pending_flush_mixer;
-       if (c->caps->features & BIT(DPU_CTL_DSPP_SUB_BLOCK_FLUSH))
+       if (mdss_ver->core_major_ver >= 7)
                c->ops.update_pending_flush_dspp = dpu_hw_ctl_update_pending_flush_dspp_sub_blocks;
        else
                c->ops.update_pending_flush_dspp = dpu_hw_ctl_update_pending_flush_dspp;