drm/amd/display: fix unbounded requesting for high pixel rate modes on dcn315
authorDmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tue, 1 Nov 2022 21:09:11 +0000 (17:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:23:52 +0000 (10:23 +0200)
commitad8c20954406491a8280d0a442ac4bb9ea9e674e
tree87b2c3ca76427ea1370668fa2909b76377fcd0ed
parentacba20a5b2c80385110efdcec00dcefd041b120f
drm/amd/display: fix unbounded requesting for high pixel rate modes on dcn315

[ Upstream commit 655435df0936ce2fda0d5ced7e50101179a3acfd ]

Unbounded requesting is getting configured for odm mode calculations which
is incorrect. This change checks whether mode requires odm ahead of time.

Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Dmytro Laktyushkin <Dmytro.Laktyushkin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Stable-dep-of: 49f26218c344 ("drm/amd/display: fix dcn315 single stream crb allocation")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/dcn315/dcn315_resource.c
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.c
drivers/gpu/drm/amd/display/dc/dml/dcn31/dcn31_fpu.h