Re: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-06 Thread Joerg Roedel
On Mon, Feb 04, 2013 at 05:31:51PM -0600, Stuart Yoder wrote: On Mon, Feb 4, 2013 at 12:56 PM, Joerg Roedel j...@8bytes.org wrote: Okay. So if your architecture supports sizes over 2^32 then size_t probably is already 64bits, right? No, on a 32-bit platform size_t would generally be

RE: [PATCH 4/5] iommu: Add domain window handling functions

2013-02-06 Thread Sethi Varun-B16395
Thanks Joerg. -Original Message- From: Joerg Roedel [mailto:j...@8bytes.org] Sent: Wednesday, February 06, 2013 3:56 PM To: Stuart Yoder Cc: Sethi Varun-B16395; iommu@lists.linux-foundation.org; linux- ker...@vger.kernel.org Subject: Re: [PATCH 4/5] iommu: Add domain window

Re: IO_PAGE_FAULTs on unity mapped regions during amd_iommu_init() in Linux 3.4

2013-02-06 Thread Joerg Roedel
On Tue, Feb 05, 2013 at 06:57:21AM -0700, Shuah Khan wrote: Thanks much. I will hang on to this test system for testing your fix. Okay, here is the simple fix for v3.8-rc6. I guess it is not straighforward to port it to v3.4, but it should be doable. From

Re: PCI warning on boot 3.8.0-rc1

2013-02-06 Thread Alex Williamson
On Wed, 2013-02-06 at 07:49 -0800, Stephen Hemminger wrote: On Mon, 04 Feb 2013 15:41:24 -0700 Alex Williamson alex.william...@redhat.com wrote: On Mon, 2013-02-04 at 13:28 -0700, Alex Williamson wrote: On Mon, 2013-02-04 at 10:36 -0800, Stephen Hemminger wrote: I think

[PATCH 1/1] iommu/tegra: smmu: Fix incorrect mask for regbase

2013-02-06 Thread Hiroshi Doyu
This fixes kernel crash because of BUG() in register address validation. Signed-off-by: Hiroshi Doyu hd...@nvidia.com --- Verified with Tegra 114 based Dalmore board --- drivers/iommu/tegra-smmu.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/tegra-smmu.c

Re: [PATCH 1/1] iommu/tegra: smmu: Fix incorrect mask for regbase

2013-02-06 Thread Stephen Warren
On 02/06/2013 10:38 AM, Hiroshi Doyu wrote: This fixes kernel crash because of BUG() in register address validation. Signed-off-by: Hiroshi Doyu hd...@nvidia.com Tested-by: Stephen Warren swar...@nvidia.com (on Tegra30 Cardhu, with this patch applied on top of next-20130206 plus some other

[PATCH 1/1] iommu/exynos: Make exynos_sysmmu_disable static

2013-02-06 Thread Sachin Kamat
'exynos_sysmmu_disable' is used only in this file and can be made static. Signed-off-by: Sachin Kamat sachin.ka...@linaro.org --- drivers/iommu/exynos-iommu.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c

Re: PCI warning on boot 3.8.0-rc1

2013-02-06 Thread Stephen Hemminger
On Mon, 04 Feb 2013 15:41:24 -0700 Alex Williamson alex.william...@redhat.com wrote: On Mon, 2013-02-04 at 13:28 -0700, Alex Williamson wrote: On Mon, 2013-02-04 at 10:36 -0800, Stephen Hemminger wrote: I think drivers/pci/search.c is identical between 3.7 and 3.8-rc1. Is this the

Re: IO_PAGE_FAULTs on unity mapped regions during amd_iommu_init() in Linux 3.4

2013-02-06 Thread Shuah Khan
On Wed, 2013-02-06 at 13:12 +0100, Joerg Roedel wrote: On Tue, Feb 05, 2013 at 06:57:21AM -0700, Shuah Khan wrote: Thanks much. I will hang on to this test system for testing your fix. Okay, here is the simple fix for v3.8-rc6. I guess it is not straighforward to port it to v3.4, but it

[PATCH] amd_iommu: IO_PAGE_FAULTs on unity mapped regions during amd_iommu_init()

2013-02-06 Thread Shuah Khan
When dma_ops are initialized the unity mappings are created. The init_device_table_dma() function makes sure DMA from all devices is blocked by default. This opens a short window in time where DMA to unity mapped regions is blocked by the IOMMU. Make sure this does not happen by initializing the