Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 11a88c2e authored by Yintian Tao's avatar Yintian Tao Committed by Alex Deucher
Browse files

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: default avatarYintian Tao <yttao@amd.com>
Reviewed-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent fa1d04e9
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -75,10 +75,12 @@ int phm_set_power_state(struct pp_hwmgr *hwmgr,

int phm_enable_dynamic_state_management(struct pp_hwmgr *hwmgr)
{
	struct amdgpu_device *adev = NULL;
	int ret = -EINVAL;;
	PHM_FUNC_CHECK(hwmgr);
	adev = hwmgr->adev;

	if (smum_is_dpm_running(hwmgr)) {
	if (smum_is_dpm_running(hwmgr) && !amdgpu_passthrough(adev)) {
		pr_info("dpm has been enabled\n");
		return 0;
	}