[PATCH v4 0/3] Tests for verifying the old and extended GEM_CREATE ioctl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Ankitprasad Sharma <ankitprasad.r.sharma@xxxxxxxxx>

This new set of tests verifies the old and the new extended GEM_CREATE ioctl
gem_stolen tries to verify the new extended GEM_CREATE ioctl, which tries to
create an object backed by stolen memory and performs basic operations on it.
It verifies the creation as well as the purging of an object when it is no
longer needed, copying contents of a stolen backed object to another, doing
a pread/pwrite on the object and verifying its contents.

We also try to pread/pwrite a stolen backed object multiple times to get the
pread/pwrite speed, as well as pread speed when there is a page fault while
accessing userspace buffer.

There is a new test gem_create to do a sanity check for creating both
stolen/shmem backed objects with valid and invalid parameters.

v2: Rebased to the latest and added IGT_TEST_DESCRIPTION

v3: Addressed comments by Tvrtko and Dave, added one more testcase for verifying
extended gem_create ioctl

v4: Addressed comments by Tvrtko, removed unused variables, addressed compiler
warnings

v5: Added one more patch to verify contents of stolen backed object across
hibernation

Ankitprasad Sharma (4):
  igt/gem_stolen: Verifying extended gem_create ioctl
  igt/gem_pread: Support to verify pread/pwrite for non-shmem backed obj
  igt/gem_create: Test to validate parameters for GEM_CREATE ioctl
  igt/gem_stolen: Verify contents of stolen-backed objects across
    hibernation

 lib/ioctl_wrappers.c   |  72 ++++++++
 lib/ioctl_wrappers.h   |  13 ++
 tests/Makefile.sources |   2 +
 tests/gem_create.c     | 166 ++++++++++++++++++
 tests/gem_pread.c      | 108 +++++++++++-
 tests/gem_pwrite.c     |  55 +++++-
 tests/gem_stolen.c     | 446 +++++++++++++++++++++++++++++++++++++++++++++++++
 7 files changed, 849 insertions(+), 13 deletions(-)
 create mode 100644 tests/gem_create.c
 create mode 100644 tests/gem_stolen.c

-- 
1.9.1

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




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux