diff options
| author | Xu Lu <[email protected]> | 2025-01-03 09:32:20 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-01-06 11:38:11 +0000 |
| commit | 77a44196abfb39e183be554003e9ee76d95edab1 (patch) | |
| tree | 27f5f831f7122393505027ef007f0982a28728e0 /net/switchdev/switchdev.c | |
| parent | iommu/riscv: Empty iommu queue before enabling it (diff) | |
| download | kernel-77a44196abfb39e183be554003e9ee76d95edab1.tar.gz kernel-77a44196abfb39e183be554003e9ee76d95edab1.zip | |
iommu/riscv: Add shutdown function for iommu driver
This commit supplies shutdown callback for iommu driver. The shutdown
callback resets necessary registers so that newly booted kernel can pass
riscv_iommu_init_check() after kexec. Also, the shutdown callback resets
iommu mode to bare instead of off so that new kernel can still use PCIE
devices even when CONFIG_RISCV_IOMMU is not enabled.
Signed-off-by: Xu Lu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
