From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-in-02.arcor-online.net (mail-in-02.arcor-online.net [151.189.21.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "mx.arcor.de", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTP id A82D5DDF5F for ; Fri, 15 Jun 2007 19:02:01 +1000 (EST) In-Reply-To: <46725411.3080002@ru.mvista.com> References: <1181729973.25586.31.camel@dolphin.spb.rtsoft.ru> <467176EB.7060404@ru.mvista.com> <20070614222620.GA17382@mag.az.mvista.com> <46725411.3080002@ru.mvista.com> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: From: Segher Boessenkool Subject: Re: [RFC/PATCH] powerpc: MPC7450 L2 HW cache flush feature utilization Date: Fri, 15 Jun 2007 11:01:55 +0200 To: "Vladislav D. Buzov" Cc: linuxppc-dev list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > Hrm. I don't think that cache invalidation should be skipped. It is > done after _set_L2CR() explicitly disabled the cache, in part of cache > enabling procedure. Note that cache is flushed only if _set_L2CR() is > called for already enabled cache. So, to skip cache invalidation there > is a need to somehow track whether the cache has been > flushed/invalidated before disabling or not. Since the manual > invalidation does not break anything I think it is better to leave it > as is rather than overload a _set_L2CR() logic. Yeah just leave it, it definitely is the safer thing to do. Do fix the comment though ;-) Segher