aboutsummaryrefslogtreecommitdiffstats
path: root/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch
diff options
context:
space:
mode:
authorArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 14:52:21 +0500
committerArsalan H. Awan <Arsalan_Awan@mentor.com>2019-08-28 15:24:40 +0500
commitcc5953c3a2f348543ed44492244627ee0de76239 (patch)
tree23430cd57f73086e7176e8be4375e5ad3b4079c0 /meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch
parent4149413febf799293758015e230e0ce865ed9cb5 (diff)
downloadmeta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.gz
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.tar.bz2
meta-amd-cc5953c3a2f348543ed44492244627ee0de76239.zip
common: rename to meta-amd-bsp
This renames common layers to meta-amd-bsp as it is going to hold all the bsps in it in the following commits. This also changes the layer title in layer.conf from "amd" to "amd-bsp" Signed-off-by: Arsalan H. Awan <Arsalan_Awan@mentor.com>
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch')
-rw-r--r--meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch
new file mode 100644
index 00000000..58c31b95
--- /dev/null
+++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/0787-drm-amdgpu-move-get-core-kref-at-begin.patch
@@ -0,0 +1,36 @@
+From 79825a0f6d39acf078afba171a59c2a832e39aae Mon Sep 17 00:00:00 2001
+From: Chunming Zhou <David1.Zhou@amd.com>
+Date: Thu, 9 Mar 2017 10:10:33 +0800
+Subject: [PATCH 0787/4131] drm/amdgpu: move get(core->kref) at begin
+
+Change-Id: I682767b9db46a82ab9f69b32bb2161cdb6560ecd
+Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
+Reviewed-by: David Mao <David.Mao@amd.com>
+---
+ drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c | 3 +--
+ 1 file changed, 1 insertion(+), 2 deletions(-)
+
+diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
+index 2bf6c4d..a64f4b2 100644
+--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_sem.c
+@@ -265,6 +265,7 @@ static int amdgpu_sem_export(struct amdgpu_fpriv *fpriv,
+ return -EINVAL;
+
+ core = sem->base;
++ kref_get(&core->kref);
+ mutex_lock(&core->lock);
+ if (!core->file) {
+ core->file = anon_inode_getfile("sem_file",
+@@ -280,8 +281,6 @@ static int amdgpu_sem_export(struct amdgpu_fpriv *fpriv,
+ }
+ mutex_unlock(&core->lock);
+
+- kref_get(&core->kref);
+-
+ ret = get_unused_fd_flags(O_CLOEXEC);
+ if (ret < 0)
+ goto err_put_file;
+--
+2.7.4
+