OSDN Git Service

drm/i915: Add selftests for object allocation, phys
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 17:15:28 +0000 (17:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 13 Feb 2017 20:45:42 +0000 (20:45 +0000)
commit8335fd65ce6c880876ea0f94f427aa2499bcd05a
treeada537219f451b010625dc4094e1b44b86f5971b
parentcd3862dc6e89817dbeefa02881400da926ffceeb
drm/i915: Add selftests for object allocation, phys

The phys object is a rarely used device (only very old machines require
a chunk of physically contiguous pages for a few hardware interactions).
As such, it is not exercised by CI and to combat that we want to add a
test that exercises the phys object on all platforms.

v2: Always set err on error paths and not rely on inheriting the err.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-17-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/selftests/i915_gem_object.c [new file with mode: 0644]
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h