Files
linux/drivers/gpu/drm
Alex Hung e561531f2f drm/amd/display: Fix incorrect logic in CRC source handling
[WHAT]
Fix three issues amdgpu_dm_crc.c:
- Use cur_crc_src instead of source when deciding whether to call
  drm_dp_stop_crc() in the disable path of set_crc_source(). When
  disabling CRC, source is always NONE so dm_is_crc_source_dprx(source)
  was always false, meaning drm_dp_stop_crc() was never called when
  stopping a DPRX CRC source. Use cur_crc_src to check what was
  previously active instead.
- Replace fragile 'source < 0' comparisons in verify_crc_source() and
  set_crc_source() with AMDGPU_DM_PIPE_CRC_SOURCE_INVALID.
  and avoiding signed/unsigned enum comparison concerns.
- Remove redundant NULL initializations for drm_dev and acrtc in
  handle_crc_irq(). Both variables are unconditionally assigned right
  after.

Assisted-by: Copilot:Claude-Sonnet-4.6
Reviewed-by: Bhawanpreet Lakha <bhawanpreet.lakha@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Signed-off-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Tested-by: Dan Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2026-06-17 16:10:09 -04:00
..
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-05-28 09:58:36 +02:00
2026-04-07 12:36:31 +02:00
2026-03-12 07:23:23 -07:00