iommu/amd: Fix workqueue name
Subsystems (2)
Vasant Hegde
maintainerPATCH 1/1 iommu/amd: Fix workqueue name
Workqueue name length is crossing WQ_NAME_LEN limit. Fix it by changing name format. New format : "iopf_queue/amdvi-<iommu-devid>"
kernel warning:
[ 11.146912] workqueue: name exceeds WQ_NAME_LEN. Truncating to: iopf_queue/amdiommu-0xc002-iopf
Reported-by Borislav Petkov <[email protected]>
Fixes 61928bab9d26 ("iommu/amd: Define per-IOMMU iopf_queue")
Signed-off-by Vasant Hegde <[email protected]>
--- drivers/iommu/amd/ppr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/iommu/amd/ppr.c +1 -2
@@ -222,8 +222,7 @@ int amd_iommu_iopf_init(struct amd_iommu *iommu)if (iommu->iopf_queue)return ret; -snprintf (iommu->iopfq_name,sizeof (iommu->iopfq_name), -"amdiommu-%#x-iopfq" , +snprintf (iommu->iopfq_name,sizeof (iommu->iopfq_name),"amdvi-%#x" ,PCI_SEG_DEVID_TO_SBDF (iommu->pci_seg->id, iommu->devid)); iommu->iopf_queue =iopf_queue_alloc (iommu->iopfq_name);
Signature · 1 line
2.31.1
Quoted 19 lines · Vasant Hegde
Workqueue name length is crossing
WQ_NAME_LENlimit. Fix it by changing name format. New format : "iopf_queue/amdvi-<iommu-devid>"kernel warning:
[ 11.146912] workqueue: name exceeds WQ_NAME_LEN. Truncating to: iopf_queue/amdiommu-0xc002-iopfReported-by Borislav Petkov <[email protected]>Fixes 61928bab9d26 ("iommu/amd: Define per-IOMMU iopf_queue")Signed-off-by Vasant Hegde <[email protected]>--- drivers/iommu/amd/ppr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/iommu/amd/ppr.c +0
-0
drivers/iommu/amd/ppr.c int amd_iommu_iopf_init(struct amd_iommu *iommu) · line 228
Quoted 9 lines
drivers/iommu/amd/ppr.c +1
-2@@ -222,8 +222,7 @@ int amd_iommu_iopf_init(struct amd_iommu *iommu)if (iommu->iopf_queue)return ret; -snprintf (iommu->iopfq_name,sizeof (iommu->iopfq_name), -"amdiommu-%#x-iopfq" , +snprintf (iommu->iopfq_name,sizeof (iommu->iopfq_name),"amdvi-%#x" ,PCI_SEG_DEVID_TO_SBDF (iommu->pci_seg->id, iommu->devid)); iommu->iopf_queue =iopf_queue_alloc (iommu->iopfq_name);
Looks like it should fit, thx.
Signature · 4 lines
Regards/Gruss,
Boris.
https://people.kernel.org/tglx/notes-about-netiquetteQuoted 4 lines · Vasant Hegde
Workqueue name length is crossing
WQ_NAME_LENlimit. Fix it by changing name format. New format : "iopf_queue/amdvi-<iommu-devid>"kernel warning:
Quoted 8 lines
[ 11.146912] workqueue: name exceeds WQ_NAME_LEN. Truncating to: iopf_queue/amdiommu-0xc002-iopfReported-by Borislav Petkov <[email protected]>Fixes 61928bab9d26 ("iommu/amd: Define per-IOMMU iopf_queue")Signed-off-by Vasant Hegde <[email protected]>--- drivers/iommu/amd/ppr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks.