[Intel-gfx] [PATCH 0/3] Tests for verifying the old and extended GEM_CREATE ioctl
ankitprasad.r.sharma at intel.com
ankitprasad.r.sharma at intel.com
Wed May 13 04:53:41 PDT 2015
From: Ankitprasad Sharma <ankitprasad.r.sharma at intel.com>
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.
Ankitprasad Sharma (3):
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
lib/ioctl_wrappers.c | 60 ++++++++
lib/ioctl_wrappers.h | 12 ++
tests/Makefile.sources | 2 +
tests/gem_create.c | 177 ++++++++++++++++++++++++
tests/gem_pread.c | 100 ++++++++++++++
tests/gem_pwrite.c | 45 ++++++
tests/gem_stolen.c | 361 +++++++++++++++++++++++++++++++++++++++++++++++++
7 files changed, 757 insertions(+)
create mode 100644 tests/gem_create.c
create mode 100644 tests/gem_stolen.c
--
1.9.1
More information about the Intel-gfx
mailing list