Skip to content

Commit 998a0a3

Browse files
hegdevasantjoergroedel
authored andcommitted
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: 61928ba ("iommu/amd: Define per-IOMMU iopf_queue") Signed-off-by: Vasant Hegde <[email protected]> Acked-by: Borislav Petkov (AMD) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 89e8a23 commit 998a0a3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/iommu/amd/ppr.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,7 @@ int amd_iommu_iopf_init(struct amd_iommu *iommu)
222222
if (iommu->iopf_queue)
223223
return ret;
224224

225-
snprintf(iommu->iopfq_name, sizeof(iommu->iopfq_name),
226-
"amdiommu-%#x-iopfq",
225+
snprintf(iommu->iopfq_name, sizeof(iommu->iopfq_name), "amdvi-%#x",
227226
PCI_SEG_DEVID_TO_SBDF(iommu->pci_seg->id, iommu->devid));
228227

229228
iommu->iopf_queue = iopf_queue_alloc(iommu->iopfq_name);

0 commit comments

Comments
 (0)