[PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-04-24 Thread Bill Sumner
The following series implements a fix for: A kdump problem about DMA that has been discussed for a long time. That is, when a kernel panics and boots into the kdump kernel, DMA that was started by the panicked kernel is not stopped before the kdump kernel is booted; and the kdump kernel disables th

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-04-30 Thread David Woodhouse
On Thu, 2014-04-24 at 18:36 -0600, Bill Sumner wrote: > > This patch set modifies the behavior of the Intel iommu in the crashdump > kernel: > 1. to accept the iommu hardware in an active state, > 2. to leave the current translations in-place so that legacy DMA will continue >using its curre

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-05-02 Thread Jerry Hoemann
On Wed, Apr 30, 2014 at 11:49:33AM +0100, David Woodhouse wrote: Hi David, As you may know, Bill has retired and I am picking up this work. I am still coming up to speed in this area so my goal is to understand your concerns and research them as I dig through code and specs. My apologizes for t

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-05-07 Thread Jerry Hoemann
David, I received the following email from Bill Sumner addressing your earlier email. Jerry On Wed, 2014-04-30, David Woodhouse wrote: Addressing a portion of the last question first: >Was that option considered and discounted for some reason? It seems like >it would make sense. Considered ?

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-07-02 Thread Joerg Roedel
Hi David, On Wed, Apr 30, 2014 at 11:49:33AM +0100, David Woodhouse wrote: > There could be all kinds of existing mappings in the DMA page tables, > and I'm not sure it's safe to preserve them. What prevents the crashdump > kernel from trying to use any of the physical pages which are > accessible

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-07-11 Thread Jerry Hoemann
On Wed, Jul 02, 2014 at 03:32:59PM +0200, Joerg Roedel wrote: > Hi David, > > On Wed, Apr 30, 2014 at 11:49:33AM +0100, David Woodhouse wrote: > > There could be all kinds of existing mappings in the DMA page tables, > > and I'm not sure it's safe to preserve them. What prevents the crashdump > >

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-15 Thread Li, ZhenHua
David, Joerg, I plan to merge this patch set with 3.17 stable kernel, and split this patch set into two : 1. The core part, including the changed functions, like [Patch 4/8], [Patch 8/8]. 2. For the formatting issues, like [Patch 1/8],[Patch 3/8], including the changes for code formations, cre

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-15 Thread Li, ZhenHua
Add Tom to CC list. On 10/15/2014 04:10 PM, Li, ZhenHua wrote: David, Joerg, I plan to merge this patch set with 3.17 stable kernel, and split this patch set into two : 1. The core part, including the changed functions, like [Patch 4/8], [Patch 8/8]. 2. For the formatting issues, like [Patch 1/8]

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-21 Thread Bjorn Helgaas
[-cc Bill, +cc Zhen-Hua, Eric, Tom, Jerry] Hi Joerg, I was looking at Zhen-Hua's recent patches, trying to figure out if I need to do anything with them. Resetting devices in the old kernel seems like a non-starter. Resetting devices in the new kernel, ..., well, maybe. It seems ugly, and it s

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-21 Thread Eric W. Biederman
Bjorn Helgaas writes: > [-cc Bill, +cc Zhen-Hua, Eric, Tom, Jerry] > > Hi Joerg, > > I was looking at Zhen-Hua's recent patches, trying to figure out if I > need to do anything with them. Resetting devices in the old kernel > seems like a non-starter. Resetting devices in the new kernel, ..., >

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-21 Thread Li, ZhenHua
Need more time to read and think about these mails. I just want to clarify one thing: Bill has left HP, and now I inherited his works. That's why I sent an update of his patch https://lkml.org/lkml/2014/10/21/134 On 10/22/2014 10:47 AM, Eric W. Biederman wrote: Bjorn Helgaas writes:

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-22 Thread Joerg Roedel
Hi Bjorn, On Tue, Oct 21, 2014 at 08:16:46PM -0600, Bjorn Helgaas wrote: > I was looking at Zhen-Hua's recent patches, trying to figure out if I > need to do anything with them. Resetting devices in the old kernel > seems like a non-starter. Resetting devices in the new kernel, ..., > well, mayb

Re: [PATCH 0/8] iommu/vt-d: Fix crash dump failure caused by legacy DMA/IO

2014-10-22 Thread Bjorn Helgaas
On Wed, Oct 22, 2014 at 7:21 AM, Joerg Roedel wrote: > Hi Bjorn, > > On Tue, Oct 21, 2014 at 08:16:46PM -0600, Bjorn Helgaas wrote: >> I was looking at Zhen-Hua's recent patches, trying to figure out if I >> need to do anything with them. Resetting devices in the old kernel >> seems like a non-st