]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/kmb: Limit supported mode to 1080p
authorAnitha Chrisanthus <anitha.chrisanthus@intel.com>
Fri, 8 Jan 2021 22:34:13 +0000 (14:34 -0800)
committerMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Thu, 21 Oct 2021 09:08:08 +0000 (11:08 +0200)
commita79f40cccd4644c32f6d5ae1ccf091a262e1dc57
tree109ca314824e64a0fff9c3cd061e0a00e0c9e51b
parent3e4c31e8f70251732529a10934355084c7fab0ac
drm/kmb: Limit supported mode to 1080p

KMB only supports single resolution(1080p), this commit checks for
1920x1080x60 or 1920x1080x59 in crtc_mode_valid.
Also, modes with vfp < 4 are not supported in KMB display. This change
prunes display modes with vfp < 4.

v2: added vfp check

Fixes: 7f7b96a8a0a1 ("drm/kmb: Add support for KeemBay Display")
Co-developed-by: Edmund Dea <edmund.j.dea@intel.com>
Signed-off-by: Edmund Dea <edmund.j.dea@intel.com>
Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Link:https://patchwork.freedesktop.org/patch/msgid/20211013233632.471892-2-anitha.chrisanthus@intel.com
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
drivers/gpu/drm/kmb/kmb_crtc.c
drivers/gpu/drm/kmb/kmb_drv.h