drm/amdgpu: correct in_suspend setting for navi series
in_suspend flag should be set in amdgpu_device_suspend/resume in pairs, instead of gfx10 ip suspend/resume function. Signed-off-by: Hawking Zhang <Hawking.Zhang@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
c072b0c24e
commit
317f9cc97b
@@ -3781,20 +3781,12 @@ static int gfx_v10_0_hw_fini(void *handle)
|
|||||||
|
|
||||||
static int gfx_v10_0_suspend(void *handle)
|
static int gfx_v10_0_suspend(void *handle)
|
||||||
{
|
{
|
||||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
return gfx_v10_0_hw_fini(handle);
|
||||||
|
|
||||||
adev->in_suspend = true;
|
|
||||||
return gfx_v10_0_hw_fini(adev);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int gfx_v10_0_resume(void *handle)
|
static int gfx_v10_0_resume(void *handle)
|
||||||
{
|
{
|
||||||
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
|
return gfx_v10_0_hw_init(handle);
|
||||||
int r;
|
|
||||||
|
|
||||||
r = gfx_v10_0_hw_init(adev);
|
|
||||||
adev->in_suspend = false;
|
|
||||||
return r;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool gfx_v10_0_is_idle(void *handle)
|
static bool gfx_v10_0_is_idle(void *handle)
|
||||||
|
Reference in New Issue
Block a user