[PATCH] drm/amdkfd: report the real PCI bus number
Felix Kuehling
felix.kuehling at amd.com
Thu May 21 04:11:51 UTC 2020
Am 2020-05-20 um 11:34 p.m. schrieb Evan Quan:
> Since the PCI bus number retrieved by PCI_BUS_NUM(pdev->devfn)
> is wrong.
>
> Change-Id: I882a8531a65cdf91be20e34a034aca1f43f658b4
> Signed-off-by: Evan Quan <evan.quan at amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling at amd.com>
> ---
> drivers/gpu/drm/amd/amdkfd/kfd_iommu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
> index 8d871514671e..7c8786b9eb0a 100644
> --- a/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
> +++ b/drivers/gpu/drm/amd/amdkfd/kfd_iommu.c
> @@ -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,
More information about the amd-gfx
mailing list