drm/amdgpu: correct in_suspend setting for navi series
Subsystems (2)
PATCH 1/1 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.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +2 -10
@@ -3768,20 +3768,12 @@ static int gfx_v10_0_hw_fini(void *handle)static int gfx_v10_0_suspend (void *handle) { -struct amdgpu_device *adev = (struct amdgpu_device *)handle; - - adev->in_suspend = true; -return gfx_v10_0_hw_fini (adev); +return gfx_v10_0_hw_fini (handle); }static int gfx_v10_0_resume (void *handle) { -struct amdgpu_device *adev = (struct amdgpu_device *)handle; -int r; - - r =gfx_v10_0_hw_init (adev); - adev->in_suspend = false; -return r; +return gfx_v10_0_hw_init (handle); }static bool gfx_v10_0_is_idle (void *handle)
Signature · 6 lines
2.7.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
A message that is not in the archive (sent off-list or not yet received): 1566897593-2630-1-git-send-email-Hawking.Zhang-5C7GfCeVMHo@public.gmane.org
Deucher, Alexander
Reviewed-by________________________________
From: amd-gfx <amd-gfx-bounces-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org> on behalf of Hawking Zhang <[email protected]>
Sent: Tuesday, August 27, 2019 5:19 AM
To: [email protected] <[email protected]>
Cc: Zhang, Hawking <[email protected]>
Subject: [PATCH] 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.
--- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-)
drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +2 -10
@@ -3768,20 +3768,12 @@ static int gfx_v10_0_hw_fini(void *handle)static int gfx_v10_0_suspend (void *handle) { -struct amdgpu_device *adev = (struct amdgpu_device *)handle; - - adev->in_suspend = true; -return gfx_v10_0_hw_fini (adev); +return gfx_v10_0_hw_fini (handle); }static int gfx_v10_0_resume (void *handle) { -struct amdgpu_device *adev = (struct amdgpu_device *)handle; -int r; - - r =gfx_v10_0_hw_init (adev); - adev->in_suspend = false; -return r; +return gfx_v10_0_hw_init (handle); }static bool gfx_v10_0_is_idle (void *handle)
--
2.7.4
_______________________________________________
amd-gfx mailing list [email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx