Re: [PATCH v1] armv8: MMU: Fix the memory map for RAM

2020-09-04 Thread Tom Rini
On Fri, Sep 04, 2020 at 09:05:51PM +0200, Marek Bykowski wrote: > Hi Patrick, > > First of all thanks for your feedback... > > > >-| > > >|| Read-Only > > > Cacheable | Code |Not-Executable > > >

Re: [PATCH v1] armv8: MMU: Fix the memory map for RAM

2020-09-04 Thread Marek Bykowski
> Will check but after MMU is turned off the pages are no matter anymore so > should be good. With MMU off for armv8 all data accesses are Device_nGnRnE, > all instruction fetches are cacheable, all addresses are RW, XN=1 > (Executable). XN=0 (Executable) meant. Thought would correct not to cause

Re: [PATCH v1] armv8: MMU: Fix the memory map for RAM

2020-09-04 Thread Marek Bykowski
Hi Patrick, First of all thanks for your feedback... > >-| > >|| Read-Only > > Cacheable | Code |Not-Executable > > Code is executable I think... > Good catch, copy/paste error from a rectangle

RE: [PATCH v1] armv8: MMU: Fix the memory map for RAM

2020-09-04 Thread Patrick DELAUNAY
Hi Marek, > From: U-Boot On Behalf Of Marek Bykowski > Sent: jeudi 3 septembre 2020 02:01 > To: tr...@konsulko.com; s...@chromium.org; u-boot@lists.denx.de > Cc: Marek Bykowski > Subject: [PATCH v1] armv8: MMU: Fix the memory map for RAM > > From: Marek Bykowski >

[PATCH v1] armv8: MMU: Fix the memory map for RAM

2020-09-02 Thread Marek Bykowski
From: Marek Bykowski The objective of this patch is to impose the correct attributes to the RAM memory for the ARM CPU, as shown in the diagram below: -- Non-Cached || Read-Write Ordered | Peripherals |Not-Executab