]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Allow internal page allocations to fail
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Dec 2017 10:17:53 +0000 (10:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Dec 2017 11:35:43 +0000 (11:35 +0000)
commitee2202d73b4c9977ce0120fc8631a1c90bfbd77c
tree05761dfa211141bd3494f453c5b1516978c8c42f
parentee5b5bf351ec8cd8f11c631cb76b30f602e866ee
drm/i915: Allow internal page allocations to fail

Internal objects consistent of scratch pages not subject to the
persistence guarantees of user facing objects. They are used for
example, in ring buffers where they are only required for temporary
storage of commands that will be rewritten every time. As they are
temporary constructs, quietly report -ENOMEM back along the callchain
rather than subject the system to oomkiller if an allocation fails.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171215101753.1519-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_internal.c