]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/tests: Add helper to create mock crtc
authorMaxime Ripard <mripard@kernel.org>
Thu, 22 Feb 2024 18:13:50 +0000 (19:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 25 Apr 2025 08:45:07 +0000 (10:45 +0200)
commit60f481fdf1e75187975ba86945f0be68eb22c511
tree74b0ec425741c110a56b689b1dfca2747dd2d01b
parentaf1dccab386f46ec8da07cf80a794bf19ae3cc96
drm/tests: Add helper to create mock crtc

[ Upstream commit 51f90720381dea79208513d059e0eb426dee511e ]

We're going to need a full-blown, functional, KMS device to test more
components of the atomic modesetting infrastructure.

Let's add a new helper to create a dumb, mocked, CRTC. By default it
will create a CRTC relying only on the default helpers, but drivers are
free to deviate from that.

Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com>
Signed-off-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240222-kms-hdmi-connector-state-v7-4-8f4af575fce2@kernel.org
Stable-dep-of: 70f29ca3117a ("drm/tests: cmdline: Fix drm_display_mode memory leak")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/tests/drm_kunit_helpers.c
include/drm/drm_kunit_helpers.h