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 6AAC5B7B83 for ; Thu, 8 Oct 2009 11:28:28 +1100 (EST) Subject: Re: [PATCH 2/6] 8xx: get rid of _PAGE_HWWRITE dependency in MMU. From: Benjamin Herrenschmidt To: Joakim Tjernlund In-Reply-To: References: <1254948364-30074-1-git-send-email-Joakim.Tjernlund@transmode.se> <1254948364-30074-2-git-send-email-Joakim.Tjernlund@transmode.se> <1254948364-30074-3-git-send-email-Joakim.Tjernlund@transmode.se> <1254950092.2409.7.camel@pasglop> <1254954017.2409.14.camel@pasglop> <1254960296.2733.3.camel@pasglop> Content-Type: text/plain; charset="UTF-8" Date: Thu, 08 Oct 2009 11:28:19 +1100 Message-Id: <1254961699.2417.1.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 Thu, 2009-10-08 at 02:19 +0200, Joakim Tjernlund wrote: > Benjamin Herrenschmidt wrote on 08/10/2009 02:04:56: > > > > > > > Yes it does. If one adds HWEXEC it will fail, right? > > > > Why ? We can just filter out DSISR, we don't really care why it failed > > as long as we know whether it was a store or not. > > > > > Also this count as a read and you could easily end up > > > in the protection case(in 2.4 you do) > > > > I'm not sure what you mean by "the protection case" Again, the C code > > shouldn't care. > > it does, and it should. How else should you know if you try > to read a NA space? Generic code should sort it out in handle_mm_fault() (or earlier if it can't find a VMA at all). The DSISR munging is really not necessary I believe. > 2.4 and 2.6 have the same handling in asm. Yeah but the C code, especially the generic part, is different. > hmm, maybe I should just call C, but 8xx isn't a speed monster so every > cycle counts :) But that's a slow path anyways. > It works if I trap to C for DIRTY too. > Before thinking on porting my old board, I want 2.4 to enjoy > the new TLB code too :) Hehehe. Cheers, Ben.