Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Teres Alexis, Alan Previn" <alan.previn.teres.alexis@intel.com>
To: "intel-xe@lists.freedesktop.org" <intel-xe@lists.freedesktop.org>,
	"Ceraolo Spurio, Daniele" <daniele.ceraolospurio@intel.com>
Subject: Re: [PATCH v2] drm/xe/gsc: Handle GSCCS ER interrupt
Date: Thu, 14 Mar 2024 15:49:25 +0000	[thread overview]
Message-ID: <48a232531140a3e74e0446a2cb3aa2bab2b5bd45.camel@intel.com> (raw)
In-Reply-To: <20240304145634.820684-1-daniele.ceraolospurio@intel.com>

LGTM - i see the GSC-class specific preemption override in rev2 as
discussed - Thanks.

Reviewed-by: Alan Previn <alan.previn.teres.alexis@intel.com>

On Mon, 2024-03-04 at 06:56 -0800, Daniele Ceraolo Spurio wrote:
> Starting on Xe2, the GSCCS engine reset is a 2-step process. When the
> driver or the GuC hits the GDRST register, the CS is immediately
> reset
> and a success is reported, but the GSC shim continues its reset in
> the
> background. While the shim reset is ongoing, the CS is able to accept
> new context submission, but any commands that require the shim will
> be stalled until the reset is completed. This means that we can keep
> submitting to the GSCCS as long as we make sure that the preemption
> timeout is big enough to cover any delay introduced by the reset;
> since
> the GSC preempt timeout is not tunable at runtime, we only need to
> check
> that the value set in kconfig is big enough (and increase it if it
> isn't).
> When the shim reset completes, a specific CS interrupt is triggered,
> in response to which we need to check the GSCI_TIMER_STATUS register
> to see if the reset was successful or not.
> Note that the GSCI_TIMER_STATUS register is not power save/restored,
> so it gets reset on MC6 entry. However, a reset failure stops MC6,
> so in that scenario we're always guaranteed to find the correct
> value.
> 
> Since we can't check the register within interrupt context, the
> existing GSC worker has been updated to handle it.
> The expected action to take on ER failure is to trigger a driver FLR,
> but we still don't support that, so for now we just print an error. A
> comment has been added to the code to keep track of the FLR
> requirement.
alan:snip

  parent reply	other threads:[~2024-03-14 15:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-04 14:56 [PATCH v2] drm/xe/gsc: Handle GSCCS ER interrupt Daniele Ceraolo Spurio
2024-03-04 15:30 ` ✓ CI.Patch_applied: success for drm/xe/gsc: Handle GSCCS ER interrupt (rev2) Patchwork
2024-03-04 15:30 ` ✗ CI.checkpatch: warning " Patchwork
2024-03-04 15:31 ` ✓ CI.KUnit: success " Patchwork
2024-03-04 15:42 ` ✓ CI.Build: " Patchwork
2024-03-04 15:42 ` ✓ CI.Hooks: " Patchwork
2024-03-04 15:44 ` ✓ CI.checksparse: " Patchwork
2024-03-04 16:02 ` ✓ CI.BAT: " Patchwork
2024-03-14 15:49 ` Teres Alexis, Alan Previn [this message]
2024-03-14 18:04 ` ✓ CI.Patch_applied: success for drm/xe/gsc: Handle GSCCS ER interrupt (rev3) Patchwork
2024-03-14 18:04 ` ✗ CI.checkpatch: warning " Patchwork
2024-03-14 18:05 ` ✓ CI.KUnit: success " Patchwork
2024-03-14 18:16 ` ✓ CI.Build: " Patchwork
2024-03-14 18:18 ` ✓ CI.Hooks: " Patchwork
2024-03-14 18:20 ` ✓ CI.checksparse: " Patchwork
2024-03-14 18:42 ` ✓ CI.BAT: " Patchwork

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=48a232531140a3e74e0446a2cb3aa2bab2b5bd45.camel@intel.com \
    --to=alan.previn.teres.alexis@intel.com \
    --cc=daniele.ceraolospurio@intel.com \
    --cc=intel-xe@lists.freedesktop.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox