projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f2c2db5
)
iommu/amd: Initialize amd_iommu_last_bdf for DEV_ALL
author
Joerg Roedel
<jroedel@suse.de>
Tue, 20 Oct 2015 15:33:43 +0000
(17:33 +0200)
committer
Joerg Roedel
<jroedel@suse.de>
Wed, 21 Oct 2015 09:30:33 +0000
(11:30 +0200)
Also initialize the amd_iommu_last_bdf variable when a
IVHD_DEV_ALL entry is found in the ACPI table.
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/amd_iommu_init.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iommu/amd_iommu_init.c
b/drivers/iommu/amd_iommu_init.c
index 9c6efcb6527e103f0860c632f84162d27b34eccc..eca678242e4de222056e92ac922f503bc021fcb0 100644
(file)
--- a/
drivers/iommu/amd_iommu_init.c
+++ b/
drivers/iommu/amd_iommu_init.c
@@
-441,6
+441,10
@@
static int __init find_last_devid_from_ivhd(struct ivhd_header *h)
while (p < end) {
dev = (struct ivhd_entry *)p;
switch (dev->type) {
+ case IVHD_DEV_ALL:
+ /* Use maximum BDF value for DEV_ALL */
+ update_last_devid(0xffff);
+ break;
case IVHD_DEV_SELECT:
case IVHD_DEV_RANGE_END:
case IVHD_DEV_ALIAS: