]> 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)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 1 Feb 2018 15:32:46 +0000 (07:32 -0800)
commita7518cbc1bc12e04d4e9c9b44140ed209b32e102
treeac7d8efe51b78395d3cc4bb059c0d34102fde8b6
parent4beadb029cde556c13a05d979a1c347ad16e46c7
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
(cherry picked from commit 073cd7816685ac77c6d8b4d321a5586c9177b76a)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/i915_gem_gtt.c