Received: from mailapp01.imgtec.com ([195.59.15.196]:31273 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23993061AbcLMTSimCmMd (ORCPT ); Tue, 13 Dec 2016 20:18:38 +0100 Message-ID: <58504983.2050608@imgtec.com> Date: Tue, 13 Dec 2016 11:18:27 -0800 From: Leonid Yegoshin MIME-Version: 1.0 Subject: Re: [RFC] MIPS: Add cacheinfo support References: <20161208011626.20885-1-justinpopo6@gmail.com> <5849EC43.2070802@imgtec.com> <584A0281.3040505@imgtec.com> <3004fca6-3688-65bb-7c86-248603482088@gmail.com> <584F0C71.5010004@imgtec.com> <6981ff1e-685e-2df7-4b6e-c67c3aa735e7@gmail.com> <584F3E9D.9030501@imgtec.com> In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: "Maciej W. Rozycki" Cc: Florian Fainelli , Justin Chen , linux-mips@linux-mips.org, bcm-kernel-feedback-list@broadcom.com, Justin Chen Message-ID: <20161213191827.z97dvZn-saQ3kAcELvRwgK8p8izRCwTCBfsv-WouBtU@z> On 12/13/2016 03:09 AM, Maciej W. Rozycki wrote: > On Tue, 13 Dec 2016, Leonid Yegoshin wrote: > >> Well, I prefer the collection of 3 flags: >> >> flush_required - or flush to next level is required to force coherency >> between this level and next after update of this level >> invalidate_required - or invalidate is required to force coherency between >> this level and next after update of next level >> coherent_to_level - object is coherent with this level (only one domain of >> coherency on this level is assumed) > A "flush" has always been an ambiguous term -- meaning anything from > "write-back", through "write-back+invalidate" to "invalidate". What is > "flush" is supposed to exactly mean here? If specifically any of the two > formers (the latter is obviously the other flag), then I suggest using the > respective name, or otherwise if it is meant to be generic "do what is > needed", then perhaps "synchronize" will work, like with the name of the > SYNCI instruction? > Well, I am not expert in choosing names, you know. I just would like to make a distinguishing between "transfer data from this level to next one" - any way - writeback or write-back-invalidate, and "clear data in this level to be pulled on demand from next level". This is an information purpose as Florian described, so details can be skipped. The only useful info here - some efforts are needed after event (see above) and that efforts are not cheap from performance point of view. If we put here details then it is a long way because we need a lot of details, see my original post. However, I would like to differ "flush" and "invalidate" because it is triggered by different kind of event (from upstream or from downstream). - Leonid.