aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
diff options
context:
space:
mode:
authorShuah Khan <[email protected]>2021-02-27 00:07:00 +0000
committerIngo Molnar <[email protected]>2021-03-06 11:51:15 +0000
commitbdb1050ee1faaec1e78c15de8b1959176f26c655 (patch)
tree931c522811a0a34b020ae4ed0b2d1044176e612e /drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
parentlockdep: Add lockdep lock state defines (diff)
downloadkernel-bdb1050ee1faaec1e78c15de8b1959176f26c655.tar.gz
kernel-bdb1050ee1faaec1e78c15de8b1959176f26c655.zip
ath10k: Detect conf_mutex held ath10k_drain_tx() calls
ath10k_drain_tx() must not be called with conf_mutex held as workers can use that also. Add call to lockdep_assert_not_held() on conf_mutex to detect if conf_mutex is held by the caller. The idea for this patch stemmed from coming across the comment block above the ath10k_drain_tx() while reviewing the conf_mutex holds during to debug the conf_mutex lock assert in ath10k_debug_fw_stats_request(). Adding detection to assert on conf_mutex hold will help detect incorrect usages that could lead to locking problems when async worker routines try to call this routine. Signed-off-by: Shuah Khan <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Acked-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/linux-wireless/[email protected]/
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c')
0 files changed, 0 insertions, 0 deletions