[Intel-gfx] [PATCH i-g-t v2 0/3] igt: Add a testsuite to validate VC4 MADV ioctl

Boris Brezillon boris.brezillon at free-electrons.com
Wed Oct 4 10:22:18 UTC 2017


Hello,
    
This patchset adds VC4 specific tests to validate the
DRM_IOCTL_VC4_GEM_MADVISE ioctl.

Note that this series depends on kernel/libdrm code that has not been
accepted yet and is just provided to show reviewers how the ioctl can be
used and what to expect from it.
    
Please do not consider this for inclusion in IGT until the kernel and
libdrm part have been accepted.

Chris, I still haven't exposed a debugfs file to trigger a purge. I'd
like to sync with Eric before doing that.

Eric, I didn't add your "Queue up a big rendering job and mark BO
purgeable" test (still need to figure out how to do that :-)). That's
on my TODO list for a v3.
    
Thanks,
    
Boris

Boris Brezillon (3):
  igt: Add a helper function to mark BOs purgeable
  igt: Add igt_vc4_get_param() helper
  igt: Add VC4 purgeable BO tests

 lib/igt_vc4.c            |  27 +++++
 lib/igt_vc4.h            |   2 +
 tests/Makefile.sources   |   1 +
 tests/meson.build        |   1 +
 tests/vc4_purgeable_bo.c | 265 +++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 296 insertions(+)
 create mode 100644 tests/vc4_purgeable_bo.c

-- 
2.11.0



More information about the Intel-gfx mailing list