]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
drm/amdkfd: Avoid flooding dmesg on Raven due to IOMMU issues
authorYong Zhao <yong.zhao@amd.com>
Fri, 13 Jul 2018 20:17:45 +0000 (16:17 -0400)
committerOded Gabbay <oded.gabbay@gmail.com>
Fri, 13 Jul 2018 20:17:45 +0000 (16:17 -0400)
On Raven Invalid PPRs (peripheral page requests) can be reported
because multiple PPRs can be still queued when memory is freed.
Apply a rate limit to avoid flooding the log in this case.

Signed-off-by: Yong Zhao <yong.zhao@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/gpu/drm/amd/amdkfd/kfd_iommu.c

index c71817963eea6f2921dab7aaab116283624a9eec..7a61f38c09e65bfd9b33d668799efd9d79ab7aab 100644 (file)
@@ -190,7 +190,7 @@ static int iommu_invalid_ppr_cb(struct pci_dev *pdev, int pasid,
 {
        struct kfd_dev *dev;
 
-       dev_warn(kfd_device,
+       dev_warn_ratelimited(kfd_device,
                        "Invalid PPR device %x:%x.%x pasid %d address 0x%lX flags 0x%X",
                        PCI_BUS_NUM(pdev->devfn),
                        PCI_SLOT(pdev->devfn),