summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_drv.h
diff options
context:
space:
mode:
authorImre Deak <imre.deak@intel.com>2016-02-29 22:49:03 +0200
committerImre Deak <imre.deak@intel.com>2016-03-01 19:11:10 +0200
commita37baf3b832b862d09e10067b7d2065b3b42a729 (patch)
tree42f6c46f4ec0328b77d1facebd7042ab6f5be517 /drivers/gpu/drm/i915/i915_drv.h
parent2622d79bd9d18fd04b650234e6a218c5f95cf308 (diff)
downloadtalos-op-linux-a37baf3b832b862d09e10067b7d2065b3b42a729.tar.gz
talos-op-linux-a37baf3b832b862d09e10067b7d2065b3b42a729.zip
drm/i915/gen9: Sanitize handling of allowed DC states
We can simplify the conditions selecting the target DC state during runtime by calculating the allowed DC states in advance during driver loading. This also makes it easier to disable DC states depending on the i915.disable_power_well module option, added in the next patch. v2: - Print a debug message if the requested max DC value was adjusted due to a platform limit. Also debug print the calculated mask value. (Patrik) CC: Patrik Jakobsson <patrik.jakobsson@linux.intel.com> Signed-off-by: Imre Deak <imre.deak@intel.com> Reviewed-by: Patrik Jakobsson <patrik.jakobsson@linux.intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1456778945-5411-2-git-send-email-imre.deak@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_drv.h')
-rw-r--r--drivers/gpu/drm/i915/i915_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h
index 7d2b07fc1617..0e2fb5bdd0fb 100644
--- a/drivers/gpu/drm/i915/i915_drv.h
+++ b/drivers/gpu/drm/i915/i915_drv.h
@@ -756,6 +756,7 @@ struct intel_csr {
i915_reg_t mmioaddr[8];
uint32_t mmiodata[8];
uint32_t dc_state;
+ uint32_t allowed_dc_mask;
};
#define DEV_INFO_FOR_EACH_FLAG(func, sep) \
OpenPOWER on IntegriCloud