]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Only apply legacy PDE overflow detection to 3lvl machines
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 17 Feb 2017 14:14:55 +0000 (14:14 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 20 Feb 2017 09:42:59 +0000 (09:42 +0000)
commit65d9766cca1da67554098b6fccc1be0b38c6e38b
tree99413a62779a2a029fe4375615453a86eb0c08b7
parentf2e251e4742b99bf960016137870830e634ea25a
drm/i915: Only apply legacy PDE overflow detection to 3lvl machines

Prevent the overflow check from firing on machines with the full 4lvl
page tables, that are not restricted to GEN8_LEGACY_PDES.

v2: Also fix the off-by-one in the compare

Fixes: 0ef3e92e9fcd ("drm/i915: Micro-optimise gen8_ppgtt_insert_entries()")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170217141455.19877-1-chris@chris-wilson.co.uk
Reviewed-by: Mika Kuoppala <mika.kuoppala@intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c