Message ID | 1364500442-20927-3-git-send-email-Varun.Sethi@freescale.com (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Kumar Gala |
Headers | show |
On Fri, Mar 29, 2013 at 01:23:59AM +0530, Varun Sethi wrote: > Add an iommu domain pointer to device (powerpc) archdata. Devices > are attached to iommu domains and this pointer provides a mechanism > to correlate between a device and the associated iommu domain. This > field is set when a device is attached to a domain. > > Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> This patch needs to be Acked by the PPC maintainers.
Kumar/Ben, Any comments? (Had checked with Ben (on IRC) sometime back, he was fine with this patch) Regards Varun > -----Original Message----- > From: Joerg Roedel [mailto:joro@8bytes.org] > Sent: Tuesday, April 02, 2013 8:39 PM > To: Sethi Varun-B16395 > Cc: Yoder Stuart-B08248; Wood Scott-B07421; iommu@lists.linux- > foundation.org; linuxppc-dev@lists.ozlabs.org; linux- > kernel@vger.kernel.org; galak@kernel.crashing.org; > benh@kernel.crashing.org > Subject: Re: [PATCH 2/5 v11] powerpc: Add iommu domain pointer to device > archdata > > On Fri, Mar 29, 2013 at 01:23:59AM +0530, Varun Sethi wrote: > > Add an iommu domain pointer to device (powerpc) archdata. Devices are > > attached to iommu domains and this pointer provides a mechanism to > > correlate between a device and the associated iommu domain. This > > field is set when a device is attached to a domain. > > > > Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> > > This patch needs to be Acked by the PPC maintainers. > >
On Mar 28, 2013, at 2:53 PM, Varun Sethi wrote: > Add an iommu domain pointer to device (powerpc) archdata. Devices > are attached to iommu domains and this pointer provides a mechanism > to correlate between a device and the associated iommu domain. This > field is set when a device is attached to a domain. > > Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> > --- > - no change in v11. > - no change in v10. > - Added CONFIG_IOMMU_API in v9. > arch/powerpc/include/asm/device.h | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) Acked-by: Kumar Gala <galak@kernel.crashing.org> - k
Hi Joerg, My PAMU driver patches depend on this patch which was Ack by Kumar. Should I resubmit this patch as well? Regards Varun > -----Original Message----- > From: Kumar Gala [mailto:galak@kernel.crashing.org] > Sent: Thursday, April 11, 2013 11:46 PM > To: Sethi Varun-B16395 > Cc: joro@8bytes.org; Yoder Stuart-B08248; Wood Scott-B07421; > iommu@lists.linux-foundation.org; linuxppc-dev@lists.ozlabs.org; linux- > kernel@vger.kernel.org; benh@kernel.crashing.org > Subject: Re: [PATCH 2/5 v11] powerpc: Add iommu domain pointer to device > archdata > > > On Mar 28, 2013, at 2:53 PM, Varun Sethi wrote: > > > Add an iommu domain pointer to device (powerpc) archdata. Devices are > > attached to iommu domains and this pointer provides a mechanism to > > correlate between a device and the associated iommu domain. This > > field is set when a device is attached to a domain. > > > > Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> > > --- > > - no change in v11. > > - no change in v10. > > - Added CONFIG_IOMMU_API in v9. > > arch/powerpc/include/asm/device.h | 6 ++++++ > > 1 files changed, 6 insertions(+), 0 deletions(-) > > Acked-by: Kumar Gala <galak@kernel.crashing.org> > > - k
On Thu, Jun 20, 2013 at 02:29:30PM +0000, Sethi Varun-B16395 wrote: > Hi Joerg, > My PAMU driver patches depend on this patch which was Ack by Kumar. Should I resubmit this patch as well? Yes, please. Add the collected Acked-bys and submit everything that is missing in v3.10-rc6. Joerg
diff --git a/arch/powerpc/include/asm/device.h b/arch/powerpc/include/asm/device.h index 77e97dd..2d5c1c5 100644 --- a/arch/powerpc/include/asm/device.h +++ b/arch/powerpc/include/asm/device.h @@ -28,6 +28,12 @@ struct dev_archdata { void *iommu_table_base; } dma_data; + /* IOMMU domain information pointer. This would be set + * when this device is attached to an iommu_domain. + */ +#ifdef CONFIG_IOMMU_API + void *iommu_domain; +#endif #ifdef CONFIG_SWIOTLB dma_addr_t max_direct_dma_addr; #endif
Add an iommu domain pointer to device (powerpc) archdata. Devices are attached to iommu domains and this pointer provides a mechanism to correlate between a device and the associated iommu domain. This field is set when a device is attached to a domain. Signed-off-by: Varun Sethi <Varun.Sethi@freescale.com> --- - no change in v11. - no change in v10. - Added CONFIG_IOMMU_API in v9. arch/powerpc/include/asm/device.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-)