From d5f21e4072645d0174ed4cc7197e0e30f84f96a2 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 30 Jan 2013 15:59:56 +0100 Subject: [PATCH] drm/i915: don't run hsw power well code on !hsw Dumps annoying noise into the dmesg: [drm:intel_set_power_well] *ERROR* Timeout enabling power well Reported-by: Sedat Dilek Cc: Sedat Dilek Cc: Paulo Zanoni Tested-by: Sedat Dilek Reviewed-by: Paulo Zanoni Signed-off-by: Daniel Vetter --- drivers/gpu/drm/i915/intel_pm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/gpu/drm/i915/intel_pm.c b/drivers/gpu/drm/i915/intel_pm.c index bec1f9ffba2d..f024e7dcc2c7 100644 --- a/drivers/gpu/drm/i915/intel_pm.c +++ b/drivers/gpu/drm/i915/intel_pm.c @@ -4053,6 +4053,9 @@ void intel_set_power_well(struct drm_device *dev, bool enable) bool is_enabled, enable_requested; uint32_t tmp; + if (!IS_HASWELL(dev)) + return; + tmp = I915_READ(HSW_PWR_WELL_DRIVER); is_enabled = tmp & HSW_PWR_WELL_STATE; enable_requested = tmp & HSW_PWR_WELL_ENABLE; -- 2.30.2