]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915: Break long iterations for get/put shmemfs pages
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Nov 2018 17:06:40 +0000 (17:06 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 6 Nov 2018 13:14:05 +0000 (13:14 +0000)
commite6db7f4d7c5005258b862a5ed1732756fccb6bfa
treeb15956ff7e61fe660c7fdffdc3bc154c241a4b42
parentbfe60a0272ddadcdfddac77fcfa1860e97c6943d
drm/i915: Break long iterations for get/put shmemfs pages

As we may have to iterate a few thousand elements to acquire and release
the shmemfs backing storage for a GPU object, we need to break up the
long loop with cond_resched() to retain a modicum of low latency for
other processes.

Testcase: igt/benchmarks/gem_syslatency
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Kuo-Hsin Yang <vovoy@chromium.org>
Cc: Matthew Auld <matthew.auld@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181105170640.26905-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c