OSDN Git Service

drm/i915: Simplify condition to keep DMC active during S0ix
authorImre Deak <imre.deak@intel.com>
Wed, 22 Aug 2018 11:26:02 +0000 (14:26 +0300)
committerImre Deak <imre.deak@intel.com>
Thu, 23 Aug 2018 13:10:58 +0000 (16:10 +0300)
commita61d904fd6fa85bfa7e0ae9aeaa8992173322e77
tree4b3b0456e985a399b3a91a9c56da7bd0a94920f4
parent53867b46fa8443713b3aee520d6ca558b222d829
drm/i915: Simplify condition to keep DMC active during S0ix

For S0ix we want to deinit power domains (and so deactivate the DMC
firmware) exactly when the platform supports the DC9 state. To reach
S0ix we need DC9 on these platforms (for which the DMC FW needs to be
deactivated) while to reach S0ix on the rest of the DMC platforms we
need DC6 (which needs the DMC FW to stay active).

Simplify the condition accordingly so it will be automatically
correct for upcoming DC9 platforms like ICL.

Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Michel Thierry <michel.thierry@intel.com>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Imre Deak <imre.deak@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180822112602.27543-1-imre.deak@intel.com
drivers/gpu/drm/i915/intel_runtime_pm.c