]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Fix logical inversion for gen4 quirking
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 21 May 2017 12:40:14 +0000 (13:40 +0100)
committerJani Nikula <jani.nikula@intel.com>
Wed, 7 Jun 2017 13:31:34 +0000 (16:31 +0300)
commit94be79a3ee14d6905c61cb530cc8ec073849d1f9
tree5f8907b3131a7f0b4fa8bfccbfdb49c377e68609
parenta3e2e201bc0c24cff0d78e2baa438b29bba376e5
drm/i915: Fix logical inversion for gen4 quirking

The assertion that we want to make before disabling the pin of the pages
for the unknown swizzling quirk is that the quirk is indeed active, and
that the quirk is disabled before we do apply it to the pages.

Fixes: e24a7417df48 ("drm/i915: Fix pages pin counting around swizzle quirk")
Fixes: 9e25dc1b764a ("drm/i915: Split out i915_gem_object_set_tiling()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170521124014.27678-1-chris@chris-wilson.co.uk
Reviewed-bhy: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
(cherry picked from commit 20bb377106af69d16269b1837e9a945b9f508a2e)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/i915_gem_tiling.c