From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 25 Nov 2009 15:39:48 +0100 (CET) Received: from lechat.rtp-net.org ([88.191.19.38]:56920 "EHLO lechat.rtp-net.org" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S1492872AbZKYOjp (ORCPT ); Wed, 25 Nov 2009 15:39:45 +0100 Received: by lechat.rtp-net.org (Postfix, from userid 5001) id 8F30010081; Wed, 25 Nov 2009 15:48:17 +0100 (CET) Received: from lechat.rtp-net.org (ip6-localhost [IPv6:::1]) by lechat.rtp-net.org (Postfix) with ESMTP id 104F61007D; Wed, 25 Nov 2009 15:48:17 +0100 (CET) From: Arnaud Patard (Rtp) To: Florian Lohoff Cc: Aurelien Jarno , linux-mips@linux-mips.org Subject: Re: Syncing CPU caches from userland on MIPS References: <20091124182841.GE17477@hall.aurel32.net> <20091125140105.GB13938@paradigm.rfc822.org> <87pr76acu2.fsf@lechat.rtp-net.org> <20091125143232.GH13938@paradigm.rfc822.org> Organization: RtpNet Date: Wed, 25 Nov 2009 15:48:16 +0100 In-Reply-To: <20091125143232.GH13938@paradigm.rfc822.org> (Florian Lohoff's message of "Wed\, 25 Nov 2009 15\:32\:32 +0100") Message-ID: <87ljhuacen.fsf@lechat.rtp-net.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 25125 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: arnaud.patard@rtp-net.org Precedence: bulk X-list: linux-mips Florian Lohoff writes: > On Wed, Nov 25, 2009 at 03:39:01PM +0100, Arnaud Patard wrote: >> > Would this only evict stuff from the ICACHE? When trying to execute >> > a just written buffer and with a writeback DCACHE you would need to >> > explicitly writeback the DCACHE to memory and invalidate the ICACHE. >> >> we already though about using BCACHE instead of ICACHE only but it >> didn't make any difference. the bug is still there. > > My understanding is you need both ... > > FLUSH/WRITEBACK the dcache and INVALIDATE the icache - the icache needs > to load the data which is in the dcache via memory. I undertstood that using BCACHE would be better but still, it doesn't solve our issue. Can we please go ahead ? :) Arnaud