Skip to content

drm/vkms: Add virtual hardware module

Sumera Priyadarsini dri-devel lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest2 patches 1 replyIn review
  2. v52 patches 1 replySuperseded
  3. v42 patches 4 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v32 patches1 replySuperseded
v22 patches0 repliesSuperseded
v1 RFC1 patch6 repliesSuperseded

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/vkms: Refactor vkms_composer_worker() to prep for virtual_hw modedrivers/gpu/drm/vkms/vkms_composer.c drivers/gpu/drm/vkms/vkms_drv.h+45 -320 replies
2/2drm/vkms: Add support for virtual hardware modedrivers/gpu/drm/vkms/vkms_composer.c drivers/gpu/drm/vkms/vkms_crtc.c drivers/gpu/drm/vkms/vkms_drv.c +2 more+74 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v6 yet.

Read the v6 thread

Cover letter [PATCH V6 0/2] drm/vkms: Add virtual hardware module

This patchset adds support for emulating virtual hardware with VKMS. The virtual hardware mode can be enabled by using the following command while loading the module:
sudo modprobe vkms enable_virtual_hw=1

The first patch is prep work for adding virtual_hw mode and refactors the plane composition in vkms by adding a helper function vkms_composer_common() which can be used for both vblank mode and virtual mode.

The second patch adds virtual hardware support as a module option. It adds new atomic helper functions for the virtual mode and uses the existing atomic helpers for vblank mode This gives us two sets of drm_crtc_funcs and drm_crtc_helper_funcs structs for both modes, making the code flow cleaner and easier to debug.

This patchset has been tested with the igt tests- kms_writeback, kms_atomic, kms_lease, kms_flip, kms_pipe_get_crc and preserves results except for subtests related to crc reads and vertical blanking, in which case, tests are skipped.

Sumera Priyadarsini (2):
drm/vkms: Refactor vkms_composer_worker() to prep for virtual_hw mode drm/vkms: Add support for virtual hardware mode

 drivers/gpu/drm/vkms/vkms_composer.c  | 92 +++++++++++++++++----------
 drivers/gpu/drm/vkms/vkms_crtc.c      | 43 ++++++++++++-
 drivers/gpu/drm/vkms/vkms_drv.c       | 16 +++--
 drivers/gpu/drm/vkms/vkms_drv.h       |  4 ++
 drivers/gpu/drm/vkms/vkms_writeback.c |  3 +-
 5 files changed, 117 insertions(+), 41 deletions(-)
Signature · 1 line
2.31.1