Commit 29634c3f authored by Jack Xiao's avatar Jack Xiao Committed by Alex Deucher

drm/amdgpu/mes10.1: implement the suspend/resume routine

Implement the suspend/resume routine of mes.
Signed-off-by: default avatarJack Xiao <Jack.Xiao@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Reviewed-by: default avatarHawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 7149599b
......@@ -1120,12 +1120,26 @@ static int mes_v10_1_hw_fini(void *handle)
static int mes_v10_1_suspend(void *handle)
{
return 0;
int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
r = amdgpu_mes_suspend(adev);
if (r)
return r;
return mes_v10_1_hw_fini(adev);
}
static int mes_v10_1_resume(void *handle)
{
return 0;
int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
r = mes_v10_1_hw_init(adev);
if (r)
return r;
return amdgpu_mes_resume(adev);
}
static const struct amd_ip_funcs mes_v10_1_ip_funcs = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment