mbox series

[0/2] riscv: iommu: Add shutdown callback for kexec

Message ID 20241213114233.12388-1-luxu.kernel@bytedance.com (mailing list archive)
Headers show
Series riscv: iommu: Add shutdown callback for kexec | expand

Message

Xu Lu Dec. 13, 2024, 11:42 a.m. UTC
After kexec, the newly booted kernel can not initialize iommu driver
successfully as no one resets iommu state before kexec.

This patch series supplies shutdown callback for iommu pmu driver. The
shutdown callback resets necessary registers so that newly booted kernel
can pass riscv_iommu_init_check() after kexec.

Xu Lu (2):
  iommu/riscv: Empty iommu queue before enabling it
  iommu/riscv: Add shutdown function for iommu driver

 drivers/iommu/riscv/iommu-pci.c      |  8 ++++++++
 drivers/iommu/riscv/iommu-platform.c |  6 ++++++
 drivers/iommu/riscv/iommu.c          | 12 ++++++++++--
 drivers/iommu/riscv/iommu.h          |  1 +
 4 files changed, 25 insertions(+), 2 deletions(-)