public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests/i915/gem_tiled_.*blits: skip the tests on newer gens
Date: Fri, 31 Jan 2020 08:02:42 +0100	[thread overview]
Message-ID: <20200131070242.GA8650@zkempczy-mobl2> (raw)
In-Reply-To: <158039852481.18112.2292421656643729526@skylake-alporthouse-com>

On Thu, Jan 30, 2020 at 03:35:24PM +0000, Chris Wilson wrote:
> Quoting Zbigniew Kempczyński (2020-01-30 15:17:57)
> > Skip the tests on newer gens when no fences are available
> > and gem_set_tiling() cannot succeed.
> > 
> > Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
> > Cc: Chris Wilson <chris@chris-wilson.co.uk>
> > ---
> >  tests/i915/gem_tiled_blits.c       | 1 +
> >  tests/i915/gem_tiled_fence_blits.c | 1 +
> >  2 files changed, 2 insertions(+)
> > 
> > diff --git a/tests/i915/gem_tiled_blits.c b/tests/i915/gem_tiled_blits.c
> > index df0699f3..ba0920da 100644
> > --- a/tests/i915/gem_tiled_blits.c
> > +++ b/tests/i915/gem_tiled_blits.c
> > @@ -204,6 +204,7 @@ igt_main
> >                 fd = drm_open_driver(DRIVER_INTEL);
> >                 igt_require_gem(fd);
> >                 gem_require_blitter(fd);
> > +               gem_require_mappable_ggtt(fd);
> 
> Well, I can think of a use for this for testing implicit HW tiling
> across the aperture thrashing...

If I good understand for all objects configured as tiled (X in this case)
each time blitter command will be executed appropriate fences will be
configured even they are not used for gen4+. So test configures this
ggtt space and fences but is really not used for gen4+. Even check_bo()
is performed after blitting to linear space which also doesn't use any
fence here. 

So we depend on libdrm set_tiling/get_tiling internally but test name 
just suggests we want to perform tiling blits operations (not exercising 
the aperture). For newer gen we can prepare blitter commands to make
a loop linear -> x -> y -> yf -> x -> y -> linear and check does a 
loop is idempotent at the end. This require rewrite the test completely
to make it similar to gem_tiled_fence_blits which just is libdrm
independent. 

Test name is confusing for me, it strongly suggest it was written
for doing tiled blits, but internally it tests aperture trashing.

> 
> >                 bufmgr = drm_intel_bufmgr_gem_init(fd, 4096);
> >                 drm_intel_bufmgr_gem_enable_reuse(bufmgr);
> > diff --git a/tests/i915/gem_tiled_fence_blits.c b/tests/i915/gem_tiled_fence_blits.c
> > index 93c79dc2..62fd1328 100644
> > --- a/tests/i915/gem_tiled_fence_blits.c
> > +++ b/tests/i915/gem_tiled_fence_blits.c
> > @@ -214,6 +214,7 @@ igt_main
> >                 fd = drm_open_driver(DRIVER_INTEL);
> >                 igt_require_gem(fd);
> >                 gem_require_blitter(fd);
> > +               gem_require_mappable_ggtt(fd);
> 
> but this is targeting the fence above and beyond the gem_tiled_blits.

Here at least we don't depend on libdrm, do similar things to gem_tiled_blits,
but we're verifying data through gtt mapping.

> 
> Sweeten the changelog by describing how you write a selftest to verify
> the implicit HW tiling independently of fence registers.
> -Chris

I think idempotency loop test described above + additional operations
not possible in userspace can be written.

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

  reply	other threads:[~2020-01-31  7:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-30 15:17 [igt-dev] [PATCH i-g-t] tests/i915/gem_tiled_.*blits: skip the tests on newer gens Zbigniew Kempczyński
2020-01-30 15:35 ` Chris Wilson
2020-01-31  7:02   ` Zbigniew Kempczyński [this message]
2020-01-30 16:38 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-02-02  6:02 ` [igt-dev] ✗ Fi.CI.IGT: failure " 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=20200131070242.GA8650@zkempczy-mobl2 \
    --to=zbigniew.kempczynski@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@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