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/amdgpu: alway cancel uvd idle work
Date: Thu, 14 Dec 2017 19:38:11 +0800 [thread overview]
Message-ID: <1513251492-31864-1-git-send-email-Jim.Qu@amd.com> (raw)
Change-Id: I06e5460ece91e812cda28fb02a6b78676d921e18
Signed-off-by: Jim Qu <Jim.Qu@amd.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
index 916e516..343b682 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
@@ -294,6 +294,8 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev)
void *ptr;
int i;
+ cancel_delayed_work_sync(&adev->uvd.idle_work);
+
if (adev->uvd.vcpu_bo == NULL)
return 0;
@@ -304,8 +306,6 @@ int amdgpu_uvd_suspend(struct amdgpu_device *adev)
if (i == AMDGPU_MAX_UVD_HANDLES)
return 0;
- cancel_delayed_work_sync(&adev->uvd.idle_work);
-
size = amdgpu_bo_size(adev->uvd.vcpu_bo);
ptr = adev->uvd.cpu_addr;
--
1.9.1
_______________________________________________
amd-gfx mailing list
amd-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/amd-gfx
next reply other threads:[~2017-12-14 11:38 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-14 11:38 Jim Qu [this message]
[not found] ` <1513251492-31864-1-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2017-12-14 11:38 ` [PATCH 2/2] drm/amdgpu: save/restore uvd fence sequence number in suspend/resume Jim Qu
[not found] ` <1513251492-31864-2-git-send-email-Jim.Qu-5C7GfCeVMHo@public.gmane.org>
2017-12-14 12:57 ` Christian König
[not found] ` <8b994351-2131-c1cc-692a-9ef4d28bd991-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-12-14 13:50 ` 答复: " Qu, Jim
[not found] ` <DM3PR12MB08734613754A96A4A2128C8D990A0-4hRkV8tDpBiYEITDcfEJ8AdYzm3356FpvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-12-14 14:02 ` Christian König
[not found] ` <ac8d82b1-c792-9b88-fa95-7c2ff8a5936b-5C7GfCeVMHo@public.gmane.org>
2017-12-14 14:13 ` 答复: " Qu, Jim
2017-12-14 12:02 ` [PATCH 1/2] drm/amdgpu: alway cancel uvd idle work Christian König
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=1513251492-31864-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.