From: "Teres Alexis, Alan Previn" <alan.previn.teres.alexis@intel.com>
To: "Gupta, Anshuman" <anshuman.gupta@intel.com>,
"intel-gfx@lists.freedesktop.org"
<intel-gfx@lists.freedesktop.org>
Cc: "Jana, Mousumi" <mousumi.jana@intel.com>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
"Vivi, Rodrigo" <rodrigo.vivi@intel.com>
Subject: Re: [Intel-gfx] [PATCH v4 2/3] drm/i915/guc: Close deregister-context race against CT-loss
Date: Wed, 4 Oct 2023 16:46:14 +0000 [thread overview]
Message-ID: <cb406cb048045980e7f77d1328f0fca6d6f37ba5.camel@intel.com> (raw)
In-Reply-To: <CY5PR11MB6211092F8BB449C358D59D2A95CBA@CY5PR11MB6211.namprd11.prod.outlook.com>
On Wed, 2023-10-04 at 06:34 +0000, Gupta, Anshuman wrote:
>
> > -----Original Message-----
> > From: Teres Alexis, Alan Previn <alan.previn.teres.alexis@intel.com
alan:snip
> > @@ -289,6 +289,13 @@ int intel_gt_resume(struct intel_gt *gt)
> >
> > static void wait_for_suspend(struct intel_gt *gt) {
> > + /*
> > + * On rare occasions, we've observed the fence completion trigger
> > + * free_engines asynchronously via rcu_call. Ensure those are done.
> > + * This path is only called on suspend, so it's an acceptable cost.
> > + */
> > + rcu_barrier();
> Let's add the barrier after the end of prepare suspend and at start of late suspend.
> To make sure we don't have any async destroy from any user request or any internal kmd request during i915 suspend?
> Br,
> Anshuman Gupta.
alan: some thoughts: actuallly wait_fos_suspend is being called at from both intel_gt_suspend_prepare
and intel_gt_suspend_late. so putting the barrier in above location would get hit for both steps.
However, because wait_for_suspend may optionally wedge the system if outstanding requests were stuck
for more than I915_GT_SUSPEND_IDLE_TIMEOUT, wouldnt it be better to add the barrier before that
check (i.e. in above location) as opposed to after the return from wait_for_suspend at the end
of suspend_prepare - which would defeat the purpose of even checking that intel_gt_wait_for_idle
from within wait_for_suspend? (which is existing code). Perhaps we need to get one last test on this?
next prev parent reply other threads:[~2023-10-04 16:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-26 19:05 [Intel-gfx] [PATCH v4 0/3] Resolve suspend-resume racing with GuC destroy-context-worker Alan Previn
2023-09-26 19:05 ` [Intel-gfx] [PATCH v4 1/3] drm/i915/guc: Flush context destruction worker at suspend Alan Previn
2023-09-26 19:05 ` [Intel-gfx] [PATCH v4 2/3] drm/i915/guc: Close deregister-context race against CT-loss Alan Previn
2023-10-04 6:34 ` Gupta, Anshuman
2023-10-04 16:46 ` Teres Alexis, Alan Previn [this message]
2023-09-26 19:05 ` [Intel-gfx] [PATCH v4 3/3] drm/i915/gt: Timeout when waiting for idle in suspending Alan Previn
2023-09-27 9:02 ` Tvrtko Ursulin
2023-09-27 16:36 ` Teres Alexis, Alan Previn
2023-09-28 12:46 ` Tvrtko Ursulin
2023-10-04 17:59 ` Teres Alexis, Alan Previn
2023-10-25 12:58 ` Tvrtko Ursulin
2023-11-13 17:57 ` Teres Alexis, Alan Previn
2023-11-14 17:27 ` Tvrtko Ursulin
2023-11-14 17:36 ` Rodrigo Vivi
2023-11-14 19:34 ` Teres Alexis, Alan Previn
2023-11-14 17:37 ` Teres Alexis, Alan Previn
2023-11-14 17:52 ` Tvrtko Ursulin
2023-11-14 19:48 ` Teres Alexis, Alan Previn
2023-11-16 10:19 ` Tvrtko Ursulin
2023-09-27 1:23 ` [Intel-gfx] ✗ Fi.CI.SPARSE: warning for Resolve suspend-resume racing with GuC destroy-context-worker (rev4) Patchwork
2023-09-27 1:37 ` [Intel-gfx] ✓ Fi.CI.BAT: success " Patchwork
2023-09-27 13:17 ` [Intel-gfx] ✗ Fi.CI.IGT: failure " 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=cb406cb048045980e7f77d1328f0fca6d6f37ba5.camel@intel.com \
--to=alan.previn.teres.alexis@intel.com \
--cc=anshuman.gupta@intel.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.org \
--cc=mousumi.jana@intel.com \
--cc=rodrigo.vivi@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