drm/amd/display: Check for tg ops in dce110_set_avmute
authorRay Wu <ray.wu@amd.com>
Wed, 5 Aug 2026 01:47:17 +0000 (09:47 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Aug 2026 18:33:54 +0000 (14:33 -0400)
commit3141e3d61469bba2624a91c5e2407f110b33b29e
tree5185af10f9330a4c97e7b7b961be52a8c0120339
parentb96c529cd2551b78316a4afa3237b2ed96ba03c8
drm/amd/display: Check for tg ops in dce110_set_avmute

Some older DCE timing generators do not implement is_tg_enabled in
their ops table. Calling it unconditionally when waiting for AV mute
frames causes a NULL pointer dereference on Southern Islands dGPUs
when turning the display off over HDMI.

Check that tg and the required ops exist before waiting for frames.

Fixes: 414da24137ac ("drm/amd/display: Add AV mute wait frames to dce110_set_avmute")
Closes: https://gitlab.freedesktop.org/drm/amd/-/work_items/5557
Tested-by: Viktor Jägersküpper <viktor_jaegerskuepper@freenet.de>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 2686a0c0aaa07bec2e24131835cf27b5fd4935a5)
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/hwss/dce110/dce110_hwseq.c