From: jimqu <Jim.Qu-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: jimqu <Jim.Qu-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH] drm/amdgpu: atombios stuck executing during S3 stress test
Date: Wed, 19 Oct 2016 16:25:29 +0800 [thread overview]
Message-ID: <1476865529-8924-1-git-send-email-Jim.Qu@amd.com> (raw)
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
next reply other threads:[~2016-10-19 8:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-19 8:25 jimqu [this message]
[not found] ` <1476865529-8924-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2016-10-19 18:46 ` [PATCH] drm/amdgpu: atombios stuck executing during S3 stress test Alex Deucher
[not found] ` <CADnq5_MOypPU09YUtH1xanHCTyd7gODV4UUWerHzaX13iwCq2A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-20 4:40 ` 答复: " Qu, Jim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1476865529-8924-1-git-send-email-Jim.Qu@amd.com \
--to=jim.qu-5c7gfcevmho@public.gmane.org \
--cc=amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox