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)
commitf18819a3c8da62a85cd6e0c546fc8b6dd4e4c865
tree68c54d05282a1d8faa9536e80d1f10ac0ebcb876
parent3ee2771e47b038624d68aa051d78ff8558c260b9
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