]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 21:58:45 +0000 (13:58 -0800)
commitb16e490eb5f7fb19f1e8fd07f6d45d771a487f82
tree9d1b83eb9e36f4813b5de521d1545c12a81ba992
parent0f37a87fae33bbca1e2ff289330c2f4ba93b5064
drm/i915, intel_ips: When i915 loads after IPS, make IPS relink to i915.

commit 63ee41d794d9c555f84205517a68509848988760 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/gpu/drm/i915/i915_dma.c
drivers/platform/x86/intel_ips.c
drivers/platform/x86/intel_ips.h [new file with mode: 0644]