diff options
author | Joerg Roedel <jroedel@suse.de> | 2015-10-20 17:33:43 +0200 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2015-10-21 11:30:33 +0200 |
commit | d1259416985513ba97f75a63ecf5bc75592a4b8d (patch) | |
tree | 6117e21d0737dd461a45d8353fdab3b680df1ce5 /drivers/iommu | |
parent | f2c2db53b99eb6c48e259a722eef724d6b53b156 (diff) | |
download | linux-d1259416985513ba97f75a63ecf5bc75592a4b8d.tar.gz linux-d1259416985513ba97f75a63ecf5bc75592a4b8d.tar.bz2 linux-d1259416985513ba97f75a63ecf5bc75592a4b8d.zip |
iommu/amd: Initialize amd_iommu_last_bdf for DEV_ALL
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>
Diffstat (limited to 'drivers/iommu')
-rw-r--r-- | drivers/iommu/amd_iommu_init.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index 9c6efcb6527e..eca678242e4d 100644 --- 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: |