drm/i915: Don't check gmch state on inherited configs
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sun, 13 Apr 2014 10:00:33 +0000 (12:00 +0200)
committerJiri Slaby <jslaby@suse.cz>
Fri, 6 Jun 2014 09:40:25 +0000 (11:40 +0200)
commit45087225dbb035f7507270f3f07eea0bfc777af2
tree881e11e3dfc84af7e1d5853eebe4561d30d7abdf
parentc9378670f53de5174f73a7efc8eb88799e2473ee
drm/i915: Don't check gmch state on inherited configs

commit 9953599bc02dbc1d3330e6a0bfc6c50e9dffcac6 upstream.

... our current modeset code isn't good enough yet to handle this. The
scenario is:

1. BIOS sets up a cloned config with lvds+external screen on the same
pipe, e.g. pipe B.

2. We read out that state for pipe B and assign the gmch_pfit state to
it.

3. The initial modeset switches the lvds to pipe A but due to lack of
atomic modeset we don't recompute the config of pipe B.

-> both pipes now claim (in the sw pipe config structure) to use the
gmch_pfit, which just won't work.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=74081
Tested-by: max <manikulin@gmail.com>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/gpu/drm/i915/intel_display.c
drivers/gpu/drm/i915/intel_drv.h