• Home
  • Raw
  • Download

Lines Matching +full:- +full:- +full:batch +full:- +full:mode

32 	pfd->events = excl ? POLLOUT : POLLIN;  in prime_busy()
47 #define BATCH 1 in busy() macro
52 uint32_t *batch, *bbe; in busy() local
67 obj[BATCH].handle = gem_create(fd, size); in busy()
68 obj[BATCH].relocs_ptr = (uintptr_t)store; in busy()
69 obj[BATCH].relocation_count = ARRAY_SIZE(store); in busy()
75 pfd[BATCH].fd = prime_handle_to_fd(fd, obj[BATCH].handle); in busy()
78 batch = gem_mmap__wc(fd, obj[BATCH].handle, 0, size, PROT_WRITE); in busy()
79 gem_set_domain(fd, obj[BATCH].handle, in busy()
85 store[count].presumed_offset = -1; in busy()
90 batch[i] = MI_STORE_DWORD_IMM | (gen < 6 ? 1 << 22 : 0); in busy()
92 batch[++i] = 0; in busy()
93 batch[++i] = 0; in busy()
95 batch[++i] = 0; in busy()
96 batch[++i] = 0; in busy()
99 batch[i]--; in busy()
100 batch[++i] = 0; in busy()
102 batch[++i] = count; in busy()
106 bbe = &batch[i]; in busy()
107 store[count].target_handle = obj[BATCH].handle; /* recurse */ in busy()
113 batch[i] = MI_BATCH_BUFFER_START; in busy()
115 batch[i] |= 1 << 8 | 1; in busy()
116 batch[++i] = 0; in busy()
117 batch[++i] = 0; in busy()
119 batch[i] |= 1 << 8; in busy()
120 batch[++i] = 0; in busy()
122 batch[i] |= 2 << 6; in busy()
123 batch[++i] = 0; in busy()
125 batch[i] |= 1; in busy()
131 igt_assert(i < size/sizeof(*batch)); in busy()
137 pfd[BATCH].fd = prime_handle_to_fd(fd, obj[BATCH].handle); in busy()
143 igt_assert(!prime_busy(&pfd[BATCH], false)); in busy()
144 igt_assert(prime_busy(&pfd[BATCH], true)); in busy()
155 pfd[BATCH].events = POLLOUT; in busy()
159 while (prime_busy(&pfd[BATCH], true)) in busy()
164 munmap(batch, size); in busy()
165 batch = gem_mmap__wc(fd, obj[SCRATCH].handle, 0, 4096, PROT_READ); in busy()
167 igt_assert_eq_u32(batch[i], i); in busy()
168 munmap(batch, 4096); in busy()
170 gem_close(fd, obj[BATCH].handle); in busy()
173 close(pfd[BATCH].fd); in busy()
185 gem_require_ring(fd, e->exec_id | e->flags); in test_engine_mode()
186 igt_require(gem_can_store_dword(fd, e->exec_id | e->flags)); in test_engine_mode()
199 igt_subtest_f("%s%s-%s", in test_engine_mode()
200 !e->exec_id && !(flags & HANG) ? "basic-" : "", in test_engine_mode()
201 name, e->name) in test_engine_mode()
202 busy(fd, e->exec_id | e->flags, flags); in test_engine_mode()
204 igt_subtest_f("%swait-%s-%s", in test_engine_mode()
205 !e->exec_id && !(flags & HANG) ? "basic-" : "", in test_engine_mode()
206 name, e->name) in test_engine_mode()
207 busy(fd, e->exec_id | e->flags, flags | POLL); in test_engine_mode()
221 int fd = -1;
229 const struct mode { struct
242 for (e = intel_execution_engines; e->name; e++) {
243 for (const struct mode *m = modes; m->name; m++) argument
244 test_engine_mode(fd, e, m->name, m->flags);