All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom St Denis <tom.stdenis@amd.com>
To: "Christian König" <ckoenig.leichtzumerken@gmail.com>,
	amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amdgpu: skip unallocated PDs/PTs while invalidating
Date: Thu, 16 Jan 2020 10:29:02 -0500	[thread overview]
Message-ID: <5502e4bf-c648-d17c-e314-856c8b23cd86@amd.com> (raw)
In-Reply-To: <20200116152822.2327-1-christian.koenig@amd.com>

I'll test it out in a minute.


Tom

On 2020-01-16 10:28 a.m., Christian König wrote:
> We don't need to return an error in this case.
>
> Signed-off-by: Christian König <christian.koenig@amd.com>
> Fixes: d6932a4d86e4 drm/amdgpu: make sure to never allocate PDs/PTs for invalidations
> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 8 ++++++--
>   1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> index 5cb182231f5d..6cf407aab279 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
> @@ -1467,8 +1467,12 @@ static int amdgpu_vm_update_ptes(struct amdgpu_vm_update_params *params,
>   			 * smaller than the address shift. Go to the next
>   			 * child entry and try again.
>   			 */
> -			if (!amdgpu_vm_pt_descendant(adev, &cursor))
> -				return -ENOENT;
> +			if (!amdgpu_vm_pt_descendant(adev, &cursor)) {
> +				if (flags & AMDGPU_PTE_VALID)
> +					return -ENOENT;
> +				else
> +					amdgpu_vm_pt_next(adev, &cursor);
> +			}
>   			continue;
>   		} else if (frag >= parent_shift) {
>   			/* If the fragment size is even larger than the parent
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

      reply	other threads:[~2020-01-16 15:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-16 15:28 [PATCH] drm/amdgpu: skip unallocated PDs/PTs while invalidating Christian König
2020-01-16 15:29 ` Tom St Denis [this message]

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=5502e4bf-c648-d17c-e314-856c8b23cd86@amd.com \
    --to=tom.stdenis@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=ckoenig.leichtzumerken@gmail.com \
    /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.