]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: Fix warning in dma_fence_is_later on resume from S3.
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Fri, 20 Jul 2018 15:42:24 +0000 (11:42 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 20 Jul 2018 19:24:25 +0000 (14:24 -0500)
commit2d050db15c5ed078426926633254255b1a6b65d2
tree7eb96260468ff35532da5d21ca29b5ee529b0026
parent6e69bfce445189fd3190004466151ade7270fc26
drm/amdgpu: Fix warning in dma_fence_is_later on resume from S3.

Problem:
amdgpu_ttm_set_buffer_funcs_status destroys adev->mman.entity on suspend
without releasing adev->mman.bdev.man[TTM_PL_VRAM].move fence
so on resume the new drm_sched_entity.fence_context causes
the warning against the old fence context which is different.

Fix:
When destroying sched_entity in amdgpu_ttm_set_buffer_funcs_status
release  man->move and set the pointer to NULL.

Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c