1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659
|
/*
* Copyright © 2018 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publish, distribute, sublicense,
* and/or sell copies of the Software, and to permit persons to whom the
* Software is furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice (including the next
* paragraph) shall be included in all copies or substantial portions of the
* Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
*/
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <fcntl.h>
#include <inttypes.h>
#include <errno.h>
#include <sched.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <drm.h>
#include "i915/gem.h"
#include "i915/gem_context.h"
#include "i915/gem_create.h"
#include "igt.h"
#include "igt_types.h"
#include "sw_sync.h"
/**
* TEST: gem ctx engines
* Category: Core
* Mega feature: General Core features
* Sub-category: CMD submission
* Functionality: context
* Feature: context
* Test category: GEM_Legacy
*
* SUBTEST: execute-allforone
*
* SUBTEST: execute-one
*
* SUBTEST: execute-oneforall
*
* SUBTEST: independent
*
* SUBTEST: invalid-engines
*
* SUBTEST: none
*/
#define engine_class(e, n) ((e)->engines[(n)].engine_class)
#define engine_instance(e, n) ((e)->engines[(n)].engine_instance)
static int
__set_param_fresh_context(int i915, struct drm_i915_gem_context_param param)
{
int err;
igt_assert_eq(param.ctx_id, 0);
param.ctx_id = gem_context_create(i915);
err = __gem_context_set_param(i915, ¶m);
gem_context_destroy(i915, param.ctx_id);
return err;
}
static void invalid_engines(int i915)
{
struct i915_context_param_engines stack = {}, *engines;
struct drm_i915_gem_context_param param = {
.param = I915_CONTEXT_PARAM_ENGINES,
.value = to_user_pointer(&stack),
};
uint32_t handle;
igt_spin_t *spin;
void *ptr;
uint64_t ahnd;
param.size = 0;
igt_assert_eq(__set_param_fresh_context(i915, param), -EINVAL);
param.size = 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EINVAL);
param.size = sizeof(stack) - 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EINVAL);
param.size = sizeof(stack) + 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EINVAL);
param.size = sizeof(*engines) + (I915_EXEC_RING_MASK + 2) * sizeof(*engines->engines);
igt_assert_eq(__set_param_fresh_context(i915, param), -EINVAL);
/* Create a single page surrounded by inaccessible nothingness */
ptr = mmap(NULL, 3 * 4096, PROT_WRITE, MAP_ANON | MAP_PRIVATE, -1, 0);
igt_assert(ptr != MAP_FAILED);
munmap(ptr, 4096);
engines = ptr + 4096;
munmap(ptr + 2 *4096, 4096);
param.size = sizeof(*engines) + sizeof(*engines->engines);
param.value = to_user_pointer(engines);
engines->engines[0].engine_class = -1;
igt_assert_eq(__set_param_fresh_context(i915, param), -ENOENT);
mprotect(engines, 4096, PROT_READ);
igt_assert_eq(__set_param_fresh_context(i915, param), -ENOENT);
mprotect(engines, 4096, PROT_WRITE);
engines->engines[0].engine_class = 0;
if (__set_param_fresh_context(i915, param)) /* XXX needs RCS */
goto out;
engines->extensions = to_user_pointer(ptr);
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
engines->extensions = 0;
igt_assert_eq(__set_param_fresh_context(i915, param), 0);
param.value = to_user_pointer(engines - 1);
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) - 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) - param.size + 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) + 4096;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) - param.size + 4096;
igt_assert_eq(__set_param_fresh_context(i915, param), 0);
param.value = to_user_pointer(engines) - param.size + 4096 + 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) + 4096;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) + 4096 - 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines) - 1;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines - 1);
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines - 1) + 4096;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(engines - 1) + 4096 - sizeof(*engines->engines) / 2;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
handle = gem_create(i915, 4096 * 3);
ptr = gem_mmap__device_coherent(i915, handle, 0, 4096 * 3, PROT_READ);
gem_close(i915, handle);
munmap(ptr, 4096);
munmap(ptr + 8192, 4096);
param.value = to_user_pointer(ptr + 4096);
igt_assert_eq(__set_param_fresh_context(i915, param), 0);
param.value = to_user_pointer(ptr);
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(ptr) + 4095;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(ptr) + 8192;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
param.value = to_user_pointer(ptr) + 12287;
igt_assert_eq(__set_param_fresh_context(i915, param), -EFAULT);
munmap(ptr + 4096, 4096);
/* Reset back to a known-good param struct */
param.size = sizeof(*engines) + sizeof(*engines->engines);
param.value = to_user_pointer(engines);
igt_assert_eq(__set_param_fresh_context(i915, param), 0);
/* Test that we can't set engines after we've done an execbuf */
param.ctx_id = gem_context_create(i915);
ahnd = get_reloc_ahnd(i915, param.ctx_id);
spin = igt_spin_new(i915, .ahnd = ahnd, .ctx_id = param.ctx_id);
igt_spin_free(i915, spin);
put_ahnd(ahnd);
igt_assert_eq(__gem_context_set_param(i915, ¶m), -EINVAL);
gem_context_destroy(i915, param.ctx_id);
/* Test that we can't set engines on ctx0 */
param.ctx_id = 0;
igt_assert_eq(__gem_context_set_param(i915, ¶m), -EINVAL);
out:
munmap(engines, 4096);
}
static uint32_t batch_create(int i915)
{
const uint32_t bbe = MI_BATCH_BUFFER_END;
uint32_t handle = gem_create(i915, 4096);
gem_write(i915, handle, 0, &bbe, sizeof(bbe));
return handle;
}
static uint32_t batch_busy(uint32_t busy)
{
unsigned int write;
/*
* If we use GPU relocations, we may then write into the batch,
* and the batch will correspondingly have a write flag. We may
* not even use the same engine to perform the relocations
*/
write = busy & 0xfffff;
busy >>= 16; /* strip off the write marker */
if (write) {
write = 1 << (write - 1); /* writer => reader bit */
/* If we wrote using a different engine, remove it */
if (busy & ~write)
busy &= ~write;
}
return busy;
}
static void none(int i915)
{
struct i915_context_param_engines engines = {};
struct drm_i915_gem_context_param p = {
.ctx_id = gem_context_create(i915),
.param = I915_CONTEXT_PARAM_ENGINES,
.value = to_user_pointer(&engines),
.size = sizeof(engines),
};
gem_context_set_param(i915, &p);
{
struct drm_i915_gem_exec_object2 obj = {
.handle = batch_create(i915),
};
struct drm_i915_gem_execbuffer2 execbuf = {
.buffers_ptr = to_user_pointer(&obj),
.buffer_count = 1,
.rsvd1 = p.ctx_id,
};
for (execbuf.flags = 0;
execbuf.flags <= I915_EXEC_RING_MASK;
execbuf.flags++)
igt_assert_eq(__gem_execbuf(i915, &execbuf), -EINVAL);
gem_close(i915, obj.handle);
}
gem_context_destroy(i915, p.ctx_id);
}
static void execute_one(int i915)
{
struct drm_i915_gem_exec_object2 obj = {
.handle = gem_create(i915, 4096),
};
struct drm_i915_gem_execbuffer2 execbuf = {
.buffers_ptr = to_user_pointer(&obj),
.buffer_count = 1,
};
const uint32_t bbe = MI_BATCH_BUFFER_END;
const struct intel_execution_engine2 *e;
gem_write(i915, obj.handle, 0, &bbe, sizeof(bbe));
for_each_physical_engine(i915, e) {
struct drm_i915_gem_busy busy = { .handle = obj.handle };
if (!gem_class_can_store_dword(i915, e->class))
continue;
igt_debug("Testing [%s...]\n", e->name);
for (int i = -1; i <= I915_EXEC_RING_MASK; i++) {
intel_ctx_cfg_t cfg = {};
const intel_ctx_t *ctx;
uint64_t ahnd;
igt_spin_t *spin;
cfg.num_engines = 1;
cfg.engines[0].engine_class = e->class;
cfg.engines[0].engine_instance = e->instance;
ctx = intel_ctx_create(i915, &cfg);
ahnd = get_reloc_ahnd(i915, ctx->id);
spin = igt_spin_new(i915,
.ahnd = ahnd,
.ctx = ctx,
.flags = (IGT_SPIN_FENCE_OUT |
IGT_SPIN_POLL_RUN));
do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy);
igt_assert_eq(busy.busy, 0);
intel_ctx_destroy(i915, ctx);
/* Create a new context with a lot of engines */
igt_debug("Testing with map of %d engines\n", i + 1);
memset(cfg.engines, -1, sizeof(cfg.engines));
if (i != -1) {
cfg.engines[i].engine_class = e->class;
cfg.engines[i].engine_instance = e->instance;
}
cfg.num_engines = GEM_MAX_ENGINES;
ctx = intel_ctx_create(i915, &cfg);
execbuf.rsvd2 = spin->execbuf.rsvd2 >> 32;
for (int j = 0; j <= I915_EXEC_RING_MASK; j++) {
int expected = j == i ? 0 : -EINVAL;
execbuf.rsvd1 = ctx->id;
execbuf.flags = j | I915_EXEC_FENCE_IN;
igt_assert_f(__gem_execbuf(i915, &execbuf) == expected,
"Failed to report the %s engine for slot %d (valid at %d)\n",
j == i ? "valid" : "invalid", j, i);
}
do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy);
igt_assert_eq(batch_busy(busy.busy),
i != -1 ? 1 << e->class : 0);
igt_spin_free(i915, spin);
put_ahnd(ahnd);
gem_sync(i915, obj.handle);
intel_ctx_destroy(i915, ctx);
do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy);
igt_assert_eq(busy.busy, 0);
}
}
gem_close(i915, obj.handle);
}
static void execute_oneforall(int i915)
{
I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, I915_EXEC_RING_MASK + 1);
struct drm_i915_gem_context_param param = {
.param = I915_CONTEXT_PARAM_ENGINES,
.value = to_user_pointer(&engines),
.size = sizeof(engines),
};
const struct intel_execution_engine2 *e;
uint64_t ahnd;
for_each_physical_engine(i915, e) {
param.ctx_id = gem_context_create(i915);
ahnd = get_reloc_ahnd(i915, param.ctx_id);
memset(&engines, 0, sizeof(engines));
for (int i = 0; i <= I915_EXEC_RING_MASK; i++) {
engine_class(&engines, i) = e->class;
engine_instance(&engines, i) = e->instance;
}
gem_context_set_param(i915, ¶m);
for (int i = 0; i <= I915_EXEC_RING_MASK; i++) {
struct drm_i915_gem_busy busy = {};
igt_spin_t *spin;
spin = __igt_spin_new(i915,
.ahnd = ahnd,
.ctx_id = param.ctx_id,
.engine = i);
busy.handle = spin->handle;
do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy);
igt_assert_eq(batch_busy(busy.busy), 1 << e->class);
igt_spin_free(i915, spin);
}
gem_context_destroy(i915, param.ctx_id);
put_ahnd(ahnd);
}
}
static void execute_allforone(int i915)
{
I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, I915_EXEC_RING_MASK + 1);
struct drm_i915_gem_context_param param = {
.ctx_id = gem_context_create(i915),
.param = I915_CONTEXT_PARAM_ENGINES,
.value = to_user_pointer(&engines),
};
const struct intel_execution_engine2 *e;
int i;
uint64_t ahnd = get_reloc_ahnd(i915, param.ctx_id);
i = 0;
memset(&engines, 0, sizeof(engines));
for_each_physical_engine(i915, e) {
engine_class(&engines, i) = e->class;
engine_instance(&engines, i) = e->instance;
i++;
}
param.size = sizeof(uint64_t) + i * sizeof(uint32_t);
gem_context_set_param(i915, ¶m);
i = 0;
for_each_physical_engine(i915, e) {
struct drm_i915_gem_busy busy = {};
igt_spin_t *spin;
spin = __igt_spin_new(i915,
.ahnd = ahnd,
.ctx_id = param.ctx_id,
.engine = i++);
busy.handle = spin->handle;
do_ioctl(i915, DRM_IOCTL_I915_GEM_BUSY, &busy);
igt_assert_eq(batch_busy(busy.busy), 1 << e->class);
igt_spin_free(i915, spin);
}
gem_context_destroy(i915, param.ctx_id);
put_ahnd(ahnd);
}
static uint32_t read_result(int timeline, uint32_t *map, int idx)
{
sw_sync_timeline_inc(timeline, 1);
while (!READ_ONCE(map[idx]))
;
return map[idx];
}
static bool has_cs_timestamp(const struct intel_execution_engine2 *e, unsigned int gen)
{
if (gen >= 7)
return true;
if (gen < 6)
return false;
return e->class == I915_ENGINE_CLASS_RENDER;
}
static void independent(int i915, const intel_ctx_t *base_ctx,
const struct intel_execution_engine2 *e)
{
#define RCS_TIMESTAMP (mmio_base + 0x358)
const unsigned int gen = intel_gen(intel_get_drm_devid(i915));
unsigned int mmio_base = gem_engine_mmio_base(i915, e->name);
const int has_64bit_reloc = gen >= 8;
I915_DEFINE_CONTEXT_PARAM_ENGINES(engines, I915_EXEC_RING_MASK + 1);
struct drm_i915_gem_context_param param = {
.param = I915_CONTEXT_PARAM_ENGINES,
.value = to_user_pointer(&engines),
.size = sizeof(engines),
};
struct drm_i915_gem_exec_object2 results = {
.handle = gem_create(i915, 4096),
.offset = gem_aperture_size(i915) / 2,
};
const uint32_t bbe = MI_BATCH_BUFFER_END;
int timeline = sw_sync_timeline_create();
uint32_t last, *map;
igt_require(mmio_base);
igt_require(has_cs_timestamp(e, gen));
{
struct drm_i915_gem_execbuffer2 execbuf = {
.buffers_ptr = to_user_pointer(&results),
.buffer_count = 1,
.rsvd1 = base_ctx->id,
.flags = e->flags,
};
gem_write(i915, results.handle, 0, &bbe, sizeof(bbe));
gem_execbuf(i915, &execbuf);
results.flags = EXEC_OBJECT_PINNED;
}
memset(&engines, 0, sizeof(engines));
for (int i = 0; i < I915_EXEC_RING_MASK + 1; i++) {
engine_class(&engines, i) = e->class;
engine_instance(&engines, i) = e->instance;
}
param.ctx_id = gem_context_create(i915);
gem_context_set_param(i915, ¶m);
map = gem_mmap__device_coherent(i915, results.handle, 0, 4096, PROT_READ);
gem_set_domain(i915, results.handle,
I915_GEM_DOMAIN_WC, I915_GEM_DOMAIN_WC);
for (int i = 0; i < I915_EXEC_RING_MASK + 1; i++) {
struct drm_i915_gem_exec_object2 obj[2] = {
results, /* write hazard lies! */
{ .handle = gem_create(i915, 4096) },
};
struct drm_i915_gem_execbuffer2 execbuf = {
.buffers_ptr = to_user_pointer(obj),
.buffer_count = 2,
.rsvd1 = param.ctx_id,
.rsvd2 = sw_sync_timeline_create_fence(timeline, i + 1),
.flags = (I915_EXEC_RING_MASK - i) | I915_EXEC_FENCE_IN,
};
uint64_t offset = results.offset + 4 * i;
uint32_t *cs;
int j = 0;
cs = gem_mmap__device_coherent(i915, obj[1].handle, 0, 4096, PROT_WRITE);
cs[j] = 0x24 << 23 | 1; /* SRM */
if (has_64bit_reloc)
cs[j]++;
j++;
cs[j++] = RCS_TIMESTAMP;
cs[j++] = offset;
if (has_64bit_reloc)
cs[j++] = offset >> 32;
cs[j++] = MI_BATCH_BUFFER_END;
munmap(cs, 4096);
gem_execbuf(i915, &execbuf);
gem_close(i915, obj[1].handle);
close(execbuf.rsvd2);
}
last = read_result(timeline, map, 0);
for (int i = 1; i < I915_EXEC_RING_MASK + 1; i++) {
uint32_t t = read_result(timeline, map, i);
igt_assert_f(t - last > 0,
"Engine instance [%d] executed too late, previous timestamp %08x, now %08x\n",
i, last, t);
last = t;
}
munmap(map, 4096);
close(timeline);
gem_sync(i915, results.handle);
gem_close(i915, results.handle);
gem_context_destroy(i915, param.ctx_id);
}
static void independent_all(int i915, const intel_ctx_t *ctx)
{
const unsigned int gen = intel_gen(intel_get_drm_devid(i915));
const struct intel_execution_engine2 *e;
igt_spin_t *spin = NULL;
uint64_t ahnd = get_reloc_ahnd(i915, ctx->id);
for_each_ctx_engine(i915, ctx, e) {
if (spin) {
spin->execbuf.flags &= ~63;
spin->execbuf.flags |= e->flags;
gem_execbuf(i915, &spin->execbuf);
} else {
spin = igt_spin_new(i915,
.ahnd = ahnd,
.ctx = ctx,
.engine = e->flags,
.flags = (IGT_SPIN_NO_PREEMPTION |
IGT_SPIN_POLL_RUN));
}
}
igt_require(spin);
igt_spin_busywait_until_started(spin);
for_each_ctx_engine(i915, ctx, e) {
if (!gem_engine_mmio_base(i915, e->name))
continue;
if (!has_cs_timestamp(e, gen))
continue;
igt_fork(child, 1)
independent(i915, ctx, e);
}
sched_yield();
igt_spin_free(i915, spin);
put_ahnd(ahnd);
igt_waitchildren();
}
igt_main
{
const struct intel_execution_engine2 *e;
igt_fd_t(i915);
igt_fixture {
i915 = drm_open_driver(DRIVER_INTEL);
igt_require_gem(i915);
gem_require_contexts(i915);
igt_require(gem_has_engine_topology(i915));
igt_fork_hang_detector(i915);
}
igt_subtest("invalid-engines")
invalid_engines(i915);
igt_subtest("none")
none(i915);
igt_subtest("execute-one")
execute_one(i915);
igt_subtest("execute-oneforall")
execute_oneforall(i915);
igt_subtest("execute-allforone")
execute_allforone(i915);
igt_subtest_with_dynamic("independent") {
const intel_ctx_t *ctx;
igt_require(gem_scheduler_enabled(i915));
igt_require(intel_gen(intel_get_drm_devid(i915)) >= 6);
ctx = intel_ctx_create_all_physical(i915);
for_each_ctx_engine(i915, ctx, e) {
igt_dynamic_f("%s", e->name)
independent(i915, ctx, e);
}
igt_dynamic("all-engines")
independent_all(i915, ctx);
}
igt_fixture
igt_stop_hang_detector();
}
|