drm/amd/display: Add odm seamless boot support
authorDuncan Ma <Duncan.Ma@amd.com>
Thu, 31 Mar 2022 19:13:22 +0000 (15:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 12 Apr 2022 18:18:37 +0000 (14:18 -0400)
commit663d2daeaee6fa55530d8493979e9349070cd47c
tree62813eab5e180beb5efe26bbe5a014ebc5592880
parent56b5b1c7b3d7319d4bf980cf0dd05d7c808c230d
drm/amd/display: Add odm seamless boot support

[WHY]
Implement changes to transition from Pre-OS odm to
Post-OS odm support. Seamless boot case is also
considered.

[HOW]
Revised validation logic when marking for seamless
boot. Init resources accordingly when Pre-OS has
odm enabled. Reset odm and det size when transitioning
Pre-OS odm to Post-OS non-odm to avoid corruption.
Apply logic to set odm accordingly upon commit.

Reviewed-by: Nicholas Kazlauskas <Nicholas.Kazlauskas@amd.com>
Acked-by: Pavle Kotarac <Pavle.Kotarac@amd.com>
Signed-off-by: Duncan Ma <Duncan.Ma@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c
drivers/gpu/drm/amd/display/dc/core/dc_resource.c
drivers/gpu/drm/amd/display/dc/dc.h
drivers/gpu/drm/amd/display/dc/dc_stream.h
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.c
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_optc.h
drivers/gpu/drm/amd/display/dc/inc/hw/timing_generator.h