aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2105-drm-amdkfd-Initialize-kfd-allocated-VRAM-buffer-to-0.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2105-drm-amdkfd-Initialize-kfd-allocated-VRAM-buffer-to-0.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2105-drm-amdkfd-Initialize-kfd-allocated-VRAM-buffer-to-0.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2105-drm-amdkfd-Initialize-kfd-allocated-VRAM-buffer-to-0.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2105-drm-amdkfd-Initialize-kfd-allocated-VRAM-buffer-to-0.patch
new file mode 100644
index 00000000..35cf874b
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2105-drm-amdkfd-Initialize-kfd-allocated-VRAM-buffer-to-0.patch
@@ -0,0 +1,27 @@
+From 5ddaa23dbc4d7a19bd35f5d4127d03fa2e343261 Mon Sep 17 00:00:00 2001
+From: Yong Zhao <yong.zhao@amd.com>
+Date: Thu, 14 Sep 2017 16:16:24 -0400
+Subject: [PATCH 2105/4131] drm/amdkfd: Initialize kfd allocated VRAM buffer to
+ 0
+
+Change-Id: I18dc1e6f957c537a45910cfecf7444dbc480c412
+Signed-off-by: Yong Zhao <yong.zhao@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+index 263e256..b1873c2 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+@@ -1122,6 +1122,7 @@ int amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu(
+ alloc_flag = AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED;
+ temp_offset = offset;
+ }
++ alloc_flag |= AMDGPU_GEM_CREATE_VRAM_CLEARED;
+ } else if (flags & (ALLOC_MEM_FLAGS_GTT | ALLOC_MEM_FLAGS_USERPTR)) {
+ domain = AMDGPU_GEM_DOMAIN_GTT;
+ alloc_flag = 0;
+--
+2.7.4
+