OSDN Git Service

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)
commit207b700050b8d323d0c23b457c200b22c7ed3737
tree2ed47de6ba39561fd6d38ea8c1135a6075317f6c
parent66daec6b21840ea09af4c41f706867df7d81c820
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