All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/i915: Clear vma->bound on unbinding
@ 2015-04-30  8:02 Mika Kuoppala
  2015-05-01 17:13 ` shuang.he
  2015-05-06 10:12 ` Daniel Vetter
  0 siblings, 2 replies; 3+ messages in thread
From: Mika Kuoppala @ 2015-04-30  8:02 UTC (permalink / raw)
  To: intel-gfx; +Cc: Chris Wilson, Daniel Vetter

Unbinding doesn't always lead to unconditional destruction
of vma. This destruction avoidance happens if vma is part of
execbuffer relocation list or if vma is being considered for
eviction in i915_gem_evict_something().

For those other users, mark the vma unbound so that
the correct state of this vma is preserved.

Reported-by: Chris Wilson <chris@chris-wilson.co.ok>
Cc: Chris Wilson <chris@chris-wilson.co.ok>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
---
 drivers/gpu/drm/i915/i915_gem.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index e8f6f4c..c378f04 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3069,6 +3069,7 @@ int i915_vma_unbind(struct i915_vma *vma)
 	trace_i915_vma_unbind(vma);
 
 	vma->vm->unbind_vma(vma);
+	vma->bound = 0;
 
 	list_del_init(&vma->mm_list);
 	if (i915_is_ggtt(vma->vm)) {
-- 
1.9.1

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915: Clear vma->bound on unbinding
  2015-04-30  8:02 [PATCH] drm/i915: Clear vma->bound on unbinding Mika Kuoppala
@ 2015-05-01 17:13 ` shuang.he
  2015-05-06 10:12 ` Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: shuang.he @ 2015-05-01 17:13 UTC (permalink / raw)
  To: shuang.he, ethan.gao, intel-gfx, mika.kuoppala

Tested-By: Intel Graphics QA PRTS (Patch Regression Test System Contact: shuang.he@intel.com)
Task id: 6297
-------------------------------------Summary-------------------------------------
Platform          Delta          drm-intel-nightly          Series Applied
PNV                                  276/276              276/276
ILK                 -1              302/302              301/302
SNB                                  316/316              316/316
IVB                                  264/264              264/264
BYT                 -3              227/227              224/227
BDW                                  318/318              318/318
-------------------------------------Detailed-------------------------------------
Platform  Test                                drm-intel-nightly          Series Applied
*ILK  igt@gem_mmap_offset_exhaustion      PASS(2)      CRASH(1)PASS(1)
*BYT  igt@gem_dummy_reloc_loop@render      FAIL(1)PASS(16)      TIMEOUT(1)PASS(1)
*BYT  igt@gem_exec_parse@batch-without-end      FAIL(1)PASS(2)      DMESG_WARN(1)PASS(1)
(dmesg patch applied)drm:check_crtc_state[i915]]*ERROR*mismatch_in_has_infoframe(expected#,found#)@mismatch in has_infoframe .* found
WARNING:at_drivers/gpu/drm/i915/intel_display.c:#check_crtc_state[i915]()@WARNING:.* at .* check_crtc_state+0x
 BYT  igt@gem_pipe_control_store_loop@fresh-buffer      FAIL(1)TIMEOUT(8)PASS(9)      TIMEOUT(2)
Note: You need to pay more attention to line start with '*'
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

* Re: [PATCH] drm/i915: Clear vma->bound on unbinding
  2015-04-30  8:02 [PATCH] drm/i915: Clear vma->bound on unbinding Mika Kuoppala
  2015-05-01 17:13 ` shuang.he
@ 2015-05-06 10:12 ` Daniel Vetter
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Vetter @ 2015-05-06 10:12 UTC (permalink / raw)
  To: Mika Kuoppala; +Cc: Chris Wilson, intel-gfx, Daniel Vetter

On Thu, Apr 30, 2015 at 11:02:31AM +0300, Mika Kuoppala wrote:
> Unbinding doesn't always lead to unconditional destruction
> of vma. This destruction avoidance happens if vma is part of
> execbuffer relocation list or if vma is being considered for
> eviction in i915_gem_evict_something().
> 
> For those other users, mark the vma unbound so that
> the correct state of this vma is preserved.
> 
> Reported-by: Chris Wilson <chris@chris-wilson.co.ok>
> Cc: Chris Wilson <chris@chris-wilson.co.ok>
> Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
> Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>

I guess I still need this one?

Queued for -next, thanks for the patch.
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/intel-gfx

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

end of thread, other threads:[~2015-05-06 10:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-30  8:02 [PATCH] drm/i915: Clear vma->bound on unbinding Mika Kuoppala
2015-05-01 17:13 ` shuang.he
2015-05-06 10:12 ` Daniel Vetter

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.