From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gw1.transmode.se (gw1.transmode.se [213.115.205.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E40F2B7BD0 for ; Wed, 30 Sep 2009 20:01:41 +1000 (EST) In-Reply-To: <20090930090002.GA2928@compile2.chatsunix.int.mrv.com> References: <1253843480.7103.492.camel@pasglop> <20090929012106.GA22798@compile2.chatsunix.int.mrv.com> <1254208057.5771.7.camel@pasglop> <1254212198.5256.0.camel@pasglop> <20090929210331.GA25779@laura.chatsunix.int.mrv.com> <20090930090002.GA2928@compile2.chatsunix.int.mrv.com> Subject: Re: [PATCH] powerpc/8xx: fix regression introduced by cache coherency rewrite To: Rex Feany Message-ID: From: Joakim Tjernlund Date: Wed, 30 Sep 2009 11:58:02 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Cc: "linuxppc-dev@ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Rex Feany wrote on 30/09/2009 11:00:02: > > Thus spake Joakim Tjernlund (joakim.tjernlund@transmode.se): > > > > Ok, I have made some minor tweaks and added debug code in > > > do_page_fault(). Would be great if you could try on both > > > .31 and top of tree. > > > > > > Jocke > > > > OOPS, found a bug. Use this one instead: > > .31 - no change, it worked before your patch and it works after. > None of your debugging printks show up. I tried removing the tlbil_va() > from do_dcache_icache_coherency() and userspace goes back to be being > slow/non functional. > > top of tree - userspace is slow and unstable, random segfaults, > and none of your debugging printks show up :( OK, something strange is going on. I am starting to suspect that there is some other problem here. If my patch is any good you should be able to use dcbx insn in copy_tofrom_user(). You could try changing all CONFIG_8xx to CONFIG_8xx_deleted arch/powerpc/lib/copy_32.S and see if that works and if you see any debug prints. Jocke