Linux ARM-MSM sub-architecture
 help / color / mirror / Atom feed
* [PATCH v3 0/9] drm/msm/dpu: be more friendly to X.org
@ 2024-06-13 22:36 Dmitry Baryshkov
  2024-06-13 22:36 ` [PATCH v3 1/9] drm/msm/dpu: check for overflow in _dpu_crtc_setup_lm_bounds() Dmitry Baryshkov
                   ` (8 more replies)
  0 siblings, 9 replies; 28+ messages in thread
From: Dmitry Baryshkov @ 2024-06-13 22:36 UTC (permalink / raw)
  To: Rob Clark, Abhinav Kumar, Sean Paul, Marijn Suijten, David Airlie,
	Daniel Vetter
  Cc: Abel Vesa, Johan Hovold, linux-arm-msm, dri-devel, freedreno

Unlike other compositors X.org allocates a single framebuffer covering
the whole screen space. This is not an issue with the single screens,
but with the multi-monitor setup 5120x4096 becomes a limiting factor.
Check the hardware-bound limitations and lift the FB max size to
16383x16383.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
---
Changes in v3:
- Reoder the functions to pull up a fix to the start of the patchset
  (Abhinav)
- Rename the _dpu_crtc_setup_lm_bounds() to
  _dpu_crtc_check_and_setup_lm_bounds() (Abhinav)
- Make dpu_crtc_mode_valid() static.
- Link to v2: https://lore.kernel.org/r/20240603-dpu-mode-config-width-v2-0-16af520575a6@linaro.org

Changes in v2:
- Added dpu_crtc_valid() to verify that 2*lm_width limit is enforced
  (Abhinav)
- Link to v1: https://lore.kernel.org/r/20240319-dpu-mode-config-width-v1-0-d0fe6bf81bf1@linaro.org

---
Dmitry Baryshkov (9):
      drm/msm/dpu: check for overflow in _dpu_crtc_setup_lm_bounds()
      drm/msm/dpu: drop dpu_format_check_modified_format
      drm/msm/dpu: drop dpu_format_populate_layout from dpu_plane_sspp_atomic_update
      drm/msm/dpu: split dpu_format_populate_layout
      drm/msm/dpu: move dpu_format_populate_plane_sizes to atomic_check
      drm/msm/dpu: check for the plane pitch overflow
      drm/msm/dpu: drop _dpu_crtc_check_and_setup_lm_bounds from atomic_begin
      drm/msm/dpu: merge MAX_IMG_WIDTH/HEIGHT with DPU_MAX_IMG_WIDTH/HEIGHT
      drm/msm/dpu: sync mode_config limits to the FB limits in dpu_plane.c

 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c           | 32 ++++++--
 .../gpu/drm/msm/disp/dpu1/dpu_encoder_phys_wb.c    |  8 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c        | 91 ++++++----------------
 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h        | 24 ++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h     |  4 +-
 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h        |  2 +
 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c            | 10 +--
 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c          | 37 +++++----
 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.h          |  3 +
 drivers/gpu/drm/msm/msm_kms.h                      |  6 --
 10 files changed, 91 insertions(+), 126 deletions(-)
---
base-commit: 03d44168cbd7fc57d5de56a3730427db758fc7f6
change-id: 20240318-dpu-mode-config-width-626d3c7ad52a

Best regards,
-- 
Dmitry Baryshkov <dmitry.baryshkov@linaro.org>


^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2024-06-20 11:59 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-13 22:36 [PATCH v3 0/9] drm/msm/dpu: be more friendly to X.org Dmitry Baryshkov
2024-06-13 22:36 ` [PATCH v3 1/9] drm/msm/dpu: check for overflow in _dpu_crtc_setup_lm_bounds() Dmitry Baryshkov
2024-06-13 23:13   ` Abhinav Kumar
2024-06-18 22:49     ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 2/9] drm/msm/dpu: drop dpu_format_check_modified_format Dmitry Baryshkov
2024-06-13 23:14   ` Abhinav Kumar
2024-06-18 22:50     ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 3/9] drm/msm/dpu: drop dpu_format_populate_layout from dpu_plane_sspp_atomic_update Dmitry Baryshkov
2024-06-18 22:51   ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 4/9] drm/msm/dpu: split dpu_format_populate_layout Dmitry Baryshkov
2024-06-18 22:51   ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 5/9] drm/msm/dpu: move dpu_format_populate_plane_sizes to atomic_check Dmitry Baryshkov
2024-06-13 23:19   ` Abhinav Kumar
2024-06-14 10:34     ` Dmitry Baryshkov
2024-06-18 22:52       ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 6/9] drm/msm/dpu: check for the plane pitch overflow Dmitry Baryshkov
2024-06-18 22:53   ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 7/9] drm/msm/dpu: drop _dpu_crtc_check_and_setup_lm_bounds from atomic_begin Dmitry Baryshkov
2024-06-13 23:20   ` Abhinav Kumar
2024-06-18 22:56     ` Abhinav Kumar
2024-06-19  3:26       ` Dmitry Baryshkov
2024-06-19 17:10         ` Abhinav Kumar
2024-06-20 11:59           ` Dmitry Baryshkov
2024-06-13 22:36 ` [PATCH v3 8/9] drm/msm/dpu: merge MAX_IMG_WIDTH/HEIGHT with DPU_MAX_IMG_WIDTH/HEIGHT Dmitry Baryshkov
2024-06-18 22:57   ` Abhinav Kumar
2024-06-13 22:36 ` [PATCH v3 9/9] drm/msm/dpu: sync mode_config limits to the FB limits in dpu_plane.c Dmitry Baryshkov
2024-06-13 23:16   ` Abhinav Kumar
2024-06-18 22:57     ` Abhinav Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox