[PATCH v2 48/49] PCI: Introduce resource_disabled()

2015-07-14 Thread Yinghai Lu
so we can cover !flags and IORESOURCE_DISABLED both. Cc: linux-al...@vger.kernel.org Cc: linux-i...@vger.kernel.org Cc: linux-am33-l...@redhat.com Cc: linuxppc-...@lists.ozlabs.org Cc: linux-s...@vger.kernel.org Cc: sparcli...@vger.kernel.org Cc: linux-...@vger.kernel.org Cc: linux-xte...@linux-xt

[PATCH v2] Intel_irq_remapping: fix a comment error

2015-07-14 Thread Xiaofeng Yan
From: "xiaofeng.yan" change tabke to take. Signed-off-by: xiaofeng.yan Reviewed-by: Jiang Liu --- drivers/iommu/intel_irq_remapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/intel_irq_remapping.c b/drivers/iommu/intel_irq_remapping.c index 5709ae9..8

[PATCH 1/2] iommu/vt-d: Report domain usage in sysfs

2015-07-14 Thread Alex Williamson
Debugging domain ID leakage typically requires long running tests in order to exhaust the domain ID space or kernel instrumentation to track the setting and clearing of bits. A couple trivial intel-iommu specific sysfs extensions make it much easier to expose the IOMMU capabilities and current usa

[PATCH 0/2] iommu/vt-d: Additional sysfs entries

2015-07-14 Thread Alex Williamson
A couple additional sysfs entries for intel-iommu. The number of domains supported and superpages available can all be picked from the value of the VT-d capability register that we already print, but it's much more accessible when split out to human readable values. The domain IDs usage makes tes

[PATCH 2/2] iommu/vt-d: Report superpage support in sysfs

2015-07-14 Thread Alex Williamson
We already have the VT-d capability register printed raw, but it typically involves a trip to the code or the spec to figure out whether superpages are supported. Make this easier with "2M_pages" and "1G_pages" sysfs entries that clearly report Y/N. Signed-off-by: Alex Williamson --- drivers/io

[PATCH] iommu/vt-d: Fix VM domain ID leak

2015-07-14 Thread Alex Williamson
This continues the attempt to fix commit fb170fb4c548 ("iommu/vt-d: Introduce helper functions to make code symmetric for readability"). The previous attempt in commit 71684406905f ("iommu/vt-d: Detach domain *only* from attached iommus") overlooked the fact that dmar_domain.iommu_bmp gets cleared

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

2015-07-14 Thread Catalin Marinas
On Fri, Jul 10, 2015 at 08:19:33PM +0100, Robin Murphy wrote: > +/* > + * IOVAs are IOMMU _input_ addresses, so there still exists the possibility > + * for static bus translation between device output and IOMMU input (yuck). > + */ > +static inline dma_addr_t dev_dma_addr(struct device *dev, dma_a

Re: [RFC 0/6] vSMMU initialization

2015-07-14 Thread Will Deacon
On Tue, Jul 14, 2015 at 03:21:03AM +0100, Varun Sethi wrote: > Hi Will, Hi Varun, > > On Fri, Jun 12, 2015 at 03:20:04PM +0100, Baptiste Reynal wrote: > > > The ARM SMMU has support for 2-stages address translations, allowing a > > > virtual address to be translated at two levels: > > > - Stage 1