All of lore.kernel.org
 help / color / mirror / Atom feed
From: zhoucm1 <david1.zhou-5C7GfCeVMHo@public.gmane.org>
To: Felix Kuehling <Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>,
	amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Subject: Re: [PATCH 1/9] drm/amdgpu: Fix error handling in amdgpu_vm_init
Date: Mon, 28 Aug 2017 10:51:24 +0800	[thread overview]
Message-ID: <7e24c6b5-6f8f-88c7-d958-65062df27177@amd.com> (raw)
In-Reply-To: <1503731949-22742-2-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>



On 2017年08月26日 15:19, Felix Kuehling wrote:
> Make sure vm->root.bo is not left reserved if amdgpu_bo_kmap fails.
>
> Change-Id: If3687b39a50b0ffe7f8be2ea6e927fa2ca0f9e45
> Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 9 +++------
>   1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index e57a72e..70d7632 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -2556,14 +2556,11 @@ int amdgpu_vm_init(struct amdgpu_device *adev, struct amdgpu_vm *vm,
>   		goto error_free_root;
>   
>   	vm->last_eviction_counter = atomic64_read(&adev->num_evictions);
> -
> -	if (vm->use_cpu_for_update) {
> +	if (vm->use_cpu_for_update)
>   		r = amdgpu_bo_kmap(vm->root.bo, NULL);
> -		if (r)
> -			goto error_free_root;
> -	}
> -
>   	amdgpu_bo_unreserve(vm->root.bo);
> +	if (r)
> +		goto error_free_root;
>   
>   	vm->vm_context = vm_context;
>   	if (vm_context == AMDGPU_VM_CONTEXT_COMPUTE) {

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

  parent reply	other threads:[~2017-08-28  2:51 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-26  7:19 [PATCH 0/9] WIP: Retry page fault handling for Vega10 Felix Kuehling
     [not found] ` <1503731949-22742-1-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-26  7:19   ` [PATCH 1/9] drm/amdgpu: Fix error handling in amdgpu_vm_init Felix Kuehling
     [not found]     ` <1503731949-22742-2-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-26 13:22       ` Christian König
2017-08-28  2:51       ` zhoucm1 [this message]
2017-08-26  7:19   ` [PATCH 2/9] drm/amdgpu: Add PASID management Felix Kuehling
     [not found]     ` <1503731949-22742-3-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-26 13:27       ` Christian König
     [not found]         ` <994b23cd-67b3-4498-2c2b-d4fc2ea68be7-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-26 14:41           ` Kuehling, Felix
2017-08-28  3:06       ` zhoucm1
     [not found]         ` <c730cbbc-919c-23a5-8d10-3ab5fbfa3543-5C7GfCeVMHo@public.gmane.org>
2017-08-28  6:45           ` Christian König
     [not found]             ` <8e5428ef-5419-6241-369f-a48e63b77934-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-08-28  7:15               ` zhoucm1
     [not found]                 ` <c593059f-548d-340c-6bd5-7650b8830aad-5C7GfCeVMHo@public.gmane.org>
2017-08-28 13:26                   ` Kuehling, Felix
2017-08-26  7:19   ` [PATCH 3/9] drm/radeon: Add PASID manager for KFD Felix Kuehling
     [not found]     ` <1503731949-22742-4-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-26 13:27       ` Christian König
2017-08-26  7:19   ` [PATCH 4/9] drm/amdkfd: Separate doorbell allocation from PASID Felix Kuehling
2017-08-26  7:19   ` [PATCH 5/9] drm/amdkfd: Use PASID manager from KGD Felix Kuehling
2017-08-26  7:19   ` [PATCH 6/9] drm/amd: Set the PASID for KFD VMs Felix Kuehling
2017-08-26  7:19   ` [PATCH 7/9] drm/amdgpu: Add prescreening stage in IH processing Felix Kuehling
2017-08-26  7:19   ` [PATCH 8/9] lib: Closed hash table with low overhead Felix Kuehling
     [not found]     ` <1503731949-22742-9-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-26 13:32       ` Christian König
2017-08-26  7:19   ` [PATCH 9/9] drm/amdgpu: Track pending retry faults in IH and VM Felix Kuehling
     [not found]     ` <1503731949-22742-10-git-send-email-Felix.Kuehling-5C7GfCeVMHo@public.gmane.org>
2017-08-26 13:36       ` Christian König
2017-08-27 22:22   ` [PATCH 0/9] WIP: Retry page fault handling for Vega10 Oded Gabbay
     [not found]     ` <CAFCwf10G+4ra9UD6upxaBc5FwSu4efB9oLKKYSZHcHQ-w9TZgQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-08-28 13:36       ` Kuehling, Felix

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7e24c6b5-6f8f-88c7-d958-65062df27177@amd.com \
    --to=david1.zhou-5c7gfcevmho@public.gmane.org \
    --cc=Felix.Kuehling-5C7GfCeVMHo@public.gmane.org \
    --cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.