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

Commit 333c8d3e authored by Evan Quan's avatar Evan Quan Committed by Alex Deucher
Browse files

drm/amd/powerplay: remove uncessary extra gfxoff control call



Gfxoff is already enabled in amdgpu_device_ip_set_powergating_state.
So, no need to enable it again in pp_late_init.

Signed-off-by: default avatarEvan Quan <evan.quan@amd.com>
Reviewed-by: default avatarHuang Rui <ray.huang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent cb5ed37f
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -180,7 +180,6 @@ static int pp_late_init(void *handle)
{
	struct amdgpu_device *adev = handle;
	struct pp_hwmgr *hwmgr = adev->powerplay.pp_handle;
	int ret;

	if (hwmgr && hwmgr->pm_en) {
		mutex_lock(&hwmgr->smu_lock);
@@ -191,14 +190,6 @@ static int pp_late_init(void *handle)
	if (adev->pm.smu_prv_buffer_size != 0)
		pp_reserve_vram_for_smu(adev);

	if (hwmgr && hwmgr->hwmgr_func &&
	    hwmgr->hwmgr_func->gfx_off_control &&
	    (hwmgr->feature_mask & PP_GFXOFF_MASK)) {
		ret = hwmgr->hwmgr_func->gfx_off_control(hwmgr, true);
		if (ret)
			pr_err("gfx off enabling failed!\n");
	}

	return 0;
}