Re: [Patch V2 1/4] iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit

2016-03-21 Thread Wei Yang
On Mon, Mar 21, 2016 at 05:53:15PM +0100, Thomas Gleixner wrote: >On Mon, 21 Mar 2016, Wei Yang wrote: >> On Sun, Mar 20, 2016 at 04:42:29PM +0100, Thomas Gleixner wrote: >> >On Sun, 20 Mar 2016, Wei Yang wrote: >> > >> >> hdr in struct dmar_drhd_unit is used to point the DMAR hardware unit >> >>

Re: [PATCH] arm64/dma-mapping: Add DMA_ATTR_ALLOC_SINGLE_PAGES support

2016-03-21 Thread Will Deacon
On Thu, Mar 03, 2016 at 02:54:26AM +0800, Yong Wu wrote: > Sometimes it is not worth for the iommu allocating big chunks. > Here we enable DMA_ATTR_ALLOC_SINGLE_PAGES which could help avoid to > allocate big chunks while iommu allocating buffer. > > More information about this attribute, please ch

Re: [Patch V2 1/4] iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit

2016-03-21 Thread Thomas Gleixner
On Mon, 21 Mar 2016, Wei Yang wrote: > On Sun, Mar 20, 2016 at 04:42:29PM +0100, Thomas Gleixner wrote: > >On Sun, 20 Mar 2016, Wei Yang wrote: > > > >> hdr in struct dmar_drhd_unit is used to point the DMAR hardware unit copied > >> at the end of struct dmar_drhd_unit. One zero-sized array may be

Re: [v6, 3/5] dt: move guts devicetree doc out of powerpc directory

2016-03-21 Thread Leo Li
On Thu, Mar 17, 2016 at 12:57 PM, Rob Herring wrote: > On Thu, Mar 17, 2016 at 12:11 PM, Arnd Bergmann wrote: >> On Thursday 17 March 2016 12:06:40 Rob Herring wrote: >>> > diff --git a/Documentation/devicetree/bindings/powerpc/fsl/guts.txt >>> > b/Documentation/devicetree/bindings/soc/fsl/guts.

[PATCH] iommu/rockchip: Don't feed NULL res pointers to devres

2016-03-21 Thread Tomeu Vizoso
If we do, devres prints a "invalid resource" string in the error loglevel. Signed-off-by: Tomeu Vizoso --- drivers/iommu/rockchip-iommu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/iommu/rockchip-iommu.c b/drivers/iommu/rockchip-iommu.c index a6f593a0a29e..0253ab35c33b 100644

Re: [PATCH v5 3/9] dma-mapping: add dma_{map,unmap}_resource

2016-03-21 Thread Christoph Hellwig
On Thu, Mar 17, 2016 at 01:33:51PM +0200, Laurent Pinchart wrote: > The good news is that, given that no code uses this new API at the moment, > there isn't much to audit. The patch series implements the resource mapping > for arch/arm only, and makes use of it in the rcar-dmac driver only. Would

Re: [Patch V2 1/4] iommu/vt-d: replace *hdr with hdr[0] in struct dmar_drhd_unit

2016-03-21 Thread Wei Yang
Hi, Thomas Glad to receive your comment. Please see my reply below. On Sun, Mar 20, 2016 at 04:42:29PM +0100, Thomas Gleixner wrote: >On Sun, 20 Mar 2016, Wei Yang wrote: > >> hdr in struct dmar_drhd_unit is used to point the DMAR hardware unit copied >> at the end of struct dmar_drhd_unit. One z

Re: [PATCH] iommu/rockchip: Don't feed NULL res pointers to devres

2016-03-21 Thread Javier Martinez Canillas
Hello Tomeu, On Mon, Mar 21, 2016 at 8:00 AM, Tomeu Vizoso wrote: > If we do, devres prints a "invalid resource" string in the error > loglevel. > > Signed-off-by: Tomeu Vizoso > --- Reviewed-by: Javier Martinez Canillas Best regards, Javier ___ iom