drm/msm/dpu: another catalog rework
v3 cover drm/msm/dpu: another catalog rework
Having a macro with 10 arguments doesn't seem like a good idea. It makes it inherently harder to compare the actual structure values. Also this leads to adding macros covering varieties of the block.
As it was previously discussed, inline all foo_BLK macros in order to ease performing changes to the catalog data.
Major part of the conversion was performed using vim script found at [1]. Then some manual cleanups were applied, like dropping fields set to 0.
Dependencies: msm-next-lumag.
Changes since v2:
- Rebased on top of msm-next-lumag
- Fixed MSM_DP/DSI_CONTROLLER_n usage in sm6350 and sm6375 catalog data (Abhinav, Marijn).
Changes since v1:
- Rebased on top of msm-next
- Dropped dependency on interrupt rework
[1] https://pastebin.ubuntu.com/p/26cdW5VpYB/
[2] https://patchwork.freedesktop.org/patch/542142/?series=119220&rev=1
Dmitry Baryshkov (19):
drm/msm: enumerate DSI interfaces
drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n drm/msm/dpu: simplify peer LM handling drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field drm/msm/dpu: drop enum dpu_mdp and MDP_TOP value drm/msm/dpu: expand .clk_ctrls definitions drm/msm/dpu: drop zero features from dpu_mdp_cfg data drm/msm/dpu: drop zero features from dpu_ctl_cfg data drm/msm/dpu: correct indentation for CTL definitions drm/msm/dpu: inline SSPP_BLK macros
drm/msm/dpu: inline DSPP_BLK macros
drm/msm/dpu: inline LM_BLK macros
drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros drm/msm/dpu: inline MERGE_3D_BLK macros drm/msm/dpu: inline various PP_BLK_* macros drm/msm/dpu: inline WB_BLK macros
drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros drm/msm/dpu: drop empty features mask MERGE_3D_SM8150_MASK drm/msm/dpu: drop empty features mask INTF_SDM845_MASK
.../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 329 ++++++++---- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 348 +++++++++---- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 411 ++++++++++----- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 448 +++++++++++----- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 430 +++++++++++----- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 184 +++++-- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 88 +++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 188 ++++--- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 88 +++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 95 +++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 418 ++++++++++----- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 244 ++++++--- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 484 +++++++++++++----- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 445 +++++++++++----- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 467 ++++++++++++----- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 130 ----- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 5 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 34 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 7 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 34 +- drivers/gpu/drm/msm/msm_drv.h | 8 +- 23 files changed, 3320 insertions(+), 1572 deletions(-)
Signature · 1 line
2.39.2
PATCH v3 1/19 drm/msm: enumerate DSI interfaces
Follow the DP example and define MSM_DSI_CONTROLLER_n enumeration.
--- drivers/gpu/drm/msm/msm_drv.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)
drivers/gpu/drm/msm/msm_drv.h +7 -1
@@ -65,6 +65,12 @@ enum msm_dp_controller { MSM_DP_CONTROLLER_COUNT, }; +enum msm_dsi_controller { +MSM_DSI_CONTROLLER_0 , +MSM_DSI_CONTROLLER_1 , +MSM_DSI_CONTROLLER_COUNT , +}; +#define MSM_GPU_MAX_RINGS 4#define MAX_H_TILES_PER_DISPLAY 2
@@ -117,7 +123,7 @@ struct msm_drm_private {struct hdmi *hdmi;/* DSI is shared by mdp4 and mdp5 */ -struct msm_dsi *dsi[2 ]; +struct msm_dsi *dsi[MSM_DSI_CONTROLLER_COUNT ];struct msm_dp *dp[MSM_DP_CONTROLLER_COUNT ];
Signature · 1 line
2.39.2
PATCH v3 2/19 drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n
In reply to Dmitry BaryshkovIn several catalog entries we did not use existing MSM_DP_CONTROLLER_n constants. Fill them in. Also use freshly defined MSM_DSI_CONTROLLER_n for DSI interfaces.
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 6 +++--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 8 ++++---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 8 ++++---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 8 ++++---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 4 ++-- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ++-- 15 files changed, 32 insertions(+), 32 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +3 -3
@@ -139,13 +139,13 @@ static const struct dpu_dspp_cfg msm8998_dspp[] = { };static const struct dpu_intf_cfg msm8998_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,0 ,21 ,INTF_SDM845_MASK , +INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,21 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,0 ,21 ,INTF_SDM845_MASK , +INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,21 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,1 ,21 ,INTF_SDM845_MASK , +INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,21 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), INTF_BLK("intf_3", INTF_3, 0x6b800, 0x280, INTF_HDMI, 0, 21, INTF_SDM845_MASK,
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +4 -4
@@ -143,16 +143,16 @@ static const struct dpu_dsc_cfg sdm845_dsc[] = { };static const struct dpu_intf_cfg sdm845_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,0 ,24 ,INTF_SDM845_MASK , +INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,0 ,24 ,INTF_SDM845_MASK , +INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,1 ,24 ,INTF_SDM845_MASK , +INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,1 ,24 ,INTF_SDM845_MASK , +INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SDM845_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +4 -4
@@ -162,18 +162,18 @@ static const struct dpu_dsc_cfg sm8150_dsc[] = { };static const struct dpu_intf_cfg sm8150_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,1 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ),DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,1 ,24 ,INTF_SC7180_MASK , +INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +2 -2
@@ -166,11 +166,11 @@ static const struct dpu_intf_cfg sc8180x_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,1 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_TEAR_INTR, 2)),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +4 -4
@@ -163,18 +163,18 @@ static const struct dpu_dsc_cfg sm8250_dsc[] = { };static const struct dpu_intf_cfg sm8250_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2c0 ,INTF_DSI ,1 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ),DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,1 ,24 ,INTF_SC7180_MASK , +INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +1 -1
@@ -92,7 +92,7 @@ static const struct dpu_intf_cfg sc7180_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), DPU_IRQ_IDX(MDP_INTF1_TEAR_INTR, 2)),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +1 -1
@@ -66,7 +66,7 @@ static const struct dpu_pingpong_cfg sm6115_pp[] = { };static const struct dpu_intf_cfg sm6115_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +2 -2
@@ -102,10 +102,10 @@ static const struct dpu_dsc_cfg sm6350_dsc[] = { };static const struct dpu_intf_cfg sm6350_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,0 ,35 ,INTF_SC7180_MASK , +INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,35 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,0 ,35 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,35 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +1 -1
@@ -63,7 +63,7 @@ static const struct dpu_pingpong_cfg qcm2290_pp[] = { };static const struct dpu_intf_cfg qcm2290_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +1 -1
@@ -71,7 +71,7 @@ static const struct dpu_dsc_cfg sm6375_dsc[] = { };static const struct dpu_intf_cfg sm6375_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,0 ,24 ,INTF_SC7180_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +2 -2
@@ -169,11 +169,11 @@ static const struct dpu_intf_cfg sm8350_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,1 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_7xxx_TEAR_INTR, 2)),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +1 -1
@@ -116,7 +116,7 @@ static const struct dpu_intf_cfg sc7280_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), DPU_IRQ_IDX(MDP_INTF1_7xxx_TEAR_INTR, 2)),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +2 -2
@@ -161,11 +161,11 @@ static const struct dpu_intf_cfg sc8280xp_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,1 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_7xxx_TEAR_INTR, 2)),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +2 -2
@@ -177,11 +177,11 @@ static const struct dpu_intf_cfg sm8450_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,1 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_7xxx_TEAR_INTR, 2)),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +2 -2
@@ -181,11 +181,11 @@ static const struct dpu_intf_cfg sm8550_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ),DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,1 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_7xxx_TEAR_INTR, 2)),
Signature · 1 line
2.39.2
Marijn Suijten
reviewerRe: [PATCH v3 02/19] drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n
On 2023-06-16 13:03:00, Dmitry Baryshkov wrote:
<snip>
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h static const struct dpu_intf_cfg sm8350_intf[] = { · line 175
Quoted 13 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +1
-1@@ -169,11 +169,11 @@ static const struct dpu_intf_cfg sm8350_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), DPU_IRQ_IDX(MDP_INTF1_7xxx_TEAR_INTR, 2)),
This doesn't apply cleanly on top of your interupt rework series: do you still intend to land that?
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h static const struct dpu_intf_cfg sm8350_intf[] = { · line 179
Quoted 5 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +1
-1-INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,1 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_7xxx_TEAR_INTR, 2)),
<snip, same for the other catalogs>
- Marijn
Re: [PATCH v3 02/19] drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n
Quoted 18 lines · Marijn Suijten
On 2023-06-16 13:03:00, Dmitry Baryshkov wrote:
<snip>drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h static const struct dpu_intf_cfg sm8350_intf[] = { · line 175
Quoted 13 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +1
-1@@ -169,11 +169,11 @@ static const struct dpu_intf_cfg sm8350_intf[] = {INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,0 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), DPU_IRQ_IDX(MDP_INTF1_7xxx_TEAR_INTR, 2)),This doesn't apply cleanly on top of your interupt rework series: do you still intend to land that?
Yes, but most likely after this series. If everything goes well, I want to land this series, DSI DSC docs and last minute fixes to 6.5, everything else goes into 6.6 (as its review was not started).
Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h static const struct dpu_intf_cfg sm8350_intf[] = { · line 179
Quoted 6 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +1
-1-INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,1 ,24 ,INTF_SC7280_MASK , +INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK ,DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ),DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), DPU_IRQ_IDX(MDP_INTF2_7xxx_TEAR_INTR, 2)),<snip, same for the other catalogs>
- Marijn
Signature · 2 lines
With best wishes Dmitry
PATCH v3 3/19 drm/msm/dpu: simplify peer LM handling
In reply to Dmitry BaryshkovFor each LM there is at max 1 peer LM which can be driven by the same CTL, so there no need to have a mask instead of just an ID of the peer LM.
--- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 4 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 34 +++++++------------ 3 files changed, 15 insertions(+), 25 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +1 -1
@@ -394,7 +394,7 @@ static const struct dpu_sspp_sub_blks qcm2290_dma_sblk_0 = _DMA_SBLK("8", 1); .features = _fmask, \ .sblk = _sblk, \ .pingpong = _pp, \ - .lm_pair_mask = (1 << _lmpair), \ + .lm_pair = _lmpair, \ .dspp = _dspp \ }
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +2 -2
@@ -554,14 +554,14 @@ struct dpu_sspp_cfg {* @features bit mask identifying sub-blocks/features * @sblk: LM Sub-blocks information * @pingpong: ID of connected PingPong, PINGPONG_NONE if unsupported -* @lm_pair_mask: Bitmask of LMs that can be controlled by same CTL +* @lm_pair: ID of LM that can be controlled by same CTL */ struct dpu_lm_cfg {DPU_HW_BLK_INFO ;const struct dpu_lm_sub_blks *sblk;u32 pingpong;u32 dspp; -unsigned long lm_pair_mask; +unsigned long lm_pair; };/**
drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c +12 -22
@@ -253,28 +253,19 @@ static bool _dpu_rm_needs_split_display(const struct msm_display_topology *top) }/** -* _dpu_rm_check_lm_peer - check if a mixer is a peer of the primary +* _dpu_rm_get_lm_peer - get the id of a mixer which is a peer of the primary * @rm: dpu resource manager handle * @primary_idx: index of primary mixer in rm->mixer_blks[] -* @peer_idx: index of other mixer in rm->mixer_blks[] -* Return: true if rm->mixer_blks[peer_idx] is a peer of -* rm->mixer_blks[primary_idx] */ -static bool _dpu_rm_check_lm_peer (struct dpu_rm *rm,int primary_idx, -int peer_idx) +static int _dpu_rm_get_lm_peer (struct dpu_rm *rm,int primary_idx) {const struct dpu_lm_cfg *prim_lm_cfg; -const struct dpu_lm_cfg *peer_cfg; prim_lm_cfg =to_dpu_hw_mixer (rm->mixer_blks[primary_idx])->cap; - peer_cfg =to_dpu_hw_mixer (rm->mixer_blks[peer_idx])->cap; -if (!test_bit (peer_cfg->id, &prim_lm_cfg->lm_pair_mask)) { -DPU_DEBUG ("lm %d not peer of lm %d\n" , peer_cfg->id, - peer_cfg->id); -return false; - } -return true; +if (prim_lm_cfg->lm_pair >=LM_0 && prim_lm_cfg->lm_pair <LM_MAX ) +return prim_lm_cfg->lm_pair -LM_0 ; +return -EINVAL ; }/**
@@ -351,7 +342,7 @@ static int _dpu_rm_reserve_lms(struct dpu_rm *rm,int lm_idx[MAX_BLOCKS ];int pp_idx[MAX_BLOCKS ];int dspp_idx[MAX_BLOCKS ] = {0 }; -int i, j, lm_count =0 ; +int i, lm_count =0 ;if (!reqs->topology.num_lm) {DPU_ERROR ("invalid number of lm: %d\n" , reqs->topology.num_lm);
@@ -376,16 +367,15 @@ static int _dpu_rm_reserve_lms(struct dpu_rm *rm, ++lm_count;/* Valid primary mixer found, find matching peers */ - for (j = i + 1; j < ARRAY_SIZE(rm->mixer_blks) && - lm_count < reqs->topology.num_lm; j++) { - if (!rm->mixer_blks[j]) + if (lm_count < reqs->topology.num_lm) { + int j = _dpu_rm_get_lm_peer(rm, i); + + /* ignore the peer if there is an error or if the peer was already processed */ + if (j < 0 || j < i) continue; - if (!_dpu_rm_check_lm_peer(rm, i, j)) { - DPU_DEBUG("lm %d not peer of lm %d\n", LM_0 + j, - LM_0 + i); + if (!rm->mixer_blks[j]) continue; - } if (!_dpu_rm_check_lm_and_get_connected_blks(rm, global_state, enc_id, j,
Signature · 1 line
2.39.2
PATCH v3 4/19 drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field
In reply to Dmitry BaryshkovThere is always a single MDP TOP block. Drop the mdp_count field and stop declaring dpu_mdp_cfg instances as arrays.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 7 ++--- .../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 | 7 ++--- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 7 ++--- .../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 | 7 ++--- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 28 ++----------------- 17 files changed, 32 insertions(+), 102 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +2 -5
@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg msm8998_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg msm8998_mdp[] = { - { +static const struct dpu_mdp_cfg msm8998_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x458 , .features =BIT (DPU_MDP_VSYNC_SEL ),
@@ -41,7 +40,6 @@ static const struct dpu_mdp_cfg msm8998_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 12 }, .clk_ctrls[DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x3a8, .bit_off = 16 }, .clk_ctrls[DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x3b0, .bit_off = 16 }, - }, };static const struct dpu_ctl_cfg msm8998_ctl[] = {
@@ -192,8 +190,7 @@ static const struct dpu_perf_cfg msm8998_perf_data = {const struct dpu_mdss_cfg dpu_msm8998_cfg = { .caps = &msm8998_dpu_caps, .ubwc = &msm8998_ubwc_cfg, - .mdp_count =ARRAY_SIZE (msm8998_mdp), - .mdp = msm8998_mdp, + .mdp = &msm8998_mdp, .ctl_count =ARRAY_SIZE (msm8998_ctl), .ctl = msm8998_ctl, .sspp_count =ARRAY_SIZE (msm8998_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +2 -5
@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg sdm845_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg sdm845_mdp[] = { - { +static const struct dpu_mdp_cfg sdm845_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ) |BIT (DPU_MDP_VSYNC_SEL ),
@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sdm845_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - }, };static const struct dpu_ctl_cfg sdm845_ctl[] = {
@@ -196,8 +194,7 @@ static const struct dpu_perf_cfg sdm845_perf_data = {const struct dpu_mdss_cfg dpu_sdm845_cfg = { .caps = &sdm845_dpu_caps, .ubwc = &sdm845_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sdm845_mdp), - .mdp = sdm845_mdp, + .mdp = &sdm845_mdp, .ctl_count =ARRAY_SIZE (sdm845_ctl), .ctl = sdm845_ctl, .sspp_count =ARRAY_SIZE (sdm845_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +2 -5
@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg sm8150_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg sm8150_mdp[] = { - { +static const struct dpu_mdp_cfg sm8150_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ),
@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sm8150_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
@@ -210,8 +208,7 @@ static const struct dpu_perf_cfg sm8150_perf_data = {const struct dpu_mdss_cfg dpu_sm8150_cfg = { .caps = &sm8150_dpu_caps, .ubwc = &sm8150_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8150_mdp), - .mdp = sm8150_mdp, + .mdp = &sm8150_mdp, .ctl_count =ARRAY_SIZE (sm8150_ctl), .ctl = sm8150_ctl, .sspp_count =ARRAY_SIZE (sm8150_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +2 -5
@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg sc8180x_ubwc_cfg = { .highest_bank_bit = 0x3, }; -static const struct dpu_mdp_cfg sc8180x_mdp[] = { - { +static const struct dpu_mdp_cfg sc8180x_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ),
@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sc8180x_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - }, };static const struct dpu_ctl_cfg sc8180x_ctl[] = {
@@ -216,8 +214,7 @@ static const struct dpu_perf_cfg sc8180x_perf_data = {const struct dpu_mdss_cfg dpu_sc8180x_cfg = { .caps = &sc8180x_dpu_caps, .ubwc = &sc8180x_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc8180x_mdp), - .mdp = sc8180x_mdp, + .mdp = &sc8180x_mdp, .ctl_count =ARRAY_SIZE (sc8180x_ctl), .ctl = sc8180x_ctl, .sspp_count =ARRAY_SIZE (sc8180x_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +2 -5
@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sm8250_ubwc_cfg = { .ubwc_swizzle = 0x6, }; -static const struct dpu_mdp_cfg sm8250_mdp[] = { - { +static const struct dpu_mdp_cfg sm8250_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,
@@ -40,7 +39,6 @@ static const struct dpu_mdp_cfg sm8250_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
@@ -216,8 +214,7 @@ static const struct dpu_perf_cfg sm8250_perf_data = {const struct dpu_mdss_cfg dpu_sm8250_cfg = { .caps = &sm8250_dpu_caps, .ubwc = &sm8250_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8250_mdp), - .mdp = sm8250_mdp, + .mdp = &sm8250_mdp, .ctl_count =ARRAY_SIZE (sm8250_ctl), .ctl = sm8250_ctl, .sspp_count =ARRAY_SIZE (sm8250_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +2 -5
@@ -22,8 +22,7 @@ static const struct dpu_ubwc_cfg sc7180_ubwc_cfg = { .highest_bank_bit = 0x3, }; -static const struct dpu_mdp_cfg sc7180_mdp[] = { - { +static const struct dpu_mdp_cfg sc7180_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,
@@ -32,7 +31,6 @@ static const struct dpu_mdp_cfg sc7180_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, - }, };static const struct dpu_ctl_cfg sc7180_ctl[] = {
@@ -134,8 +132,7 @@ static const struct dpu_perf_cfg sc7180_perf_data = {const struct dpu_mdss_cfg dpu_sc7180_cfg = { .caps = &sc7180_dpu_caps, .ubwc = &sc7180_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc7180_mdp), - .mdp = sc7180_mdp, + .mdp = &sc7180_mdp, .ctl_count =ARRAY_SIZE (sc7180_ctl), .ctl = sc7180_ctl, .sspp_count =ARRAY_SIZE (sc7180_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +2 -5
@@ -23,14 +23,12 @@ static const struct dpu_ubwc_cfg sm6115_ubwc_cfg = { .ubwc_swizzle = 0x7, }; -static const struct dpu_mdp_cfg sm6115_mdp[] = { - { +static const struct dpu_mdp_cfg sm6115_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - }, };static const struct dpu_ctl_cfg sm6115_ctl[] = {
@@ -104,8 +102,7 @@ static const struct dpu_perf_cfg sm6115_perf_data = {const struct dpu_mdss_cfg dpu_sm6115_cfg = { .caps = &sm6115_dpu_caps, .ubwc = &sm6115_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm6115_mdp), - .mdp = sm6115_mdp, + .mdp = &sm6115_mdp, .ctl_count =ARRAY_SIZE (sm6115_ctl), .ctl = sm6115_ctl, .sspp_count =ARRAY_SIZE (sm6115_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +2 -5
@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sm6350_ubwc_cfg = { .highest_bank_bit = 1, }; -static const struct dpu_mdp_cfg sm6350_mdp[] = { - { +static const struct dpu_mdp_cfg sm6350_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,
@@ -35,7 +34,6 @@ static const struct dpu_mdp_cfg sm6350_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };static const struct dpu_ctl_cfg sm6350_ctl[] = {
@@ -143,8 +141,7 @@ static const struct dpu_perf_cfg sm6350_perf_data = {const struct dpu_mdss_cfg dpu_sm6350_cfg = { .caps = &sm6350_dpu_caps, .ubwc = &sm6350_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm6350_mdp), - .mdp = sm6350_mdp, + .mdp = &sm6350_mdp, .ctl_count =ARRAY_SIZE (sm6350_ctl), .ctl = sm6350_ctl, .sspp_count =ARRAY_SIZE (sm6350_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +2 -5
@@ -20,14 +20,12 @@ static const struct dpu_ubwc_cfg qcm2290_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg qcm2290_mdp[] = { - { +static const struct dpu_mdp_cfg qcm2290_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - }, };static const struct dpu_ctl_cfg qcm2290_ctl[] = {
@@ -94,8 +92,7 @@ static const struct dpu_perf_cfg qcm2290_perf_data = {const struct dpu_mdss_cfg dpu_qcm2290_cfg = { .caps = &qcm2290_dpu_caps, .ubwc = &qcm2290_ubwc_cfg, - .mdp_count =ARRAY_SIZE (qcm2290_mdp), - .mdp = qcm2290_mdp, + .mdp = &qcm2290_mdp, .ctl_count =ARRAY_SIZE (qcm2290_ctl), .ctl = qcm2290_ctl, .sspp_count =ARRAY_SIZE (qcm2290_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +2 -5
@@ -24,14 +24,12 @@ static const struct dpu_ubwc_cfg sm6375_ubwc_cfg = { .highest_bank_bit = 1, }; -static const struct dpu_mdp_cfg sm6375_mdp[] = { - { +static const struct dpu_mdp_cfg sm6375_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - }, };static const struct dpu_ctl_cfg sm6375_ctl[] = {
@@ -109,8 +107,7 @@ static const struct dpu_perf_cfg sm6375_perf_data = {const struct dpu_mdss_cfg dpu_sm6375_cfg = { .caps = &sm6375_dpu_caps, .ubwc = &sm6375_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm6375_mdp), - .mdp = sm6375_mdp, + .mdp = &sm6375_mdp, .ctl_count =ARRAY_SIZE (sm6375_ctl), .ctl = sm6375_ctl, .sspp_count =ARRAY_SIZE (sm6375_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +2 -5
@@ -24,8 +24,7 @@ static const struct dpu_ubwc_cfg sm8350_ubwc_cfg = { .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ }; -static const struct dpu_mdp_cfg sm8350_mdp[] = { - { +static const struct dpu_mdp_cfg sm8350_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,
@@ -38,7 +37,6 @@ static const struct dpu_mdp_cfg sm8350_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
@@ -215,8 +213,7 @@ static const struct dpu_perf_cfg sm8350_perf_data = {const struct dpu_mdss_cfg dpu_sm8350_cfg = { .caps = &sm8350_dpu_caps, .ubwc = &sm8350_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8350_mdp), - .mdp = sm8350_mdp, + .mdp = &sm8350_mdp, .ctl_count =ARRAY_SIZE (sm8350_ctl), .ctl = sm8350_ctl, .sspp_count =ARRAY_SIZE (sm8350_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +2 -5
@@ -23,8 +23,7 @@ static const struct dpu_ubwc_cfg sc7280_ubwc_cfg = { .ubwc_swizzle = 0x6, }; -static const struct dpu_mdp_cfg sc7280_mdp[] = { - { +static const struct dpu_mdp_cfg sc7280_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x2014 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
@@ -32,7 +31,6 @@ static const struct dpu_mdp_cfg sc7280_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, - }, };static const struct dpu_ctl_cfg sc7280_ctl[] = {
@@ -156,8 +154,7 @@ static const struct dpu_perf_cfg sc7280_perf_data = {const struct dpu_mdss_cfg dpu_sc7280_cfg = { .caps = &sc7280_dpu_caps, .ubwc = &sc7280_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc7280_mdp), - .mdp = sc7280_mdp, + .mdp = &sc7280_mdp, .ctl_count =ARRAY_SIZE (sc7280_ctl), .ctl = sc7280_ctl, .sspp_count =ARRAY_SIZE (sc7280_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +2 -5
@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sc8280xp_ubwc_cfg = { .ubwc_swizzle = 6, }; -static const struct dpu_mdp_cfg sc8280xp_mdp[] = { - { +static const struct dpu_mdp_cfg sc8280xp_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ),
@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sc8280xp_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
@@ -219,8 +217,7 @@ static const struct dpu_perf_cfg sc8280xp_perf_data = {const struct dpu_mdss_cfg dpu_sc8280xp_cfg = { .caps = &sc8280xp_dpu_caps, .ubwc = &sc8280xp_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc8280xp_mdp), - .mdp = sc8280xp_mdp, + .mdp = &sc8280xp_mdp, .ctl_count =ARRAY_SIZE (sc8280xp_ctl), .ctl = sc8280xp_ctl, .sspp_count =ARRAY_SIZE (sc8280xp_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +2 -5
@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sm8450_ubwc_cfg = { .ubwc_swizzle = 0x6, }; -static const struct dpu_mdp_cfg sm8450_mdp[] = { - { +static const struct dpu_mdp_cfg sm8450_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ),
@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sm8450_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
@@ -223,8 +221,7 @@ static const struct dpu_perf_cfg sm8450_perf_data = {const struct dpu_mdss_cfg dpu_sm8450_cfg = { .caps = &sm8450_dpu_caps, .ubwc = &sm8450_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8450_mdp), - .mdp = sm8450_mdp, + .mdp = &sm8450_mdp, .ctl_count =ARRAY_SIZE (sm8450_ctl), .ctl = sm8450_ctl, .sspp_count =ARRAY_SIZE (sm8450_sspp),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +2 -5
@@ -24,8 +24,7 @@ static const struct dpu_ubwc_cfg sm8550_ubwc_cfg = { .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ }; -static const struct dpu_mdp_cfg sm8550_mdp[] = { - { +static const struct dpu_mdp_cfg sm8550_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ),
@@ -40,7 +39,6 @@ static const struct dpu_mdp_cfg sm8550_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA4] = { .reg_off = 0x2c330, .bit_off = 0 }, .clk_ctrls[DPU_CLK_CTRL_DMA5] = { .reg_off = 0x2e330, .bit_off = 0 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
@@ -227,8 +225,7 @@ static const struct dpu_perf_cfg sm8550_perf_data = {const struct dpu_mdss_cfg dpu_sm8550_cfg = { .caps = &sm8550_dpu_caps, .ubwc = &sm8550_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8550_mdp), - .mdp = sm8550_mdp, + .mdp = &sm8550_mdp, .ctl_count =ARRAY_SIZE (sm8550_ctl), .ctl = sm8550_ctl, .sspp_count =ARRAY_SIZE (sm8550_sspp),
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +0 -1
@@ -809,7 +809,6 @@ struct dpu_mdss_cfg {const struct dpu_ubwc_cfg *ubwc; -u32 mdp_count;const struct dpu_mdp_cfg *mdp;u32 ctl_count;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +2 -26
@@ -268,27 +268,6 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops, ops->intf_audio_select = dpu_hw_intf_audio_select; } -static const struct dpu_mdp_cfg *_top_offset (enum dpu_mdp mdp, -const struct dpu_mdss_cfg *m, -void __iomem *addr, -struct dpu_hw_blk_reg_map *b) -{ -int i; - -if (!m || !addr || !b) -return ERR_PTR (-EINVAL ); - -for (i =0 ; i < m->mdp_count; i++) { -if (mdp == m->mdp[i].id) { - b->blk_addr = addr + m->mdp[i].base; - b->log_mask =DPU_DBG_MASK_TOP ; -return &m->mdp[i]; - } - } - -return ERR_PTR (-EINVAL ); -} -struct dpu_hw_mdp *dpu_hw_mdptop_init (enum dpu_mdp idx,void __iomem *addr,const struct dpu_mdss_cfg *m)
@@ -303,11 +282,8 @@ struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx,if (!mdp)return ERR_PTR (-ENOMEM ); - cfg =_top_offset (idx, m, addr, &mdp->hw); -if (IS_ERR_OR_NULL (cfg)) { -kfree (mdp); -return ERR_PTR (-EINVAL ); - } + mdp->hw.blk_addr = addr + m->mdp->base; + mdp->hw.log_mask =DPU_DBG_MASK_TOP ;/* * Assign ops
Signature · 1 line
2.39.2
Marijn Suijten
reviewerRe: [PATCH v3 04/19] drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field
Quoted 543 lines · Dmitry Baryshkov
There is always a single MDP TOP block. Drop the
mdp_countfield and stop declaringdpu_mdp_cfginstances as arrays.Signed-off-by Dmitry Baryshkov <[email protected]>--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 7 ++--- .../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 | 7 ++--- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 7 ++--- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 7 ++--- .../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 | 7 ++--- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 1 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 28 ++----------------- 17 files changed, 32 insertions(+), 102 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +2
-5@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg msm8998_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg msm8998_mdp[] = { - { +static const struct dpu_mdp_cfg msm8998_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x458 , .features =BIT (DPU_MDP_VSYNC_SEL ),@@ -41,7 +40,6 @@ static const struct dpu_mdp_cfg msm8998_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 12 }, .clk_ctrls[DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x3a8, .bit_off = 16 }, .clk_ctrls[DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x3b0, .bit_off = 16 }, - }, };static const struct dpu_ctl_cfg msm8998_ctl[] = {@@ -192,8 +190,7 @@ static const struct dpu_perf_cfg msm8998_perf_data = {const struct dpu_mdss_cfg dpu_msm8998_cfg = { .caps = &msm8998_dpu_caps, .ubwc = &msm8998_ubwc_cfg, - .mdp_count =ARRAY_SIZE (msm8998_mdp), - .mdp = msm8998_mdp, + .mdp = &msm8998_mdp, .ctl_count =ARRAY_SIZE (msm8998_ctl), .ctl = msm8998_ctl, .sspp_count =ARRAY_SIZE (msm8998_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +2
-5@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg sdm845_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg sdm845_mdp[] = { - { +static const struct dpu_mdp_cfg sdm845_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ) |BIT (DPU_MDP_VSYNC_SEL ),@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sdm845_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - }, };static const struct dpu_ctl_cfg sdm845_ctl[] = {@@ -196,8 +194,7 @@ static const struct dpu_perf_cfg sdm845_perf_data = {const struct dpu_mdss_cfg dpu_sdm845_cfg = { .caps = &sdm845_dpu_caps, .ubwc = &sdm845_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sdm845_mdp), - .mdp = sdm845_mdp, + .mdp = &sdm845_mdp, .ctl_count =ARRAY_SIZE (sdm845_ctl), .ctl = sdm845_ctl, .sspp_count =ARRAY_SIZE (sdm845_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +2
-5@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg sm8150_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg sm8150_mdp[] = { - { +static const struct dpu_mdp_cfg sm8150_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ),@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sm8150_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ @@ -210,8 +208,7 @@ static const struct dpu_perf_cfg sm8150_perf_data = {const struct dpu_mdss_cfg dpu_sm8150_cfg = { .caps = &sm8150_dpu_caps, .ubwc = &sm8150_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8150_mdp), - .mdp = sm8150_mdp, + .mdp = &sm8150_mdp, .ctl_count =ARRAY_SIZE (sm8150_ctl), .ctl = sm8150_ctl, .sspp_count =ARRAY_SIZE (sm8150_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +2
-5@@ -26,8 +26,7 @@ static const struct dpu_ubwc_cfg sc8180x_ubwc_cfg = { .highest_bank_bit = 0x3, }; -static const struct dpu_mdp_cfg sc8180x_mdp[] = { - { +static const struct dpu_mdp_cfg sc8180x_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ),@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sc8180x_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - }, };static const struct dpu_ctl_cfg sc8180x_ctl[] = {@@ -216,8 +214,7 @@ static const struct dpu_perf_cfg sc8180x_perf_data = {const struct dpu_mdss_cfg dpu_sc8180x_cfg = { .caps = &sc8180x_dpu_caps, .ubwc = &sc8180x_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc8180x_mdp), - .mdp = sc8180x_mdp, + .mdp = &sc8180x_mdp, .ctl_count =ARRAY_SIZE (sc8180x_ctl), .ctl = sc8180x_ctl, .sspp_count =ARRAY_SIZE (sc8180x_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +2
-5@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sm8250_ubwc_cfg = { .ubwc_swizzle = 0x6, }; -static const struct dpu_mdp_cfg sm8250_mdp[] = { - { +static const struct dpu_mdp_cfg sm8250_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,@@ -40,7 +39,6 @@ static const struct dpu_mdp_cfg sm8250_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ @@ -216,8 +214,7 @@ static const struct dpu_perf_cfg sm8250_perf_data = {const struct dpu_mdss_cfg dpu_sm8250_cfg = { .caps = &sm8250_dpu_caps, .ubwc = &sm8250_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8250_mdp), - .mdp = sm8250_mdp, + .mdp = &sm8250_mdp, .ctl_count =ARRAY_SIZE (sm8250_ctl), .ctl = sm8250_ctl, .sspp_count =ARRAY_SIZE (sm8250_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +2
-5@@ -22,8 +22,7 @@ static const struct dpu_ubwc_cfg sc7180_ubwc_cfg = { .highest_bank_bit = 0x3, }; -static const struct dpu_mdp_cfg sc7180_mdp[] = { - { +static const struct dpu_mdp_cfg sc7180_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,@@ -32,7 +31,6 @@ static const struct dpu_mdp_cfg sc7180_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, - }, };static const struct dpu_ctl_cfg sc7180_ctl[] = {@@ -134,8 +132,7 @@ static const struct dpu_perf_cfg sc7180_perf_data = {const struct dpu_mdss_cfg dpu_sc7180_cfg = { .caps = &sc7180_dpu_caps, .ubwc = &sc7180_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc7180_mdp), - .mdp = sc7180_mdp, + .mdp = &sc7180_mdp, .ctl_count =ARRAY_SIZE (sc7180_ctl), .ctl = sc7180_ctl, .sspp_count =ARRAY_SIZE (sc7180_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +2
-5@@ -23,14 +23,12 @@ static const struct dpu_ubwc_cfg sm6115_ubwc_cfg = { .ubwc_swizzle = 0x7, }; -static const struct dpu_mdp_cfg sm6115_mdp[] = { - { +static const struct dpu_mdp_cfg sm6115_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - }, };static const struct dpu_ctl_cfg sm6115_ctl[] = {@@ -104,8 +102,7 @@ static const struct dpu_perf_cfg sm6115_perf_data = {const struct dpu_mdss_cfg dpu_sm6115_cfg = { .caps = &sm6115_dpu_caps, .ubwc = &sm6115_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm6115_mdp), - .mdp = sm6115_mdp, + .mdp = &sm6115_mdp, .ctl_count =ARRAY_SIZE (sm6115_ctl), .ctl = sm6115_ctl, .sspp_count =ARRAY_SIZE (sm6115_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +2
-5@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sm6350_ubwc_cfg = { .highest_bank_bit = 1, }; -static const struct dpu_mdp_cfg sm6350_mdp[] = { - { +static const struct dpu_mdp_cfg sm6350_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,@@ -35,7 +34,6 @@ static const struct dpu_mdp_cfg sm6350_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };static const struct dpu_ctl_cfg sm6350_ctl[] = {@@ -143,8 +141,7 @@ static const struct dpu_perf_cfg sm6350_perf_data = {const struct dpu_mdss_cfg dpu_sm6350_cfg = { .caps = &sm6350_dpu_caps, .ubwc = &sm6350_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm6350_mdp), - .mdp = sm6350_mdp, + .mdp = &sm6350_mdp, .ctl_count =ARRAY_SIZE (sm6350_ctl), .ctl = sm6350_ctl, .sspp_count =ARRAY_SIZE (sm6350_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +2
-5@@ -20,14 +20,12 @@ static const struct dpu_ubwc_cfg qcm2290_ubwc_cfg = { .highest_bank_bit = 0x2, }; -static const struct dpu_mdp_cfg qcm2290_mdp[] = { - { +static const struct dpu_mdp_cfg qcm2290_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - }, };static const struct dpu_ctl_cfg qcm2290_ctl[] = {@@ -94,8 +92,7 @@ static const struct dpu_perf_cfg qcm2290_perf_data = {const struct dpu_mdss_cfg dpu_qcm2290_cfg = { .caps = &qcm2290_dpu_caps, .ubwc = &qcm2290_ubwc_cfg, - .mdp_count =ARRAY_SIZE (qcm2290_mdp), - .mdp = qcm2290_mdp, + .mdp = &qcm2290_mdp, .ctl_count =ARRAY_SIZE (qcm2290_ctl), .ctl = qcm2290_ctl, .sspp_count =ARRAY_SIZE (qcm2290_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +2
-5@@ -24,14 +24,12 @@ static const struct dpu_ubwc_cfg sm6375_ubwc_cfg = { .highest_bank_bit = 1, }; -static const struct dpu_mdp_cfg sm6375_mdp[] = { - { +static const struct dpu_mdp_cfg sm6375_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - }, };static const struct dpu_ctl_cfg sm6375_ctl[] = {@@ -109,8 +107,7 @@ static const struct dpu_perf_cfg sm6375_perf_data = {const struct dpu_mdss_cfg dpu_sm6375_cfg = { .caps = &sm6375_dpu_caps, .ubwc = &sm6375_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm6375_mdp), - .mdp = sm6375_mdp, + .mdp = &sm6375_mdp, .ctl_count =ARRAY_SIZE (sm6375_ctl), .ctl = sm6375_ctl, .sspp_count =ARRAY_SIZE (sm6375_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +2
-5@@ -24,8 +24,7 @@ static const struct dpu_ubwc_cfg sm8350_ubwc_cfg = { .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ }; -static const struct dpu_mdp_cfg sm8350_mdp[] = { - { +static const struct dpu_mdp_cfg sm8350_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =0 ,@@ -38,7 +37,6 @@ static const struct dpu_mdp_cfg sm8350_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ @@ -215,8 +213,7 @@ static const struct dpu_perf_cfg sm8350_perf_data = {const struct dpu_mdss_cfg dpu_sm8350_cfg = { .caps = &sm8350_dpu_caps, .ubwc = &sm8350_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8350_mdp), - .mdp = sm8350_mdp, + .mdp = &sm8350_mdp, .ctl_count =ARRAY_SIZE (sm8350_ctl), .ctl = sm8350_ctl, .sspp_count =ARRAY_SIZE (sm8350_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +2
-5@@ -23,8 +23,7 @@ static const struct dpu_ubwc_cfg sc7280_ubwc_cfg = { .ubwc_swizzle = 0x6, }; -static const struct dpu_mdp_cfg sc7280_mdp[] = { - { +static const struct dpu_mdp_cfg sc7280_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x2014 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },@@ -32,7 +31,6 @@ static const struct dpu_mdp_cfg sc7280_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, - }, };static const struct dpu_ctl_cfg sc7280_ctl[] = {@@ -156,8 +154,7 @@ static const struct dpu_perf_cfg sc7280_perf_data = {const struct dpu_mdss_cfg dpu_sc7280_cfg = { .caps = &sc7280_dpu_caps, .ubwc = &sc7280_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc7280_mdp), - .mdp = sc7280_mdp, + .mdp = &sc7280_mdp, .ctl_count =ARRAY_SIZE (sc7280_ctl), .ctl = sc7280_ctl, .sspp_count =ARRAY_SIZE (sc7280_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +2
-5@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sc8280xp_ubwc_cfg = { .ubwc_swizzle = 6, }; -static const struct dpu_mdp_cfg sc8280xp_mdp[] = { - { +static const struct dpu_mdp_cfg sc8280xp_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ),@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sc8280xp_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ @@ -219,8 +217,7 @@ static const struct dpu_perf_cfg sc8280xp_perf_data = {const struct dpu_mdss_cfg dpu_sc8280xp_cfg = { .caps = &sc8280xp_dpu_caps, .ubwc = &sc8280xp_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sc8280xp_mdp), - .mdp = sc8280xp_mdp, + .mdp = &sc8280xp_mdp, .ctl_count =ARRAY_SIZE (sc8280xp_ctl), .ctl = sc8280xp_ctl, .sspp_count =ARRAY_SIZE (sc8280xp_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +2
-5@@ -25,8 +25,7 @@ static const struct dpu_ubwc_cfg sm8450_ubwc_cfg = { .ubwc_swizzle = 0x6, }; -static const struct dpu_mdp_cfg sm8450_mdp[] = { - { +static const struct dpu_mdp_cfg sm8450_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ),@@ -39,7 +38,6 @@ static const struct dpu_mdp_cfg sm8450_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ @@ -223,8 +221,7 @@ static const struct dpu_perf_cfg sm8450_perf_data = {const struct dpu_mdss_cfg dpu_sm8450_cfg = { .caps = &sm8450_dpu_caps, .ubwc = &sm8450_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8450_mdp), - .mdp = sm8450_mdp, + .mdp = &sm8450_mdp, .ctl_count =ARRAY_SIZE (sm8450_ctl), .ctl = sm8450_ctl, .sspp_count =ARRAY_SIZE (sm8450_sspp),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +2
-5@@ -24,8 +24,7 @@ static const struct dpu_ubwc_cfg sm8550_ubwc_cfg = { .highest_bank_bit = 0x3, /* TODO: 2 for LP_DDR4 */ }; -static const struct dpu_mdp_cfg sm8550_mdp[] = { - { +static const struct dpu_mdp_cfg sm8550_mdp = { .name ="top_0" , .id =MDP_TOP , .base =0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ),@@ -40,7 +39,6 @@ static const struct dpu_mdp_cfg sm8550_mdp[] = { .clk_ctrls[DPU_CLK_CTRL_DMA4] = { .reg_off = 0x2c330, .bit_off = 0 }, .clk_ctrls[DPU_CLK_CTRL_DMA5] = { .reg_off = 0x2e330, .bit_off = 0 }, .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ @@ -227,8 +225,7 @@ static const struct dpu_perf_cfg sm8550_perf_data = {const struct dpu_mdss_cfg dpu_sm8550_cfg = { .caps = &sm8550_dpu_caps, .ubwc = &sm8550_ubwc_cfg, - .mdp_count =ARRAY_SIZE (sm8550_mdp), - .mdp = sm8550_mdp, + .mdp = &sm8550_mdp, .ctl_count =ARRAY_SIZE (sm8550_ctl), .ctl = sm8550_ctl, .sspp_count =ARRAY_SIZE (sm8550_sspp),drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h +0
-1@@ -809,7 +809,6 @@ struct dpu_mdss_cfg {const struct dpu_ubwc_cfg *ubwc; -u32 mdp_count;const struct dpu_mdp_cfg *mdp;u32 ctl_count;drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +0
-21@@ -268,27 +268,6 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops, ops->intf_audio_select = dpu_hw_intf_audio_select; } -static const struct dpu_mdp_cfg *_top_offset (enum dpu_mdp mdp, -const struct dpu_mdss_cfg *m, -void __iomem *addr, -struct dpu_hw_blk_reg_map *b) -{ -int i; - -if (!m || !addr || !b) -return ERR_PTR (-EINVAL ); - -for (i =0 ; i < m->mdp_count; i++) { -if (mdp == m->mdp[i].id) { - b->blk_addr = addr + m->mdp[i].base; - b->log_mask =DPU_DBG_MASK_TOP ; -return &m->mdp[i]; - } - } - -return ERR_PTR (-EINVAL ); -} -struct dpu_hw_mdp *dpu_hw_mdptop_init (enum dpu_mdp idx,void __iomem *addr,const struct dpu_mdss_cfg *m)
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx, · line 286
Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +2
-5@@ -303,11 +282,8 @@ struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx,if (!mdp)return ERR_PTR (-ENOMEM ); - cfg =_top_offset (idx, m, addr, &mdp->hw); -if (IS_ERR_OR_NULL (cfg)) { -kfree (mdp); -return ERR_PTR (-EINVAL ); - } + mdp->hw.blk_addr = addr + m->mdp->base; + mdp->hw.log_mask =DPU_DBG_MASK_TOP ;
You lost the assignment of m->mdp to the local cfg variable, causing mdp->caps = cfg; below to remain NULL.
- Marijn
Quoted 6 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +0
-0/* * Assign ops Signature · 1 line
2.39.2
Marijn Suijten
reviewerRe: [PATCH v3 04/19] drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field
On 2023-06-17 00:41:40, Marijn Suijten wrote:
<snip>
Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx, · line 286
Quoted 7 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +2
-5- cfg =_top_offset (idx, m, addr, &mdp->hw); -if (IS_ERR_OR_NULL (cfg)) { -kfree (mdp); -return ERR_PTR (-EINVAL ); - } + mdp->hw.blk_addr = addr + m->mdp->base; + mdp->hw.log_mask =DPU_DBG_MASK_TOP ;You lost the assignment of
m->mdpto the local cfg variable, causingmdp->caps= cfg; below to remain NULL.
To solve that in a clean way, you might as well pass const struct dpu_mdp_cfg *cfg directly from dpu_kms.c into dpu_hw_mdptop_init, as I did for the other HW blocks in "Pass catalog pointers in RM to replace for-loop ID lookups".
- Marijn
Re: [PATCH v3 04/19] drm/msm/dpu: drop dpu_mdss_cfg::mdp_count field
Quoted 13 lines · Marijn Suijten
On 2023-06-17 00:41:40, Marijn Suijten wrote:
<snip>Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx, · line 286
Quoted 7 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +2
-5- cfg =_top_offset (idx, m, addr, &mdp->hw); -if (IS_ERR_OR_NULL (cfg)) { -kfree (mdp); -return ERR_PTR (-EINVAL ); - } + mdp->hw.blk_addr = addr + m->mdp->base; + mdp->hw.log_mask =DPU_DBG_MASK_TOP ;You lost the assignment of
m->mdpto the local cfg variable, causingmdp->caps= cfg; below to remain NULL.
Quoted 4 lines
To solve that in a clean way, you might as well pass
const struct dpu_mdp_cfg *cfgdirectly fromdpu_kms.cintodpu_hw_mdptop_init, as I did for the other HW blocks in "Pass catalog pointers in RM to replace for-loop ID lookups".
Sounds good.
Signature · 2 lines
With best wishes Dmitry
PATCH v3 5/19 drm/msm/dpu: drop enum dpu_mdp and MDP_TOP value
In reply to Dmitry BaryshkovSince there is always just a single MDP_TOP instance, drop the enum dpu_mdp and corresponding index value.
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 5 ----- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 6 ++---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 7 ++----- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- 19 files changed, 20 insertions(+), 30 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +1 -1
@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg msm8998_ubwc_cfg = { };static const struct dpu_mdp_cfg msm8998_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x458 , .features =BIT (DPU_MDP_VSYNC_SEL ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +1 -1
@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg sdm845_ubwc_cfg = { };static const struct dpu_mdp_cfg sdm845_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ) |BIT (DPU_MDP_VSYNC_SEL ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +1 -1
@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg sm8150_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8150_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +1 -1
@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg sc8180x_ubwc_cfg = { };static const struct dpu_mdp_cfg sc8180x_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +1 -1
@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sm8250_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8250_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +1 -1
@@ -23,7 +23,7 @@ static const struct dpu_ubwc_cfg sc7180_ubwc_cfg = { };static const struct dpu_mdp_cfg sc7180_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +1 -1
@@ -24,7 +24,7 @@ static const struct dpu_ubwc_cfg sm6115_ubwc_cfg = { };static const struct dpu_mdp_cfg sm6115_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +1 -1
@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sm6350_ubwc_cfg = { };static const struct dpu_mdp_cfg sm6350_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +1 -1
@@ -21,7 +21,7 @@ static const struct dpu_ubwc_cfg qcm2290_ubwc_cfg = { };static const struct dpu_mdp_cfg qcm2290_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +1 -1
@@ -25,7 +25,7 @@ static const struct dpu_ubwc_cfg sm6375_ubwc_cfg = { };static const struct dpu_mdp_cfg sm6375_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +1 -1
@@ -25,7 +25,7 @@ static const struct dpu_ubwc_cfg sm8350_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8350_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +1 -1
@@ -24,7 +24,7 @@ static const struct dpu_ubwc_cfg sc7280_ubwc_cfg = { };static const struct dpu_mdp_cfg sc7280_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x2014 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +1 -1
@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sc8280xp_ubwc_cfg = { };static const struct dpu_mdp_cfg sc8280xp_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +1 -1
@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sm8450_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8450_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +1 -1
@@ -25,7 +25,7 @@ static const struct dpu_ubwc_cfg sm8550_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8550_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x4330 , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h +0 -5
@@ -101,11 +101,6 @@ enum dpu_hw_blk_type { DPU_HW_BLK_MAX, }; -enum dpu_mdp { -MDP_TOP =0x1 , -MDP_MAX , -}; -enum dpu_sspp {SSPP_NONE ,SSPP_VIG0 ,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +2 -4
@@ -268,9 +268,8 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops, ops->intf_audio_select = dpu_hw_intf_audio_select; } -struct dpu_hw_mdp *dpu_hw_mdptop_init (enum dpu_mdp idx, -void __iomem *addr, -const struct dpu_mdss_cfg *m) +struct dpu_hw_mdp *dpu_hw_mdptop_init (void __iomem *addr, +const struct dpu_mdss_cfg *m) {struct dpu_hw_mdp *mdp;const struct dpu_mdp_cfg *cfg;
@@ -288,7 +287,6 @@ struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx,/* * Assign ops */ - mdp->idx = idx; mdp->caps = cfg;_setup_mdp_ops (&mdp->ops, mdp->caps->features);
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h +2 -5
@@ -137,7 +137,6 @@ struct dpu_hw_mdp {struct dpu_hw_blk_reg_map hw;/* top */ -enum dpu_mdp idx;const struct dpu_mdp_cfg *caps;/* ops */
@@ -146,13 +145,11 @@ struct dpu_hw_mdp {/** * dpu_hw_mdptop_init - initializes the top driver for the passed idx -* @idx: Interface index for which driver object is required * @addr: Mapped register io address of MDP * @m: Pointer to mdss catalog data */ -struct dpu_hw_mdp *dpu_hw_mdptop_init (enum dpu_mdp idx, -void __iomem *addr, -const struct dpu_mdss_cfg *m); +struct dpu_hw_mdp *dpu_hw_mdptop_init (void __iomem *addr, +const struct dpu_mdss_cfg *m);void dpu_hw_mdp_destroy (struct dpu_hw_mdp *mdp);
drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +1 -1
@@ -1092,7 +1092,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms) dpu_kms->rm_init = true; - dpu_kms->hw_mdp =dpu_hw_mdptop_init (MDP_TOP , dpu_kms->mmio, + dpu_kms->hw_mdp =dpu_hw_mdptop_init (dpu_kms->mmio, dpu_kms->catalog);if (IS_ERR (dpu_kms->hw_mdp)) { rc =PTR_ERR (dpu_kms->hw_mdp);
Signature · 1 line
2.39.2
Re: [PATCH v3 05/19] drm/msm/dpu: drop enum dpu_mdp and MDP_TOP value
Quoted 4 lines · Dmitry Baryshkov
Since there is always just a single
MDP_TOPinstance, drop the enumdpu_mdpand corresponding index value.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 239 lines
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 5 ----- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 6 ++---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 7 ++----- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- 19 files changed, 20 insertions(+), 30 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +1
-1@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg msm8998_ubwc_cfg = { };static const struct dpu_mdp_cfg msm8998_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x458 , .features =BIT (DPU_MDP_VSYNC_SEL ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +1
-1@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg sdm845_ubwc_cfg = { };static const struct dpu_mdp_cfg sdm845_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ) |BIT (DPU_MDP_VSYNC_SEL ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +1
-1@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg sm8150_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8150_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +1
-1@@ -27,7 +27,7 @@ static const struct dpu_ubwc_cfg sc8180x_ubwc_cfg = { };static const struct dpu_mdp_cfg sc8180x_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x45c , .features =BIT (DPU_MDP_AUDIO_SELECT ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +1
-1@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sm8250_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8250_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +1
-1@@ -23,7 +23,7 @@ static const struct dpu_ubwc_cfg sc7180_ubwc_cfg = { };static const struct dpu_mdp_cfg sc7180_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +1
-1@@ -24,7 +24,7 @@ static const struct dpu_ubwc_cfg sm6115_ubwc_cfg = { };static const struct dpu_mdp_cfg sm6115_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +1
-1@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sm6350_ubwc_cfg = { };static const struct dpu_mdp_cfg sm6350_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +1
-1@@ -21,7 +21,7 @@ static const struct dpu_ubwc_cfg qcm2290_ubwc_cfg = { };static const struct dpu_mdp_cfg qcm2290_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +1
-1@@ -25,7 +25,7 @@ static const struct dpu_ubwc_cfg sm6375_ubwc_cfg = { };static const struct dpu_mdp_cfg sm6375_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +1
-1@@ -25,7 +25,7 @@ static const struct dpu_ubwc_cfg sm8350_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8350_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =0 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +1
-1@@ -24,7 +24,7 @@ static const struct dpu_ubwc_cfg sc7280_ubwc_cfg = { };static const struct dpu_mdp_cfg sc7280_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x2014 , .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +1
-1@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sc8280xp_ubwc_cfg = { };static const struct dpu_mdp_cfg sc8280xp_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +1
-1@@ -26,7 +26,7 @@ static const struct dpu_ubwc_cfg sm8450_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8450_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0x0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +1
-1@@ -25,7 +25,7 @@ static const struct dpu_ubwc_cfg sm8550_ubwc_cfg = { };static const struct dpu_mdp_cfg sm8550_mdp = { - .name ="top_0" , .id =MDP_TOP , + .name ="top_0" , .base =0 , .len =0x494 , .features =BIT (DPU_MDP_PERIPH_0_REMOVED ), .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x4330 , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h +0
-5@@ -101,11 +101,6 @@ enum dpu_hw_blk_type { DPU_HW_BLK_MAX, }; -enum dpu_mdp { -MDP_TOP =0x1 , -MDP_MAX , -}; -enum dpu_sspp {SSPP_NONE ,SSPP_VIG0 ,drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +0
-0@@ -268,9 +268,8 @@ static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops, ops->intf_audio_select = dpu_hw_intf_audio_select;
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void _setup_mdp_ops(struct dpu_hw_mdp_ops *ops, · line 275
Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +2
-3} -struct dpu_hw_mdp *dpu_hw_mdptop_init (enum dpu_mdp idx, -void __iomem *addr, -const struct dpu_mdss_cfg *m) +struct dpu_hw_mdp *dpu_hw_mdptop_init (void __iomem *addr, +const struct dpu_mdss_cfg *m) {struct dpu_hw_mdp *mdp;const struct dpu_mdp_cfg *cfg;
As mentioned in the previous patch I think you can pass this directly in place of idx and m now, so that it doesn't get left unassigned.
- Marijn
Quoted 52 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c +0
-1@@ -288,7 +287,6 @@ struct dpu_hw_mdp *dpu_hw_mdptop_init(enum dpu_mdp idx,/* * Assign ops */ - mdp->idx = idx; mdp->caps = cfg;_setup_mdp_ops (&mdp->ops, mdp->caps->features);drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h +2
-5@@ -137,7 +137,6 @@ struct dpu_hw_mdp {struct dpu_hw_blk_reg_map hw;/* top */ -enum dpu_mdp idx;const struct dpu_mdp_cfg *caps;/* ops */ @@ -146,13 +145,11 @@ struct dpu_hw_mdp {/** * dpu_hw_mdptop_init - initializes the top driver for the passed idx -* @idx: Interface index for which driver object is required * @addr: Mapped register io address of MDP * @m: Pointer to mdss catalog data */ -struct dpu_hw_mdp *dpu_hw_mdptop_init (enum dpu_mdp idx, -void __iomem *addr, -const struct dpu_mdss_cfg *m); +struct dpu_hw_mdp *dpu_hw_mdptop_init (void __iomem *addr, +const struct dpu_mdss_cfg *m);void dpu_hw_mdp_destroy (struct dpu_hw_mdp *mdp);drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c +1
-1@@ -1092,7 +1092,7 @@ static int dpu_kms_hw_init(struct msm_kms *kms) dpu_kms->rm_init = true; - dpu_kms->hw_mdp =dpu_hw_mdptop_init (MDP_TOP , dpu_kms->mmio, + dpu_kms->hw_mdp =dpu_hw_mdptop_init (dpu_kms->mmio, dpu_kms->catalog);if (IS_ERR (dpu_kms->hw_mdp)) { rc =PTR_ERR (dpu_kms->hw_mdp);Signature · 1 line
2.39.2
PATCH v3 6/19 drm/msm/dpu: expand .clk_ctrls definitions
In reply to Dmitry BaryshkovUse more standard initialisation for .clk_ctrls definitions. Define a single .clk_ctrls field and use array init inside.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 22 +++++++++-------- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 18 +++++++------- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 18 +++++++------- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 18 +++++++------- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 22 +++++++++-------- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 12 ++++++---- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 6 +++-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 12 ++++++---- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 6 +++-- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 6 +++-- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 20 +++++++++------- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 12 ++++++---- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 20 +++++++++------- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 20 +++++++++------- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 24 ++++++++++--------- 15 files changed, 133 insertions(+), 103 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +12 -10
@@ -30,16 +30,18 @@ static const struct dpu_mdp_cfg msm8998_mdp = { .name = "top_0", .base = 0x0, .len = 0x458, .features = BIT(DPU_MDP_VSYNC_SEL), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 12 }, - .clk_ctrls[DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x3a8, .bit_off = 16 }, - .clk_ctrls[DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x3b0, .bit_off = 16 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 12 }, + [DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x3a8, .bit_off = 16 }, + [DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x3b0, .bit_off = 16 }, + }, };static const struct dpu_ctl_cfg msm8998_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +10 -8
@@ -30,14 +30,16 @@ static const struct dpu_mdp_cfg sdm845_mdp = { .name = "top_0", .base = 0x0, .len = 0x45c, .features = BIT(DPU_MDP_AUDIO_SELECT) | BIT(DPU_MDP_VSYNC_SEL), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sdm845_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +10 -8
@@ -30,14 +30,16 @@ static const struct dpu_mdp_cfg sm8150_mdp = { .name = "top_0", .base = 0x0, .len = 0x45c, .features = BIT(DPU_MDP_AUDIO_SELECT), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +10 -8
@@ -30,14 +30,16 @@ static const struct dpu_mdp_cfg sc8180x_mdp = { .name = "top_0", .base = 0x0, .len = 0x45c, .features = BIT(DPU_MDP_AUDIO_SELECT), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sc8180x_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +12 -10
@@ -29,16 +29,18 @@ static const struct dpu_mdp_cfg sm8250_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + [DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +7 -5
@@ -26,11 +26,13 @@ static const struct dpu_mdp_cfg sc7180_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + }, };static const struct dpu_ctl_cfg sc7180_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +4 -2
@@ -27,8 +27,10 @@ static const struct dpu_mdp_cfg sm6115_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sm6115_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +7 -5
@@ -29,11 +29,13 @@ static const struct dpu_mdp_cfg sm6350_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };static const struct dpu_ctl_cfg sm6350_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +4 -2
@@ -24,8 +24,10 @@ static const struct dpu_mdp_cfg qcm2290_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg qcm2290_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +4 -2
@@ -28,8 +28,10 @@ static const struct dpu_mdp_cfg sm6375_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sm6375_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +11 -9
@@ -28,15 +28,17 @@ static const struct dpu_mdp_cfg sm8350_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +7 -5
@@ -26,11 +26,13 @@ static const struct dpu_ubwc_cfg sc7280_ubwc_cfg = {static const struct dpu_mdp_cfg sc7280_mdp = { .name ="top_0" , .base =0x0 , .len =0x2014 , - .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1 ] = { .reg_off =0x2b4 , .bit_off =8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2 ] = { .reg_off =0x2c4 , .bit_off =8 }, - .clk_ctrls[DPU_CLK_CTRL_WB2 ] = { .reg_off =0x3b8 , .bit_off =24 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, + [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, + [DPU_CLK_CTRL_DMA1 ] = { .reg_off =0x2b4 , .bit_off =8 }, + [DPU_CLK_CTRL_DMA2 ] = { .reg_off =0x2c4 , .bit_off =8 }, + [DPU_CLK_CTRL_WB2 ] = { .reg_off =0x3b8 , .bit_off =24 }, + }, };static const struct dpu_ctl_cfg sc7280_ctl[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +11 -9
@@ -29,15 +29,17 @@ static const struct dpu_mdp_cfg sc8280xp_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +11 -9
@@ -29,15 +29,17 @@ static const struct dpu_mdp_cfg sm8450_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +13 -11
@@ -28,17 +28,19 @@ static const struct dpu_mdp_cfg sm8550_mdp = { .name = "top_0", .base = 0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x4330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x6330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x8330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0xa330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x24330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x26330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x28330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2a330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA4] = { .reg_off = 0x2c330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA5] = { .reg_off = 0x2e330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x4330, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x6330, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x8330, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0xa330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x24330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x26330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x28330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2a330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA4] = { .reg_off = 0x2c330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA5] = { .reg_off = 0x2e330, .bit_off = 0 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */
Signature · 1 line
2.39.2
Re: [PATCH v3 06/19] drm/msm/dpu: expand .clk_ctrls definitions
Quoted 4 lines · Dmitry Baryshkov
Use more standard initialisation for .clk_ctrls definitions. Define a single .clk_ctrls field and use array init inside.
Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 422 lines
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 22 +++++++++-------- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 18 +++++++------- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 18 +++++++------- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 18 +++++++------- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 22 +++++++++-------- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 12 ++++++---- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 6 +++-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 12 ++++++---- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 6 +++-- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 6 +++-- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 20 +++++++++------- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 12 ++++++---- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 20 +++++++++------- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 20 +++++++++------- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 24 ++++++++++--------- 15 files changed, 133 insertions(+), 103 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +12
-10@@ -30,16 +30,18 @@ static const struct dpu_mdp_cfg msm8998_mdp = { .name = "top_0", .base = 0x0, .len = 0x458, .features = BIT(DPU_MDP_VSYNC_SEL), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 12 }, - .clk_ctrls[DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x3a8, .bit_off = 16 }, - .clk_ctrls[DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x3b0, .bit_off = 16 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 12 }, + [DPU_CLK_CTRL_CURSOR0] = { .reg_off = 0x3a8, .bit_off = 16 }, + [DPU_CLK_CTRL_CURSOR1] = { .reg_off = 0x3b0, .bit_off = 16 }, + }, };static const struct dpu_ctl_cfg msm8998_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +10
-8@@ -30,14 +30,16 @@ static const struct dpu_mdp_cfg sdm845_mdp = { .name = "top_0", .base = 0x0, .len = 0x45c, .features = BIT(DPU_MDP_AUDIO_SELECT) | BIT(DPU_MDP_VSYNC_SEL), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sdm845_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +10
-8@@ -30,14 +30,16 @@ static const struct dpu_mdp_cfg sm8150_mdp = { .name = "top_0", .base = 0x0, .len = 0x45c, .features = BIT(DPU_MDP_AUDIO_SELECT), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +10
-8@@ -30,14 +30,16 @@ static const struct dpu_mdp_cfg sc8180x_mdp = { .name = "top_0", .base = 0x0, .len = 0x45c, .features = BIT(DPU_MDP_AUDIO_SELECT), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sc8180x_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +12
-10@@ -29,16 +29,18 @@ static const struct dpu_mdp_cfg sm8250_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, - .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + [DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +7
-5@@ -26,11 +26,13 @@ static const struct dpu_mdp_cfg sc7180_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_WB2] = { .reg_off = 0x3b8, .bit_off = 24 }, + }, };static const struct dpu_ctl_cfg sc7180_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +4
-2@@ -27,8 +27,10 @@ static const struct dpu_mdp_cfg sm6115_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sm6115_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +7
-5@@ -29,11 +29,13 @@ static const struct dpu_mdp_cfg sm6350_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };static const struct dpu_ctl_cfg sm6350_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +4
-2@@ -24,8 +24,10 @@ static const struct dpu_mdp_cfg qcm2290_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg qcm2290_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +4
-2@@ -28,8 +28,10 @@ static const struct dpu_mdp_cfg sm6375_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + }, };static const struct dpu_ctl_cfg sm6375_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +11
-9@@ -28,15 +28,17 @@ static const struct dpu_mdp_cfg sm8350_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = 0, - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +7
-5@@ -26,11 +26,13 @@ static const struct dpu_ubwc_cfg sc7280_ubwc_cfg = {static const struct dpu_mdp_cfg sc7280_mdp = { .name ="top_0" , .base =0x0 , .len =0x2014 , - .clk_ctrls[DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1 ] = { .reg_off =0x2b4 , .bit_off =8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2 ] = { .reg_off =0x2c4 , .bit_off =8 }, - .clk_ctrls[DPU_CLK_CTRL_WB2 ] = { .reg_off =0x3b8 , .bit_off =24 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, + [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 }, + [DPU_CLK_CTRL_DMA1 ] = { .reg_off =0x2b4 , .bit_off =8 }, + [DPU_CLK_CTRL_DMA2 ] = { .reg_off =0x2c4 , .bit_off =8 }, + [DPU_CLK_CTRL_WB2 ] = { .reg_off =0x3b8 , .bit_off =24 }, + }, };static const struct dpu_ctl_cfg sc7280_ctl[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +11
-9@@ -29,15 +29,17 @@ static const struct dpu_mdp_cfg sc8280xp_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +11
-9@@ -29,15 +29,17 @@ static const struct dpu_mdp_cfg sm8450_mdp = { .name = "top_0", .base = 0x0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x2ac, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x2b4, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x2bc, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0x2c4, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x2ac, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x2b4, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x2bc, .bit_off = 8 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2c4, .bit_off = 8 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +13
-11@@ -28,17 +28,19 @@ static const struct dpu_mdp_cfg sm8550_mdp = { .name = "top_0", .base = 0, .len = 0x494, .features = BIT(DPU_MDP_PERIPH_0_REMOVED), - .clk_ctrls[DPU_CLK_CTRL_VIG0] = { .reg_off = 0x4330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG1] = { .reg_off = 0x6330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG2] = { .reg_off = 0x8330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_VIG3] = { .reg_off = 0xa330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA0] = { .reg_off = 0x24330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA1] = { .reg_off = 0x26330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA2] = { .reg_off = 0x28330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2a330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA4] = { .reg_off = 0x2c330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_DMA5] = { .reg_off = 0x2e330, .bit_off = 0 }, - .clk_ctrls[DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + .clk_ctrls = { + [DPU_CLK_CTRL_VIG0] = { .reg_off = 0x4330, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG1] = { .reg_off = 0x6330, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG2] = { .reg_off = 0x8330, .bit_off = 0 }, + [DPU_CLK_CTRL_VIG3] = { .reg_off = 0xa330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA0] = { .reg_off = 0x24330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA1] = { .reg_off = 0x26330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA2] = { .reg_off = 0x28330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA3] = { .reg_off = 0x2a330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA4] = { .reg_off = 0x2c330, .bit_off = 0 }, + [DPU_CLK_CTRL_DMA5] = { .reg_off = 0x2e330, .bit_off = 0 }, + [DPU_CLK_CTRL_REG_DMA] = { .reg_off = 0x2bc, .bit_off = 20 }, + }, };/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ Signature · 1 line
2.39.2
PATCH v3 7/19 drm/msm/dpu: drop zero features from dpu_mdp_cfg data
In reply to Dmitry BaryshkovDrop useless zero assignments to the dpu_mdp_cfg::features field.
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 1 - 7 files changed, 7 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +0 -1
@@ -28,7 +28,6 @@ static const struct dpu_ubwc_cfg sm8250_ubwc_cfg = {static const struct dpu_mdp_cfg sm8250_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_VIG1 ] = { .reg_off =0x2b4 , .bit_off =0 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +0 -1
@@ -25,7 +25,6 @@ static const struct dpu_ubwc_cfg sc7180_ubwc_cfg = {static const struct dpu_mdp_cfg sc7180_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +0 -1
@@ -26,7 +26,6 @@ static const struct dpu_ubwc_cfg sm6115_ubwc_cfg = {static const struct dpu_mdp_cfg sm6115_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +0 -1
@@ -28,7 +28,6 @@ static const struct dpu_ubwc_cfg sm6350_ubwc_cfg = {static const struct dpu_mdp_cfg sm6350_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +0 -1
@@ -23,7 +23,6 @@ static const struct dpu_ubwc_cfg qcm2290_ubwc_cfg = {static const struct dpu_mdp_cfg qcm2290_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +0 -1
@@ -27,7 +27,6 @@ static const struct dpu_ubwc_cfg sm6375_ubwc_cfg = {static const struct dpu_mdp_cfg sm6375_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +0 -1
@@ -27,7 +27,6 @@ static const struct dpu_ubwc_cfg sm8350_ubwc_cfg = {static const struct dpu_mdp_cfg sm8350_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_VIG1 ] = { .reg_off =0x2b4 , .bit_off =0 },
Signature · 1 line
2.39.2
Re: [PATCH v3 07/19] drm/msm/dpu: drop zero features from dpu_mdp_cfg data
Quoted 3 lines · Dmitry Baryshkov
Drop useless zero assignments to the
dpu_mdp_cfg::featuresfield.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 97 lines
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 1 - drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 1 - 7 files changed, 7 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +0
-1@@ -28,7 +28,6 @@ static const struct dpu_ubwc_cfg sm8250_ubwc_cfg = {static const struct dpu_mdp_cfg sm8250_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_VIG1 ] = { .reg_off =0x2b4 , .bit_off =0 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +0
-1@@ -25,7 +25,6 @@ static const struct dpu_ubwc_cfg sc7180_ubwc_cfg = {static const struct dpu_mdp_cfg sc7180_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +0
-1@@ -26,7 +26,6 @@ static const struct dpu_ubwc_cfg sm6115_ubwc_cfg = {static const struct dpu_mdp_cfg sm6115_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +0
-1@@ -28,7 +28,6 @@ static const struct dpu_ubwc_cfg sm6350_ubwc_cfg = {static const struct dpu_mdp_cfg sm6350_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +0
-1@@ -23,7 +23,6 @@ static const struct dpu_ubwc_cfg qcm2290_ubwc_cfg = {static const struct dpu_mdp_cfg qcm2290_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +0
-1@@ -27,7 +27,6 @@ static const struct dpu_ubwc_cfg sm6375_ubwc_cfg = {static const struct dpu_mdp_cfg sm6375_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_DMA0 ] = { .reg_off =0x2ac , .bit_off =8 },drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +0
-1@@ -27,7 +27,6 @@ static const struct dpu_ubwc_cfg sm8350_ubwc_cfg = {static const struct dpu_mdp_cfg sm8350_mdp = { .name ="top_0" , .base =0x0 , .len =0x494 , - .features =0 , .clk_ctrls = { [DPU_CLK_CTRL_VIG0 ] = { .reg_off =0x2ac , .bit_off =0 }, [DPU_CLK_CTRL_VIG1 ] = { .reg_off =0x2b4 , .bit_off =0 },Signature · 1 line
2.39.2
PATCH v3 8/19 drm/msm/dpu: drop zero features from dpu_ctl_cfg data
In reply to Dmitry BaryshkovDrop useless zero assignments to the dpu_ctl_cfg::features field.
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 3 --- 2 files changed, 6 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +0 -3
@@ -54,7 +54,6 @@ static const struct dpu_ctl_cfg msm8998_ctl[] = { { .name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x94, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {
@@ -66,13 +65,11 @@ static const struct dpu_ctl_cfg msm8998_ctl[] = { { .name = "ctl_3", .id = CTL_3, .base = 0x1600, .len = 0x94, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), }, { .name = "ctl_4", .id = CTL_4, .base = 0x1800, .len = 0x94, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +0 -3
@@ -58,19 +58,16 @@ static const struct dpu_ctl_cfg sdm845_ctl[] = { { .name = "ctl_2", .id = CTL_2, .base = 0x1400, .len = 0xe4, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), }, { .name = "ctl_3", .id = CTL_3, .base = 0x1600, .len = 0xe4, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), }, { .name = "ctl_4", .id = CTL_4, .base = 0x1800, .len = 0xe4, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), }, };
Signature · 1 line
2.39.2
Re: [PATCH v3 08/19] drm/msm/dpu: drop zero features from dpu_ctl_cfg data
Quoted 3 lines · Dmitry Baryshkov
Drop useless zero assignments to the
dpu_ctl_cfg::featuresfield.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 58 lines
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 3 --- 2 files changed, 6 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +0
-3@@ -54,7 +54,6 @@ static const struct dpu_ctl_cfg msm8998_ctl[] = { { .name = "ctl_1", .id = CTL_1, .base = 0x1200, .len = 0x94, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 10), }, {@@ -66,13 +65,11 @@ static const struct dpu_ctl_cfg msm8998_ctl[] = { { .name = "ctl_3", .id = CTL_3, .base = 0x1600, .len = 0x94, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), }, { .name = "ctl_4", .id = CTL_4, .base = 0x1800, .len = 0x94, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +0
-3@@ -58,19 +58,16 @@ static const struct dpu_ctl_cfg sdm845_ctl[] = { { .name = "ctl_2", .id = CTL_2, .base = 0x1400, .len = 0xe4, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 11), }, { .name = "ctl_3", .id = CTL_3, .base = 0x1600, .len = 0xe4, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 12), }, { .name = "ctl_4", .id = CTL_4, .base = 0x1800, .len = 0xe4, - .features = 0, .intr_start = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR2, 13), }, };Signature · 1 line
2.39.2
PATCH v3 9/19 drm/msm/dpu: correct indentation for CTL definitions
In reply to Dmitry BaryshkovShift dpu_ctl_cfg contents to correct the indentation of CTL blocks. This is done in preparation to expanding the rest of hardware block defines, so that all blocks have similar indentation.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 46 +++++++------- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 46 +++++++------- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 30 +++++---- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 8 +-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 41 ++++++------ .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 8 +-- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 8 +-- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 41 ++++++------ .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 63 +++++++++---------- 15 files changed, 309 insertions(+), 360 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +21 -25
@@ -46,31 +46,27 @@ static const struct dpu_mdp_cfg msm8998_mdp = {static const struct dpu_ctl_cfg msm8998_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x94 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x94 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x94 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0x94 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x1800 , .len =0x94 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x94 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x94 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x94 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0x94 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x1800 , .len =0x94 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +21 -25
52 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +29 -34
69 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +29 -34
69 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +29 -34
69 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +14 -16
@@ -36,22 +36,20 @@ static const struct dpu_mdp_cfg sc7180_mdp = {static const struct dpu_ctl_cfg sc7180_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +4 -4
@@ -34,10 +34,10 @@ static const struct dpu_mdp_cfg sm6115_mdp = {static const struct dpu_ctl_cfg sm6115_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +19 -22
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +4 -4
@@ -31,10 +31,10 @@ static const struct dpu_mdp_cfg qcm2290_mdp = {static const struct dpu_ctl_cfg qcm2290_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +4 -4
@@ -35,10 +35,10 @@ static const struct dpu_mdp_cfg sm6375_mdp = {static const struct dpu_ctl_cfg sm6375_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +29 -34
69 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +19 -22
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +29 -34
69 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +29 -34
69 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +29 -34
69 lines not on this page · raw message
Signature · 1 line
2.39.2
Re: [PATCH v3 09/19] drm/msm/dpu: correct indentation for CTL definitions
Quoted 5 lines · Dmitry Baryshkov
Shift
dpu_ctl_cfgcontents to correct the indentation of CTL blocks. This is done in preparation to expanding the rest of hardware block defines, so that all blocks have similar indentation.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 855 lines
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 46 +++++++------- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 46 +++++++------- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 30 +++++---- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 8 +-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 41 ++++++------ .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 8 +-- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 8 +-- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 41 ++++++------ .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 63 +++++++++---------- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 63 +++++++++---------- 15 files changed, 309 insertions(+), 360 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +21
-25@@ -46,31 +46,27 @@ static const struct dpu_mdp_cfg msm8998_mdp = {static const struct dpu_ctl_cfg msm8998_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x94 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x94 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x94 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0x94 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x1800 , .len =0x94 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x94 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x94 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x94 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0x94 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x1800 , .len =0x94 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +21
-25@@ -44,31 +44,27 @@ static const struct dpu_mdp_cfg sdm845_mdp = {static const struct dpu_ctl_cfg sdm845_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0xe4 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0xe4 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0xe4 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0xe4 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x1800 , .len =0xe4 , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0xe4 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0xe4 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0xe4 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0xe4 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x1800 , .len =0xe4 , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +29
-34@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8150_mdp = {/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ static const struct dpu_ctl_cfg sm8150_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x1800 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a00 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x1800 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a00 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +29
-34@@ -44,40 +44,35 @@ static const struct dpu_mdp_cfg sc8180x_mdp = {static const struct dpu_ctl_cfg sc8180x_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x1800 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a00 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x1800 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a00 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +29
-34@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8250_mdp = {/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ static const struct dpu_ctl_cfg sm8250_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x1800 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a00 , .len =0x1e0 , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ) |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x1800 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a00 , .len =0x1e0 , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +14
-16@@ -36,22 +36,20 @@ static const struct dpu_mdp_cfg sc7180_mdp = {static const struct dpu_ctl_cfg sc7180_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +4
-4@@ -34,10 +34,10 @@ static const struct dpu_mdp_cfg sm6115_mdp = {static const struct dpu_ctl_cfg sm6115_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +19
-22@@ -39,28 +39,25 @@ static const struct dpu_mdp_cfg sm6350_mdp = {static const struct dpu_ctl_cfg sm6350_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x1200 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x1400 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x1600 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x1200 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x1400 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x1600 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +4
-4@@ -31,10 +31,10 @@ static const struct dpu_mdp_cfg qcm2290_mdp = {static const struct dpu_ctl_cfg qcm2290_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +4
-4@@ -35,10 +35,10 @@ static const struct dpu_mdp_cfg sm6375_mdp = {static const struct dpu_ctl_cfg sm6375_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x1000 , .len =0x1dc , - .features =BIT (DPU_CTL_ACTIVE_CFG ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x1000 , .len =0x1dc , + .features =BIT (DPU_CTL_ACTIVE_CFG ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +29
-34@@ -43,40 +43,35 @@ static const struct dpu_mdp_cfg sm8350_mdp = {/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ static const struct dpu_ctl_cfg sm8350_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x15000 , .len =0x1e8 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x16000 , .len =0x1e8 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x17000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x18000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x19000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x15000 , .len =0x1e8 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x16000 , .len =0x1e8 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x17000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x18000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x19000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +19
-22@@ -37,28 +37,25 @@ static const struct dpu_mdp_cfg sc7280_mdp = {static const struct dpu_ctl_cfg sc7280_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x15000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x16000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x17000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x18000 , .len =0x1e8 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x15000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x16000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x17000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x18000 , .len =0x1e8 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +29
-34@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sc8280xp_mdp = {/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ static const struct dpu_ctl_cfg sc8280xp_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x15000 , .len =0x204 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x16000 , .len =0x204 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x17000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x18000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x19000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x15000 , .len =0x204 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x16000 , .len =0x204 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x17000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x18000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x19000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +29
-34@@ -45,40 +45,35 @@ static const struct dpu_mdp_cfg sm8450_mdp = {/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ static const struct dpu_ctl_cfg sm8450_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x15000 , .len =0x204 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x16000 , .len =0x204 , - .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x17000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x18000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x19000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a000 , .len =0x204 , - .features =CTL_SC7280_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x15000 , .len =0x204 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x16000 , .len =0x204 , + .features =BIT (DPU_CTL_SPLIT_DISPLAY ) |CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x17000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x18000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x19000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a000 , .len =0x204 , + .features =CTL_SC7280_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +29
-34@@ -46,40 +46,35 @@ static const struct dpu_mdp_cfg sm8550_mdp = {/* FIXME: get rid of DPU_CTL_SPLIT_DISPLAY in favour of proper ACTIVE_CTL support */ static const struct dpu_ctl_cfg sm8550_ctl[] = { { - .name ="ctl_0" , .id =CTL_0 , - .base =0x15000 , .len =0x290 , - .features =CTL_SM8550_MASK |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), - }, - { - .name ="ctl_1" , .id =CTL_1 , - .base =0x16000 , .len =0x290 , - .features =CTL_SM8550_MASK |BIT (DPU_CTL_SPLIT_DISPLAY ), - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), - }, - { - .name ="ctl_2" , .id =CTL_2 , - .base =0x17000 , .len =0x290 , - .features =CTL_SM8550_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), - }, - { - .name ="ctl_3" , .id =CTL_3 , - .base =0x18000 , .len =0x290 , - .features =CTL_SM8550_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), - }, - { - .name ="ctl_4" , .id =CTL_4 , - .base =0x19000 , .len =0x290 , - .features =CTL_SM8550_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), - }, - { - .name ="ctl_5" , .id =CTL_5 , - .base =0x1a000 , .len =0x290 , - .features =CTL_SM8550_MASK , - .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), + .name ="ctl_0" , .id =CTL_0 , + .base =0x15000 , .len =0x290 , + .features =CTL_SM8550_MASK |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,9 ), + }, { + .name ="ctl_1" , .id =CTL_1 , + .base =0x16000 , .len =0x290 , + .features =CTL_SM8550_MASK |BIT (DPU_CTL_SPLIT_DISPLAY ), + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,10 ), + }, { + .name ="ctl_2" , .id =CTL_2 , + .base =0x17000 , .len =0x290 , + .features =CTL_SM8550_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,11 ), + }, { + .name ="ctl_3" , .id =CTL_3 , + .base =0x18000 , .len =0x290 , + .features =CTL_SM8550_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,12 ), + }, { + .name ="ctl_4" , .id =CTL_4 , + .base =0x19000 , .len =0x290 , + .features =CTL_SM8550_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,13 ), + }, { + .name ="ctl_5" , .id =CTL_5 , + .base =0x1a000 , .len =0x290 , + .features =CTL_SM8550_MASK , + .intr_start =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR2 ,23 ), }, };Signature · 1 line
2.39.2
PATCH v3 10/19 drm/msm/dpu: inline SSPP_BLK macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 41 +++++-- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 21 +++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 41 +++++-- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 21 +++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 21 +++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 41 +++++-- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 81 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 101 ++++++++++++++---- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 12 --- 16 files changed, 751 insertions(+), 196 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +65 -16
@@ -71,22 +71,71 @@ static const struct dpu_ctl_cfg msm8998_ctl[] = { };static const struct dpu_sspp_cfg msm8998_sspp[] = { -SSPP_BLK ("sspp_0" ,SSPP_VIG0 ,0x4000 ,0x1ac ,VIG_MSM8998_MASK , - msm8998_vig_sblk_0,0 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG0 ), -SSPP_BLK ("sspp_1" ,SSPP_VIG1 ,0x6000 ,0x1ac ,VIG_MSM8998_MASK , - msm8998_vig_sblk_1,4 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG1 ), -SSPP_BLK ("sspp_2" ,SSPP_VIG2 ,0x8000 ,0x1ac ,VIG_MSM8998_MASK , - msm8998_vig_sblk_2,8 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG2 ), -SSPP_BLK ("sspp_3" ,SSPP_VIG3 ,0xa000 ,0x1ac ,VIG_MSM8998_MASK , - msm8998_vig_sblk_3,12 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG3 ), -SSPP_BLK ("sspp_8" ,SSPP_DMA0 ,0x24000 ,0x1ac ,DMA_MSM8998_MASK , - sdm845_dma_sblk_0,1 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA0 ), -SSPP_BLK ("sspp_9" ,SSPP_DMA1 ,0x26000 ,0x1ac ,DMA_MSM8998_MASK , - sdm845_dma_sblk_1,5 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA1 ), -SSPP_BLK ("sspp_10" ,SSPP_DMA2 ,0x28000 ,0x1ac ,DMA_CURSOR_MSM8998_MASK , - sdm845_dma_sblk_2,9 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA2 ), -SSPP_BLK ("sspp_11" ,SSPP_DMA3 ,0x2a000 ,0x1ac ,DMA_CURSOR_MSM8998_MASK , - sdm845_dma_sblk_3,13 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA3 ), + { + .name ="sspp_0" , .id =SSPP_VIG0 , + .base =0x4000 , .len =0x1ac , + .features =VIG_MSM8998_MASK , + .sblk = &msm8998_vig_sblk_0, + .xin_id =0 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG0 , + }, { + .name ="sspp_1" , .id =SSPP_VIG1 , + .base =0x6000 , .len =0x1ac , + .features =VIG_MSM8998_MASK , + .sblk = &msm8998_vig_sblk_1, + .xin_id =4 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG1 , + }, { + .name ="sspp_2" , .id =SSPP_VIG2 , + .base =0x8000 , .len =0x1ac , + .features =VIG_MSM8998_MASK , + .sblk = &msm8998_vig_sblk_2, + .xin_id =8 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG2 , + }, { + .name ="sspp_3" , .id =SSPP_VIG3 , + .base =0xa000 , .len =0x1ac , + .features =VIG_MSM8998_MASK , + .sblk = &msm8998_vig_sblk_3, + .xin_id =12 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG3 , + }, { + .name ="sspp_8" , .id =SSPP_DMA0 , + .base =0x24000 , .len =0x1ac , + .features =DMA_MSM8998_MASK , + .sblk = &sdm845_dma_sblk_0, + .xin_id =1 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA0 , + }, { + .name ="sspp_9" , .id =SSPP_DMA1 , + .base =0x26000 , .len =0x1ac , + .features =DMA_MSM8998_MASK , + .sblk = &sdm845_dma_sblk_1, + .xin_id =5 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA1 , + }, { + .name ="sspp_10" , .id =SSPP_DMA2 , + .base =0x28000 , .len =0x1ac , + .features =DMA_CURSOR_MSM8998_MASK , + .sblk = &sdm845_dma_sblk_2, + .xin_id =9 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA2 , + }, { + .name ="sspp_11" , .id =SSPP_DMA3 , + .base =0x2a000 , .len =0x1ac , + .features =DMA_CURSOR_MSM8998_MASK , + .sblk = &sdm845_dma_sblk_3, + .xin_id =13 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA3 , + }, };static const struct dpu_lm_cfg msm8998_lm[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +33 -8
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +17 -4
@@ -42,10 +42,23 @@ static const struct dpu_ctl_cfg sm6115_ctl[] = { };static const struct dpu_sspp_cfg sm6115_sspp[] = { -SSPP_BLK ("sspp_0" ,SSPP_VIG0 ,0x4000 ,0x1f8 ,VIG_SC7180_MASK , - sm6115_vig_sblk_0,0 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG0 ), -SSPP_BLK ("sspp_8" ,SSPP_DMA0 ,0x24000 ,0x1f8 ,DMA_SDM845_MASK , - sdm845_dma_sblk_0,1 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA0 ), + { + .name ="sspp_0" , .id =SSPP_VIG0 , + .base =0x4000 , .len =0x1f8 , + .features =VIG_SC7180_MASK , + .sblk = &sm6115_vig_sblk_0, + .xin_id =0 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG0 , + }, { + .name ="sspp_8" , .id =SSPP_DMA0 , + .base =0x24000 , .len =0x1f8 , + .features =DMA_SDM845_MASK , + .sblk = &sdm845_dma_sblk_0, + .xin_id =1 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA0 , + }, };static const struct dpu_lm_cfg sm6115_lm[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +33 -8
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +17 -4
@@ -39,10 +39,23 @@ static const struct dpu_ctl_cfg qcm2290_ctl[] = { };static const struct dpu_sspp_cfg qcm2290_sspp[] = { -SSPP_BLK ("sspp_0" ,SSPP_VIG0 ,0x4000 ,0x1f8 ,VIG_QCM2290_MASK , - qcm2290_vig_sblk_0,0 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG0 ), -SSPP_BLK ("sspp_8" ,SSPP_DMA0 ,0x24000 ,0x1f8 ,DMA_SDM845_MASK , - qcm2290_dma_sblk_0,1 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA0 ), + { + .name ="sspp_0" , .id =SSPP_VIG0 , + .base =0x4000 , .len =0x1f8 , + .features =VIG_QCM2290_MASK , + .sblk = &qcm2290_vig_sblk_0, + .xin_id =0 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG0 , + }, { + .name ="sspp_8" , .id =SSPP_DMA0 , + .base =0x24000 , .len =0x1f8 , + .features =DMA_SDM845_MASK , + .sblk = &qcm2290_dma_sblk_0, + .xin_id =1 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA0 , + }, };static const struct dpu_lm_cfg qcm2290_lm[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +17 -4
@@ -43,10 +43,23 @@ static const struct dpu_ctl_cfg sm6375_ctl[] = { };static const struct dpu_sspp_cfg sm6375_sspp[] = { -SSPP_BLK ("sspp_0" ,SSPP_VIG0 ,0x4000 ,0x1f8 ,VIG_SC7180_MASK , - sm6115_vig_sblk_0,0 ,SSPP_TYPE_VIG ,DPU_CLK_CTRL_VIG0 ), -SSPP_BLK ("sspp_8" ,SSPP_DMA0 ,0x24000 ,0x1f8 ,DMA_SDM845_MASK , - sdm845_dma_sblk_0,1 ,SSPP_TYPE_DMA ,DPU_CLK_CTRL_DMA0 ), + { + .name ="sspp_0" , .id =SSPP_VIG0 , + .base =0x4000 , .len =0x1f8 , + .features =VIG_SC7180_MASK , + .sblk = &sm6115_vig_sblk_0, + .xin_id =0 , + .type =SSPP_TYPE_VIG , + .clk_ctrl =DPU_CLK_CTRL_VIG0 , + }, { + .name ="sspp_8" , .id =SSPP_DMA0 , + .base =0x24000 , .len =0x1f8 , + .features =DMA_SDM845_MASK , + .sblk = &sdm845_dma_sblk_0, + .xin_id =1 , + .type =SSPP_TYPE_DMA , + .clk_ctrl =DPU_CLK_CTRL_DMA0 , + }, };static const struct dpu_lm_cfg sm6375_lm[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +33 -8
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +65 -16
87 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +81 -20
107 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -12
@@ -328,18 +328,6 @@ static const struct dpu_sspp_sub_blks sdm845_dma_sblk_1 = _DMA_SBLK("9", 2);static const struct dpu_sspp_sub_blks sdm845_dma_sblk_2 =_DMA_SBLK ("10" ,3 );static const struct dpu_sspp_sub_blks sdm845_dma_sblk_3 =_DMA_SBLK ("11" ,4 ); -#define SSPP_BLK (_name, _id, _base, _len, _features, \ - _sblk, _xinid, _type, _clkctrl) \ - { \ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \ - .sblk = &_sblk, \ - .xin_id = _xinid, \ - .type = _type, \ - .clk_ctrl = _clkctrl \ - } -static const struct dpu_sspp_sub_blks sc7180_vig_sblk_0 =_VIG_SBLK ("0" ,4 ,DPU_SSPP_SCALER_QSEED4 );
Signature · 1 line
2.39.2
PATCH v3 11/19 drm/msm/dpu: inline DSPP_BLK macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 15 +++++++--- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 8 +++-- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 8 +++-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 8 +++-- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 8 +++-- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 8 +++-- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 8 +++-- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 29 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 29 ++++++++++++++----- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 8 ----- 16 files changed, 215 insertions(+), 88 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +11 -4
@@ -174,10 +174,17 @@ static const struct dpu_dsc_cfg msm8998_dsc[] = { };static const struct dpu_dspp_cfg msm8998_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &msm8998_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &msm8998_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &msm8998_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &msm8998_dspp_sblk, + }, };static const struct dpu_intf_cfg msm8998_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +21 -8
@@ -152,14 +152,27 @@ static const struct dpu_lm_cfg sdm845_lm[] = { };static const struct dpu_dspp_cfg sdm845_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sdm845_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +21 -8
@@ -161,14 +161,27 @@ static const struct dpu_lm_cfg sm8150_lm[] = { };static const struct dpu_dspp_cfg sm8150_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm8150_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +21 -8
@@ -160,14 +160,27 @@ static const struct dpu_lm_cfg sc8180x_lm[] = { };static const struct dpu_dspp_cfg sc8180x_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sc8180x_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +21 -8
@@ -161,14 +161,27 @@ static const struct dpu_lm_cfg sm8250_lm[] = { };static const struct dpu_dspp_cfg sm8250_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm8250_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +6 -2
@@ -97,8 +97,12 @@ static const struct dpu_lm_cfg sc7180_lm[] = { };static const struct dpu_dspp_cfg sc7180_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sc7180_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +6 -2
@@ -67,8 +67,12 @@ static const struct dpu_lm_cfg sm6115_lm[] = { };static const struct dpu_dspp_cfg sm6115_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm6115_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +6 -2
@@ -105,8 +105,12 @@ static const struct dpu_lm_cfg sm6350_lm[] = { };static const struct dpu_dspp_cfg sm6350_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static struct dpu_pingpong_cfg sm6350_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +6 -2
@@ -64,8 +64,12 @@ static const struct dpu_lm_cfg qcm2290_lm[] = { };static const struct dpu_dspp_cfg qcm2290_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg qcm2290_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +6 -2
@@ -68,8 +68,12 @@ static const struct dpu_lm_cfg sm6375_lm[] = { };static const struct dpu_dspp_cfg sm6375_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm6375_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +21 -8
@@ -159,14 +159,27 @@ static const struct dpu_lm_cfg sm8350_lm[] = { };static const struct dpu_dspp_cfg sm8350_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm8350_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +6 -2
@@ -105,8 +105,12 @@ static const struct dpu_lm_cfg sc7280_lm[] = { };static const struct dpu_dspp_cfg sc7280_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sc7280_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +21 -8
@@ -155,14 +155,27 @@ static const struct dpu_lm_cfg sc8280xp_lm[] = { };static const struct dpu_dspp_cfg sc8280xp_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sc8280xp_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +21 -8
@@ -161,14 +161,27 @@ static const struct dpu_lm_cfg sm8450_lm[] = { };static const struct dpu_dspp_cfg sm8450_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm8450_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +21 -8
@@ -178,14 +178,27 @@ static const struct dpu_lm_cfg sm8550_lm[] = { };static const struct dpu_dspp_cfg sm8550_dspp[] = { -DSPP_BLK ("dspp_0" ,DSPP_0 ,0x54000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_1" ,DSPP_1 ,0x56000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_2" ,DSPP_2 ,0x58000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), -DSPP_BLK ("dspp_3" ,DSPP_3 ,0x5a000 ,DSPP_SC7180_MASK , - &sm8150_dspp_sblk), + { + .name ="dspp_0" , .id =DSPP_0 , + .base =0x54000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_1" , .id =DSPP_1 , + .base =0x56000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_2" , .id =DSPP_2 , + .base =0x58000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, { + .name ="dspp_3" , .id =DSPP_3 , + .base =0x5a000 , .len =0x1800 , + .features =DSPP_SC7180_MASK , + .sblk = &sm8150_dspp_sblk, + }, };static const struct dpu_pingpong_cfg sm8550_pp[] = { PP_BLK_DITHER("pingpong_0", PINGPONG_0, 0x69000, MERGE_3D_0, sc7280_pp_sblk,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -8
@@ -441,14 +441,6 @@ static const struct dpu_dspp_sub_blks sm8150_dspp_sblk = { .len = 0x90, .version = 0x40000}, }; -#define DSPP_BLK (_name, _id, _base, _mask, _sblk) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0x1800, \ - .features = _mask, \ - .sblk = _sblk \ - } -/************************************************************* * PINGPONG sub blocks config *************************************************************/
Signature · 1 line
2.39.2
PATCH v3 12/19 drm/msm/dpu: inline LM_BLK macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 55 +++++++++++++---- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 57 ++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 57 ++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 57 ++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 57 ++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 20 +++++-- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 10 +++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 21 +++++-- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 10 +++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 11 +++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 57 ++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 28 +++++++-- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 53 +++++++++++++++-- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 59 +++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 57 ++++++++++++++---- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 11 ---- 16 files changed, 487 insertions(+), 133 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +43 -12
@@ -139,18 +139,49 @@ static const struct dpu_sspp_cfg msm8998_sspp[] = { };static const struct dpu_lm_cfg msm8998_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_MSM8998_MASK , - &msm8998_lm_sblk,PINGPONG_0 ,LM_1 ,DSPP_0 ), -LM_BLK ("lm_1" ,LM_1 ,0x45000 ,MIXER_MSM8998_MASK , - &msm8998_lm_sblk,PINGPONG_1 ,LM_0 ,DSPP_1 ), -LM_BLK ("lm_2" ,LM_2 ,0x46000 ,MIXER_MSM8998_MASK , - &msm8998_lm_sblk,PINGPONG_2 ,LM_5 ,0 ), -LM_BLK ("lm_3" ,LM_3 ,0x47000 ,MIXER_MSM8998_MASK , - &msm8998_lm_sblk,PINGPONG_NONE ,0 ,0 ), -LM_BLK ("lm_4" ,LM_4 ,0x48000 ,MIXER_MSM8998_MASK , - &msm8998_lm_sblk,PINGPONG_NONE ,0 ,0 ), -LM_BLK ("lm_5" ,LM_5 ,0x49000 ,MIXER_MSM8998_MASK , - &msm8998_lm_sblk,PINGPONG_3 ,LM_2 ,0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_MSM8998_MASK , + .sblk = &msm8998_lm_sblk, + .lm_pair =LM_1 , + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, { + .name ="lm_1" , .id =LM_1 , + .base =0x45000 , .len =0x320 , + .features =MIXER_MSM8998_MASK , + .sblk = &msm8998_lm_sblk, + .lm_pair =LM_0 , + .pingpong =PINGPONG_1 , + .dspp =DSPP_1 , + }, { + .name ="lm_2" , .id =LM_2 , + .base =0x46000 , .len =0x320 , + .features =MIXER_MSM8998_MASK , + .sblk = &msm8998_lm_sblk, + .lm_pair =LM_5 , + .pingpong =PINGPONG_2 , + }, { + .name ="lm_3" , .id =LM_3 , + .base =0x47000 , .len =0x320 , + .features =MIXER_MSM8998_MASK , + .sblk = &msm8998_lm_sblk, + .pingpong =PINGPONG_NONE , + }, { + .name ="lm_4" , .id =LM_4 , + .base =0x48000 , .len =0x320 , + .features =MIXER_MSM8998_MASK , + .sblk = &msm8998_lm_sblk, + .pingpong =PINGPONG_NONE , + }, { + .name ="lm_5" , .id =LM_5 , + .base =0x49000 , .len =0x320 , + .features =MIXER_MSM8998_MASK , + .sblk = &msm8998_lm_sblk, + .lm_pair =LM_2 , + .pingpong =PINGPONG_3 , + }, };static const struct dpu_pingpong_cfg msm8998_pp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +45 -12
63 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +45 -12
63 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +45 -12
63 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +45 -12
63 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +16 -4
@@ -90,10 +90,22 @@ static const struct dpu_sspp_cfg sc7180_sspp[] = { };static const struct dpu_lm_cfg sc7180_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_0 ,LM_1 ,DSPP_0 ), -LM_BLK ("lm_1" ,LM_1 ,0x45000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_1 ,LM_0 ,0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .lm_pair =LM_1 , + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, { + .name ="lm_1" , .id =LM_1 , + .base =0x45000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .lm_pair =LM_0 , + .pingpong =PINGPONG_1 , + }, };static const struct dpu_dspp_cfg sc7180_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +8 -2
@@ -62,8 +62,14 @@ static const struct dpu_sspp_cfg sm6115_sspp[] = { };static const struct dpu_lm_cfg sm6115_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_QCM2290_MASK , - &qcm2290_lm_sblk,PINGPONG_0 ,0 ,DSPP_0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_QCM2290_MASK , + .sblk = &qcm2290_lm_sblk, + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, };static const struct dpu_dspp_cfg sm6115_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +17 -4
@@ -98,10 +98,23 @@ static const struct dpu_sspp_cfg sm6350_sspp[] = { };static const struct dpu_lm_cfg sm6350_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_0 ,LM_1 ,DSPP_0 ), -LM_BLK ("lm_1" ,LM_1 ,0x45000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_1 ,LM_0 ,0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .lm_pair =LM_1 , + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, { + .name ="lm_1" , .id =LM_1 , + .base =0x45000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .lm_pair =LM_0 , + .pingpong =PINGPONG_1 , + .dspp =0 , + }, };static const struct dpu_dspp_cfg sm6350_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +8 -2
@@ -59,8 +59,14 @@ static const struct dpu_sspp_cfg qcm2290_sspp[] = { };static const struct dpu_lm_cfg qcm2290_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_QCM2290_MASK , - &qcm2290_lm_sblk,PINGPONG_0 ,0 ,DSPP_0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_QCM2290_MASK , + .sblk = &qcm2290_lm_sblk, + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, };static const struct dpu_dspp_cfg qcm2290_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +9 -2
@@ -63,8 +63,15 @@ static const struct dpu_sspp_cfg sm6375_sspp[] = { };static const struct dpu_lm_cfg sm6375_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_QCM2290_MASK , - &qcm2290_lm_sblk,PINGPONG_0 ,0 ,DSPP_0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_QCM2290_MASK , + .sblk = &qcm2290_lm_sblk, + .lm_pair =0 , + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, };static const struct dpu_dspp_cfg sm6375_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +45 -12
63 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +22 -6
@@ -96,12 +96,28 @@ static const struct dpu_sspp_cfg sc7280_sspp[] = { };static const struct dpu_lm_cfg sc7280_lm[] = { -LM_BLK ("lm_0" ,LM_0 ,0x44000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_0 ,0 ,DSPP_0 ), -LM_BLK ("lm_2" ,LM_2 ,0x46000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_2 ,LM_3 ,0 ), -LM_BLK ("lm_3" ,LM_3 ,0x47000 ,MIXER_SDM845_MASK , - &sc7180_lm_sblk,PINGPONG_3 ,LM_2 ,0 ), + { + .name ="lm_0" , .id =LM_0 , + .base =0x44000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .pingpong =PINGPONG_0 , + .dspp =DSPP_0 , + }, { + .name ="lm_2" , .id =LM_2 , + .base =0x46000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .lm_pair =LM_3 , + .pingpong =PINGPONG_2 , + }, { + .name ="lm_3" , .id =LM_3 , + .base =0x47000 , .len =0x320 , + .features =MIXER_SDM845_MASK , + .sblk = &sc7180_lm_sblk, + .lm_pair =LM_2 , + .pingpong =PINGPONG_3 , + }, };static const struct dpu_dspp_cfg sc7280_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +47 -6
59 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +47 -12
65 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +45 -12
63 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -11
@@ -375,17 +375,6 @@ static const struct dpu_sspp_sub_blks qcm2290_dma_sblk_0 = _DMA_SBLK("8", 1);* MIXER sub blocks config *************************************************************/ -#define LM_BLK (_name, _id, _base, _fmask, _sblk, _pp, _lmpair, _dspp) \ - { \ - .name = _name, .id = _id, \ - .base = _base, .len = 0x320, \ - .features = _fmask, \ - .sblk = _sblk, \ - .pingpong = _pp, \ - .lm_pair = _lmpair, \ - .dspp = _dspp \ - } -/* MSM8998 */ static const struct dpu_lm_sub_blks msm8998_lm_sblk = {
Signature · 1 line
2.39.2
PATCH v3 13/19 drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 11 +++++- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 17 +++++++-- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 21 +++++++++-- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 31 +++++++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 21 +++++++++-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 6 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 6 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 25 +++++++++++-- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 7 +++- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 37 ++++++++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 25 +++++++++++-- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 25 +++++++++++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 15 -------- 13 files changed, 191 insertions(+), 56 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +9 -2
@@ -200,8 +200,15 @@ static const struct dpu_pingpong_cfg msm8998_pp[] = { };static const struct dpu_dsc_cfg msm8998_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,0 ), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,0 ), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =0 , + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =0 , + }, };static const struct dpu_dspp_cfg msm8998_dspp[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +13 -4
@@ -224,10 +224,19 @@ static const struct dpu_pingpong_cfg sdm845_pp[] = { };static const struct dpu_dsc_cfg sdm845_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,0 ), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,0 ), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,0 ), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,0 ), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + }, };static const struct dpu_intf_cfg sdm845_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +17 -4
@@ -245,10 +245,23 @@ static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { };static const struct dpu_dsc_cfg sm8150_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm8150_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +25 -6
@@ -244,12 +244,31 @@ static const struct dpu_merge_3d_cfg sc8180x_merge_3d[] = { };static const struct dpu_dsc_cfg sc8180x_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_4" ,DSC_4 ,0x81000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_5" ,DSC_5 ,0x81400 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_4" , .id =DSC_4 , + .base =0x81000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_5" , .id =DSC_5 , + .base =0x81400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sc8180x_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +17 -4
@@ -245,10 +245,23 @@ static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { };static const struct dpu_dsc_cfg sm8250_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm8250_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +5 -1
@@ -136,7 +136,11 @@ static struct dpu_pingpong_cfg sm6350_pp[] = { };static const struct dpu_dsc_cfg sm6350_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm6350_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +5 -1
@@ -90,7 +90,11 @@ static const struct dpu_pingpong_cfg sm6375_pp[] = { };static const struct dpu_dsc_cfg sm6375_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm6375_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +21 -4
@@ -248,10 +248,27 @@ static const struct dpu_merge_3d_cfg sm8350_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8350_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8350_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +6 -1
@@ -146,7 +146,12 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {/* NOTE: sc7280 only has one DSC hard slice encoder */ static const struct dpu_dsc_cfg sc7280_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, };static const struct dpu_wb_cfg sc7280_wb[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +31 -6
@@ -246,12 +246,37 @@ static const struct dpu_merge_3d_cfg sc8280xp_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sc8280xp_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), -DSC_BLK_1_2 ("dce_2_0" ,DSC_4 ,0x82000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_2_1" ,DSC_5 ,0x82000 ,0x29c ,0 , dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_2_0" , .id =DSC_4 , + .base =0x82000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_2_1" , .id =DSC_5 , + .base =0x82000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, };/* TODO: INTF 3, 8 and 7 are used for MST, marked as INTF_NONE for now */
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +21 -4
@@ -259,10 +259,27 @@ static const struct dpu_merge_3d_cfg sm8450_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8450_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8450_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +21 -4
@@ -273,10 +273,27 @@ static const struct dpu_merge_3d_cfg sm8550_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8550_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8550_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -15
@@ -495,21 +495,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .ctl = {.base = 0xF80, .len = 0x10}, }; -#define DSC_BLK (_name, _id, _base, _features) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0x140, \ - .features = _features, \ - } - -#define DSC_BLK_1_2 (_name, _id, _base, _len, _features, _sblk) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = BIT(DPU_DSC_HW_REV_1_2) | _features, \ - .sblk = &_sblk, \ - } -/************************************************************* * INTF sub blocks config *************************************************************/
Signature · 1 line
2.39.2
Marijn Suijten
reviewerRe: [PATCH v3 13/19] drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros
Quoted 26 lines · Dmitry Baryshkov
To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
Signed-off-by Dmitry Baryshkov <[email protected]>--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 11 +++++- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 17 +++++++-- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 21 +++++++++-- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 31 +++++++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 21 +++++++++-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 6 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 6 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 25 +++++++++++-- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 7 +++- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 37 ++++++++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 25 +++++++++++-- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 25 +++++++++++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 15 -------- 13 files changed, 191 insertions(+), 56 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +0
-0
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h static const struct dpu_pingpong_cfg msm8998_pp[] = { · line 205
Quoted 8 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +3
-2@@ -200,8 +200,15 @@ static const struct dpu_pingpong_cfg msm8998_pp[] = { };static const struct dpu_dsc_cfg msm8998_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,0 ), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,0 ), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 ,
This length (here and for all other DSC v1.1 blocks) was 0x140, why is it 0x1800 now?
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h static const struct dpu_pingpong_cfg msm8998_pp[] = { · line 210
Quoted 5 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +5
-0+ .features = 0, + }, { + .name = "dsc_1", .id = DSC_1, + .base = 0x80400, .len = 0x1800, + .features = 0,
Seems you forgot to drop the zero features from MSM8998 :)
- Marijn
Quoted 375 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +1
-0+ }, };static const struct dpu_dspp_cfg msm8998_dspp[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +13
-4@@ -224,10 +224,19 @@ static const struct dpu_pingpong_cfg sdm845_pp[] = { };static const struct dpu_dsc_cfg sdm845_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,0 ), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,0 ), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,0 ), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,0 ), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + }, };static const struct dpu_intf_cfg sdm845_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +17
-4@@ -245,10 +245,23 @@ static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { };static const struct dpu_dsc_cfg sm8150_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm8150_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +25
-6@@ -244,12 +244,31 @@ static const struct dpu_merge_3d_cfg sc8180x_merge_3d[] = { };static const struct dpu_dsc_cfg sc8180x_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_4" ,DSC_4 ,0x81000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_5" ,DSC_5 ,0x81400 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_4" , .id =DSC_4 , + .base =0x81000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_5" , .id =DSC_5 , + .base =0x81400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sc8180x_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +17
-4@@ -245,10 +245,23 @@ static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { };static const struct dpu_dsc_cfg sm8250_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm8250_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +5
-1@@ -136,7 +136,11 @@ static struct dpu_pingpong_cfg sm6350_pp[] = { };static const struct dpu_dsc_cfg sm6350_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm6350_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +5
-1@@ -90,7 +90,11 @@ static const struct dpu_pingpong_cfg sm6375_pp[] = { };static const struct dpu_dsc_cfg sm6375_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm6375_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +21
-4@@ -248,10 +248,27 @@ static const struct dpu_merge_3d_cfg sm8350_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8350_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8350_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +6
-1@@ -146,7 +146,12 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {/* NOTE: sc7280 only has one DSC hard slice encoder */ static const struct dpu_dsc_cfg sc7280_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, };static const struct dpu_wb_cfg sc7280_wb[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +31
-6@@ -246,12 +246,37 @@ static const struct dpu_merge_3d_cfg sc8280xp_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sc8280xp_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), -DSC_BLK_1_2 ("dce_2_0" ,DSC_4 ,0x82000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_2_1" ,DSC_5 ,0x82000 ,0x29c ,0 , dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_2_0" , .id =DSC_4 , + .base =0x82000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_2_1" , .id =DSC_5 , + .base =0x82000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, };/* TODO: INTF 3, 8 and 7 are used for MST, marked as INTF_NONE for now */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +21
-4@@ -259,10 +259,27 @@ static const struct dpu_merge_3d_cfg sm8450_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8450_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8450_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +21
-4@@ -273,10 +273,27 @@ static const struct dpu_merge_3d_cfg sm8550_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8550_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8550_intf[] = {drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-15@@ -495,21 +495,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .ctl = {.base = 0xF80, .len = 0x10}, }; -#define DSC_BLK (_name, _id, _base, _features) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0x140, \ - .features = _features, \ - } - -#define DSC_BLK_1_2 (_name, _id, _base, _len, _features, _sblk) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = BIT(DPU_DSC_HW_REV_1_2) | _features, \ - .sblk = &_sblk, \ - } -/************************************************************* * INTF sub blocks config *************************************************************/ Signature · 1 line
2.39.2
Re: [PATCH v3 13/19] drm/msm/dpu: inline DSC_BLK and DSC_BLK_1_2 macros
Quoted 29 lines · Marijn Suijten
Quoted 28 lines · Dmitry Baryshkov
To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
Signed-off-by Dmitry Baryshkov <[email protected]>--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 11 +++++- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 17 +++++++-- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 21 +++++++++-- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 31 +++++++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 21 +++++++++-- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 6 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 6 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 25 +++++++++++-- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 7 +++- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 37 ++++++++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 25 +++++++++++-- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 25 +++++++++++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 15 -------- 13 files changed, 191 insertions(+), 56 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +0
-0@@ -200,8 +200,15 @@ static const struct dpu_pingpong_cfg msm8998_pp[] = { };
Quoted 9 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h static const struct dpu_pingpong_cfg msm8998_pp[] = { · line 205
Quoted 6 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +3
-2static const struct dpu_dsc_cfg msm8998_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,0 ), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,0 ), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 ,This length (here and for all other DSC v1.1 blocks) was
0x140, why is it0x1800now?
Thanks for noticiing this, it seems it creeped from the regexp. I'll recheck this.
Quoted 386 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h static const struct dpu_pingpong_cfg msm8998_pp[] = { · line 210
Quoted 6 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +5
-0+ .features = 0, + }, { + .name = "dsc_1", .id = DSC_1, + .base = 0x80400, .len = 0x1800, + .features = 0,Seems you forgot to drop the zero features from MSM8998 :)
- Marijn
Quoted 375 lines
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +1
-0+ }, };static const struct dpu_dspp_cfg msm8998_dspp[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +13
-4@@ -224,10 +224,19 @@ static const struct dpu_pingpong_cfg sdm845_pp[] = { };static const struct dpu_dsc_cfg sdm845_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,0 ), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,0 ), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,0 ), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,0 ), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + }, };static const struct dpu_intf_cfg sdm845_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +17
-4@@ -245,10 +245,23 @@ static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { };static const struct dpu_dsc_cfg sm8150_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm8150_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +25
-6@@ -244,12 +244,31 @@ static const struct dpu_merge_3d_cfg sc8180x_merge_3d[] = { };static const struct dpu_dsc_cfg sc8180x_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_4" ,DSC_4 ,0x81000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_5" ,DSC_5 ,0x81400 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_4" , .id =DSC_4 , + .base =0x81000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_5" , .id =DSC_5 , + .base =0x81400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sc8180x_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +17
-4@@ -245,10 +245,23 @@ static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { };static const struct dpu_dsc_cfg sm8250_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_1" ,DSC_1 ,0x80400 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_2" ,DSC_2 ,0x80800 ,BIT (DPU_DSC_OUTPUT_CTRL )), -DSC_BLK ("dsc_3" ,DSC_3 ,0x80c00 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_1" , .id =DSC_1 , + .base =0x80400 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_2" , .id =DSC_2 , + .base =0x80800 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, { + .name ="dsc_3" , .id =DSC_3 , + .base =0x80c00 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm8250_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +5
-1@@ -136,7 +136,11 @@ static struct dpu_pingpong_cfg sm6350_pp[] = { };static const struct dpu_dsc_cfg sm6350_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm6350_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +5
-1@@ -90,7 +90,11 @@ static const struct dpu_pingpong_cfg sm6375_pp[] = { };static const struct dpu_dsc_cfg sm6375_dsc[] = { -DSC_BLK ("dsc_0" ,DSC_0 ,0x80000 ,BIT (DPU_DSC_OUTPUT_CTRL )), + { + .name ="dsc_0" , .id =DSC_0 , + .base =0x80000 , .len =0x1800 , + .features =BIT (DPU_DSC_OUTPUT_CTRL ), + }, };static const struct dpu_intf_cfg sm6375_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +21
-4@@ -248,10 +248,27 @@ static const struct dpu_merge_3d_cfg sm8350_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8350_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8350_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +6
-1@@ -146,7 +146,12 @@ static const struct dpu_pingpong_cfg sc7280_pp[] = {/* NOTE: sc7280 only has one DSC hard slice encoder */ static const struct dpu_dsc_cfg sc7280_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, };static const struct dpu_wb_cfg sc7280_wb[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +31
-6@@ -246,12 +246,37 @@ static const struct dpu_merge_3d_cfg sc8280xp_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sc8280xp_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), -DSC_BLK_1_2 ("dce_2_0" ,DSC_4 ,0x82000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_2_1" ,DSC_5 ,0x82000 ,0x29c ,0 , dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_2_0" , .id =DSC_4 , + .base =0x82000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_2_1" , .id =DSC_5 , + .base =0x82000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, };/* TODO: INTF 3, 8 and 7 are used for MST, marked as INTF_NONE for now */ drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +21
-4@@ -259,10 +259,27 @@ static const struct dpu_merge_3d_cfg sm8450_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8450_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8450_intf[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +21
-4@@ -273,10 +273,27 @@ static const struct dpu_merge_3d_cfg sm8550_merge_3d[] = {* its own different sub block address. */ static const struct dpu_dsc_cfg sm8550_dsc[] = { -DSC_BLK_1_2 ("dce_0_0" ,DSC_0 ,0x80000 ,0x29c ,0 , dsc_sblk_0), -DSC_BLK_1_2 ("dce_0_1" ,DSC_1 ,0x80000 ,0x29c ,0 , dsc_sblk_1), -DSC_BLK_1_2 ("dce_1_0" ,DSC_2 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_0), -DSC_BLK_1_2 ("dce_1_1" ,DSC_3 ,0x81000 ,0x29c ,BIT (DPU_DSC_NATIVE_42x_EN), dsc_sblk_1), + { + .name ="dce_0_0" , .id =DSC_0 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_0_1" , .id =DSC_1 , + .base =0x80000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ), + .sblk = &dsc_sblk_1, + }, { + .name ="dce_1_0" , .id =DSC_2 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_0, + }, { + .name ="dce_1_1" , .id =DSC_3 , + .base =0x81000 , .len =0x29c , + .features =BIT (DPU_DSC_HW_REV_1_2 ) |BIT (DPU_DSC_NATIVE_42x_EN), + .sblk = &dsc_sblk_1, + }, };static const struct dpu_intf_cfg sm8550_intf[] = {drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-15@@ -495,21 +495,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .ctl = {.base = 0xF80, .len = 0x10}, }; -#define DSC_BLK (_name, _id, _base, _features) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0x140, \ - .features = _features, \ - } - -#define DSC_BLK_1_2 (_name, _id, _base, _len, _features, _sblk) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = BIT(DPU_DSC_HW_REV_1_2) | _features, \ - .sblk = &_sblk, \ - } -/************************************************************* * INTF sub blocks config *************************************************************/ Signature · 1 line
2.39.2
Signature · 2 lines
With best wishes Dmitry
PATCH v3 14/19 drm/msm/dpu: inline MERGE_3D_BLK macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 16 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 16 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 16 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 16 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 16 +++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 21 +++++++++++++++---- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 21 +++++++++++++++---- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 11 ---------- 8 files changed, 99 insertions(+), 34 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +13 -3
@@ -239,9 +239,19 @@ static const struct dpu_pingpong_cfg sm8150_pp[] = { };static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x83000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x83100 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x83200 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x83000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x83100 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x83200 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };static const struct dpu_dsc_cfg sm8150_dsc[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +13 -3
@@ -238,9 +238,19 @@ static const struct dpu_pingpong_cfg sc8180x_pp[] = { };static const struct dpu_merge_3d_cfg sc8180x_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x83000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x83100 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x83200 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x83000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x83100 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x83200 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };static const struct dpu_dsc_cfg sc8180x_dsc[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +13 -3
@@ -239,9 +239,19 @@ static const struct dpu_pingpong_cfg sm8250_pp[] = { };static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x83000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x83100 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x83200 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x83000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x83100 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x83200 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };static const struct dpu_dsc_cfg sm8250_dsc[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +13 -3
@@ -237,9 +237,19 @@ static const struct dpu_pingpong_cfg sm8350_pp[] = { };static const struct dpu_merge_3d_cfg sm8350_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x4e000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x4f000 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x50000 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x4e000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x4f000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x50000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };/*
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +13 -3
@@ -235,9 +235,19 @@ static const struct dpu_pingpong_cfg sc8280xp_pp[] = { };static const struct dpu_merge_3d_cfg sc8280xp_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x4e000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x4f000 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x50000 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x4e000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x4f000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x50000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };/*
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +17 -4
@@ -247,10 +247,23 @@ static const struct dpu_pingpong_cfg sm8450_pp[] = { };static const struct dpu_merge_3d_cfg sm8450_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x4e000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x4f000 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x50000 ), -MERGE_3D_BLK ("merge_3d_3" ,MERGE_3D_3 ,0x65f00 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x4e000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x4f000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x50000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_3" , .id =MERGE_3D_3 , + .base =0x65f00 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };/*
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +17 -4
@@ -261,10 +261,23 @@ static const struct dpu_pingpong_cfg sm8550_pp[] = { };static const struct dpu_merge_3d_cfg sm8550_merge_3d[] = { -MERGE_3D_BLK ("merge_3d_0" ,MERGE_3D_0 ,0x4e000 ), -MERGE_3D_BLK ("merge_3d_1" ,MERGE_3D_1 ,0x4f000 ), -MERGE_3D_BLK ("merge_3d_2" ,MERGE_3D_2 ,0x50000 ), -MERGE_3D_BLK ("merge_3d_3" ,MERGE_3D_3 ,0x66700 ), + { + .name ="merge_3d_0" , .id =MERGE_3D_0 , + .base =0x4e000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_1" , .id =MERGE_3D_1 , + .base =0x4f000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_2" , .id =MERGE_3D_2 , + .base =0x50000 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, { + .name ="merge_3d_3" , .id =MERGE_3D_3 , + .base =0x66700 , .len =0x8 , + .features =MERGE_3D_SM8150_MASK , + }, };/*
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -11
@@ -471,17 +471,6 @@ static const struct dpu_pingpong_sub_blks sc7280_pp_sblk = { .intr_rdptr = _rdptr, \ } -/************************************************************* -* MERGE_3D sub blocks config -*************************************************************/ -#define MERGE_3D_BLK (_name, _id, _base) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0x8, \ - .features = MERGE_3D_SM8150_MASK, \ - .sblk = NULL \ - } -/************************************************************* * DSC sub blocks config *************************************************************/
Signature · 1 line
2.39.2
PATCH v3 15/19 drm/msm/dpu: inline various PP_BLK_* macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 41 ++++++--- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 41 ++++++--- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 67 ++++++++++---- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 67 ++++++++++---- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 67 ++++++++++---- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 23 +++-- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 12 ++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 23 +++-- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 12 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 12 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 67 ++++++++++---- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 45 +++++++--- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 61 ++++++++++--- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 89 ++++++++++++++----- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 89 ++++++++++++++----- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 21 ----- 16 files changed, 527 insertions(+), 210 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +29 -12
@@ -185,18 +185,35 @@ static const struct dpu_lm_cfg msm8998_lm[] = { };static const struct dpu_pingpong_cfg msm8998_pp[] = { -PP_BLK ("pingpong_0" ,PINGPONG_0 ,0x70000 ,PINGPONG_SDM845_TE2_MASK ,0 , sdm845_pp_sblk_te, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,12 )), -PP_BLK ("pingpong_1" ,PINGPONG_1 ,0x70800 ,PINGPONG_SDM845_TE2_MASK ,0 , sdm845_pp_sblk_te, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,9 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,13 )), -PP_BLK ("pingpong_2" ,PINGPONG_2 ,0x71000 ,PINGPONG_SDM845_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,10 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,14 )), -PP_BLK ("pingpong_3" ,PINGPONG_3 ,0x71800 ,PINGPONG_SDM845_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,11 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,15 )), + { + .name ="pingpong_0" , .id =PINGPONG_0 , + .base =0x70000 , .len =0xd4 , + .features =PINGPONG_SDM845_TE2_MASK , + .sblk = &sdm845_pp_sblk_te, + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), + .intr_rdptr =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,12 ), + }, { + .name ="pingpong_1" , .id =PINGPONG_1 , + .base =0x70800 , .len =0xd4 , + .features =PINGPONG_SDM845_TE2_MASK , + .sblk = &sdm845_pp_sblk_te, + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,9 ), + .intr_rdptr =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,13 ), + }, { + .name ="pingpong_2" , .id =PINGPONG_2 , + .base =0x71000 , .len =0xd4 , + .features =PINGPONG_SDM845_MASK , + .sblk = &sdm845_pp_sblk, + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,10 ), + .intr_rdptr =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,14 ), + }, { + .name ="pingpong_3" , .id =PINGPONG_3 , + .base =0x71800 , .len =0xd4 , + .features =PINGPONG_SDM845_MASK , + .sblk = &sdm845_pp_sblk, + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,11 ), + .intr_rdptr =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,15 ), + }, };static const struct dpu_dsc_cfg msm8998_dsc[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +29 -12
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +49 -18
73 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +49 -18
73 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +49 -18
73 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +17 -6
@@ -118,12 +118,23 @@ static const struct dpu_dspp_cfg sc7180_dspp[] = { };static const struct dpu_pingpong_cfg sc7180_pp[] = { -PP_BLK ("pingpong_0" ,PINGPONG_0 ,0x70000 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), --1 ), -PP_BLK ("pingpong_1" ,PINGPONG_1 ,0x70800 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,9 ), --1 ), + { + .name ="pingpong_0" , .id =PINGPONG_0 , + .base =0x70000 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), + .intr_rdptr =-1 , + }, { + .name ="pingpong_1" , .id =PINGPONG_1 , + .base =0x70800 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,9 ), + .intr_rdptr =-1 , + }, };static const struct dpu_intf_cfg sc7180_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +9 -3
@@ -82,9 +82,15 @@ static const struct dpu_dspp_cfg sm6115_dspp[] = { };static const struct dpu_pingpong_cfg sm6115_pp[] = { -PP_BLK ("pingpong_0" ,PINGPONG_0 ,0x70000 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), --1 ), + { + .name ="pingpong_0" , .id =PINGPONG_0 , + .base =0x70000 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), + .intr_rdptr =-1 , + }, };static const struct dpu_intf_cfg sm6115_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +17 -6
@@ -127,12 +127,23 @@ static const struct dpu_dspp_cfg sm6350_dspp[] = { };static struct dpu_pingpong_cfg sm6350_pp[] = { -PP_BLK ("pingpong_0" ,PINGPONG_0 ,0x70000 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), --1 ), -PP_BLK ("pingpong_1" ,PINGPONG_1 ,0x70800 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,9 ), --1 ), + { + .name ="pingpong_0" , .id =PINGPONG_0 , + .base =0x70000 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), + .intr_rdptr =-1 , + }, { + .name ="pingpong_1" , .id =PINGPONG_1 , + .base =0x70800 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,9 ), + .intr_rdptr =-1 , + }, };static const struct dpu_dsc_cfg sm6350_dsc[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +9 -3
@@ -79,9 +79,15 @@ static const struct dpu_dspp_cfg qcm2290_dspp[] = { };static const struct dpu_pingpong_cfg qcm2290_pp[] = { -PP_BLK ("pingpong_0" ,PINGPONG_0 ,0x70000 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), --1 ), + { + .name ="pingpong_0" , .id =PINGPONG_0 , + .base =0x70000 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), + .intr_rdptr =-1 , + }, };static const struct dpu_intf_cfg qcm2290_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +9 -3
@@ -84,9 +84,15 @@ static const struct dpu_dspp_cfg sm6375_dspp[] = { };static const struct dpu_pingpong_cfg sm6375_pp[] = { -PP_BLK ("pingpong_0" ,PINGPONG_0 ,0x70000 ,PINGPONG_SM8150_MASK ,0 , sdm845_pp_sblk, -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), --1 ), + { + .name ="pingpong_0" , .id =PINGPONG_0 , + .base =0x70000 , .len =0xd4 , + .features =PINGPONG_SM8150_MASK , + .sblk = &sdm845_pp_sblk, + .merge_3d =0 , + .intr_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,8 ), + .intr_rdptr =-1 , + }, };static const struct dpu_dsc_cfg sm6375_dsc[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +49 -18
73 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +33 -12
51 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +49 -12
67 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +65 -24
95 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +65 -24
95 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -21
@@ -450,27 +450,6 @@ static const struct dpu_pingpong_sub_blks sc7280_pp_sblk = { .len = 0x20, .version = 0x20000}, }; -#define PP_BLK_DITHER (_name, _id, _base, _merge_3d, _sblk, _done, _rdptr) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0, \ - .features = BIT(DPU_PINGPONG_DITHER), \ - .merge_3d = _merge_3d, \ - .sblk = &_sblk, \ - .intr_done = _done, \ - .intr_rdptr = _rdptr, \ - } -#define PP_BLK (_name, _id, _base, _features, _merge_3d, _sblk, _done, _rdptr) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = 0xd4, \ - .features = _features, \ - .merge_3d = _merge_3d, \ - .sblk = &_sblk, \ - .intr_done = _done, \ - .intr_rdptr = _rdptr, \ - } -/************************************************************* * DSC sub blocks config *************************************************************/
Signature · 1 line
2.39.2
PATCH v3 16/19 drm/msm/dpu: inline WB_BLK macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 14 ++++++++++++-- .../drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 14 ++++++++++++-- .../drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 14 ++++++++++++-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 18 ------------------ 4 files changed, 36 insertions(+), 24 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +12 -2
@@ -323,8 +323,18 @@ static const struct dpu_intf_cfg sm8250_intf[] = { };static const struct dpu_wb_cfg sm8250_wb[] = { -WB_BLK ("wb_2" ,WB_2 ,0x65000 ,WB_SM8250_MASK ,DPU_CLK_CTRL_WB2 ,6 , -VBIF_RT ,MDP_SSPP_TOP0_INTR ,4096 ,4 ), + { + .name ="wb_2" , .id =WB_2 , + .base =0x65000 , .len =0x2c8 , + .features =WB_SM8250_MASK , + .format_list = wb2_formats, + .num_formats =ARRAY_SIZE (wb2_formats), + .clk_ctrl =DPU_CLK_CTRL_WB2 , + .xin_id =6 , + .vbif_idx =VBIF_RT , + .maxlinewidth =4096 , + .intr_wb_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,4 ), + }, };static const struct dpu_perf_cfg sm8250_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +12 -2
@@ -148,8 +148,18 @@ static const struct dpu_intf_cfg sc7180_intf[] = { };static const struct dpu_wb_cfg sc7180_wb[] = { -WB_BLK ("wb_2" ,WB_2 ,0x65000 ,WB_SM8250_MASK ,DPU_CLK_CTRL_WB2 ,6 , -VBIF_RT ,MDP_SSPP_TOP0_INTR ,4096 ,4 ), + { + .name ="wb_2" , .id =WB_2 , + .base =0x65000 , .len =0x2c8 , + .features =WB_SM8250_MASK , + .format_list = wb2_formats, + .num_formats =ARRAY_SIZE (wb2_formats), + .clk_ctrl =DPU_CLK_CTRL_WB2 , + .xin_id =6 , + .vbif_idx =VBIF_RT , + .maxlinewidth =4096 , + .intr_wb_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,4 ), + }, };static const struct dpu_perf_cfg sc7180_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +12 -2
@@ -176,8 +176,18 @@ static const struct dpu_dsc_cfg sc7280_dsc[] = { };static const struct dpu_wb_cfg sc7280_wb[] = { -WB_BLK ("wb_2" ,WB_2 ,0x65000 ,WB_SM8250_MASK ,DPU_CLK_CTRL_WB2 ,6 , -VBIF_RT ,MDP_SSPP_TOP0_INTR ,4096 ,4 ), + { + .name ="wb_2" , .id =WB_2 , + .base =0x65000 , .len =0x2c8 , + .features =WB_SM8250_MASK , + .format_list = wb2_formats, + .num_formats =ARRAY_SIZE (wb2_formats), + .clk_ctrl =DPU_CLK_CTRL_WB2 , + .xin_id =6 , + .vbif_idx =VBIF_RT , + .maxlinewidth =4096 , + .intr_wb_done =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,4 ), + }, };static const struct dpu_intf_cfg sc7280_intf[] = {
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -18
@@ -493,24 +493,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .intr_tear_rd_ptr = _tear_rd_ptr, \ } -/************************************************************* -* Writeback blocks config -*************************************************************/ -#define WB_BLK (_name, _id, _base, _features, _clk_ctrl, \ - __xin_id, vbif_id, _reg, _max_linewidth, _wb_done_bit) \ - { \ - .name = _name, .id = _id, \ - .base = _base, .len = 0x2c8, \ - .features = _features, \ - .format_list = wb2_formats, \ - .num_formats = ARRAY_SIZE(wb2_formats), \ - .clk_ctrl = _clk_ctrl, \ - .xin_id = __xin_id, \ - .vbif_idx = vbif_id, \ - .maxlinewidth = _max_linewidth, \ - .intr_wb_done = DPU_IRQ_IDX(_reg, _wb_done_bit) \ - } -/************************************************************* * VBIF sub blocks config *************************************************************/
Signature · 1 line
2.39.2
PATCH v3 17/19 drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros
In reply to Dmitry BaryshkovTo simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 52 ++++++-- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 53 ++++++-- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 82 +++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 28 +++- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 28 +++- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 41 ++++-- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 120 +++++++++++++----- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 55 ++++++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 30 ----- 16 files changed, 545 insertions(+), 209 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +40 -12
@@ -243,18 +243,46 @@ static const struct dpu_dspp_cfg msm8998_dspp[] = { };static const struct dpu_intf_cfg msm8998_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_HDMI ,0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_HDMI , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg msm8998_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +41 -12
59 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +41 -14
61 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +62 -20
89 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +41 -14
61 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +21 -7
@@ -138,13 +138,27 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = { };static const struct dpu_intf_cfg sc7180_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_wb_cfg sc7180_wb[] = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +11 -4
@@ -94,10 +94,17 @@ static const struct dpu_pingpong_cfg sm6115_pp[] = { };static const struct dpu_intf_cfg sm6115_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6115_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +21 -7
@@ -155,13 +155,27 @@ static const struct dpu_dsc_cfg sm6350_dsc[] = { };static const struct dpu_intf_cfg sm6350_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,35 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,35 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =35 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =35 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6350_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +11 -4
@@ -91,10 +91,17 @@ static const struct dpu_pingpong_cfg qcm2290_pp[] = { };static const struct dpu_intf_cfg qcm2290_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg qcm2290_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +11 -4
@@ -104,10 +104,17 @@ static const struct dpu_dsc_cfg sm6375_dsc[] = { };static const struct dpu_intf_cfg sm6375_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6375_perf_data = {
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +41 -14
61 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +31 -10
47 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +91 -29
126 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +41 -14
61 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +41 -14
61 lines not on this page · raw message
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -30
@@ -463,36 +463,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .ctl = {.base = 0xF80, .len = 0x10}, }; -/************************************************************* -* INTF sub blocks config -*************************************************************/ -#define INTF_BLK (_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _underrun, _vsync) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \ - .type = _type, \ - .controller_id = _ctrl_id, \ - .prog_fetch_lines_worst_case = _progfetch, \ - .intr_underrun = _underrun, \ - .intr_vsync = _vsync, \ - .intr_tear_rd_ptr = -1, \ - } - -/* DSI Interface sub-block with TEAR registers (since DPU 5.0.0) */ -#define INTF_BLK_DSI_TE (_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _underrun, _vsync, _tear_rd_ptr) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \ - .type = _type, \ - .controller_id = _ctrl_id, \ - .prog_fetch_lines_worst_case = _progfetch, \ - .intr_underrun = _underrun, \ - .intr_vsync = _vsync, \ - .intr_tear_rd_ptr = _tear_rd_ptr, \ - } -/************************************************************* * VBIF sub blocks config *************************************************************/
Signature · 1 line
2.39.2
Marijn Suijten
reviewerRe: [PATCH v3 17/19] drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros
Quoted 5 lines · Dmitry Baryshkov
To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
Signed-off-by Dmitry Baryshkov <[email protected]>
Looks good but I am not sure how much it is worth to review this (versus checking your script and rerunning it to see if I get the same results), considering that there are quite some conflicts with your interrupt rework. In what order to you intend to land that?
Quoted 929 lines
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 52 ++++++-- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 53 ++++++-- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 82 +++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 28 +++- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 28 +++- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 41 ++++-- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 120 +++++++++++++----- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 55 ++++++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 30 ----- 16 files changed, 545 insertions(+), 209 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +40
-12@@ -243,18 +243,46 @@ static const struct dpu_dspp_cfg msm8998_dspp[] = { };static const struct dpu_intf_cfg msm8998_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_HDMI ,0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_HDMI , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg msm8998_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +41
-12@@ -257,18 +257,47 @@ static const struct dpu_dsc_cfg sdm845_dsc[] = { };static const struct dpu_intf_cfg sdm845_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sdm845_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +41
-14@@ -306,20 +306,47 @@ static const struct dpu_dsc_cfg sm8150_dsc[] = { };static const struct dpu_intf_cfg sm8150_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8150_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +62
-20@@ -313,27 +313,69 @@ static const struct dpu_dsc_cfg sc8180x_dsc[] = { };static const struct dpu_intf_cfg sc8180x_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 ), + },/* INTF_3 is for MST, wired to INTF_DP 0 and 1, use dummy index until this is supported */ -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,999 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), -INTF_BLK ("intf_4" ,INTF_4 ,0x6c000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 )), -INTF_BLK ("intf_5" ,INTF_5 ,0x6c800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_2 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 )), + { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =999 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_4" , .id =INTF_4 , + .base =0x6c000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_5" , .id =INTF_5 , + .base =0x6c800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_2 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sc8180x_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +41
-14@@ -306,20 +306,47 @@ static const struct dpu_dsc_cfg sm8250_dsc[] = { };static const struct dpu_intf_cfg sm8250_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_wb_cfg sm8250_wb[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +21
-7@@ -138,13 +138,27 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = { };static const struct dpu_intf_cfg sc7180_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_wb_cfg sc7180_wb[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +11
-4@@ -94,10 +94,17 @@ static const struct dpu_pingpong_cfg sm6115_pp[] = { };static const struct dpu_intf_cfg sm6115_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6115_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +21
-7@@ -155,13 +155,27 @@ static const struct dpu_dsc_cfg sm6350_dsc[] = { };static const struct dpu_intf_cfg sm6350_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,35 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,35 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =35 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =35 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6350_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +11
-4@@ -91,10 +91,17 @@ static const struct dpu_pingpong_cfg qcm2290_pp[] = { };static const struct dpu_intf_cfg qcm2290_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg qcm2290_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +11
-4@@ -104,10 +104,17 @@ static const struct dpu_dsc_cfg sm6375_dsc[] = { };static const struct dpu_intf_cfg sm6375_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6375_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +41
-14@@ -313,20 +313,47 @@ static const struct dpu_dsc_cfg sm8350_dsc[] = { };static const struct dpu_intf_cfg sm8350_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x2c4 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x2c4 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8350_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +31
-10@@ -191,16 +191,37 @@ static const struct dpu_wb_cfg sc7280_wb[] = { };static const struct dpu_intf_cfg sc7280_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_5" ,INTF_5 ,0x39000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x2c4 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_5" , .id =INTF_5 , + .base =0x39000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sc7280_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +91
-29@@ -328,35 +328,97 @@ static const struct dpu_dsc_cfg sc8280xp_dsc[] = {/* TODO: INTF 3, 8 and 7 are used for MST, marked as INTF_NONE for now */ static const struct dpu_intf_cfg sc8280xp_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_NONE ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), -INTF_BLK ("intf_4" ,INTF_4 ,0x38000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 )), -INTF_BLK ("intf_5" ,INTF_5 ,0x39000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_3 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 )), -INTF_BLK ("intf_6" ,INTF_6 ,0x3a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_2 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,16 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,17 )), -INTF_BLK ("intf_7" ,INTF_7 ,0x3b000 ,0x280 ,INTF_NONE ,MSM_DP_CONTROLLER_2 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,18 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,19 )), -INTF_BLK ("intf_8" ,INTF_8 ,0x3c000 ,0x280 ,INTF_NONE ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,12 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,13 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_NONE , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_4" , .id =INTF_4 , + .base =0x38000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_5" , .id =INTF_5 , + .base =0x39000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_3 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_6" , .id =INTF_6 , + .base =0x3a000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_2 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,16 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,17 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_7" , .id =INTF_7 , + .base =0x3b000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_NONE , + .controller_id =MSM_DP_CONTROLLER_2 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,18 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,19 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_8" , .id =INTF_8 , + .base =0x3c000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_NONE , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,12 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,13 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sc8280xp_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +41
-14@@ -337,20 +337,47 @@ static const struct dpu_dsc_cfg sm8450_dsc[] = { };static const struct dpu_intf_cfg sm8450_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8450_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +41
-14@@ -351,20 +351,47 @@ static const struct dpu_dsc_cfg sm8550_dsc[] = { };static const struct dpu_intf_cfg sm8550_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8550_perf_data = {drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-12@@ -463,36 +463,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .ctl = {.base = 0xF80, .len = 0x10}, }; -/************************************************************* -* INTF sub blocks config -*************************************************************/ -#define INTF_BLK (_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _underrun, _vsync) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \ - .type = _type, \ - .controller_id = _ctrl_id, \ - .prog_fetch_lines_worst_case = _progfetch, \ - .intr_underrun = _underrun, \
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_dsc_sub_blks dsc_sblk_1 = { · line 487
Quoted 10 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-10- .intr_vsync = _vsync, \ - .intr_tear_rd_ptr = -1, \ - } - -/* DSI Interface sub-block with TEAR registers (since DPU 5.0.0) */ -#define INTF_BLK_DSI_TE (_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _underrun, _vsync, _tear_rd_ptr) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \
Now that the DSI_TE context is gone here, it might be harder to properly reapply [1] which added BIT(DPU_INTF_TE) as it's not a global INTF feature (though it is dependent on the core revision) but only relevant for the DSI interfaces.
[1]: https://lore.kernel.org/linux-arm-msm/[email protected]/
- Marijn
Quoted 14 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-8- .type = _type, \ - .controller_id = _ctrl_id, \ - .prog_fetch_lines_worst_case = _progfetch, \ - .intr_underrun = _underrun, \ - .intr_vsync = _vsync, \ - .intr_tear_rd_ptr = _tear_rd_ptr, \ - } -/************************************************************* * VBIF sub blocks config *************************************************************/ Signature · 1 line
2.39.2
Re: [PATCH v3 17/19] drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros
Quoted 948 lines · Marijn Suijten
Quoted 5 lines · Dmitry Baryshkov
To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
Signed-off-by Dmitry Baryshkov <[email protected]>Looks good but I am not sure how much it is worth to review this (versus checking your script and rerunning it to see if I get the same results), considering that there are quite some conflicts with your interrupt rework. In what order to you intend to land that?
Quoted 936 lines
--- .../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 52 ++++++-- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 53 ++++++-- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 82 +++++++++--- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 28 +++- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 28 +++- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 15 ++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 41 ++++-- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 120 +++++++++++++----- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 55 ++++++-- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 55 ++++++-- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 30 ----- 16 files changed, 545 insertions(+), 209 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +40
-12@@ -243,18 +243,46 @@ static const struct dpu_dspp_cfg msm8998_dspp[] = { };static const struct dpu_intf_cfg msm8998_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_HDMI ,0 ,21 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_HDMI , + .prog_fetch_lines_worst_case =21 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg msm8998_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +41
-12@@ -257,18 +257,47 @@ static const struct dpu_dsc_cfg sdm845_dsc[] = { };static const struct dpu_intf_cfg sdm845_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK ("intf_1" ,INTF_1 ,0x6a800 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 )), -INTF_BLK ("intf_2" ,INTF_2 ,0x6b000 ,0x280 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SDM845_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SDM845_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sdm845_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +41
-14@@ -306,20 +306,47 @@ static const struct dpu_dsc_cfg sm8150_dsc[] = { };static const struct dpu_intf_cfg sm8150_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8150_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +62
-20@@ -313,27 +313,69 @@ static const struct dpu_dsc_cfg sc8180x_dsc[] = { };static const struct dpu_intf_cfg sc8180x_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2bc ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x2bc , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 ), + },/* INTF_3 is for MST, wired to INTF_DP 0 and 1, use dummy index until this is supported */ -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,999 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), -INTF_BLK ("intf_4" ,INTF_4 ,0x6c000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 )), -INTF_BLK ("intf_5" ,INTF_5 ,0x6c800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_2 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 )), + { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =999 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_4" , .id =INTF_4 , + .base =0x6c000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_5" , .id =INTF_5 , + .base =0x6c800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_2 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sc8180x_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +41
-14@@ -306,20 +306,47 @@ static const struct dpu_dsc_cfg sm8250_dsc[] = { };static const struct dpu_intf_cfg sm8250_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x6b000 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x6b800 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x6b000 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_TEAR_INTR ,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x6b800 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_wb_cfg sm8250_wb[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h +21
-7@@ -138,13 +138,27 @@ static const struct dpu_pingpong_cfg sc7180_pp[] = { };static const struct dpu_intf_cfg sc7180_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_wb_cfg sc7180_wb[] = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h +11
-4@@ -94,10 +94,17 @@ static const struct dpu_pingpong_cfg sm6115_pp[] = { };static const struct dpu_intf_cfg sm6115_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6115_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h +21
-7@@ -155,13 +155,27 @@ static const struct dpu_dsc_cfg sm6350_dsc[] = { };static const struct dpu_intf_cfg sm6350_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x6a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,35 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,35 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x6a000 , .len =0x280 , + .features =INTF_SC7180_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =35 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =35 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6350_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h +11
-4@@ -91,10 +91,17 @@ static const struct dpu_pingpong_cfg qcm2290_pp[] = { };static const struct dpu_intf_cfg qcm2290_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg qcm2290_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h +11
-4@@ -104,10 +104,17 @@ static const struct dpu_dsc_cfg sm6375_dsc[] = { };static const struct dpu_intf_cfg sm6375_intf[] = { -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x6a800 ,0x2c0 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7180_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 )), + { + .name ="intf_1" , .id =INTF_1 , + .base =0x6a800 , .len =0x2c0 , + .features =INTF_SC7180_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_TEAR_INTR ,2 ), + }, };static const struct dpu_perf_cfg sm6375_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +41
-14@@ -313,20 +313,47 @@ static const struct dpu_dsc_cfg sm8350_dsc[] = { };static const struct dpu_intf_cfg sm8350_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x2c4 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x2c4 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8350_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h +31
-10@@ -191,16 +191,37 @@ static const struct dpu_wb_cfg sc7280_wb[] = { };static const struct dpu_intf_cfg sc7280_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x2c4 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_5" ,INTF_5 ,0x39000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x2c4 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_5" , .id =INTF_5 , + .base =0x39000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sc7280_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +91
-29@@ -328,35 +328,97 @@ static const struct dpu_dsc_cfg sc8280xp_dsc[] = {/* TODO: INTF 3, 8 and 7 are used for MST, marked as INTF_NONE for now */ static const struct dpu_intf_cfg sc8280xp_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_NONE ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), -INTF_BLK ("intf_4" ,INTF_4 ,0x38000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 )), -INTF_BLK ("intf_5" ,INTF_5 ,0x39000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_3 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 )), -INTF_BLK ("intf_6" ,INTF_6 ,0x3a000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_2 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,16 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,17 )), -INTF_BLK ("intf_7" ,INTF_7 ,0x3b000 ,0x280 ,INTF_NONE ,MSM_DP_CONTROLLER_2 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,18 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,19 )), -INTF_BLK ("intf_8" ,INTF_8 ,0x3c000 ,0x280 ,INTF_NONE ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,12 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,13 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_NONE , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_4" , .id =INTF_4 , + .base =0x38000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,20 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,21 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_5" , .id =INTF_5 , + .base =0x39000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_3 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,22 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,23 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_6" , .id =INTF_6 , + .base =0x3a000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_2 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,16 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,17 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_7" , .id =INTF_7 , + .base =0x3b000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_NONE , + .controller_id =MSM_DP_CONTROLLER_2 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,18 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,19 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_8" , .id =INTF_8 , + .base =0x3c000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_NONE , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,12 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,13 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sc8280xp_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +41
-14@@ -337,20 +337,47 @@ static const struct dpu_dsc_cfg sm8450_dsc[] = { };static const struct dpu_intf_cfg sm8450_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8450_perf_data = {drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +41
-14@@ -351,20 +351,47 @@ static const struct dpu_dsc_cfg sm8550_dsc[] = { };static const struct dpu_intf_cfg sm8550_intf[] = { -INTF_BLK ("intf_0" ,INTF_0 ,0x34000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 )), -INTF_BLK_DSI_TE ("intf_1" ,INTF_1 ,0x35000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_0 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), -DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 )), -INTF_BLK_DSI_TE ("intf_2" ,INTF_2 ,0x36000 ,0x300 ,INTF_DSI ,MSM_DSI_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), -DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 )), -INTF_BLK ("intf_3" ,INTF_3 ,0x37000 ,0x280 ,INTF_DP ,MSM_DP_CONTROLLER_1 ,24 ,INTF_SC7280_MASK , -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), -DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 )), + { + .name ="intf_0" , .id =INTF_0 , + .base =0x34000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,24 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,25 ), + .intr_tear_rd_ptr =-1 , + }, { + .name ="intf_1" , .id =INTF_1 , + .base =0x35000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_0 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,26 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,27 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF1_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_2" , .id =INTF_2 , + .base =0x36000 , .len =0x300 , + .features =INTF_SC7280_MASK , + .type =INTF_DSI , + .controller_id =MSM_DSI_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,28 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,29 ), + .intr_tear_rd_ptr =DPU_IRQ_IDX (MDP_INTF2_7xxx_TEAR_INTR,2 ), + }, { + .name ="intf_3" , .id =INTF_3 , + .base =0x37000 , .len =0x280 , + .features =INTF_SC7280_MASK , + .type =INTF_DP , + .controller_id =MSM_DP_CONTROLLER_1 , + .prog_fetch_lines_worst_case =24 , + .intr_underrun =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,30 ), + .intr_vsync =DPU_IRQ_IDX (MDP_SSPP_TOP0_INTR ,31 ), + .intr_tear_rd_ptr =-1 , + }, };static const struct dpu_perf_cfg sm8550_perf_data = {drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-19@@ -463,36 +463,6 @@ static const struct dpu_dsc_sub_blks dsc_sblk_1 = { .ctl = {.base = 0xF80, .len = 0x10}, }; -/************************************************************* -* INTF sub blocks config -*************************************************************/ -#define INTF_BLK (_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _underrun, _vsync) \ - {\ - .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \ - .type = _type, \ - .controller_id = _ctrl_id, \ - .prog_fetch_lines_worst_case = _progfetch, \ - .intr_underrun = _underrun, \ - .intr_vsync = _vsync, \ - .intr_tear_rd_ptr = -1, \ - } - -/* DSI Interface sub-block with TEAR registers (since DPU 5.0.0) */ -#define INTF_BLK_DSI_TE (_name, _id, _base, _len, _type, _ctrl_id, _progfetch, _features, _underrun, _vsync, _tear_rd_ptr) \ - {\
Quoted 8 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c static const struct dpu_dsc_sub_blks dsc_sblk_1 = { · line 473
Quoted 3 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-3- .name = _name, .id = _id, \ - .base = _base, .len = _len, \ - .features = _features, \Now that the
DSI_TEcontext is gone here, it might be harder to properly reapply [1] which addedBIT(DPU_INTF_TE)as it's not a global INTF feature (though it is dependent on the core revision) but only relevant for the DSI interfaces.
True. I should probably pick that patch into the series.
Quoted 19 lines
[1]: https://lore.kernel.org/linux-arm-msm/[email protected]/
- Marijn
Quoted 14 lines
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-8- .type = _type, \ - .controller_id = _ctrl_id, \ - .prog_fetch_lines_worst_case = _progfetch, \ - .intr_underrun = _underrun, \ - .intr_vsync = _vsync, \ - .intr_tear_rd_ptr = _tear_rd_ptr, \ - } -/************************************************************* * VBIF sub blocks config *************************************************************/ Signature · 1 line
2.39.2
Signature · 2 lines
With best wishes Dmitry
Re: [PATCH v3 17/19] drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros
In reply to Marijn SuijtenQuoted 11 lines · Marijn Suijten
Quoted 5 lines · Dmitry Baryshkov
To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
Signed-off-by Dmitry Baryshkov <[email protected]>Looks good but I am not sure how much it is worth to review this (versus checking your script and rerunning it to see if I get the same results), considering that there are quite some conflicts with your interrupt rework. In what order to you intend to land that?
As I wrote, this series goes in first. Initially I designed them the other way, but intr rework depends on DPU revision changes, while this one doesn't have such dependencies.
Signature · 2 lines
With best wishes Dmitry
Marijn Suijten
reviewerRe: [PATCH v3 17/19] drm/msm/dpu: inline INTF_BLK and INTF_BLK_DSI_TE macros
Quoted 8 lines · Dmitry Baryshkov
Quoted 7 lines · Marijn Suijten
Quoted 5 lines · Dmitry Baryshkov
To simplify making changes to the hardware block definitions, expand corresponding macros. This way making all the changes are more obvious and visible in the source files.
Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 8 lines
Quoted 4 lines
Looks good but I am not sure how much it is worth to review this (versus checking your script and rerunning it to see if I get the same results), considering that there are quite some conflicts with your interrupt rework. In what order to you intend to land that?
As I wrote, this series goes in first. Initially I designed them the other way, but intr rework depends on DPU revision changes, while this one doesn't have such dependencies.
Thanks, I'll drop the intr rework from my local "-next" then. Have been collecting and testing almost all patches that way thus far, but it's becoming hairy with so many dependencies.
Will pick it up again once a v2 lands. Is any review still needed on the current v1 (or was it RFC)?
- Marijn
PATCH v3 18/19 drm/msm/dpu: drop empty features mask MERGE_3D_SM8150_MASK
In reply to Dmitry BaryshkovThe MERGE_3D_SM8150_MASK features mask is zero. Drop it completely.
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 -- 8 files changed, 25 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +0 -3
@@ -273,15 +273,12 @@ static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x83000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x83100, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x83200, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +0 -3
@@ -272,15 +272,12 @@ static const struct dpu_merge_3d_cfg sc8180x_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x83000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x83100, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x83200, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +0 -3
@@ -273,15 +273,12 @@ static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x83000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x83100, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x83200, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +0 -3
@@ -271,15 +271,12 @@ static const struct dpu_merge_3d_cfg sm8350_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +0 -3
@@ -275,15 +275,12 @@ static const struct dpu_merge_3d_cfg sc8280xp_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +0 -4
@@ -291,19 +291,15 @@ static const struct dpu_merge_3d_cfg sm8450_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_3", .id = MERGE_3D_3, .base = 0x65f00, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +0 -4
@@ -305,19 +305,15 @@ static const struct dpu_merge_3d_cfg sm8550_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_3", .id = MERGE_3D_3, .base = 0x66700, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -2
@@ -93,8 +93,6 @@#define CTL_SM8550_MASK \ (CTL_SC7280_MASK | BIT(DPU_CTL_HAS_LAYER_EXT4)) -#define MERGE_3D_SM8150_MASK (0) -#define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)#define INTF_SDM845_MASK (0)
Signature · 1 line
2.39.2
Re: [PATCH v3 18/19] drm/msm/dpu: drop empty features mask MERGE_3D_SM8150_MASK
Quoted 3 lines · Dmitry Baryshkov
The
MERGE_3D_SM8150_MASKfeatures mask is zero. Drop it completely.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 175 lines
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 3 --- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 -- 8 files changed, 25 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h +0
-3@@ -273,15 +273,12 @@ static const struct dpu_merge_3d_cfg sm8150_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x83000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x83100, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x83200, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h +0
-3@@ -272,15 +272,12 @@ static const struct dpu_merge_3d_cfg sc8180x_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x83000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x83100, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x83200, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h +0
-3@@ -273,15 +273,12 @@ static const struct dpu_merge_3d_cfg sm8250_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x83000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x83100, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x83200, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h +0
-3@@ -271,15 +271,12 @@ static const struct dpu_merge_3d_cfg sm8350_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h +0
-3@@ -275,15 +275,12 @@ static const struct dpu_merge_3d_cfg sc8280xp_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h +0
-4@@ -291,19 +291,15 @@ static const struct dpu_merge_3d_cfg sm8450_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_3", .id = MERGE_3D_3, .base = 0x65f00, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h +0
-4@@ -305,19 +305,15 @@ static const struct dpu_merge_3d_cfg sm8550_merge_3d[] = { { .name = "merge_3d_0", .id = MERGE_3D_0, .base = 0x4e000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_1", .id = MERGE_3D_1, .base = 0x4f000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_2", .id = MERGE_3D_2, .base = 0x50000, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, { .name = "merge_3d_3", .id = MERGE_3D_3, .base = 0x66700, .len = 0x8, - .features = MERGE_3D_SM8150_MASK, }, };drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-2@@ -93,8 +93,6 @@#define CTL_SM8550_MASK \ (CTL_SC7280_MASK | BIT(DPU_CTL_HAS_LAYER_EXT4)) -#define MERGE_3D_SM8150_MASK (0) -#define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC)#define INTF_SDM845_MASK (0)Signature · 1 line
2.39.2
PATCH v3 19/19 drm/msm/dpu: drop empty features mask INTF_SDM845_MASK
In reply to Dmitry BaryshkovThe INTF_SDM845_MASK features mask is zero. Drop it completely.
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 -- 3 files changed, 10 deletions(-)
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +0 -4
@@ -246,7 +246,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { { .name = "intf_0", .id = INTF_0, .base = 0x6a000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DP, .controller_id = MSM_DP_CONTROLLER_0, .prog_fetch_lines_worst_case = 21,
@@ -256,7 +255,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { }, { .name = "intf_1", .id = INTF_1, .base = 0x6a800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_0, .prog_fetch_lines_worst_case = 21,
@@ -266,7 +264,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { }, { .name = "intf_2", .id = INTF_2, .base = 0x6b000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_1, .prog_fetch_lines_worst_case = 21,
@@ -276,7 +273,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { }, { .name = "intf_3", .id = INTF_3, .base = 0x6b800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_HDMI, .prog_fetch_lines_worst_case = 21, .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),
drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +0 -4
@@ -260,7 +260,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { { .name = "intf_0", .id = INTF_0, .base = 0x6a000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DP, .controller_id = MSM_DP_CONTROLLER_0, .prog_fetch_lines_worst_case = 24,
@@ -270,7 +269,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { }, { .name = "intf_1", .id = INTF_1, .base = 0x6a800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_0, .prog_fetch_lines_worst_case = 24,
@@ -280,7 +278,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { }, { .name = "intf_2", .id = INTF_2, .base = 0x6b000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_1, .prog_fetch_lines_worst_case = 24,
@@ -290,7 +287,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { }, { .name = "intf_3", .id = INTF_3, .base = 0x6b800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DP, .controller_id = MSM_DP_CONTROLLER_1, .prog_fetch_lines_worst_case = 24,
drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0 -2
@@ -95,8 +95,6 @@#define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC) -#define INTF_SDM845_MASK (0) -#define INTF_SC7180_MASK \ (BIT(DPU_INTF_INPUT_CTRL) | \ BIT(DPU_INTF_TE) | \
Signature · 1 line
2.39.2
Re: [PATCH v3 19/19] drm/msm/dpu: drop empty features mask INTF_SDM845_MASK
Quoted 3 lines · Dmitry Baryshkov
The
INTF_SDM845_MASKfeatures mask is zero. Drop it completely.Signed-off-by Dmitry Baryshkov <[email protected]>
Quoted 94 lines
--- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 4 ---- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 -- 3 files changed, 10 deletions(-)drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h +0
-4@@ -246,7 +246,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { { .name = "intf_0", .id = INTF_0, .base = 0x6a000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DP, .controller_id = MSM_DP_CONTROLLER_0, .prog_fetch_lines_worst_case = 21,@@ -256,7 +255,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { }, { .name = "intf_1", .id = INTF_1, .base = 0x6a800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_0, .prog_fetch_lines_worst_case = 21,@@ -266,7 +264,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { }, { .name = "intf_2", .id = INTF_2, .base = 0x6b000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_1, .prog_fetch_lines_worst_case = 21,@@ -276,7 +273,6 @@ static const struct dpu_intf_cfg msm8998_intf[] = { }, { .name = "intf_3", .id = INTF_3, .base = 0x6b800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_HDMI, .prog_fetch_lines_worst_case = 21, .intr_underrun = DPU_IRQ_IDX(MDP_SSPP_TOP0_INTR, 30),drivers/gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h +0
-4@@ -260,7 +260,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { { .name = "intf_0", .id = INTF_0, .base = 0x6a000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DP, .controller_id = MSM_DP_CONTROLLER_0, .prog_fetch_lines_worst_case = 24,@@ -270,7 +269,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { }, { .name = "intf_1", .id = INTF_1, .base = 0x6a800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_0, .prog_fetch_lines_worst_case = 24,@@ -280,7 +278,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { }, { .name = "intf_2", .id = INTF_2, .base = 0x6b000, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DSI, .controller_id = MSM_DSI_CONTROLLER_1, .prog_fetch_lines_worst_case = 24,@@ -290,7 +287,6 @@ static const struct dpu_intf_cfg sdm845_intf[] = { }, { .name = "intf_3", .id = INTF_3, .base = 0x6b800, .len = 0x280, - .features = INTF_SDM845_MASK, .type = INTF_DP, .controller_id = MSM_DP_CONTROLLER_1, .prog_fetch_lines_worst_case = 24,drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c +0
-2@@ -95,8 +95,6 @@#define DSPP_SC7180_MASK BIT(DPU_DSPP_PCC) -#define INTF_SDM845_MASK (0) -#define INTF_SC7180_MASK \ (BIT(DPU_INTF_INPUT_CTRL) | \ BIT(DPU_INTF_TE) | \Signature · 1 line
2.39.2
Quoted 35 lines · Dmitry Baryshkov
Having a macro with 10 arguments doesn't seem like a good idea. It makes it inherently harder to compare the actual structure values. Also this leads to adding macros covering varieties of the block.
As it was previously discussed, inline all
foo_BLKmacros in order to ease performing changes to the catalog data.Major part of the conversion was performed using vim script found at [1]. Then some manual cleanups were applied, like dropping fields set to 0.
Dependencies: msm-next-lumag.
Changes since v2:
- Rebased on top of msm-next-lumag
- Fixed MSM_DP/DSI_CONTROLLER_n usage in sm6350 and sm6375 catalog data (Abhinav, Marijn).Changes since v1:
- Rebased on top of msm-next
- Dropped dependency on interrupt rework[1] https://pastebin.ubuntu.com/p/26cdW5VpYB/
[2] https://patchwork.freedesktop.org/patch/542142/?series=119220&rev=1Dmitry Baryshkov (19):
drm/msm: enumerate DSI interfaces drm/msm/dpu: always use MSM_DP/DSI_CONTROLLER_n drm/msm/dpu: simplify peer LM handling drm/msm/dpu: dropdpu_mdss_cfg::mdp_countfield drm/msm/dpu: drop enumdpu_mdpandMDP_TOPvalue drm/msm/dpu: expand .clk_ctrls definitions drm/msm/dpu: drop zero features fromdpu_mdp_cfgdata drm/msm/dpu: drop zero features fromdpu_ctl_cfgdata drm/msm/dpu: correct indentation for CTL definitions
Quoted 8 lines
drm/msm/dpu: inline
SSPP_BLKmacros drm/msm/dpu: inlineDSPP_BLKmacros drm/msm/dpu: inlineLM_BLKmacros
drm/msm/dpu: inlineDSC_BLKandDSC_BLK_1_2macros drm/msm/dpu: inlineMERGE_3D_BLKmacros drm/msm/dpu: inline various PP_BLK_* macros drm/msm/dpu: inlineWB_BLKmacros
drm/msm/dpu: inlineINTF_BLKandINTF_BLK_DSI_TEmacros
Not sure if I'm ready to manually review all the inline patches before the weekend, so for now this should do:
(On SM8350 and SDM845 for now)
That is, after fixing the cfg-not-assigned regression in patch 4 where mdp_count is dropped.
- Marijn
Quoted 31 lines
drm/msm/dpu: drop empty features mask
MERGE_3D_SM8150_MASKdrm/msm/dpu: drop empty features maskINTF_SDM845_MASK.../msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 329 ++++++++---- .../msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 348 +++++++++---- .../msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 411 ++++++++++----- .../msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 448 +++++++++++----- .../msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 430 +++++++++++----- .../msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 184 +++++-- .../msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 88 +++- .../msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 188 ++++--- .../msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 88 +++- .../msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 95 +++- .../msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 418 ++++++++++----- .../msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 244 ++++++--- .../msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 484 +++++++++++++----- .../msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 445 +++++++++++----- .../msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 467 ++++++++++++----- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 130 ----- .../gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_mdss.h | 5 - drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 34 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h | 7 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 34 +- drivers/gpu/drm/msm/msm_drv.h | 8 +- 23 files changed, 3320 insertions(+), 1572 deletions(-)Signature · 1 line
2.39.2