AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/amdgpu: atombios stuck executing during S3 stress test
@ 2016-10-19  8:25 jimqu
       [not found] ` <1476865529-8924-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: jimqu @ 2016-10-19  8:25 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: jimqu

Sometimes, atombios may be stucked when resume back. Duo to PCIE has
set to D3cold, the ACC of GFX adapter is power-down. it should re-init
the scratch registers. with the change, test is pass more than 80 cycles
on Fiji.

Change-Id: I9cf40c475c4a5a31216949d50cc5e30b74dc21c4
Signed-off-by: JimQu <Jim.Qu@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index e82c487..bfe9a5c 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2098,6 +2098,7 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
 				console_unlock();
 			return r;
 		}
+		amdgpu_atombios_scratch_regs_init(adev);
 	}
 
 	/* post card */
-- 
1.9.1

_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-10-20  4:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-19  8:25 [PATCH] drm/amdgpu: atombios stuck executing during S3 stress test jimqu
     [not found] ` <1476865529-8924-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2016-10-19 18:46   ` Alex Deucher
     [not found]     ` <CADnq5_MOypPU09YUtH1xanHCTyd7gODV4UUWerHzaX13iwCq2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-20  4:40       ` 答复: " Qu, Jim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox