aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3244-drm-amdgpu-reduce-reserved-VA-size.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3244-drm-amdgpu-reduce-reserved-VA-size.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3244-drm-amdgpu-reduce-reserved-VA-size.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3244-drm-amdgpu-reduce-reserved-VA-size.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3244-drm-amdgpu-reduce-reserved-VA-size.patch
new file mode 100644
index 00000000..f60e982e
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3244-drm-amdgpu-reduce-reserved-VA-size.patch
@@ -0,0 +1,33 @@
+From e94da6aca4ed334025246b18ab57427f81cb6eae Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Mon, 22 Jan 2018 11:17:18 +0100
+Subject: [PATCH 3244/4131] drm/amdgpu: reduce reserved VA size
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+1MB should be more than enough, currently we use about 8K.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+Acked-by: Monk Liu <monk.liu@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+index 0cb4e7b..beee443 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.h
+@@ -103,7 +103,7 @@ struct amdgpu_bo_list_entry;
+ #define AMDGPU_MMHUB 1
+
+ /* hardcode that limit for now */
+-#define AMDGPU_VA_RESERVED_SIZE (8ULL << 20)
++#define AMDGPU_VA_RESERVED_SIZE (1ULL << 20)
+
+ /* VA hole for 48bit addresses on Vega10 */
+ #define AMDGPU_VA_HOLE_START 0x0000800000000000ULL
+--
+2.7.4
+