From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from az33egw02.freescale.net (az33egw02.freescale.net [192.88.158.103]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "az33egw02.freescale.net", Issuer "Thawte Premium Server CA" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 996BBB70B0 for ; Wed, 11 Nov 2009 18:00:27 +1100 (EST) Received: from de01smr02.am.mot.com (de01smr02.freescale.net [10.208.0.151]) by az33egw02.freescale.net (8.14.3/az33egw02) with ESMTP id nAAGt8Ie007921 for ; Tue, 10 Nov 2009 09:55:09 -0700 (MST) Received: from az33exm25.fsl.freescale.net (az33exm25.am.freescale.net [10.64.32.16]) by de01smr02.am.mot.com (8.13.1/8.13.0) with ESMTP id nAAGx50c016591 for ; Tue, 10 Nov 2009 10:59:08 -0600 (CST) Message-ID: <4AF99B00.6080504@freescale.com> Date: Tue, 10 Nov 2009 10:55:28 -0600 From: Scott Wood MIME-Version: 1.0 To: Joakim Tjernlund Subject: Re: [PATCH 0/8] 8xx: Misc fixes for buggy insn References: <1257341920-29277-1-git-send-email-Joakim.Tjernlund@transmode.se> <20091106003305.GA15814@loki.buserror.net> <20091109215321.GA4351@loki.buserror.net> <20091109230004.GA24671@loki.buserror.net> <4AF99695.800@freescale.com> In-Reply-To: <4AF99695.800@freescale.com> Content-Type: text/plain; charset=UTF-8; format=flowed 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: , Scott Wood wrote: > Joakim Tjernlund wrote: >> Why does not pinning interact well with CPU15? If pinned, you never get >> a TLB miss for kernel text so that should mitigate the CPU15 problem. > > The nature of the workaround for CPU15 is that we can't keep it pinned > -- we have to take an ITLB miss on every page boundary crossing. If you > try to pin, it'll just be invalidated by the workaround. Except that the invalidation only happens when you take an ITLB miss on an adjacent page, which means we'd likely never get CPU15 protection for kernel code if pinning is enabled. :-( -Scott