From: Matthew Brost <matthew.brost@intel.com>
To: Nirmoy Das <nirmoy.das@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH] drm/xe: Ignore GGTT TLB inval errors during GT reset
Date: Tue, 12 Nov 2024 09:28:05 -0800 [thread overview]
Message-ID: <ZzOQJa7w2nMSHypW@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20241112162934.1119772-1-nirmoy.das@intel.com>
On Tue, Nov 12, 2024 at 05:29:34PM +0100, Nirmoy Das wrote:
> During GT reset, GGTT TLB invalidations may fail. This is acceptable
> as the reset will clear GGTT caches. Suppress only -ECANCELED other
> return codes are still unexpected error.
>
> Link: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/3389
> Suggested-by: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Nirmoy Das <nirmoy.das@intel.com>
> ---
> drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c | 9 +++++++--
> 1 file changed, 7 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> index 3cb228c773cd..acd6ec535ef9 100644
> --- a/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> +++ b/drivers/gpu/drm/xe/xe_gt_tlb_invalidation.c
> @@ -253,9 +253,14 @@ static int xe_gt_tlb_invalidation_guc(struct xe_gt *gt,
> 0, /* seqno, replaced in send_tlb_invalidation */
> MAKE_INVAL_OP(XE_GUC_TLB_INVAL_GUC),
> };
> + int ret;
> +
> + ret = send_tlb_invalidation(>->uc.guc, fence, action,
> + ARRAY_SIZE(action));
Add a comment along the lines of '-ECANCELED indicates the CT is stopped
for a GT reset in which the TLB caches should be nuked'.
Otherwise LGTM.
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> + if (ret == -ECANCELED)
> + return 0;
>
> - return send_tlb_invalidation(>->uc.guc, fence, action,
> - ARRAY_SIZE(action));
> + return ret;
> }
>
> /**
> --
> 2.46.0
>
prev parent reply other threads:[~2024-11-12 17:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-12 16:29 [PATCH] drm/xe: Ignore GGTT TLB inval errors during GT reset Nirmoy Das
2024-11-12 17:28 ` Matthew Brost [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=ZzOQJa7w2nMSHypW@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=nirmoy.das@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