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
kasan
Kconfig -rw-r--r-- 28.1 KB
Kconfig.debug -rw-r--r-- 6.2 KB
Makefile -rw-r--r-- 4.3 KB
backing-dev.c -rw-r--r-- 25.2 KB
balloon_compaction.c -rw-r--r-- 8.2 KB
cleancache.c -rw-r--r-- 9.8 KB
cma.c -rw-r--r-- 14.3 KB
cma.h -rw-r--r-- 646 bytes
cma_debug.c -rw-r--r-- 4.5 KB
compaction.c -rw-r--r-- 80.2 KB
debug.c -rw-r--r-- 8.5 KB
debug_page_ref.c -rw-r--r-- 1.4 KB
debug_vm_pgtable.c -rw-r--r-- 29.0 KB
dmapool.c -rw-r--r-- 13.7 KB
early_ioremap.c -rw-r--r-- 6.8 KB
fadvise.c -rw-r--r-- 5.3 KB
failslab.c -rw-r--r-- 1.4 KB
filemap.c -rw-r--r-- 97.9 KB
frame_vector.c -rw-r--r-- 6.4 KB
frontswap.c -rw-r--r-- 14.2 KB
gup.c -rw-r--r-- 84.4 KB
gup_benchmark.c -rw-r--r-- 4.5 KB
highmem.c -rw-r--r-- 11.7 KB
hmm.c -rw-r--r-- 16.6 KB
huge_memory.c -rw-r--r-- 82.0 KB
hugetlb.c -rw-r--r-- 156.9 KB
hugetlb_cgroup.c -rw-r--r-- 21.4 KB
hwpoison-inject.c -rw-r--r-- 2.6 KB
init-mm.c -rw-r--r-- 1.2 KB
internal.h -rw-r--r-- 19.1 KB
interval_tree.c -rw-r--r-- 3.1 KB
ioremap.c -rw-r--r-- 6.5 KB
khugepaged.c -rw-r--r-- 58.3 KB
kmemleak.c -rw-r--r-- 56.2 KB
ksm.c -rw-r--r-- 88.8 KB
list_lru.c -rw-r--r-- 14.4 KB
maccess.c -rw-r--r-- 8.7 KB
madvise.c -rw-r--r-- 30.9 KB
mapping_dirty_helpers.c -rw-r--r-- 10.3 KB
memblock.c -rw-r--r-- 58.0 KB
memcontrol.c -rw-r--r-- 191.7 KB
memfd.c -rw-r--r-- 7.9 KB
memory-failure.c -rw-r--r-- 51.9 KB
memory.c -rw-r--r-- 141.8 KB
memory_hotplug.c -rw-r--r-- 49.4 KB
mempolicy.c -rw-r--r-- 76.1 KB
mempool.c -rw-r--r-- 15.8 KB
memremap.c -rw-r--r-- 14.0 KB
memtest.c -rw-r--r-- 2.8 KB
migrate.c -rw-r--r-- 80.7 KB
mincore.c -rw-r--r-- 7.0 KB
mlock.c -rw-r--r-- 22.9 KB
mm_init.c -rw-r--r-- 5.3 KB
mmap.c -rw-r--r-- 102.7 KB
mmu_gather.c -rw-r--r-- 8.4 KB
mmu_notifier.c -rw-r--r-- 34.6 KB
mmzone.c -rw-r--r-- 2.4 KB
mprotect.c -rw-r--r-- 17.1 KB
mremap.c -rw-r--r-- 22.1 KB
msync.c -rw-r--r-- 2.6 KB
nommu.c -rw-r--r-- 44.9 KB
oom_kill.c -rw-r--r-- 30.3 KB
page-writeback.c -rw-r--r-- 84.9 KB
page_alloc.c -rw-r--r-- 244.9 KB
page_counter.c -rw-r--r-- 6.6 KB
page_ext.c -rw-r--r-- 10.8 KB
page_idle.c -rw-r--r-- 5.5 KB
page_io.c -rw-r--r-- 11.5 KB
page_isolation.c -rw-r--r-- 9.2 KB
page_owner.c -rw-r--r-- 16.0 KB
page_poison.c -rw-r--r-- 3.1 KB
page_reporting.c -rw-r--r-- 9.9 KB
page_reporting.h -rw-r--r-- 1.6 KB
page_vma_mapped.c -rw-r--r-- 7.7 KB
pagewalk.c -rw-r--r-- 14.2 KB
percpu-internal.h -rw-r--r-- 7.7 KB
percpu-km.c -rw-r--r-- 3.0 KB
percpu-stats.c -rw-r--r-- 6.0 KB
percpu-vm.c -rw-r--r-- 10.3 KB
percpu.c -rw-r--r-- 95.4 KB
pgalloc-track.h -rw-r--r-- 1.3 KB
pgtable-generic.c -rw-r--r-- 5.6 KB
process_vm_access.c -rw-r--r-- 8.2 KB
ptdump.c -rw-r--r-- 3.8 KB
readahead.c -rw-r--r-- 17.3 KB
rmap.c -rw-r--r-- 55.6 KB
rodata_test.c -rw-r--r-- 1.3 KB
shmem.c -rw-r--r-- 110.9 KB
shuffle.c -rw-r--r-- 4.7 KB
shuffle.h -rw-r--r-- 1.1 KB
slab.c -rw-r--r-- 105.1 KB
slab.h -rw-r--r-- 16.8 KB
slab_common.c -rw-r--r-- 29.3 KB
slob.c -rw-r--r-- 18.1 KB
slub.c -rw-r--r-- 140.3 KB
sparse-vmemmap.c -rw-r--r-- 6.8 KB
sparse.c -rw-r--r-- 26.4 KB
swap.c -rw-r--r-- 33.8 KB
swap_cgroup.c -rw-r--r-- 5.1 KB
swap_slots.c -rw-r--r-- 9.3 KB
swap_state.c -rw-r--r-- 24.9 KB
swapfile.c -rw-r--r-- 96.9 KB
truncate.c -rw-r--r-- 27.3 KB
usercopy.c -rw-r--r-- 9.5 KB
userfaultfd.c -rw-r--r-- 17.6 KB
util.c -rw-r--r-- 23.9 KB
vmacache.c -rw-r--r-- 2.7 KB
vmalloc.c -rw-r--r-- 91.0 KB
vmpressure.c -rw-r--r-- 13.9 KB
vmscan.c -rw-r--r-- 123.4 KB
vmstat.c -rw-r--r-- 53.0 KB
workingset.c -rw-r--r-- 21.4 KB
z3fold.c -rw-r--r-- 46.7 KB
zbud.c -rw-r--r-- 18.2 KB
zpool.c -rw-r--r-- 11.2 KB
zsmalloc.c -rw-r--r-- 62.4 KB
zswap.c -rw-r--r-- 35.1 KB

back to top