]> git.hungrycats.org Git - linux/commit
drm/amd/display: Test HPD interrupt handling
authorAlex Hung <alex.hung@amd.com>
Thu, 25 Jun 2026 19:07:40 +0000 (13:07 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 15 Jul 2026 13:15:38 +0000 (09:15 -0400)
commit4c28526e9a1089ff86db5a2680a4fa3897ae477c
treee78887a470f11145a482394f1ba50b0a9944df25
parent747e1b0dc7b262d2dfff7261783330f32594b20f
drm/amd/display: Test HPD interrupt handling

Add KUnit coverage for the HPD interrupt-handling helpers: the HPD-RX
offload worker, the HDMI HPD debounce worker, handle_hpd_irq_helper(),
handle_hpd_irq(), schedule_hpd_rx_offload_work() and handle_hpd_rx_irq().
Expose these statics for KUnit and add the stub link-service callbacks,
sink helpers and fixtures the tests rely on.

Assisted-by: Copilot:Claude-Opus-4.8
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: George Zhang <george.zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.h
drivers/gpu/drm/amd/display/amdgpu_dm/tests/amdgpu_dm_irq_test.c