]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vkms: Allow to configure multiple CRTCs
authorJosé Expósito <jose.exposito89@gmail.com>
Tue, 18 Feb 2025 10:12:09 +0000 (11:12 +0100)
committerMaxime Ripard <mripard@kernel.org>
Fri, 7 Mar 2025 09:58:24 +0000 (10:58 +0100)
commit600df32dac40ad4b1069615a970063f0b15abfda
treea8fb2be2bf7bfd9ba9e77a9e19685fab2ad59b01
parentbc5b0d5dccf3c842872d63b937a1bb2a6e93d5b0
drm/vkms: Allow to configure multiple CRTCs

Add a list of CRTCs to vkms_config and helper functions to add and
remove as many CRTCs as wanted.

For backwards compatibility, add one CRTC to the default configuration.

A future patch will allow to attach planes and CRTCs, but for the
moment there are no changes in the way the output is configured.

Reviewed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Co-developed-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250218101214.5790-10-jose.exposito89@gmail.com
Signed-off-by: Maxime Ripard <mripard@kernel.org>
.clang-format
drivers/gpu/drm/vkms/tests/vkms_config_test.c
drivers/gpu/drm/vkms/vkms_config.c
drivers/gpu/drm/vkms/vkms_config.h