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

Xu Lu posted 2 patches 11 months, 2 weeks ago
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(-)
[PATCH RESEND 0/2] riscv: iommu: Add shutdown callback for kexec
Posted by Xu Lu 11 months, 2 weeks ago
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(-)

-- 
2.20.1
Re: [PATCH RESEND 0/2] riscv: iommu: Add shutdown callback for kexec
Posted by Joerg Roedel 11 months, 1 week ago
On Fri, Jan 03, 2025 at 05:32:18PM +0800, Xu Lu wrote:
> 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(-)

Applied, thanks.