]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Detect unknown swizzling correctly
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jul 2018 17:15:23 +0000 (18:15 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 5 Jul 2018 19:53:01 +0000 (20:53 +0100)
commitc31c23568e0045f3d1a3c14f44b9e28745a79600
treeff48c4871db39439c89de24de33842984b5cde38
parent3cc0cca1a18e4a4c49c7828fd053d5b36a5b1e97
drm/i915/selftests: Detect unknown swizzling correctly

i915_gem_detect_bit_6_swizzle() tries to hide unknown swizzling from
userspace (and ourselves) leaving us with the only clue inside
i915->quirks & QUIRK_PIN_SWIZZLED_PAGES. If we see this bit set, it
means that we really have no clue as to what the swizzle pattern is
being used in any one page and so cannot compute what the reference
value should be in our tiling selftests. We have to skip the test.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107133
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180705171523.18462-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_object.c