From: Alex Deucher Subject: [PATCH 1/7] drm/amdgpu: fix tonga smu resume Date: Fri, 15 Jan 2016 13:51:58 -0500 Message-ID: <1452883924-13355-2-git-send-email-alexander.deucher@amd.com> References: <1452883924-13355-1-git-send-email-alexander.deucher@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1452883924-13355-1-git-send-email-alexander.deucher@amd.com> Sender: stable-owner@vger.kernel.org To: dri-devel@lists.freedesktop.org Cc: Alex Deucher , stable@vger.kernel.org List-Id: dri-devel@lists.freedesktop.org Need to make sure smu buffers are pinned on resume. This matches what Fiji does. Cc: stable@vger.kernel.org Reviewed-by: Junwei Zhang Reviewed-by: Christian K=C3=B6nig Reviewed-by: Ken Wang Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/amdgpu/tonga_dpm.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c b/drivers/gpu/drm/a= md/amdgpu/tonga_dpm.c index f4a13465..0497784 100644 --- a/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c +++ b/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c @@ -122,25 +122,12 @@ static int tonga_dpm_hw_fini(void *handle) =20 static int tonga_dpm_suspend(void *handle) { - return 0; + return tonga_dpm_hw_fini(handle); } =20 static int tonga_dpm_resume(void *handle) { - int ret; - struct amdgpu_device *adev =3D (struct amdgpu_device *)handle; - - mutex_lock(&adev->pm.mutex); - - ret =3D tonga_smu_start(adev); - if (ret) { - DRM_ERROR("SMU start failed\n"); - goto fail; - } - -fail: - mutex_unlock(&adev->pm.mutex); - return ret; + return tonga_dpm_hw_init(handle); } =20 static int tonga_dpm_set_clockgating_state(void *handle, --=20 2.5.0