diff options
| author | Felix Kuehling <[email protected]> | 2021-06-14 17:59:34 -0400 | 
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2021-06-15 17:25:42 -0400 | 
| commit | d760895d55cd7a2d3814fbd581b7ca29f1f73205 (patch) | |
| tree | 14565031ee49dfcb90aec19ed384433c6bddef56 /drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c | |
| parent | 1ba7b24ba68e7c04b1e67d986d02b966b4eaaaa0 (diff) | |
drm/amdgpu: Use spinlock_irqsave for pasid_lock
This should fix a kernel LOCKDEP warning on Vega10:
[  149.416604] ================================
[  149.420877] WARNING: inconsistent lock state
[  149.425152] 5.11.0-kfd-fkuehlin #517 Not tainted
[  149.429770] --------------------------------
[  149.434053] inconsistent {HARDIRQ-ON-W} -> {IN-HARDIRQ-W} usage.
[  149.440059] swapper/3/0 [HC1[1]:SC0[0]:HE0:SE1] takes:
[  149.445198] ffff9ac80e005d68 (&adev->vm_manager.pasid_lock){?.+.}-{2:2}, at: amdgpu_vm_get_task_info+0x25/0x90 [amdgpu]
[  149.456252] {HARDIRQ-ON-W} state was registered at:
[  149.461136]   lock_acquire+0x242/0x390
[  149.464895]   _raw_spin_lock+0x2c/0x40
[  149.468647]   amdgpu_vm_handle_fault+0x44/0x380 [amdgpu]
[  149.474187]   gmc_v9_0_process_interrupt+0xa8/0x410 [amdgpu]
...
Signed-off-by: Felix Kuehling <[email protected]>
Reviewed-by: Christian König <[email protected]>
Reviewed-by: Oak Zeng <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_fdinfo.c')
0 files changed, 0 insertions, 0 deletions