[BUGREPORT] Intel X58 Boards don't boot after "iommu/vt-d: Make root entry visible for hardware right after allocation"

2016-04-22 Thread Dheeraj CVR
I am currently running the following 2 setups. Intel Xeon X5670 Intel DX58SO (x58) Intel I7 980 MSI Big Bang X-Power (x58) I am using IOMMU along with VFIO to passthrough a VGA card on both of my setups. Everything worked fine till kernel 4.1, but after the introduction of "iommu/vt-d: Make root

Re: [PATCH v7 00/10] KVM PCIe/MSI passthrough on ARM/ARM64: kernel part 1/3: iommu changes

2016-04-22 Thread Alex Williamson
On Fri, 22 Apr 2016 14:31:18 +0200 Eric Auger wrote: > Hi Alex, > On 04/21/2016 09:32 PM, Alex Williamson wrote: > > On Thu, 21 Apr 2016 14:18:09 +0200 > > Eric Auger wrote: > > > >> Hi Alex, Robin, > >> On 04/19/2016 06:56 PM, Eric Auger wrote: > >>> This series introduces the dma-reserved

Re: [PATCH 6/7] iommu/arm-smmu: Decouple context format from kernel config

2016-04-22 Thread Robin Murphy
On 21/04/16 17:30, Will Deacon wrote: Hi Robin, On Wed, Apr 13, 2016 at 06:13:02PM +0100, Robin Murphy wrote: The way the driver currently forces an AArch32 or AArch64 context format based on the kernel config and SMMU architecture version is suboptimal, in that it makes it very hard to support

Re: [PATCH 4/7] io-64-nonatomic: Add relaxed accessor variants

2016-04-22 Thread Robin Murphy
On 21/04/16 17:18, Will Deacon wrote: On Wed, Apr 13, 2016 at 06:13:00PM +0100, Robin Murphy wrote: Whilst commit 9439eb3ab9d1 ("asm-generic: io: implement relaxed accessor macros as conditional wrappers") makes the *_relaxed forms of I/O accessors universally available to drivers, in cases wher

Re: [PATCH v7 6/7] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP

2016-04-22 Thread Robin Murphy
On 22/04/16 12:39, Eric Auger wrote: Hi Robin, On 04/22/2016 01:16 PM, Robin Murphy wrote: Hi Eric, Alex, On 19/04/16 18:24, Eric Auger wrote: Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu(-v3). Indeed the irq_remapping capability is abstracted on irqchip side for ARM as opposed to Intel

Re: [PATCH v7 1/8] genirq/msi: Add a new MSI_FLAG_IRQ_REMAPPING flag

2016-04-22 Thread Thomas Gleixner
On Fri, 22 Apr 2016, Eric Auger wrote: > Robin, > On 04/22/2016 01:02 PM, Robin Murphy wrote: > > Hi Eric, > > > > On 19/04/16 18:13, Eric Auger wrote: > >> Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING > >> meant to tell the domain supports IRQ REMAPPING, also known as

Re: [PATCH v7 01/10] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-04-22 Thread Eric Auger
Ho Robin, On 04/22/2016 04:49 PM, Robin Murphy wrote: > On 22/04/16 13:00, Eric Auger wrote: >> Hi Robin, >> On 04/22/2016 01:31 PM, Robin Murphy wrote: >>> On 20/04/16 16:58, Eric Auger wrote: Hi Robin, On 04/20/2016 02:47 PM, Robin Murphy wrote: > Hi Eric, > > On 19/04/16 17

Re: [PATCH v7 03/10] iommu: introduce a reserved iova cookie

2016-04-22 Thread Eric Auger
Hi Robin, On 04/22/2016 03:02 PM, Eric Auger wrote: > Hi Robin, > On 04/22/2016 02:36 PM, Robin Murphy wrote: >> On 20/04/16 17:14, Eric Auger wrote: >>> Hi Robin, >>> On 04/20/2016 02:55 PM, Robin Murphy wrote: On 19/04/16 17:56, Eric Auger wrote: > This patch introduces some new fields i

Re: [PATCH v7 01/10] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-04-22 Thread Robin Murphy
On 22/04/16 13:00, Eric Auger wrote: Hi Robin, On 04/22/2016 01:31 PM, Robin Murphy wrote: On 20/04/16 16:58, Eric Auger wrote: Hi Robin, On 04/20/2016 02:47 PM, Robin Murphy wrote: Hi Eric, On 19/04/16 17:56, Eric Auger wrote: Introduce a new DOMAIN_ATTR_MSI_MAPPING domain attribute. If sup

Re: [v8, 1/7] Documentation: DT: update Freescale DCFG compatible

2016-04-22 Thread Mark Rutland
On Fri, Apr 22, 2016 at 02:27:38PM +0800, Yangbo Lu wrote: > Update Freescale DCFG compatible with 'fsl,-dcfg' instead > of 'fsl,ls1021a-dcfg' to include more chips. > > Signed-off-by: Yangbo Lu > --- > Changes for v8: > - Added this patch > --- > Documentation/devicetree/bindings/arm/fsl.

Re: [PATCH v7 05/10] iommu/dma-reserved-iommu: reserved binding rb-tree and helpers

2016-04-22 Thread Robin Murphy
On 20/04/16 17:18, Eric Auger wrote: Robin, On 04/20/2016 03:12 PM, Robin Murphy wrote: On 19/04/16 17:56, Eric Auger wrote: we will need to track which host physical addresses are mapped to reserved IOVA. In that prospect we introduce a new RB tree indexed by physical address. This RB tree onl

