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: Set priority hint prior to submission
Date: Fri, 23 Aug 2019 11:19:12 +0300 [thread overview]
Message-ID: <87v9uothtr.fsf@gaia.fi.intel.com> (raw)
In-Reply-To: <156639752599.1374.7223177553009431491@skylake-alporthouse-com>
Chris Wilson <chris@chris-wilson.co.uk> writes:
> Quoting Chris Wilson (2019-08-21 15:23:36)
>> Since we now run process_csb() outside of the engine->active.lock, we
>> can process a CS-event immediately upon our ELSP write. As we currently
>> inspect the pending queue *after* the ELSP write, there is an
>> opportunity for a CS-event to update the pending queue before we can
>> read it, making ourselves chases an invalid pointer.
>>
>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111427
Enough to make me convinced,
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
>> Fixes: df403069029d ("drm/i915/execlists: Lift process_csb() out of the irq-off spinlock")
>> 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 | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/gpu/drm/i915/gt/intel_lrc.c b/drivers/gpu/drm/i915/gt/intel_lrc.c
>> index 44780e7fafec..d42584439f51 100644
>> --- a/drivers/gpu/drm/i915/gt/intel_lrc.c
>> +++ b/drivers/gpu/drm/i915/gt/intel_lrc.c
>> @@ -1335,9 +1335,9 @@ static void execlists_dequeue(struct intel_engine_cs *engine)
>> if (submit) {
>> *port = execlists_schedule_in(last, port - execlists->pending);
>> memset(port + 1, 0, (last_port - port) * sizeof(*port));
>> - execlists_submit_ports(engine);
>> execlists->switch_priority_hint =
>> switch_prio(engine, *execlists->pending);
>> + execlists_submit_ports(engine);
>> } else {
>> ring_set_paused(engine, 0);
>> }
>> --
>> 2.23.0.rc1
>>
_______________________________________________
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-23 8:20 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-21 14:23 [PATCH] drm/i915/execlists: Set priority hint prior to submission Chris Wilson
2019-08-21 14:25 ` Chris Wilson
2019-08-23 8:19 ` Mika Kuoppala [this message]
2019-08-21 15:26 ` ✓ Fi.CI.BAT: success for " Patchwork
2019-08-22 4:36 ` ✓ 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=87v9uothtr.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.