]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/guc: Avoid reclaim locks during reset
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jul 2019 10:04:51 +0000 (11:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 1 Jul 2019 15:21:43 +0000 (16:21 +0100)
commitdb3f1d2520d4e0ea2e27836601c1c13325d0d4cd
tree68c54d05282a1d8faa9536e80d1f10ac0ebcb876
parent1c71bfaeaa901b2ae20e1f804f0643f158892516
drm/i915/guc: Avoid reclaim locks during reset

During reset, we must be very selective in which locks we take as most
are tainted by being held across a wait or reclaim (kmalloc) which
implicitly waits. Inside the guc reset path, we reset the ADS to sane
defaults, but must keep it pinned from initialisation to avoid having to
pin it during reset.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190701100502.15639-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/intel_guc.h
drivers/gpu/drm/i915/intel_guc_ads.c