]> 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)
commitaf9c9603ddd749fed099bf57e3df85883ad476fc
tree2ed47de6ba39561fd6d38ea8c1135a6075317f6c
parente2bea71f363c984c9510a3a400f76a46d9687692
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