Re: [PATCH] drm/amdgpu: Fix warning in dma_fence_is_later on resume from S3.

2018-07-23 Thread Zhang, Jerry (Junwei)
On 07/20/2018 11:47 PM, Andrey Grodzovsky wrote: 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 whi

Re: [PATCH] drm/amdgpu: Fix warning in dma_fence_is_later on resume from S3.

2018-07-20 Thread Christian König
Am 20.07.2018 um 17:47 schrieb Andrey Grodzovsky: 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 wh

[PATCH] drm/amdgpu: Fix warning in dma_fence_is_later on resume from S3.

2018-07-20 Thread Andrey Grodzovsky
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