From mboxrd@z Thu Jan 1 00:00:00 1970 From: Aneesh V Date: Mon, 08 Aug 2011 13:54:10 +0530 Subject: [U-Boot] [PATCH v2] ARM926ejs: Add routines to invalidate D-Cache In-Reply-To: <4E3E36ED.5080601@aribaud.net> References: <1312519452-22926-1-git-send-email-hong.xu@atmel.com> <4E3B8A16.50604@aribaud.net> <4E3B8FF3.2070400@atmel.com> <4E3B91C1.2040307@aribaud.net> <4E3B9753.3020002@ti.com> <4E3BC715.9070706@atmel.com> <4E3BCA55.5070003@ti.com> <4E3BCDEB.8090106@aribaud.net> <4E3BD953.8050502@ti.com> <4E3BED77.1080508@aribaud.net> <4E3C0566.2020303@ti.com> <4E3E36ED.5080601@aribaud.net> Message-ID: <4E3F9D2A.1030002@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Albert, On Sunday 07 August 2011 12:25 PM, Albert ARIBAUD wrote: > Hi Aneesh, > > (cutting quotation for readability) > > Le 05/08/2011 16:59, Aneesh V a ?crit : >> Hi Albert, > >> I don't dispute that having buffers aligned is the ideal scenario. The >> question is about error-handling the situation when this requirement is >> not met. > > I understand what you're trying to achieve in this respect, that is, > make the code as correct as it can be under unspecified conditions. I > believe we are differing in how we construe 'as correct as it can be': > you want to make the implementation of the called function as correct as > it can be' at the expense of introducing a non-intuitive behavior (flush > while invalidating), while I prefer the overall system to be as correct > as it can be by 'doing exactly what it says on the tin', i.e. > invalidating only. I understand your point of view now. I shall update my cache fix series to invalidate only the aligned part of the buffer and to print a big warning when the buffer is not aligned. best regards, Aneesh