From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>, intel-gfx@lists.freedesktop.org
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [PATCH i-g-t] i915/gem_ctx_persistence: Check precision of hostile cancellation
Date: Tue, 25 Feb 2020 18:18:12 +0000 [thread overview]
Message-ID: <836f0076-cc40-46dc-6e8f-97a70ee1c2e7@linux.intel.com> (raw)
In-Reply-To: <158265431375.3656.10896445408963081099@skylake-alporthouse-com>
On 25/02/2020 18:11, Chris Wilson wrote:
> Quoting Tvrtko Ursulin (2020-02-25 18:08:14)
>>
>> On 24/02/2020 21:56, Chris Wilson wrote:
>>> Check that if we have to remove a hostile request from a non-persistent
>>> context, we do so without harming any other concurrent users.
>>>
>>> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
>>> ---
>>> + /* All other spinners should be left unharmed */
>>> + gem_quiescent_gpu(i915);
>>> + igt_assert_eq(sync_fence_wait(fence, reset_timeout_ms), 0);
>>> + igt_assert_eq(sync_fence_status(fence), 1);
>>
>> I don't quite get this test. Why would other spinners be unharmed? They
>> are non-preemptible as well. And non-persistent spinner is alone on the
>> engine. So what aspect you wanted to test?
>
> Per-engine reset. Termination of the non-persistent context should be
> clean and precise, we don't allow creation of non-persistent contexts
> unless we have that level of surgical precision. Otherwise it becomes a
> new attack vector.
If it is just engine reset then it does what it says on the tin.
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Regards,
Tvrtko
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-02-25 18:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-24 21:56 [igt-dev] [PATCH i-g-t] i915/gem_ctx_persistence: Check precision of hostile cancellation Chris Wilson
2020-02-24 23:12 ` [igt-dev] ✗ GitLab.Pipeline: failure for " Patchwork
2020-02-24 23:22 ` [igt-dev] ✗ Fi.CI.BAT: " Patchwork
2020-02-25 18:08 ` [Intel-gfx] [PATCH i-g-t] " Tvrtko Ursulin
2020-02-25 18:11 ` [igt-dev] " Chris Wilson
2020-02-25 18:18 ` Tvrtko Ursulin [this message]
2020-02-25 18:22 ` 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=836f0076-cc40-46dc-6e8f-97a70ee1c2e7@linux.intel.com \
--to=tvrtko.ursulin@linux.intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox