Re: Panic when cpu hot-remove

2015-06-18 Thread fandongdong
在 2015/6/18 15:27, fandongdong 写道: 在 2015/6/18 13:40, Jiang Liu 写道: On 2015/6/17 22:36, Alex Williamson wrote: On Wed, 2015-06-17 at 13:52 +0200, Joerg Roedeljoro wrote: On Wed, Jun 17, 2015 at 10:42:49AM +, 范冬冬 wrote: Hi maintainer, We found a problem that a panic happen when cpu wa

[PATCH] iommu/amd: Handle large pages correctly in free_pagetable

2015-06-18 Thread Joerg Roedel
From: Joerg Roedel Make sure that we are skipping over large PTEs while walking the page-table tree. Cc: sta...@kernel.org Fixes: 5c34c403b723 ("iommu/amd: Fix memory leak in free_pagetable") Signed-off-by: Joerg Roedel --- drivers/iommu/amd_iommu.c | 6 ++ 1 file changed, 6 insertions(+)

[PATCH] PCI: Don't use SR-IOV lock for ATS

2015-06-18 Thread Joerg Roedel
From: Joerg Roedel The use of the SR-IOV lock for ATS causes a dead-lock in the AMD-IOMMU driver when virtual functions are added that have an ATS capability. The problem is that the VFs will be added to the bus with the SR-IOV lock held. While added to the bus the device-notifiers will run and

Re: [PATCH v2 3/4] arm64: Add IOMMU dma_ops

2015-06-18 Thread Yong Wu
On Thu, 2015-06-11 at 16:54 +0100, Robin Murphy wrote: > Taking some inspiration from the arch/arm code, implement the > arch-specific side of the DMA mapping ops using the new IOMMU-DMA layer. > > Whilst proliferating per-device private IOMMU data via dev->archdata is > less than ideal, it will d

Re: [PATCH v2 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-06-18 Thread Yong Wu
Hi Robin, while our drm test, we meet a problem while dma-mmap. On Thu, 2015-06-11 at 16:54 +0100, Robin Murphy wrote: > Taking inspiration from the existing arch/arm code, break out some > generic functions to interface the DMA-API to the IOMMU-API. This will > do the bulk of the heavy lifti

Re: [PATCH v2 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-06-18 Thread Robin Murphy
On 18/06/15 16:00, Yong Wu wrote: Hi Robin, while our drm test, we meet a problem while dma-mmap. On Thu, 2015-06-11 at 16:54 +0100, Robin Murphy wrote: Taking inspiration from the existing arch/arm code, break out some generic functions to interface the DMA-API to the IOMMU-API. This wi

Re: [PATCH v2 2/4] iommu: Implement common IOMMU ops for DMA mapping

2015-06-18 Thread Yong Wu
On Thu, 2015-06-18 at 17:54 +0100, Robin Murphy wrote: > On 18/06/15 16:00, Yong Wu wrote: > > Hi Robin, > > while our drm test, we meet a problem while dma-mmap. > > > > On Thu, 2015-06-11 at 16:54 +0100, Robin Murphy wrote: > >> Taking inspiration from the existing arch/arm code, break out