aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
diff options
context:
space:
mode:
authorAnshuman Gupta <[email protected]>2022-10-27 09:22:42 +0000
committerAnshuman Gupta <[email protected]>2022-10-31 13:01:09 +0000
commit1cacd6894d5f4084f1581435e92d8a18d6721b25 (patch)
treedeabe3039149eb1e23b1dbd9b46b5729f23fd559 /drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
parentdrm/i915: Encapsulate lmem rpm stuff in intel_runtime_pm (diff)
downloadkernel-1cacd6894d5f4084f1581435e92d8a18d6721b25.tar.gz
kernel-1cacd6894d5f4084f1581435e92d8a18d6721b25.zip
drm/i915/dgfx: Grab wakeref at i915_ttm_unmap_virtual
We had already grabbed the rpm wakeref at obj destruction path, but it also required to grab the wakeref when object moves. When i915_gem_object_release_mmap_offset() gets called by i915_ttm_move_notify(), it will release the mmap offset without grabbing the wakeref. We want to avoid that therefore, grab the wakeref at i915_ttm_unmap_virtual() accordingly. While doing that also changed the lmem_userfault_lock from mutex to spinlock, as spinlock widely used for list. Also changed if (obj->userfault_count) to GEM_BUG_ON(!obj->userfault_count). v2: - Removed lmem_userfault_{list,lock} from intel_gt. [Matt Auld] Fixes: ad74457a6b5a ("drm/i915/dgfx: Release mmap on rpm suspend") Suggested-by: Matthew Auld <[email protected]> Signed-off-by: Anshuman Gupta <[email protected]> Reviewed-by: Matthew Auld <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c')
0 files changed, 0 insertions, 0 deletions