From: "Ghimiray, Himal Prasad" <himal.prasad.ghimiray@intel.com>
To: Matthew Brost <matthew.brost@intel.com>,
<intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Only zap PTEs as needed
Date: Wed, 15 May 2024 12:23:15 +0530 [thread overview]
Message-ID: <85293c6c-9a1b-4145-bb86-9a000c58eb73@intel.com> (raw)
In-Reply-To: <20240514232325.84508-1-matthew.brost@intel.com>
On 15-05-2024 04:53, Matthew Brost wrote:
> If PTEs are already invalidated no need to invalidate again.
>
> Signed-off-by: Matthew Brost <matthew.brost@intel.com>
> ---
> drivers/gpu/drm/xe/xe_pt.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_pt.c b/drivers/gpu/drm/xe/xe_pt.c
> index 7f792b7feb06..d8817673c097 100644
> --- a/drivers/gpu/drm/xe/xe_pt.c
> +++ b/drivers/gpu/drm/xe/xe_pt.c
> @@ -815,8 +815,9 @@ bool xe_pt_zap_ptes(struct xe_tile *tile, struct xe_vma *vma)
> .tile = tile,
> };
> struct xe_pt *pt = xe_vma_vm(vma)->pt_root[tile->id];
> + u8 pt_mask = (vma->tile_present & ~vma->tile_invalidated);
>
> - if (!(vma->tile_present & BIT(tile->id)))
> + if (!(pt_mask & BIT(tile->id)))
> return false;
LGTM
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
>
> (void)xe_pt_walk_shared(&pt->base, pt->level, xe_vma_start(vma),
prev parent reply other threads:[~2024-05-15 6:53 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-14 23:23 [PATCH] drm/xe: Only zap PTEs as needed Matthew Brost
2024-05-14 23:28 ` ✓ CI.Patch_applied: success for " Patchwork
2024-05-14 23:28 ` ✓ CI.checkpatch: " Patchwork
2024-05-14 23:29 ` ✓ CI.KUnit: " Patchwork
2024-05-14 23:41 ` ✓ CI.Build: " Patchwork
2024-05-14 23:44 ` ✓ CI.Hooks: " Patchwork
2024-05-14 23:45 ` ✓ CI.checksparse: " Patchwork
2024-05-15 0:07 ` ✓ CI.BAT: " Patchwork
2024-05-15 1:04 ` ✗ CI.FULL: failure " Patchwork
2024-05-15 6:53 ` Ghimiray, Himal Prasad [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=85293c6c-9a1b-4145-bb86-9a000c58eb73@intel.com \
--to=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox