Re: [PATCH] iommu/rockchip: Perform a reset on shutdown

2018-03-15 Thread Joerg Roedel
On Tue, Feb 20, 2018 at 08:25:04PM +, Marc Zyngier wrote: > Trying to do a kexec whilst the iommus are still on is proving to be > a challenging exercise. It is terribly unsafe, as we're reusing the > memory allocated for the page tables, leading to a likely crash. > > Let's implement a shutdo

Re: [PATCH] iommu/rockchip: Perform a reset on shutdown

2018-02-21 Thread Robin Murphy
Hi Marc, On 20/02/18 20:25, Marc Zyngier wrote: Trying to do a kexec whilst the iommus are still on is proving to be a challenging exercise. It is terribly unsafe, as we're reusing the memory allocated for the page tables, leading to a likely crash. Let's implement a shutdown method that will a

[PATCH] iommu/rockchip: Perform a reset on shutdown

2018-02-20 Thread Marc Zyngier
Trying to do a kexec whilst the iommus are still on is proving to be a challenging exercise. It is terribly unsafe, as we're reusing the memory allocated for the page tables, leading to a likely crash. Let's implement a shutdown method that will at least try to stop DMA from going crazy behind our