]> 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)
commitc9e33d70f75017219c1c71f4cb6c2a67f5faad84
tree68c54d05282a1d8faa9536e80d1f10ac0ebcb876
parentb6e430e8f6499d4bfdb844474668d85f5af2886b
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