Skip to content

Initial dmem cgroup support

Thomas Hellström igt-dev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

v2 from the cover letter

- Use Sobin's patch for patch 4 rather than a local crafted one.
- Add the O_NONBLOCK subtest.

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6lib/igt_cgroup: add cgroup v2 and dmem controller helperslib/igt.h lib/igt_cgroup.c lib/igt_cgroup.h +1 more+696 -00 replies
2/6tests/cgroup_dmem: add dmem cgroup controller testtests/cgroup_dmem.c tests/meson.build+93 -00 replies
3/6lib/xe: add xe_cgroup_region_name() helperlib/xe/xe_query.c lib/xe/xe_query.h+34 -00 replies
4/6lib/xe: Add failable variant of xe_vm_bind_lr_sync()lib/xe/xe_ioctl.c lib/xe/xe_ioctl.h+27 -100 replies
5/6tests/xe_cgroups: add dmem cgroup eviction testtests/intel/xe_cgroups.c tests/meson.build+277 -00 replies
6/6tests/xe_cgroups: add write_eviction_nonblock subtesttests/intel/xe_cgroups.c+37 -60 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchThomas Hellström
1/6
2/6
3/6
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH i-g-t 0/6] Initial dmem cgroup support

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 adds some vm_bind functionality from Sobin Thomas Patch 5 adds the xe dmem cgroup test
Patch 6 adds an additional subtest testing the O_NONBLOCK functionality

v2:
- Use Sobin's patch for patch 4 rather than a local crafted one.
- Add the O_NONBLOCK subtest.

Sobin Thomas (1):
lib/xe: Add failable variant of xe_vm_bind_lr_sync()

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 tests/xe_cgroups: add dmem cgroup eviction test tests/xe_cgroups: add write_eviction_nonblock subtest

 lib/igt.h                |   1 +
 lib/igt_cgroup.c         | 638 +++++++++++++++++++++++++++++++++++++++
 lib/igt_cgroup.h         |  56 ++++
 lib/meson.build          |   1 +
 lib/xe/xe_ioctl.c        |  35 ++-
 lib/xe/xe_ioctl.h        |   2 +
 lib/xe/xe_query.c        |  32 ++
 lib/xe/xe_query.h        |   2 +
 tests/cgroup_dmem.c      |  92 ++++++
 tests/intel/xe_cgroups.c | 307 +++++++++++++++++++
 tests/meson.build        |   2 +
 11 files changed, 1158 insertions(+), 10 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
Signature · 1 line
2.53.0