Intel-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Nirmoy Das <nirmoy.das@linux.intel.com>
To: Jonathan Cavitt <jonathan.cavitt@intel.com>,
	intel-gfx@lists.freedesktop.org
Cc: matthew.d.roper@intel.com, chris.p.wilson@linux.intel.com,
	andi.shyti@intel.com, dri-devel <dri-devel@lists.freedesktop.org>,
	saurabhg.gupta@intel.com
Subject: Re: [Intel-gfx] [PATCH] drm/i915: Invalidate the TLBs on each GT
Date: Mon, 2 Oct 2023 16:42:51 +0200	[thread overview]
Message-ID: <869a0a2b-fdae-769f-4e1d-08b35633463a@linux.intel.com> (raw)
In-Reply-To: <20231002140742.933530-1-jonathan.cavitt@intel.com>

+dri-devel

On 10/2/2023 4:07 PM, Jonathan Cavitt wrote:
> From: Chris Wilson <chris.p.wilson@intel.com>
>
> With multi-GT devices, the object may have been bound on each GT and so
> we need to invalidate the TLBs across all GT before releasing the pages
> back to the system.
>
> Fixes: d6c531ab4820 ("drm/i915: Invalidate the TLBs on each GT")
> Signed-off-by: Chris Wilson <chris.p.wilson@intel.com>
> Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
> CC: Matt Roper <matthew.d.roper@intel.com>
> CC: Andi Shyti <andi.shyti@linux.intel.com>
> Reviewed-by: Andi Shyti <andi.shyti@linux.intel.com>

Reviewed-by: Nirmoy Das <nirmoy.das@intel.com>

Can't find it in dri-devel but if you didn't then Cc to 
dri-devel@lists.freedesktop.org for change that touches gt/gem files.


Regards,

Nirmoy

> ---
>   drivers/gpu/drm/i915/gem/i915_gem_pages.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/i915/gem/i915_gem_pages.c b/drivers/gpu/drm/i915/gem/i915_gem_pages.c
> index 6b6d22c194110..0ba955611dfb5 100644
> --- a/drivers/gpu/drm/i915/gem/i915_gem_pages.c
> +++ b/drivers/gpu/drm/i915/gem/i915_gem_pages.c
> @@ -198,7 +198,7 @@ static void flush_tlb_invalidate(struct drm_i915_gem_object *obj)
>   
>   	for_each_gt(gt, i915, id) {
>   		if (!obj->mm.tlb[id])
> -			return;
> +			continue;
>   
>   		intel_gt_invalidate_tlb_full(gt, obj->mm.tlb[id]);
>   		obj->mm.tlb[id] = 0;

  reply	other threads:[~2023-10-02 14:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-02 14:07 [Intel-gfx] [PATCH] drm/i915: Invalidate the TLBs on each GT Jonathan Cavitt
2023-10-02 14:42 ` Nirmoy Das [this message]
2023-10-02 23:20 ` [Intel-gfx] ✓ Fi.CI.BAT: success for " Patchwork
2023-10-03  0:44 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " Patchwork
2023-10-03  9:26   ` Andi Shyti
2023-10-03 12:58 ` [Intel-gfx] ✓ Fi.CI.BAT: success for drm/i915: Invalidate the TLBs on each GT (rev2) Patchwork
2023-10-03 15:46 ` [Intel-gfx] ✓ Fi.CI.IGT: " Patchwork
2023-10-03 17:17 ` [Intel-gfx] [PATCH] drm/i915: Invalidate the TLBs on each GT Andi Shyti

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=869a0a2b-fdae-769f-4e1d-08b35633463a@linux.intel.com \
    --to=nirmoy.das@linux.intel.com \
    --cc=andi.shyti@intel.com \
    --cc=chris.p.wilson@linux.intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=jonathan.cavitt@intel.com \
    --cc=matthew.d.roper@intel.com \
    --cc=saurabhg.gupta@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