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 4DA3EB7B8A for ; Tue, 6 Oct 2009 07:29:24 +1100 (EST) Subject: Re: [PATCH] powerpc/8xx: fix regression introduced by cache coherency rewrite From: Benjamin Herrenschmidt To: Scott Wood In-Reply-To: <20091005192806.GC3576@loki.buserror.net> References: <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> <1254521073.7122.5.camel@pasglop> <20091005192806.GC3576@loki.buserror.net> Content-Type: text/plain; charset="UTF-8" Date: Tue, 06 Oct 2009 07:29:15 +1100 Message-Id: <1254774555.7122.38.camel@pasglop> Mime-Version: 1.0 Cc: "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 Mon, 2009-10-05 at 14:28 -0500, Scott Wood wrote: > Yes, it hits ptep_set_access_flags() and adding _tlbil_va there helps (I > didn't put it in the filter function, because that doesn't take address as a > parameter). I'd misread your suggestion as referring to the various changes > to set_pte_filter() that were posted. > > As for unconditionally invalidating in set_pte_filter(), that doesn't boot > for me unless I check for kernel addresses -- I guess we populate page > tables that overlap the pinned large page region? Good point. I think we do on 8xx. Does doing it in set_pte_filter() (with the kernel check) makes any difference ? faster ? slower ? no visible change ? Cheers, Ben.