aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0951-drm-amdgpu-fix-cgs-alignment-handling.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0951-drm-amdgpu-fix-cgs-alignment-handling.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0951-drm-amdgpu-fix-cgs-alignment-handling.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0951-drm-amdgpu-fix-cgs-alignment-handling.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0951-drm-amdgpu-fix-cgs-alignment-handling.patch
new file mode 100644
index 00000000..2c737fd0
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0951-drm-amdgpu-fix-cgs-alignment-handling.patch
@@ -0,0 +1,32 @@
+From a83f78ce484d308441f7b114997aee91ae5e430e Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Christian=20K=C3=B6nig?= <christian.koenig@amd.com>
+Date: Mon, 11 Sep 2017 15:51:30 +0200
+Subject: [PATCH 0951/4131] drm/amdgpu: fix cgs alignment handling
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This always allocated on PAGE_SIZE alignment.
+
+Signed-off-by: Christian König <christian.koenig@amd.com>
+Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+index d450a96..8b5fa22 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
+@@ -121,7 +121,7 @@ static int amdgpu_cgs_alloc_gpu_mem(struct cgs_device *cgs_device,
+ placement.busy_placement = &place;
+ placement.num_busy_placement = 1;
+
+- ret = amdgpu_bo_create_restricted(adev, size, PAGE_SIZE,
++ ret = amdgpu_bo_create_restricted(adev, size, align,
+ true, domain, flags,
+ NULL, &placement, NULL,
+ 0, &obj);
+--
+2.7.4
+