OSDN Git Service

drm/amd/display: Use SMU ClockTable Values for DML Calculations
authorSung Lee <sung.lee@amd.com>
Thu, 19 Dec 2019 16:37:49 +0000 (11:37 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:15:35 +0000 (14:15 -0500)
commit08f6c859211cc0af1b32e7fa7ec583699a06d6c3
tree55772c67ded3b643ff3e4667a13384722ffa2e62
parent51f2af1d839e95e2769cc70c3b01e82e2e10ba1c
drm/amd/display: Use SMU ClockTable Values for DML Calculations

[Why]
DML Initialization was previously done on dcn21_resource initialization.
This meant that DML soc struct was populated with hardcoded values.

[How]
Move DML initialization to after updating bounding box, to use clock table
values from SMU.

Signed-off-by: Sung Lee <sung.lee@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn21/dcn21_resource.c