diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-01-30 09:59:56 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2013-01-31 05:50:10 -0500 |
commit | d5f21e4072645d0174ed4cc7197e0e30f84f96a2 (patch) | |
tree | 7363e55f8081b57a34ecf4e377219d3cfc9f9c7d /drivers | |
parent | 6b25a88752e8e9dc33c700712059b094d3da3219 (diff) |
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 <sedat.dilek@gmail.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>
Cc: Paulo Zanoni <paulo.r.zanoni@intel.com>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/i915/intel_pm.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
4053 | bool is_enabled, enable_requested; | 4053 | bool is_enabled, enable_requested; |
4054 | uint32_t tmp; | 4054 | uint32_t tmp; |
4055 | 4055 | ||
4056 | if (!IS_HASWELL(dev)) | ||
4057 | return; | ||
4058 | |||
4056 | tmp = I915_READ(HSW_PWR_WELL_DRIVER); | 4059 | tmp = I915_READ(HSW_PWR_WELL_DRIVER); |
4057 | is_enabled = tmp & HSW_PWR_WELL_STATE; | 4060 | is_enabled = tmp & HSW_PWR_WELL_STATE; |
4058 | enable_requested = tmp & HSW_PWR_WELL_ENABLE; | 4061 | enable_requested = tmp & HSW_PWR_WELL_ENABLE; |