From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from bos-spam.mrv.com (mx5.mrv.com [140.179.254.12]) by ozlabs.org (Postfix) with ESMTP id 5345BB7B71 for ; Tue, 6 Oct 2009 09:42:26 +1100 (EST) Date: Mon, 5 Oct 2009 15:42:18 -0700 From: Rex Feany To: Joakim Tjernlund Subject: Re: [PATCH 0/6] PowerPc 8xx TLB/MMU fixes Message-ID: <20091005224218.GA5273@compile2.chatsunix.int.mrv.com> References: <1254744999-3158-1-git-send-email-Joakim.Tjernlund@transmode.se> <20091005220420.GA27923@compile2.chatsunix.int.mrv.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Scott Wood , "linuxppc-dev@ozlabs.org" List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Thus spake Joakim Tjernlund (joakim.tjernlund@transmode.se): > > I got this oops: > > > > Unable to handle kernel paging request for data at address 0x00000000 > > Faulting instruction address: 0xc000e110 > > Oops: Kernel access of bad area, sig: 11 [#1] > > MRV NM2 > > NIP: c000e110 LR: c000d520 CTR: 1006bf40 > > REGS: c2203dd0 TRAP: 0300 Not tainted (2.6.32-rc3-00014-gcea49b0-dirty) > > MSR: 00009032 CR: 44022422 XER: 20000000 > > DAR: 00000000, DSISR: c0000000 > > TASK = c21c18c0[69] 'rc.sysinit' THREAD: c2202000 > > GPR00: 00000401 c2203e80 c21c18c0 c2203f50 00000000 4000d032 00000000 00000000 > > GPR08: 10093eb4 00000000 00009032 c000d514 021c1ad0 10095c50 03ffb000 10006500 > > GPR16: 10006508 00000000 00000000 00000000 100a2fc8 021c4238 00000000 00000400 > > GPR24: c21a2700 00000002 40000000 00000000 00000000 c2203f50 00000000 00000011 > > NIP [c000e110] do_page_fault+0x44/0x5fc > > LR [c000d520] handle_page_fault+0xc/0x80 > > Call Trace: > > [c2203e80] [c000e58c] do_page_fault+0x4c0/0x5fc (unreliable) > > [c2203f40] [c000d520] handle_page_fault+0xc/0x80 > > Instruction dump: > > 800300a0 7cba2b78 54170036 2f970400 7c9c2378 830200e0 54b6018c 40be000c > > 74ba4820 3ac00000 813d0080 3bc00000 <80a90000> 54a036be 2f80001f 40be0100 > > ---[ end trace 99a4d88f7e2f1b60 ]--- > > > > this happens in do_page_fault becaose regs->nip is null, so > > regs or regs->nip is NULL? Either one does not make sense > In any case it might be a secondary problem as DAR is NULL already when you > enter the page fault. I assumed it was NIP because ... I'm not sure why. TRAP() above dereferences regs, and that didn't fail, but I didn't see that until now. > > insn = *((unsigned long *)regs->nip); > > c000e110: 80 a9 00 00 lwz r5,0(r9) > > hmm, I wonder if you managed to invalidate the a kernel TLB? > Are you using pinned kernel TLBs? I'm not using pinned kernel TLBs, should I be? take care! /rex.