]> 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)
commit7170023689c416cb7dc620683bb8544e1d0cc77b
treed3f14b1019011926b1ed5f7687e90a2e16330ab3
parent156ae664cff92edf61abee444371355b0300ad8e
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