Re: [PATCH v7 03/10] iommu: introduce a reserved iova cookie

2016-04-22 Thread Eric Auger
Hi Robin, On 04/22/2016 02:36 PM, Robin Murphy wrote: > On 20/04/16 17:14, Eric Auger wrote: >> Hi Robin, >> On 04/20/2016 02:55 PM, Robin Murphy wrote: >>> On 19/04/16 17:56, Eric Auger wrote: This patch introduces some new fields in the iommu_domain struct, dedicated to reserved iova ma

Re: [PATCH v7 03/10] iommu: introduce a reserved iova cookie

2016-04-22 Thread Robin Murphy
On 20/04/16 17:14, Eric Auger wrote: Hi Robin, On 04/20/2016 02:55 PM, Robin Murphy wrote: On 19/04/16 17:56, Eric Auger wrote: This patch introduces some new fields in the iommu_domain struct, dedicated to reserved iova management. In a similar way as DMA mapping IOVA window, we need to store

Re: [PATCH v7 00/10] KVM PCIe/MSI passthrough on ARM/ARM64: kernel part 1/3: iommu changes

2016-04-22 Thread Eric Auger
Hi Alex, On 04/21/2016 09:32 PM, Alex Williamson wrote: > On Thu, 21 Apr 2016 14:18:09 +0200 > Eric Auger wrote: > >> Hi Alex, Robin, >> On 04/19/2016 06:56 PM, Eric Auger wrote: >>> This series introduces the dma-reserved-iommu api used to: >>> >>> - create/destroy an iova domain dedicated to re

Re: [PATCH v7 1/8] genirq/msi: Add a new MSI_FLAG_IRQ_REMAPPING flag

2016-04-22 Thread Eric Auger
Robin, On 04/22/2016 01:02 PM, Robin Murphy wrote: > Hi Eric, > > On 19/04/16 18:13, Eric Auger wrote: >> Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING >> meant to tell the domain supports IRQ REMAPPING, also known as Interrupt >> Translation Service. On Intel HW this IR

Re: [PATCH v7 01/10] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-04-22 Thread Eric Auger
Hi Robin, On 04/22/2016 01:31 PM, Robin Murphy wrote: > On 20/04/16 16:58, Eric Auger wrote: >> Hi Robin, >> On 04/20/2016 02:47 PM, Robin Murphy wrote: >>> Hi Eric, >>> >>> On 19/04/16 17:56, Eric Auger wrote: Introduce a new DOMAIN_ATTR_MSI_MAPPING domain attribute. If supported, this m

Re: [PATCH v7 6/7] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP

2016-04-22 Thread Eric Auger
Hi Robin, On 04/22/2016 01:16 PM, Robin Murphy wrote: > Hi Eric, Alex, > > On 19/04/16 18:24, Eric Auger wrote: >> Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu(-v3). Indeed the >> irq_remapping capability is abstracted on irqchip side for ARM as >> opposed to Intel IOMMU featuring IRQ remapp

Re: [PATCH v7 01/10] iommu: Add DOMAIN_ATTR_MSI_MAPPING attribute

2016-04-22 Thread Robin Murphy
On 20/04/16 16:58, Eric Auger wrote: Hi Robin, On 04/20/2016 02:47 PM, Robin Murphy wrote: Hi Eric, On 19/04/16 17:56, Eric Auger wrote: Introduce a new DOMAIN_ATTR_MSI_MAPPING domain attribute. If supported, this means the MSI addresses need to be mapped in the IOMMU. x86 IOMMUs typically do

Re: [PATCH v7 6/7] iommu/arm-smmu: do not advertise IOMMU_CAP_INTR_REMAP

2016-04-22 Thread Robin Murphy
Hi Eric, Alex, On 19/04/16 18:24, Eric Auger wrote: Do not advertise IOMMU_CAP_INTR_REMAP for arm-smmu(-v3). Indeed the irq_remapping capability is abstracted on irqchip side for ARM as opposed to Intel IOMMU featuring IRQ remapping HW. So to check IRQ remapping capability, the msi domain needs

Re: [PATCH v7 1/8] genirq/msi: Add a new MSI_FLAG_IRQ_REMAPPING flag

2016-04-22 Thread Robin Murphy
Hi Eric, On 19/04/16 18:13, Eric Auger wrote: Let's introduce a new msi_domain_info flag value, MSI_FLAG_IRQ_REMAPPING meant to tell the domain supports IRQ REMAPPING, also known as Interrupt Translation Service. On Intel HW this IRQ remapping capability is abstracted on IOMMU side while on ARM

Re: [RFC PATCH 09/11] drivers: acpi: implement acpi_dma_configure

2016-04-22 Thread Lorenzo Pieralisi
Hi Andy, On Fri, Apr 22, 2016 at 01:45:38AM +0300, Andy Shevchenko wrote: > On Thu, Apr 14, 2016 at 8:25 PM, Lorenzo Pieralisi > wrote: > > On DT based systems, the of_dma_configure() API implements DMA configuration > > for a given device. On ACPI systems an API equivalent to of_dma_configure()

[git pull] IOMMU Fixes for Linux v4.6-rc3

2016-04-22 Thread Joerg Roedel
Hi Linus, The following changes since commit bf16200689118d19de1b8d2a3c314fc21f5dc7bb: Linux 4.6-rc3 (2016-04-10 17:58:30 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v4.6-rc4 for you to fetch changes up to 98