Commit f722977
iommu/amd: Fix alias device DTE setting
[ Upstream commit a0c17ed ]
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 <[email protected]>
Signed-off-by: Vasant Hegde <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>1 parent 34f3a9e commit f722977
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1450 | 1450 | | |
1451 | 1451 | | |
1452 | 1452 | | |
1453 | | - | |
1454 | | - | |
| 1453 | + | |
| 1454 | + | |
1455 | 1455 | | |
| 1456 | + | |
1456 | 1457 | | |
1457 | 1458 | | |
1458 | | - | |
1459 | 1459 | | |
1460 | 1460 | | |
1461 | 1461 | | |
| |||
0 commit comments