[RHEL9.5] iommu/amd: Fix panic accessing amd_iommu_enable_faulting
Merge Request Required Information
JIRA: https://issues.redhat.com/browse/RHEL-40344
JIRA: https://issues.redhat.com/browse/RHEL-37320
Upstream Status: Posted: https://lore.kernel.org/linux-iommu/ZljHE%2FR4KLzGU6vx@hpe.com/
Tested: Reproduced and verified fix on amd system in beaker by taking cpu offline and back online.
Summary of Changes
Remove __init annotation from amd_iommu_enable_faulting now that it can be called during cpu hotplug.
Note: Joerg hasn't pulled this into his tree yet, but it is very straightforward and I would like to get it in asap to avoid trouble for others with cpu hotplug tests.
Signed-off-by: Jerry Snitselaar jsnitsel@redhat.com
Approved Development Ticket
All submissions to CentOS Stream must reference an approved ticket in Red Hat Jira. Please follow the CentOS Stream contribution documentation for how to file this ticket and have it approved.