]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Fix the gem shrinker name
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Thu, 8 May 2025 11:29:31 +0000 (13:29 +0200)
committerLucas De Marchi <lucas.demarchi@intel.com>
Tue, 13 May 2025 20:17:05 +0000 (13:17 -0700)
commit2d2f82e1a8a118d26c2489674b6f6cbb41d04376
treefc8507a52b759e0f5bbad1578518c98ccafb4882
parent82f2b0b97b36ee3fcddf0f0780a9a0825d52fec3
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: 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>
Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://lore.kernel.org/r/20250508112931.3347-1-thomas.hellstrom@linux.intel.com
(cherry picked from commit 243bf99e2fe75edf8df1711c1377b6fc020b806c)
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_shrinker.c