]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: Add ODM check during pipe split/merge validation
authorRelja Vojvodic <relja.vojvodic@amd.com>
Fri, 1 Dec 2023 13:24:59 +0000 (06:24 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Apr 2024 13:11:31 +0000 (15:11 +0200)
commiteec6662b7eebd8bbc1f472f967235afe52611bd0
treee41982e3958140eb984a5108dbfaeed012ba6aaa
parent6ebe80cbcbcb8b7dadd01ace38cb52b581674261
drm/amd/display: Add ODM check during pipe split/merge validation

[ Upstream commit dd2c5fac91d46df9dc1bf025ef23eff4704bd85f ]

[why]
When querying DML for a vlevel after pipes have been split or merged the
ODM policy would revert to a default policy, which could cause the query
to use the incorrect ODM status. In this case ODM 2to1 was validated,
but the last DML query would assume no ODM and return the incorrect
vlevel.

[how]
Added ODM check to apply the correct ODM policy before querying DML.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Reviewed-by: Alvin Lee <alvin.lee2@amd.com>
Acked-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Signed-off-by: Relja Vojvodic <relja.vojvodic@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 26fbcb3da77e ("drm/amd/display: Override min required DCFCLK in dml1_validate")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.h
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource_helpers.c
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c