mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-06 16:49:22 +00:00
amd-iommu: fix the handling of device aliases in the AMD IOMMU driver.
The devid parameter to set_dev_entry_from_acpi is the requester ID rather than the device ID since it is used to index the IOMMU device table. The handling of IVHD_DEV_ALIAS used to pass the device ID. This patch fixes it to pass the requester ID. [ Impact: fix setting the wrong req-id in acpi-table parsing ] Signed-off-by: Neil Turton <nturton@solarflare.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
This commit is contained in:
parent
421f909c80
commit
7455aab1f9
1 changed files with 1 additions and 1 deletions
|
@ -618,7 +618,7 @@ static void __init init_iommu_from_acpi(struct amd_iommu *iommu,
|
||||||
case IVHD_DEV_ALIAS:
|
case IVHD_DEV_ALIAS:
|
||||||
devid = e->devid;
|
devid = e->devid;
|
||||||
devid_to = e->ext >> 8;
|
devid_to = e->ext >> 8;
|
||||||
set_dev_entry_from_acpi(iommu, devid, e->flags, 0);
|
set_dev_entry_from_acpi(iommu, devid_to, e->flags, 0);
|
||||||
amd_iommu_alias_table[devid] = devid_to;
|
amd_iommu_alias_table[devid] = devid_to;
|
||||||
break;
|
break;
|
||||||
case IVHD_DEV_ALIAS_RANGE:
|
case IVHD_DEV_ALIAS_RANGE:
|
||||||
|
|
Loading…
Reference in a new issue