From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pz0-f42.google.com (mail-pz0-f42.google.com [209.85.210.42]) by ozlabs.org (Postfix) with ESMTP id B09F9B6EED for ; Fri, 6 Aug 2010 04:33:45 +1000 (EST) Received: by pzk30 with SMTP id 30so3761927pzk.15 for ; Thu, 05 Aug 2010 11:33:44 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20100805123725.63d009b1@schlenkerla.am.freescale.net> References: <20100805123725.63d009b1@schlenkerla.am.freescale.net> Date: Thu, 5 Aug 2010 11:33:44 -0700 Message-ID: Subject: Re: Relocating bootwrapper causes kernel panic From: Shawn Jin To: Scott Wood Content-Type: text/plain; charset=ISO-8859-1 Cc: ppcdev List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> > Before the flat tree was accessed, I checked the DTLB and didn't find >> > any entry related to 0xc0be4300. After the exception, I found the >> > following DTLBs. >> > >> > 30 : 02 =A0c0be4000 =A0 4KB ------ -> 00000000 >> > 31 : 00 =A0fa000000 =A0 8MB VI-S-M -> fa000000 >> > >> > The DTLB#30 doesn't seem right. Why would it map to 0x0? I think this >> > should be something like 00be4000? > > Note that the valid bit is clear -- it's not mapping to anything. Did the exception handler try to set a TLB here but the setting was not completed? >> I think the cause is clear now. But how to fix it? Two questions: >> 2. If the DTLB miss exception handler is not the right guy to load a >> proper TLB entry, how can I set one entry based on the link_address >> and the address of the flat dt blob? > > Given how early in the boot process it is, it's probably going to need > to be handled specially. What APIs can I use to set up DTLBs? Thanks, -Shawn.