]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Add FAMS validation before trying to use it
authorRodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Fri, 24 Mar 2023 20:29:52 +0000 (14:29 -0600)
committerRoxana Nicolescu <roxana.nicolescu@canonical.com>
Mon, 2 Oct 2023 15:20:47 +0000 (17:20 +0200)
commite85a26e7410ffcb2889fa3502dca822e578db98f
tree8fcad1def999ed5a8f8ce40efa3c417be97b6ea0
parent68245becb3b1d6c6c30e987a63f490a99b23c2c5
drm/amd/display: Add FAMS validation before trying to use it

BugLink: https://bugs.launchpad.net/bugs/2037005
[ Upstream commit e3416e872f84086667df21daf166506fab97358d ]

To ensure that FAMS can be used, DC must check if there is VRR support.
This commit adds the required configuration to ensure FAMS can be executed in the target system.

Reviewed-by: Alvin Lee <Alvin.Lee2@amd.com>
Acked-by: Qingqing Zhuo <qingqing.zhuo@amd.com>
Signed-off-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 2a9482e55968 ("drm/amd/display: Prevent vtotal from being set to 0")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/dc_stream.h
drivers/gpu/drm/amd/display/dc/dcn30/dcn30_optc.c
drivers/gpu/drm/amd/display/dmub/inc/dmub_cmd.h