* [PATCH] omap: iommu: fix pte attributes for super section
@ 2011-05-04 22:45 Suman Anna
0 siblings, 0 replies; 4+ messages in thread
From: Suman Anna @ 2011-05-04 22:45 UTC (permalink / raw)
To: linux-arm-kernel
The PTE programming causes a 16MB entry to be interpreted
as a 4K entry because of the bitwise check, and therefore does
not set the attributes properly in the first-level descriptor
table. The bitwise check has been replaced appropriately.
Signed-off-by: Suman Anna <s-anna@ti.com>
---
arch/arm/mach-omap2/iommu2.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mach-omap2/iommu2.c b/arch/arm/mach-omap2/iommu2.c
index adb083e..c21fbe6 100644
--- a/arch/arm/mach-omap2/iommu2.c
+++ b/arch/arm/mach-omap2/iommu2.c
@@ -225,7 +225,8 @@ static u32 omap2_get_pte_attr(struct iotlb_entry *e)
attr = e->mixed << 5;
attr |= e->endian;
attr |= e->elsz >> 3;
- attr <<= ((e->pgsz & MMU_CAM_PGSZ_4K) ? 0 : 6);
+ attr <<= (((e->pgsz == MMU_CAM_PGSZ_4K) ||
+ (e->pgsz == MMU_CAM_PGSZ_64K)) ? 0 : 6);
return attr;
}
--
1.7.0.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] omap: iommu: fix pte attributes for super section
@ 2011-05-10 17:25 Anna, Suman
2011-05-16 7:11 ` Hiroshi DOYU
0 siblings, 1 reply; 4+ messages in thread
From: Anna, Suman @ 2011-05-10 17:25 UTC (permalink / raw)
To: linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] omap: iommu: fix pte attributes for super section
2011-05-10 17:25 [PATCH] omap: iommu: fix pte attributes for super section Anna, Suman
@ 2011-05-16 7:11 ` Hiroshi DOYU
2011-06-28 19:46 ` Anna, Suman
0 siblings, 1 reply; 4+ messages in thread
From: Hiroshi DOYU @ 2011-05-16 7:11 UTC (permalink / raw)
To: linux-arm-kernel
From: "ext Anna, Suman" <s-anna@ti.com>
Subject: [PATCH] omap: iommu: fix pte attributes for super section
Date: Tue, 10 May 2011 10:25:17 -0700
> From 5796d8d8a0ea5aee342b78ca6ead229971cff6c5 Mon Sep 17 00:00:00 2001
> From: Suman Anna <s-anna@ti.com>
> Date: Wed, 4 May 2011 17:45:37 -0500
> Subject: [PATCH] omap: iommu: fix pte attributes for super section
>
> The PTE programming causes a 16MB entry to be interpreted
> as a 4K entry because of the bitwise check, and therefore does
> not set the attributes properly in the first-level descriptor
> table. The bitwise check has been replaced appropriately.
>
> Signed-off-by: Suman Anna <s-anna@ti.com>
Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Thanks, checked with OMAP2/3 TRM.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] omap: iommu: fix pte attributes for super section
2011-05-16 7:11 ` Hiroshi DOYU
@ 2011-06-28 19:46 ` Anna, Suman
0 siblings, 0 replies; 4+ messages in thread
From: Anna, Suman @ 2011-06-28 19:46 UTC (permalink / raw)
To: linux-arm-kernel
On Mon, May 16, 2011 at 2:11 AM, Hiroshi DOYU <Hiroshi.DOYU@nokia.com> wrote:
> From: "ext Anna, Suman" <s-anna@ti.com>
> Subject: [PATCH] omap: iommu: fix pte attributes for super section
> Date: Tue, 10 May 2011 10:25:17 -0700
>
>> From 5796d8d8a0ea5aee342b78ca6ead229971cff6c5 Mon Sep 17 00:00:00 2001
>> From: Suman Anna <s-anna@ti.com>
>> Date: Wed, 4 May 2011 17:45:37 -0500
>> Subject: [PATCH] omap: iommu: fix pte attributes for super section
>>
>> The PTE programming causes a 16MB entry to be interpreted
>> as a 4K entry because of the bitwise check, and therefore does
>> not set the attributes properly in the first-level descriptor
>> table. The bitwise check has been replaced appropriately.
>>
>> Signed-off-by: Suman Anna <s-anna@ti.com>
> Acked-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Tony,
Can this patch be queued up for the next rc, or is there any reason
for this to remain archived?
https://patchwork.kernel.org/patch/774932/
regards
Suman
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-06-28 19:46 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-10 17:25 [PATCH] omap: iommu: fix pte attributes for super section Anna, Suman
2011-05-16 7:11 ` Hiroshi DOYU
2011-06-28 19:46 ` Anna, Suman
-- strict thread matches above, loose matches on Subject: below --
2011-05-04 22:45 Suman Anna
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).