AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Felix Kuehling <felix.kuehling@amd.com>
To: Evan Quan <evan.quan@amd.com>, amd-gfx@lists.freedesktop.org
Cc: alexander.deucher@amd.com
Subject: Re: [PATCH] drm/amdkfd: report the real PCI bus number
Date: Thu, 21 May 2020 00:11:51 -0400	[thread overview]
Message-ID: <a9af867e-4345-ab80-7524-e72456107bcd@amd.com> (raw)
In-Reply-To: <20200521033414.15111-1-evan.quan@amd.com>


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@amd.com>

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

      reply	other threads:[~2020-05-21  4:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-21  3:34 [PATCH] drm/amdkfd: report the real PCI bus number Evan Quan
2020-05-21  4:11 ` Felix Kuehling [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=a9af867e-4345-ab80-7524-e72456107bcd@amd.com \
    --to=felix.kuehling@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=evan.quan@amd.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox