提交 d1259416 编写于 作者: J Joerg Roedel

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: NJoerg Roedel <jroedel@suse.de>
上级 f2c2db53
...@@ -441,6 +441,10 @@ static int __init find_last_devid_from_ivhd(struct ivhd_header *h) ...@@ -441,6 +441,10 @@ static int __init find_last_devid_from_ivhd(struct ivhd_header *h)
while (p < end) { while (p < end) {
dev = (struct ivhd_entry *)p; dev = (struct ivhd_entry *)p;
switch (dev->type) { 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_SELECT:
case IVHD_DEV_RANGE_END: case IVHD_DEV_RANGE_END:
case IVHD_DEV_ALIAS: case IVHD_DEV_ALIAS:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册