]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: add a selftest for the mmio_bases table
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Wed, 14 Mar 2018 18:26:51 +0000 (11:26 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 15 Mar 2018 08:46:06 +0000 (08:46 +0000)
commit74419daaae6c1dafe9cc5d4d0c92c17982f4eebd
treeeb7e9ed08a4b4e0f88ae035098f025ad4319ace3
parent80b216b98b0cd4f10303863c062b7ab7d117ada7
drm/i915: add a selftest for the mmio_bases table

Check that the entries are in reverse gen order and that all entries
with gen > 0 have an mmio base set.

v2: loop forward, simplify logic, use i915_subtests (Chris)

Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180314182653.26981-2-daniele.ceraolospurio@intel.com
drivers/gpu/drm/i915/intel_engine_cs.c
drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
drivers/gpu/drm/i915/selftests/intel_engine_cs.c [new file with mode: 0644]