]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdkfd: report the real PCI bus number
authorEvan Quan <evan.quan@amd.com>
Thu, 21 May 2020 03:30:28 +0000 (11:30 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 21 May 2020 16:48:42 +0000 (12:48 -0400)
Since the PCI bus number retrieved by PCI_BUS_NUM(pdev->devfn)
is wrong.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c

index 8d871514671eb737e498b2dcfb76d80ec08961ed..7c8786b9eb0aaad65571d876e138d45aad8a7f13 100644 (file)
@@ -192,7 +192,7 @@ static int iommu_invalid_ppr_cb(struct pci_dev *pdev, int pasid,
 
        dev_warn_ratelimited(kfd_device,
                        "Invalid PPR device %x:%x.%x pasid 0x%x address 0x%lX flags 0x%X",
-                       PCI_BUS_NUM(pdev->devfn),
+                       pdev->bus->number,
                        PCI_SLOT(pdev->devfn),
                        PCI_FUNC(pdev->devfn),
                        pasid,