]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iommu/amd: Fix alias device DTE setting
authorVasant Hegde <vasant.hegde@amd.com>
Thu, 11 Sep 2025 13:14:06 +0000 (13:14 +0000)
committerJoerg Roedel <joerg.roedel@amd.com>
Sat, 13 Sep 2025 06:11:30 +0000 (08:11 +0200)
commita0c17ed907ac3326cf3c9d6007ea222a746f5cc2
treeac3f3e87469aa2fb8f17e0763e376d5737cb54ce
parent9ffaf5229055fcfbb3b3d6f1c7e58d63715c3f73
iommu/amd: Fix alias device DTE setting

Commit 7bea695ada0 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: 7bea695ada0 ("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>
drivers/iommu/amd/init.c