]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gen9: Turn DC handling into a power well
authorPatrik Jakobsson <patrik.jakobsson@linux.intel.com>
Mon, 16 Nov 2015 15:20:01 +0000 (16:20 +0100)
committerImre Deak <imre.deak@intel.com>
Tue, 17 Nov 2015 18:55:20 +0000 (20:55 +0200)
commited151f99bcce70b1a6fe659c1e6c8baa1e0e0bd0
tree970cd25a51e98554cc7186fa9e7ea4e3edf873a5
parent3bb214906466deb014da8297e24ab0f8462d7cd1
drm/i915/gen9: Turn DC handling into a power well

Handle DC off as a power well where enabling the power well will prevent
the DMC to enter selected DC states (required around modesets and Aux
A). Disabling the power well will allow DC states again. For now the
highest DC state is DC6 for Skylake and DC5 for Broxton but will be
configurable for Skylake in a later patch.

v2: Check both DC5 and DC6 bits in power well enabled function (Ville)
v3:
- Remove unneeded DC_OFF case in skl_set_power_well() (Imre)
- Add PW2 dependency to DC_OFF (Imre)
v4: Put DC_OFF before PW2 in BXT power well array

Signed-off-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com>
Reviewed-by: Imre Deak <imre.deak@intel.com>
[fixed line over 80 and parenthesis alignment checkpatch warns (imre)]
Link: http://patchwork.freedesktop.org/patch/msgid/1447687201-24759-1-git-send-email-patrik.jakobsson@linux.intel.com
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_reg.h
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_runtime_pm.c