]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amd/display: Fix incorrect return of vblank enable on unconfigured crtc
authorIvan Lipski <ivan.lipski@amd.com>
Wed, 17 Sep 2025 15:00:02 +0000 (11:00 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Oct 2025 13:58:40 +0000 (09:58 -0400)
commitcb57b8cdb072dc37723b6906da1c37ff9cbc2da4
tree86c870fffe301f8d23304aa959355722c9edfe28
parent99441824bec63549a076cd86631d138ec9a0c71c
drm/amd/display: Fix incorrect return of vblank enable on unconfigured crtc

[Why&How]
Return -EINVAL when userspace asks us to enable vblank on a crtc that is
not yet enabled.

Suggested-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Reviewed-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Closes: https://gitlab.freedesktop.org/drm/amd/-/issues/1856
Signed-off-by: Ivan Lipski <ivan.lipski@amd.com>
Signed-off-by: Wayne Lin <wayne.lin@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c