Both DPU and MDSS programming requires knowledge of some of UBWC parameters. This results in duplication of UBWC data between MDSS and DPU drivers. To remove such duplication and make the driver more error-prone, export respective configuration from the MDSS driver and make DPU use it, instead of bundling a copy of such data. Changes since v1: - Rebased on top of msm-next-lumag - Reworked commit message by patch #5, following the request by Abhinav - Dropped DPU_HW_UBWC_VER_xx values - Also removed DPU_MDP_*BWC* defines Dmitry Baryshkov (7): drm/msm/mdss: correct UBWC programming for SM8550 drm/msm/mdss: rename ubwc_version to ubwc_enc_version drm/msm/mdss: export UBWC data drm/msm/mdss: populate missing data drm/msm/dpu: use MDSS data for programming SSPP drm/msm/dpu: drop UBWC configuration drm/msm/dpu: drop BWC features from DPU_MDP_foo namespace .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 6 -- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 6 -- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 6 -- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 6 -- .../msm/disp/dpu1/catalog/dpu_5_4_sm6125.h | 7 -- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 7 -- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 6 -- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 7 -- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 7 -- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 5 - .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 7 -- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 6 -- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 7 -- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 7 -- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 7 -- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 6 -- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 32 ------- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 18 ++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 6 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 16 +++- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.h | 1 + drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.h | 2 + drivers/gpu/drm/msm/msm_mdss.c | 94 ++++++++++++------- drivers/gpu/drm/msm/msm_mdss.h | 27 ++++++ 25 files changed, 121 insertions(+), 181 deletions(-) create mode 100644 drivers/gpu/drm/msm/msm_mdss.h -- 2.39.2