From mboxrd@z Thu Jan 1 00:00:00 1970 From: Siva Durga Prasad Paladugu Date: Thu, 14 May 2015 05:01:22 +0000 Subject: [U-Boot] [PATCH v2] armv8: caches: Added routine to set non cacheable region In-Reply-To: <20150513173105.GC28377@leverpostej> References: <36afeeb6504576ba92012c597d24b81517b085c7.1430296529.git.michal.simek@xilinx.com> <20150429162950.GD8781@leverpostej> <20150513173105.GC28377@leverpostej> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mark, > -----Original Message----- > From: Mark Rutland [mailto:mark.rutland at arm.com] > Sent: Wednesday, May 13, 2015 11:01 PM > To: Siva Durga Prasad Paladugu > Cc: Michal Simek; u-boot at lists.denx.de; Albert Aribaud; Marek Vasut; Tom > Rini; Varun Sethi; Thierry Reding; Arnab Basu; York Sun > Subject: Re: [U-Boot] [PATCH v2] armv8: caches: Added routine to set non > cacheable region > > 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? Yes, this is used for device. > > Do you ever hand the memory back (and hence need to make it cacehable > again)? No, In my case , I don't need to make it cacheable back... > > > 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. Ok, I got it, I will check how to make these manipulation routines generic and will send v2. Thanks, Siva > > Thanks, > Mark.