aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3302-drm-amdgpu-fix-amdgpu_bo_create-func-parameter-chang.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3302-drm-amdgpu-fix-amdgpu_bo_create-func-parameter-chang.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3302-drm-amdgpu-fix-amdgpu_bo_create-func-parameter-chang.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3302-drm-amdgpu-fix-amdgpu_bo_create-func-parameter-chang.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3302-drm-amdgpu-fix-amdgpu_bo_create-func-parameter-chang.patch
new file mode 100644
index 00000000..370e0bec
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3302-drm-amdgpu-fix-amdgpu_bo_create-func-parameter-chang.patch
@@ -0,0 +1,46 @@
+From e04b192145d6da17d0a42c757a3b0b3053826b11 Mon Sep 17 00:00:00 2001
+From: Kevin Wang <Kevin1.Wang@amd.com>
+Date: Tue, 30 Jan 2018 11:05:07 +0800
+Subject: [PATCH 3302/4131] drm/amdgpu: fix amdgpu_bo_create() func parameter
+ changed
+
+the func amdgpu_bo_create() del the parameter "uint64_t init_value"
+the patch is fixed all amdgpu_bo_create func compile error
+
+Change-Id: Ibc9ca50c675a1993ea5e940a8677ecbef678b228
+Signed-off-by: Kevin Wang <Kevin1.Wang@amd.com>
+Reviewed-by: Le Ma <Le.Ma@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c | 2 +-
+ drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+index 54d705a..d3a0726 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gpuvm.c
+@@ -737,7 +737,7 @@ static int __alloc_memory_of_gpu(struct kgd_dev *kgd, uint64_t va,
+ */
+ ret = amdgpu_bo_create(adev, size, byte_align, false,
+ alloc_domain,
+- flags, sg, NULL, 0, &bo);
++ flags, sg, NULL, &bo);
+ if (ret != 0) {
+ pr_debug("Failed to create BO on domain %s. ret %d\n",
+ domain_string(alloc_domain), ret);
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+index c10c796..df25b0b 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+@@ -1368,7 +1368,7 @@ static int amdgpu_direct_gma_init(struct amdgpu_device *adev)
+ r = amdgpu_bo_create(adev, size, PAGE_SIZE, true, AMDGPU_GEM_DOMAIN_VRAM,
+ AMDGPU_GEM_CREATE_CPU_ACCESS_REQUIRED | AMDGPU_GEM_CREATE_VRAM_CONTIGUOUS |
+ AMDGPU_GEM_CREATE_TOP_DOWN,
+- NULL, NULL, 0, &abo);
++ NULL, NULL, &abo);
+ if (unlikely(r))
+ goto error_out;
+
+--
+2.7.4
+