Re: Request VFIO inclusion in linux-next

2012-07-02 Thread Alexey Kardashevskiy
On 27/06/12 22:37, Dan Carpenter wrote: > On Mon, Jun 25, 2012 at 10:55:52PM -0600, Alex Williamson wrote: >> Hi, >> >> VFIO has been kicking around for well over a year now and has been >> posted numerous times for review. The pre-requirements are finally >> available in linux-next (or will be in

Re: [git pull] IOMMU fixes for Linux 3.5-rc1

2012-07-02 Thread Joerg Roedel
Subject: [git pull] IOMMU fixes for Linux 3.5-rc1 ^^^ actually the fixes are for v3.5-rc5, sorry On Mon, Jul 02, 2012 at 03:09:10PM +0200, Joerg Roedel wrote: > Hi Linu

[git pull] IOMMU fixes for Linux 3.5-rc1

2012-07-02 Thread Joerg Roedel
Hi Linus, The following changes since commit eee53537c476c947bf7faa1c916d2f5a0ae8ec93: iommu/amd: Fix deadlock in ppr-handling error path (2012-06-04 12:47:44 +0200) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu.git tags/iommu-fixes-v3.5-r

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

2012-07-02 Thread Hiroshi DOYU
alloc_pdir() is called from smmu_iommu_domain_init() with spin_lock held. memory allocations in alloc_pdir() had to be atomic. Instead of converting into atomic allocation, this patch once releases a lock, does the allocation, holds the lock again and then sees if it's raced or not in order to avoi

[v3.6 2/3] iommu/tegra: smmu: Remove unnecessary sanity check at alloc_pdir()

2012-07-02 Thread Hiroshi DOYU
alloc_pdir() is called with smmu->as[?].pdir_page == NULL. No need to check pdir_page again inside alloc_pdir(). Signed-off-by: Hiroshi DOYU Acked-by: Stephen Warren --- drivers/iommu/tegra-smmu.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/drivers/iommu/tegra-smm

[v3.6 1/3] Revert "iommu/tegra: smmu: Fix unsleepable memory allocation"

2012-07-02 Thread Hiroshi DOYU
This reverts commit 64b3aeed242ae55611e0f6286159957873cf968d. For the succeeding commits. Signed-off-by: Hiroshi DOYU --- drivers/iommu/tegra-smmu.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c index 3f3d09d.

[v3.5 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation

2012-07-02 Thread Hiroshi DOYU
allo_pdir() is called in smmu_iommu_domain_init() with spin_lock held. memory allocations in it have to be atomic/unsleepable. Signed-off-by: Hiroshi DOYU Reported-by: Chris Wright Acked-by: Chris Wright --- drivers/iommu/tegra-smmu.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(

Re: [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation

2012-07-02 Thread Hiroshi Doyu
"joerg.roe...@amd.com" wrote @ Mon, 2 Jul 2012 12:42:31 +0200: > On Mon, Jul 02, 2012 at 12:19:03PM +0200, Hiroshi Doyu wrote: > > Hiroshi Doyu wrote @ Mon, 2 Jul 2012 12:13:26 +0200: > > > The other 2 patehs are the replacement of this one. They are > > > exclusive. Both of them are basically

Re: [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation

2012-07-02 Thread joerg.roe...@amd.com
On Mon, Jul 02, 2012 at 12:19:03PM +0200, Hiroshi Doyu wrote: > Hiroshi Doyu wrote @ Mon, 2 Jul 2012 12:13:26 +0200: > > The other 2 patehs are the replacement of this one. They are > > exclusive. Both of them are basically for the same fix. > > I might not get your point. If you plan to take the

Re: [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation

2012-07-02 Thread Hiroshi Doyu
Hiroshi Doyu wrote @ Mon, 2 Jul 2012 12:13:26 +0200: > Hi Joerg, > > Joerg Roedel wrote @ Mon, 2 Jul 2012 11:57:47 +0200: > > > On Wed, Jun 27, 2012 at 12:54:01PM +0300, Hiroshi DOYU wrote: > > > allo_pdir() is called in smmu_iommu_domain_init() with spin_lock > > > held. memory allocations in

Re: [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation

2012-07-02 Thread Hiroshi Doyu
Hi Joerg, Joerg Roedel wrote @ Mon, 2 Jul 2012 11:57:47 +0200: > On Wed, Jun 27, 2012 at 12:54:01PM +0300, Hiroshi DOYU wrote: > > allo_pdir() is called in smmu_iommu_domain_init() with spin_lock > > held. memory allocations in it have to be atomic/unsleepable. > > > > Signed-off-by: Hiroshi DO

Re: [PATCH 1/1] iommu/tegra: smmu: Fix unsleepable memory allocation

2012-07-02 Thread Joerg Roedel
On Wed, Jun 27, 2012 at 12:54:01PM +0300, Hiroshi DOYU wrote: > allo_pdir() is called in smmu_iommu_domain_init() with spin_lock > held. memory allocations in it have to be atomic/unsleepable. > > Signed-off-by: Hiroshi DOYU > Reported-by: Chris Wright > --- > drivers/iommu/tegra-smmu.c |4