drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover()
Subsystems (2)
Alex Deucher
maintainerPATCH 1/1 drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover()
Use the correct adev variable for the drm_fb_helper in amdgpu_device_gpu_recover(). Noticed by inspection.
Fixes 087451f372bf ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1 -1
@@ -5186,7 +5186,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,*/ amdgpu_unregister_gpu_instance (tmp_adev); -drm_fb_helper_set_suspend_unlocked (adev_to_drm (adev)->fb_helper, true); +drm_fb_helper_set_suspend_unlocked (adev_to_drm (tmp_adev)->fb_helper, true);/* disable ras on ALL IPs */ if (!need_emergency_restart &&
Signature · 1 line
2.35.3
Ping?
Alex
Quoted 26 lines · Alex Deucher
Use the correct adev variable for the
drm_fb_helperinamdgpu_device_gpu_recover(). Noticed by inspection.Fixes 087451f372bf ("drm/amdgpu: use generic fb helpers instead of setting up AMD own's.")Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +1
-2@@ -5186,7 +5186,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,*/ amdgpu_unregister_gpu_instance (tmp_adev); -drm_fb_helper_set_suspend_unlocked (adev_to_drm (adev)->fb_helper, true); +drm_fb_helper_set_suspend_unlocked (adev_to_drm (tmp_adev)->fb_helper, true);/* disable ras on ALL IPs */ if (!need_emergency_restart && --2.35.3
Chen, Guchun
Reviewed-byReviewed-by Guchun Chen <[email protected]>
Regards,
Guchun
-----Original Message-----
From: amd-gfx <[email protected]> On Behalf Of Alex Deucher
Sent: Monday, June 20, 2022 10:54 PM
To: Deucher, Alexander <[email protected]>
Cc: amd-gfx list <[email protected]>
Subject: Re: [PATCH] drm/amdgpu: fix adev variable used in amdgpu_device_gpu_recover()
Ping?
Alex
Quoted 30 lines · Alex Deucher
Use the correct adev variable for the
drm_fb_helperinamdgpu_device_gpu_recover(). Noticed by inspection.Fixes 087451f372bf ("drm/amdgpu: use generic fb helpers instead ofsetting up AMD own's.")
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +3
-2@@ -5186,7 +5186,7 @@ int amdgpu_device_gpu_recover(struct amdgpu_device *adev,*/ amdgpu_unregister_gpu_instance (tmp_adev); -drm_fb_helper_set_suspend_unlocked (adev_to_drm (adev)->fb_helper, true); + +drm_fb_helper_set_suspend_unlocked (adev_to_drm (tmp_adev)->fb_helper, + true);/* disable ras on ALL IPs */ if (!need_emergency_restart && --2.35.3