public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t 0/5] Initial dmem cgroup support
@ 2026-03-26 16:10 Thomas Hellström
  2026-03-26 16:10 ` [PATCH i-g-t 1/5] lib/igt_cgroup: add cgroup v2 and dmem controller helpers Thomas Hellström
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Thomas Hellström @ 2026-03-26 16:10 UTC (permalink / raw)
  To: igt-dev; +Cc: dev, Thomas Hellström

This series introduces library support for some trivial cgroup v2
dmem manipulation.

It also adds a test for the library support itself and then an
xe test where cgroup functionality is exercised. In particular
lowering the max allocated amount of vram beyond what's already
allocated.

That functionality is not in the kernel yet, but a series for it
is pending.

Patch 1 adds library functionality.
Patch 2 adds a test for the library functionality. It's device
      agnostic.
Patch 3 adds a function to get the xe driver cgroup controller
      region name for an xe device VRAM region. Also library
      functionality.
Patch 4 extends the library vm_bind functionality, pending
      completion of https://patchwork.freedesktop.org/patch/714000/?series=163579&rev=3
Patch 5 adds the xe cgroup test (some KMD functionality still missing).

Thomas Hellström (5):
  lib/igt_cgroup: add cgroup v2 and dmem controller helpers
  tests/cgroup_dmem: add dmem cgroup controller test
  lib/xe: add xe_cgroup_region_name() helper
  lib/xe: add __xe_vm_bind_lr_sync() failable bind helper
  tests/xe_cgroups: add dmem cgroup eviction test

 lib/igt.h                |   1 +
 lib/igt_cgroup.c         | 644 +++++++++++++++++++++++++++++++++++++++
 lib/igt_cgroup.h         |  58 ++++
 lib/meson.build          |   1 +
 lib/xe/xe_ioctl.c        |  79 ++++-
 lib/xe/xe_ioctl.h        |   3 +
 lib/xe/xe_query.c        |  32 ++
 lib/xe/xe_query.h        |   2 +
 tests/cgroup_dmem.c      |  92 ++++++
 tests/intel/xe_cgroups.c | 296 ++++++++++++++++++
 tests/meson.build        |   2 +
 11 files changed, 1195 insertions(+), 15 deletions(-)
 create mode 100644 lib/igt_cgroup.c
 create mode 100644 lib/igt_cgroup.h
 create mode 100644 tests/cgroup_dmem.c
 create mode 100644 tests/intel/xe_cgroups.c

-- 
2.53.0


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

end of thread, other threads:[~2026-03-28  0:45 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-26 16:10 [PATCH i-g-t 0/5] Initial dmem cgroup support Thomas Hellström
2026-03-26 16:10 ` [PATCH i-g-t 1/5] lib/igt_cgroup: add cgroup v2 and dmem controller helpers Thomas Hellström
2026-03-26 16:10 ` [PATCH i-g-t 2/5] tests/cgroup_dmem: add dmem cgroup controller test Thomas Hellström
2026-03-26 16:10 ` [PATCH i-g-t 3/5] lib/xe: add xe_cgroup_region_name() helper Thomas Hellström
2026-03-26 16:10 ` [PATCH i-g-t 4/5] lib/xe: add __xe_vm_bind_lr_sync() failable bind helper Thomas Hellström
2026-03-26 16:10 ` [PATCH i-g-t 5/5] tests/xe_cgroups: add dmem cgroup eviction test Thomas Hellström
2026-03-26 23:42 ` ✓ Xe.CI.BAT: success for Initial dmem cgroup support Patchwork
2026-03-27  0:00 ` ✓ i915.CI.BAT: " Patchwork
2026-03-27 17:49 ` ✓ Xe.CI.FULL: " Patchwork
2026-03-28  0:45 ` ✗ i915.CI.Full: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox