Skip to content

drm/msm/dpu: Initialize SSPP scaler version (from register read)

Marijn Suijten dri-devel linux-arm-msm lkml phone-devel 1 version In review

Get series with b4
b4 am [email protected] change-id 20230215-sspp-scaler-version-19f221585c5e

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/msm/dpu: Read previously-uninitialized SSPP scaler version from hwdrivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h+10 -35 replies
2/3drm/msm/dpu: Drop unused get_scaler_ver callback from SSPPdrivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h+1 -91 reply
3/3drm/msm/dpu: Drop unused qseed_type from catalog dpu_capsdrivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h+0 -141 reply

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchDmitry Baryshkov
1/3
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] drm/msm/dpu: Initialize SSPP scaler version (from register read)

Random inspection of the SSPP code surfaced that the version field of dpu_scaler_blk was never assigned in the catalog, resulting in wrong codepaths to be taken within dpu_hw_setup_scaler3 based on a 0 version. Rectify this by reading an accurate value from a register (that is not equal to the values represented by DPU_SSPP_SCALER_QSEEDx enum variants) and deleting dead code around QSEED versioning.

Future changes should likely get rid of the distinction between QSEED3 and up, as these are now purely determined from the register value. Furthermore implementations could look at the scaler subblk .id field rather than the SSPP feature bits, which currently hold redundant information.

---
Marijn Suijten (3):
drm/msm/dpu: Read previously-uninitialized SSPP scaler version from hw drm/msm/dpu: Drop unused get_scaler_ver callback from SSPP drm/msm/dpu: Drop unused qseed_type from catalog dpu_caps

 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 12 ------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h |  4 ----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c    | 12 ++++++++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h    |  9 +++------
 4 files changed, 11 insertions(+), 26 deletions(-)

---
base-commit: 9d9019bcea1aac7eed64a1a4966282b6b7b141c8
change-id: 20230215-sspp-scaler-version-19f221585c5e

Best regards,

Signature · 1 line
Marijn Suijten <[email protected]>