Re: [PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-15 Thread Baoquan He
On 08/15/17 at 06:18pm, Joerg Roedel wrote: > On Wed, Aug 09, 2017 at 04:33:32PM +0800, Baoquan He wrote: > > Baoquan He (12): > > iommu/amd: Detect pre enabled translation > > iommu/amd: add several helper functions > > Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel" > >

Re: [PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-15 Thread Baoquan He
On 08/15/17 at 06:18pm, Joerg Roedel wrote: > On Wed, Aug 09, 2017 at 04:33:32PM +0800, Baoquan He wrote: > > Baoquan He (12): > > iommu/amd: Detect pre enabled translation > > iommu/amd: add several helper functions > > Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel" > >

Re: [PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-15 Thread Joerg Roedel
On Wed, Aug 09, 2017 at 04:33:32PM +0800, Baoquan He wrote: > Baoquan He (12): > iommu/amd: Detect pre enabled translation > iommu/amd: add several helper functions > Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel" > iommu/amd: Define bit fields for DTE particularly >

Re: [PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-15 Thread Joerg Roedel
On Wed, Aug 09, 2017 at 04:33:32PM +0800, Baoquan He wrote: > Baoquan He (12): > iommu/amd: Detect pre enabled translation > iommu/amd: add several helper functions > Revert "iommu/amd: Suppress IO_PAGE_FAULTs in kdump kernel" > iommu/amd: Define bit fields for DTE particularly >

[PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-09 Thread Baoquan He
When kernel panicked and jump into the kdump kernel, DMA started by the 1st kernel is not stopped, this is called on-flight DMA. In the current code it will disable iommu and build new translation table and attach device to it. This will cause: 1. IO_PAGE_FAULT warning message can be seen. 2.

[PATCH v10 00/12] Fix the on-flight DMA issue on system with amd iommu

2017-08-09 Thread Baoquan He
When kernel panicked and jump into the kdump kernel, DMA started by the 1st kernel is not stopped, this is called on-flight DMA. In the current code it will disable iommu and build new translation table and attach device to it. This will cause: 1. IO_PAGE_FAULT warning message can be seen. 2.