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

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Neil Horman
Date: Thursday, April 1, 2010 - 5:49 am

On Wed, Mar 31, 2010 at 09:04:27PM -0700, Eric W. Biederman wrote:
Agreed.  Another strategy I think worth considering is:
1) Leave the iommu on throughout the kdump reboot process, so as to allow dma's
to complete without any interference

2) Make sure the log configuration is enabled prior to kdump reboot

3) Flush the page table cache in the iommu prior to shutdown

4) on re-init in the kdump kernel, query the log.  If its non-empty, recognize
that we're in a kdump boot, and instead of creating a new devtable/page
table/domain table, just clone the old ones from the previous kernels memory

5) use the log to detect which entries in the iommu have been touched, and
assume those touched entries are done, marking them as invalid, until such time
a minimum of free entries in the table are provided

6) continue use with those available free entries

with this approach, we could let the 'old' dmas complete without interference,
and just allocate new dma's from the unused entries in the new kernel.

Just a thought.
Neil

--
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 ..., 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)
Re: [PATCH] amd iommu: force flush of iommu prior during s ..., Neil Horman, (Thu Apr 1, 5:49 am)