drm/msm/dpu: rework HW block feature handling
Status from this message: Applied, thanks!
Get series with b4
b4 am [email protected] change-id 20241213-dpu-drop-features-7603dc3ee189Versions newest first
- v5 Latest30 patches 2 repliesApplied
- v430 patches 33 repliesSuperseded
- v333 patches 2 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 33 patches | 0 replies | Superseded | |
| v1 | 35 patches | 21 replies | Applied |
Changes in v5 from the cover letter
- Added version check in _dpu_encoder_phys_cmd_update_intf_cfg() (Neil)
Technically it's not necessary, but it makes it easier to follow the
code.
- Fixed commit message for the DPU_MDP_AUDIO_SELECT patch (Neil)
- Link to v4: https://lore.kernel.org/r/[email protected]
Patches in v5 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/30 | drm/msm/dpu: stop passing mdss_ver to setup_timing_gen()drivers/ drivers/ drivers/ | +8 | 0 replies | |
| 2/30 | drm/msm/dpu: drop INTF_SC7280_MASKdrivers/ drivers/ drivers/ +7 more | +49 | 0 replies | |
| 3/30 | drm/msm/dpu: inline _setup_ctl_ops()drivers/ | +47 | 0 replies | |
| 4/30 | drm/msm/dpu: inline _setup_dsc_ops()drivers/ | +6 | 0 replies | |
| 5/30 | drm/msm/dpu: inline _setup_dspp_ops()drivers/ | +2 | 0 replies | |
| 6/30 | drm/msm/dpu: inline _setup_mixer_ops()drivers/ | +9 | 0 replies | |
| 7/30 | drm/msm/dpu: remove DSPP_SC7180_MASKdrivers/ drivers/ drivers/ +28 more | +1 | 0 replies | |
| 8/30 | drm/msm/dpu: get rid of DPU_CTL_HAS_LAYER_EXT4drivers/ drivers/ drivers/ +6 more | +33 | 0 replies | |
| 9/30 | drm/msm/dpu: get rid of DPU_CTL_ACTIVE_CFGdrivers/ drivers/ drivers/ +14 more | +7 | 0 replies | |
| 10/30 | drm/msm/dpu: get rid of DPU_CTL_FETCH_ACTIVEdrivers/ drivers/ drivers/ | +2 | 0 replies | |
| 11/30 | drm/msm/dpu: get rid of DPU_CTL_DSPP_SUB_BLOCK_FLUSHdrivers/ drivers/ drivers/ | +2 | 0 replies | |
| 12/30 | drm/msm/dpu: get rid of DPU_CTL_VM_CFGdrivers/ drivers/ drivers/ +9 more | +1 | 0 replies | |
| 13/30 | drm/msm/dpu: get rid of DPU_DATA_HCTL_ENdrivers/ drivers/ drivers/ | +2 | 0 replies | |
| 14/30 | drm/msm/dpu: get rid of DPU_INTF_STATUS_SUPPORTEDdrivers/ drivers/ drivers/ | +2 | 0 replies | |
| 15/30 | drm/msm/dpu: get rid of DPU_INTF_INPUT_CTRLdrivers/ drivers/ drivers/ +20 more | +1 | 0 replies | |
| 16/30 | drm/msm/dpu: get rid of DPU_PINGPONG_DSCdrivers/ drivers/ drivers/ +1 more | +3 | 0 replies | |
| 17/30 | drm/msm/dpu: get rid of DPU_PINGPONG_DITHERdrivers/ drivers/ drivers/ +24 more | +1 | 0 replies | |
| 18/30 | drm/msm/dpu: get rid of DPU_MDP_VSYNC_SELdrivers/ drivers/ drivers/ +7 more | +2 | 0 replies | |
| 19/30 | drm/msm/dpu: get rid of DPU_MDP_PERIPH_0_REMOVEDdrivers/ drivers/ drivers/ +7 more | +2 | 0 replies | |
| 20/30 | drm/msm/dpu: get rid of DPU_MDP_AUDIO_SELECTdrivers/ drivers/ drivers/ +4 more | +2 | 1 reply | |
| 21/30 | drm/msm/dpu: get rid of DPU_MIXER_COMBINED_ALPHAdrivers/ drivers/ drivers/ +2 more | +9 | 0 replies | |
| 22/30 | drm/msm/dpu: get rid of DPU_DIM_LAYERdrivers/ drivers/ drivers/ +21 more | +85 | 0 replies | |
| 23/30 | drm/msm/dpu: get rid of DPU_DSC_HW_REV_1_2drivers/ drivers/ drivers/ +9 more | +21 | 0 replies | |
| 24/30 | drm/msm/dpu: get rid of DPU_DSC_OUTPUT_CTRLdrivers/ drivers/ drivers/ +7 more | +8 | 0 replies | |
| 25/30 | drm/msm/dpu: get rid of DPU_WB_INPUT_CTRLdrivers/ drivers/ drivers/ +16 more | +17 | 0 replies | |
| 26/30 | drm/msm/dpu: get rid of DPU_SSPP_QOS_8LVLdrivers/ drivers/ drivers/ +1 more | +9 | 0 replies | |
| 27/30 | drm/msm/dpu: drop unused MDP TOP featuresdrivers/ | +0 | 0 replies | |
| 28/30 | drm/msm/dpu: drop ununused PINGPONG featuresdrivers/ | +0 | 0 replies | |
| 29/30 | drm/msm/dpu: drop ununused MIXER featuresdrivers/ | +2 | 0 replies | |
| 30/30 | drm/msm/dpu: move features out of the DPU_HW_BLK_INFOdrivers/ drivers/ drivers/ +3 more | +13 | 0 replies |
Reviews trailers per patch
All 30 patches have a Reviewed-by or Acked-by.
| Patch | Neil Armstrong | Abhinav Kumar |
|---|---|---|
| 1/30 | R-b | |
| 2/30 | R-b | |
| 3/30 | R-b | |
| 4/30 | R-b | |
| 5/30 | R-b | |
| 6/30 | R-b | |
| 7/30 | R-b | |
| 8/30 | R-b | R-b |
| 9/30 | R-b | |
| 10/30 | R-b | R-b |
| 11/30 | R-b | R-b |
| 12/30 | R-b | R-b |
| 13/30 | R-b | R-b |
| 14/30 | R-b | |
| 15/30 | R-b | |
| 16/30 | R-b | |
| 17/30 | R-b | |
| 18/30 | R-b | |
| 19/30 | R-b | |
| 20/30 | R-b | |
| 21/30 | R-b | |
| 22/30 | R-b | |
| 23/30 | R-b | |
| 24/30 | R-b | |
| 25/30 | R-b | |
| 26/30 | R-b | |
| 27/30 | R-b | |
| 28/30 | R-b | |
| 29/30 | R-b | |
| 30/30 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 00/30] drm/msm/dpu: rework HW block feature handling
Some time ago we started the process of converting HW blocks to use revision-based checks instead of having feature bits (which are easy to miss or to set incorrectly). Then the process of such a conversion was postponed. (Mostly) finish the conversion. The only blocks which still have feature bits are SSPP, WB and VBIF. In the rare cases where behaviour actually differs from platform to platform (or from block to block) use unsigned long bitfields, they have simpler syntax to be checked and don't involve test_bit() invocation.
---
Changes in v5:
- Added version check in _dpu_encoder_phys_cmd_update_intf_cfg() (Neil)
Technically it's not necessary, but it makes it easier to follow the
code.
- Fixed commit message for the DPU_MDP_AUDIO_SELECT patch (Neil)
- Link to v4: https://lore.kernel.org/r/[email protected]
Changes in v4:
- Rebased on top of linux-next
- Dropped three controversial patches, will be submitted separately
- Folded MIXER_SDM845_MASK into MIXER_MSM8998_MASK as they are equal
now.
- Link to v3: https://lore.kernel.org/r/[email protected]
Changes in v3:
- Repost, fixing email/author issues caused by b4 / mailmap interaction
- Link to v2: https://lore.kernel.org/r/[email protected]
Changes in v2:
- Rebased on top of the current msm-next
- Link to v1: https://lore.kernel.org/r/[email protected]
---
Dmitry Baryshkov (30):
drm/msm/dpu: stop passing mdss_ver to setup_timing_gen() drm/msm/dpu: drop INTF_SC7280_MASK drm/msm/dpu: inline _setup_ctl_ops() drm/msm/dpu: inline _setup_dsc_ops() drm/msm/dpu: inline _setup_dspp_ops() drm/msm/dpu: inline _setup_mixer_ops() drm/msm/dpu: remove DSPP_SC7180_MASK drm/msm/dpu: get rid of DPU_CTL_HAS_LAYER_EXT4 drm/msm/dpu: get rid of DPU_CTL_ACTIVE_CFG drm/msm/dpu: get rid of DPU_CTL_FETCH_ACTIVE drm/msm/dpu: get rid of DPU_CTL_DSPP_SUB_BLOCK_FLUSH drm/msm/dpu: get rid of DPU_CTL_VM_CFG drm/msm/dpu: get rid of DPU_DATA_HCTL_EN drm/msm/dpu: get rid of DPU_INTF_STATUS_SUPPORTED drm/msm/dpu: get rid of DPU_INTF_INPUT_CTRL drm/msm/dpu: get rid of DPU_PINGPONG_DSC drm/msm/dpu: get rid of DPU_PINGPONG_DITHER drm/msm/dpu: get rid of DPU_MDP_VSYNC_SEL drm/msm/dpu: get rid of DPU_MDP_PERIPH_0_REMOVED drm/msm/dpu: get rid of DPU_MDP_AUDIO_SELECT drm/msm/dpu: get rid of DPU_MIXER_COMBINED_ALPHA drm/msm/dpu: get rid of DPU_DIM_LAYER drm/msm/dpu: get rid of DPU_DSC_HW_REV_1_2 drm/msm/dpu: get rid of DPU_DSC_OUTPUT_CTRL drm/msm/dpu: get rid of DPU_WB_INPUT_CTRL drm/msm/dpu: get rid of DPU_SSPP_QOS_8LVL drm/msm/dpu: drop unused MDP TOP features drm/msm/dpu: drop ununused PINGPONG features drm/msm/dpu: drop ununused MIXER features drm/msm/dpu: move features out of the DPU_HW_BLK_INFO
.../drm/msm/disp/dpu1/catalog/dpu_10_0_sm8650.h | 49 +++------- .../drm/msm/disp/dpu1/catalog/dpu_1_14_msm8937.h | 2 - .../drm/msm/disp/dpu1/catalog/dpu_1_15_msm8917.h | 2 - .../drm/msm/disp/dpu1/catalog/dpu_1_16_msm8953.h | 2 - .../drm/msm/disp/dpu1/catalog/dpu_1_7_msm8996.h | 7 -- .../drm/msm/disp/dpu1/catalog/dpu_3_0_msm8998.h | 7 -- .../gpu/drm/msm/disp/dpu1/catalog/dpu_3_2_sdm660.h | 7 -- .../gpu/drm/msm/disp/dpu1/catalog/dpu_3_3_sdm630.h | 4 - .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_0_sdm845.h | 17 +--- .../gpu/drm/msm/disp/dpu1/catalog/dpu_4_1_sdm670.h | 11 +-- .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_0_sm8150.h | 39 ++------ .../drm/msm/disp/dpu1/catalog/dpu_5_1_sc8180x.h | 43 ++------- .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_2_sm7150.h | 29 +----- .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_3_sm6150.h | 19 +--- .../gpu/drm/msm/disp/dpu1/catalog/dpu_5_4_sm6125.h | 16 +--- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_0_sm8250.h | 38 ++------ .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_2_sc7180.h | 14 +-- .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_3_sm6115.h | 5 - .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_4_sm6350.h | 16 +--- .../drm/msm/disp/dpu1/catalog/dpu_6_5_qcm2290.h | 5 - .../gpu/drm/msm/disp/dpu1/catalog/dpu_6_9_sm6375.h | 6 -- .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_0_sm8350.h | 40 ++------ .../gpu/drm/msm/disp/dpu1/catalog/dpu_7_2_sc7280.h | 22 +---- .../drm/msm/disp/dpu1/catalog/dpu_8_0_sc8280xp.h | 46 ++------- .../gpu/drm/msm/disp/dpu1/catalog/dpu_8_1_sm8450.h | 43 ++------- .../drm/msm/disp/dpu1/catalog/dpu_8_4_sa8775p.h | 49 ++-------- .../gpu/drm/msm/disp/dpu1/catalog/dpu_9_0_sm8550.h | 43 ++------- .../drm/msm/disp/dpu1/catalog/dpu_9_1_sar2130p.h | 43 ++------- .../drm/msm/disp/dpu1/catalog/dpu_9_2_x1e80100.h | 48 ++-------- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 3 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_vid.c | 5 +- .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c | 7 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 42 +-------- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 102 ++------------------ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.c | 105 ++++++++++----------- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_ctl.h | 4 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.c | 21 ++--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc.h | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dsc_1_2.c | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_dspp.c | 10 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 14 +-- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.c | 28 +++--- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h | 3 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_merge3d.c | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_pingpong.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c | 5 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c | 11 ++- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_wb.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c | 4 +- drivers/gpu/drm/msm/disp/dpu1/dpu_rm.c | 8 +- 52 files changed, 257 insertions(+), 813 deletions(-)
---
base-commit: de63bbeb5af60172f1dd4d45bdc897816753fa69
change-id: 20241213-dpu-drop-features-7603dc3ee189
Best regards,
Signature · 1 line
Dmitry Baryshkov <[email protected]>