All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gong, Zhipeng" <zhipeng.gong@intel.com>
To: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Cc: intel-gfx <intel-gfx@lists.freedesktop.org>,
	"Vivi, Rodrigo" <rodrigo.vivi@intel.com>
Subject: Re: [PATCH 2/3] tests/gem_exec_params: check the invalid flags for dual bsd ring
Date: Wed, 21 Jan 2015 01:04:26 +0000	[thread overview]
Message-ID: <A0A308111D30BF46A5A1E3C3D8A187A8011F4BBA@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <CABVU7+t007C0C--J-uMyavBqtT-kOU2SDQDwCZSueKhuvvXMMg@mail.gmail.com>



> -----Original Message-----
> From: Rodrigo Vivi [mailto:rodrigo.vivi@gmail.com]
> Sent: Wednesday, January 21, 2015 5:44 AM
> To: Gong, Zhipeng
> Cc: intel-gfx; Vivi, Rodrigo
> Subject: Re: [Intel-gfx] [PATCH 2/3] tests/gem_exec_params: check the invalid
> flags for dual bsd ring
> 
> I couldn't save my GT3 here for new tests, but on GT2 it fails:
> 
> $ sudo ./gem_exec_params
> IGT-Version: 1.9-g85bc151 (x86_64) (Linux: 3.19.0-rc4+ x86_64) Subtest control:
> SUCCESS (0.000s) Test requirement not met in function __real_main58, file
> gem_exec_params.c:108:
> Test requirement: !gem_has_bsd(fd)
> Subtest no-bsd: SKIP (0.000s)
> 
> GT2 has BSD so it shouldn't skip here
no-bsd test requires that platform has no bsd ring, so it should be skipped for GT2. I don't change this test.
> 
> Test requirement not met in function __real_main58, file
> gem_exec_params.c:113:
> Test requirement: !gem_has_blt(fd)
> Subtest no-blt: SKIP (0.000s)
> 
> Same issue here!
no-blt test requires that platform has no bsd ring, so it should be skipped for GT2. I don't change this test.
> 
> Test requirement not met in function __real_main58, file
> gem_exec_params.c:118:
> Test requirement: !gem_has_vebox(fd)
> Subtest no-vebox: SKIP (0.000s)
> 
> Same issue here!
no-vebox test requires that platform has no bsd ring, so it should be skipped for GT2. I don't change this test.
> 
> Subtest invalid-ring: SUCCESS (0.000s)
> Subtest invalid-ring2: SUCCESS (0.000s)
> Test requirement not met in function __real_main58, file
> gem_exec_params.c:133:
> Test requirement: gem_has_bsd2(fd)
> Subtest invalid-bsd-ring: SKIP (0.000s)
> 
> This one should be the only SKIP in my BDW GT2.
Yes, it is skipped on GT2
> 
> Thanks,
> Rodrigo.
> 
> On Mon, Jan 12, 2015 at 4:50 PM, Zhipeng Gong <zhipeng.gong@intel.com>
> wrote:
> > v2: add more tests to address Daniel's comments(Zhipeng)
> >
> > Signed-off-by: Zhipeng Gong <zhipeng.gong@intel.com>
> > ---
> >  tests/gem_exec_params.c | 41
> > +++++++++++++++++++++++++++++++++++++++++
> >  1 file changed, 41 insertions(+)
> >
> > diff --git a/tests/gem_exec_params.c b/tests/gem_exec_params.c index
> > f63eda9..54f0dc3 100644
> > --- a/tests/gem_exec_params.c
> > +++ b/tests/gem_exec_params.c
> > @@ -45,6 +45,9 @@
> >  #include "igt_aux.h"
> >
> >  #define LOCAL_I915_EXEC_VEBOX (4<<0)
> > +#define LOCAL_I915_EXEC_BSD_MASK (3<<13) #define
> > +LOCAL_I915_EXEC_BSD_RING1 (1<<13) #define
> LOCAL_I915_EXEC_BSD_RING2
> > +(2<<13)
> >
> >  struct drm_i915_gem_execbuffer2 execbuf;  struct
> > drm_i915_gem_exec_object2 gem_exec[1]; @@ -126,6 +129,44 @@
> igt_main
> >                 RUN_FAIL(EINVAL);
> >         }
> >
> > +       igt_subtest("invalid-bsd-ring") {
> > +               igt_require(gem_has_bsd2(fd));
> > +               execbuf.flags = I915_EXEC_BSD |
> LOCAL_I915_EXEC_BSD_MASK;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> > +       igt_subtest("invalid-bsd1-flag-on-render") {
> > +               execbuf.flags = I915_EXEC_RENDER |
> LOCAL_I915_EXEC_BSD_RING1;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> > +       igt_subtest("invalid-bsd2-flag-on-render") {
> > +               execbuf.flags = I915_EXEC_RENDER |
> LOCAL_I915_EXEC_BSD_RING2;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> > +       igt_subtest("invalid-bsd1-flag-on-blt") {
> > +               execbuf.flags = I915_EXEC_BLT |
> LOCAL_I915_EXEC_BSD_RING1;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> > +       igt_subtest("invalid-bsd2-flag-on-blt") {
> > +               execbuf.flags = I915_EXEC_BLT |
> LOCAL_I915_EXEC_BSD_RING2;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> > +       igt_subtest("invalid-bsd1-flag-on-vebox") {
> > +               igt_require(gem_has_vebox(fd));
> > +               execbuf.flags = LOCAL_I915_EXEC_VEBOX |
> LOCAL_I915_EXEC_BSD_RING1;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> > +       igt_subtest("invalid-bsd2-flag-on-vebox") {
> > +               igt_require(gem_has_vebox(fd));
> > +               execbuf.flags = LOCAL_I915_EXEC_VEBOX |
> LOCAL_I915_EXEC_BSD_RING2;
> > +               RUN_FAIL(EINVAL);
> > +       }
> > +
> >         igt_subtest("rel-constants-invalid-ring") {
> >                 igt_require(gem_has_bsd(fd));
> >                 execbuf.flags = I915_EXEC_BSD |
> > I915_EXEC_CONSTANTS_ABSOLUTE;
> > --
> > 1.8.3.1
> >
> > _______________________________________________
> > Intel-gfx mailing list
> > Intel-gfx@lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/intel-gfx
> 
> 
> 
> --
> Rodrigo Vivi
> Blog: http://blog.vivi.eng.br
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

  reply	other threads:[~2015-01-21  1:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-13  0:50 [PATCH i-g-t 0/3] tests: Add tests for new exec flags to export two bsd rings Zhipeng Gong
2015-01-13  0:50 ` [PATCH 1/3] i-g-t: check whether kernel has dual bsd ring Zhipeng Gong
2015-01-13  0:50 ` [PATCH 2/3] tests/gem_exec_params: check the invalid flags for " Zhipeng Gong
2015-01-20 21:43   ` Rodrigo Vivi
2015-01-21  1:04     ` Gong, Zhipeng [this message]
2015-01-13  0:50 ` [PATCH 3/3] test/gem_dummy_reloc_loop: add tests " Zhipeng Gong
2015-01-20 21:49   ` Rodrigo Vivi
2015-01-21  1:10     ` Gong, Zhipeng
2015-01-21  2:23       ` Rodrigo Vivi
  -- strict thread matches above, loose matches on Subject: below --
2014-08-07  7:49 [PATCH i-g-t 0/3] tests: Add tests for new exec flags to export two bsd rings Zhipeng Gong
2014-08-07  7:49 ` [PATCH 2/3] tests/gem_exec_params: check the invalid flags for dual bsd ring Zhipeng Gong
2014-12-02 18:45   ` Rodrigo Vivi

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=A0A308111D30BF46A5A1E3C3D8A187A8011F4BBA@SHSMSX103.ccr.corp.intel.com \
    --to=zhipeng.gong@intel.com \
    --cc=intel-gfx@lists.freedesktop.org \
    --cc=rodrigo.vivi@gmail.com \
    --cc=rodrigo.vivi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.