mbox series

[v2,0/3] drm/vkms: Add support for multiple pipes

Message ID 20230420084147.19042-1-marius.vlad@collabora.com (mailing list archive)
Headers show
Series drm/vkms: Add support for multiple pipes | expand

Message

Marius Vlad April 20, 2023, 8:41 a.m. UTC
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.

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 (3):
  vkms: Pass the correct bitmask for possible crtcs
  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       | 27 ++++++++++++++++++++++-----
 drivers/gpu/drm/vkms/vkms_drv.h       | 11 ++++++++---
 drivers/gpu/drm/vkms/vkms_output.c    |  7 +++----
 drivers/gpu/drm/vkms/vkms_writeback.c | 24 ++++++++++++------------
 6 files changed, 49 insertions(+), 28 deletions(-)