]> 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)
commite8582552b8ef4a9d75b0efbaece3cd1a6cc09a89
tree46459fa8c13860cebc2be90e798ef642913c04cc
parentd5e094db422b606ee37f5837811d9b7dbb3ab0b3
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