drm/i915/guc: GuC suspend path cleanup
authorSujaritha Sundaresan <sujaritha.sundaresan@intel.com>
Thu, 21 Mar 2019 20:38:04 +0000 (13:38 -0700)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 22 Mar 2019 08:58:07 +0000 (08:58 +0000)
commitb9d52d381e142fb3275430ac40ab119565d046f4
treeb218ee29b8d838012b64fcc2b6e6cddf608fcd3e
parente70d3d8040410a46893c0986a5b0fd64c466b7e9
drm/i915/guc: GuC suspend path cleanup

Adding a call to intel_uc_suspend in i915_gem_suspend, which
is a common point for the suspend/resume and hibernate paths.
This fixes an unbalanced call that causes issues with the CTB
register/deregister.

v2: Making the call unconditional (Daniele)
Moving the call to after the GEM_BUG_ON (Chris)

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