* [PATCH v5 1/6] drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
@ 2026-06-11 14:22 ` Thomas Hellström
2026-06-11 14:37 ` sashiko-bot
2026-06-11 14:22 ` [PATCH v5 2/6] cgroup/dmem: Introduce struct dmem_cgroup_init for region initialization Thomas Hellström
` (7 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 14:22 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Sashiko-bot, Friedrich Vock,
Maarten Lankhorst, Tejun Heo, Maxime Ripard, Christian König,
Alex Deucher, amd-gfx, dri-devel, stable, Natalie Vock,
Johannes Weiner, Michal Koutný, cgroups, Huang Rui,
Matthew Brost, Matthew Auld, Maarten Lankhorst, Thomas Zimmermann,
Simona Vetter, David Airlie, Rodrigo Vivi, linux-kernel
drmm_cgroup_register_region() is called before INIT_LIST_HEAD() and
gpu_buddy_init() in amdgpu_vram_mgr_init(). If it fails, the function
returns early and bypasses those initializations.
Since adev->mman.initialized is set to true before amdgpu_vram_mgr_init()
is called, a failure triggers amdgpu_ttm_fini(), which calls
amdgpu_vram_mgr_fini(), which then:
- Calls list_for_each_entry_safe() on reservations_pending and
reserved_pages, whose list_head::next pointers are zero-initialized
(NULL). The loop does not recognize them as empty and dereferences NULL.
- Calls gpu_buddy_fini(), which iterates free_trees[] unconditionally
via for_each_free_tree(). Since mm->free_trees is NULL
(never allocated), this dereferences NULL.
Both result in a kernel panic on the module load error path.
Fix by moving drmm_cgroup_register_region() to after the list and buddy
allocator are fully initialized, so the teardown path is safe to run.
Reported-by: Sashiko-bot <sashiko-bot@kernel.org>
Closes: https://sashiko.dev/#/patchset/20260428073116.15687-1-thomas.hellstrom@linux.intel.com?part=4
Fixes: 2b624a2c1865 ("drm/ttm: Handle cgroup based eviction in TTM")
Cc: Friedrich Vock <friedrich.vock@gmx.de>
Cc: Maarten Lankhorst <dev@lankhorst.se>
Cc: Tejun Heo <tj@kernel.org>
Cc: Maxime Ripard <mripard@kernel.org>
Cc: Christian König <christian.koenig@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Cc: <stable@vger.kernel.org> # v6.14+
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
index 2a241a5b12c4..ac3f71d77140 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
@@ -918,9 +918,6 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
struct ttm_resource_manager *man = &mgr->manager;
int err;
- man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram", adev->gmc.real_vram_size);
- if (IS_ERR(man->cg))
- return PTR_ERR(man->cg);
ttm_resource_manager_init(man, &adev->mman.bdev,
adev->gmc.real_vram_size);
@@ -935,6 +932,10 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
if (err)
return err;
+ man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram", adev->gmc.real_vram_size);
+ if (IS_ERR(man->cg))
+ return PTR_ERR(man->cg);
+
ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager);
ttm_resource_manager_set_used(man, true);
return 0;
--
2.54.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 1/6] drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()
2026-06-11 14:22 ` [PATCH v5 1/6] drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init() Thomas Hellström
@ 2026-06-11 14:37 ` sashiko-bot
2026-06-11 17:27 ` Thomas Hellström
0 siblings, 1 reply; 15+ messages in thread
From: sashiko-bot @ 2026-06-11 14:37 UTC (permalink / raw)
To: Thomas Hellström; +Cc: mkoutny, tj, dri-devel, hannes
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
Pre-existing issues:
- [High] Incomplete Fix / Kernel panic on module load error path: If `gpu_buddy_init()` fails, it cleans up its internal allocations but leaves `mm->n_roots > 0` and `mm->free_trees` and `mm->roots` as dangling or NULL pointers. Because `adev->mman.initialized` is set to `true` prior to calling `amdgpu_vram_mgr_init()`, a failure in `gpu_buddy_init()` unconditionally triggers the driver teardown path. `amdgpu_vram_mgr_fini()` then invokes `gpu_buddy_fini()`, which dereferences the invalid pointers and causes a kernel panic.
--
commit 88a159aad4fc080127cdbd3bc127dfaae0ae9c17
Author: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()
This commit fixes kernel panics on the module load error path by moving
drmm_cgroup_register_region() after the list and buddy allocator are fully
initialized.
Closes: https://sashiko.dev/#/patchset/20260428073116.15687-1-thomas.hellstrom@linux.intel.com?part=4
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
> index 2a241a5b12c42..ac3f71d77140a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
[ ... ]
> @@ -935,6 +932,10 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
> if (err)
> return err;
[Severity: High]
This is a pre-existing issue, but if gpu_buddy_init() fails, does it still
leave the system vulnerable to the same module load error path panic?
Looking at drivers/gpu/buddy.c, if gpu_buddy_init() fails after setting
mm->n_roots, the error path cleans up allocations but leaves mm->n_roots
populated and mm->roots as a dangling or NULL pointer:
drivers/gpu/buddy.c:gpu_buddy_init() {
...
mm->n_roots = hweight64(size);
...
out_free_tree:
while (i--)
kfree(mm->free_trees[i]);
kfree(mm->free_trees);
return -ENOMEM;
}
Since adev->mman.initialized is set to true before amdgpu_vram_mgr_init() is
called, returning this error will trigger the teardown path where
amdgpu_vram_mgr_fini() unconditionally calls gpu_buddy_fini():
drivers/gpu/buddy.c:gpu_buddy_fini() {
...
for (i = 0; i < mm->n_roots; ++i) {
start = gpu_buddy_block_offset(mm->roots[i]);
...
}
Because mm->n_roots is non-zero, will this unconditionally dereference the
invalid mm->roots pointer and cause a panic?
> + man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram", adev->gmc.real_vram_size);
> + if (IS_ERR(man->cg))
> + return PTR_ERR(man->cg);
> +
> ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager);
> ttm_resource_manager_set_used(man, true);
> return 0;
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260611142242.2529-1-thomas.hellstrom@linux.intel.com?part=1
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v5 1/6] drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()
2026-06-11 14:37 ` sashiko-bot
@ 2026-06-11 17:27 ` Thomas Hellström
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 17:27 UTC (permalink / raw)
To: sashiko-reviews; +Cc: mkoutny, tj, dri-devel, hannes
On 6/11/26 16:37, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
>
> Pre-existing issues:
> - [High] Incomplete Fix / Kernel panic on module load error path: If `gpu_buddy_init()` fails, it cleans up its internal allocations but leaves `mm->n_roots > 0` and `mm->free_trees` and `mm->roots` as dangling or NULL pointers. Because `adev->mman.initialized` is set to `true` prior to calling `amdgpu_vram_mgr_init()`, a failure in `gpu_buddy_init()` unconditionally triggers the driver teardown path. `amdgpu_vram_mgr_fini()` then invokes `gpu_buddy_fini()`, which dereferences the invalid pointers and causes a kernel panic.
Pre-existing issues are out of scope for this series, except when they
are needed for the new functionality.
/Thomas
> --
>
> commit 88a159aad4fc080127cdbd3bc127dfaae0ae9c17
> Author: Thomas Hellström <thomas.hellstrom@linux.intel.com>
>
> drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()
>
> This commit fixes kernel panics on the module load error path by moving
> drmm_cgroup_register_region() after the list and buddy allocator are fully
> initialized.
>
> Closes: https://sashiko.dev/#/patchset/20260428073116.15687-1-thomas.hellstrom@linux.intel.com?part=4
>
>> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
>> index 2a241a5b12c42..ac3f71d77140a 100644
>> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
>> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
> [ ... ]
>> @@ -935,6 +932,10 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
>> if (err)
>> return err;
> [Severity: High]
> This is a pre-existing issue, but if gpu_buddy_init() fails, does it still
> leave the system vulnerable to the same module load error path panic?
>
> Looking at drivers/gpu/buddy.c, if gpu_buddy_init() fails after setting
> mm->n_roots, the error path cleans up allocations but leaves mm->n_roots
> populated and mm->roots as a dangling or NULL pointer:
>
> drivers/gpu/buddy.c:gpu_buddy_init() {
> ...
> mm->n_roots = hweight64(size);
> ...
> out_free_tree:
> while (i--)
> kfree(mm->free_trees[i]);
> kfree(mm->free_trees);
> return -ENOMEM;
> }
>
> Since adev->mman.initialized is set to true before amdgpu_vram_mgr_init() is
> called, returning this error will trigger the teardown path where
> amdgpu_vram_mgr_fini() unconditionally calls gpu_buddy_fini():
>
> drivers/gpu/buddy.c:gpu_buddy_fini() {
> ...
> for (i = 0; i < mm->n_roots; ++i) {
> start = gpu_buddy_block_offset(mm->roots[i]);
> ...
> }
>
> Because mm->n_roots is non-zero, will this unconditionally dereference the
> invalid mm->roots pointer and cause a panic?
>
>> + man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram", adev->gmc.real_vram_size);
>> + if (IS_ERR(man->cg))
>> + return PTR_ERR(man->cg);
>> +
>> ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager);
>> ttm_resource_manager_set_used(man, true);
>> return 0;
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v5 2/6] cgroup/dmem: Introduce struct dmem_cgroup_init for region initialization
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
2026-06-11 14:22 ` [PATCH v5 1/6] drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init() Thomas Hellström
@ 2026-06-11 14:22 ` Thomas Hellström
2026-06-11 14:22 ` [PATCH v5 3/6] cgroup/dmem: Add reclaim callback for lowering max below current usage Thomas Hellström
` (6 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 14:22 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Natalie Vock, Johannes Weiner, Tejun Heo,
Michal Koutný, cgroups, Huang Rui, Matthew Brost,
Matthew Auld, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Simona Vetter, David Airlie, Christian König, Alex Deucher,
Rodrigo Vivi, dri-devel, amd-gfx, linux-kernel
Replace the bare u64 size argument to dmem_cgroup_register_region() and
drmm_cgroup_register_region() with a const struct dmem_cgroup_init *
pointer. The struct currently carries only the size field, but using a
struct makes the API extensible: future callers can supply additional
initialization parameters without adding more positional arguments.
Update all in-tree callers (amdgpu, xe) to use a compound-literal
initializer.
v5:
- Commit introduced.
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 6 +++++-
drivers/gpu/drm/drm_drv.c | 8 +++++---
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 7 ++++++-
include/drm/drm_drv.h | 4 +++-
include/linux/cgroup_dmem.h | 16 +++++++++++++---
kernel/cgroup/dmem.c | 10 ++++++----
6 files changed, 38 insertions(+), 13 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
index ac3f71d77140..08f05c3aed1d 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
@@ -23,6 +23,7 @@
*/
#include <linux/dma-mapping.h>
+#include <linux/cgroup_dmem.h>
#include <drm/ttm/ttm_range_manager.h>
#include <drm/drm_drv.h>
#include <drm/drm_buddy.h>
@@ -932,7 +933,10 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
if (err)
return err;
- man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram", adev->gmc.real_vram_size);
+ man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram",
+ &(struct dmem_cgroup_init){
+ .size = adev->gmc.real_vram_size,
+ });
if (IS_ERR(man->cg))
return PTR_ERR(man->cg);
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 1ff0bf7cba6a..3c570f9393b9 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -960,17 +960,19 @@ static void drmm_cg_unregister_region(struct drm_device *dev, void *arg)
* drmm_cgroup_register_region - Register a region of a DRM device to cgroups
* @dev: device for region
* @region_name: Region name for registering
- * @size: Size of region in bytes
+ * @init: Initialization parameters for the region.
*
* This decreases the ref-count of @dev by one. The device is destroyed if the
* ref-count drops to zero.
*/
-struct dmem_cgroup_region *drmm_cgroup_register_region(struct drm_device *dev, const char *region_name, u64 size)
+struct dmem_cgroup_region *
+drmm_cgroup_register_region(struct drm_device *dev, const char *region_name,
+ const struct dmem_cgroup_init *init)
{
struct dmem_cgroup_region *region;
int ret;
- region = dmem_cgroup_register_region(size, "drm/%s/%s", dev->unique, region_name);
+ region = dmem_cgroup_register_region(init, "drm/%s/%s", dev->unique, region_name);
if (IS_ERR_OR_NULL(region))
return region;
diff --git a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
index b518f7dec680..308fda4248eb 100644
--- a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
+++ b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
@@ -4,6 +4,8 @@
* Copyright (C) 2021-2022 Red Hat
*/
+#include <linux/cgroup_dmem.h>
+
#include <drm/drm_managed.h>
#include <drm/drm_drv.h>
#include <drm/drm_buddy.h>
@@ -303,7 +305,10 @@ int __xe_ttm_vram_mgr_init(struct xe_device *xe, struct xe_ttm_vram_mgr *mgr,
int err;
name = mem_type == XE_PL_VRAM0 ? "vram0" : "vram1";
- man->cg = drmm_cgroup_register_region(&xe->drm, name, size);
+ man->cg = drmm_cgroup_register_region(&xe->drm, name,
+ &(struct dmem_cgroup_init){
+ .size = size,
+ });
if (IS_ERR(man->cg))
return PTR_ERR(man->cg);
diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h
index e09559495c5b..b23830494ed4 100644
--- a/include/drm/drm_drv.h
+++ b/include/drm/drm_drv.h
@@ -34,6 +34,7 @@
#include <drm/drm_device.h>
+struct dmem_cgroup_init;
struct dmem_cgroup_region;
struct drm_fb_helper;
struct drm_fb_helper_surface_size;
@@ -433,7 +434,8 @@ void *__devm_drm_dev_alloc(struct device *parent,
struct dmem_cgroup_region *
drmm_cgroup_register_region(struct drm_device *dev,
- const char *region_name, u64 size);
+ const char *region_name,
+ const struct dmem_cgroup_init *init);
/**
* devm_drm_dev_alloc - Resource managed allocation of a &drm_device instance
diff --git a/include/linux/cgroup_dmem.h b/include/linux/cgroup_dmem.h
index dd4869f1d736..d9eab8a2c1ee 100644
--- a/include/linux/cgroup_dmem.h
+++ b/include/linux/cgroup_dmem.h
@@ -14,8 +14,18 @@ struct dmem_cgroup_pool_state;
/* Opaque definition of a cgroup region, used internally */
struct dmem_cgroup_region;
+/**
+ * struct dmem_cgroup_init - Initialization parameters for a dmem cgroup region.
+ * @size: Size of the region in bytes.
+ */
+struct dmem_cgroup_init {
+ u64 size;
+};
+
#if IS_ENABLED(CONFIG_CGROUP_DMEM)
-struct dmem_cgroup_region *dmem_cgroup_register_region(u64 size, const char *name_fmt, ...) __printf(2,3);
+struct dmem_cgroup_region *
+dmem_cgroup_register_region(const struct dmem_cgroup_init *init,
+ const char *name_fmt, ...) __printf(2, 3);
void dmem_cgroup_unregister_region(struct dmem_cgroup_region *region);
int dmem_cgroup_try_charge(struct dmem_cgroup_region *region, u64 size,
struct dmem_cgroup_pool_state **ret_pool,
@@ -27,8 +37,8 @@ bool dmem_cgroup_state_evict_valuable(struct dmem_cgroup_pool_state *limit_pool,
void dmem_cgroup_pool_state_put(struct dmem_cgroup_pool_state *pool);
#else
-static inline __printf(2,3) struct dmem_cgroup_region *
-dmem_cgroup_register_region(u64 size, const char *name_fmt, ...)
+static inline __printf(2, 3) struct dmem_cgroup_region *
+dmem_cgroup_register_region(const struct dmem_cgroup_init *init, const char *name_fmt, ...)
{
return NULL;
}
diff --git a/kernel/cgroup/dmem.c b/kernel/cgroup/dmem.c
index 6430c7ce1e03..d12c8543f3fe 100644
--- a/kernel/cgroup/dmem.c
+++ b/kernel/cgroup/dmem.c
@@ -502,7 +502,7 @@ EXPORT_SYMBOL_GPL(dmem_cgroup_unregister_region);
/**
* dmem_cgroup_register_region() - Register a regions for dev cgroup.
- * @size: Size of region to register, in bytes.
+ * @init: Initialization parameters for the region.
* @fmt: Region parameters to register
*
* This function registers a node in the dmem cgroup with the
@@ -511,13 +511,15 @@ EXPORT_SYMBOL_GPL(dmem_cgroup_unregister_region);
*
* Return: NULL or a struct on success, PTR_ERR on failure.
*/
-struct dmem_cgroup_region *dmem_cgroup_register_region(u64 size, const char *fmt, ...)
+struct dmem_cgroup_region *
+dmem_cgroup_register_region(const struct dmem_cgroup_init *init,
+ const char *fmt, ...)
{
struct dmem_cgroup_region *ret;
char *region_name;
va_list ap;
- if (!size)
+ if (!init || !init->size)
return NULL;
va_start(ap, fmt);
@@ -534,7 +536,7 @@ struct dmem_cgroup_region *dmem_cgroup_register_region(u64 size, const char *fmt
INIT_LIST_HEAD(&ret->pools);
ret->name = region_name;
- ret->size = size;
+ ret->size = init->size;
kref_init(&ret->ref);
spin_lock(&dmemcg_lock);
--
2.54.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH v5 3/6] cgroup/dmem: Add reclaim callback for lowering max below current usage
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
2026-06-11 14:22 ` [PATCH v5 1/6] drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init() Thomas Hellström
2026-06-11 14:22 ` [PATCH v5 2/6] cgroup/dmem: Introduce struct dmem_cgroup_init for region initialization Thomas Hellström
@ 2026-06-11 14:22 ` Thomas Hellström
2026-06-11 14:40 ` sashiko-bot
2026-06-11 14:22 ` [PATCH v5 4/6] drm/ttm: Hook up a cgroup-aware reclaim callback for the dmem controller Thomas Hellström
` (5 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 14:22 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Natalie Vock, Johannes Weiner, Tejun Heo,
Michal Koutný, cgroups, Huang Rui, Matthew Brost,
Matthew Auld, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Simona Vetter, David Airlie, Christian König, Alex Deucher,
Rodrigo Vivi, dri-devel, amd-gfx, linux-kernel
Add an optional reclaim callback to struct dmem_cgroup_region. When
dmem.max is set below the current usage of a cgroup pool, the new limit
is applied immediately (so that concurrent allocations are throttled
while reclaim is in progress) and then the driver is asked to evict
memory to bring usage back below the limit.
Reclaim is attempted up to a bounded number of times. No error is
returned to userspace if usage remains above the limit after reclaim,
and a pending signal will abort the reclaim loop early. This matches
the behavior of memory.max in the memory cgroup controller.
Also honor O_NONBLOCK so that if that flag is set during the
max value write, no reclaim is initiated. The idea is to avoid
charging the reclaim cost to the writer of the max value.
v2:
- Write max before reclaim is attempted (Maarten)
- Let signals abort the reclaim without error (Maarten)
- If a new max value is written with the O_NONBLOCK flag,
reclaim is not attempted (Maarten)
- Extract region from the pool parameter rather than
passing it explicitly to set_resource_xxx().
v3:
- Use an rwsem to protect reclaim callback registration and
region unregister against concurrent reclaim invocations,
ensuring reclaim_priv is visible when the callback is
invoked. (Sashiko-bot)
v5:
- Rebased on the introduction of struct dmem_cgroup_init.
- Use nonblock=true in reset_all_resource_limits() to avoid sleeping
inside rcu_read_lock() in dmemcs_offline(). (Sashiko-bot)
- Compare usage against the truncated limit value stored in cnt.max,
not the original u64. (Sashiko-bot)
- Use a DMEM_MAX_RECLAIM_RETRIES (16) retry budget instead of 5, matching
the memcg controller's MAX_RECLAIM_RETRIES. Only -ENOSPC (no progress)
counts against the retry budget; other errors terminate the loop
immediately.
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
include/linux/cgroup_dmem.h | 21 +++++++
kernel/cgroup/dmem.c | 119 +++++++++++++++++++++++++++++++++---
2 files changed, 130 insertions(+), 10 deletions(-)
diff --git a/include/linux/cgroup_dmem.h b/include/linux/cgroup_dmem.h
index d9eab8a2c1ee..d705e94d8784 100644
--- a/include/linux/cgroup_dmem.h
+++ b/include/linux/cgroup_dmem.h
@@ -14,12 +14,33 @@ struct dmem_cgroup_pool_state;
/* Opaque definition of a cgroup region, used internally */
struct dmem_cgroup_region;
+/**
+ * struct dmem_cgroup_ops - Operations for a dmem cgroup region.
+ * @reclaim: Optional callback invoked when dmem.max is set below the current
+ * usage of a pool. The driver should attempt to free at least
+ * @target_bytes from @pool. May be called multiple times if usage
+ * remains above the limit after returning.
+ *
+ * Return: 0 if some progress was made (even if less than
+ * @target_bytes was freed), -ENOSPC if no progress could be made,
+ * or another negative error code if a fatal error occurred.
+ * Any non-zero return stops further reclaim attempts.
+ */
+struct dmem_cgroup_ops {
+ int (*reclaim)(struct dmem_cgroup_pool_state *pool,
+ u64 target_bytes, void *priv);
+};
+
/**
* struct dmem_cgroup_init - Initialization parameters for a dmem cgroup region.
* @size: Size of the region in bytes.
+ * @ops: Optional operations for this region. May be NULL.
+ * @reclaim_priv: Opaque pointer passed to @ops->reclaim. May be NULL.
*/
struct dmem_cgroup_init {
u64 size;
+ const struct dmem_cgroup_ops *ops;
+ void *reclaim_priv;
};
#if IS_ENABLED(CONFIG_CGROUP_DMEM)
diff --git a/kernel/cgroup/dmem.c b/kernel/cgroup/dmem.c
index d12c8543f3fe..da99d133182c 100644
--- a/kernel/cgroup/dmem.c
+++ b/kernel/cgroup/dmem.c
@@ -18,6 +18,13 @@
#include <linux/rculist.h>
#include <linux/slab.h>
+/*
+ * Number of reclaim attempts before giving up when lowering dmem.max
+ * below current usage. Mirrors memcg's MAX_RECLAIM_RETRIES; unify the
+ * two in a follow-up instead of duplicating the constant.
+ */
+#define DMEM_MAX_RECLAIM_RETRIES 16
+
struct dmem_cgroup_region {
/**
* @ref: References keeping the region alive.
@@ -51,6 +58,24 @@ struct dmem_cgroup_region {
* No new pools should be added to the region afterwards.
*/
bool unregistered;
+
+ /**
+ * @ops: Optional operations, set from dmem_cgroup_init at registration.
+ */
+ const struct dmem_cgroup_ops *ops;
+
+ /** @reclaim_priv: Private data passed to @ops->reclaim. */
+ void *reclaim_priv;
+
+ /**
+ * @unregister_sem: Serialises reclaim callbacks against unregistration.
+ *
+ * Readers (reclaim) hold the read side for the duration of a callback
+ * invocation. dmem_cgroup_unregister_region() takes the write side to
+ * drain any in-flight callbacks before returning, so callers may safely
+ * free @reclaim_priv once unregister returns.
+ */
+ struct rw_semaphore unregister_sem;
};
struct dmemcg_state {
@@ -145,21 +170,71 @@ static void free_cg_pool(struct dmem_cgroup_pool_state *pool)
}
static void
-set_resource_min(struct dmem_cgroup_pool_state *pool, u64 val)
+set_resource_min(struct dmem_cgroup_pool_state *pool, u64 val, bool nonblock)
{
page_counter_set_min(&pool->cnt, val);
}
static void
-set_resource_low(struct dmem_cgroup_pool_state *pool, u64 val)
+set_resource_low(struct dmem_cgroup_pool_state *pool, u64 val, bool nonblock)
{
page_counter_set_low(&pool->cnt, val);
}
static void
-set_resource_max(struct dmem_cgroup_pool_state *pool, u64 val)
+set_resource_max(struct dmem_cgroup_pool_state *pool, u64 val, bool nonblock)
{
- page_counter_set_max(&pool->cnt, val);
+ struct dmem_cgroup_region *region = pool->region;
+ unsigned long limit = (unsigned long)val;
+
+ /*
+ * Always update the limit, even if usage currently exceeds it.
+ * Concurrent allocations will be throttled against the new limit
+ * while reclaim is in progress.
+ */
+ xchg(&pool->cnt.max, limit);
+
+ if (nonblock)
+ return;
+
+ /*
+ * Hold the read side for the duration of the reclaim loop so that
+ * dmem_cgroup_unregister_region() cannot return (and the caller
+ * cannot free reclaim_priv) while a callback is in progress.
+ *
+ * The ops check must happen inside the lock. A caller may have
+ * observed ops != NULL before dmem_cgroup_unregister_region()
+ * acquired the write side; rechecking under down_read() is safe
+ * because region->unregistered is set while the write side is
+ * held, so any down_read() that succeeds after up_write() will
+ * see unregistered = true and skip the loop.
+ */
+ down_read(®ion->unregister_sem);
+ if (!region->unregistered && region->ops && region->ops->reclaim) {
+ for (int retries = DMEM_MAX_RECLAIM_RETRIES; ; ) {
+ u64 usage = page_counter_read(&pool->cnt);
+ int ret;
+
+ if (usage <= limit)
+ break;
+
+ if (signal_pending(current))
+ break;
+
+ ret = region->ops->reclaim(pool, usage - limit, region->reclaim_priv);
+
+ /*
+ * Mirror memcg's retry strategy: only count -ENOSPC (no
+ * progress) against the retry budget; any other error is
+ * fatal and terminates the loop immediately.
+ */
+ if (ret && (ret != -ENOSPC || !retries--))
+ break;
+
+ cond_resched();
+ }
+ }
+ up_read(®ion->unregister_sem);
}
static u64 get_resource_low(struct dmem_cgroup_pool_state *pool)
@@ -189,9 +264,14 @@ static u64 get_resource_peak(struct dmem_cgroup_pool_state *pool)
static void reset_all_resource_limits(struct dmem_cgroup_pool_state *rpool)
{
- set_resource_min(rpool, 0);
- set_resource_low(rpool, 0);
- set_resource_max(rpool, PAGE_COUNTER_MAX);
+ set_resource_min(rpool, 0, false);
+ set_resource_low(rpool, 0, false);
+ /*
+ * Use nonblock=true: we are raising the limit to PAGE_COUNTER_MAX so
+ * reclaim is pointless, and dmemcs_offline() holds rcu_read_lock()
+ * which forbids sleeping.
+ */
+ set_resource_max(rpool, PAGE_COUNTER_MAX, true);
}
static void dmemcs_offline(struct cgroup_subsys_state *css)
@@ -468,7 +548,10 @@ static void dmemcg_free_region(struct kref *ref)
* dmem_cgroup_unregister_region() - Unregister a previously registered region.
* @region: The region to unregister.
*
- * This function undoes dmem_cgroup_register_region.
+ * This function undoes dmem_cgroup_register_region. It drains any
+ * in-flight reclaim callbacks before returning, so the caller may safely
+ * free the resources pointed to by @init.reclaim_priv once this function
+ * returns.
*/
void dmem_cgroup_unregister_region(struct dmem_cgroup_region *region)
{
@@ -477,6 +560,15 @@ void dmem_cgroup_unregister_region(struct dmem_cgroup_region *region)
if (!region)
return;
+ /*
+ * Acquire the write side to drain any in-flight reclaim callbacks.
+ * After up_write() below, set_resource_max() will observe
+ * region->unregistered = true under its own down_read() and skip
+ * the reclaim loop, so reclaim_priv is safe to free once this
+ * function returns.
+ */
+ down_write(®ion->unregister_sem);
+
spin_lock(&dmemcg_lock);
/* Remove from global region list */
@@ -496,6 +588,8 @@ void dmem_cgroup_unregister_region(struct dmem_cgroup_region *region)
region->unregistered = true;
spin_unlock(&dmemcg_lock);
+ up_write(®ion->unregister_sem);
+
kref_put(®ion->ref, dmemcg_free_region);
}
EXPORT_SYMBOL_GPL(dmem_cgroup_unregister_region);
@@ -537,7 +631,10 @@ dmem_cgroup_register_region(const struct dmem_cgroup_init *init,
INIT_LIST_HEAD(&ret->pools);
ret->name = region_name;
ret->size = init->size;
+ ret->ops = init->ops;
+ ret->reclaim_priv = init->reclaim_priv;
kref_init(&ret->ref);
+ init_rwsem(&ret->unregister_sem);
spin_lock(&dmemcg_lock);
list_add_tail_rcu(&ret->region_node, &dmem_cgroup_regions);
@@ -733,9 +830,10 @@ static int dmemcg_parse_limit(char *options, u64 *new_limit)
static ssize_t dmemcg_limit_write(struct kernfs_open_file *of,
char *buf, size_t nbytes, loff_t off,
- void (*apply)(struct dmem_cgroup_pool_state *, u64))
+ void (*apply)(struct dmem_cgroup_pool_state *, u64, bool))
{
struct dmemcg_state *dmemcs = css_to_dmemcs(of_css(of));
+ bool nonblock = of->file->f_flags & O_NONBLOCK;
int err = 0;
while (buf && !err) {
@@ -780,7 +878,8 @@ static ssize_t dmemcg_limit_write(struct kernfs_open_file *of,
}
/* And commit */
- apply(pool, new_limit);
+ apply(pool, new_limit, nonblock);
+
dmemcg_pool_put(pool);
out_put:
--
2.54.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 3/6] cgroup/dmem: Add reclaim callback for lowering max below current usage
2026-06-11 14:22 ` [PATCH v5 3/6] cgroup/dmem: Add reclaim callback for lowering max below current usage Thomas Hellström
@ 2026-06-11 14:40 ` sashiko-bot
2026-06-11 17:28 ` Thomas Hellström
0 siblings, 1 reply; 15+ messages in thread
From: sashiko-bot @ 2026-06-11 14:40 UTC (permalink / raw)
To: Thomas Hellström; +Cc: tj, mkoutny, dri-devel, hannes
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
New issues:
- [Medium] The docstring for `struct dmem_cgroup_ops->reclaim` explicitly contradicts the implementation for `-ENOSPC` return values.
Pre-existing issues:
- [High] On 32-bit systems, `dmemcg` limits tracked in bytes are truncated to 32-bit `unsigned long`, leading to overflows and artificially severe constraints.
--
commit ccfc580d266b8b80afec154f819853307351d98a
Author: Thomas Hellström <thomas.hellstrom@linux.intel.com>
cgroup/dmem: Add reclaim callback for lowering max below current usage
Add an optional reclaim callback to struct dmem_cgroup_region. When
dmem.max is set below the current usage of a cgroup pool, the new limit
is applied immediately and then the driver is asked to evict memory.
> diff --git a/include/linux/cgroup_dmem.h b/include/linux/cgroup_dmem.h
> index d9eab8a2c1ee6..d705e94d8784d 100644
> --- a/include/linux/cgroup_dmem.h
> +++ b/include/linux/cgroup_dmem.h
> @@ -14,12 +14,33 @@ struct dmem_cgroup_pool_state;
> /* Opaque definition of a cgroup region, used internally */
> struct dmem_cgroup_region;
>
> +/**
> + * struct dmem_cgroup_ops - Operations for a dmem cgroup region.
> + * @reclaim: Optional callback invoked when dmem.max is set below the current
> + * usage of a pool. The driver should attempt to free at least
> + * @target_bytes from @pool. May be called multiple times if usage
> + * remains above the limit after returning.
> + *
> + * Return: 0 if some progress was made (even if less than
> + * @target_bytes was freed), -ENOSPC if no progress could be made,
> + * or another negative error code if a fatal error occurred.
> + * Any non-zero return stops further reclaim attempts.
[Severity: Medium]
Is the documentation accurate regarding the -ENOSPC return code?
The docstring here explicitly states that any non-zero return stops further
reclaim attempts. However, the implementation in set_resource_max() appears
to intercept -ENOSPC and will retry up to 16 times:
if (ret && (ret != -ENOSPC || !retries--))
break;
Could this mislead driver authors into assuming -ENOSPC is a terminal
return code that aborts the loop immediately, when it actually subjects
the driver to continuous retries?
> + */
> +struct dmem_cgroup_ops {
> + int (*reclaim)(struct dmem_cgroup_pool_state *pool,
> + u64 target_bytes, void *priv);
> +};
[ ... ]
> diff --git a/kernel/cgroup/dmem.c b/kernel/cgroup/dmem.c
> index 373ad04d289d5..f7166b8255c7b 100644
> --- a/kernel/cgroup/dmem.c
> +++ b/kernel/cgroup/dmem.c
[ ... ]
> static void
> -set_resource_max(struct dmem_cgroup_pool_state *pool, u64 val)
> +set_resource_max(struct dmem_cgroup_pool_state *pool, u64 val, bool nonblock)
> {
> - page_counter_set_max(&pool->cnt, val);
> + struct dmem_cgroup_region *region = pool->region;
> + unsigned long limit = (unsigned long)val;
[Severity: High]
This is a pre-existing issue, but does this truncation to unsigned long cause
severe limitations on 32-bit systems?
The dmemcg subsystem accounts for memory limits in bytes, but integrates with
the page_counter infrastructure which tracks limits using unsigned long. The
64-bit byte limit is truncated here, wrapping values larger than 4GB on 32-bit
architectures.
Additionally, when setting the limit to 'max' via dmemcg_parse_limit() or
reset_all_resource_limits(), it translates to PAGE_COUNTER_MAX (which is
~524,287 on 32-bit). Because dmem_cgroup_try_charge() passes the allocation
size in bytes to page_counter_try_charge(), a limit of 'max' restricts usage
to ~512KB instead of being unlimited. Will this cause 32-bit workloads to OOM
on allocations larger than ~512KB?
> +
> + /*
> + * Always update the limit, even if usage currently exceeds it.
> + * Concurrent allocations will be throttled against the new limit
> + * while reclaim is in progress.
> + */
> + xchg(&pool->cnt.max, limit);
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260611142242.2529-1-thomas.hellstrom@linux.intel.com?part=3
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: [PATCH v5 3/6] cgroup/dmem: Add reclaim callback for lowering max below current usage
2026-06-11 14:40 ` sashiko-bot
@ 2026-06-11 17:28 ` Thomas Hellström
0 siblings, 0 replies; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 17:28 UTC (permalink / raw)
To: sashiko-reviews; +Cc: tj, mkoutny, dri-devel, hannes
On 6/11/26 16:40, sashiko-bot@kernel.org wrote:
> Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
>
> New issues:
> - [Medium] The docstring for `struct dmem_cgroup_ops->reclaim` explicitly contradicts the implementation for `-ENOSPC` return values.
Fixed in v6.
>
> Pre-existing issues:
> - [High] On 32-bit systems, `dmemcg` limits tracked in bytes are truncated to 32-bit `unsigned long`, leading to overflows and artificially severe constraints.
Pre-existing issues are out of scope.
/Thomas
> --
>
> commit ccfc580d266b8b80afec154f819853307351d98a
> Author: Thomas Hellström <thomas.hellstrom@linux.intel.com>
>
> cgroup/dmem: Add reclaim callback for lowering max below current usage
>
> Add an optional reclaim callback to struct dmem_cgroup_region. When
> dmem.max is set below the current usage of a cgroup pool, the new limit
> is applied immediately and then the driver is asked to evict memory.
>
>> diff --git a/include/linux/cgroup_dmem.h b/include/linux/cgroup_dmem.h
>> index d9eab8a2c1ee6..d705e94d8784d 100644
>> --- a/include/linux/cgroup_dmem.h
>> +++ b/include/linux/cgroup_dmem.h
>> @@ -14,12 +14,33 @@ struct dmem_cgroup_pool_state;
>> /* Opaque definition of a cgroup region, used internally */
>> struct dmem_cgroup_region;
>>
>> +/**
>> + * struct dmem_cgroup_ops - Operations for a dmem cgroup region.
>> + * @reclaim: Optional callback invoked when dmem.max is set below the current
>> + * usage of a pool. The driver should attempt to free at least
>> + * @target_bytes from @pool. May be called multiple times if usage
>> + * remains above the limit after returning.
>> + *
>> + * Return: 0 if some progress was made (even if less than
>> + * @target_bytes was freed), -ENOSPC if no progress could be made,
>> + * or another negative error code if a fatal error occurred.
>> + * Any non-zero return stops further reclaim attempts.
> [Severity: Medium]
> Is the documentation accurate regarding the -ENOSPC return code?
>
> The docstring here explicitly states that any non-zero return stops further
> reclaim attempts. However, the implementation in set_resource_max() appears
> to intercept -ENOSPC and will retry up to 16 times:
>
> if (ret && (ret != -ENOSPC || !retries--))
> break;
>
> Could this mislead driver authors into assuming -ENOSPC is a terminal
> return code that aborts the loop immediately, when it actually subjects
> the driver to continuous retries?
>
>> + */
>> +struct dmem_cgroup_ops {
>> + int (*reclaim)(struct dmem_cgroup_pool_state *pool,
>> + u64 target_bytes, void *priv);
>> +};
> [ ... ]
>
>> diff --git a/kernel/cgroup/dmem.c b/kernel/cgroup/dmem.c
>> index 373ad04d289d5..f7166b8255c7b 100644
>> --- a/kernel/cgroup/dmem.c
>> +++ b/kernel/cgroup/dmem.c
> [ ... ]
>
>> static void
>> -set_resource_max(struct dmem_cgroup_pool_state *pool, u64 val)
>> +set_resource_max(struct dmem_cgroup_pool_state *pool, u64 val, bool nonblock)
>> {
>> - page_counter_set_max(&pool->cnt, val);
>> + struct dmem_cgroup_region *region = pool->region;
>> + unsigned long limit = (unsigned long)val;
> [Severity: High]
> This is a pre-existing issue, but does this truncation to unsigned long cause
> severe limitations on 32-bit systems?
>
> The dmemcg subsystem accounts for memory limits in bytes, but integrates with
> the page_counter infrastructure which tracks limits using unsigned long. The
> 64-bit byte limit is truncated here, wrapping values larger than 4GB on 32-bit
> architectures.
>
> Additionally, when setting the limit to 'max' via dmemcg_parse_limit() or
> reset_all_resource_limits(), it translates to PAGE_COUNTER_MAX (which is
> ~524,287 on 32-bit). Because dmem_cgroup_try_charge() passes the allocation
> size in bytes to page_counter_try_charge(), a limit of 'max' restricts usage
> to ~512KB instead of being unlimited. Will this cause 32-bit workloads to OOM
> on allocations larger than ~512KB?
>
>> +
>> + /*
>> + * Always update the limit, even if usage currently exceeds it.
>> + * Concurrent allocations will be throttled against the new limit
>> + * while reclaim is in progress.
>> + */
>> + xchg(&pool->cnt.max, limit);
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH v5 4/6] drm/ttm: Hook up a cgroup-aware reclaim callback for the dmem controller
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
` (2 preceding siblings ...)
2026-06-11 14:22 ` [PATCH v5 3/6] cgroup/dmem: Add reclaim callback for lowering max below current usage Thomas Hellström
@ 2026-06-11 14:22 ` Thomas Hellström
2026-06-11 14:22 ` [PATCH v5 5/6] drm/xe: Wire up dmem cgroup reclaim for VRAM manager Thomas Hellström
` (4 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 14:22 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Natalie Vock, Johannes Weiner, Tejun Heo,
Michal Koutný, cgroups, Huang Rui, Matthew Brost,
Matthew Auld, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Simona Vetter, David Airlie, Christian König, Alex Deucher,
Rodrigo Vivi, dri-devel, amd-gfx, linux-kernel
Add ttm_bo_evict_cgroup() to evict buffer objects charged to a specific
dmem cgroup pool from a resource manager's LRU until a byte target is
met. Add ttm_resource_manager_set_dmem_region() to associate a dmem
cgroup region with a resource manager; drivers supply their own
dmem_cgroup_ops with ttm_resource_manager_dmem_reclaim as the reclaim
function and the manager pointer as reclaim_priv in the dmem_cgroup_init
to wire up TTM eviction as the reclaim callback.
The eviction context is interruptible; signals abort the operation and
propagate back through the write() syscall.
Introduce a new mode for the bo LRU walker so that sleeping locks
can be taken. This can be used when the caller doesn't hold any
previous dma_resv locks, and where it intends to hold at most
one lock at a time.
Like the rest of the TTM eviction this should sooner than later
be converted to full WW transactions.
v3:
- Fix ttm_resource_manager_set_dmem_region() storing an error pointer
in man->cg unconditionally. (Sashiko-bot)
- Fix kernel-doc function name format for ttm_bo_evict_cgroup() and
ttm_resource_manager_set_dmem_region().
v5:
- Rebased on the introduction of struct dmem_cgroup_init.
- Handle NULL region in ttm_resource_manager_set_dmem_region() to clear
the reclaim callback, preventing use-after-free when the manager is
torn down while the dmem region outlives it. (Sashiko-bot)
- Return 0 on any progress (even partial eviction), -ENOSPC only when
nothing was freed; fixes callers that expected 0 on partial success.
- Document that the reclaim callback should return 0 if some progress
was made, -ENOSPC if no progress at all, or another error for fatal
failures.
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/ttm/ttm_bo.c | 95 +++++++++++++++++++++++++++++-
drivers/gpu/drm/ttm/ttm_bo_util.c | 3 +-
drivers/gpu/drm/ttm/ttm_resource.c | 50 ++++++++++++++++
include/drm/ttm/ttm_bo.h | 10 ++++
include/drm/ttm/ttm_resource.h | 7 +++
5 files changed, 161 insertions(+), 4 deletions(-)
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index bcd76f6bb7f0..db0e38bd8a43 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -515,12 +515,20 @@ static s64 ttm_bo_evict_cb(struct ttm_lru_walk *walk, struct ttm_buffer_object *
{
struct ttm_bo_evict_walk *evict_walk =
container_of(walk, typeof(*evict_walk), walk);
+ /* Capture size before eviction in case res is cleared. */
+ s64 bo_size = bo->base.size;
s64 lret;
if (!dmem_cgroup_state_evict_valuable(evict_walk->limit_pool, bo->resource->css,
evict_walk->try_low, &evict_walk->hit_low))
return 0;
+ /*
+ * evict_walk->place is NULL in cgroup drain mode. Drivers'
+ * eviction_valuable() callbacks must handle a NULL place, treating it
+ * as "any placement": the TTM base implementation already does so via
+ * ttm_resource_intersects().
+ */
if (bo->pin_count || !bo->bdev->funcs->eviction_valuable(bo, evict_walk->place))
return 0;
@@ -536,11 +544,15 @@ static s64 ttm_bo_evict_cb(struct ttm_lru_walk *walk, struct ttm_buffer_object *
goto out;
evict_walk->evicted++;
- if (evict_walk->res)
+ if (evict_walk->res) {
lret = ttm_resource_alloc(evict_walk->evictor, evict_walk->place,
evict_walk->res, NULL);
- if (lret == 0)
- return 1;
+ if (lret == 0)
+ return 1;
+ } else {
+ /* Cgroup drain: return bytes freed for byte-denominated progress. */
+ return bo_size;
+ }
out:
/* Errors that should terminate the walk. */
if (lret == -ENOSPC)
@@ -614,6 +626,83 @@ static int ttm_bo_evict_alloc(struct ttm_device *bdev,
return 0;
}
+/**
+ * ttm_bo_evict_cgroup() - Evict buffer objects charged to a specific cgroup.
+ * @bdev: The TTM device.
+ * @man: The resource manager whose LRU to walk.
+ * @limit_pool: The cgroup pool state whose members should be evicted.
+ * @target_bytes: Number of bytes to free.
+ * @ctx: The TTM operation context.
+ *
+ * Walk the LRU of @man and evict buffer objects that are charged to the
+ * cgroup identified by @limit_pool, until at least @target_bytes have been
+ * freed. Mirrors the two-pass (trylock -> sleeping-lock, low-watermark)
+ * strategy used by ttm_bo_evict_alloc().
+ *
+ * Return: >= @target_bytes on full success, 0..target_bytes-1 if partial,
+ * negative error code on fatal error.
+ */
+s64 ttm_bo_evict_cgroup(struct ttm_device *bdev,
+ struct ttm_resource_manager *man,
+ struct dmem_cgroup_pool_state *limit_pool,
+ s64 target_bytes,
+ struct ttm_operation_ctx *ctx)
+{
+ struct ttm_bo_evict_walk evict_walk = {
+ .walk = {
+ .ops = &ttm_evict_walk_ops,
+ .arg = { .ctx = ctx },
+ },
+ .limit_pool = limit_pool,
+ /* place, evictor, res left NULL: selects cgroup drain mode */
+ };
+ s64 lret, pass;
+
+ evict_walk.walk.arg.trylock_only = true;
+ lret = ttm_lru_walk_for_evict(&evict_walk.walk, bdev, man, target_bytes);
+ if (lret < 0 || lret >= target_bytes)
+ return lret;
+
+ /* Second pass: also evict BOs at the low watermark. */
+ if (evict_walk.hit_low) {
+ evict_walk.try_low = true;
+ pass = ttm_lru_walk_for_evict(&evict_walk.walk, bdev, man,
+ target_bytes - lret);
+ if (pass < 0)
+ return pass;
+ lret += pass;
+ if (lret >= target_bytes)
+ return lret;
+ }
+
+ /* Full sleeping-lock pass for remaining target. */
+ evict_walk.try_low = evict_walk.hit_low = false;
+ evict_walk.walk.arg.trylock_only = false;
+
+retry:
+ evict_walk.walk.arg.sleeping_lock = true;
+ do {
+ evict_walk.evicted = 0;
+ pass = ttm_lru_walk_for_evict(&evict_walk.walk, bdev, man,
+ target_bytes - lret);
+ if (pass < 0) {
+ lret = pass;
+ goto out;
+ }
+ lret += pass;
+ } while (lret < target_bytes && evict_walk.evicted);
+
+ /* One more attempt if we hit the low limit during sleeping-lock pass. */
+ if (lret < target_bytes && evict_walk.hit_low && !evict_walk.try_low) {
+ evict_walk.try_low = true;
+ goto retry;
+ }
+
+out:
+ return lret;
+}
+EXPORT_SYMBOL(ttm_bo_evict_cgroup);
+
/**
* ttm_bo_pin - Pin the buffer object.
* @bo: The buffer object to pin
diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c
index 3e3c201a0222..bd0b23ac2cc4 100644
--- a/drivers/gpu/drm/ttm/ttm_bo_util.c
+++ b/drivers/gpu/drm/ttm/ttm_bo_util.c
@@ -999,7 +999,8 @@ __ttm_bo_lru_cursor_next(struct ttm_bo_lru_cursor *curs)
bo = res->bo;
if (ttm_lru_walk_trylock(curs, bo))
bo_locked = true;
- else if (!arg->ticket || arg->ctx->no_wait_gpu || arg->trylock_only)
+ else if ((!arg->ticket && !arg->sleeping_lock) || arg->ctx->no_wait_gpu ||
+ arg->trylock_only)
continue;
if (!ttm_bo_get_unless_zero(bo)) {
diff --git a/drivers/gpu/drm/ttm/ttm_resource.c b/drivers/gpu/drm/ttm/ttm_resource.c
index 154d6739256f..ad00723e99ef 100644
--- a/drivers/gpu/drm/ttm/ttm_resource.c
+++ b/drivers/gpu/drm/ttm/ttm_resource.c
@@ -953,3 +953,53 @@ void ttm_resource_manager_create_debugfs(struct ttm_resource_manager *man,
#endif
}
EXPORT_SYMBOL(ttm_resource_manager_create_debugfs);
+
+/**
+ * ttm_resource_manager_dmem_reclaim() - dmem cgroup reclaim callback for TTM
+ * resource managers.
+ * @pool: The dmem cgroup pool state for the cgroup being reclaimed.
+ * @target_bytes: Number of bytes to try to free.
+ * @priv: The &ttm_resource_manager pointer, passed as @init.reclaim_priv to
+ * dmem_cgroup_register_region().
+ *
+ * Drivers should use this as the @reclaim member of their own
+ * &struct dmem_cgroup_ops, with the &ttm_resource_manager pointer as
+ * @init.reclaim_priv.
+ *
+ * Return: 0 if some memory was freed, -ENOSPC if nothing was freed, or
+ * another negative error code on fatal failure.
+ */
+int ttm_resource_manager_dmem_reclaim(struct dmem_cgroup_pool_state *pool,
+ u64 target_bytes, void *priv)
+{
+ struct ttm_resource_manager *man = priv;
+ struct ttm_operation_ctx ctx = { .interruptible = true };
+ s64 freed;
+
+ freed = ttm_bo_evict_cgroup(man->bdev, man, pool, target_bytes, &ctx);
+ if (freed < 0)
+ return freed;
+
+ return freed > 0 ? 0 : -ENOSPC;
+}
+EXPORT_SYMBOL(ttm_resource_manager_dmem_reclaim);
+
+/**
+ * ttm_resource_manager_set_dmem_region() - Associate a dmem cgroup region with a
+ * resource manager.
+ * @man: The resource manager.
+ * @region: The dmem cgroup region to associate, may be NULL or IS_ERR().
+ *
+ * When @region is valid, stores it in @man->cg so that TTM can look up the
+ * associated pool during charging and eviction-target selection.
+ * The reclaim callback must be wired up using ttm_resource_manager_dmem_reclaim()
+ * in the driver's own &struct dmem_cgroup_ops, with the manager pointer as
+ * @init.reclaim_priv.
+ */
+void ttm_resource_manager_set_dmem_region(struct ttm_resource_manager *man,
+ struct dmem_cgroup_region *region)
+{
+ if (!IS_ERR_OR_NULL(region))
+ man->cg = region;
+}
+EXPORT_SYMBOL(ttm_resource_manager_set_dmem_region);
diff --git a/include/drm/ttm/ttm_bo.h b/include/drm/ttm/ttm_bo.h
index 8310bc3d55f9..32791c4db2a9 100644
--- a/include/drm/ttm/ttm_bo.h
+++ b/include/drm/ttm/ttm_bo.h
@@ -226,6 +226,11 @@ struct ttm_lru_walk_arg {
struct ww_acquire_ctx *ticket;
/** @trylock_only: Only use trylock for locking. */
bool trylock_only;
+ /**
+ * @sleeping_lock: Use sleeping locks even with %NULL @ticket.
+ * @trylock_only has precedence over this field.
+ */
+ bool sleeping_lock;
};
/**
@@ -431,6 +436,11 @@ void ttm_bo_unpin(struct ttm_buffer_object *bo);
int ttm_bo_evict_first(struct ttm_device *bdev,
struct ttm_resource_manager *man,
struct ttm_operation_ctx *ctx);
+s64 ttm_bo_evict_cgroup(struct ttm_device *bdev,
+ struct ttm_resource_manager *man,
+ struct dmem_cgroup_pool_state *limit_pool,
+ s64 target_bytes,
+ struct ttm_operation_ctx *ctx);
int ttm_bo_access(struct ttm_buffer_object *bo, unsigned long offset,
void *buf, int len, int write);
vm_fault_t ttm_bo_vm_reserve(struct ttm_buffer_object *bo,
diff --git a/include/drm/ttm/ttm_resource.h b/include/drm/ttm/ttm_resource.h
index a5d386583fb6..32e485fdce9a 100644
--- a/include/drm/ttm/ttm_resource.h
+++ b/include/drm/ttm/ttm_resource.h
@@ -39,6 +39,7 @@
struct dentry;
struct dmem_cgroup_device;
+struct dmem_cgroup_region;
struct drm_printer;
struct ttm_device;
struct ttm_resource_manager;
@@ -477,6 +478,12 @@ void ttm_resource_manager_init(struct ttm_resource_manager *man,
struct ttm_device *bdev,
uint64_t size);
+void ttm_resource_manager_set_dmem_region(struct ttm_resource_manager *man,
+ struct dmem_cgroup_region *region);
+
+int ttm_resource_manager_dmem_reclaim(struct dmem_cgroup_pool_state *pool,
+ u64 target_bytes, void *priv);
+
int ttm_resource_manager_evict_all(struct ttm_device *bdev,
struct ttm_resource_manager *man);
--
2.54.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH v5 5/6] drm/xe: Wire up dmem cgroup reclaim for VRAM manager
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
` (3 preceding siblings ...)
2026-06-11 14:22 ` [PATCH v5 4/6] drm/ttm: Hook up a cgroup-aware reclaim callback for the dmem controller Thomas Hellström
@ 2026-06-11 14:22 ` Thomas Hellström
2026-06-11 14:22 ` [PATCH v5 6/6] drm/amdgpu: " Thomas Hellström
` (3 subsequent siblings)
8 siblings, 0 replies; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 14:22 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Natalie Vock, Johannes Weiner, Tejun Heo,
Michal Koutný, cgroups, Huang Rui, Matthew Brost,
Matthew Auld, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Simona Vetter, David Airlie, Christian König, Alex Deucher,
Rodrigo Vivi, dri-devel, amd-gfx, linux-kernel
Register the VRAM manager with the dmem cgroup reclaim infrastructure
so that lowering dmem.max below current VRAM usage triggers TTM
eviction rather than failing with -EBUSY.
v4:
- Rebased on drm-tip; dropped the XE_PL_STOLEN guard as stolen memory
uses a separate TTM manager and never calls __xe_ttm_vram_mgr_init().
v5:
- Rebased on the introduction of struct dmem_cgroup_init.
- Register the fini drmm action before drmm_cgroup_register_region() so
that devres LIFO teardown runs unregister_region() first (draining any
in-flight reclaim callbacks via the rwsem) and xe_ttm_vram_mgr_fini()
second, ensuring the manager is never accessed by a reclaim callback
after teardown. (Sashiko-bot)
- Wrap the reclaim callback in xe_ttm_vram_mgr_dmem_reclaim() using
drm_dev_enter()/drm_dev_exit() to prevent TTM reclaim from running
after driver unbind.
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/xe/xe_ttm_vram_mgr.c | 54 +++++++++++++++++++++++-----
1 file changed, 45 insertions(+), 9 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
index 308fda4248eb..b2500344cd57 100644
--- a/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
+++ b/drivers/gpu/drm/xe/xe_ttm_vram_mgr.c
@@ -276,6 +276,28 @@ static const struct ttm_resource_manager_func xe_ttm_vram_mgr_func = {
.debug = xe_ttm_vram_mgr_debug
};
+static const struct dmem_cgroup_ops xe_ttm_vram_mgr_dmem_ops;
+
+static int xe_ttm_vram_mgr_dmem_reclaim(struct dmem_cgroup_pool_state *pool,
+ u64 target_bytes, void *priv)
+{
+ struct ttm_resource_manager *man = priv;
+ struct xe_device *xe = ttm_to_xe_device(man->bdev);
+ int ret, idx;
+
+ if (!drm_dev_enter(&xe->drm, &idx))
+ return -ENODEV;
+
+ ret = ttm_resource_manager_dmem_reclaim(pool, target_bytes, priv);
+
+ drm_dev_exit(idx);
+ return ret;
+}
+
+static const struct dmem_cgroup_ops xe_ttm_vram_mgr_dmem_ops = {
+ .reclaim = xe_ttm_vram_mgr_dmem_reclaim,
+};
+
static void xe_ttm_vram_mgr_fini(struct drm_device *dev, void *arg)
{
struct xe_device *xe = to_xe_device(dev);
@@ -301,17 +323,10 @@ int __xe_ttm_vram_mgr_init(struct xe_device *xe, struct xe_ttm_vram_mgr *mgr,
u64 default_page_size)
{
struct ttm_resource_manager *man = &mgr->manager;
+ struct dmem_cgroup_region *cg;
const char *name;
int err;
- name = mem_type == XE_PL_VRAM0 ? "vram0" : "vram1";
- man->cg = drmm_cgroup_register_region(&xe->drm, name,
- &(struct dmem_cgroup_init){
- .size = size,
- });
- if (IS_ERR(man->cg))
- return PTR_ERR(man->cg);
-
man->func = &xe_ttm_vram_mgr_func;
mgr->mem_type = mem_type;
err = drmm_mutex_init(&xe->drm, &mgr->lock);
@@ -330,7 +345,28 @@ int __xe_ttm_vram_mgr_init(struct xe_device *xe, struct xe_ttm_vram_mgr *mgr,
ttm_set_driver_manager(&xe->ttm, mem_type, &mgr->manager);
ttm_resource_manager_set_used(&mgr->manager, true);
- return drmm_add_action_or_reset(&xe->drm, xe_ttm_vram_mgr_fini, mgr);
+ /*
+ * Register the fini action before the cgroup region so that devres
+ * LIFO teardown runs unregister_region first (draining any in-flight
+ * reclaim callbacks) and the manager fini second.
+ */
+ err = drmm_add_action_or_reset(&xe->drm, xe_ttm_vram_mgr_fini, mgr);
+ if (err)
+ return err;
+
+ name = mem_type == XE_PL_VRAM0 ? "vram0" : "vram1";
+ cg = drmm_cgroup_register_region(&xe->drm, name,
+ &(struct dmem_cgroup_init){
+ .size = size,
+ .ops = &xe_ttm_vram_mgr_dmem_ops,
+ .reclaim_priv = man,
+ });
+ if (IS_ERR(cg))
+ return PTR_ERR(cg);
+
+ ttm_resource_manager_set_dmem_region(man, cg);
+
+ return 0;
}
/**
--
2.54.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH v5 6/6] drm/amdgpu: Wire up dmem cgroup reclaim for VRAM manager
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
` (4 preceding siblings ...)
2026-06-11 14:22 ` [PATCH v5 5/6] drm/xe: Wire up dmem cgroup reclaim for VRAM manager Thomas Hellström
@ 2026-06-11 14:22 ` Thomas Hellström
2026-06-11 14:35 ` sashiko-bot
2026-06-11 14:49 ` ✗ CI.checkpatch: warning for Add reclaim to the dmem cgroup controller (rev5) Patchwork
` (2 subsequent siblings)
8 siblings, 1 reply; 15+ messages in thread
From: Thomas Hellström @ 2026-06-11 14:22 UTC (permalink / raw)
To: intel-xe
Cc: Thomas Hellström, Natalie Vock, Johannes Weiner, Tejun Heo,
Michal Koutný, cgroups, Huang Rui, Matthew Brost,
Matthew Auld, Maarten Lankhorst, Maxime Ripard, Thomas Zimmermann,
Simona Vetter, David Airlie, Christian König, Alex Deucher,
Rodrigo Vivi, dri-devel, amd-gfx, linux-kernel
Register the VRAM manager with the dmem cgroup reclaim infrastructure
so that lowering dmem.max below current VRAM usage triggers TTM
eviction rather than failing with -EBUSY.
Guard place->flags in amdgpu_ttm_bo_eviction_valuable() against NULL,
as the TTM reclaim path passes a NULL place in cgroup drain mode.
v3:
- Rebased on fix for uninitialized list and buddy allocator on the
drmm_cgroup_register_region() error path.
v5:
- Rebased on the introduction of struct dmem_cgroup_init.
- Clear the reclaim callback in amdgpu_vram_mgr_fini() to prevent
use-after-free if cgroup reclaim is triggered after driver unbind
while userspace holds an open DRM file descriptor. (Sashiko-bot)
- Switch from drmm_cgroup_register_region() to the raw
dmem_cgroup_register_region() and store the region in
amdgpu_vram_mgr.cg_region. Explicitly call
dmem_cgroup_unregister_region() at the top of amdgpu_vram_mgr_fini()
before any manager teardown, draining in-flight reclaim callbacks via
the rwsem before the manager is destroyed. This is required because
amdgpu's vram manager fini is called explicitly during driver unbind,
which may precede the DRM device release and thus precede any
drmm-based cleanup. (Sashiko-bot)
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c | 2 +-
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c | 29 ++++++++++++++++----
drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h | 2 ++
3 files changed, 26 insertions(+), 7 deletions(-)
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
index 2740de94e93c..8cbcd33f51a5 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
@@ -1488,7 +1488,7 @@ static bool amdgpu_ttm_bo_eviction_valuable(struct ttm_buffer_object *bo,
dma_resv_for_each_fence(&resv_cursor, bo->base.resv,
DMA_RESV_USAGE_BOOKKEEP, f) {
if (amdkfd_fence_check_mm(f, current->mm) &&
- !(place->flags & TTM_PL_FLAG_CONTIGUOUS))
+ !(place && (place->flags & TTM_PL_FLAG_CONTIGUOUS)))
return false;
}
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
index 08f05c3aed1d..ee98b963e84a 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
@@ -906,6 +906,10 @@ static const struct ttm_resource_manager_func amdgpu_vram_mgr_func = {
.debug = amdgpu_vram_mgr_debug
};
+static const struct dmem_cgroup_ops amdgpu_vram_mgr_dmem_ops = {
+ .reclaim = ttm_resource_manager_dmem_reclaim,
+};
+
/**
* amdgpu_vram_mgr_init - init VRAM manager and DRM MM
*
@@ -917,6 +921,7 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
{
struct amdgpu_vram_mgr *mgr = &adev->mman.vram_mgr;
struct ttm_resource_manager *man = &mgr->manager;
+ struct dmem_cgroup_region *cg;
int err;
ttm_resource_manager_init(man, &adev->mman.bdev,
@@ -933,12 +938,15 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
if (err)
return err;
- man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram",
- &(struct dmem_cgroup_init){
- .size = adev->gmc.real_vram_size,
- });
- if (IS_ERR(man->cg))
- return PTR_ERR(man->cg);
+ cg = dmem_cgroup_register_region(&(struct dmem_cgroup_init){
+ .size = adev->gmc.real_vram_size,
+ .ops = &amdgpu_vram_mgr_dmem_ops,
+ .reclaim_priv = man,
+ }, "vram");
+ if (IS_ERR(cg))
+ return PTR_ERR(cg);
+
+ ttm_resource_manager_set_dmem_region(man, cg);
ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager);
ttm_resource_manager_set_used(man, true);
@@ -960,6 +968,15 @@ void amdgpu_vram_mgr_fini(struct amdgpu_device *adev)
int ret;
struct amdgpu_vram_reservation *rsv, *temp;
+ /*
+ * Drain any in-flight dmem cgroup reclaim callbacks and remove the
+ * region from the global list before tearing down the manager.
+ * This must happen first so no reclaim callback can access the
+ * manager after this point.
+ */
+ dmem_cgroup_unregister_region(mgr->cg_region);
+ mgr->cg_region = NULL;
+
ttm_resource_manager_set_used(man, false);
ret = ttm_resource_manager_evict_all(&adev->mman.bdev, man);
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h
index 429a21a2e9b2..07103cddb335 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.h
@@ -36,6 +36,8 @@ struct amdgpu_vram_mgr {
atomic64_t vis_usage;
u64 default_page_size;
struct list_head allocated_vres_list;
+ /** @cg_region: dmem cgroup region for VRAM; unregistered in fini. */
+ struct dmem_cgroup_region *cg_region;
};
struct amdgpu_vres_task {
--
2.54.0
^ permalink raw reply related [flat|nested] 15+ messages in thread* Re: [PATCH v5 6/6] drm/amdgpu: Wire up dmem cgroup reclaim for VRAM manager
2026-06-11 14:22 ` [PATCH v5 6/6] drm/amdgpu: " Thomas Hellström
@ 2026-06-11 14:35 ` sashiko-bot
0 siblings, 0 replies; 15+ messages in thread
From: sashiko-bot @ 2026-06-11 14:35 UTC (permalink / raw)
To: Thomas Hellström; +Cc: dri-devel, mkoutny, hannes, tj
Thank you for your contribution! Sashiko AI review found 2 potential issue(s) to consider:
- [Critical] The newly registered dmem cgroup region is never assigned to `mgr->cg_region`, causing a memory leak and leaving dangling reclaim callbacks that lead to a Use-After-Free.
- [High] Calling `dmem_cgroup_unregister_region()` before `ttm_resource_manager_set_used(man, false)` creates a race window where concurrent allocations can dereference a freed cgroup region.
--
commit 02aedad5c82131466a2fb9b6bba851f053487de8
Author: Thomas Hellström <thomas.hellstrom@linux.intel.com>
drm/amdgpu: Wire up dmem cgroup reclaim for VRAM manager
Register the VRAM manager with the dmem cgroup reclaim infrastructure
so that lowering dmem.max below current VRAM usage triggers TTM
eviction rather than failing with -EBUSY.
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
> index 08f05c3aed1d5..ee98b963e84a0 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vram_mgr.c
> @@ -933,12 +938,15 @@ int amdgpu_vram_mgr_init(struct amdgpu_device *adev)
> if (err)
> return err;
>
> - man->cg = drmm_cgroup_register_region(adev_to_drm(adev), "vram",
> - &(struct dmem_cgroup_init){
> - .size = adev->gmc.real_vram_size,
> - });
> - if (IS_ERR(man->cg))
> - return PTR_ERR(man->cg);
> + cg = dmem_cgroup_register_region(&(struct dmem_cgroup_init){
> + .size = adev->gmc.real_vram_size,
> + .ops = &amdgpu_vram_mgr_dmem_ops,
> + .reclaim_priv = man,
> + }, "vram");
> + if (IS_ERR(cg))
> + return PTR_ERR(cg);
> +
> + ttm_resource_manager_set_dmem_region(man, cg);
[Severity: Critical]
Is cg missing an assignment to mgr->cg_region here?
Because mgr->cg_region is zero-initialized and never updated,
amdgpu_vram_mgr_fini() will later pass NULL to dmem_cgroup_unregister_region().
This causes the cgroup region to leak and remain on the global list.
If cgroup reclaim is triggered after the driver unbinds and the man pointer
is freed, will the callback execute and dereference reclaim_priv, resulting
in a use-after-free?
> ttm_set_driver_manager(&adev->mman.bdev, TTM_PL_VRAM, &mgr->manager);
> ttm_resource_manager_set_used(man, true);
[ ... ]
> @@ -960,6 +968,15 @@ void amdgpu_vram_mgr_fini(struct amdgpu_device *adev)
> int ret;
> struct amdgpu_vram_reservation *rsv, *temp;
>
> + /*
> + * Drain any in-flight dmem cgroup reclaim callbacks and remove the
> + * region from the global list before tearing down the manager.
> + * This must happen first so no reclaim callback can access the
> + * manager after this point.
> + */
> + dmem_cgroup_unregister_region(mgr->cg_region);
> + mgr->cg_region = NULL;
> +
> ttm_resource_manager_set_used(man, false);
[Severity: High]
Does unregistering the cgroup region before calling
ttm_resource_manager_set_used(man, false) create a race condition with
concurrent BO allocations?
Assuming mgr->cg_region was properly set, dmem_cgroup_unregister_region()
will remove the region from global lists and drop its references. Meanwhile,
the manager remains active (man->use_type == true).
Because amdgpu_vram_mgr_fini() runs during driver unbind where concurrent
ioctls may still be executing, could a concurrent BO allocation pass the check
in ttm_bo_mem_space() and call dmem_cgroup_try_charge(man->cg, ...)?
This would access the unregistered region and cause a use-after-free. Should
ttm_resource_manager_set_used(man, false) be executed before unregistering
the region?
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260611142242.2529-1-thomas.hellstrom@linux.intel.com?part=6
^ permalink raw reply [flat|nested] 15+ messages in thread
* ✗ CI.checkpatch: warning for Add reclaim to the dmem cgroup controller (rev5)
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
` (5 preceding siblings ...)
2026-06-11 14:22 ` [PATCH v5 6/6] drm/amdgpu: " Thomas Hellström
@ 2026-06-11 14:49 ` Patchwork
2026-06-11 14:51 ` ✓ CI.KUnit: success " Patchwork
2026-06-11 16:44 ` ✓ Xe.CI.BAT: " Patchwork
8 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-06-11 14:49 UTC (permalink / raw)
To: Thomas Hellström; +Cc: intel-xe
== Series Details ==
Series: Add reclaim to the dmem cgroup controller (rev5)
URL : https://patchwork.freedesktop.org/series/163970/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
061140b9bc586ae7f40abc1249c97e1cc72d1b9d
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 9439fe7de4e3d3f46a4fe8a110666ade97248728
Author: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Date: Thu Jun 11 16:22:42 2026 +0200
drm/amdgpu: Wire up dmem cgroup reclaim for VRAM manager
Register the VRAM manager with the dmem cgroup reclaim infrastructure
so that lowering dmem.max below current VRAM usage triggers TTM
eviction rather than failing with -EBUSY.
Guard place->flags in amdgpu_ttm_bo_eviction_valuable() against NULL,
as the TTM reclaim path passes a NULL place in cgroup drain mode.
v3:
- Rebased on fix for uninitialized list and buddy allocator on the
drmm_cgroup_register_region() error path.
v5:
- Rebased on the introduction of struct dmem_cgroup_init.
- Clear the reclaim callback in amdgpu_vram_mgr_fini() to prevent
use-after-free if cgroup reclaim is triggered after driver unbind
while userspace holds an open DRM file descriptor. (Sashiko-bot)
- Switch from drmm_cgroup_register_region() to the raw
dmem_cgroup_register_region() and store the region in
amdgpu_vram_mgr.cg_region. Explicitly call
dmem_cgroup_unregister_region() at the top of amdgpu_vram_mgr_fini()
before any manager teardown, draining in-flight reclaim callbacks via
the rwsem before the manager is destroyed. This is required because
amdgpu's vram manager fini is called explicitly during driver unbind,
which may precede the DRM device release and thus precede any
drmm-based cleanup. (Sashiko-bot)
Assisted-by: GitHub_Copilot:claude-sonnet-4.6
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
+ /mt/dim checkpatch a472b6217138ef0942355824543a5cce12f43343 drm-intel
e1a5560d6708 drm/amdgpu: Fix init ordering in amdgpu_vram_mgr_init()
52d9204760ae cgroup/dmem: Introduce struct dmem_cgroup_init for region initialization
d0cf7b3f76b6 cgroup/dmem: Add reclaim callback for lowering max below current usage
6a1fc281b4e3 drm/ttm: Hook up a cgroup-aware reclaim callback for the dmem controller
-:147: CHECK:MULTIPLE_ASSIGNMENTS: multiple assignments should be avoided
#147: FILE: drivers/gpu/drm/ttm/ttm_bo.c:679:
+ evict_walk.try_low = evict_walk.hit_low = false;
total: 0 errors, 0 warnings, 1 checks, 224 lines checked
f29ea644bf65 drm/xe: Wire up dmem cgroup reclaim for VRAM manager
-:42: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#42: FILE: drivers/gpu/drm/xe/xe_ttm_vram_mgr.c:282:
+static int xe_ttm_vram_mgr_dmem_reclaim(struct dmem_cgroup_pool_state *pool,
+ u64 target_bytes, void *priv)
total: 0 errors, 0 warnings, 1 checks, 75 lines checked
9439fe7de4e3 drm/amdgpu: Wire up dmem cgroup reclaim for VRAM manager
^ permalink raw reply [flat|nested] 15+ messages in thread* ✓ CI.KUnit: success for Add reclaim to the dmem cgroup controller (rev5)
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
` (6 preceding siblings ...)
2026-06-11 14:49 ` ✗ CI.checkpatch: warning for Add reclaim to the dmem cgroup controller (rev5) Patchwork
@ 2026-06-11 14:51 ` Patchwork
2026-06-11 16:44 ` ✓ Xe.CI.BAT: " Patchwork
8 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-06-11 14:51 UTC (permalink / raw)
To: Thomas Hellström; +Cc: intel-xe
== Series Details ==
Series: Add reclaim to the dmem cgroup controller (rev5)
URL : https://patchwork.freedesktop.org/series/163970/
State : success
== Summary ==
+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig
[14:49:54] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:49:59] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:50:30] Starting KUnit Kernel (1/1)...
[14:50:30] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:50:30] ================== guc_buf (11 subtests) ===================
[14:50:30] [PASSED] test_smallest
[14:50:30] [PASSED] test_largest
[14:50:30] [PASSED] test_granular
[14:50:30] [PASSED] test_unique
[14:50:30] [PASSED] test_overlap
[14:50:30] [PASSED] test_reusable
[14:50:30] [PASSED] test_too_big
[14:50:30] [PASSED] test_flush
[14:50:30] [PASSED] test_lookup
[14:50:30] [PASSED] test_data
[14:50:30] [PASSED] test_class
[14:50:30] ===================== [PASSED] guc_buf =====================
[14:50:30] =================== guc_dbm (7 subtests) ===================
[14:50:30] [PASSED] test_empty
[14:50:30] [PASSED] test_default
[14:50:30] ======================== test_size ========================
[14:50:30] [PASSED] 4
[14:50:30] [PASSED] 8
[14:50:30] [PASSED] 32
[14:50:30] [PASSED] 256
[14:50:30] ==================== [PASSED] test_size ====================
[14:50:30] ======================= test_reuse ========================
[14:50:30] [PASSED] 4
[14:50:30] [PASSED] 8
[14:50:30] [PASSED] 32
[14:50:30] [PASSED] 256
[14:50:30] =================== [PASSED] test_reuse ====================
[14:50:30] =================== test_range_overlap ====================
[14:50:30] [PASSED] 4
[14:50:30] [PASSED] 8
[14:50:30] [PASSED] 32
[14:50:30] [PASSED] 256
[14:50:30] =============== [PASSED] test_range_overlap ================
[14:50:30] =================== test_range_compact ====================
[14:50:30] [PASSED] 4
[14:50:30] [PASSED] 8
[14:50:30] [PASSED] 32
[14:50:30] [PASSED] 256
[14:50:30] =============== [PASSED] test_range_compact ================
[14:50:30] ==================== test_range_spare =====================
[14:50:30] [PASSED] 4
[14:50:30] [PASSED] 8
[14:50:30] [PASSED] 32
[14:50:30] [PASSED] 256
[14:50:30] ================ [PASSED] test_range_spare =================
[14:50:30] ===================== [PASSED] guc_dbm =====================
[14:50:30] =================== guc_idm (6 subtests) ===================
[14:50:30] [PASSED] bad_init
[14:50:30] [PASSED] no_init
[14:50:30] [PASSED] init_fini
[14:50:30] [PASSED] check_used
[14:50:30] [PASSED] check_quota
[14:50:30] [PASSED] check_all
[14:50:30] ===================== [PASSED] guc_idm =====================
[14:50:30] ================== no_relay (3 subtests) ===================
[14:50:30] [PASSED] xe_drops_guc2pf_if_not_ready
[14:50:30] [PASSED] xe_drops_guc2vf_if_not_ready
[14:50:30] [PASSED] xe_rejects_send_if_not_ready
[14:50:30] ==================== [PASSED] no_relay =====================
[14:50:30] ================== pf_relay (14 subtests) ==================
[14:50:30] [PASSED] pf_rejects_guc2pf_too_short
[14:50:30] [PASSED] pf_rejects_guc2pf_too_long
[14:50:30] [PASSED] pf_rejects_guc2pf_no_payload
[14:50:30] [PASSED] pf_fails_no_payload
[14:50:30] [PASSED] pf_fails_bad_origin
[14:50:30] [PASSED] pf_fails_bad_type
[14:50:30] [PASSED] pf_txn_reports_error
[14:50:30] [PASSED] pf_txn_sends_pf2guc
[14:50:30] [PASSED] pf_sends_pf2guc
[14:50:30] [SKIPPED] pf_loopback_nop
[14:50:30] [SKIPPED] pf_loopback_echo
[14:50:30] [SKIPPED] pf_loopback_fail
[14:50:30] [SKIPPED] pf_loopback_busy
[14:50:30] [SKIPPED] pf_loopback_retry
[14:50:30] ==================== [PASSED] pf_relay =====================
[14:50:30] ================== vf_relay (3 subtests) ===================
[14:50:30] [PASSED] vf_rejects_guc2vf_too_short
[14:50:30] [PASSED] vf_rejects_guc2vf_too_long
[14:50:30] [PASSED] vf_rejects_guc2vf_no_payload
[14:50:30] ==================== [PASSED] vf_relay =====================
[14:50:30] ================ pf_gt_config (9 subtests) =================
[14:50:30] [PASSED] fair_contexts_1vf
[14:50:30] [PASSED] fair_doorbells_1vf
[14:50:30] [PASSED] fair_ggtt_1vf
[14:50:30] ====================== fair_vram_1vf ======================
[14:50:30] [PASSED] 3.50 GiB
[14:50:30] [PASSED] 11.5 GiB
[14:50:30] [PASSED] 15.5 GiB
[14:50:30] [PASSED] 31.5 GiB
[14:50:30] [PASSED] 63.5 GiB
[14:50:30] [PASSED] 1.91 GiB
[14:50:30] ================== [PASSED] fair_vram_1vf ==================
[14:50:30] ================ fair_vram_1vf_admin_only =================
[14:50:30] [PASSED] 3.50 GiB
[14:50:30] [PASSED] 11.5 GiB
[14:50:30] [PASSED] 15.5 GiB
[14:50:30] [PASSED] 31.5 GiB
[14:50:30] [PASSED] 63.5 GiB
[14:50:30] [PASSED] 1.91 GiB
[14:50:30] ============ [PASSED] fair_vram_1vf_admin_only =============
[14:50:30] ====================== fair_contexts ======================
[14:50:30] [PASSED] 1 VF
[14:50:30] [PASSED] 2 VFs
[14:50:30] [PASSED] 3 VFs
[14:50:30] [PASSED] 4 VFs
[14:50:30] [PASSED] 5 VFs
[14:50:30] [PASSED] 6 VFs
[14:50:30] [PASSED] 7 VFs
[14:50:30] [PASSED] 8 VFs
[14:50:30] [PASSED] 9 VFs
[14:50:30] [PASSED] 10 VFs
[14:50:30] [PASSED] 11 VFs
[14:50:30] [PASSED] 12 VFs
[14:50:30] [PASSED] 13 VFs
[14:50:30] [PASSED] 14 VFs
[14:50:30] [PASSED] 15 VFs
[14:50:30] [PASSED] 16 VFs
[14:50:30] [PASSED] 17 VFs
[14:50:30] [PASSED] 18 VFs
[14:50:30] [PASSED] 19 VFs
[14:50:30] [PASSED] 20 VFs
[14:50:30] [PASSED] 21 VFs
[14:50:30] [PASSED] 22 VFs
[14:50:30] [PASSED] 23 VFs
[14:50:30] [PASSED] 24 VFs
[14:50:30] [PASSED] 25 VFs
[14:50:30] [PASSED] 26 VFs
[14:50:30] [PASSED] 27 VFs
[14:50:30] [PASSED] 28 VFs
[14:50:30] [PASSED] 29 VFs
[14:50:30] [PASSED] 30 VFs
[14:50:30] [PASSED] 31 VFs
[14:50:30] [PASSED] 32 VFs
[14:50:30] [PASSED] 33 VFs
[14:50:30] [PASSED] 34 VFs
[14:50:30] [PASSED] 35 VFs
[14:50:30] [PASSED] 36 VFs
[14:50:30] [PASSED] 37 VFs
[14:50:30] [PASSED] 38 VFs
[14:50:30] [PASSED] 39 VFs
[14:50:30] [PASSED] 40 VFs
[14:50:30] [PASSED] 41 VFs
[14:50:30] [PASSED] 42 VFs
[14:50:30] [PASSED] 43 VFs
[14:50:30] [PASSED] 44 VFs
[14:50:30] [PASSED] 45 VFs
[14:50:30] [PASSED] 46 VFs
[14:50:30] [PASSED] 47 VFs
[14:50:30] [PASSED] 48 VFs
[14:50:30] [PASSED] 49 VFs
[14:50:30] [PASSED] 50 VFs
[14:50:30] [PASSED] 51 VFs
[14:50:30] [PASSED] 52 VFs
[14:50:30] [PASSED] 53 VFs
[14:50:30] [PASSED] 54 VFs
[14:50:30] [PASSED] 55 VFs
[14:50:30] [PASSED] 56 VFs
[14:50:30] [PASSED] 57 VFs
[14:50:30] [PASSED] 58 VFs
[14:50:30] [PASSED] 59 VFs
[14:50:30] [PASSED] 60 VFs
[14:50:30] [PASSED] 61 VFs
[14:50:30] [PASSED] 62 VFs
[14:50:30] [PASSED] 63 VFs
[14:50:30] ================== [PASSED] fair_contexts ==================
[14:50:30] ===================== fair_doorbells ======================
[14:50:30] [PASSED] 1 VF
[14:50:30] [PASSED] 2 VFs
[14:50:30] [PASSED] 3 VFs
[14:50:30] [PASSED] 4 VFs
[14:50:30] [PASSED] 5 VFs
[14:50:30] [PASSED] 6 VFs
[14:50:30] [PASSED] 7 VFs
[14:50:30] [PASSED] 8 VFs
[14:50:30] [PASSED] 9 VFs
[14:50:30] [PASSED] 10 VFs
[14:50:30] [PASSED] 11 VFs
[14:50:30] [PASSED] 12 VFs
[14:50:30] [PASSED] 13 VFs
[14:50:30] [PASSED] 14 VFs
[14:50:30] [PASSED] 15 VFs
[14:50:30] [PASSED] 16 VFs
[14:50:30] [PASSED] 17 VFs
[14:50:30] [PASSED] 18 VFs
[14:50:30] [PASSED] 19 VFs
[14:50:30] [PASSED] 20 VFs
[14:50:30] [PASSED] 21 VFs
[14:50:30] [PASSED] 22 VFs
[14:50:30] [PASSED] 23 VFs
[14:50:30] [PASSED] 24 VFs
[14:50:30] [PASSED] 25 VFs
[14:50:30] [PASSED] 26 VFs
[14:50:30] [PASSED] 27 VFs
[14:50:30] [PASSED] 28 VFs
[14:50:30] [PASSED] 29 VFs
[14:50:30] [PASSED] 30 VFs
[14:50:30] [PASSED] 31 VFs
[14:50:30] [PASSED] 32 VFs
[14:50:30] [PASSED] 33 VFs
[14:50:30] [PASSED] 34 VFs
[14:50:30] [PASSED] 35 VFs
[14:50:30] [PASSED] 36 VFs
[14:50:30] [PASSED] 37 VFs
[14:50:30] [PASSED] 38 VFs
[14:50:30] [PASSED] 39 VFs
[14:50:30] [PASSED] 40 VFs
[14:50:30] [PASSED] 41 VFs
[14:50:30] [PASSED] 42 VFs
[14:50:30] [PASSED] 43 VFs
[14:50:30] [PASSED] 44 VFs
[14:50:30] [PASSED] 45 VFs
[14:50:30] [PASSED] 46 VFs
[14:50:30] [PASSED] 47 VFs
[14:50:30] [PASSED] 48 VFs
[14:50:30] [PASSED] 49 VFs
[14:50:30] [PASSED] 50 VFs
[14:50:30] [PASSED] 51 VFs
[14:50:30] [PASSED] 52 VFs
[14:50:30] [PASSED] 53 VFs
[14:50:30] [PASSED] 54 VFs
[14:50:30] [PASSED] 55 VFs
[14:50:30] [PASSED] 56 VFs
[14:50:30] [PASSED] 57 VFs
[14:50:30] [PASSED] 58 VFs
[14:50:30] [PASSED] 59 VFs
[14:50:30] [PASSED] 60 VFs
[14:50:30] [PASSED] 61 VFs
[14:50:30] [PASSED] 62 VFs
[14:50:30] [PASSED] 63 VFs
[14:50:30] ================= [PASSED] fair_doorbells ==================
[14:50:30] ======================== fair_ggtt ========================
[14:50:30] [PASSED] 1 VF
[14:50:30] [PASSED] 2 VFs
[14:50:30] [PASSED] 3 VFs
[14:50:30] [PASSED] 4 VFs
[14:50:30] [PASSED] 5 VFs
[14:50:30] [PASSED] 6 VFs
[14:50:30] [PASSED] 7 VFs
[14:50:30] [PASSED] 8 VFs
[14:50:30] [PASSED] 9 VFs
[14:50:30] [PASSED] 10 VFs
[14:50:30] [PASSED] 11 VFs
[14:50:30] [PASSED] 12 VFs
[14:50:30] [PASSED] 13 VFs
[14:50:30] [PASSED] 14 VFs
[14:50:30] [PASSED] 15 VFs
[14:50:30] [PASSED] 16 VFs
[14:50:30] [PASSED] 17 VFs
[14:50:30] [PASSED] 18 VFs
[14:50:30] [PASSED] 19 VFs
[14:50:30] [PASSED] 20 VFs
[14:50:30] [PASSED] 21 VFs
[14:50:30] [PASSED] 22 VFs
[14:50:30] [PASSED] 23 VFs
[14:50:30] [PASSED] 24 VFs
[14:50:30] [PASSED] 25 VFs
[14:50:30] [PASSED] 26 VFs
[14:50:30] [PASSED] 27 VFs
[14:50:30] [PASSED] 28 VFs
[14:50:30] [PASSED] 29 VFs
[14:50:30] [PASSED] 30 VFs
[14:50:30] [PASSED] 31 VFs
[14:50:30] [PASSED] 32 VFs
[14:50:30] [PASSED] 33 VFs
[14:50:30] [PASSED] 34 VFs
[14:50:30] [PASSED] 35 VFs
[14:50:30] [PASSED] 36 VFs
[14:50:30] [PASSED] 37 VFs
[14:50:30] [PASSED] 38 VFs
[14:50:30] [PASSED] 39 VFs
[14:50:30] [PASSED] 40 VFs
[14:50:30] [PASSED] 41 VFs
[14:50:30] [PASSED] 42 VFs
[14:50:30] [PASSED] 43 VFs
[14:50:30] [PASSED] 44 VFs
[14:50:30] [PASSED] 45 VFs
[14:50:30] [PASSED] 46 VFs
[14:50:30] [PASSED] 47 VFs
[14:50:30] [PASSED] 48 VFs
[14:50:30] [PASSED] 49 VFs
[14:50:30] [PASSED] 50 VFs
[14:50:30] [PASSED] 51 VFs
[14:50:30] [PASSED] 52 VFs
[14:50:30] [PASSED] 53 VFs
[14:50:30] [PASSED] 54 VFs
[14:50:30] [PASSED] 55 VFs
[14:50:30] [PASSED] 56 VFs
[14:50:30] [PASSED] 57 VFs
[14:50:30] [PASSED] 58 VFs
[14:50:30] [PASSED] 59 VFs
[14:50:30] [PASSED] 60 VFs
[14:50:30] [PASSED] 61 VFs
[14:50:30] [PASSED] 62 VFs
[14:50:30] [PASSED] 63 VFs
[14:50:30] ==================== [PASSED] fair_ggtt ====================
[14:50:30] ======================== fair_vram ========================
[14:50:30] [PASSED] 1 VF
[14:50:30] [PASSED] 2 VFs
[14:50:30] [PASSED] 3 VFs
[14:50:30] [PASSED] 4 VFs
[14:50:30] [PASSED] 5 VFs
[14:50:30] [PASSED] 6 VFs
[14:50:30] [PASSED] 7 VFs
[14:50:30] [PASSED] 8 VFs
[14:50:30] [PASSED] 9 VFs
[14:50:30] [PASSED] 10 VFs
[14:50:30] [PASSED] 11 VFs
[14:50:30] [PASSED] 12 VFs
[14:50:30] [PASSED] 13 VFs
[14:50:30] [PASSED] 14 VFs
[14:50:30] [PASSED] 15 VFs
[14:50:30] [PASSED] 16 VFs
[14:50:30] [PASSED] 17 VFs
[14:50:30] [PASSED] 18 VFs
[14:50:30] [PASSED] 19 VFs
[14:50:30] [PASSED] 20 VFs
[14:50:30] [PASSED] 21 VFs
[14:50:30] [PASSED] 22 VFs
[14:50:30] [PASSED] 23 VFs
[14:50:30] [PASSED] 24 VFs
[14:50:30] [PASSED] 25 VFs
[14:50:30] [PASSED] 26 VFs
[14:50:30] [PASSED] 27 VFs
[14:50:30] [PASSED] 28 VFs
[14:50:30] [PASSED] 29 VFs
[14:50:30] [PASSED] 30 VFs
[14:50:30] [PASSED] 31 VFs
[14:50:30] [PASSED] 32 VFs
[14:50:30] [PASSED] 33 VFs
[14:50:30] [PASSED] 34 VFs
[14:50:30] [PASSED] 35 VFs
[14:50:30] [PASSED] 36 VFs
[14:50:30] [PASSED] 37 VFs
[14:50:30] [PASSED] 38 VFs
[14:50:30] [PASSED] 39 VFs
[14:50:30] [PASSED] 40 VFs
[14:50:30] [PASSED] 41 VFs
[14:50:30] [PASSED] 42 VFs
[14:50:30] [PASSED] 43 VFs
[14:50:30] [PASSED] 44 VFs
[14:50:30] [PASSED] 45 VFs
[14:50:30] [PASSED] 46 VFs
[14:50:30] [PASSED] 47 VFs
[14:50:30] [PASSED] 48 VFs
[14:50:30] [PASSED] 49 VFs
[14:50:30] [PASSED] 50 VFs
[14:50:30] [PASSED] 51 VFs
[14:50:30] [PASSED] 52 VFs
[14:50:30] [PASSED] 53 VFs
[14:50:30] [PASSED] 54 VFs
[14:50:30] [PASSED] 55 VFs
[14:50:30] [PASSED] 56 VFs
[14:50:30] [PASSED] 57 VFs
[14:50:30] [PASSED] 58 VFs
[14:50:30] [PASSED] 59 VFs
[14:50:30] [PASSED] 60 VFs
[14:50:30] [PASSED] 61 VFs
[14:50:30] [PASSED] 62 VFs
[14:50:30] [PASSED] 63 VFs
[14:50:30] ==================== [PASSED] fair_vram ====================
[14:50:30] ================== [PASSED] pf_gt_config ===================
[14:50:30] ===================== lmtt (1 subtest) =====================
[14:50:30] ======================== test_ops =========================
[14:50:30] [PASSED] 2-level
[14:50:30] [PASSED] multi-level
[14:50:30] ==================== [PASSED] test_ops =====================
[14:50:30] ====================== [PASSED] lmtt =======================
[14:50:30] ================= pf_service (11 subtests) =================
[14:50:30] [PASSED] pf_negotiate_any
[14:50:30] [PASSED] pf_negotiate_base_match
[14:50:30] [PASSED] pf_negotiate_base_newer
[14:50:30] [PASSED] pf_negotiate_base_next
[14:50:30] [SKIPPED] pf_negotiate_base_older
[14:50:30] [PASSED] pf_negotiate_base_prev
[14:50:30] [PASSED] pf_negotiate_latest_match
[14:50:30] [PASSED] pf_negotiate_latest_newer
[14:50:30] [PASSED] pf_negotiate_latest_next
[14:50:30] [SKIPPED] pf_negotiate_latest_older
[14:50:30] [SKIPPED] pf_negotiate_latest_prev
[14:50:30] =================== [PASSED] pf_service ====================
[14:50:30] ================= xe_guc_g2g (2 subtests) ==================
[14:50:30] ============== xe_live_guc_g2g_kunit_default ==============
[14:50:30] ========= [SKIPPED] xe_live_guc_g2g_kunit_default ==========
[14:50:30] ============== xe_live_guc_g2g_kunit_allmem ===============
[14:50:30] ========== [SKIPPED] xe_live_guc_g2g_kunit_allmem ==========
[14:50:30] =================== [SKIPPED] xe_guc_g2g ===================
[14:50:30] =================== xe_mocs (2 subtests) ===================
[14:50:30] ================ xe_live_mocs_kernel_kunit ================
[14:50:30] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[14:50:30] ================ xe_live_mocs_reset_kunit =================
[14:50:30] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[14:50:30] ==================== [SKIPPED] xe_mocs =====================
[14:50:30] ================= xe_migrate (2 subtests) ==================
[14:50:30] ================= xe_migrate_sanity_kunit =================
[14:50:30] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[14:50:30] ================== xe_validate_ccs_kunit ==================
[14:50:30] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[14:50:30] =================== [SKIPPED] xe_migrate ===================
[14:50:30] ================== xe_dma_buf (1 subtest) ==================
[14:50:30] ==================== xe_dma_buf_kunit =====================
[14:50:30] ================ [SKIPPED] xe_dma_buf_kunit ================
[14:50:30] =================== [SKIPPED] xe_dma_buf ===================
[14:50:30] ================= xe_bo_shrink (1 subtest) =================
[14:50:30] =================== xe_bo_shrink_kunit ====================
[14:50:30] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[14:50:30] ================== [SKIPPED] xe_bo_shrink ==================
[14:50:30] ==================== xe_bo (2 subtests) ====================
[14:50:30] ================== xe_ccs_migrate_kunit ===================
[14:50:30] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[14:50:30] ==================== xe_bo_evict_kunit ====================
[14:50:30] =============== [SKIPPED] xe_bo_evict_kunit ================
[14:50:30] ===================== [SKIPPED] xe_bo ======================
[14:50:30] ==================== args (13 subtests) ====================
[14:50:30] [PASSED] count_args_test
[14:50:30] [PASSED] call_args_example
[14:50:30] [PASSED] call_args_test
[14:50:30] [PASSED] drop_first_arg_example
[14:50:30] [PASSED] drop_first_arg_test
[14:50:30] [PASSED] first_arg_example
[14:50:30] [PASSED] first_arg_test
[14:50:30] [PASSED] last_arg_example
[14:50:30] [PASSED] last_arg_test
[14:50:30] [PASSED] pick_arg_example
[14:50:30] [PASSED] if_args_example
[14:50:30] [PASSED] if_args_test
[14:50:30] [PASSED] sep_comma_example
[14:50:30] ====================== [PASSED] args =======================
[14:50:30] =================== xe_pci (3 subtests) ====================
[14:50:30] ==================== check_graphics_ip ====================
[14:50:30] [PASSED] 12.00 Xe_LP
[14:50:30] [PASSED] 12.10 Xe_LP+
[14:50:30] [PASSED] 12.55 Xe_HPG
[14:50:30] [PASSED] 12.60 Xe_HPC
[14:50:30] [PASSED] 12.70 Xe_LPG
[14:50:30] [PASSED] 12.71 Xe_LPG
[14:50:30] [PASSED] 12.74 Xe_LPG+
[14:50:30] [PASSED] 20.01 Xe2_HPG
[14:50:30] [PASSED] 20.02 Xe2_HPG
[14:50:30] [PASSED] 20.04 Xe2_LPG
[14:50:30] [PASSED] 30.00 Xe3_LPG
[14:50:30] [PASSED] 30.01 Xe3_LPG
[14:50:30] [PASSED] 30.03 Xe3_LPG
[14:50:30] [PASSED] 30.04 Xe3_LPG
[14:50:30] [PASSED] 30.05 Xe3_LPG
[14:50:30] [PASSED] 35.10 Xe3p_LPG
[14:50:30] [PASSED] 35.11 Xe3p_XPC
[14:50:30] ================ [PASSED] check_graphics_ip ================
[14:50:30] ===================== check_media_ip ======================
[14:50:30] [PASSED] 12.00 Xe_M
[14:50:30] [PASSED] 12.55 Xe_HPM
[14:50:30] [PASSED] 13.00 Xe_LPM+
[14:50:30] [PASSED] 13.01 Xe2_HPM
[14:50:30] [PASSED] 20.00 Xe2_LPM
[14:50:30] [PASSED] 30.00 Xe3_LPM
[14:50:30] [PASSED] 30.02 Xe3_LPM
[14:50:30] [PASSED] 35.00 Xe3p_LPM
[14:50:30] [PASSED] 35.03 Xe3p_HPM
[14:50:30] ================= [PASSED] check_media_ip ==================
[14:50:30] =================== check_platform_desc ===================
[14:50:30] [PASSED] 0x9A60 (TIGERLAKE)
[14:50:30] [PASSED] 0x9A68 (TIGERLAKE)
[14:50:30] [PASSED] 0x9A70 (TIGERLAKE)
[14:50:30] [PASSED] 0x9A40 (TIGERLAKE)
[14:50:30] [PASSED] 0x9A49 (TIGERLAKE)
[14:50:30] [PASSED] 0x9A59 (TIGERLAKE)
[14:50:30] [PASSED] 0x9A78 (TIGERLAKE)
[14:50:30] [PASSED] 0x9AC0 (TIGERLAKE)
[14:50:30] [PASSED] 0x9AC9 (TIGERLAKE)
[14:50:30] [PASSED] 0x9AD9 (TIGERLAKE)
[14:50:30] [PASSED] 0x9AF8 (TIGERLAKE)
[14:50:30] [PASSED] 0x4C80 (ROCKETLAKE)
[14:50:30] [PASSED] 0x4C8A (ROCKETLAKE)
[14:50:30] [PASSED] 0x4C8B (ROCKETLAKE)
[14:50:30] [PASSED] 0x4C8C (ROCKETLAKE)
[14:50:30] [PASSED] 0x4C90 (ROCKETLAKE)
[14:50:30] [PASSED] 0x4C9A (ROCKETLAKE)
[14:50:30] [PASSED] 0x4680 (ALDERLAKE_S)
[14:50:30] [PASSED] 0x4682 (ALDERLAKE_S)
[14:50:30] [PASSED] 0x4688 (ALDERLAKE_S)
[14:50:30] [PASSED] 0x468A (ALDERLAKE_S)
[14:50:30] [PASSED] 0x468B (ALDERLAKE_S)
[14:50:30] [PASSED] 0x4690 (ALDERLAKE_S)
[14:50:30] [PASSED] 0x4692 (ALDERLAKE_S)
[14:50:30] [PASSED] 0x4693 (ALDERLAKE_S)
[14:50:30] [PASSED] 0x46A0 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46A1 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46A2 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46A3 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46A6 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46A8 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46AA (ALDERLAKE_P)
[14:50:30] [PASSED] 0x462A (ALDERLAKE_P)
[14:50:30] [PASSED] 0x4626 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x4628 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46B0 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46B1 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46B2 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46B3 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46C0 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46C1 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46C2 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46C3 (ALDERLAKE_P)
[14:50:30] [PASSED] 0x46D0 (ALDERLAKE_N)
[14:50:30] [PASSED] 0x46D1 (ALDERLAKE_N)
[14:50:30] [PASSED] 0x46D2 (ALDERLAKE_N)
[14:50:30] [PASSED] 0x46D3 (ALDERLAKE_N)
[14:50:30] [PASSED] 0x46D4 (ALDERLAKE_N)
[14:50:30] [PASSED] 0xA721 (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7A1 (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7A9 (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7AC (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7AD (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA720 (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7A0 (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7A8 (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7AA (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA7AB (ALDERLAKE_P)
[14:50:30] [PASSED] 0xA780 (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA781 (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA782 (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA783 (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA788 (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA789 (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA78A (ALDERLAKE_S)
[14:50:30] [PASSED] 0xA78B (ALDERLAKE_S)
[14:50:30] [PASSED] 0x4905 (DG1)
[14:50:30] [PASSED] 0x4906 (DG1)
[14:50:30] [PASSED] 0x4907 (DG1)
[14:50:30] [PASSED] 0x4908 (DG1)
[14:50:30] [PASSED] 0x4909 (DG1)
[14:50:30] [PASSED] 0x56C0 (DG2)
[14:50:30] [PASSED] 0x56C2 (DG2)
[14:50:30] [PASSED] 0x56C1 (DG2)
[14:50:30] [PASSED] 0x7D51 (METEORLAKE)
[14:50:30] [PASSED] 0x7DD1 (METEORLAKE)
[14:50:30] [PASSED] 0x7D41 (METEORLAKE)
[14:50:30] [PASSED] 0x7D67 (METEORLAKE)
[14:50:30] [PASSED] 0xB640 (METEORLAKE)
[14:50:30] [PASSED] 0x56A0 (DG2)
[14:50:30] [PASSED] 0x56A1 (DG2)
[14:50:30] [PASSED] 0x56A2 (DG2)
[14:50:30] [PASSED] 0x56BE (DG2)
[14:50:30] [PASSED] 0x56BF (DG2)
[14:50:30] [PASSED] 0x5690 (DG2)
[14:50:30] [PASSED] 0x5691 (DG2)
[14:50:30] [PASSED] 0x5692 (DG2)
[14:50:30] [PASSED] 0x56A5 (DG2)
[14:50:30] [PASSED] 0x56A6 (DG2)
[14:50:30] [PASSED] 0x56B0 (DG2)
[14:50:30] [PASSED] 0x56B1 (DG2)
[14:50:30] [PASSED] 0x56BA (DG2)
[14:50:30] [PASSED] 0x56BB (DG2)
[14:50:30] [PASSED] 0x56BC (DG2)
[14:50:30] [PASSED] 0x56BD (DG2)
[14:50:30] [PASSED] 0x5693 (DG2)
[14:50:30] [PASSED] 0x5694 (DG2)
[14:50:30] [PASSED] 0x5695 (DG2)
[14:50:30] [PASSED] 0x56A3 (DG2)
[14:50:30] [PASSED] 0x56A4 (DG2)
[14:50:30] [PASSED] 0x56B2 (DG2)
[14:50:30] [PASSED] 0x56B3 (DG2)
[14:50:30] [PASSED] 0x5696 (DG2)
[14:50:30] [PASSED] 0x5697 (DG2)
[14:50:30] [PASSED] 0xB69 (PVC)
[14:50:30] [PASSED] 0xB6E (PVC)
[14:50:30] [PASSED] 0xBD4 (PVC)
[14:50:30] [PASSED] 0xBD5 (PVC)
[14:50:30] [PASSED] 0xBD6 (PVC)
[14:50:30] [PASSED] 0xBD7 (PVC)
[14:50:30] [PASSED] 0xBD8 (PVC)
[14:50:30] [PASSED] 0xBD9 (PVC)
[14:50:30] [PASSED] 0xBDA (PVC)
[14:50:30] [PASSED] 0xBDB (PVC)
[14:50:30] [PASSED] 0xBE0 (PVC)
[14:50:30] [PASSED] 0xBE1 (PVC)
[14:50:30] [PASSED] 0xBE5 (PVC)
[14:50:30] [PASSED] 0x7D40 (METEORLAKE)
[14:50:30] [PASSED] 0x7D45 (METEORLAKE)
[14:50:30] [PASSED] 0x7D55 (METEORLAKE)
[14:50:30] [PASSED] 0x7D60 (METEORLAKE)
[14:50:30] [PASSED] 0x7DD5 (METEORLAKE)
[14:50:30] [PASSED] 0x6420 (LUNARLAKE)
[14:50:30] [PASSED] 0x64A0 (LUNARLAKE)
[14:50:30] [PASSED] 0x64B0 (LUNARLAKE)
[14:50:30] [PASSED] 0xE202 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE209 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE20B (BATTLEMAGE)
[14:50:30] [PASSED] 0xE20C (BATTLEMAGE)
[14:50:30] [PASSED] 0xE20D (BATTLEMAGE)
[14:50:30] [PASSED] 0xE210 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE211 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE212 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE216 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE220 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE221 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE222 (BATTLEMAGE)
[14:50:30] [PASSED] 0xE223 (BATTLEMAGE)
[14:50:30] [PASSED] 0xB080 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB081 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB082 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB083 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB084 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB085 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB086 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB087 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB08F (PANTHERLAKE)
[14:50:30] [PASSED] 0xB090 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB0A0 (PANTHERLAKE)
[14:50:30] [PASSED] 0xB0B0 (PANTHERLAKE)
[14:50:30] [PASSED] 0xFD80 (PANTHERLAKE)
[14:50:30] [PASSED] 0xFD81 (PANTHERLAKE)
[14:50:30] [PASSED] 0xD740 (NOVALAKE_S)
[14:50:30] [PASSED] 0xD741 (NOVALAKE_S)
[14:50:30] [PASSED] 0xD742 (NOVALAKE_S)
[14:50:30] [PASSED] 0xD743 (NOVALAKE_S)
[14:50:30] [PASSED] 0xD745 (NOVALAKE_S)
[14:50:30] [PASSED] 0xD74A (NOVALAKE_S)
[14:50:30] [PASSED] 0xD74B (NOVALAKE_S)
[14:50:30] [PASSED] 0x674C (CRESCENTISLAND)
[14:50:30] [PASSED] 0x674D (CRESCENTISLAND)
[14:50:30] [PASSED] 0x674E (CRESCENTISLAND)
[14:50:30] [PASSED] 0x674F (CRESCENTISLAND)
[14:50:30] [PASSED] 0x6750 (CRESCENTISLAND)
[14:50:30] [PASSED] 0xD750 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD751 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD752 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD753 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD754 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD755 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD756 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD757 (NOVALAKE_P)
[14:50:30] [PASSED] 0xD75F (NOVALAKE_P)
[14:50:30] =============== [PASSED] check_platform_desc ===============
[14:50:30] ===================== [PASSED] xe_pci ======================
[14:50:30] ============= xe_rtp_tables_test (4 subtests) ==============
[14:50:30] ================== xe_rtp_table_gt_test ===================
[14:50:30] [PASSED] gt_was/14011060649
[14:50:30] [PASSED] gt_was/14011059788
[14:50:30] [PASSED] gt_was/14015795083
[14:50:30] [PASSED] gt_was/16021867713
[14:50:30] [PASSED] gt_was/14019449301
[14:50:30] [PASSED] gt_was/16028005424
[14:50:30] [PASSED] gt_was/14026578760
[14:50:30] [PASSED] gt_was/1409420604
[14:50:30] [PASSED] gt_was/1408615072
[14:50:30] [PASSED] gt_was/22010523718
[14:50:30] [PASSED] gt_was/14011006942
[14:50:30] [PASSED] gt_was/14014830051
[14:50:30] [PASSED] gt_was/18018781329
[14:50:30] [PASSED] gt_was/1509235366
[14:50:30] [PASSED] gt_was/18018781329
[14:50:30] [PASSED] gt_was/16016694945
[14:50:30] [PASSED] gt_was/14018575942
[14:50:30] [PASSED] gt_was/22016670082
[14:50:30] [PASSED] gt_was/22016670082
[14:50:30] [PASSED] gt_was/14017421178
[14:50:30] [PASSED] gt_was/16025250150
[14:50:30] [PASSED] gt_was/14021871409
[14:50:30] [PASSED] gt_was/16021865536
[14:50:30] [PASSED] gt_was/14021486841
[14:50:30] [PASSED] gt_was/14025160223
[14:50:30] [PASSED] gt_was/14026144927, 16029437861
[14:50:30] [PASSED] gt_was/14025635424
[14:50:30] [PASSED] gt_was/16028005424
[14:50:30] ============== [PASSED] xe_rtp_table_gt_test ===============
[14:50:30] ================== xe_rtp_table_gt_test ===================
[14:50:30] [PASSED] gt_tunings/Tuning: Blend Fill Caching Optimization Disable
[14:50:30] [PASSED] gt_tunings/Tuning: 32B Access Enable
[14:50:30] [PASSED] gt_tunings/Tuning: L3 cache
[14:50:30] [PASSED] gt_tunings/Tuning: L3 cache - media
[14:50:30] [PASSED] gt_tunings/Tuning: Compression Overfetch
[14:50:30] [PASSED] gt_tunings/Tuning: Compression Overfetch - media
[14:50:30] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3
[14:50:30] [PASSED] gt_tunings/Tuning: Enable compressible partial write overfetch in L3 - media
[14:50:30] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only
[14:50:30] [PASSED] gt_tunings/Tuning: L2 Overfetch Compressible Only - media
[14:50:30] [PASSED] gt_tunings/Tuning: Stateless compression control
[14:50:30] [PASSED] gt_tunings/Tuning: Stateless compression control - media
[14:50:30] [PASSED] gt_tunings/Tuning: L3 RW flush all Cache
[14:50:30] [PASSED] gt_tunings/Tuning: L3 RW flush all cache - media
[14:50:30] [PASSED] gt_tunings/Tuning: Set STLB Bank Hash Mode to 4KB
[14:50:30] ============== [PASSED] xe_rtp_table_gt_test ===============
[14:50:30] ================== xe_rtp_table_oob_test ==================
[14:50:30] [PASSED] oob_was/1607983814
[14:50:30] [PASSED] oob_was/16010904313
[14:50:30] [PASSED] oob_was/18022495364
[14:50:30] [PASSED] oob_was/22012773006
[14:50:30] [PASSED] oob_was/14014475959
[14:50:30] [PASSED] oob_was/22011391025
[14:50:30] [PASSED] oob_was/22012727170
[14:50:30] [PASSED] oob_was/22012727685
[14:50:30] [PASSED] oob_was/22016596838
[14:50:30] [PASSED] oob_was/18020744125
[14:50:30] [PASSED] oob_was/1409600907
[14:50:30] [PASSED] oob_was/22014953428
[14:50:30] [PASSED] oob_was/16017236439
[14:50:30] [PASSED] oob_was/14019821291
[14:50:30] [PASSED] oob_was/14015076503
[14:50:30] [PASSED] oob_was/14018913170
[14:50:30] [PASSED] oob_was/14018094691
[14:50:30] [PASSED] oob_was/18024947630
[14:50:30] [PASSED] oob_was/16022287689
[14:50:30] [PASSED] oob_was/13011645652
[14:50:30] [PASSED] oob_was/14022293748
[14:50:30] [PASSED] oob_was/22019794406
[14:50:30] [PASSED] oob_was/22019338487
[14:50:30] [PASSED] oob_was/16023588340
[14:50:30] [PASSED] oob_was/14019789679
[14:50:30] [PASSED] oob_was/14022866841
[14:50:30] [PASSED] oob_was/16021333562
[14:50:30] [PASSED] oob_was/14016712196
[14:50:30] [PASSED] oob_was/14015568240
[14:50:30] [PASSED] oob_was/18013179988
[14:50:30] [PASSED] oob_was/1508761755
[14:50:30] [PASSED] oob_was/16023105232
[14:50:30] [PASSED] oob_was/16026508708
[14:50:30] [PASSED] oob_was/14020001231
[14:50:30] [PASSED] oob_was/16023683509
[14:50:30] [PASSED] oob_was/14025515070
[14:50:30] [PASSED] oob_was/15015404425_disable
[14:50:30] [PASSED] oob_was/16026007364
[14:50:30] [PASSED] oob_was/14020316580
[14:50:30] [PASSED] oob_was/14025883347
[14:50:30] ============== [PASSED] xe_rtp_table_oob_test ==============
[14:50:30] ================ xe_rtp_table_dev_oob_test ================
[14:50:30] [PASSED] device_oob_was/22010954014
[14:50:30] [PASSED] device_oob_was/15015404425
[14:50:30] [PASSED] device_oob_was/22019338487_display
[14:50:30] [PASSED] device_oob_was/14022085890
[14:50:30] [PASSED] device_oob_was/14026539277
[14:50:30] [PASSED] device_oob_was/14026633728
[14:50:30] [PASSED] device_oob_was/14026746987
[14:50:30] [PASSED] device_oob_was/14026779378
[14:50:30] ============ [PASSED] xe_rtp_table_dev_oob_test ============
[14:50:30] =============== [PASSED] xe_rtp_tables_test ================
[14:50:30] =================== xe_rtp (3 subtests) ====================
[14:50:30] =================== xe_rtp_rules_tests ====================
[14:50:30] [PASSED] no
[14:50:30] [PASSED] yes
[14:50:30] [PASSED] no-and-no
[14:50:30] [PASSED] no-and-yes
[14:50:30] [PASSED] yes-and-no
[14:50:30] [PASSED] yes-and-yes
[14:50:30] [PASSED] no-or-no
[14:50:30] [PASSED] no-or-yes
[14:50:30] [PASSED] yes-or-no
[14:50:30] [PASSED] yes-or-yes
[14:50:30] [PASSED] no-yes-or-yes-no
[14:50:30] [PASSED] no-yes-or-yes-yes
[14:50:30] [PASSED] yes-yes-or-no-yes
[14:50:30] [PASSED] yes-yes-or-yes-yes
[14:50:30] [PASSED] no-no-or-yes-or-no
[14:50:30] [PASSED] or
[14:50:30] [PASSED] or-yes
[14:50:30] [PASSED] or-no
[14:50:30] [PASSED] yes-or
[14:50:30] [PASSED] no-or
[14:50:31] [PASSED] no-or-or-yes
[14:50:31] [PASSED] yes-or-or-no
[14:50:31] [PASSED] no-or-or-no
[14:50:31] [PASSED] missing-context-engine-class
[14:50:31] [PASSED] missing-context-engine-class-or-yes
[14:50:31] [PASSED] missing-context-engine-class-or-or-yes
[14:50:31] =============== [PASSED] xe_rtp_rules_tests ================
[14:50:31] =============== xe_rtp_process_to_sr_tests ================
[14:50:31] [PASSED] coalesce-same-reg
[14:50:31] [PASSED] no-match-no-add
[14:50:31] [PASSED] two-regs-two-entries
[14:50:31] [PASSED] clr-one-set-other
[14:50:31] [PASSED] set-field
[14:50:31] [PASSED] conflict-duplicate
[14:50:31] [PASSED] conflict-not-disjoint
[14:50:31] [PASSED] conflict-reg-type
[14:50:31] [PASSED] bad-mcr-reg-forced-to-regular
[14:50:31] [PASSED] bad-regular-reg-forced-to-mcr
[14:50:31] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[14:50:31] ================== xe_rtp_process_tests ===================
[14:50:31] [PASSED] active1
[14:50:31] [PASSED] active2
[14:50:31] [PASSED] active-inactive
[14:50:31] [PASSED] inactive-active
[14:50:31] [PASSED] inactive-active-inactive
[14:50:31] [PASSED] inactive-inactive-inactive
[14:50:31] ============== [PASSED] xe_rtp_process_tests ===============
[14:50:31] ===================== [PASSED] xe_rtp ======================
[14:50:31] ==================== xe_wa (1 subtest) =====================
[14:50:31] ======================== xe_wa_gt =========================
[14:50:31] [PASSED] TIGERLAKE B0
[14:50:31] [PASSED] DG1 A0
[14:50:31] [PASSED] DG1 B0
[14:50:31] [PASSED] ALDERLAKE_S A0
[14:50:31] [PASSED] ALDERLAKE_S B0
[14:50:31] [PASSED] ALDERLAKE_S C0
[14:50:31] [PASSED] ALDERLAKE_S D0
[14:50:31] [PASSED] ALDERLAKE_P A0
[14:50:31] [PASSED] ALDERLAKE_P B0
[14:50:31] [PASSED] ALDERLAKE_P C0
[14:50:31] [PASSED] ALDERLAKE_S RPLS D0
[14:50:31] [PASSED] ALDERLAKE_P RPLU E0
[14:50:31] [PASSED] DG2 G10 C0
[14:50:31] [PASSED] DG2 G11 B1
[14:50:31] [PASSED] DG2 G12 A1
[14:50:31] [PASSED] METEORLAKE 12.70(Xe_LPG) A0 13.00(Xe_LPM+) A0
[14:50:31] [PASSED] METEORLAKE 12.71(Xe_LPG) A0 13.00(Xe_LPM+) A0
[14:50:31] [PASSED] METEORLAKE 12.74(Xe_LPG+) A0 13.00(Xe_LPM+) A0
[14:50:31] [PASSED] LUNARLAKE 20.04(Xe2_LPG) A0 20.00(Xe2_LPM) A0
[14:50:31] [PASSED] LUNARLAKE 20.04(Xe2_LPG) B0 20.00(Xe2_LPM) A0
[14:50:31] [PASSED] BATTLEMAGE 20.01(Xe2_HPG) A0 13.01(Xe2_HPM) A1
[14:50:31] [PASSED] PANTHERLAKE 30.00(Xe3_LPG) A0 30.00(Xe3_LPM) A0
[14:50:31] ==================== [PASSED] xe_wa_gt =====================
[14:50:31] ====================== [PASSED] xe_wa ======================
[14:50:31] ============================================================
[14:50:31] Testing complete. Ran 716 tests: passed: 698, skipped: 18
[14:50:31] Elapsed time: 36.237s total, 4.343s configuring, 31.228s building, 0.632s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig
[14:50:31] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:50:32] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
In file included from ../drivers/gpu/drm/tests/drm_bridge_test.c:21:
../drivers/gpu/drm/tests/drm_kunit_edid.h:958:28: warning: ‘test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz’ defined but not used [-Wunused-const-variable=]
958 | static const unsigned char test_edid_hdmi_4k_rgb_yuv420_dc_max_340mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:726:28: warning: ‘test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz’ defined but not used [-Wunused-const-variable=]
726 | static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_340mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:612:28: warning: ‘test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz’ defined but not used [-Wunused-const-variable=]
612 | static const unsigned char test_edid_hdmi_1080p_rgb_yuv_dc_max_200mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:498:28: warning: ‘test_edid_hdmi_1080p_rgb_max_340mhz’ defined but not used [-Wunused-const-variable=]
498 | static const unsigned char test_edid_hdmi_1080p_rgb_max_340mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:390:28: warning: ‘test_edid_hdmi_1080p_rgb_max_200mhz_hdr’ defined but not used [-Wunused-const-variable=]
390 | static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz_hdr[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:271:28: warning: ‘test_edid_hdmi_1080p_rgb_max_200mhz’ defined but not used [-Wunused-const-variable=]
271 | static const unsigned char test_edid_hdmi_1080p_rgb_max_200mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:163:28: warning: ‘test_edid_hdmi_1080p_rgb_max_100mhz’ defined but not used [-Wunused-const-variable=]
163 | static const unsigned char test_edid_hdmi_1080p_rgb_max_100mhz[] = {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../drivers/gpu/drm/tests/drm_kunit_edid.h:57:28: warning: ‘test_edid_dvi_1080p’ defined but not used [-Wunused-const-variable=]
57 | static const unsigned char test_edid_dvi_1080p[] = {
| ^~~~~~~~~~~~~~~~~~~
[14:50:57] Starting KUnit Kernel (1/1)...
[14:50:57] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:50:57] ============ drm_test_pick_cmdline (2 subtests) ============
[14:50:57] [PASSED] drm_test_pick_cmdline_res_1920_1080_60
[14:50:57] =============== drm_test_pick_cmdline_named ===============
[14:50:57] [PASSED] NTSC
[14:50:57] [PASSED] NTSC-J
[14:50:57] [PASSED] PAL
[14:50:57] [PASSED] PAL-M
[14:50:57] =========== [PASSED] drm_test_pick_cmdline_named ===========
[14:50:57] ============== [PASSED] drm_test_pick_cmdline ==============
[14:50:57] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[14:50:57] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[14:50:57] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[14:50:57] =========== drm_validate_clone_mode (2 subtests) ===========
[14:50:57] ============== drm_test_check_in_clone_mode ===============
[14:50:57] [PASSED] in_clone_mode
[14:50:57] [PASSED] not_in_clone_mode
[14:50:57] ========== [PASSED] drm_test_check_in_clone_mode ===========
[14:50:57] =============== drm_test_check_valid_clones ===============
[14:50:57] [PASSED] not_in_clone_mode
[14:50:57] [PASSED] valid_clone
[14:50:57] [PASSED] invalid_clone
[14:50:57] =========== [PASSED] drm_test_check_valid_clones ===========
[14:50:57] ============= [PASSED] drm_validate_clone_mode =============
[14:50:57] ============= drm_validate_modeset (1 subtest) =============
[14:50:57] [PASSED] drm_test_check_connector_changed_modeset
[14:50:57] ============== [PASSED] drm_validate_modeset ===============
[14:50:57] ====== drm_test_bridge_get_current_state (2 subtests) ======
[14:50:57] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[14:50:57] [PASSED] drm_test_drm_bridge_get_current_state_legacy
[14:50:57] ======== [PASSED] drm_test_bridge_get_current_state ========
[14:50:57] ====== drm_test_bridge_helper_reset_crtc (4 subtests) ======
[14:50:57] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[14:50:57] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[14:50:57] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy
[14:50:57] [PASSED] drm_test_drm_bridge_helper_hdmi_output_bus_fmts
[14:50:57] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[14:50:57] ============== drm_bridge_alloc (2 subtests) ===============
[14:50:57] [PASSED] drm_test_drm_bridge_alloc_basic
[14:50:57] [PASSED] drm_test_drm_bridge_alloc_get_put
[14:50:57] ================ [PASSED] drm_bridge_alloc =================
[14:50:57] ============= drm_bridge_bus_fmt (5 subtests) ==============
[14:50:57] [PASSED] drm_test_bridge_rgb_yuv_rgb
[14:50:57] [PASSED] drm_test_bridge_must_convert_to_yuv444
[14:50:57] [PASSED] drm_test_bridge_hdmi_auto_rgb
[14:50:57] [PASSED] drm_test_bridge_auto_first
[14:50:57] [PASSED] drm_test_bridge_rgb_yuv_no_path
[14:50:57] =============== [PASSED] drm_bridge_bus_fmt ================
[14:50:57] ============= drm_cmdline_parser (40 subtests) =============
[14:50:57] [PASSED] drm_test_cmdline_force_d_only
[14:50:57] [PASSED] drm_test_cmdline_force_D_only_dvi
[14:50:57] [PASSED] drm_test_cmdline_force_D_only_hdmi
[14:50:57] [PASSED] drm_test_cmdline_force_D_only_not_digital
[14:50:57] [PASSED] drm_test_cmdline_force_e_only
[14:50:57] [PASSED] drm_test_cmdline_res
[14:50:57] [PASSED] drm_test_cmdline_res_vesa
[14:50:57] [PASSED] drm_test_cmdline_res_vesa_rblank
[14:50:57] [PASSED] drm_test_cmdline_res_rblank
[14:50:57] [PASSED] drm_test_cmdline_res_bpp
[14:50:57] [PASSED] drm_test_cmdline_res_refresh
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[14:50:57] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[14:50:57] [PASSED] drm_test_cmdline_res_margins_force_on
[14:50:57] [PASSED] drm_test_cmdline_res_vesa_margins
[14:50:57] [PASSED] drm_test_cmdline_name
[14:50:57] [PASSED] drm_test_cmdline_name_bpp
[14:50:57] [PASSED] drm_test_cmdline_name_option
[14:50:57] [PASSED] drm_test_cmdline_name_bpp_option
[14:50:57] [PASSED] drm_test_cmdline_rotate_0
[14:50:57] [PASSED] drm_test_cmdline_rotate_90
[14:50:57] [PASSED] drm_test_cmdline_rotate_180
[14:50:57] [PASSED] drm_test_cmdline_rotate_270
[14:50:57] [PASSED] drm_test_cmdline_hmirror
[14:50:57] [PASSED] drm_test_cmdline_vmirror
[14:50:57] [PASSED] drm_test_cmdline_margin_options
[14:50:57] [PASSED] drm_test_cmdline_multiple_options
[14:50:57] [PASSED] drm_test_cmdline_bpp_extra_and_option
[14:50:57] [PASSED] drm_test_cmdline_extra_and_option
[14:50:57] [PASSED] drm_test_cmdline_freestanding_options
[14:50:57] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[14:50:57] [PASSED] drm_test_cmdline_panel_orientation
[14:50:57] ================ drm_test_cmdline_invalid =================
[14:50:57] [PASSED] margin_only
[14:50:57] [PASSED] interlace_only
[14:50:57] [PASSED] res_missing_x
[14:50:57] [PASSED] res_missing_y
[14:50:57] [PASSED] res_bad_y
[14:50:57] [PASSED] res_missing_y_bpp
[14:50:57] [PASSED] res_bad_bpp
[14:50:57] [PASSED] res_bad_refresh
[14:50:57] [PASSED] res_bpp_refresh_force_on_off
[14:50:57] [PASSED] res_invalid_mode
[14:50:57] [PASSED] res_bpp_wrong_place_mode
[14:50:57] [PASSED] name_bpp_refresh
[14:50:57] [PASSED] name_refresh
[14:50:57] [PASSED] name_refresh_wrong_mode
[14:50:57] [PASSED] name_refresh_invalid_mode
[14:50:57] [PASSED] rotate_multiple
[14:50:57] [PASSED] rotate_invalid_val
[14:50:57] [PASSED] rotate_truncated
[14:50:57] [PASSED] invalid_option
[14:50:57] [PASSED] invalid_tv_option
[14:50:57] [PASSED] truncated_tv_option
[14:50:57] ============ [PASSED] drm_test_cmdline_invalid =============
[14:50:57] =============== drm_test_cmdline_tv_options ===============
[14:50:57] [PASSED] NTSC
[14:50:57] [PASSED] NTSC_443
[14:50:57] [PASSED] NTSC_J
[14:50:57] [PASSED] PAL
[14:50:57] [PASSED] PAL_M
[14:50:57] [PASSED] PAL_N
[14:50:57] [PASSED] SECAM
[14:50:57] [PASSED] MONO_525
[14:50:57] [PASSED] MONO_625
[14:50:57] =========== [PASSED] drm_test_cmdline_tv_options ===========
[14:50:57] =============== [PASSED] drm_cmdline_parser ================
[14:50:57] ========== drmm_connector_hdmi_init (20 subtests) ==========
[14:50:57] [PASSED] drm_test_connector_hdmi_init_valid
[14:50:57] [PASSED] drm_test_connector_hdmi_init_bpc_8
[14:50:57] [PASSED] drm_test_connector_hdmi_init_bpc_10
[14:50:57] [PASSED] drm_test_connector_hdmi_init_bpc_12
[14:50:57] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[14:50:57] [PASSED] drm_test_connector_hdmi_init_bpc_null
[14:50:57] [PASSED] drm_test_connector_hdmi_init_formats_empty
[14:50:57] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[14:50:57] === drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[14:50:57] [PASSED] supported_formats=0x9 yuv420_allowed=1
[14:50:57] [PASSED] supported_formats=0x9 yuv420_allowed=0
[14:50:57] [PASSED] supported_formats=0x5 yuv420_allowed=1
[14:50:57] [PASSED] supported_formats=0x5 yuv420_allowed=0
[14:50:57] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[14:50:57] [PASSED] drm_test_connector_hdmi_init_null_ddc
[14:50:57] [PASSED] drm_test_connector_hdmi_init_null_product
[14:50:57] [PASSED] drm_test_connector_hdmi_init_null_vendor
[14:50:57] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[14:50:57] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[14:50:57] [PASSED] drm_test_connector_hdmi_init_product_valid
[14:50:57] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[14:50:57] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[14:50:57] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[14:50:57] ========= drm_test_connector_hdmi_init_type_valid =========
[14:50:57] [PASSED] HDMI-A
[14:50:57] [PASSED] HDMI-B
[14:50:57] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[14:50:57] ======== drm_test_connector_hdmi_init_type_invalid ========
[14:50:57] [PASSED] Unknown
[14:50:57] [PASSED] VGA
[14:50:57] [PASSED] DVI-I
[14:50:57] [PASSED] DVI-D
[14:50:57] [PASSED] DVI-A
[14:50:57] [PASSED] Composite
[14:50:57] [PASSED] SVIDEO
[14:50:57] [PASSED] LVDS
[14:50:57] [PASSED] Component
[14:50:57] [PASSED] DIN
[14:50:57] [PASSED] DP
[14:50:57] [PASSED] TV
[14:50:57] [PASSED] eDP
[14:50:57] [PASSED] Virtual
[14:50:57] [PASSED] DSI
[14:50:57] [PASSED] DPI
[14:50:57] [PASSED] Writeback
[14:50:57] [PASSED] SPI
[14:50:57] [PASSED] USB
[14:50:57] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[14:50:57] ============ [PASSED] drmm_connector_hdmi_init =============
[14:50:57] ============= drmm_connector_init (3 subtests) =============
[14:50:57] [PASSED] drm_test_drmm_connector_init
[14:50:57] [PASSED] drm_test_drmm_connector_init_null_ddc
[14:50:57] ========= drm_test_drmm_connector_init_type_valid =========
[14:50:57] [PASSED] Unknown
[14:50:57] [PASSED] VGA
[14:50:57] [PASSED] DVI-I
[14:50:57] [PASSED] DVI-D
[14:50:57] [PASSED] DVI-A
[14:50:57] [PASSED] Composite
[14:50:57] [PASSED] SVIDEO
[14:50:57] [PASSED] LVDS
[14:50:57] [PASSED] Component
[14:50:57] [PASSED] DIN
[14:50:57] [PASSED] DP
[14:50:57] [PASSED] HDMI-A
[14:50:57] [PASSED] HDMI-B
[14:50:57] [PASSED] TV
[14:50:57] [PASSED] eDP
[14:50:57] [PASSED] Virtual
[14:50:57] [PASSED] DSI
[14:50:57] [PASSED] DPI
[14:50:57] [PASSED] Writeback
[14:50:57] [PASSED] SPI
[14:50:57] [PASSED] USB
[14:50:57] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[14:50:57] =============== [PASSED] drmm_connector_init ===============
[14:50:57] ========= drm_connector_dynamic_init (6 subtests) ==========
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_init
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_init_properties
[14:50:57] ===== drm_test_drm_connector_dynamic_init_type_valid ======
[14:50:57] [PASSED] Unknown
[14:50:57] [PASSED] VGA
[14:50:57] [PASSED] DVI-I
[14:50:57] [PASSED] DVI-D
[14:50:57] [PASSED] DVI-A
[14:50:57] [PASSED] Composite
[14:50:57] [PASSED] SVIDEO
[14:50:57] [PASSED] LVDS
[14:50:57] [PASSED] Component
[14:50:57] [PASSED] DIN
[14:50:57] [PASSED] DP
[14:50:57] [PASSED] HDMI-A
[14:50:57] [PASSED] HDMI-B
[14:50:57] [PASSED] TV
[14:50:57] [PASSED] eDP
[14:50:57] [PASSED] Virtual
[14:50:57] [PASSED] DSI
[14:50:57] [PASSED] DPI
[14:50:57] [PASSED] Writeback
[14:50:57] [PASSED] SPI
[14:50:57] [PASSED] USB
[14:50:57] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[14:50:57] ======== drm_test_drm_connector_dynamic_init_name =========
[14:50:57] [PASSED] Unknown
[14:50:57] [PASSED] VGA
[14:50:57] [PASSED] DVI-I
[14:50:57] [PASSED] DVI-D
[14:50:57] [PASSED] DVI-A
[14:50:57] [PASSED] Composite
[14:50:57] [PASSED] SVIDEO
[14:50:57] [PASSED] LVDS
[14:50:57] [PASSED] Component
[14:50:57] [PASSED] DIN
[14:50:57] [PASSED] DP
[14:50:57] [PASSED] HDMI-A
[14:50:57] [PASSED] HDMI-B
[14:50:57] [PASSED] TV
[14:50:57] [PASSED] eDP
[14:50:57] [PASSED] Virtual
[14:50:57] [PASSED] DSI
[14:50:57] [PASSED] DPI
[14:50:57] [PASSED] Writeback
[14:50:57] [PASSED] SPI
[14:50:57] [PASSED] USB
[14:50:57] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[14:50:57] =========== [PASSED] drm_connector_dynamic_init ============
[14:50:57] ==== drm_connector_dynamic_register_early (4 subtests) =====
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[14:50:57] ====== [PASSED] drm_connector_dynamic_register_early =======
[14:50:57] ======= drm_connector_dynamic_register (7 subtests) ========
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[14:50:57] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[14:50:57] ========= [PASSED] drm_connector_dynamic_register ==========
[14:50:57] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[14:50:57] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[14:50:57] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[14:50:57] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[14:50:57] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[14:50:57] ========== drm_test_get_tv_mode_from_name_valid ===========
[14:50:57] [PASSED] NTSC
[14:50:57] [PASSED] NTSC-443
[14:50:57] [PASSED] NTSC-J
[14:50:57] [PASSED] PAL
[14:50:57] [PASSED] PAL-M
[14:50:57] [PASSED] PAL-N
[14:50:57] [PASSED] SECAM
[14:50:57] [PASSED] Mono
[14:50:57] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[14:50:57] [PASSED] drm_test_get_tv_mode_from_name_truncated
[14:50:57] ============ [PASSED] drm_get_tv_mode_from_name ============
[14:50:57] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[14:50:57] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[14:50:57] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[14:50:57] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[14:50:57] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[14:50:57] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[14:50:57] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[14:50:57] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid =
[14:50:57] [PASSED] VIC 96
[14:50:57] [PASSED] VIC 97
[14:50:57] [PASSED] VIC 101
[14:50:57] [PASSED] VIC 102
[14:50:57] [PASSED] VIC 106
[14:50:57] [PASSED] VIC 107
[14:50:57] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[14:50:57] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[14:50:57] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[14:50:57] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[14:50:57] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[14:50:57] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[14:50:57] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[14:50:57] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[14:50:57] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name ====
[14:50:57] [PASSED] Automatic
[14:50:57] [PASSED] Full
[14:50:57] [PASSED] Limited 16:235
[14:50:57] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[14:50:57] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[14:50:57] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[14:50:57] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[14:50:57] === drm_test_drm_hdmi_connector_get_output_format_name ====
[14:50:57] [PASSED] RGB
[14:50:57] [PASSED] YUV 4:2:0
[14:50:57] [PASSED] YUV 4:2:2
[14:50:57] [PASSED] YUV 4:4:4
[14:50:57] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[14:50:57] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[14:50:57] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[14:50:57] ============= drm_damage_helper (21 subtests) ==============
[14:50:57] [PASSED] drm_test_damage_iter_no_damage
[14:50:57] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[14:50:57] [PASSED] drm_test_damage_iter_no_damage_src_moved
[14:50:57] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[14:50:57] [PASSED] drm_test_damage_iter_no_damage_not_visible
[14:50:57] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[14:50:57] [PASSED] drm_test_damage_iter_no_damage_no_fb
[14:50:57] [PASSED] drm_test_damage_iter_simple_damage
[14:50:57] [PASSED] drm_test_damage_iter_single_damage
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_outside_src
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_src_moved
[14:50:57] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[14:50:57] [PASSED] drm_test_damage_iter_damage
[14:50:57] [PASSED] drm_test_damage_iter_damage_one_intersect
[14:50:57] [PASSED] drm_test_damage_iter_damage_one_outside
[14:50:57] [PASSED] drm_test_damage_iter_damage_src_moved
[14:50:57] [PASSED] drm_test_damage_iter_damage_not_visible
[14:50:57] ================ [PASSED] drm_damage_helper ================
[14:50:57] ============== drm_dp_mst_helper (3 subtests) ==============
[14:50:57] ============== drm_test_dp_mst_calc_pbn_mode ==============
[14:50:57] [PASSED] Clock 154000 BPP 30 DSC disabled
[14:50:57] [PASSED] Clock 234000 BPP 30 DSC disabled
[14:50:57] [PASSED] Clock 297000 BPP 24 DSC disabled
[14:50:57] [PASSED] Clock 332880 BPP 24 DSC enabled
[14:50:57] [PASSED] Clock 324540 BPP 24 DSC enabled
[14:50:57] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[14:50:57] ============== drm_test_dp_mst_calc_pbn_div ===============
[14:50:57] [PASSED] Link rate 2000000 lane count 4
[14:50:57] [PASSED] Link rate 2000000 lane count 2
[14:50:57] [PASSED] Link rate 2000000 lane count 1
[14:50:57] [PASSED] Link rate 1350000 lane count 4
[14:50:57] [PASSED] Link rate 1350000 lane count 2
[14:50:57] [PASSED] Link rate 1350000 lane count 1
[14:50:57] [PASSED] Link rate 1000000 lane count 4
[14:50:57] [PASSED] Link rate 1000000 lane count 2
[14:50:57] [PASSED] Link rate 1000000 lane count 1
[14:50:57] [PASSED] Link rate 810000 lane count 4
[14:50:57] [PASSED] Link rate 810000 lane count 2
[14:50:57] [PASSED] Link rate 810000 lane count 1
[14:50:57] [PASSED] Link rate 540000 lane count 4
[14:50:57] [PASSED] Link rate 540000 lane count 2
[14:50:57] [PASSED] Link rate 540000 lane count 1
[14:50:57] [PASSED] Link rate 270000 lane count 4
[14:50:57] [PASSED] Link rate 270000 lane count 2
[14:50:57] [PASSED] Link rate 270000 lane count 1
[14:50:57] [PASSED] Link rate 162000 lane count 4
[14:50:57] [PASSED] Link rate 162000 lane count 2
[14:50:57] [PASSED] Link rate 162000 lane count 1
[14:50:57] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[14:50:57] ========= drm_test_dp_mst_sideband_msg_req_decode =========
[14:50:57] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[14:50:57] [PASSED] DP_POWER_UP_PHY with port number
[14:50:57] [PASSED] DP_POWER_DOWN_PHY with port number
[14:50:57] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[14:50:57] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[14:50:57] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[14:50:57] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[14:50:57] [PASSED] DP_QUERY_PAYLOAD with port number
[14:50:57] [PASSED] DP_QUERY_PAYLOAD with VCPI
[14:50:57] [PASSED] DP_REMOTE_DPCD_READ with port number
[14:50:57] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[14:50:57] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[14:50:57] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[14:50:57] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[14:50:57] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[14:50:57] [PASSED] DP_REMOTE_I2C_READ with port number
[14:50:57] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[14:50:57] [PASSED] DP_REMOTE_I2C_READ with transactions array
[14:50:57] [PASSED] DP_REMOTE_I2C_WRITE with port number
[14:50:57] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[14:50:57] [PASSED] DP_REMOTE_I2C_WRITE with data array
[14:50:57] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[14:50:57] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[14:50:57] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[14:50:57] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[14:50:57] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[14:50:57] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[14:50:57] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[14:50:57] ================ [PASSED] drm_dp_mst_helper ================
[14:50:57] ================== drm_exec (7 subtests) ===================
[14:50:57] [PASSED] sanitycheck
[14:50:57] [PASSED] test_lock
[14:50:57] [PASSED] test_lock_unlock
[14:50:57] [PASSED] test_duplicates
[14:50:57] [PASSED] test_prepare
[14:50:57] [PASSED] test_prepare_array
[14:50:57] [PASSED] test_multiple_loops
[14:50:57] ==================== [PASSED] drm_exec =====================
[14:50:57] =========== drm_format_helper_test (17 subtests) ===========
[14:50:57] ============== drm_test_fb_xrgb8888_to_gray8 ==============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[14:50:57] ============= drm_test_fb_xrgb8888_to_rgb332 ==============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[14:50:57] ============= drm_test_fb_xrgb8888_to_rgb565 ==============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[14:50:57] ============ drm_test_fb_xrgb8888_to_xrgb1555 =============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[14:50:57] ============ drm_test_fb_xrgb8888_to_argb1555 =============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[14:50:57] ============ drm_test_fb_xrgb8888_to_rgba5551 =============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[14:50:57] ============= drm_test_fb_xrgb8888_to_rgb888 ==============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[14:50:57] ============= drm_test_fb_xrgb8888_to_bgr888 ==============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[14:50:57] ============ drm_test_fb_xrgb8888_to_argb8888 =============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[14:50:57] =========== drm_test_fb_xrgb8888_to_xrgb2101010 ===========
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[14:50:57] =========== drm_test_fb_xrgb8888_to_argb2101010 ===========
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[14:50:57] ============== drm_test_fb_xrgb8888_to_mono ===============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[14:50:57] ==================== drm_test_fb_swab =====================
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ================ [PASSED] drm_test_fb_swab =================
[14:50:57] ============ drm_test_fb_xrgb8888_to_xbgr8888 =============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[14:50:57] ============ drm_test_fb_xrgb8888_to_abgr8888 =============
[14:50:57] [PASSED] single_pixel_source_buffer
[14:50:57] [PASSED] single_pixel_clip_rectangle
[14:50:57] [PASSED] well_known_colors
[14:50:57] [PASSED] destination_pitch
[14:50:57] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[14:50:57] ================= drm_test_fb_clip_offset =================
[14:50:57] [PASSED] pass through
[14:50:57] [PASSED] horizontal offset
[14:50:57] [PASSED] vertical offset
[14:50:57] [PASSED] horizontal and vertical offset
[14:50:57] [PASSED] horizontal offset (custom pitch)
[14:50:57] [PASSED] vertical offset (custom pitch)
[14:50:57] [PASSED] horizontal and vertical offset (custom pitch)
[14:50:57] ============= [PASSED] drm_test_fb_clip_offset =============
[14:50:57] =================== drm_test_fb_memcpy ====================
[14:50:57] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[14:50:57] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[14:50:57] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[14:50:57] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[14:50:57] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[14:50:57] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[14:50:57] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[14:50:57] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[14:50:57] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[14:50:57] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[14:50:57] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[14:50:57] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[14:50:57] =============== [PASSED] drm_test_fb_memcpy ================
[14:50:57] ============= [PASSED] drm_format_helper_test ==============
[14:50:57] ================= drm_format (18 subtests) =================
[14:50:57] [PASSED] drm_test_format_block_width_invalid
[14:50:57] [PASSED] drm_test_format_block_width_one_plane
[14:50:57] [PASSED] drm_test_format_block_width_two_plane
[14:50:57] [PASSED] drm_test_format_block_width_three_plane
[14:50:57] [PASSED] drm_test_format_block_width_tiled
[14:50:57] [PASSED] drm_test_format_block_height_invalid
[14:50:57] [PASSED] drm_test_format_block_height_one_plane
[14:50:57] [PASSED] drm_test_format_block_height_two_plane
[14:50:57] [PASSED] drm_test_format_block_height_three_plane
[14:50:57] [PASSED] drm_test_format_block_height_tiled
[14:50:57] [PASSED] drm_test_format_min_pitch_invalid
[14:50:57] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[14:50:57] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[14:50:57] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[14:50:57] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[14:50:57] [PASSED] drm_test_format_min_pitch_two_plane
[14:50:57] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[14:50:57] [PASSED] drm_test_format_min_pitch_tiled
[14:50:57] =================== [PASSED] drm_format ====================
[14:50:57] ============== drm_framebuffer (10 subtests) ===============
[14:50:57] ========== drm_test_framebuffer_check_src_coords ==========
[14:50:57] [PASSED] Success: source fits into fb
[14:50:57] [PASSED] Fail: overflowing fb with x-axis coordinate
[14:50:57] [PASSED] Fail: overflowing fb with y-axis coordinate
[14:50:57] [PASSED] Fail: overflowing fb with source width
[14:50:57] [PASSED] Fail: overflowing fb with source height
[14:50:57] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[14:50:57] [PASSED] drm_test_framebuffer_cleanup
[14:50:57] =============== drm_test_framebuffer_create ===============
[14:50:57] [PASSED] ABGR8888 normal sizes
[14:50:57] [PASSED] ABGR8888 max sizes
[14:50:57] [PASSED] ABGR8888 pitch greater than min required
[14:50:57] [PASSED] ABGR8888 pitch less than min required
[14:50:57] [PASSED] ABGR8888 Invalid width
[14:50:57] [PASSED] ABGR8888 Invalid buffer handle
[14:50:57] [PASSED] No pixel format
[14:50:57] [PASSED] ABGR8888 Width 0
[14:50:57] [PASSED] ABGR8888 Height 0
[14:50:57] [PASSED] ABGR8888 Out of bound height * pitch combination
[14:50:57] [PASSED] ABGR8888 Large buffer offset
[14:50:57] [PASSED] ABGR8888 Buffer offset for inexistent plane
[14:50:57] [PASSED] ABGR8888 Invalid flag
[14:50:57] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[14:50:57] [PASSED] ABGR8888 Valid buffer modifier
[14:50:57] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[14:50:57] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] NV12 Normal sizes
[14:50:57] [PASSED] NV12 Max sizes
[14:50:57] [PASSED] NV12 Invalid pitch
[14:50:57] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[14:50:57] [PASSED] NV12 different modifier per-plane
[14:50:57] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[14:50:57] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] NV12 Modifier for inexistent plane
[14:50:57] [PASSED] NV12 Handle for inexistent plane
[14:50:57] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[14:50:57] [PASSED] YVU420 Normal sizes
[14:50:57] [PASSED] YVU420 Max sizes
[14:50:57] [PASSED] YVU420 Invalid pitch
[14:50:57] [PASSED] YVU420 Different pitches
[14:50:57] [PASSED] YVU420 Different buffer offsets/pitches
[14:50:57] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[14:50:57] [PASSED] YVU420 Valid modifier
[14:50:57] [PASSED] YVU420 Different modifiers per plane
[14:50:57] [PASSED] YVU420 Modifier for inexistent plane
[14:50:57] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[14:50:57] [PASSED] X0L2 Normal sizes
[14:50:57] [PASSED] X0L2 Max sizes
[14:50:57] [PASSED] X0L2 Invalid pitch
[14:50:57] [PASSED] X0L2 Pitch greater than minimum required
[14:50:57] [PASSED] X0L2 Handle for inexistent plane
[14:50:57] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[14:50:57] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[14:50:57] [PASSED] X0L2 Valid modifier
[14:50:57] [PASSED] X0L2 Modifier for inexistent plane
[14:50:57] =========== [PASSED] drm_test_framebuffer_create ===========
[14:50:57] [PASSED] drm_test_framebuffer_free
[14:50:57] [PASSED] drm_test_framebuffer_init
[14:50:57] [PASSED] drm_test_framebuffer_init_bad_format
[14:50:57] [PASSED] drm_test_framebuffer_init_dev_mismatch
[14:50:57] [PASSED] drm_test_framebuffer_lookup
[14:50:57] [PASSED] drm_test_framebuffer_lookup_inexistent
[14:50:57] [PASSED] drm_test_framebuffer_modifiers_not_supported
[14:50:57] ================= [PASSED] drm_framebuffer =================
[14:50:57] ================ drm_gem_shmem (8 subtests) ================
[14:50:57] [PASSED] drm_gem_shmem_test_obj_create
[14:50:57] [PASSED] drm_gem_shmem_test_obj_create_private
[14:50:57] [PASSED] drm_gem_shmem_test_pin_pages
[14:50:57] [PASSED] drm_gem_shmem_test_vmap
[14:50:57] [PASSED] drm_gem_shmem_test_get_sg_table
[14:50:57] [PASSED] drm_gem_shmem_test_get_pages_sgt
[14:50:57] [PASSED] drm_gem_shmem_test_madvise
[14:50:57] [PASSED] drm_gem_shmem_test_purge
[14:50:57] ================== [PASSED] drm_gem_shmem ==================
[14:50:57] === drm_atomic_helper_connector_hdmi_check (29 subtests) ===
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[14:50:57] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420 =======
[14:50:57] [PASSED] Automatic
[14:50:57] [PASSED] Full
[14:50:57] [PASSED] Limited 16:235
[14:50:57] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[14:50:57] [PASSED] drm_test_check_disable_connector
[14:50:57] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[14:50:57] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[14:50:57] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[14:50:57] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[14:50:57] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[14:50:57] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[14:50:57] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[14:50:57] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[14:50:57] [PASSED] drm_test_check_output_bpc_dvi
[14:50:57] [PASSED] drm_test_check_output_bpc_format_vic_1
[14:50:57] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[14:50:57] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[14:50:57] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[14:50:57] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[14:50:57] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[14:50:57] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[14:50:57] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[14:50:57] ============ drm_test_check_hdmi_color_format =============
[14:50:57] [PASSED] AUTO -> RGB
[14:50:57] [PASSED] YCBCR422 -> YUV422
[14:50:57] [PASSED] YCBCR420 -> YUV420
[14:50:57] [PASSED] YCBCR444 -> YUV444
[14:50:57] [PASSED] RGB -> RGB
[14:50:57] ======== [PASSED] drm_test_check_hdmi_color_format =========
[14:50:57] ======== drm_test_check_hdmi_color_format_420_only ========
[14:50:57] [PASSED] RGB should fail
[14:50:57] [PASSED] YUV444 should fail
[14:50:57] [PASSED] YUV422 should fail
[14:50:57] [PASSED] YUV420 should work
[14:50:57] ==== [PASSED] drm_test_check_hdmi_color_format_420_only ====
[14:50:57] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[14:50:57] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[14:50:57] [PASSED] drm_test_check_broadcast_rgb_value
[14:50:57] [PASSED] drm_test_check_bpc_8_value
[14:50:57] [PASSED] drm_test_check_bpc_10_value
[14:50:57] [PASSED] drm_test_check_bpc_12_value
[14:50:57] [PASSED] drm_test_check_format_value
[14:50:57] [PASSED] drm_test_check_tmds_char_value
[14:50:57] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[14:50:57] = drm_atomic_helper_connector_hdmi_mode_valid (7 subtests) =
[14:50:57] [PASSED] drm_test_check_mode_valid
[14:50:57] [PASSED] drm_test_check_mode_valid_reject
[14:50:57] [PASSED] drm_test_check_mode_valid_reject_rate
[14:50:57] [PASSED] drm_test_check_mode_valid_reject_max_clock
[14:50:57] [PASSED] drm_test_check_mode_valid_yuv420_only_max_clock
[14:50:57] [PASSED] drm_test_check_mode_valid_reject_yuv420_only_connector
[14:50:57] [PASSED] drm_test_check_mode_valid_accept_yuv420_also_connector_rgb
[14:50:57] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[14:50:57] = drm_atomic_helper_connector_hdmi_infoframes (5 subtests) =
[14:50:57] [PASSED] drm_test_check_infoframes
[14:50:57] [PASSED] drm_test_check_reject_avi_infoframe
[14:50:57] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_8
[14:50:57] [PASSED] drm_test_check_reject_hdr_infoframe_bpc_10
[14:50:57] [PASSED] drm_test_check_reject_audio_infoframe
[14:50:57] === [PASSED] drm_atomic_helper_connector_hdmi_infoframes ===
[14:50:57] ================= drm_managed (2 subtests) =================
[14:50:57] [PASSED] drm_test_managed_release_action
[14:50:57] [PASSED] drm_test_managed_run_action
[14:50:57] =================== [PASSED] drm_managed ===================
[14:50:57] =================== drm_mm (6 subtests) ====================
[14:50:57] [PASSED] drm_test_mm_init
[14:50:57] [PASSED] drm_test_mm_debug
[14:50:57] [PASSED] drm_test_mm_align32
[14:50:57] [PASSED] drm_test_mm_align64
[14:50:57] [PASSED] drm_test_mm_lowest
[14:50:57] [PASSED] drm_test_mm_highest
[14:50:57] ===================== [PASSED] drm_mm ======================
[14:50:57] ============= drm_modes_analog_tv (5 subtests) =============
[14:50:57] [PASSED] drm_test_modes_analog_tv_mono_576i
[14:50:57] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[14:50:57] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[14:50:57] [PASSED] drm_test_modes_analog_tv_pal_576i
[14:50:57] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[14:50:57] =============== [PASSED] drm_modes_analog_tv ===============
[14:50:57] ============== drm_plane_helper (2 subtests) ===============
[14:50:57] =============== drm_test_check_plane_state ================
[14:50:57] [PASSED] clipping_simple
[14:50:57] [PASSED] clipping_rotate_reflect
[14:50:57] [PASSED] positioning_simple
[14:50:57] [PASSED] upscaling
[14:50:57] [PASSED] downscaling
[14:50:57] [PASSED] rounding1
[14:50:57] [PASSED] rounding2
[14:50:57] [PASSED] rounding3
[14:50:57] [PASSED] rounding4
[14:50:57] =========== [PASSED] drm_test_check_plane_state ============
[14:50:57] =========== drm_test_check_invalid_plane_state ============
[14:50:57] [PASSED] positioning_invalid
[14:50:57] [PASSED] upscaling_invalid
[14:50:57] [PASSED] downscaling_invalid
[14:50:57] ======= [PASSED] drm_test_check_invalid_plane_state ========
[14:50:57] ================ [PASSED] drm_plane_helper =================
[14:50:57] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[14:50:57] ====== drm_test_connector_helper_tv_get_modes_check =======
[14:50:57] [PASSED] None
[14:50:57] [PASSED] PAL
[14:50:57] [PASSED] NTSC
[14:50:57] [PASSED] Both, NTSC Default
[14:50:57] [PASSED] Both, PAL Default
[14:50:57] [PASSED] Both, NTSC Default, with PAL on command-line
[14:50:57] [PASSED] Both, PAL Default, with NTSC on command-line
[14:50:57] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[14:50:57] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[14:50:57] ================== drm_rect (9 subtests) ===================
[14:50:57] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[14:50:57] [PASSED] drm_test_rect_clip_scaled_not_clipped
[14:50:57] [PASSED] drm_test_rect_clip_scaled_clipped
[14:50:57] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[14:50:57] ================= drm_test_rect_intersect =================
[14:50:57] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[14:50:57] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[14:50:57] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[14:50:57] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[14:50:57] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[14:50:57] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[14:50:57] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[14:50:57] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[14:50:57] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[14:50:57] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[14:50:57] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[14:50:57] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[14:50:57] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[14:50:57] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[14:50:57] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[14:50:57] ============= [PASSED] drm_test_rect_intersect =============
[14:50:57] ================ drm_test_rect_calc_hscale ================
[14:50:57] [PASSED] normal use
[14:50:57] [PASSED] out of max range
[14:50:57] [PASSED] out of min range
[14:50:57] [PASSED] zero dst
[14:50:57] [PASSED] negative src
[14:50:57] [PASSED] negative dst
[14:50:57] ============ [PASSED] drm_test_rect_calc_hscale ============
[14:50:57] ================ drm_test_rect_calc_vscale ================
[14:50:57] [PASSED] normal use
[14:50:57] [PASSED] out of max range
[14:50:57] [PASSED] out of min range
[14:50:57] [PASSED] zero dst
[14:50:57] [PASSED] negative src
[14:50:57] [PASSED] negative dst
[14:50:57] ============ [PASSED] drm_test_rect_calc_vscale ============
[14:50:57] ================== drm_test_rect_rotate ===================
[14:50:57] [PASSED] reflect-x
[14:50:57] [PASSED] reflect-y
[14:50:57] [PASSED] rotate-0
[14:50:57] [PASSED] rotate-90
[14:50:57] [PASSED] rotate-180
[14:50:57] [PASSED] rotate-270
[14:50:57] ============== [PASSED] drm_test_rect_rotate ===============
[14:50:57] ================ drm_test_rect_rotate_inv =================
[14:50:57] [PASSED] reflect-x
[14:50:57] [PASSED] reflect-y
[14:50:57] [PASSED] rotate-0
[14:50:57] [PASSED] rotate-90
[14:50:57] [PASSED] rotate-180
[14:50:57] [PASSED] rotate-270
[14:50:57] ============ [PASSED] drm_test_rect_rotate_inv =============
[14:50:57] ==================== [PASSED] drm_rect =====================
[14:50:57] ============ drm_sysfb_modeset_test (1 subtest) ============
[14:50:57] ============ drm_test_sysfb_build_fourcc_list =============
[14:50:57] [PASSED] no native formats
[14:50:57] [PASSED] XRGB8888 as native format
[14:50:57] [PASSED] remove duplicates
[14:50:57] [PASSED] convert alpha formats
[14:50:57] [PASSED] random formats
[14:50:57] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[14:50:57] ============= [PASSED] drm_sysfb_modeset_test ==============
[14:50:57] ================== drm_fixp (2 subtests) ===================
[14:50:57] [PASSED] drm_test_int2fixp
[14:50:57] [PASSED] drm_test_sm2fixp
[14:50:57] ==================== [PASSED] drm_fixp =====================
[14:50:57] ============================================================
[14:50:57] Testing complete. Ran 639 tests: passed: 639
[14:50:57] Elapsed time: 26.227s total, 1.741s configuring, 24.318s building, 0.151s running
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig
[14:50:57] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
[14:50:59] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=48
[14:51:08] Starting KUnit Kernel (1/1)...
[14:51:08] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[14:51:08] ================= ttm_device (5 subtests) ==================
[14:51:08] [PASSED] ttm_device_init_basic
[14:51:08] [PASSED] ttm_device_init_multiple
[14:51:08] [PASSED] ttm_device_fini_basic
[14:51:08] [PASSED] ttm_device_init_no_vma_man
[14:51:08] ================== ttm_device_init_pools ==================
[14:51:08] [PASSED] No DMA allocations, no DMA32 required
[14:51:08] [PASSED] DMA allocations, DMA32 required
[14:51:08] [PASSED] No DMA allocations, DMA32 required
[14:51:08] [PASSED] DMA allocations, no DMA32 required
[14:51:08] ============== [PASSED] ttm_device_init_pools ==============
[14:51:08] =================== [PASSED] ttm_device ====================
[14:51:08] ================== ttm_pool (8 subtests) ===================
[14:51:08] ================== ttm_pool_alloc_basic ===================
[14:51:08] [PASSED] One page
[14:51:08] [PASSED] More than one page
[14:51:08] [PASSED] Above the allocation limit
[14:51:08] [PASSED] One page, with coherent DMA mappings enabled
[14:51:08] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[14:51:08] ============== [PASSED] ttm_pool_alloc_basic ===============
[14:51:08] ============== ttm_pool_alloc_basic_dma_addr ==============
[14:51:08] [PASSED] One page
[14:51:08] [PASSED] More than one page
[14:51:08] [PASSED] Above the allocation limit
[14:51:08] [PASSED] One page, with coherent DMA mappings enabled
[14:51:08] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[14:51:08] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[14:51:08] [PASSED] ttm_pool_alloc_order_caching_match
[14:51:08] [PASSED] ttm_pool_alloc_caching_mismatch
[14:51:08] [PASSED] ttm_pool_alloc_order_mismatch
[14:51:08] [PASSED] ttm_pool_free_dma_alloc
[14:51:08] [PASSED] ttm_pool_free_no_dma_alloc
[14:51:08] [PASSED] ttm_pool_fini_basic
[14:51:08] ==================== [PASSED] ttm_pool =====================
[14:51:08] ================ ttm_resource (8 subtests) =================
[14:51:08] ================= ttm_resource_init_basic =================
[14:51:08] [PASSED] Init resource in TTM_PL_SYSTEM
[14:51:08] [PASSED] Init resource in TTM_PL_VRAM
[14:51:08] [PASSED] Init resource in a private placement
[14:51:08] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[14:51:08] ============= [PASSED] ttm_resource_init_basic =============
[14:51:08] [PASSED] ttm_resource_init_pinned
[14:51:08] [PASSED] ttm_resource_fini_basic
[14:51:08] [PASSED] ttm_resource_manager_init_basic
[14:51:08] [PASSED] ttm_resource_manager_usage_basic
[14:51:08] [PASSED] ttm_resource_manager_set_used_basic
[14:51:08] [PASSED] ttm_sys_man_alloc_basic
[14:51:08] [PASSED] ttm_sys_man_free_basic
[14:51:08] ================== [PASSED] ttm_resource ===================
[14:51:08] =================== ttm_tt (15 subtests) ===================
[14:51:08] ==================== ttm_tt_init_basic ====================
[14:51:08] [PASSED] Page-aligned size
[14:51:08] [PASSED] Extra pages requested
[14:51:08] ================ [PASSED] ttm_tt_init_basic ================
[14:51:08] [PASSED] ttm_tt_init_misaligned
[14:51:08] [PASSED] ttm_tt_fini_basic
[14:51:08] [PASSED] ttm_tt_fini_sg
[14:51:08] [PASSED] ttm_tt_fini_shmem
[14:51:08] [PASSED] ttm_tt_create_basic
[14:51:08] [PASSED] ttm_tt_create_invalid_bo_type
[14:51:08] [PASSED] ttm_tt_create_ttm_exists
[14:51:08] [PASSED] ttm_tt_create_failed
[14:51:08] [PASSED] ttm_tt_destroy_basic
[14:51:08] [PASSED] ttm_tt_populate_null_ttm
[14:51:08] [PASSED] ttm_tt_populate_populated_ttm
[14:51:08] [PASSED] ttm_tt_unpopulate_basic
[14:51:08] [PASSED] ttm_tt_unpopulate_empty_ttm
[14:51:08] [PASSED] ttm_tt_swapin_basic
[14:51:08] ===================== [PASSED] ttm_tt ======================
[14:51:08] =================== ttm_bo (14 subtests) ===================
[14:51:08] =========== ttm_bo_reserve_optimistic_no_ticket ===========
[14:51:08] [PASSED] Cannot be interrupted and sleeps
[14:51:08] [PASSED] Cannot be interrupted, locks straight away
[14:51:08] [PASSED] Can be interrupted, sleeps
[14:51:08] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[14:51:08] [PASSED] ttm_bo_reserve_locked_no_sleep
[14:51:08] [PASSED] ttm_bo_reserve_no_wait_ticket
[14:51:08] [PASSED] ttm_bo_reserve_double_resv
[14:51:08] [PASSED] ttm_bo_reserve_interrupted
[14:51:08] [PASSED] ttm_bo_reserve_deadlock
[14:51:08] [PASSED] ttm_bo_unreserve_basic
[14:51:08] [PASSED] ttm_bo_unreserve_pinned
[14:51:08] [PASSED] ttm_bo_unreserve_bulk
[14:51:08] [PASSED] ttm_bo_fini_basic
[14:51:08] [PASSED] ttm_bo_fini_shared_resv
[14:51:08] [PASSED] ttm_bo_pin_basic
[14:51:08] [PASSED] ttm_bo_pin_unpin_resource
[14:51:08] [PASSED] ttm_bo_multiple_pin_one_unpin
[14:51:08] ===================== [PASSED] ttm_bo ======================
[14:51:08] ============== ttm_bo_validate (22 subtests) ===============
[14:51:08] ============== ttm_bo_init_reserved_sys_man ===============
[14:51:08] [PASSED] Buffer object for userspace
[14:51:08] [PASSED] Kernel buffer object
[14:51:08] [PASSED] Shared buffer object
[14:51:08] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[14:51:08] ============== ttm_bo_init_reserved_mock_man ==============
[14:51:08] [PASSED] Buffer object for userspace
[14:51:08] [PASSED] Kernel buffer object
[14:51:08] [PASSED] Shared buffer object
[14:51:08] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[14:51:08] [PASSED] ttm_bo_init_reserved_resv
[14:51:08] ================== ttm_bo_validate_basic ==================
[14:51:08] [PASSED] Buffer object for userspace
[14:51:08] [PASSED] Kernel buffer object
[14:51:08] [PASSED] Shared buffer object
[14:51:08] ============== [PASSED] ttm_bo_validate_basic ==============
[14:51:08] [PASSED] ttm_bo_validate_invalid_placement
[14:51:08] ============= ttm_bo_validate_same_placement ==============
[14:51:08] [PASSED] System manager
[14:51:08] [PASSED] VRAM manager
[14:51:08] ========= [PASSED] ttm_bo_validate_same_placement ==========
[14:51:08] [PASSED] ttm_bo_validate_failed_alloc
[14:51:08] [PASSED] ttm_bo_validate_pinned
[14:51:08] [PASSED] ttm_bo_validate_busy_placement
[14:51:08] ================ ttm_bo_validate_multihop =================
[14:51:08] [PASSED] Buffer object for userspace
[14:51:08] [PASSED] Kernel buffer object
[14:51:08] [PASSED] Shared buffer object
[14:51:08] ============ [PASSED] ttm_bo_validate_multihop =============
[14:51:08] ========== ttm_bo_validate_no_placement_signaled ==========
[14:51:08] [PASSED] Buffer object in system domain, no page vector
[14:51:08] [PASSED] Buffer object in system domain with an existing page vector
[14:51:08] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[14:51:08] ======== ttm_bo_validate_no_placement_not_signaled ========
[14:51:08] [PASSED] Buffer object for userspace
[14:51:08] [PASSED] Kernel buffer object
[14:51:08] [PASSED] Shared buffer object
[14:51:08] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[14:51:08] [PASSED] ttm_bo_validate_move_fence_signaled
[14:51:08] ========= ttm_bo_validate_move_fence_not_signaled =========
[14:51:08] [PASSED] Waits for GPU
[14:51:08] [PASSED] Tries to lock straight away
[14:51:08] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[14:51:08] [PASSED] ttm_bo_validate_swapout
[14:51:08] [PASSED] ttm_bo_validate_happy_evict
[14:51:08] [PASSED] ttm_bo_validate_all_pinned_evict
[14:51:08] [PASSED] ttm_bo_validate_allowed_only_evict
[14:51:08] [PASSED] ttm_bo_validate_deleted_evict
[14:51:08] [PASSED] ttm_bo_validate_busy_domain_evict
[14:51:08] [PASSED] ttm_bo_validate_evict_gutting
[14:51:08] [PASSED] ttm_bo_validate_recrusive_evict
[14:51:08] ================= [PASSED] ttm_bo_validate =================
[14:51:08] ============================================================
[14:51:08] Testing complete. Ran 102 tests: passed: 102
[14:51:09] Elapsed time: 11.503s total, 1.733s configuring, 9.555s building, 0.176s running
+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel
^ permalink raw reply [flat|nested] 15+ messages in thread* ✓ Xe.CI.BAT: success for Add reclaim to the dmem cgroup controller (rev5)
2026-06-11 14:22 [PATCH v5 0/6] [PATCH v5 0/6] Add reclaim to the dmem cgroup controller Thomas Hellström
` (7 preceding siblings ...)
2026-06-11 14:51 ` ✓ CI.KUnit: success " Patchwork
@ 2026-06-11 16:44 ` Patchwork
8 siblings, 0 replies; 15+ messages in thread
From: Patchwork @ 2026-06-11 16:44 UTC (permalink / raw)
To: Thomas Hellström; +Cc: intel-xe
[-- Attachment #1: Type: text/plain, Size: 962 bytes --]
== Series Details ==
Series: Add reclaim to the dmem cgroup controller (rev5)
URL : https://patchwork.freedesktop.org/series/163970/
State : success
== Summary ==
CI Bug Log - changes from xe-5241-a472b6217138ef0942355824543a5cce12f43343_BAT -> xe-pw-163970v5_BAT
====================================================
Summary
-------
**SUCCESS**
No regressions found.
Participating hosts (12 -> 12)
------------------------------
No changes in participating hosts
Changes
-------
No changes found
Build changes
-------------
* Linux: xe-5241-a472b6217138ef0942355824543a5cce12f43343 -> xe-pw-163970v5
IGT_8959: 77337ca2d2dd470f3b32f1cf4760b0e79a52e2b7 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-5241-a472b6217138ef0942355824543a5cce12f43343: a472b6217138ef0942355824543a5cce12f43343
xe-pw-163970v5: 163970v5
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-163970v5/index.html
[-- Attachment #2: Type: text/html, Size: 1510 bytes --]
^ permalink raw reply [flat|nested] 15+ messages in thread