From: Dave Gordon <david.s.gordon@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915: Reinstate order of operations in {intel, logical}_ring_begin()
Date: Tue, 16 Jun 2015 12:03:45 +0100 [thread overview]
Message-ID: <55800291.7060201@intel.com> (raw)
In-Reply-To: <20150615204123.GA769@nuc-i3427.alporthouse.com>
On 15/06/15 21:41, Chris Wilson wrote:
> On Mon, Jun 15, 2015 at 07:11:37PM +0100, Dave Gordon wrote:
>>> It still applies. If you submit say 1024 interrupted execbuffers they
>>
>> What is an interrupted execbuffer? AFAICT we hold the struct_mutex while
>> stuffing the ringbuffer so we can only ever be in the process of adding
>> instructions to one ringbuffer at a time, and we don't (now) interleave
>> any flip commands (execlists mode requires mmio flip). Is there still
>> something that just adds random stuff to someone else's OLR?
>
> Write commands to stream, fail to add the request because the wait for
> ring space fails due to a pending signals. Repeat until the entire ring
> is filled by a single pending request.
> -Chris
Uuuurgh ... I always said there was something wrong with leaving partial
command streams in the ringbuffer :(
In the Android version we make sure that can't happen by checking that
there's going to be enough space for all the commands generated by the
request before we start writing into the ringbuffer, so no ring_begin()
call thereafter can ever have to wait for more space.
Of course, having a global lock doesn't help. With multiple ringbuffers
per engine, one should really only need a per-ringbuffer lock for
writing into the ringbuffer ... and we should reset the tail pointer if
writing the request is interrupted or aborted.
.Dave.
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx
next prev parent reply other threads:[~2015-06-16 11:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-08 18:51 [PATCH] drm/i915: Reinstate order of operations in {intel, logical}_ring_begin() Dave Gordon
2015-06-13 20:16 ` shuang.he
2015-06-15 9:15 ` Chris Wilson
2015-06-15 18:11 ` Dave Gordon
2015-06-15 20:41 ` Chris Wilson
2015-06-16 11:03 ` Dave Gordon [this message]
2015-06-16 12:18 ` Daniel Vetter
2015-06-16 12:24 ` Chris Wilson
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=55800291.7060201@intel.com \
--to=david.s.gordon@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.