All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] drm/amdgpu: Fix use of interruptible waiting
@ 2017-04-25 21:25 Alex Xie
       [not found] ` <1493155526-28910-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
  0 siblings, 1 reply; 10+ messages in thread
From: Alex Xie @ 2017-04-25 21:25 UTC (permalink / raw)
  To: amd-gfx-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW; +Cc: Alex Xie

There is no good mechanism to handle the corresponding error.
When signal interrupt happens, unpin is not called.
As a result, inside AMDGPU, the statistic of pin size will be wrong.

Change-Id: I4a06a227c2757c447cec0058ace4b028553658a2
Signed-off-by: Alex Xie <AlexBin.Xie@amd.com>
---
 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 7cf226d..43082bf 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -172,7 +172,7 @@ void amdgpu_crtc_cleanup_flip_ctx(
 		struct amdgpu_flip_work *work,
 		struct amdgpu_bo *new_abo)
 {
-	if (unlikely(amdgpu_bo_reserve(new_abo, false) != 0)) {
+	if (unlikely(amdgpu_bo_reserve(new_abo, true) != 0)) {
 		DRM_ERROR("failed to reserve new abo in error path\n");
 		amdgpu_flip_work_cleanup(work);
 		return;
-- 
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] 10+ messages in thread

end of thread, other threads:[~2017-04-27  9:31 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-25 21:25 [PATCH 1/2] drm/amdgpu: Fix use of interruptible waiting Alex Xie
     [not found] ` <1493155526-28910-1-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
2017-04-25 21:25   ` [PATCH 2/2] " Alex Xie
     [not found]     ` <1493155526-28910-2-git-send-email-AlexBin.Xie-5C7GfCeVMHo@public.gmane.org>
2017-04-26  1:17       ` Michel Dänzer
     [not found]         ` <13a02c0e-0db4-043a-0e2f-353c540e2125-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-04-26  8:34           ` Christian König
     [not found]             ` <226c0397-5820-76de-2299-997922f32c87-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-26 19:19               ` Alex Xie
     [not found]                 ` <5900F2B8.4010304-5C7GfCeVMHo@public.gmane.org>
2017-04-27  7:39                   ` Michel Dänzer
     [not found]                     ` <a54247e2-09dd-4157-7063-1f9dd025b845-otUistvHUpPR7s880joybQ@public.gmane.org>
2017-04-27  9:31                       ` Michel Dänzer
2017-04-27  9:05                   ` Christian König
     [not found]                     ` <2789f1cb-f2b5-b482-ad36-ee20329b69f2-ANTagKRnAhcb1SvskN2V4Q@public.gmane.org>
2017-04-27  9:27                       ` Michel Dänzer
2017-04-26  8:34   ` [PATCH 1/2] " Christian König

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.