]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pp: Fix OD feature enable failed on Vega10 workstation cards
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 12 Jun 2018 06:26:00 +0000 (14:26 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jun 2018 18:45:23 +0000 (13:45 -0500)
commitdbc89dc3fd867b5ec0b60b43cf0b9356a0e7371a
tree46459fa8c13860cebc2be90e798ef642913c04cc
parent60ca95dc8ac0a6cfe87973265a720fdb636d3e5e
drm/amd/pp: Fix OD feature enable failed on Vega10 workstation cards

As hw required, soc clock must large than mclk, So we set max soc
clock to OD Max Memory clk.
But on workstation, vbios do not support OD feature, the OD max memory
clock is equal to 0. In this case, driver can support underclocking.
and set od max memory clock to the value in highest memory dpm level.
So the od max memory clock should be less than highest soc clock.
and driver should not change the soc clock.

caused by commit ca57b9b0a156
("drm/amd/pp: Allow underclocking when od table is empty in vbios")

Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c