drm/amdgpu: Reverse the sequence of ctx_mgr_fini and vm_fini in amdgpu_driver_postclose_kms
Subsystems (2)
PATCH 1/1 drm/amdgpu: Reverse the sequence of ctx_mgr_fini and vm_fini in amdgpu_driver_postclose_kms
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.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +1 -1
@@ -1054,8 +1054,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);
Signature · 6 lines
1.9.1 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1540201634-4291-1-git-send-email-Rex.Zhu-5C7GfCeVMHo@public.gmane.org
Christian König
Reviewed-byAm 22.10.18 um 11:47 schrieb Rex Zhu:
Quoted 5 lines
csa buffer will be created per ctx, when ctx fini, the csa buffer and va will be released. so need to do
ctx_mgrfin before vm fini.Signed-off-by Rex Zhu <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c void amdgpu_driver_postclose_kms(struct drm_device *dev, · line 1061
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +1
-1@@ -1054,8 +1054,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);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Zhang, Jerry(Junwei)
Reviewed-by Junwei ZhangQuoted 5 lines · Rex Zhu
csa buffer will be created per ctx, when ctx fini, the csa buffer and va will be released. so need to do
ctx_mgrfin before vm fini.Signed-off-by Rex Zhu <[email protected]>
Quoted 9 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +0
-0
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c void amdgpu_driver_postclose_kms(struct drm_device *dev, · line 1061
Quoted 9 lines
drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +1
-1@@ -1054,8 +1054,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);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx