commit | 073cd7816685ac77c6d8b4d321a5586c9177b76a | [log] [tgz] |
---|---|---|
author | Chris Wilson <chris@chris-wilson.co.uk> | Sun Jan 21 17:31:43 2018 +0000 |
committer | Chris Wilson <chris@chris-wilson.co.uk> | Mon Jan 22 12:22:04 2018 +0000 |
tree | 9a2167f9ae0a830ea27dcb41c7ab489e72a7e875 | |
parent | 861023e0b6c44d6373abb3e63f853592adda0e3b [diff] |
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: 66df1014efba ("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