public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] igt tests/gem_exec_params: Test for -EINVAL for invalid platform and ring when executing RS
Date: Wed, 7 May 2014 00:42:12 +0200	[thread overview]
Message-ID: <20140506224211.GJ5730@phenom.ffwll.local> (raw)
In-Reply-To: <20140506224013.GI5730@phenom.ffwll.local>

On Wed, May 07, 2014 at 12:40:13AM +0200, Daniel Vetter wrote:
> On Wed, May 07, 2014 at 12:40:53AM +0300, Abdiel Janulgue wrote:
> > Add test that makes sure RS bit only gets executed on BDW and
> > on the render ring.
> > 
> > Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
> > ---
> >  tests/gem_exec_params.c |   11 +++++++++++
> >  1 file changed, 11 insertions(+)
> > 
> > diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c
> > index 769969d..a3f765b 100644
> > --- a/tests/gem_exec_params.c
> > +++ b/tests/gem_exec_params.c
> > @@ -193,6 +193,17 @@ igt_main
> >  		execbuf.num_cliprects = 0;
> >  	}
> >  
> > +	igt_subtest("rs-not-gen8") {
> > +                igt_require(intel_gen(devid) != 8);
> > +                execbuf.flags = I915_EXEC_RENDER | I915_EXEC_RESOURCE_STREAMER;
> > +                RUN_FAIL(EINVAL);
> > +        }
> > +
> > +	igt_subtest("invalid-rs-ring") {
> > +		execbuf.flags = I915_EXEC_RESOURCE_STREAMER;
> > +		RUN_FAIL(EINVAL);
> 
> See Chris comment, but 0 is actually _not_ an invalid ring, but aliases
> RCS. Yeah, we have a fun api. So this should actually suceed, at least on
> bdw (and -EINVAL everywhere else).
> 
> So you need to explicitly test with some other ring like VCS
> (I915_EXEC_BSD).

Also you didn't update the invalid-flag subtest ... I wonder why that
didn't fail on bdw.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

      reply	other threads:[~2014-05-06 22:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-06 21:40 [PATCH] igt tests/gem_exec_params: Test for -EINVAL for invalid platform and ring when executing RS Abdiel Janulgue
2014-05-06 22:40 ` Daniel Vetter
2014-05-06 22:42   ` 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=20140506224211.GJ5730@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=abdiel.janulgue@linux.intel.com \
    --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