Re: [PATCH v5 5/8] iommu/amd: copy old trans table from old kernel

2016-09-28 Thread Baoquan He
On 09/28/16 at 09:37am, Baoquan He wrote: > Hi Joerg, > > On 09/20/16 at 02:40pm, Joerg Roedel wrote: > > > + if ( !is_pre_enabled) { > > > + for_each_iommu(iommu) > > > + early_enable_iommu(iommu); > > > + } else { > > > + if (copy_dev_tables()) { > > > +

Re: [PATCH v5 5/8] iommu/amd: copy old trans table from old kernel

2016-09-27 Thread Baoquan He
Hi Joerg, On 09/20/16 at 02:40pm, Joerg Roedel wrote: > > + if ( !is_pre_enabled) { > > + for_each_iommu(iommu) > > + early_enable_iommu(iommu); > > + } else { > > + if (copy_dev_tables()) { > > + pr_err("Failed to copy DEV table from pre

Re: [PATCH v5 5/8] iommu/amd: copy old trans table from old kernel

2016-09-21 Thread Baoquan He
On 09/20/16 at 02:40pm, Joerg Roedel wrote: > On Thu, Sep 15, 2016 at 11:03:23PM +0800, Baoquan He wrote: > > Here several things need be done: > > 1) If iommu is pre-enabled in a normal kernel, just disable it and print > >warning. > > 2) If failed to copy dev table of old kernel, continue to

Re: [PATCH v5 5/8] iommu/amd: copy old trans table from old kernel

2016-09-20 Thread Joerg Roedel
On Thu, Sep 15, 2016 at 11:03:23PM +0800, Baoquan He wrote: > Here several things need be done: > 1) If iommu is pre-enabled in a normal kernel, just disable it and print >warning. > 2) If failed to copy dev table of old kernel, continue to proceed as >it does in normal kernel. > 3) Re-enab

[PATCH v5 5/8] iommu/amd: copy old trans table from old kernel

2016-09-15 Thread Baoquan He
Here several things need be done: 1) If iommu is pre-enabled in a normal kernel, just disable it and print warning. 2) If failed to copy dev table of old kernel, continue to proceed as it does in normal kernel. 3) Re-enable event/cmd buffer and install the new DTE table to reg. 4) Flush all c