Skip to content

riscv: iommu: Add shutdown callback for kexec

Xu Lu linux-riscv lkml 2 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v1 Latest posting 2/22 patches 1 replyApplied 2/2
  2. v1 posting 1/22 patches 0 repliesSuperseded

Patches in v1 posting 2/2 All 2 applied

#Subject and filesSizeRepliesApplied
1/2iommu/riscv: Empty iommu queue before enabling itdrivers/iommu/riscv/iommu.c+6 -00 repliesApplied
2/2iommu/riscv: Add shutdown function for iommu driverdrivers/iommu/riscv/iommu-pci.c drivers/iommu/riscv/iommu-platform.c drivers/iommu/riscv/iommu.c +1 more+19 -20 repliesApplied

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RESEND 0/2] riscv: iommu: Add shutdown callback for kexec

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 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(-)
Signature · 1 line
2.20.1