igt-dev.lists.freedesktop.org archive mirror
 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: Intel-gfx@lists.freedesktop.org
Subject: Re: [Intel-gfx] [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec
Date: Tue, 18 Sep 2018 11:33:14 +0100	[thread overview]
Message-ID: <ee3043f7-b7bb-88b4-7be0-ee26e84dfa2e@linux.intel.com> (raw)
In-Reply-To: <153726500314.19296.6319588187438136083@skylake-alporthouse-com>


On 18/09/2018 11:03, Chris Wilson wrote:
> Quoting Chris Wilson (2018-09-18 11:02:09)
>> Quoting Tvrtko Ursulin (2018-09-18 10:59:11)
>>>
>>> On 18/09/2018 10:44, Chris Wilson wrote:
>>>> Quoting Tvrtko Ursulin (2018-09-18 10:38:44)
>>>>> Can I say it is testing the i915_execbuffer2_set_context_id as well by
>>>>> knowing underlying ABI field is 64-bit wide and keep the r-b? (No trash
>>>>> in unused part of rsvd1.)
>>>>
>>>> The field isn't 64-bit wide, so the test would be misleading unfortunately.
>>>
>>> rsvd1? It is 64-bit in i915_drm.h I am looking at. And ABI is free to
>>> set it directly.
>>>
>>> But true, it seems we are not checking for trash in upper 32-bits in
>>> execbuf paths.. :(
>>>
>>> So this means regardless of what helper does the ABI is actually 64-bit.
>>> So test should actually bypass the helper I think and set rsvd1 directly
>>> I think. And keep the 64-bit invalid values.
>>
>> We are not checking 64b. Think of one value that invalidates the test.

eb.rsdvd = ctx << 32; always gives you the default context?

But is ABI the macro helper or the comment in i915_drm.h against rsvd1?

Probably the main problem is that we forgot to check for trash in upper 
bits..

Or in other words, what do you want to see here in terms of invalid 
values and helper or not? Stick to 32-bits just because that's where we 
are now with the historical implementation?

> We can construct more values that would fail if we create a few contexts
> and destroy them testing that that are invalid after use.

Hello scope creep, okay, I'll add it.

Regards,

Tvrtko
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2018-09-18 10:33 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-17 15:46 [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec Tvrtko Ursulin
2018-09-17 15:46 ` [igt-dev] [PATCH i-g-t 2/2] gem_ctx_exec: Remove lrc-lite-restore Tvrtko Ursulin
2018-09-17 15:53   ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-09-17 15:52 ` [igt-dev] [PATCH i-g-t 1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec Chris Wilson
2018-09-18  9:38   ` [Intel-gfx] " Tvrtko Ursulin
2018-09-18  9:44     ` Chris Wilson
2018-09-18  9:59       ` [igt-dev] [Intel-gfx] " Tvrtko Ursulin
2018-09-18 10:02         ` Chris Wilson
2018-09-18 10:03           ` Chris Wilson
2018-09-18 10:33             ` Tvrtko Ursulin [this message]
2018-09-18 10:45               ` Chris Wilson
2018-09-18 10:59                 ` [igt-dev] [PATCH i-g-t v3 " Tvrtko Ursulin
2018-09-18 11:06                   ` [igt-dev] [Intel-gfx] " Chris Wilson
2018-09-18 11:21                     ` [igt-dev] [PATCH i-g-t v4 " Tvrtko Ursulin
2018-09-17 16:27 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/2] " Patchwork
2018-09-17 18:04 ` [igt-dev] ✓ Fi.CI.BAT: success " Patchwork
2018-09-17 20:02 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork
2018-09-18 11:28 ` [igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,v3,1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec (rev2) Patchwork
2018-09-18 11:52 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,v4,1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec (rev3) Patchwork
2018-09-18 12:21 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,v3,1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec (rev2) Patchwork
2018-09-18 13:04 ` [igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,v4,1/2] tests/gem_ctx_bad_exec: Consolidate to gem_ctx_exec (rev3) 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=ee3043f7-b7bb-88b4-7be0-ee26e84dfa2e@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=Intel-gfx@lists.freedesktop.org \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=tursulin@ursulin.net \
    /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;
as well as URLs for NNTP newsgroup(s).