From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <18119.42120.893384.555002@cargo.ozlabs.ibm.com> Date: Sun, 19 Aug 2007 12:01:44 +1000 From: Paul Mackerras To: Andreas Schwab Subject: Re: 2.6.23-rc3 broken on G5 In-Reply-To: References: <18116.52843.212978.281399@cargo.ozlabs.ibm.com> <18118.41979.148016.177427@cargo.ozlabs.ibm.com> Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Andreas Schwab writes: > 1.25 GB. It also has an nvidia gfx card, in case it matters. Could you try this patch and see if it fixes it? It puts the code back to being a bit closer to what it was before. Paul. diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c index a73d2d7..1cef209 100644 --- a/arch/powerpc/mm/slb.c +++ b/arch/powerpc/mm/slb.c @@ -226,8 +226,12 @@ void slb_initialize(void) vflags = SLB_VSID_KERNEL | vmalloc_llp; /* Invalidate the entire SLB (even slot 0) & all the ERATS */ + asm volatile("isync":::"memory"); + asm volatile("slbmte %0,%0"::"r" (0) : "memory"); + asm volatile("isync; slbia; isync":::"memory"); + slb_shadow_update(PAGE_OFFSET, lflags, 0); - asm volatile("isync; slbia; sync; slbmte %0,%1; isync" :: + asm volatile("slbmte %0,%1; isync" :: "r" (get_slb_shadow()->save_area[0].vsid), "r" (get_slb_shadow()->save_area[0].esid) : "memory");