drm/amdgpu: use hyphens in TLB fence driver and timeline names
Subsystems (2)
PATCH 1/1 drm/amdgpu: use hyphens in TLB fence driver and timeline names
Replace spaces with hyphens in amdgpu_tlb_fence_get_driver_name() and amdgpu_tlb_fence_get_timeline_name(). Returning string literals with spaces makes ftrace fence events and debugfs fence entries visually ambiguous and harder to parse using standard log analysis tools.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c +2 -2
@@ -40,12 +40,12 @@ struct amdgpu_tlb_fence {static const char *amdgpu_tlb_fence_get_driver_name (struct dma_fence *fence) { -return "amdgpu tlb fence" ; +return "amdgpu_tlb_fence" ; }static const char *amdgpu_tlb_fence_get_timeline_name (struct dma_fence *f) { -return "amdgpu tlb timeline" ; +return "amdgpu_tlb_timeline" ; }static void amdgpu_tlb_fence_work (struct work_struct *work)
Signature · 1 line
2.34.1
AMD General
________________________________
From: Liang, Prike <[email protected]>
Sent: Tuesday, August 25, 2026 4:15 AM
To: [email protected] <[email protected]>
Cc: Deucher, Alexander <[email protected]>; Koenig, Christian <[email protected]>; Liang, Prike <[email protected]>
Subject: [PATCH] drm/amdgpu: use hyphens in TLB fence driver and timeline names
Replace spaces with hyphens in amdgpu_tlb_fence_get_driver_name() and amdgpu_tlb_fence_get_timeline_name(). Returning string literals with spaces makes ftrace fence events and debugfs fence entries visually ambiguous and harder to parse using standard log analysis tools.
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c +2 -2
@@ -40,12 +40,12 @@ struct amdgpu_tlb_fence {static const char *amdgpu_tlb_fence_get_driver_name (struct dma_fence *fence) { -return "amdgpu tlb fence" ; +return "amdgpu_tlb_fence" ; }static const char *amdgpu_tlb_fence_get_timeline_name (struct dma_fence *f) { -return "amdgpu tlb timeline" ; +return "amdgpu_tlb_timeline" ; }static void amdgpu_tlb_fence_work (struct work_struct *work)
--
2.34.1
Quoted 4 lines · Prike Liang
Replace spaces with hyphens in
amdgpu_tlb_fence_get_driver_name()andamdgpu_tlb_fence_get_timeline_name(). Returning string literals with spaces makes ftrace fence events and debugfs fence entries visually ambiguous and harder to parse using standard log analysis tools.
Interesting, I never considered that a problem.
Quoted 2 lines
Signed-off-by Prike Liang <[email protected]>
Quoted 23 lines
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/amdgpu_vm_tlb_fence.c +2
-2@@ -40,12 +40,12 @@ struct amdgpu_tlb_fence {static const char *amdgpu_tlb_fence_get_driver_name (struct dma_fence *fence) { -return "amdgpu tlb fence" ; +return "amdgpu_tlb_fence" ; }static const char *amdgpu_tlb_fence_get_timeline_name (struct dma_fence *f) { -return "amdgpu tlb timeline" ; +return "amdgpu_tlb_timeline" ; }static void amdgpu_tlb_fence_work (struct work_struct *work)