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 4351DB7B86 for ; Fri, 9 Oct 2009 00:25:06 +1100 (EST) From: Joakim Tjernlund To: Benjamin Herrenschmidt , "linuxppc-dev@ozlabs.org" , Rex Feany , Scott Wood Subject: [PATCH 3/6] 8xx: invalidate non present TLBs Date: Thu, 8 Oct 2009 15:24:55 +0200 Message-Id: <1255008298-19949-4-git-send-email-Joakim.Tjernlund@transmode.se> In-Reply-To: <1255008298-19949-3-git-send-email-Joakim.Tjernlund@transmode.se> References: <1255008298-19949-1-git-send-email-Joakim.Tjernlund@transmode.se> <1255008298-19949-2-git-send-email-Joakim.Tjernlund@transmode.se> <1255008298-19949-3-git-send-email-Joakim.Tjernlund@transmode.se> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 8xx sometimes need to load a invalid/non-present TLBs in it DTLB asm handler. These must be invalidated separaly as linux mm don't. --- arch/powerpc/mm/fault.c | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/arch/powerpc/mm/fault.c b/arch/powerpc/mm/fault.c index 7699394..72941c7 100644 --- a/arch/powerpc/mm/fault.c +++ b/arch/powerpc/mm/fault.c @@ -39,7 +39,7 @@ #include #include #include - +#include #ifdef CONFIG_KPROBES static inline int notify_page_fault(struct pt_regs *regs) @@ -243,6 +243,12 @@ good_area: goto bad_area; #endif /* CONFIG_6xx */ #if defined(CONFIG_8xx) + /* 8xx sometimes need to load a invalid/non-present TLBs. + * These must be invalidated separately as linux mm don't. + */ + if (error_code & 0x40000000) /* no translation? */ + _tlbil_va(address); + /* The MPC8xx seems to always set 0x80000000, which is * "undefined". Of those that can be set, this is the only * one which seems bad. -- 1.6.4.4