All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Fix the gem shrinker name
@ 2025-05-08 11:29 Thomas Hellström
  2025-05-08 11:34 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Thomas Hellström @ 2025-05-08 11:29 UTC (permalink / raw)
  To: intel-xe; +Cc: Thomas Hellström, Matthew Brost

The xe buffer object shrinker name is visible in the
<debugfs>/shrinker directory and most if not all other shinkers
follow a naming convention that looks like
<subsystem>-<driver>_<objects>:<unique>
Follow the same convention for xe, changing the name to
drm-xe_gem:<unique>.

Other shrinkers typically use the device node for <unique> but
since drm drivers typically don't have a single unique device-
node, instead use the unique name in the drm device.

Fixes: 00c8efc3180f ("drm/xe: Add a shrinker for xe bos")
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
---
 drivers/gpu/drm/xe/xe_shrinker.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/xe/xe_shrinker.c b/drivers/gpu/drm/xe/xe_shrinker.c
index 8184390f9c7b..86d47aaf0358 100644
--- a/drivers/gpu/drm/xe/xe_shrinker.c
+++ b/drivers/gpu/drm/xe/xe_shrinker.c
@@ -227,7 +227,7 @@ struct xe_shrinker *xe_shrinker_create(struct xe_device *xe)
 	if (!shrinker)
 		return ERR_PTR(-ENOMEM);
 
-	shrinker->shrink = shrinker_alloc(0, "xe system shrinker");
+	shrinker->shrink = shrinker_alloc(0, "drm-xe_gem:%s", xe->drm.unique);
 	if (!shrinker->shrink) {
 		kfree(shrinker);
 		return ERR_PTR(-ENOMEM);
-- 
2.49.0


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

end of thread, other threads:[~2025-05-26 19:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-08 11:29 [PATCH] drm/xe: Fix the gem shrinker name Thomas Hellström
2025-05-08 11:34 ` ✓ CI.Patch_applied: success for " Patchwork
2025-05-08 11:34 ` ✓ CI.checkpatch: " Patchwork
2025-05-08 11:35 ` ✓ CI.KUnit: " Patchwork
2025-05-08 11:44 ` ✓ CI.Build: " Patchwork
2025-05-08 11:46 ` ✓ CI.Hooks: " Patchwork
2025-05-08 11:48 ` ✓ CI.checksparse: " Patchwork
2025-05-08 12:12 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-09  4:37 ` ✗ Xe.CI.Full: failure " Patchwork
2025-05-09  7:17 ` [PATCH] " Francois Dugast
2025-05-26 19:01 ` ✗ CI.Patch_applied: failure for " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.