From: Daniel Vetter <daniel@ffwll.ch>
To: "Mateo Lozano, Oscar" <oscar.mateo@intel.com>
Cc: "Intel-gfx@lists.freedesktop.org"
<Intel-gfx@lists.freedesktop.org>,
"Widawsky, Benjamin" <benjamin.widawsky@intel.com>
Subject: Re: i-g-t prime_self_import & gem_flink_race: leaked -1 objects
Date: Fri, 1 Nov 2013 17:30:47 +0100 [thread overview]
Message-ID: <20131101163047.GN4167@phenom.ffwll.local> (raw)
In-Reply-To: <92648605EABDA246B775AAB04C95A7A301210FD5@IRSMSX103.ger.corp.intel.com>
On Fri, Nov 01, 2013 at 12:55:54PM +0000, Mateo Lozano, Oscar wrote:
> Hi Ben,
>
> I´ll switch the conversation to the mailing list...
>
> In the case of prime_self_import, the problem is self-contained (it
> doesn´t really need a previous test A): the first subtest opens the
> first fd, which provokes a context switch (gem_quiescent_gpu). This
> switch is actually completed (gem_quiescent_gpu makes sure with a
> gem_sync) and the old context disposed of, but its backing object
> remains alive until a retire_work kicks in (which in my case usually
> happens in the middle of the prime_self_test/export-vs-gem_close-race
> subtest, thus the "-1 objects leaked"). The comment in do_switch says it
> all:
>
> /* The backing object for the context is done after switching to the
> * *next* context. Therefore we cannot retire the previous context until
> * the next context has already started running. In fact, the below code
> * is a bit suboptimal because the retiring can occur simply after the
> * MI_SET_CONTEXT instead of when the next seqno has completed.
> */
>
> I´ll send a fix for prime_self_import, but... maybe we should make sure
> that the GPU is really quiescent, rather than fixing individual tests?
> (retire requests via drop caches at the end of gem_quiescent_gpu?).
Cool, you've already thought of my suggestion for your patch. Please
implement, I like it ;-)
Cheers, Daniel
--
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch
prev parent reply other threads:[~2013-11-01 16:30 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-01 12:55 i-g-t prime_self_import & gem_flink_race: leaked -1 objects Mateo Lozano, Oscar
2013-11-01 16:30 ` Daniel Vetter [this message]
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=20131101163047.GN4167@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=Intel-gfx@lists.freedesktop.org \
--cc=benjamin.widawsky@intel.com \
--cc=oscar.mateo@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