Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Suravee Suthikulanit
On 4/29/2013 3:10 PM, Don Dutile wrote: On 04/29/2013 03:45 PM, Suravee Suthikulanit wrote: Joerg, We are in the process of implementing AMD IOMMU error handling, and I would like some comments from you and the community. Currently, the AMD IOMMU driver only reports events from the event

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Suravee Suthikulanit
On 4/29/2013 4:42 PM, Don Dutile wrote: On 04/29/2013 04:34 PM, Duran, Leo wrote: I'm wondering if resetting the IOMMU at init-time (once) would clear any BIOS induced noise. Leo Well, depends what you mean by 'reset' (a) setting it up for OS use is effectively a reset, but doesn't

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Don Dutile
On 04/30/2013 10:49 AM, Suravee Suthikulanit wrote: On 4/29/2013 3:10 PM, Don Dutile wrote: On 04/29/2013 03:45 PM, Suravee Suthikulanit wrote: Joerg, We are in the process of implementing AMD IOMMU error handling, and I would like some comments from you and the community. Currently, the

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Don Dutile
On 04/30/2013 10:56 AM, Suravee Suthikulanit wrote: On 4/29/2013 4:42 PM, Don Dutile wrote: On 04/29/2013 04:34 PM, Duran, Leo wrote: I'm wondering if resetting the IOMMU at init-time (once) would clear any BIOS induced noise. Leo Well, depends what you mean by 'reset' (a) setting it up

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Joerg Roedel
On Tue, Apr 30, 2013 at 09:56:22AM -0500, Suthikulpanit, Suravee wrote: This sounds more like issue with the order of how things are initialized in the system. No, the problem is that almost all BIOS-provided IVRS tables are buggy because they do not define a unity-mapped region for devices

Re: [PATCH] Reset PCIe devices to stop ongoing DMA

2013-04-30 Thread Don Dutile
On 04/30/2013 10:54 AM, Sumner, William wrote: I have installed your original patch set (from last November) and tested with three platforms, each with a different IO configuration. On the first platform crashdumps were consistently successful. On the second and third platforms, the reset

Re: RFC: IOMMU/AMD: Error Handling

2013-04-30 Thread Alex Williamson
On Tue, 2013-04-30 at 11:06 -0400, Don Dutile wrote: On 04/30/2013 10:49 AM, Suravee Suthikulanit wrote: On 4/29/2013 3:10 PM, Don Dutile wrote: On 04/29/2013 03:45 PM, Suravee Suthikulanit wrote: Joerg, We are in the process of implementing AMD IOMMU error handling, and I would like

RE: [PATCH 1/2 v15] iommu/fsl: Add additional iommu attributes required by the PAMU driver.

2013-04-30 Thread Sethi Varun-B16395
Hi Joerg, Would you take this patchset for 3.10 merge? Regards Varun -Original Message- From: Sethi Varun-B16395 Sent: Wednesday, April 24, 2013 5:06 PM To: j...@8bytes.org; iommu@lists.linux-foundation.org; linuxppc- d...@lists.ozlabs.org; linux-ker...@vger.kernel.org;

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Konrad Rzeszutek Wilk
On Sat, Apr 27, 2013 at 12:22:28PM +0800, Andrew Cooks wrote: On Fri, Apr 26, 2013 at 6:23 AM, Don Dutile ddut...@redhat.com wrote: On 04/24/2013 10:49 PM, Sethi Varun-B16395 wrote: -Original Message- From: iommu-boun...@lists.linux-foundation.org [mailto:iommu-

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Alex Williamson
On Tue, 2013-04-30 at 13:28 -0400, Konrad Rzeszutek Wilk wrote: On Sat, Apr 27, 2013 at 12:22:28PM +0800, Andrew Cooks wrote: On Fri, Apr 26, 2013 at 6:23 AM, Don Dutile ddut...@redhat.com wrote: On 04/24/2013 10:49 PM, Sethi Varun-B16395 wrote: -Original Message-

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Don Dutile
On 04/30/2013 01:28 PM, Konrad Rzeszutek Wilk wrote: On Sat, Apr 27, 2013 at 12:22:28PM +0800, Andrew Cooks wrote: On Fri, Apr 26, 2013 at 6:23 AM, Don Dutileddut...@redhat.com wrote: On 04/24/2013 10:49 PM, Sethi Varun-B16395 wrote: -Original Message- From:

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Don Dutile
On 04/30/2013 01:28 PM, Konrad Rzeszutek Wilk wrote: On Sat, Apr 27, 2013 at 12:22:28PM +0800, Andrew Cooks wrote: On Fri, Apr 26, 2013 at 6:23 AM, Don Dutileddut...@redhat.com wrote: On 04/24/2013 10:49 PM, Sethi Varun-B16395 wrote: -Original Message- From:

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Konrad Rzeszutek Wilk
Does vfio work with swiotlb and if not, can/should swiotlb be extended? Or does the time and space overhead make it a moot point? It does not work with SWIOTLB as it uses the DMA API, not the IOMMU API. I think you got it reversed. vfio uses iommu api, not dma api. Right. That is what I

Re: RFC: vfio / iommu driver for hardware with no iommu

2013-04-30 Thread Alex Williamson
On Tue, 2013-04-30 at 16:48 -0400, Don Dutile wrote: On 04/30/2013 03:11 PM, Konrad Rzeszutek Wilk wrote: Does vfio work with swiotlb and if not, can/should swiotlb be extended? Or does the time and space overhead make it a moot point? It does not work with SWIOTLB as it uses the DMA API,