drm/i915: Mark vm_free_page() as a potential sleeper agent
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Nov 2017 21:34:49 +0000 (21:34 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 9 Nov 2017 22:06:03 +0000 (22:06 +0000)
commit13619bb1767198f66719bcdcd51d87e6958fc8e9
tree2f8951d0aa4b6aa6f6daa029004fdf558f25969a
parent8b636f78cee03abf87277e4a9db0dbeb8fb4857c
drm/i915: Mark vm_free_page() as a potential sleeper agent

vm_free_page() may call down into set_pages_array_wb() (which itself
sleeps, on x86 at least) but only if on !llc and the caches overflow.
Since this is unlikely, we only rarely trigger the error in practice,
and so to make CI detection of this sleeping bug possible we want to
mark the common vm_free_page() as a potential sleep.

Suggested-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=103638
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Matthew Auld <matthew.william.auld@gmail.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20171109213450.13875-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c