diff options
author | Andrey Grodzovsky <andrey.grodzovsky@amd.com> | 2018-07-20 11:42:24 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-20 14:24:25 -0500 |
commit | 7766484b4a18373ac557ce6ea442ef28517c8224 (patch) | |
tree | 7eb96260468ff35532da5d21ca29b5ee529b0026 /drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | |
parent | ecb8c50382e2e8bfd60483e3edf8cb883f7bde62 (diff) | |
download | linux-7766484b4a18373ac557ce6ea442ef28517c8224.tar.bz2 |
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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c')
0 files changed, 0 insertions, 0 deletions