]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/selftests: Limit live_gtt allocation test to fit within RAM
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 12:53:38 +0000 (13:53 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 6 Jul 2018 15:44:59 +0000 (16:44 +0100)
commit8cd4a3d4c4a5600e64830071a077d3a73060510d
tree2ed47de6ba39561fd6d38ea8c1135a6075317f6c
parent6aab2f125ec583c1cf73105ec17ba35e781384fa
drm/i915/selftests: Limit live_gtt allocation test to fit within RAM

Limit the GTT size we try and allocate to ensure that it fits within RAM
and does not trigger the oomkiller indiscriminately.

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/20180706125338.24432-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c