Skip to content

Commit 2d2f82e

Browse files
Thomas Hellströmlucasdemarchi
authored andcommitted
drm/xe: Fix the gem shrinker name
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: 00c8efc ("drm/xe: Add a shrinker for xe bos") Cc: Matthew Brost <[email protected]> Signed-off-by: Thomas Hellström <[email protected]> Reviewed-by: Francois Dugast <[email protected]> Link: https://lore.kernel.org/r/[email protected] (cherry picked from commit 243bf99) Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 82f2b0b commit 2d2f82e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/xe/xe_shrinker.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ struct xe_shrinker *xe_shrinker_create(struct xe_device *xe)
227227
if (!shrinker)
228228
return ERR_PTR(-ENOMEM);
229229

230-
shrinker->shrink = shrinker_alloc(0, "xe system shrinker");
230+
shrinker->shrink = shrinker_alloc(0, "drm-xe_gem:%s", xe->drm.unique);
231231
if (!shrinker->shrink) {
232232
kfree(shrinker);
233233
return ERR_PTR(-ENOMEM);

0 commit comments

Comments
 (0)