]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Restrict the aliasing-ppgtt to the size of the ggtt
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Sep 2019 04:02:43 +0000 (05:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Sep 2019 04:29:33 +0000 (05:29 +0100)
commit3d1b61a16c449a7b5ff6a8fa7613c6fc8a5f6eb1
tree8d63f786d8cff84c3017349a6da24685cf58ee0f
parentf6b5ab28b2a0c982ad471d8a2a627cbd9e43a8d0
drm/i915: Restrict the aliasing-ppgtt to the size of the ggtt

The aliasing-ppgtt is not allowed to be smaller than the ggtt, nor
should we advertise it as being any bigger, or else we may get sued for
false advertisement.

Testcase: igt/gem_exec_big
Fixes: ba4582603a33 ("drm/i915/gtt: Downgrade Cherryview back to aliasing-ppgtt")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190902040303.14195-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c