Skip to content

Commit

Permalink
AMD IOMMU: set device table entry for aliased devices
Browse files Browse the repository at this point in the history
In some rare cases a request can arrive an IOMMU with its originial
requestor id even it is aliased. Handle this by setting the device table
entry to the same protection domain for the original and the aliased
requestor id.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
  • Loading branch information
Joerg Roedel committed Dec 3, 2008
1 parent eac9fbc commit f91ba19
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/x86/kernel/amd_iommu.c
Original file line number Diff line number Diff line change
Expand Up @@ -858,6 +858,9 @@ static int get_device_resources(struct device *dev,
print_devid(_bdf, 1);
}

if (domain_for_device(_bdf) == NULL)
set_device_domain(*iommu, *domain, _bdf);

return 1;
}

Expand Down

0 comments on commit f91ba19

Please sign in to comment.