Re: [PATCH -next v4 2/2] iommu/arm-smmu-v3: Add suspend and resume support

2021-08-30 Thread Bixuan Cui
On 2021/8/30 15:38, Bixuan Cui wrote: > Changes in v4: > * Restore the arm_smmu_suspend() function code to the v2 version(Directly > return 0 in it). Hello, I looked up the code of smmu.c and the manual of smmu v3. For the suspend is implemented by the external clock-gating, it is not clear wh

[PATCH -next v4 2/2] iommu/arm-smmu-v3: Add suspend and resume support

2021-08-30 Thread Bixuan Cui
Add suspend and resume support for arm-smmu-v3 by low-power mode. When the smmu is suspended, it is powered off and the registers are cleared. So saves the msi_msg context during msi interrupt initialization of smmu. When resume happens it calls arm_smmu_device_reset() to restore the registers. S