diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3210-drm-amdgpu-Use-new-TTM-flag-to-avoid-OOM-triggering.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3210-drm-amdgpu-Use-new-TTM-flag-to-avoid-OOM-triggering.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3210-drm-amdgpu-Use-new-TTM-flag-to-avoid-OOM-triggering.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3210-drm-amdgpu-Use-new-TTM-flag-to-avoid-OOM-triggering.patch new file mode 100644 index 00000000..5491628c --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3210-drm-amdgpu-Use-new-TTM-flag-to-avoid-OOM-triggering.patch @@ -0,0 +1,42 @@ +From 0d50c7e02187b0ec540001c49fca611b8296ddb7 Mon Sep 17 00:00:00 2001 +From: Andrey Grodzovsky <andrey.grodzovsky@amd.com> +Date: Tue, 16 Jan 2018 10:06:36 -0500 +Subject: [PATCH 3210/4131] drm/amdgpu: Use new TTM flag to avoid OOM + triggering. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Avoid OOM on syatem pages allocations. + +v2: +Remove modeprobe parameter, make this behaviour the only option. + +v3: +Move setting no_retry flag into amdgpu_ttm_init. + +Signed-off-by: Andrey Grodzovsky <andrey.grodzovsky@amd.com> +Reviewed-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +index 9f7e6c5..5aafa1b 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c +@@ -1624,6 +1624,10 @@ int amdgpu_ttm_init(struct amdgpu_device *adev) + return r; + } + adev->mman.initialized = true; ++ ++ /* We opt to avoid OOM on system pages allocations */ ++ adev->mman.bdev.no_retry = true; ++ + r = ttm_bo_init_mm(&adev->mman.bdev, TTM_PL_VRAM, + adev->gmc.real_vram_size >> PAGE_SHIFT); + if (r) { +-- +2.7.4 + |