]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
drm/i915: Reject HDMI 12bpc if the sink doesn't indicate support
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 13 Feb 2017 17:58:18 +0000 (19:58 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 21 Apr 2017 08:17:00 +0000 (10:17 +0200)
commit3c568c39964e55e1dba2f2fe880492d7d7dad0e0
tree9a3e7c6e259205c6d78c1c1f16a97b525c04f315
parent1a6ffd54eeb355a3012b68b436fc7594254b5032
drm/i915: Reject HDMI 12bpc if the sink doesn't indicate support

BugLink: http://bugs.launchpad.net/bugs/1685140
commit 9c31b087348cb2b5e668261f2eee2f224b3780b5 upstream.

Check that the sink really declared 12bpc support before we enable it.
This should not actually never happen since it's mandatory for HDMI
sinks to support 12bpc if they support any deep color modes. But
reality disagrees with the theory and there are actually sinks in
the wild that violate the spec.

v2: Fix the output_types check
    Update commit message to state that these things are in fact real

Cc: Nicholas Sielicki <nicholas.sielicki@gmail.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99250
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170213175818.24958-1-ville.syrjala@linux.intel.com
Reviewed-by: Shashank Sharma <shashank.sharma@intel.com>
(cherry picked from commit c750bdd3e7e204cc88b32806c3864487a03cd84b)
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/gpu/drm/i915/intel_hdmi.c