Message ID | 1301083471-11284-1-git-send-email-omar.ramirez@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi Hiroshi, On Fri, Mar 25, 2011 at 3:04 PM, Omar Ramirez Luna <omar.ramirez@ti.com> wrote: > Commit d038aee24dcd5a2a0d8547f5396f67ae9698ac8e > "omap: iovmm: don't check 'da' to set IOVMF_DA_FIXED flag", > changes iovmm to receive flags specified by user, however > the upper 16 bits of the flags are wiped by iovmm itself. > > This fixes IOVMF_DA_FIXED flags from being lost, and lets the user > map its desired "device addresses". > > Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> > --- > > v2: > Include missing reference (commit and name) to patch in > description. If no comments, could you ack this patch? Regards, Omar -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
* Hiroshi DOYU <Hiroshi.DOYU@nokia.com> [110418 00:03]: > From: "ext Ramirez Luna, Omar" <omar.ramirez@ti.com> > Subject: Re: [PATCH v2] OMAP: iovmm: fix SW flags passed by user > Date: Fri, 15 Apr 2011 10:49:42 -0500 > > > Hi Hiroshi, > > > > On Fri, Mar 25, 2011 at 3:04 PM, Omar Ramirez Luna <omar.ramirez@ti.com> wrote: > >> Commit d038aee24dcd5a2a0d8547f5396f67ae9698ac8e > >> "omap: iovmm: don't check 'da' to set IOVMF_DA_FIXED flag", > >> changes iovmm to receive flags specified by user, however > >> the upper 16 bits of the flags are wiped by iovmm itself. > >> > >> This fixes IOVMF_DA_FIXED flags from being lost, and lets the user > >> map its desired "device addresses". > >> > >> Signed-off-by: Omar Ramirez Luna <omar.ramirez@ti.com> > >> --- > >> > >> v2: > >> Include missing reference (commit and name) to patch in > >> description. > > > > If no comments, could you ack this patch? > > Tony, please put this in your queue too. I take that as your ack, will queue into fixes. Tony -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/arch/arm/plat-omap/include/plat/iovmm.h b/arch/arm/plat-omap/include/plat/iovmm.h index 32a2f6c..e992b96 100644 --- a/arch/arm/plat-omap/include/plat/iovmm.h +++ b/arch/arm/plat-omap/include/plat/iovmm.h @@ -29,9 +29,6 @@ struct iovm_struct { * lower 16 bit is used for h/w and upper 16 bit is for s/w. */ #define IOVMF_SW_SHIFT 16 -#define IOVMF_HW_SIZE (1 << IOVMF_SW_SHIFT) -#define IOVMF_HW_MASK (IOVMF_HW_SIZE - 1) -#define IOVMF_SW_MASK (~IOVMF_HW_MASK)UL /* * iovma: h/w flags derived from cam and ram attribute diff --git a/arch/arm/plat-omap/iovmm.c b/arch/arm/plat-omap/iovmm.c index 51ef43e..83a37c5 100644 --- a/arch/arm/plat-omap/iovmm.c +++ b/arch/arm/plat-omap/iovmm.c @@ -648,7 +648,6 @@ u32 iommu_vmap(struct iommu *obj, u32 da, const struct sg_table *sgt, return PTR_ERR(va); } - flags &= IOVMF_HW_MASK; flags |= IOVMF_DISCONT; flags |= IOVMF_MMIO; @@ -706,7 +705,6 @@ u32 iommu_vmalloc(struct iommu *obj, u32 da, size_t bytes, u32 flags) if (!va) return -ENOMEM; - flags &= IOVMF_HW_MASK; flags |= IOVMF_DISCONT; flags |= IOVMF_ALLOC; @@ -795,7 +793,6 @@ u32 iommu_kmap(struct iommu *obj, u32 da, u32 pa, size_t bytes, if (!va) return -ENOMEM; - flags &= IOVMF_HW_MASK; flags |= IOVMF_LINEAR; flags |= IOVMF_MMIO; @@ -853,7 +850,6 @@ u32 iommu_kmalloc(struct iommu *obj, u32 da, size_t bytes, u32 flags) return -ENOMEM; pa = virt_to_phys(va); - flags &= IOVMF_HW_MASK; flags |= IOVMF_LINEAR; flags |= IOVMF_ALLOC;