]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit1abb70f5955d1a9021f96359a2c6502ca569b68d
treed3f14b1019011926b1ed5f7687e90a2e16330ab3
parent84b510e22da7926522a257cfe295d3695346a0bd
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