Re: [v3.6 3/3] iommu/tegra: smmu: Fix unsleepable memory allocation at alloc_pdir()

2012-07-17 Thread joerg.roe...@amd.com
On Tue, Jul 17, 2012 at 02:25:24PM +0200, Hiroshi Doyu wrote: > The above spin_lock is always necessary. "as->lock" should be held to > protect "as->pdir_page". Only when "as->pdir_page" is NULL, > "as->pdir_page" would be allocated in "alloc_pdir()". Without this > lock, the following race could h

Re: [v3.6 3/3] iommu/tegra: smmu: Fix unsleepable memory allocation at alloc_pdir()

2012-07-17 Thread Hiroshi Doyu
Hi Joerg, Joerg Roedel wrote @ Tue, 17 Jul 2012 12:09:01 +0200: > On Mon, Jul 02, 2012 at 02:26:38PM +0300, Hiroshi DOYU wrote: > > > Signed-off-by: Hiroshi DOYU > > Reported-by: Chris Wright > > Cc: Chris Wright > > Acked-by: Stephen Warren > > Applied patch 2 and 3 but not patch 1. The r

Re: [PATCH 0/6] OMAP: iommu: hwmod, reset handling and runtime PM

2012-07-17 Thread Ohad Ben-Cohen
+ Paul On Tue, Jul 17, 2012 at 1:11 PM, Joerg Roedel wrote: > On Fri, Jun 15, 2012 at 08:55:58PM -0500, Omar Ramirez Luna wrote: >> Omar Ramirez Luna (6): >> ARM: OMAP: iommu: fix including iommu.h without IOMMU_API selected >> ARM: OMAP3: hwmod data: add mmu data for iva and isp >> ARM: OM

Re: [PATCH 03/27] iommu/amd: Fix sparse warnings

2012-07-17 Thread Joerg Roedel
On Wed, Jul 11, 2012 at 03:38:48PM +0200, Joerg Roedel wrote: > A few sparse warnings fire in drivers/iommu/amd_iommu_init.c. > Fix most of them with this patch. Also fix the sparse > warnings in drivers/iommu/irq_remapping.c while at it. > > Signed-off-by: Joerg Roedel To reduce the size of thi

Re: [PATCH 0/6] OMAP: iommu: hwmod, reset handling and runtime PM

2012-07-17 Thread Joerg Roedel
On Fri, Jun 15, 2012 at 08:55:58PM -0500, Omar Ramirez Luna wrote: > Omar Ramirez Luna (6): > ARM: OMAP: iommu: fix including iommu.h without IOMMU_API selected > ARM: OMAP3: hwmod data: add mmu data for iva and isp > ARM: OMAP4: hwmod data: add mmu hwmod for ipu and dsp > ARM: OMAP3/4: iom

Re: [v3.6 3/3] iommu/tegra: smmu: Fix unsleepable memory allocation at alloc_pdir()

2012-07-17 Thread Joerg Roedel
On Mon, Jul 02, 2012 at 02:26:38PM +0300, Hiroshi DOYU wrote: > Signed-off-by: Hiroshi DOYU > Reported-by: Chris Wright > Cc: Chris Wright > Acked-by: Stephen Warren Applied patch 2 and 3 but not patch 1. The resulting conflicts are solved while merging the next branch. Also I am not happy wi