drm/i915/uc: Introduce intel_uc_suspend|resume
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Fri, 2 Mar 2018 11:15:49 +0000 (11:15 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 2 Mar 2018 23:11:12 +0000 (23:11 +0000)
commit7cfca4afd656f0aa6f136d8a1260d994abc96a0c
treecd0d73b5ef7687193e8f8142253a523dbf6fe592
parenta3e3883646c05828f96369f7809436f1b3247234
drm/i915/uc: Introduce intel_uc_suspend|resume

We want to use higher level 'uc' functions as the main entry points to
the GuC/HuC code to hide some details and keep code layered.

While here, move call to disable_guc_interrupts after sending suspend
action to the GuC to allow it work also with CTB as comm mechanism.

v2: update commit msg (Sagar)

Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Sagar Arun Kamble <sagar.a.kamble@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180302111550.21328-1-michal.wajdeczko@intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/intel_guc.c
drivers/gpu/drm/i915/intel_guc.h
drivers/gpu/drm/i915/intel_uc.c
drivers/gpu/drm/i915/intel_uc.h