From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Rutland Date: Wed, 13 May 2015 18:31:05 +0100 Subject: [U-Boot] [PATCH v2] armv8: caches: Added routine to set non cacheable region In-Reply-To: References: <36afeeb6504576ba92012c597d24b81517b085c7.1430296529.git.michal.simek@xilinx.com> <20150429162950.GD8781@leverpostej> Message-ID: <20150513173105.GC28377@leverpostej> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, May 12, 2015 at 04:46:49AM +0100, Siva Durga Prasad Paladugu wrote: > Hi Mark, > > > > -----Original Message----- > > From: Mark Rutland [mailto:mark.rutland at arm.com] > > Sent: Wednesday, April 29, 2015 10:00 PM > > To: Michal Simek > > Cc: u-boot at lists.denx.de; Albert Aribaud; Marek Vasut; Tom Rini; Siva Durga > > Prasad Paladugu; Varun Sethi; Thierry Reding; Arnab Basu; York Sun > > Subject: Re: [U-Boot] [PATCH v2] armv8: caches: Added routine to set non > > cacheable region > > > > Hi Michal, > > > > On Wed, Apr 29, 2015 at 09:35:35AM +0100, Michal Simek wrote: > > > Added routine mmu_set_region_dcache_behaviour() to set a particular > > > region as non cacheable. > > > > What's the intended use of this? > This is intended to mark a dynamically allocated region as non-cacheable region in runtime. Sure, but why does that region need to be non-cacheable? I assume you want to give the region to some device? Do you ever hand the memory back (and hence need to make it cacehable again)? > There is same kind of routine for armv7 but not for armv8. Do you think that the same functionality to be addressed for armv8 too? > > As per below comment, you are correct, this looks like to be more board specific. While the address of the tables might be board-specific I'd imagine that the manipulation routines can be shared. Thanks, Mark.