From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 20209B7BC0 for ; Sat, 3 Oct 2009 18:31:31 +1000 (EST) Subject: Re: [PATCH] powerpc/8xx: fix regression introduced by cache coherency rewrite From: Benjamin Herrenschmidt To: Joakim Tjernlund In-Reply-To: References: <1254212198.5256.0.camel@pasglop> <20090929210331.GA25779@laura.chatsunix.int.mrv.com> <20090930090002.GA2928@compile2.chatsunix.int.mrv.com> <1254350159.5699.21.camel@pasglop> <20091002214949.GA20514@b07421-ec1.am.freescale.net> Content-Type: text/plain; charset="UTF-8" Date: Sat, 03 Oct 2009 18:31:18 +1000 Message-Id: <1254558678.7122.7.camel@pasglop> Mime-Version: 1.0 Cc: Scott Wood , "linuxppc-dev@ozlabs.org" , Rex Feany List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Sat, 2009-10-03 at 10:05 +0200, Joakim Tjernlund wrote: > Cannot shake the feeling that it this snip of code that causes it > lwz r11, 0(r10) /* Get the level 1 entry */ > rlwinm. r10, r11,0,0,19 /* Extract page descriptor page > address */ > beq 2f /* If zero, don't try to find a pte */ > Perhaps we can do something better? I still feel that we need to > force a TLB Error as the TLBMiss does not set DSISR so we have no way > of > knowing if it is an load or store. Can't we manufacture a DSISR and branch to the right function ? Ben.