Re: [PATCH v9 06/13] iommu/amd: copy old trans table from old kernel

2017-08-04 Thread Baoquan He
On 08/04/17 at 02:21pm, Joerg Roedel wrote: > On Tue, Aug 01, 2017 at 07:37:22PM +0800, Baoquan He wrote: > > static void init_device_table_dma(void) > > { > > @@ -2137,9 +2140,49 @@ static void early_enable_iommu(struct amd_iommu > > *iommu) > > static void early_enable_iommus(void) > > { >

Re: [PATCH v9 06/13] iommu/amd: copy old trans table from old kernel

2017-08-04 Thread Joerg Roedel
On Tue, Aug 01, 2017 at 07:37:22PM +0800, Baoquan He wrote: > static void init_device_table_dma(void) > { > @@ -2137,9 +2140,49 @@ static void early_enable_iommu(struct amd_iommu *iommu) > static void early_enable_iommus(void) > { > struct amd_iommu *iommu; > + bool is_pre_disabled =

[PATCH v9 06/13] iommu/amd: copy old trans table from old kernel

2017-08-01 Thread Baoquan He
Here several things need be done: - If iommu is pre-enabled in a normal kernel, just disable it and print warning. - If any one of IOMMUs is not pre-enabled in kdump kernel, just continue as it does in normal kernel. - If failed to copy dev table of old kernel, continue to proceed as it