linux-kernelorg-stable/drivers/gpu/drm
Ville Syrjälä c7943bb324 drm/edid: Handle EDID 1.4 range descriptor h/vfreq offsets
EDID 1.4 introduced some extra flags in the range
descriptor to support min/max h/vfreq >= 255. Consult them
to correctly parse the vfreq limits.

Note that some combinations of the flags are documented
as "reserved" (as are some other values in the descriptor)
but explicitly checking for those doesn't seem particularly
worthwile since we end up with bogus results whether we
decode them or not.

v2: Increase the storage to u16 to make it work (Jani)
    Note the "reserved" values situation (Jani)
v3: Document the EDID version number in the defines
    Drop some bogus (u8) casts

Cc: stable@vger.kernel.org
Closes: https://gitlab.freedesktop.org/drm/intel/-/issues/6519
References: https://gitlab.freedesktop.org/drm/intel/-/issues/6484
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220826213501.31490-2-ville.syrjala@linux.intel.com
Reviewed-by: Manasi Navare <manasi.d.navare@intel.com>
2022-09-02 16:38:51 +03:00
..
amd - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
arm
armada
aspeed
ast
atmel-hlcdc
bridge Merge drm/drm-fixes into drm-misc-fixes 2022-08-17 08:40:32 +02:00
display
etnaviv
exynos sound updates for 6.0-rc1 2022-08-06 10:19:51 -07:00
fsl-dcu
gma500
gud
hisilicon
hyperv
i2c sound updates for 6.0-rc1 2022-08-06 10:19:51 -07:00
i810
i915 IOMMU Updates for Linux v5.20/v6.0: 2022-08-06 10:42:38 -07:00
imx Merge drm/drm-fixes into drm-misc-fixes 2022-08-17 08:40:32 +02:00
ingenic
kmb
lib
lima
logicvc
mcde
mediatek
meson Merge drm/drm-fixes into drm-misc-fixes 2022-08-17 08:40:32 +02:00
mga
mgag200
msm - The usual batches of cleanups from Baoquan He, Muchun Song, Miaohe 2022-08-05 16:32:45 -07:00
mxsfb
nouveau nouveau: explicitly wait on the fence in nouveau_bo_move_m2mf 2022-08-23 18:00:12 +02:00
omapdrm
panel drm for 5.20/6.0 2022-08-03 19:52:08 -07:00
panfrost More power management updates for 5.20-rc1 2022-08-08 14:29:00 -07:00
pl111
qxl
r128
radeon drm/radeon: Fix comment typo 2022-07-25 09:31:02 -04:00
rcar-du Miscellaneous R-Car DU fixes and enhancements 2022-07-22 13:43:32 +10:00
rockchip drm for 5.20/6.0 2022-08-03 19:52:08 -07:00
savage
scheduler
selftests
shmobile
sis
solomon drm for 5.20/6.0 2022-08-03 19:52:08 -07:00
sprd
sti sound updates for 6.0-rc1 2022-08-06 10:19:51 -07:00
stm
sun4i Merge drm/drm-fixes into drm-misc-fixes 2022-08-17 08:40:32 +02:00
tdfx
tegra
tests
tidss
tilcdc
tiny drm for 5.20/6.0 2022-08-03 19:52:08 -07:00
ttm Merge drm/drm-fixes into drm-misc-fixes 2022-08-17 08:40:32 +02:00
tve200
udl
v3d
vboxvideo
vc4 drm/vc4: hdmi: Rework power up 2022-08-18 17:15:18 +02:00
vgem
via
virtio
vkms
vmwgfx
xen
xlnx
Kconfig
Makefile
drm_agpsupport.c
drm_aperture.c
drm_atomic.c
drm_atomic_helper.c
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_auth.c
drm_blend.c
drm_bridge.c
drm_bridge_connector.c
drm_buddy.c
drm_bufs.c
drm_cache.c
drm_client.c
drm_client_modeset.c
drm_color_mgmt.c
drm_connector.c
drm_context.c
drm_crtc.c
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_damage_helper.c
drm_debugfs.c drm/edid: Handle EDID 1.4 range descriptor h/vfreq offsets 2022-09-02 16:38:51 +03:00
drm_debugfs_crc.c
drm_displayid.c
drm_dma.c
drm_drv.c
drm_dumb_buffers.c
drm_edid.c drm/edid: Handle EDID 1.4 range descriptor h/vfreq offsets 2022-09-02 16:38:51 +03:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c
drm_file.c
drm_flip_work.c
drm_format_helper.c
drm_fourcc.c
drm_framebuffer.c
drm_gem.c drm/gem: Fix GEM handle release errors 2022-08-19 13:38:12 +02:00
drm_gem_atomic_helper.c
drm_gem_cma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c drm/shmem-helper: Add missing vunmap on error 2022-08-09 18:15:42 +02:00
drm_gem_ttm_helper.c drm/ttm: fix locking in vmap/vunmap TTM GEM helpers 2022-07-18 09:18:53 +02:00
drm_gem_vram_helper.c
drm_hashtab.c
drm_internal.h drm/gem: Fix GEM handle release errors 2022-08-19 13:38:12 +02:00
drm_ioc32.c
drm_ioctl.c
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy.h
drm_legacy_misc.c
drm_lock.c
drm_managed.c
drm_memory.c
drm_mipi_dbi.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_nomodeset.c
drm_of.c
drm_panel.c
drm_panel_orientation_quirks.c drm for 5.20/6.0 2022-08-03 19:52:08 -07:00
drm_pci.c
drm_plane.c
drm_plane_helper.c
drm_prime.c drm/gem: Fix GEM handle release errors 2022-08-19 13:38:12 +02:00
drm_print.c
drm_privacy_screen.c
drm_privacy_screen_x86.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_syncobj.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c