drm/i915: Silently fallback to 4k scratch
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Oct 2017 11:10:05 +0000 (12:10 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 10 Oct 2017 16:42:56 +0000 (17:42 +0100)
commit06ea8c537ab8d14454d41599a64d46364fe1a75a
tree4266514887afac8dae59d61ae19d6a3ccf36a6ca
parent45c1cd8754064076f6090128958cbde9db45d41b
drm/i915: Silently fallback to 4k scratch

If we fail to allocate a 64k hugepage for scratch, we try again with a
normal 4k page (with some loss of efficiency at runtime). As we handle
this gracefully, we do not need a noisy allocation failure warning.

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>
Link: https://patchwork.freedesktop.org/patch/msgid/20171010111005.13625-1-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c