OSDN Git Service

drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2)
authorAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Jan 2020 19:39:45 +0000 (14:39 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 4 Feb 2020 15:37:52 +0000 (10:37 -0500)
commitc37243579d6c881c575dcfb54cf31c9ded88f946
tree9f1b8e24720cfe3b15c9a5b64af71cebb72136e3
parent0531aa6eb38bfa9514609e2727558a051da7365f
drm/amdgpu/display: handle multiple numbers of fclks in dcn_calcs.c (v2)

We might get different numbers of clocks from powerplay depending
on what the OEM has populated.

v2: add assert for at least one level

Bug: https://gitlab.freedesktop.org/drm/amd/issues/963
Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/calcs/dcn_calcs.c