summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/display/dc/dcn321
diff options
context:
space:
mode:
authorAlvin Lee <alvin.lee2@amd.com>2023-06-09 20:32:57 -0400
committerAlex Deucher <alexander.deucher@amd.com>2023-06-23 15:45:57 -0400
commit12a6e62bfdcad8be49644b6dcf70c15e0e6bab6b (patch)
tree346ee2aa608bd690f270c368baa78ba7e16d51ae /drivers/gpu/drm/amd/display/dc/dcn321
parented83fe2abcace898fdec5c2ba0455703178ac9a3 (diff)
downloadlinux-stable-12a6e62bfdcad8be49644b6dcf70c15e0e6bab6b.tar.gz
linux-stable-12a6e62bfdcad8be49644b6dcf70c15e0e6bab6b.tar.bz2
linux-stable-12a6e62bfdcad8be49644b6dcf70c15e0e6bab6b.zip
drm/amd/display: Enable dc mode clock switching for DCN32x
- DC mode clock switch interface was previously only executed for DCN303. Enable it for DCN32x so that the interface is called correctly - Assign function pointers for DCN32x that are used in the dc mode interface - Update the dc mode interface to work generically for each ASIC - In update_clocks, make sure to consider softmax if we're in DC mode Reviewed-by: Jun Lei <jun.lei@amd.com> Acked-by: Hamza Mahfooz <hamza.mahfooz@amd.com> Signed-off-by: Alvin Lee <alvin.lee2@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn321')
-rw-r--r--drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c
index ca409a441953..a53478e15ce3 100644
--- a/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c
+++ b/drivers/gpu/drm/amd/display/dc/dcn321/dcn321_resource.c
@@ -1756,6 +1756,7 @@ static bool dcn321_resource_construct(
dc->caps.color.mpc.ogam_rom_caps.hlg = 0;
dc->caps.color.mpc.ocsc = 1;
+ dc->config.dc_mode_clk_limit_support = true;
/* read VBIOS LTTPR caps */
{
if (ctx->dc_bios->funcs->get_lttpr_caps) {