OSDN Git Service

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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 Nov 2022 18:35:14 +0000 (13:35 -0500)
commit655435df0936ce2fda0d5ced7e50101179a3acfd
tree1f74db2f0d32f4dfde3d35db12fbb05308a2bda4
parent57b014f664b46deafcd4f4d408416aae6c7e16b9
drm/amd/display: fix unbounded requesting for high pixel rate modes on dcn315

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>
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