Commit a0c17ed
iommu/amd: Fix alias device DTE setting
Commit 7bea695 restructured DTE flag handling but inadvertently changed
the alias device configuration logic. This may cause incorrect DTE settings
for certain devices.
Add alias flag check before calling set_dev_entry_from_acpi(). Also move the
device iteration loop inside the alias check to restrict execution to cases
where alias devices are present.
Fixes: 7bea695 ("iommu/amd: Introduce struct ivhd_dte_flags to store persistent DTE flags")
Cc: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>1 parent 9ffaf52 commit a0c17ed
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1455 | 1455 | | |
1456 | 1456 | | |
1457 | 1457 | | |
1458 | | - | |
1459 | | - | |
| 1458 | + | |
| 1459 | + | |
1460 | 1460 | | |
| 1461 | + | |
1461 | 1462 | | |
1462 | 1463 | | |
1463 | | - | |
1464 | 1464 | | |
1465 | 1465 | | |
1466 | 1466 | | |
| |||
0 commit comments