public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
From: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Cc: maarten.lankhorst@linux.intel.com,
	"Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Subject: [PATCH i-g-t 0/6] Initial dmem cgroup support
Date: Tue, 28 Apr 2026 08:54:05 +0200	[thread overview]
Message-ID: <20260428065411.4222-1-thomas.hellstrom@linux.intel.com> (raw)

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

-- 
2.53.0


             reply	other threads:[~2026-04-28  6:54 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-04-28  6:54 Thomas Hellström [this message]
2026-04-28  6:54 ` [PATCH i-g-t 1/6] lib/igt_cgroup: add cgroup v2 and dmem controller helpers Thomas Hellström
2026-04-28  6:54 ` [PATCH i-g-t 2/6] tests/cgroup_dmem: add dmem cgroup controller test Thomas Hellström
2026-04-28  6:54 ` [PATCH i-g-t 3/6] lib/xe: add xe_cgroup_region_name() helper Thomas Hellström
2026-04-28  6:54 ` [PATCH i-g-t 4/6] lib/xe: Add failable variant of xe_vm_bind_lr_sync() Thomas Hellström
2026-04-28  6:54 ` [PATCH i-g-t 5/6] tests/xe_cgroups: add dmem cgroup eviction test Thomas Hellström
2026-04-28  6:54 ` [PATCH i-g-t 6/6] tests/xe_cgroups: add write_eviction_nonblock subtest Thomas Hellström
2026-04-28  7:59 ` ✓ Xe.CI.BAT: success for Initial dmem cgroup support (rev2) Patchwork
2026-04-28  8:19 ` ✗ i915.CI.BAT: failure " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260428065411.4222-1-thomas.hellstrom@linux.intel.com \
    --to=thomas.hellstrom@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=maarten.lankhorst@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox