drm/i915/selftests: Allow huge_gem_object to kick the shrinker
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jan 2021 02:00:13 +0000 (02:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Jan 2021 09:47:24 +0000 (09:47 +0000)
commit8c1f21273e22e3b4a4958440e695190661303244
tree9b9a28ae536e2a241090744e688ddb22736fca4f
parentf7073fb98eb5771c0e21b9ca36f60fe8a98735f2
drm/i915/selftests: Allow huge_gem_object to kick the shrinker

A new fi-cml-dallium CI machine has 8G and apparently plenty free, yet
fails some selftests with ENOMEM. The failures all seem to be from
huge_gem_object which does not try very hard to allocate memory,
skipping reclaim entirely. Let's try a bit harder and direct reclaim
before failing.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210112020013.19464-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/selftests/huge_gem_object.c