drm/i915, intel_ips: When i915 loads after IPS, make IPS relink to i915.
authorEric Anholt <eric@anholt.net>
Tue, 21 Dec 2010 02:40:06 +0000 (18:40 -0800)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 23 Dec 2010 09:51:36 +0000 (09:51 +0000)
commit63ee41d794d9c555f84205517a68509848988760
treee34ccf5d2ee1ecc46139ed31159106951a3dab70
parentf797d22121404eac7b63f1291409f96bcab51c11
drm/i915, intel_ips: When i915 loads after IPS, make IPS relink to i915.

The IPS driver is designed to be able to run detached from i915 and
just not enable GPU turbo in that case, in order to avoid module
dependencies between the two drivers.  This means that we don't know
what the load order between the two is going to be, and we had
previously only supported IPS after (optionally) i915, but not i915
after IPS.  If the wrong order was chosen, you'd get no GPU turbo, and
something like half the possible graphics performance.

Signed-off-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
drivers/gpu/drm/i915/i915_dma.c
drivers/platform/x86/intel_ips.c
drivers/platform/x86/intel_ips.h [new file with mode: 0644]