Commit 380383f2 authored by Christian König's avatar Christian König Committed by Alex Deucher

drm/amdgpu: ignore changes of buffer function status because of GPU resets

When we reset the GPU we also disable/enable the SDMA, but we don't want
to change TTM idea of the VRAM size in the middle of that.
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Acked-by: default avatarChunming zhou <david1.zhou@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 57adc4ce
...@@ -1540,7 +1540,7 @@ void amdgpu_ttm_set_buffer_funcs_status(struct amdgpu_device *adev, bool enable) ...@@ -1540,7 +1540,7 @@ void amdgpu_ttm_set_buffer_funcs_status(struct amdgpu_device *adev, bool enable)
struct ttm_mem_type_manager *man = &adev->mman.bdev.man[TTM_PL_VRAM]; struct ttm_mem_type_manager *man = &adev->mman.bdev.man[TTM_PL_VRAM];
uint64_t size; uint64_t size;
if (!adev->mman.initialized) if (!adev->mman.initialized || adev->in_gpu_reset)
return; return;
/* this just adjusts TTM size idea, which sets lpfn to the correct value */ /* this just adjusts TTM size idea, which sets lpfn to the correct value */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment