mbox series

[RFC,0/2] Add DPU DSC helper module

Message ID 1677267647-28672-1-git-send-email-quic_khsieh@quicinc.com (mailing list archive)
Headers show
Series Add DPU DSC helper module | expand

Message

Kuogee Hsieh Feb. 24, 2023, 7:40 p.m. UTC
There is a lots of duplicate calculation for DSC encoder between DSI and DP.
Also, with more DSC version it is easier to have a common helper module which 
handle all the DPU DSC encoder math.

This series has only been compile test because there is no DSI DSC V1.1 panel
to test it as DSC V1.2 panel is yet to be brough it up. In preparation to post
DSC V1.2 over DP, let's handle all common DSI and DP DSC parameters calculation
in this new module.

Kuogee Hsieh (2):
  drm/msm/dpu: add dsc helper functions
  drm/msm/dsi: use new dpu_dsc_populate_dsc_config()

 drivers/gpu/drm/msm/Makefile                   |   1 +
 drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.c | 209 +++++++++++++++++++++++++
 drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.h |  34 ++++
 drivers/gpu/drm/msm/dsi/dsi_host.c             |  78 ++-------
 4 files changed, 256 insertions(+), 66 deletions(-)
 create mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.c
 create mode 100644 drivers/gpu/drm/msm/disp/dpu1/dpu_dsc_helper.h