diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0684-drm-amdgpu-Reverse-the-sequence-of-ctx_mgr_fini-and-.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.19.8/0684-drm-amdgpu-Reverse-the-sequence-of-ctx_mgr_fini-and-.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0684-drm-amdgpu-Reverse-the-sequence-of-ctx_mgr_fini-and-.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0684-drm-amdgpu-Reverse-the-sequence-of-ctx_mgr_fini-and-.patch new file mode 100644 index 00000000..ddbbf284 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0684-drm-amdgpu-Reverse-the-sequence-of-ctx_mgr_fini-and-.patch @@ -0,0 +1,38 @@ +From 052664cafc825e9fcd4a715fdedadd3eb17494e9 Mon Sep 17 00:00:00 2001 +From: Rex Zhu <Rex.Zhu@amd.com> +Date: Mon, 22 Oct 2018 17:37:00 +0800 +Subject: [PATCH 0684/2940] drm/amdgpu: Reverse the sequence of ctx_mgr_fini + and vm_fini in amdgpu_driver_postclose_kms +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +csa buffer will be created per ctx, when ctx fini, +the csa buffer and va will be released. so need to +do ctx_mgr fin before vm fini. + +Reviewed-by: Christian König <christian.koenig@amd.com> +Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> +Signed-off-by: Rex Zhu <Rex.Zhu@amd.com> +Signed-off-by: Alex Deucher <alexander.deucher@amd.com> +--- + drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +index ce1bf6cd49ae..fb019a872733 100644 +--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c ++++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +@@ -1080,8 +1080,8 @@ void amdgpu_driver_postclose_kms(struct drm_device *dev, + pasid = fpriv->vm.pasid; + pd = amdgpu_bo_ref(fpriv->vm.root.base.bo); + +- amdgpu_vm_fini(adev, &fpriv->vm); + amdgpu_ctx_mgr_fini(&fpriv->ctx_mgr); ++ amdgpu_vm_fini(adev, &fpriv->vm); + + if (pasid) + amdgpu_pasid_free_delayed(pd->tbo.resv, pasid); +-- +2.17.1 + |