Revision d2e3fce9ddafe689c6f7cb355f23560637e30b9d authored by Ville Syrjälä on 10 November 2020, 21:04:47 UTC, committed by Rodrigo Vivi on 19 November 2020, 06:52:25 UTC
EDID can declare the maximum supported bpc up to 16,
and apparently there are displays that do so. Currently
we assume 12 bpc is tha max. Fix the assumption and
toss in a MISSING_CASE() for any other value we don't
expect to see.

This fixes modesets with a display with EDID max bpc > 12.
Previously any modeset would just silently fail on platforms
that didn't otherwise limit this via the max_bpc property.
In particular we don't add the max_bpc property to HDMI
ports on gmch platforms, and thus we would see the raw
max_bpc coming from the EDID.

I suppose we could already adjust this to also allow 16bpc,
but seeing as no current platform supports that there is
little point.

Cc: stable@vger.kernel.org
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/2632
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201110210447.27454-1-ville.syrjala@linux.intel.com
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
(cherry picked from commit 2ca5a7b85b0c2b97ef08afbd7799b022e29f192e)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
1 parent b5462cc
History
File Mode Size
6fire
bcd2000
caiaq
hiface
line6
misc
usx2y
Kconfig -rw-r--r-- 4.7 KB
Makefile -rw-r--r-- 801 bytes
card.c -rw-r--r-- 29.6 KB
card.h -rw-r--r-- 7.3 KB
clock.c -rw-r--r-- 17.8 KB
clock.h -rw-r--r-- 389 bytes
debug.h -rw-r--r-- 301 bytes
endpoint.c -rw-r--r-- 39.5 KB
endpoint.h -rw-r--r-- 1.4 KB
format.c -rw-r--r-- 18.9 KB
format.h -rw-r--r-- 489 bytes
helper.c -rw-r--r-- 2.5 KB
helper.h -rw-r--r-- 1.2 KB
media.c -rw-r--r-- 8.1 KB
media.h -rw-r--r-- 2.4 KB
midi.c -rw-r--r-- 69.5 KB
midi.h -rw-r--r-- 1.9 KB
mixer.c -rw-r--r-- 96.9 KB
mixer.h -rw-r--r-- 3.8 KB
mixer_maps.c -rw-r--r-- 18.7 KB
mixer_quirks.c -rw-r--r-- 81.1 KB
mixer_quirks.h -rw-r--r-- 655 bytes
mixer_s1810c.c -rw-r--r-- 15.3 KB
mixer_s1810c.h -rw-r--r-- 210 bytes
mixer_scarlett.c -rw-r--r-- 28.1 KB
mixer_scarlett.h -rw-r--r-- 208 bytes
mixer_scarlett_gen2.c -rw-r--r-- 54.9 KB
mixer_scarlett_gen2.h -rw-r--r-- 228 bytes
mixer_us16x08.c -rw-r--r-- 37.3 KB
mixer_us16x08.h -rw-r--r-- 4.0 KB
pcm.c -rw-r--r-- 50.6 KB
pcm.h -rw-r--r-- 586 bytes
power.c -rw-r--r-- 2.5 KB
power.h -rw-r--r-- 924 bytes
proc.c -rw-r--r-- 6.6 KB
proc.h -rw-r--r-- 250 bytes
quirks-table.h -rw-r--r-- 85.6 KB
quirks.c -rw-r--r-- 55.4 KB
quirks.h -rw-r--r-- 1.7 KB
stream.c -rw-r--r-- 31.9 KB
stream.h -rw-r--r-- 325 bytes
usbaudio.h -rw-r--r-- 3.5 KB
validate.c -rw-r--r-- 10.0 KB

back to top