Re: trying to figure out why VT-d isn't working on my kernel -- solved

2012-03-14 Thread Chris Wright
* Chris Friesen (chris.frie...@genband.com) wrote: > On 03/06/2012 10:42 PM, Chris Friesen wrote: > >I've got a current (pulled today) kernel running on a Xeon E5-2648L CPU > >on an Intel motherboard, and I'm trying to get VT-d working without much > >success. > > > >lspci -vv (version 3.1.4) does

Re: [PATCH 07/23] pci, dmar: Update dmar units devices list during hotplug

2012-03-14 Thread Bjorn Helgaas
On Fri, Mar 9, 2012 at 10:32 AM, Yinghai Lu wrote: > On Fri, Mar 9, 2012 at 9:25 AM, Bjorn Helgaas wrote: >> >> Well, it looks like you can change both save_dev_dmaru() *and* >> get_dev_dmaru() to take a struct pci_dev *.  I assumed that would be >> obvious. > > no. > > get_dev_dmaru() have to us

[PATCH] iommu/tegra-gart: fix spin_unlock in map failure path

2012-03-14 Thread Lucas Stach
This must have been messed up while merging, the intention was clearly to unlock there. Signed-off-by: Lucas Stach --- drivers/iommu/tegra-gart.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/iommu/tegra-gart.c b/drivers/iommu/tegra-gart.c index b21598f..77930

Re: [PATCH 07/23] pci, dmar: Update dmar units devices list during hotplug

2012-03-14 Thread Bjorn Helgaas
On Tue, Mar 6, 2012 at 12:13 AM, Yinghai Lu wrote: > When do pci remove/rescan on system that have more iommus, got > > [  894.089745] Set context mapping for c4:00.0 > [  894.110890] mpt2sas3: Allocated physical memory: size(4293 kB) > [  894.112556] mpt2sas3: Current Controller Queue Depth(1883)

Re: [PATCH 07/23] pci, dmar: Update dmar units devices list during hotplug

2012-03-14 Thread Bjorn Helgaas
On Fri, Mar 9, 2012 at 12:06 AM, Yinghai Lu wrote: > On Thu, Mar 8, 2012 at 5:06 PM, Bjorn Helgaas wrote: >> On Tue, Mar 6, 2012 at 12:13 AM, Yinghai Lu wrote: >>> When do pci remove/rescan on system that have more iommus, got >>> >>> [  894.089745] Set context mapping for c4:00.0 >>> [  894.110

Re: trying to figure out why VT-d isn't working on my kernel -- solved

2012-03-14 Thread Chris Friesen
On 03/06/2012 10:42 PM, Chris Friesen wrote: Hi, I've got a current (pulled today) kernel running on a Xeon E5-2648L CPU on an Intel motherboard, and I'm trying to get VT-d working without much success. lspci -vv (version 3.1.4) doesn't show anything related to IOV. (Full output below.) Since

Re: [PATCH v10 3/3] iommu/exynos: Add iommu driver for Exynos Platforms

2012-03-14 Thread InKi Dae
> +static irqreturn_t exynos_sysmmu_irq(int irq, void *dev_id) > +{ > +       /* SYSMMU is in blocked when interrupt occurred. */ > +       struct sysmmu_drvdata *data = dev_id; > +       struct resource *irqres; > +       struct platform_device *pdev; > +       enum EXYNOS_SYSMMU_INTERRUPT_TYPE it

RE: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-14 Thread Krishna Reddy
> > > It should be as follows. > > > unsigned int count = 1 << get_order(size) - order; > > To be precise, as below? > > unsigned int count = 1 << (get_order(size) - order); Minus has more precedence than left shift. "1 << get_order(size) - order;" is equivalent to 1 << (get_order(size) - order

[PATCH] AMD IOMMU: iommu_set_device_table() must not be __init

2012-03-14 Thread Jan Beulich
This function is called from enable_iommus(), which in turn is used from amd_iommu_resume(). Signed-off-by: Jan Beulich --- drivers/iommu/amd_iommu_init.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 3.3-rc6/drivers/iommu/amd_iommu_init.c +++ 3.3-rc6-amd-iommu-sections/drivers/

RE: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-14 Thread Krishna Reddy
> On Wed, Feb 29, 2012 at 04:04:22PM +0100, Marek Szyprowski wrote: > > +static int arm_iommu_mmap_attrs(struct device *dev, struct > vm_area_struct *vma, > > + void *cpu_addr, dma_addr_t dma_addr, size_t size, > > + struct dma_attrs *attrs) > > +{ > > + struct arm_vmr

RE: [PATCHv7 9/9] ARM: dma-mapping: add support for IOMMU mapper

2012-03-14 Thread Krishna Reddy
> > +struct dma_iommu_mapping * > > +arm_iommu_create_mapping(struct bus_type *bus, dma_addr_t base, size_t > > size, > > +int order) > > +{ > > + unsigned int count = (size >> PAGE_SHIFT) - order; > > + unsigned int bitmap_size = BITS_TO_LONGS(count) * sizeof(l

Re: [PATCH 1/2] Isolation groups

2012-03-14 Thread David Gibson
On Tue, Mar 13, 2012 at 10:49:47AM -0600, Alex Williamson wrote: > On Wed, 2012-03-14 at 01:33 +1100, David Gibson wrote: > > On Mon, Mar 12, 2012 at 04:32:54PM -0600, Alex Williamson wrote: > > > Signed-off-by: Alex Williamson > > > --- > > > > > > drivers/base/Kconfig | 10 + > > > driv