Message ID | 20230405-add-dsc-support-v6-0-95eab864d1b6@quicinc.com (mailing list archive) |
---|---|
Headers | show |
Series | Add DSC v1.2 Support for DSI | expand |
On Fri, 09 Jun 2023 15:57:12 -0700, Jessica Zhang wrote: > This is a series of changes for DSI to enable command mode support > for DSC v1.2. > > This includes: > > 1) Rounding up `hdisplay / 3` in dsc_timing_setup() > 2) Adjusting pclk_rate to account for compression > 3) Fixing incorrect uses of slice_count in DSI DSC calculations > 4) Setting the DATA_COMPRESS bit when DSC is enabled > > [...] Applied, thanks! [1/6] msm/drm/dsi: Round up DSC hdisplay calculation https://gitlab.freedesktop.org/lumag/msm/-/commit/21bf617110ba [2/6] drm/msm/dsi: Reduce pclk rate for compression https://gitlab.freedesktop.org/lumag/msm/-/commit/7c9e4a554d4a [3/6] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag for DPU >= 7.0 https://gitlab.freedesktop.org/lumag/msm/-/commit/22598cfc94bb [4/6] drm/msm/dpu: Set DATA_COMPRESS on command mode for DCE/DSC 1.2 https://gitlab.freedesktop.org/lumag/msm/-/commit/1642b5803473 [5/6] drm/msm/dsi: Remove incorrect references to slice_count https://gitlab.freedesktop.org/lumag/msm/-/commit/155fa3a91d64 Note, patch 6 is skipped for now Best regards,
On 2023-06-15 14:31:26, Dmitry Baryshkov wrote: > > On Fri, 09 Jun 2023 15:57:12 -0700, Jessica Zhang wrote: > > This is a series of changes for DSI to enable command mode support > > for DSC v1.2. > > > > This includes: > > > > 1) Rounding up `hdisplay / 3` in dsc_timing_setup() > > 2) Adjusting pclk_rate to account for compression > > 3) Fixing incorrect uses of slice_count in DSI DSC calculations > > 4) Setting the DATA_COMPRESS bit when DSC is enabled > > > > [...] > > Applied, thanks! > > [1/6] msm/drm/dsi: Round up DSC hdisplay calculation > https://gitlab.freedesktop.org/lumag/msm/-/commit/21bf617110ba > [2/6] drm/msm/dsi: Reduce pclk rate for compression > https://gitlab.freedesktop.org/lumag/msm/-/commit/7c9e4a554d4a > [3/6] drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag for DPU >= 7.0 > https://gitlab.freedesktop.org/lumag/msm/-/commit/22598cfc94bb > [4/6] drm/msm/dpu: Set DATA_COMPRESS on command mode for DCE/DSC 1.2 > https://gitlab.freedesktop.org/lumag/msm/-/commit/1642b5803473 > [5/6] drm/msm/dsi: Remove incorrect references to slice_count > https://gitlab.freedesktop.org/lumag/msm/-/commit/155fa3a91d64 > > Note, patch 6 is skipped for now Note that we also haven't finished discussions on where the ratio in patch 2/6 comes from and how that should be outlined in patch 6. Related to the widebus patches which affect the ratio as well. - Marijn
This is a series of changes for DSI to enable command mode support for DSC v1.2. This includes: 1) Rounding up `hdisplay / 3` in dsc_timing_setup() 2) Adjusting pclk_rate to account for compression 3) Fixing incorrect uses of slice_count in DSI DSC calculations 4) Setting the DATA_COMPRESS bit when DSC is enabled With these changes (and the dependency below), DSC v1.2 should work over DSI in command mode. Note: Changes that add DSC v1.2 support for video mode will be posted with the DP support changes. Depends-on: - "add DSC 1.2 dpu supports" [1] - "Introduce MSM-specific DSC helpers" [2] - "drm/msm/dsi: use mult_frac for pclk_bpp calculation" [3] [1] https://patchwork.freedesktop.org/series/116789/ [2] https://patchwork.freedesktop.org/series/115833/ [3] https://patchwork.freedesktop.org/patch/538273/?series=118072&rev=1 Signed-off-by: Jessica Zhang <quic_jesszhan@quicinc.com> --- Changes in v6: - "Adjust" --> "Reduce" in pclk patch title (Marijn) - dsi_adjust_compressed_pclk() --> dsi_adjust_pclk_for_compression() (Marijn) - Moved dsi_adjust_pclk_for_compression() to before is_bonded_dsi pclk adjustment (Dmitry) - Added documentation comments explaining the pclk_rate and hdisplay adjustments related to DSC (Dmitry) - Only set DATA_COMPRESS bit if DSC is enabled (Abhinav) - Rebased on top of latest msm-next-lumag branch - Link to v5: https://lore.kernel.org/r/20230405-add-dsc-support-v5-0-028c10850491@quicinc.com Changes in v5: - Added newline before enable_compression() function pointer definition - Rebased on top of "drm/msm/dsi: use mult_frac for pclk_bpp calculation" - Reworded commit messages for clarity - Dropped mentions of "soft slice" in commit messages - "slice_per_packet" -> "slice_per_pkt" - Picked up reviewed-by tags - Link to v4: https://lore.kernel.org/r/20230405-add-dsc-support-v4-0-15daf84f8dcb@quicinc.com Changes in v4: - Clarified slice_per_pkt comment regarding pkt_per_line calculations - Reworded commit message for "drm/msm/dsi: Remove incorrect references to slice_count" - Wrapped INTF_SC7280_MASK macro definition in parentheses - Fixed incorrect commit hash in "msm/drm/dsi: Round up DSC hdisplay calculation" - Picked up Reviewed-by tag - Link to v3: https://lore.kernel.org/r/20230405-add-dsc-support-v3-0-6e1d35a206b3@quicinc.com Changes in v3: - Added fix to round up hdisplay DSC adjustment - Fixed inconsistent whitespace in dpu_hw_intf_ops comment doc - Moved placement of dpu_hw_intf_enable_compression - Picked up "drm/msm/dsi: Fix calculation for pkt_per_line" patch and squashed all slice_count fixes into a single patch - Use drm_mode_vrefresh() to calculate adjusted pclk rate - Moved compressed pclk adjustment to dsi_adjust_compressed_pclk() helper - Rebased changes on top of updated dependencies - Reworded commit message for "drm/msm/dpu: Set DATA_COMPRESS for command mode" for clarity - Removed revision changelog in commit messages - Link to v2: https://lore.kernel.org/r/20230405-add-dsc-support-v2-0-1072c70e9786@quicinc.com Changes in v2: - Changed has_data_compress dpu_cap to a DATA_COMPRESS INTF feature flag - Changed pclk math to only divide hdisplay by compression ratio - Reworded word count TODO comment - Make DATA_COMPRESS an INTF flag - Read INTF_CONFIG2 before writing to DATA_COMPRESS bit - Fixed whitespace issue in macro definition - Removed `inline` from dpu_hw_intf_enable_compression declaration - Only set dpu_hw_intf_ops.data_compress if DATA_COMPRESS feature is set - Reworded commit messages and cover letter for clarity - Link to v1: https://lore.kernel.org/r/20230405-add-dsc-support-v1-0-6bc6f03ae735@quicinc.com --- Jessica Zhang (6): msm/drm/dsi: Round up DSC hdisplay calculation drm/msm/dsi: Reduce pclk rate for compression drm/msm/dpu: Add DPU_INTF_DATA_COMPRESS feature flag for DPU >= 7.0 drm/msm/dpu: Set DATA_COMPRESS on command mode for DCE/DSC 1.2 drm/msm/dsi: Remove incorrect references to slice_count drm/msm/dsi: Document DSC related pclk_rate and hdisplay calculations .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 3 ++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c | 2 +- drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h | 2 + drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.c | 13 +++++ drivers/gpu/drm/msm/disp/dpu1/dpu_hw_intf.h | 3 ++ drivers/gpu/drm/msm/dsi/dsi_host.c | 59 +++++++++++++++++----- 6 files changed, 67 insertions(+), 15 deletions(-) --- base-commit: 8dc20f06b90af85c083866df73dae69236183b62 change-id: 20230405-add-dsc-support-fe130ba49841 Best regards,