Re: [PATCH] amd iommu: force flush of iommu prior during shutdown

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vivek Goyal
Date: Wednesday, March 31, 2010 - 8:54 am

On Wed, Mar 31, 2010 at 11:24:17AM -0400, Neil Horman wrote:

CCing Eric also.

Neil, this is interesting. In the past we noticed similar issues,
especially on PPC. But I was told that we could not clear the iommu
mapping entries as we had no control on in flight DMA and if a DMA comes
later after clearing an entry and entry is not present, it is an error.

Hence one of the suggestions was not to clear iommu mapping entries but
reserve some for kdump operation and use those in kdump kernel.

So this call amd_iommu_flush_all_devices() will be able to tell devices
that don't do any more DMAs and hence it is safe to reprogram iommu
mapping entries.

Thanks
Vivek
 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] amd iommu: force flush of iommu prior during s ..., Vivek Goyal, (Wed Mar 31, 8:54 am)
Re: [PATCH] amd iommu: force flush of iommu prior during s ..., Eric W. Biederman, (Wed Mar 31, 11:43 am)
Re: [PATCH] amd iommu: force flush of iommu prior during s ..., Eric W. Biederman, (Wed Mar 31, 11:57 am)
Re: [PATCH] amd iommu: force flush of iommu prior during s ..., Eric W. Biederman, (Wed Mar 31, 12:51 pm)
Re: [PATCH] amd iommu: force flush of iommu prior during s ..., Eric W. Biederman, (Wed Mar 31, 9:04 pm)