diff options
author | 2025-01-03 17:32:20 +0800 | |
---|---|---|
committer | 2025-01-06 12:38:11 +0100 | |
commit | 77a44196abfb39e183be554003e9ee76d95edab1 (patch) | |
tree | 27f5f831f7122393505027ef007f0982a28728e0 /net/lapb/lapb_timer.c | |
parent | iommu/riscv: Empty iommu queue before enabling it (diff) | |
download | wireguard-linux-77a44196abfb39e183be554003e9ee76d95edab1.tar.xz wireguard-linux-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 <luxu.kernel@bytedance.com>
Link: https://lore.kernel.org/r/20250103093220.38106-3-luxu.kernel@bytedance.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions