aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.14.71/0786-drm-amd-amdkcl-fix-arch-spec-code-when-compile-on-AR.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0786-drm-amd-amdkcl-fix-arch-spec-code-when-compile-on-AR.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.14.71/0786-drm-amd-amdkcl-fix-arch-spec-code-when-compile-on-AR.patch45
1 files changed, 45 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0786-drm-amd-amdkcl-fix-arch-spec-code-when-compile-on-AR.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0786-drm-amd-amdkcl-fix-arch-spec-code-when-compile-on-AR.patch
new file mode 100644
index 00000000..7bc332f1
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0786-drm-amd-amdkcl-fix-arch-spec-code-when-compile-on-AR.patch
@@ -0,0 +1,45 @@
+From f81ed622436aac4ec72d4e53aa1402ba44151fba Mon Sep 17 00:00:00 2001
+From: Qiang Yu <Qiang.Yu@amd.com>
+Date: Wed, 22 Feb 2017 17:09:04 +0800
+Subject: [PATCH 0786/4131] drm/amd/amdkcl: fix arch spec code when compile on
+ ARM64
+
+<asm/pgtable_types.h> is x86 spec headers
+
+Change-Id: Ife242e982346b7b6db1895a6efb8d7d4028adad5
+Signed-off-by: Qiang Yu <Qiang.Yu@amd.com>
+Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c | 6 ++----
+ 1 file changed, 2 insertions(+), 4 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
+index 74d64e8..2bf6c4d 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
+@@ -45,9 +45,6 @@ static void amdgpu_sem_core_free(struct kref *kref)
+ struct amdgpu_sem_core *core = container_of(
+ kref, struct amdgpu_sem_core, kref);
+
+- if (core->file)
+- fput(core->file);
+-
+ dma_fence_put(core->fence);
+ mutex_destroy(&core->lock);
+ kfree(core);
+@@ -278,10 +275,11 @@ static int amdgpu_sem_export(struct amdgpu_fpriv *fpriv,
+ ret = -ENOMEM;
+ goto err_put_sem;
+ }
++ } else {
++ get_file(core->file);
+ }
+ mutex_unlock(&core->lock);
+
+- get_file(core->file);
+ kref_get(&core->kref);
+
+ ret = get_unused_fd_flags(O_CLOEXEC);
+--
+2.7.4
+