linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: santosh.shilimkar@ti.com (Santosh Shilimkar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] ARM: decompressor: Fix mmu mapping for non-DRAM address space.
Date: Tue, 08 May 2012 20:13:24 +0530	[thread overview]
Message-ID: <4FA9310C.2@ti.com> (raw)
In-Reply-To: <20120508142337.GH17798@arm.com>

On Tuesday 08 May 2012 07:53 PM, Catalin Marinas wrote:
> On Tue, May 08, 2012 at 03:20:43PM +0100, Santosh Shilimkar wrote:
>> On Tuesday 08 May 2012 07:46 PM, Catalin Marinas wrote:
>>> On Tue, May 08, 2012 at 03:01:57PM +0100, Shilimkar, Santosh wrote:
>>>> From b906ef372f0e2dfa7e1fbc3c87406b1c303d8975 Mon Sep 17 00:00:00 2001
>>>> From: R Sricharan <r.sricharan@ti.com>
>>>> Date: Mon, 7 May 2012 15:11:58 +0530
>>>> Subject: [PATCH] ARM: decompressor: Fix mmu mapping for non-DRAM address
>>>>  space.
>>>>
>>>> ARM decompressor code setups entire 4GB address space pages.
>>>> Out of the 4GB, about 256MB are setup with normal memory attributes
>>>> for needed DRAM and the rest of the address space as Strongly ordered.
>>>>
>>>> But since all the sections are mapped in DOMAIN0(Manager), processor
>>>> like Cortex-A15, can speculatively prefetch from non-DRAM read sensitive
>>>> areas even in the presence of XN(Non-executable). This is because XN
>>>> attribute is ignored when domain is Manager.
>>>>
>>>> This can lead to accesses to non-accessible address regions leading
>>>> to various interconnect violations. The issue is observed on OMAP5.
>>>>
>>>> This patch tries to fix the issue by ensuring that all regions
>>>> are marked as a client domain so that XN attribute is effective.
>>>>
>>>> Signed-off-by: R Sricharan <r.sricharan@ti.com>
>>>> Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
>>>> Cc: Russell King <linux@arm.linux.org.uk>
>>>> Cc: Catalin Marinas <catalin.marinas@arm.com>
>>>> ---
>>>>  arch/arm/boot/compressed/head.S |   10 ++++++++--
>>>>  1 files changed, 8 insertions(+), 2 deletions(-)
>>>>
>>>> diff --git a/arch/arm/boot/compressed/head.S b/arch/arm/boot/compressed/head.S
>>>> index dc7e8ce..a2602b8 100644
>>>> --- a/arch/arm/boot/compressed/head.S
>>>> +++ b/arch/arm/boot/compressed/head.S
>>>> @@ -578,10 +578,12 @@ __setup_mmu:	sub	r3, r4, #16384		@ Page directory size
>>>>  		mov	r9, r0, lsr #18
>>>>  		mov	r9, r9, lsl #18		@ start of RAM
>>>>  		add	r10, r9, #0x10000000	@ a reasonable RAM size
>>>> -		mov	r1, #0x12
>>>> +		mov	r1, #0x02		@ Default executable section
>>>
>>> I think it is simpler if you leave the original code here (with XN)
>>
>> Sounds good. With that updated can I add your ack
> 
> Yes.
Great. Thanks
> 
>> and push it to the patch system ?
> 
> That's up to Russell.
> 
Ofcourse after Russell's ok.

Regards
Santosh

  reply	other threads:[~2012-05-08 14:43 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-07 13:42 [PATCH] ARM: decompressor: Fix mmu mapping for non-DRAM address space Santosh Shilimkar
2012-05-08 12:41 ` Catalin Marinas
2012-05-08 14:01   ` Shilimkar, Santosh
2012-05-08 14:16     ` Catalin Marinas
2012-05-08 14:20       ` Santosh Shilimkar
2012-05-08 14:23         ` Catalin Marinas
2012-05-08 14:43           ` Santosh Shilimkar [this message]
2012-05-08 21:55     ` Russell King - ARM Linux
2012-05-09  8:50       ` Shilimkar, Santosh
2012-05-09 10:23         ` Catalin Marinas
2012-05-09 12:23         ` Russell King - ARM Linux
2012-05-09 12:30           ` Shilimkar, Santosh
2012-05-09 15:48             ` Russell King - ARM Linux
2012-05-09 20:44               ` Buckley, Bryan
2012-05-09 21:40                 ` Russell King - ARM Linux
2012-05-15 18:55                   ` Buckley, Bryan
2012-05-10  7:11               ` Santosh Shilimkar
2012-05-10  8:53                 ` Russell King - ARM Linux
2012-05-10  9:41                   ` Santosh Shilimkar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FA9310C.2@ti.com \
    --to=santosh.shilimkar@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).