Re: [PATCH i-g-t 01/16] i915/gem_exec_schedule: Semaphore priority fixups

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 08/05/2019 11:09, Chris Wilson wrote:
A stray git add from my test boxen -- we were being careful enough to
preserve priority and ordering to match the implicit policies.

Signed-off-by: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
---
  tests/i915/gem_exec_schedule.c | 2 ++
  1 file changed, 2 insertions(+)

diff --git a/tests/i915/gem_exec_schedule.c b/tests/i915/gem_exec_schedule.c
index 330e8a54e..77a264a6a 100644
--- a/tests/i915/gem_exec_schedule.c
+++ b/tests/i915/gem_exec_schedule.c
@@ -507,6 +507,7 @@ static void semaphore_resolve(int i915)
  		uint32_t handle, cancel;
  		uint32_t *cs, *map;
  		igt_spin_t *spin;
+		int64_t poke = 1;
if (!gem_can_store_dword(i915, engine))
  			continue;
@@ -587,6 +588,7 @@ static void semaphore_resolve(int i915)
  		eb.buffer_count = 2;
  		eb.rsvd1 = inner;
  		gem_execbuf(i915, &eb);
+		gem_wait(i915, cancel, &poke);
  		gem_close(i915, cancel);
gem_sync(i915, handle); /* To hang unless cancel runs! */


Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>

Regards,

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




[Index of Archives]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux