[Intel-gfx] [RFC PATCH 4/3 :] drm/i915: tell BIOS to update controller EM4/EM5 divider values

Jani Nikula jani.nikula at intel.com
Tue Jul 1 17:00:22 CEST 2014


This may do what's required on Haswell to achieve the same as the
previous patch does on Broadwell...

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=74861
Signed-off-by: Jani Nikula <jani.nikula at intel.com>
---
 drivers/gpu/drm/i915/intel_pm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c
index b1cbb6f4ec06..504c8675e8b4 100644
--- a/drivers/gpu/drm/i915/intel_pm.c
+++ b/drivers/gpu/drm/i915/intel_pm.c
@@ -6248,6 +6248,8 @@ int i915_request_power_well(void)
 	intel_opregion_notify_cdclk(dev_priv->dev,
 				    intel_ddi_get_cdclk_freq(dev_priv));
 
+	intel_opregion_audio_enable(dev_priv->dev, true);
+
 	return 0;
 }
 EXPORT_SYMBOL_GPL(i915_request_power_well);
@@ -6260,6 +6262,8 @@ int i915_release_power_well(void)
 	if (!hsw_pwr)
 		return -ENODEV;
 
+	intel_opregion_audio_enable(dev_priv->dev, false);
+
 	dev_priv = container_of(hsw_pwr, struct drm_i915_private,
 				power_domains);
 	intel_display_power_put(dev_priv, POWER_DOMAIN_AUDIO);
-- 
2.0.0




More information about the Intel-gfx mailing list