[PATCH v5 0/4] drm/vkms: Add support for multiple pipes

Marius Vlad marius.vlad at collabora.com
Mon May 8 07:53:52 UTC 2023


With multiple pipe available we can perform management of outputs at
a more granular level, such that we're able to turn off or on several
outputs at a time, or combinations that arise from doing that. 

The Weston project use VKMS when running its test suite in CI, and we
have now uses cases which would need to ability to set-up the outputs
DPMS/state individually, rather than globally -- which would affect all
outputs. This an attempt on fixing that by giving the possibility to
create more than one pipe, and thus allowing to run tests that could
exercise code paths in the compositor related to management of outputs.

v5:
  - Rather than shrinking the number of pipes to a maximum of 3, adjust
    the maximum overlay planes we can have. Adds a new patch to allow
    doing that. (Maíra Canal)

v4:
  - Avoid a WARN_ON() in __drm_universal_plane_init() that happens when 
  passing 4 pipes together with overlay planes enabled. (Maíra Canal)
  - Another rebase on top of drm-misc-next

v3:
  - Apply the series against drm-misc-next (Maíra Canal)
  - Add a lower range check to avoid passing negative values to
  max_pipes (Maíra Canal)

v2:
  - Replace 'outputs' with 'pipes' as to use the proper terminology 
    (Thomas Zimmermann, Maíra Canal)
  - Fixed passing wrong possible_crtc bitmask when initializing the
    write back connector which address kms_writeback failure (Maíra Canal)
  - Add a feat. note about moving overlay planes between CRTCs (Melissa Wen)

Marius Vlad (4):
  vkms: Pass the correct bitmask for possible crtcs
  drm/vkms: Add overlay_planes config
  vkms: Add support for multiple pipes
  Documentation/gpu/vkms.rst: Added a note about plane migration

 Documentation/gpu/vkms.rst            |  5 ++--
 drivers/gpu/drm/vkms/vkms_crtc.c      |  3 +--
 drivers/gpu/drm/vkms/vkms_drv.c       | 39 ++++++++++++++++++++++-----
 drivers/gpu/drm/vkms/vkms_drv.h       | 13 ++++++---
 drivers/gpu/drm/vkms/vkms_output.c    |  9 +++----
 drivers/gpu/drm/vkms/vkms_writeback.c | 24 ++++++++---------
 6 files changed, 63 insertions(+), 30 deletions(-)

-- 
2.39.2



More information about the dri-devel mailing list