]> Pileus Git - ~andy/linux/commit
drm/i915: get a PC8 reference when enabling the power well
authorPaulo Zanoni <paulo.r.zanoni@intel.com>
Wed, 27 Nov 2013 19:59:22 +0000 (17:59 -0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 10 Dec 2013 21:27:16 +0000 (22:27 +0100)
commitd62292c8f778772d1b6ec125d461c8c16fdc0417
tree229a9f99b90e0f52d7e71bdb1c54f67f0eeab880
parent7125ecb8297a122d60b2b4be9490f49bfadff8e0
drm/i915: get a PC8 reference when enabling the power well

In the current code, at haswell_modeset_global_resources, first we
decide if we want to enable/disable the power well, then we decide if
we want to enable/disable PC8. On the case where we're enabling PC8
this works fine, but on the case where we disable PC8 due to a non-eDP
monitor being enabled, we first enable the power well and then disable
PC8. Although wrong, this doesn't seem to be causing any problems now,
and we don't even see anything in dmesg. But the patches for runtime
D3 turn this problem into a real bug, so we need to fix it.

This fixes the "modeset-non-lpsp" subtest from the "pm_pc8" test from
intel-gpu-tools.

v2: - Rebase (i915_disable_power_well).
v3: - More reabase.

Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_pm.c