From: Alex Hung <[email protected]> [WHY] IRQ tests leave vblank active when removing their fake CRTCs, causing warnings during DRM device teardown.
[HOW] Turn off initialized vblank before unlinking each test CRTC in the existing cleanup action. Assisted-by: Copilot:GPT-6-Astra Reviewed-by: Bhawanpreet Lakha <[email protected]> Signed-off-by: Alex Hung <[email protected]> Signed-off-by: George Zhang <[email protected]> --- .../gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c index 72207eb4e076..c130f0d07315 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c @@ -480,6 +480,9 @@ static void dm_test_crtc_list_del(void *data) { struct amdgpu_crtc *acrtc = data; + if (acrtc->base.dev && drm_dev_has_vblank(acrtc->base.dev)) + drm_crtc_vblank_off(&acrtc->base); + list_del_init(&acrtc->base.head); } -- 2.55.0
