]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/display: Check for null fclk voltage when parsing clock table
authorMichael Strauss <michael.strauss@amd.com>
Sun, 5 Apr 2020 20:41:12 +0000 (16:41 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Apr 2020 18:22:10 +0000 (14:22 -0400)
commitbbf5f4b16dd04fdbfcbb543f4b59f3cee94dc291
tree6ea0aedbc0219d9928d2424efc70f0463e7cf892
parentbc9835d67d93a1c8cd0c54fa2e058df9c21d5b17
drm/amd/display: Check for null fclk voltage when parsing clock table

[WHY]
In cases where a clock table is malformed such that fclk entries have
frequencies but not voltages listed, we don't catch the error and set
clocks to 0 instead of using hardcoded values as we should.

[HOW]
Add check for clock tables fclk entry's voltage as well

Signed-off-by: Michael Strauss <michael.strauss@amd.com>
Reviewed-by: Eric Yang <eric.yang2@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c