]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: don't call dc_interrupt_set() for disabled crtcs
authorHamza Mahfooz <hamza.mahfooz@amd.com>
Wed, 8 Feb 2023 18:25:49 +0000 (13:25 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Feb 2023 15:01:49 +0000 (10:01 -0500)
commit4936458bf989d168f5a89015dd81067c4c2bdc64
tree322e339c213b3059a1a1abf0a4d809c7d3ab55a9
parent8e08e2d5d7c66e4267d84d9f6bc6c4eabd820ae3
drm/amd/display: don't call dc_interrupt_set() for disabled crtcs

As made mention of in commit 4ea7fc09539b ("drm/amd/display: Do not
program interrupt status on disabled crtc"), we shouldn't program
disabled crtcs. So, filter out disabled crtcs in dm_set_vupdate_irq()
and dm_set_vblank().

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Fixes: 589d2739332d ("drm/amd/display: Use crtc enable/disable_vblank hooks")
Fixes: d2574c33bb71 ("drm/amd/display: In VRR mode, do DRM core vblank handling at end of vblank. (v2)")
Signed-off-by: Hamza Mahfooz <hamza.mahfooz@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_crtc.c