projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eac9fbc
)
AMD IOMMU: set device table entry for aliased devices
author
Joerg Roedel
<joerg.roedel@amd.com>
Tue, 25 Nov 2008 11:56:12 +0000
(12:56 +0100)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Wed, 3 Dec 2008 11:20:46 +0000
(12:20 +0100)
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>
arch/x86/kernel/amd_iommu.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/x86/kernel/amd_iommu.c
b/arch/x86/kernel/amd_iommu.c
index e4899e0e878740726bfa7ea56e655c53a6b88f37..a232e5a85d489914b85cccde72e3f07ad6d56aaa 100644
(file)
--- a/
arch/x86/kernel/amd_iommu.c
+++ b/
arch/x86/kernel/amd_iommu.c
@@
-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;
}