From: Mika Kuoppala <mika.kuoppala@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/execlists: stall on render flush before writing seqno
Date: Wed, 28 Aug 2019 12:00:35 +0300 [thread overview]
Message-ID: <87a7bty898.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <156690742523.15406.5516780195775937383@skylake-alporthouse-com>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Quoting Chris Wilson (2019-08-27 12:54:13)
>> Quite rarely we see that the CS completion event fires before the
>> breadcrumb is coherent. Try rearranging the breadcrumb write sequence
>> such that the CS_STALL is on the post-sync write pipecontrol.
>>
>> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>> Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
>> ---
>> drivers/gpu/drm/i915/gt/intel_lrc.c | 17 ++++++++---------
>> 1 file changed, 8 insertions(+), 9 deletions(-)
>>
>> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
>> index 80a3f1dbb456..669e8bd9f830 100644
>> --- a/drivers/gpu/drm/i915/gt/intel_lrc.c
>> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
>> @@ -2961,18 +2961,17 @@ static u32 *gen8_emit_fini_breadcrumb(struct i915_request *request, u32 *cs)
>>
>> static u32 *gen8_emit_fini_breadcrumb_rcs(struct i915_request *request, u32 *cs)
>> {
>> - cs = gen8_emit_ggtt_write_rcs(cs,
>> - request->fence.seqno,
>> - request->timeline->hwsp_offset,
>> - PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH |
>> - PIPE_CONTROL_DEPTH_CACHE_FLUSH |
>> - PIPE_CONTROL_DC_FLUSH_ENABLE);
>> -
>> /* XXX flush+write+CS_STALL all in one upsets gem_concurrent_blt:kbl */
>> cs = gen8_emit_pipe_control(cs,
>> - PIPE_CONTROL_FLUSH_ENABLE |
>> - PIPE_CONTROL_CS_STALL,
>> + PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH |
>> + PIPE_CONTROL_DEPTH_CACHE_FLUSH |
>> + PIPE_CONTROL_DC_FLUSH_ENABLE,
>> 0);
>> + cs = gen8_emit_ggtt_write_rcs(cs,
>> + request->fence.seqno,
>> + request->timeline->hwsp_offset,
>> + PIPE_CONTROL_FLUSH_ENABLE |
>
> Or perhaps we need PIPE_CONTROL_DC_FLUSH_ENABLE here.
>
> I think that might make more sense (replace DC_FLUSH with whatever might
> flush the post-sync write).
Would it make sense to try to be as much similar as possible
with the ->emit_flush?
If so, iterating further, now with seqno being per context,
be exactly the same as emit_flush and start to use ppgtt seqnos?
-Mika
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2019-08-28 9:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-27 11:54 [PATCH] drm/i915/execlists: stall on render flush before writing seqno Chris Wilson
2019-08-27 12:03 ` Chris Wilson
2019-08-28 9:00 ` Mika Kuoppala [this message]
2019-08-28 9:07 ` Chris Wilson
2019-08-27 12:47 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-08-28 11:15 ` ✓ Fi.CI.IGT: " 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=87a7bty898.fsf@gaia.fi.intel.com \
--to=mika.kuoppala@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=intel-gfx@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.