Stop depending on context mutation (v3)
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest89 patches 27 repliesIn review
v2 (Jason Ekstrand) from the cover letter
- Better documentation
- Two more patches at the end to clean up query APIs even more
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/89 | tests/i915: Drop gem_ctx_ringsizetests/ tests/ | +0 | 0 replies | |
| 2/89 | tests/i915/gem_exec_balancer: Drop the ringsize subtesttests/ | +0 | 0 replies | |
| 3/89 | tests/i915/gem_exec_endless: Stop setting the ring sizetests/ | +1 | 0 replies | |
| 4/89 | tests/i915/gem_ctx_param: Drop the zeromap subteststests/ | +0 | 0 replies | |
| 5/89 | tests/i915: Drop gem_ctx_clonetests/ tests/ | +0 | 0 replies | |
| 6/89 | docs: Add gem_engine_topology.h to the docsdocs/ lib/ lib/ | +32 | 1 reply | |
| 7/89 | lib/i915/gem_engine_topology: Expose the __query_engines helper (v2)lib/ lib/ | +23 | 0 replies | |
| 8/89 | lib/i915/gem_context: Add gem_context_create_ext helperslib/ lib/ | +59 | 0 replies | |
| 9/89 | lib: Add an intel_ctx wrapper struct and helpers (v4)docs/ lib/ lib/ +1 more | +349 | 6 replies | |
| 10/89 | lib/i915/gem_engine_topology: Rework query_engine_list()lib/ | +12 | 1 reply | |
| 11/89 | lib/i915/gem_engine_topology: Factor out static engine listinglib/ | +29 | 1 reply | |
| 12/89 | lib/i915/gem_engine_topology: Add an iterator which doesn't munge contexts (v2)lib/ lib/ | +32 | 1 reply | |
| 13/89 | lib/i915/gem_engine_topology: Add an iterator for intel_ctx_t (v2)lib/ lib/ | +96 | 2 replies | |
| 14/89 | tests/i915/gem_exec_basic: Convert to intel_ctx_ttests/ | +6 | 1 reply | |
| 15/89 | lib/dummyload: Better document igt_spin_factorylib/ | +16 | 1 reply | |
| 16/89 | lib/dummyload: Rename igt_spin_factory::ctx to ctx_idlib/ lib/ lib/ +15 more | +64 | 1 reply | |
| 17/89 | lib/dummyload: Support intel_ctx_tlib/ lib/ | +26 | 2 replies | |
| 18/89 | tests/i915/gem_exec_fence: Move the engine data into inter_engine_contexttests/ | +40 | 0 replies | |
| 19/89 | tests/i915/gem_exec_fence: Convert to intel_ctx_ttests/ | +139 | 0 replies | |
| 20/89 | tests/i915/gem_exec_schedule: Convert to intel_ctx_ttests/ | +471 | 0 replies | |
| 21/89 | tests/i915/perf_pmu: Convert to intel_ctx_ttests/ | +128 | 0 replies | |
| 22/89 | tests/i915/gem_exec_nop: Convert to intel_ctx_ttests/ | +92 | 2 replies | |
| 23/89 | tests/i915/gem_exec_reloc: Convert to intel_ctx_ttests/ | +62 | 0 replies | |
| 24/89 | tests/i915/gem_busy: Convert to intel_ctx_ttests/ | +45 | 0 replies | |
| 25/89 | tests/i915/gem_ctx_isolation: Convert to intel_ctx_ttests/ | +66 | 0 replies | |
| 26/89 | tests/i915/gem_exec_async: Convert to intel_ctx_ttests/ | +20 | 0 replies | |
| 27/89 | tests/i915/sysfs_clients: Convert to intel_ctx_ttests/ | +46 | 0 replies | |
| 28/89 | tests/i915/gem_exec_fair: Convert to intel_ctx_ttests/ | +65 | 0 replies | |
| 29/89 | tests/i915/gem_spin_batch: Convert to intel_ctx_ttests/ | +46 | 0 replies | |
| 30/89 | tests/i915/gem_exec_store: Convert to intel_ctx_ttests/ | +22 | 0 replies | |
| 31/89 | tests/amdgpu/amd_prime: Convert to intel_ctx_ttests/ | +7 | 0 replies | |
| 32/89 | tests/i915/i915_hangman: Convert to intel_ctx_ttests/ | +22 | 0 replies | |
| 33/89 | tests/i915/gem_ringfill: Convert to intel_ctx_ttests/ | +28 | 0 replies | |
| 34/89 | tests/prime_busy: Convert to intel_ctx_ttests/ | +12 | 0 replies | |
| 35/89 | tests/prime_vgem: Convert to intel_ctx_ttests/ | +21 | 0 replies | |
| 36/89 | tests/gem_exec_whisper: Convert to intel_ctx_ttests/ | +54 | 0 replies | |
| 37/89 | tests/i915/gem_ctx_exec: Stop cloning contexts in close_racetests/ | +2 | 0 replies | |
| 38/89 | tests/i915/gem_ctx_exec: Convert to intel_ctx_ttests/ | +31 | 0 replies | |
| 39/89 | tests/i915/gem_exec_suspend: Convert to intel_ctx_ttests/ | +29 | 0 replies | |
| 40/89 | tests/i915/gem_sync: Convert to intel_ctx_ttests/ | +90 | 0 replies | |
| 41/89 | tests/i915/gem_userptr_blits: Convert to intel_ctx_ttests/ | +15 | 0 replies | |
| 42/89 | tests/i915/gem_wait: Convert to intel_ctx_ttests/ | +13 | 0 replies | |
| 43/89 | tests/i915/gem_request_retire: Convert to intel_ctx_ttests/ | +10 | 0 replies | |
| 44/89 | tests/i915/gem_ctx_shared: Convert to intel_ctx_ttests/ | +145 | 0 replies | |
| 45/89 | tests/i915/gem_ctx_shared: Stop cloning contextstests/ | +63 | 0 replies | |
| 46/89 | tests/i915/gem_create: Convert to intel_ctx_ttests/ | +10 | 0 replies | |
| 47/89 | tests/i915/gem_ctx_switch: Convert to intel_ctx_ttests/ | +64 | 0 replies | |
| 48/89 | tests/i915/gem_exec_parallel: Convert to intel_ctx_ttests/ | +19 | 0 replies | |
| 49/89 | tests/i915/gem_exec_latency: Convert to intel_ctx_ttests/ | +66 | 0 replies | |
| 50/89 | tests/i915/gem_watchdog: Convert to intel_ctx_ttests/ | +46 | 0 replies | |
| 51/89 | tests/i915/gem_shrink: Convert to intel_ctx_ttests/ | +20 | 0 replies | |
| 52/89 | tests/i915/gem_exec_params: Convert to intel_ctx_ttests/ | +3 | 0 replies | |
| 53/89 | tests/i915/gem_exec_gttfill: Convert to intel_ctx_ttests/ | +9 | 0 replies | |
| 54/89 | tests/i915/gem_exec_capture: Convert to intel_ctx_ttests/ | +18 | 0 replies | |
| 55/89 | tests/i915/gem_exec_create: Convert to intel_ctx_ttests/ | +8 | 0 replies | |
| 56/89 | tests/i915/gem_exec_await: Convert to intel_ctx_ttests/ | +14 | 0 replies | |
| 57/89 | tests/i915/gem_ctx_persistence: Drop the clone subtesttests/ | +0 | 0 replies | |
| 58/89 | tests/i915/gem_ctx_persistence: Drop the engine replace subteststests/ | +0 | 0 replies | |
| 59/89 | tests/i915/gem_ctx_persistence: Convert to intel_ctx_tlib/ lib/ tests/ | +133 | 0 replies | |
| 60/89 | tests/i915/module_load: Convert to intel_ctx_ttests/ | +6 | 0 replies | |
| 61/89 | tests/i915/pm_rc6_residency: Convert to intel_ctx_ttests/ | +5 | 0 replies | |
| 62/89 | tests/i915/gem_cs_tlb: Convert to intel_ctx_ttests/ | +7 | 0 replies | |
| 63/89 | tests/core_hotplug: Convert to intel_ctx_ttests/ | +5 | 0 replies | |
| 64/89 | tests/i915/gem_exec_balancer: Stop cloning enginestests/ | +11 | 0 replies | |
| 65/89 | tests/i915/gem_exec_balancer: Don't reset engines on a contexttests/ | +86 | 0 replies | |
| 66/89 | tests/i915/gem_exec_balancer: Stop munging ctx0 enginestests/ | +1 | 0 replies | |
| 67/89 | tests/i915/gem_exec_balancer: Drop bonded teststests/ | +0 | 0 replies | |
| 68/89 | lib/intel_ctx: Add load balancing supportlib/ lib/ lib/ | +69 | 2 replies | |
| 69/89 | tests/i915/gem_exec_balancer: Convert to intel_ctx_ttests/ | +192 | 0 replies | |
| 70/89 | tests/i915/gem_exec_endless: Stop munging ctx0 enginestests/ | +1 | 0 replies | |
| 71/89 | lib/i915: Use for_each_physical_ring for submission testslib/ | +5 | 0 replies | |
| 72/89 | tests/i915/gem_ctx_engines: Rework execute-one*tests/ | +28 | 0 replies | |
| 73/89 | tests/i915/gem_ctx_engines: Use better engine iterationtests/ | +19 | 0 replies | |
| 74/89 | tests/i915/gem_ctx_engines: Drop the idempotent subtesttests/ | +0 | 0 replies | |
| 75/89 | tests/i915/gem_ctx_create: Convert benchmarks to intel_ctx_ttests/ | +40 | 0 replies | |
| 76/89 | tests/i915/gem_vm_create: Delete destroy racing teststests/ | +0 | 0 replies | |
| 77/89 | tests/i915/gem_vm_create: Use intel_ctx_t in the execbuf testtests/ | +12 | 0 replies | |
| 78/89 | tests/i915/sysfs: Convert to intel_ctx_ttests/ tests/ tests/ | +64 | 0 replies | |
| 79/89 | tests/i915/gem_workarounds: Convert to intel_ctx_ttests/ | +7 | 0 replies | |
| 80/89 | lib/i915/gem_context: Delete all the context clone/copy stufflib/ lib/ | +0 | 0 replies | |
| 81/89 | tests/i915/gem_ctx_engines: Delete the libapi subtesttests/ | +0 | 0 replies | |
| 82/89 | lib/igt_dummyload: Stop supporting ALL_ENGINES without an intel_ctx_tlib/ | +6 | 1 reply | |
| 83/89 | lib/i915/gem_engine_topology: Delete the old physical engine iteratorslib/ lib/ | +0 | 1 reply | |
| 84/89 | tests/i915/gem_mmap_gtt: Convert to intel_ctx_ttests/ tests/ | +19 | 0 replies | |
| 85/89 | igt/dummyload: Require an intel_ctx_t for POLL_RUN and !ALL_ENGINESlib/ lib/ lib/ | +5 | 1 reply | |
| 86/89 | lib/i915: Rework engine API availability checks (v2)lib/ lib/ lib/ +4 more | +36 | 0 replies | |
| 87/89 | lib/intel_bb: Remove intel_bb_assign_vm and testslib/ lib/ tests/ | +0 | 2 replies | |
| 88/89 | tests/i915/gem_ctx_param: Stop setting VMs on old contextstests/ | +7 | 0 replies | |
| 89/89 | tests/i915/gen9_exec_parse: Convert to intel_ctx_ttests/ | +53 | 0 replies |
Reviews trailers per patch
21 of 89 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Vetter | Zbigniew Kempczyński |
|---|---|---|
| 1/89 | R-b | |
| 2/89 | R-b | |
| 3/89 | R-b | |
| 4/89 | R-b | |
| 5/89 | R-b | |
| 6/89 | R-b | |
| 7/89 | R-b | |
| 8/89 | R-b | |
| 9/89 | ||
| 10/89 | R-b | |
| 11/89 | A-b | R-b |
| 12/89 | R-b | R-b |
| 13/89 | R-b | |
| 14/89 | R-b | |
| 15/89 | R-b | |
| 16/89 | A-b | R-b |
| 17/89 | R-b | |
| 18/89 | ||
| 19/89 | ||
| 20/89 | ||
| 21/89 | ||
| 22/89 | ||
| 23/89 | ||
| 24/89 | ||
| 25/89 | ||
| 26/89 | ||
| 27/89 | ||
| 28/89 | ||
| 29/89 | ||
| 30/89 | ||
| 31/89 | ||
| 32/89 | ||
| 33/89 | ||
| 34/89 | ||
| 35/89 | ||
| 36/89 | ||
| 37/89 | ||
| 38/89 | ||
| 39/89 | ||
| 40/89 | ||
| 41/89 | ||
| 42/89 | ||
| 43/89 | ||
| 44/89 | ||
| 45/89 | ||
| 46/89 | ||
| 47/89 | ||
| 48/89 | ||
| 49/89 | ||
| 50/89 | ||
| 51/89 | ||
| 52/89 | ||
| 53/89 | ||
| 54/89 | ||
| 55/89 | ||
| 56/89 | ||
| 57/89 | ||
| 58/89 | ||
| 59/89 | ||
| 60/89 | ||
| 61/89 | ||
| 62/89 | ||
| 63/89 | ||
| 64/89 | ||
| 65/89 | ||
| 66/89 | ||
| 67/89 | ||
| 68/89 | R-b | |
| 69/89 | ||
| 70/89 | ||
| 71/89 | ||
| 72/89 | ||
| 73/89 | ||
| 74/89 | ||
| 75/89 | ||
| 76/89 | ||
| 77/89 | ||
| 78/89 | ||
| 79/89 | ||
| 80/89 | ||
| 81/89 | ||
| 82/89 | R-b | |
| 83/89 | R-b | |
| 84/89 | ||
| 85/89 | R-b | |
| 86/89 | ||
| 87/89 | R-b | |
| 88/89 | ||
| 89/89 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [igt-dev] [PATCH i-g-t 00/89] Stop depending on context mutation (v3)
I'm trying to clean up some of our uAPI technical debt in i915. One of the biggest areas we have right now is context mutability. There's no good reason why things like the set of engines or the VM should be able to be changed on the fly and no "real" userspace actually relies on this functionality. It does, however, make for a good excuse for tests and lots of bug reports as things like swapping out the set of engines under load break randomly. The solution here is to stop allowing that behavior and simplify the i915 internals.
In particular, we'd like to remove the following from the i915 API:
1. I915_CONTEXT_CLONE_*. These are only used by IGT and have never been used by any "real" userspace.
2. Changing the VM or set of engines via SETPARAM after they've been "used" by an execbuf or similar. This would effectively make those parameters create params rather than mutable state. We can't drop setparam entirely for those because media does use it but we can enforce some rules.
3. Unused (by non-IGT userspace) GETPARAM for things like engines.
As much as we'd love to do that, we have a bit of a problem in IGT. The way we handle multi-engine testing today relies heavily on this soon-to-be- deprecated functionality. In particular, the standard flow is usually something like this:
static void run_test1(int fd, uint32_t engine)
{
igt_spin_t *spin;
ctx = = gem_context_clone_with_engines(fd, 0);
__igt_spin_new(fd, ctx, .engine = engine);
/* do some testing with ctx */
igt_spin_free(fd, spin);
gem_destroy_context(fd, ctx);
}
igt_main
{
struct intel_execution_engine2 *e;
/* Usual fixture code */
__for_each_physical_engine(fd, e)
run_test1(fd, e->flags);
__for_each_physical_engine(fd, e)
run_test2(fd, e->flags);
}Let's walk through what this does:
1. __for_each_physical_engine calls intel_init_engine_list() which resets the set of engines on ctx0 to the full set of engines available as per the engine query. On older kernels/hardware where we don't have the engines query, it leaves the set alone.
2. intel_init_engine_list() also returns a set of engines for iteration and __for_each_physical_engine() sets up a for loop to walk the set.
3. gem_context_clone_with_engines() creates a new context using I915_CONTEXT_CONTEXT_CLONE_ENGINES (not used by anything other than IGT) to ask that the newly created context has the same set of engines as ctx0. Remember we changed that at the start of loop iteration!
4. When the context is passed to __igt_spin_new(), it calls gem_context_lookup_engine which does a GETPARAM to introspet the set of engines on the context and figure out the engine class.
If you've been keeping track, this trivial and extremely common example uses every single one of these soon-to-be-deprecated APIs even though the test author may be completely obvious to it. It also means that getting rid of IGT's use of them is going to require some fairly deep surgery.
The approach proposed and partially implemented here is to add a new wrapper struct intel_ctx_t which wraps a GEM context handle as well as the full set of parameters used to create it, represented by intel_ctx_cfg_t. We can then use the context anywhere we would regularly use a context, we just have to do ctx->id. If we want to clone it, we can do so by re-using the create parameters by calling intel_ctx_create(fd, &old_ctx->cfg);
Along with the above rework (which got long, sorry) I've got a few other patches in here which delete tests which exist expressly to test APIs that are on the chopping block.
v2 (Jason Ekstrand):
- Better documentation
- Two more patches at the end to clean up query APIs even more
v3 (Jason Ekstrand):
- Improved intel_ctx interface
- More tests converted to intel_ctx_t
- Misc. bug fixes
--Jason
Jason Ekstrand (89):
tests/i915: Drop gem_ctx_ringsize tests/i915/gem_exec_balancer: Drop the ringsize subtest tests/i915/gem_exec_endless: Stop setting the ring size tests/i915/gem_ctx_param: Drop the zeromap subtests tests/i915: Drop gem_ctx_clone
docs: Add gem_engine_topology.h to the docs lib/i915/gem_engine_topology: Expose the __query_engines helper (v2) lib/i915/gem_context: Add gem_context_create_ext helpers
lib: Add an intel_ctx wrapper struct and helpers (v4) lib/i915/gem_engine_topology: Rework query_engine_list() lib/i915/gem_engine_topology: Factor out static engine listing lib/i915/gem_engine_topology: Add an iterator which doesn't munge
contexts (v2)
lib/i915/gem_engine_topology: Add an iterator for intel_ctx_t (v2) tests/i915/gem_exec_basic: Convert to intel_ctx_t lib/dummyload: Better document igt_spin_factory lib/dummyload: Rename igt_spin_factory::ctx to ctx_id lib/dummyload: Support intel_ctx_t tests/i915/gem_exec_fence: Move the engine data into
inter_engine_context
tests/i915/gem_exec_fence: Convert to intel_ctx_t tests/i915/gem_exec_schedule: Convert to intel_ctx_t tests/i915/perf_pmu: Convert to intel_ctx_t tests/i915/gem_exec_nop: Convert to intel_ctx_t tests/i915/gem_exec_reloc: Convert to intel_ctx_t tests/i915/gem_busy: Convert to intel_ctx_t tests/i915/gem_ctx_isolation: Convert to intel_ctx_t tests/i915/gem_exec_async: Convert to intel_ctx_t tests/i915/sysfs_clients: Convert to intel_ctx_t tests/i915/gem_exec_fair: Convert to intel_ctx_t tests/i915/gem_spin_batch: Convert to intel_ctx_t tests/i915/gem_exec_store: Convert to intel_ctx_t tests/amdgpu/amd_prime: Convert to intel_ctx_t tests/i915/i915_hangman: Convert to intel_ctx_t tests/i915/gem_ringfill: Convert to intel_ctx_t tests/prime_busy: Convert to intel_ctx_t
tests/prime_vgem: Convert to intel_ctx_t tests/gem_exec_whisper: Convert to intel_ctx_t tests/i915/gem_ctx_exec: Stop cloning contexts in close_race tests/i915/gem_ctx_exec: Convert to intel_ctx_t tests/i915/gem_exec_suspend: Convert to intel_ctx_t tests/i915/gem_sync: Convert to intel_ctx_t tests/i915/gem_userptr_blits: Convert to intel_ctx_t tests/i915/gem_wait: Convert to intel_ctx_t tests/i915/gem_request_retire: Convert to intel_ctx_t tests/i915/gem_ctx_shared: Convert to intel_ctx_t tests/i915/gem_ctx_shared: Stop cloning contexts tests/i915/gem_create: Convert to intel_ctx_t tests/i915/gem_ctx_switch: Convert to intel_ctx_t tests/i915/gem_exec_parallel: Convert to intel_ctx_t tests/i915/gem_exec_latency: Convert to intel_ctx_t tests/i915/gem_watchdog: Convert to intel_ctx_t tests/i915/gem_shrink: Convert to intel_ctx_t tests/i915/gem_exec_params: Convert to intel_ctx_t tests/i915/gem_exec_gttfill: Convert to intel_ctx_t tests/i915/gem_exec_capture: Convert to intel_ctx_t tests/i915/gem_exec_create: Convert to intel_ctx_t tests/i915/gem_exec_await: Convert to intel_ctx_t tests/i915/gem_ctx_persistence: Drop the clone subtest tests/i915/gem_ctx_persistence: Drop the engine replace subtests tests/i915/gem_ctx_persistence: Convert to intel_ctx_t tests/i915/module_load: Convert to intel_ctx_t tests/i915/pm_rc6_residency: Convert to intel_ctx_t tests/i915/gem_cs_tlb: Convert to intel_ctx_t tests/core_hotplug: Convert to intel_ctx_t tests/i915/gem_exec_balancer: Stop cloning engines tests/i915/gem_exec_balancer: Don't reset engines on a context tests/i915/gem_exec_balancer: Stop munging ctx0 engines tests/i915/gem_exec_balancer: Drop bonded tests lib/intel_ctx: Add load balancing support tests/i915/gem_exec_balancer: Convert to intel_ctx_t tests/i915/gem_exec_endless: Stop munging ctx0 engines lib/i915: Use for_each_physical_ring for submission tests tests/i915/gem_ctx_engines: Rework execute-one* tests/i915/gem_ctx_engines: Use better engine iteration tests/i915/gem_ctx_engines: Drop the idempotent subtest tests/i915/gem_ctx_create: Convert benchmarks to intel_ctx_t tests/i915/gem_vm_create: Delete destroy racing tests tests/i915/gem_vm_create: Use intel_ctx_t in the execbuf test tests/i915/sysfs: Convert to intel_ctx_t tests/i915/gem_workarounds: Convert to intel_ctx_t lib/i915/gem_context: Delete all the context clone/copy stuff tests/i915/gem_ctx_engines: Delete the libapi subtest lib/igt_dummyload: Stop supporting ALL_ENGINES without an intel_ctx_t lib/i915/gem_engine_topology: Delete the old physical engine iterators tests/i915/gem_mmap_gtt: Convert to intel_ctx_t igt/dummyload: Require an intel_ctx_t for POLL_RUN and !ALL_ENGINES lib/i915: Rework engine API availability checks (v2) lib/intel_bb: Remove intel_bb_assign_vm and tests tests/i915/gem_ctx_param: Stop setting VMs on old contexts tests/i915/gen9_exec_parse: Convert to intel_ctx_t
.../igt-gpu-tools/igt-gpu-tools-docs.xml | 2 + lib/i915/gem_context.c | 261 ++---- lib/i915/gem_context.h | 21 +- lib/i915/gem_engine_topology.c | 277 +++--- lib/i915/gem_engine_topology.h | 78 +- lib/i915/gem_submission.c | 13 +- lib/igt_dummyload.c | 25 +- lib/igt_dummyload.h | 28 +- lib/igt_gt.c | 2 +- lib/intel_batchbuffer.c | 52 - lib/intel_batchbuffer.h | 3 - lib/intel_ctx.c | 327 +++++++ lib/intel_ctx.h | 79 ++ lib/meson.build | 1 + tests/amdgpu/amd_prime.c | 10 +- tests/core_hotunplug.c | 6 +- tests/i915/api_intel_bb.c | 104 -- tests/i915/gem_busy.c | 77 +- tests/i915/gem_create.c | 14 +- tests/i915/gem_cs_tlb.c | 10 +- tests/i915/gem_ctx_clone.c | 450 --------- tests/i915/gem_ctx_create.c | 76 +- tests/i915/gem_ctx_engines.c | 276 +----- tests/i915/gem_ctx_exec.c | 54 +- tests/i915/gem_ctx_isolation.c | 112 +-- tests/i915/gem_ctx_param.c | 47 +- tests/i915/gem_ctx_persistence.c | 457 +++------ tests/i915/gem_ctx_ringsize.c | 345 ------- tests/i915/gem_ctx_shared.c | 335 ++++--- tests/i915/gem_ctx_switch.c | 115 ++- tests/i915/gem_eio.c | 2 +- tests/i915/gem_exec_async.c | 32 +- tests/i915/gem_exec_await.c | 20 +- tests/i915/gem_exec_balancer.c | 887 ++++-------------- tests/i915/gem_exec_basic.c | 7 +- tests/i915/gem_exec_capture.c | 30 +- tests/i915/gem_exec_create.c | 9 +- tests/i915/gem_exec_endless.c | 14 +- tests/i915/gem_exec_fair.c | 112 ++- tests/i915/gem_exec_fence.c | 302 +++--- tests/i915/gem_exec_gttfill.c | 15 +- tests/i915/gem_exec_latency.c | 118 +-- tests/i915/gem_exec_nop.c | 156 +-- tests/i915/gem_exec_parallel.c | 29 +- tests/i915/gem_exec_params.c | 4 +- tests/i915/gem_exec_reloc.c | 102 +- tests/i915/gem_exec_schedule.c | 887 +++++++++--------- tests/i915/gem_exec_store.c | 36 +- tests/i915/gem_exec_suspend.c | 52 +- tests/i915/gem_exec_whisper.c | 83 +- tests/i915/gem_mmap_gtt.c | 18 +- tests/i915/gem_request_retire.c | 17 +- tests/i915/gem_ringfill.c | 48 +- tests/i915/gem_shrink.c | 37 +- tests/i915/gem_spin_batch.c | 79 +- tests/i915/gem_sync.c | 159 ++-- tests/i915/gem_userptr_blits.c | 25 +- tests/i915/gem_vm_create.c | 125 +-- tests/i915/gem_wait.c | 20 +- tests/i915/gem_watchdog.c | 167 +--- tests/i915/gem_workarounds.c | 11 +- tests/i915/gen9_exec_parse.c | 106 +-- tests/i915/i915_hangman.c | 37 +- tests/i915/i915_module_load.c | 7 +- tests/i915/i915_pm_rc6_residency.c | 7 +- tests/i915/i915_query.c | 17 +- tests/i915/perf_pmu.c | 226 +++-- tests/i915/sysfs_clients.c | 87 +- tests/i915/sysfs_heartbeat_interval.c | 40 +- tests/i915/sysfs_preempt_timeout.c | 39 +- tests/i915/sysfs_timeslice_duration.c | 51 +- tests/meson.build | 2 - tests/prime_busy.c | 19 +- tests/prime_vgem.c | 35 +- 74 files changed, 3374 insertions(+), 4559 deletions(-) create mode 100644 lib/intel_ctx.c create mode 100644 lib/intel_ctx.h delete mode 100644 tests/i915/gem_ctx_clone.c delete mode 100644 tests/i915/gem_ctx_ringsize.c
Signature · 6 lines
2.31.1 _______________________________________________ igt-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/igt-dev