OSDN Git Service

drm/powerplay: enable dpm under pass-through
authorYintian Tao <yttao@amd.com>
Mon, 20 Aug 2018 03:11:48 +0000 (11:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 21 Aug 2018 19:18:21 +0000 (14:18 -0500)
commit11a88c2e92feca1ed3fba19fa375f76d3c75f5d5
tree5d9016d01fdd814bae8cd16d48f6d0fed2cfc74b
parentfa1d04e9a896c468f0882425f5ba452a4b424108
drm/powerplay: enable dpm under pass-through

Repeat enable dpm under pass-through because there is no actually
hardware-fini and real power-off when guest vm shutdown or reboot.
Otherwise, under pass-through it will be failed to populate populate
and upload SCLK MCLK DPM levels due to zero of pcie_speed_table.count.

Signed-off-by: Yintian Tao <yttao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c