From: Jim Qu <Jim.Qu-5C7GfCeVMHo@public.gmane.org>
To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@public.gmane.org
Cc: Jim Qu <Jim.Qu-5C7GfCeVMHo@public.gmane.org>
Subject: [PATCH 1/2] drm/amd/amdgpu: fix console deadlock if late init failed
Date: Wed, 1 Mar 2017 17:35:38 +0800 [thread overview]
Message-ID: <1488360939-5030-2-git-send-email-Jim.Qu@amd.com> (raw)
In-Reply-To: <1488360939-5030-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
Change-Id: Ia914fac083ebab39617dad046d4bb98ab1ddf0a8
Signed-off-by: Jim Qu <Jim.Qu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
index c0679d3..6eeda24 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
@@ -2186,8 +2186,11 @@ int amdgpu_device_resume(struct drm_device *dev, bool resume, bool fbcon)
}
r = amdgpu_late_init(adev);
- if (r)
+ if (r) {
+ if (fbcon)
+ console_unlock();
return r;
+ }
/* pin cursors */
list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) {
--
1.9.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next prev parent reply other threads:[~2017-03-01 9:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-01 9:35 [PATCH 0/2] Jim Qu
[not found] ` <1488360939-5030-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2017-03-01 9:35 ` Jim Qu [this message]
[not found] ` <1488360939-5030-2-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2017-03-02 1:10 ` [PATCH 1/2] drm/amd/amdgpu: fix console deadlock if late init failed Michel Dänzer
2017-03-01 9:35 ` [PATCH 2/2] drm/amd/amdgpu: add atomic helper to suspend/resume functions Jim Qu
[not found] ` <1488360939-5030-3-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2017-03-01 16:29 ` Grodzovsky, Andrey
[not found] ` <DM5PR1201MB01073DB83CD9CCC5C9669F71EA290-grEf7a3NxMD0NmPLWU83XWrFom/aUZj6nBOFsp37pqbUKgpGm//BTAC/G2K4zDHf@public.gmane.org>
2017-03-02 1:19 ` 答复: " 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=1488360939-5030-2-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