summaryrefslogtreecommitdiff
path: root/scripts/Makefile.thinlto
diff options
context:
space:
mode:
authorVitaly Prosyak <vitaly.prosyak@amd.com>2026-09-29 20:18:26 -0400
committerAlex Deucher <alexander.deucher@amd.com>2026-10-07 12:02:50 -0400
commit51a4359f7431a4be5e42803c8bdaf7e0e5be2934 (patch)
tree4386479c42882e984a05b152db8b08cc7c6af850 /scripts/Makefile.thinlto
parent010e510347f522f5c83c5bd1124b5de9c7f52c27 (diff)
downloadlinux-next-51a4359f7431a4be5e42803c8bdaf7e0e5be2934.tar.gz
linux-next-51a4359f7431a4be5e42803c8bdaf7e0e5be2934.zip
drm/amdgpu: serialize vblank counter reads against GPU reset
The vblank counter callback reads display registers and scanout position without holding reset_domain->sem. During GPU recovery, display commit work can call the callback while reset owns the semaphore for writing. The hardware access then triggers the lockdep_assert_held() in amdgpu_device_skip_hw_access() and sets TAINT_WARN when lockdep is enabled. Try to acquire the reset semaphore for reading before accessing the hardware, and hold it across the counter and scanout-position reads. If reset is already in progress, return DRM's cached software vblank count instead. This avoids blocking behind reset and avoids accessing display hardware while it is being reset. The cached count is less accurate than the hardware count, but is used only when reset prevents a safe hardware read. This addresses the reset-time warning from this vblank path; it does not suppress or fix unrelated lockdep warnings. Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: Harry Wentland <harry.wentland@amd.com> Cc: Sunpeng Li <sunpeng.li@amd.com> Signed-off-by: Vitaly Prosyak <vitaly.prosyak@amd.com> Reviewed-by: Sunpeng Li <sunpeng.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions