]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/gpu/drm/i915/intel_display.c
drm/i915: check for strange pfit pipe assignemnt on ivb/hsw
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Sat, 1 Jun 2013 15:16:23 +0000 (17:16 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Jun 2013 12:05:51 +0000 (14:05 +0200)
commitcb8b2a30b32cde5ac9053d399d084c487598976a
tree96c35ce273b218e3f0131bff05a16eb030384dc3
parent8a654f3b743d0f645848f5fde5059f31a78260bf
drm/i915: check for strange pfit pipe assignemnt on ivb/hsw

Panel fitters on ivb/hsw are not created equal since not all of them
support the new high-quality upscaling mode. To offset this the hw
allows us to freely assign the pfits to pipes.

Since our code currently doesn't support this we might fall over when
taking over firmware state. So check for this case and WARN about it.
We can then improve the code once we've hit this in the wild. Or once
we decide to support the improved upscale modes, though that requires
global arbitrage of modeset resources across crtcs.

v2: Check for IS_GEN7 instead of IS_IVB || IS_HSW as suggested by
Paulo in his review comment.

Suggested-by: Mika Kuoppala <mika.kuoppala@intel.com>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c