diff options
author | 2022-04-14 16:55:47 +0200 | |
---|---|---|
committer | 2022-04-14 16:55:47 +0200 | |
commit | ce8abf340e40e1126bfcb9e7679b3d6b524ae3e0 (patch) | |
tree | 4f009a42fa3c00d7e2d2fd83b59023674d2e34ba /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | tracing/timer: Add missing argument documentation of trace points (diff) | |
parent | timekeeping: Introduce fast accessor to clock tai (diff) | |
download | wireguard-linux-ce8abf340e40e1126bfcb9e7679b3d6b524ae3e0.tar.xz wireguard-linux-ce8abf340e40e1126bfcb9e7679b3d6b524ae3e0.zip |
Merge tag 'tai-for-tracing' into timers/core
Pull in the NMI safe TAI accessor which was provided for the tracing tree
to prepare for further changes in this area.
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c index 25731719c627..940752488330 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c @@ -1284,6 +1284,7 @@ void amdgpu_bo_get_memory(struct amdgpu_bo *bo, uint64_t *vram_mem, */ void amdgpu_bo_release_notify(struct ttm_buffer_object *bo) { + struct amdgpu_device *adev = amdgpu_ttm_adev(bo->bdev); struct dma_fence *fence = NULL; struct amdgpu_bo *abo; int r; @@ -1303,7 +1304,8 @@ void amdgpu_bo_release_notify(struct ttm_buffer_object *bo) amdgpu_amdkfd_remove_fence_on_pt_pd_bos(abo); if (bo->resource->mem_type != TTM_PL_VRAM || - !(abo->flags & AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE)) + !(abo->flags & AMDGPU_GEM_CREATE_VRAM_WIPE_ON_RELEASE) || + adev->in_suspend || adev->shutdown) return; if (WARN_ON_ONCE(!dma_resv_trylock(bo->base.resv))) |