]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gtt: Allow pagedirectory allocations to fail
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 May 2018 08:36:43 +0000 (09:36 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 May 2018 09:56:46 +0000 (10:56 +0100)
commit8b188dd89615cb348e178d17a3a7a3bc6747fedc
treed3f14b1019011926b1ed5f7687e90a2e16330ab3
parent80dd044053a6188a75d72f9ac922003869d86788
drm/i915/gtt: Allow pagedirectory allocations to fail

As we handle the allocation failure of the page directory and tables by
propagating the failure back to userspace, allow it to fail if direct
reclaim is unable to satisfy the request (i.e. disable the oomkiller).
The premise being that if we are unable to allocate a single page for
the pagetable, we will not be able to handle the multitude of pages
required for the gfx operation and we should back off to allow the
system to recover.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=106609
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180522083643.29601-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c