diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3662-drm-amdgpu-ignore-changes-of-buffer-function-status-.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3662-drm-amdgpu-ignore-changes-of-buffer-function-status-.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3662-drm-amdgpu-ignore-changes-of-buffer-function-status-.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3662-drm-amdgpu-ignore-changes-of-buffer-function-status-.patch new file mode 100644 index 00000000..16b04509 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3662-drm-amdgpu-ignore-changes-of-buffer-function-status-.patch @@ -0,0 +1,34 @@ +From b84ce0a1bbe40daa25bda5402e5a4521ac4985af Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com> +Date: Thu, 1 Mar 2018 11:03:27 +0100 +Subject: [PATCH 3662/4131] drm/amdgpu: ignore changes of buffer function + status because of GPU resets +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +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: Christian König <christian.koenig@amd.com> +Acked-by: Chunming zhou <david1.zhou@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +index fa87a00..9fe7999 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +@@ -1787,7 +1787,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]; + uint64_t size; + +- if (!adev->mman.initialized) ++ if (!adev->mman.initialized || adev->in_gpu_reset) + return; + + /* this just adjusts TTM size idea, which sets lpfn to the correct value */ +-- +2.7.4 + |