Re: [PATCH] drm/amdkfd: report the real PCI bus number

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxx>

Reviewed-by: Felix Kuehling <Felix.Kuehling@xxxxxxx>


> ---
>  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,
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux