Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>,
	Tvrtko Ursulin <tursulin@ursulin.net>,
	igt-dev@lists.freedesktop.org
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Subject: Re: [igt-dev] [PATCH i-g-t 1/2] lib/dummyload: Allow spin batches to be restarted
Date: Wed, 31 Jan 2018 17:24:47 +0000	[thread overview]
Message-ID: <7790af7d-0783-660f-abb4-dbf7136c133b@linux.intel.com> (raw)
In-Reply-To: <151741378846.10214.1316225455958343845@mail.alporthouse.com>


On 31/01/2018 15:49, Chris Wilson wrote:
> Quoting Chris Wilson (2018-01-31 15:44:41)
>> Quoting Tvrtko Ursulin (2018-01-31 12:34:40)
>>> diff --git a/lib/igt_dummyload.h b/lib/igt_dummyload.h
>>> index ffa7e351dea3..b9f201d4afb6 100644
>>> --- a/lib/igt_dummyload.h
>>> +++ b/lib/igt_dummyload.h
>>> @@ -36,6 +36,12 @@ typedef struct igt_spin {
>>>          struct igt_list link;
>>>          uint32_t *batch;
>>>          int out_fence;
>>> +       struct drm_i915_gem_exec_object2 obj[2];
>>> +       struct drm_i915_gem_relocation_entry relocs[2];
>>> +       struct drm_i915_gem_execbuffer2 execbuf;
>>
>> I'm dubious whether we want to emit the dependency obj on resubmit. I
>> can see where it may be desired, and where it may be a hindrance.
>>
>> I think I'm coming down on the side that to reemit the dependency is
>> surprising, and would argue that if that is desired it should be an
>> explicit parameter to restart().
> 
> Stronger hint that it is surprising to remit the dependency obj is that
> it is owned by the caller, who may not realise it has been captured by
> the spin batch and will call gem_close() on it.

Hm, I kind of cannot bring myself to care, or at least see it as a 
problem. My thinking is, that if userspace uses restarts and nukes the 
dependency object in the meantime, it will get to know its mistake soon 
enough.

In other words, the only way in which the dependency has been "captured" 
is if caller explicitly uses the API.

So to me it still sounds logical to repeat the exactly same submission 
as was the original one.

But ultimately I care much more about getting this test done over API 
details so can change this if you insist.

Regards,

Tvrtko
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2018-01-31 17:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-31 12:34 [igt-dev] [PATCH i-g-t 1/2] lib/dummyload: Allow spin batches to be restarted Tvrtko Ursulin
2018-01-31 12:34 ` [igt-dev] [PATCH i-g-t 2/2] tests/perf_pmu: Verify engine busyness accuracy Tvrtko Ursulin
2018-01-31 13:18 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] lib/dummyload: Allow spin batches to be restarted Patchwork
2018-01-31 15:44 ` [igt-dev] [PATCH i-g-t 1/2] " Chris Wilson
2018-01-31 15:49   ` Chris Wilson
2018-01-31 17:24     ` Tvrtko Ursulin [this message]
2018-01-31 16:47 ` [igt-dev] ✗ Fi.CI.IGT: failure for series starting with [i-g-t,1/2] " Patchwork
2018-01-31 17:26   ` Tvrtko Ursulin
2018-01-31 21:21     ` 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=7790af7d-0783-660f-abb4-dbf7136c133b@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=tursulin@ursulin.net \
    --cc=tvrtko.ursulin@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