]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Protect WC stash allocation against direct reclaim
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 21 Jan 2018 17:31:43 +0000 (17:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 22 Jan 2018 12:22:04 +0000 (12:22 +0000)
commit286709e9abe949cd6818f2a3b3cc772281708c01
tree9a2167f9ae0a830ea27dcb41c7ab489e72a7e875
parente7b9f8ae8987625d37af2dddb2a158a8cdf8ea20
drm/i915: Protect WC stash allocation against direct reclaim

As we attempt to allocate pages for use in a new WC stash, direct
reclaim may run underneath us and fill up the WC stash. We have to be
careful then not to overflow the pvec.

Fixes: ebf89435c9ff ("drm/i915: Keep a small stash of preallocated WC pages")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103109
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180121173143.17090-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c