We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ae19ac commit be8301eCopy full SHA for be8301e
drivers/iommu/amd/iommu.c
@@ -558,6 +558,15 @@ static void amd_iommu_report_page_fault(struct amd_iommu *iommu,
558
* prevent logging it.
559
*/
560
if (IS_IOMMU_MEM_TRANSACTION(flags)) {
561
+ /* Device not attached to domain properly */
562
+ if (dev_data->domain == NULL) {
563
+ pr_err_ratelimited("Event logged [Device not attached to domain properly]\n");
564
+ pr_err_ratelimited(" device=%04x:%02x:%02x.%x domain=0x%04x\n",
565
+ iommu->pci_seg->id, PCI_BUS_NUM(devid), PCI_SLOT(devid),
566
+ PCI_FUNC(devid), domain_id);
567
+ goto out;
568
+ }
569
+
570
if (!report_iommu_fault(&dev_data->domain->domain,
571
&pdev->dev, address,
572
IS_WRITE_REQUEST(flags) ?
0 commit comments