diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 17:15:13 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-13 20:45:23 +0000 |
commit | 935a2f776aa523cd6ad20c9b7c7d019ba9418759 (patch) | |
tree | c952301e5a9705c9f287ead1bd4e054c26bc20e4 /drivers/gpu/drm/i915/selftests/mock_engine.h | |
parent | 953c7f82eb890085c60dbe22578e883d6837c674 (diff) |
drm/i915: Add some selftests for sg_table manipulation
Start exercising the scattergather lists, especially looking at
iteration after coalescing.
v2: Comment on the peculiarity of table construction (i.e. why this
sg_table might be interesting).
v3: Added one __func__ to identify expect_pfn_sg()
v4: Loop until we have crossed the chain boundary (forcing sg_table to
do multiple allocations) before squelching a potential ENOMEM from oom.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213171558.20942-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/mock_engine.h')
0 files changed, 0 insertions, 0 deletions