From owner-freebsd-arm@FreeBSD.ORG Tue Mar 5 06:08:44 2013 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 06CC4FB8 for ; Tue, 5 Mar 2013 06:08:44 +0000 (UTC) (envelope-from ThomasSkibo@sbcglobal.net) Received: from nm17.access.bullet.mail.sp2.yahoo.com (nm17.access.bullet.mail.sp2.yahoo.com [98.139.44.144]) by mx1.freebsd.org (Postfix) with ESMTP id ACB1923E for ; Tue, 5 Mar 2013 06:08:43 +0000 (UTC) Received: from [98.139.44.106] by nm17.access.bullet.mail.sp2.yahoo.com with NNFMP; 05 Mar 2013 06:08:43 -0000 Received: from [67.195.14.108] by tm11.access.bullet.mail.sp2.yahoo.com with NNFMP; 05 Mar 2013 06:08:43 -0000 Received: from [127.0.0.1] by smtp105.sbc.mail.gq1.yahoo.com with NNFMP; 05 Mar 2013 06:08:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sbcglobal.net; s=s1024; t=1362463723; bh=dzvrUKCqLGtZa2LvP2GP+puoc18g8WrdwI6eAVH0jt4=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=GKPpe3Acy4HiBhe/D7FYI0EsXEmhJrwW4RAnsvh4+uDUjZWOM+xWcJmLauGOVJSiH7opa2ZvNEvbt3RGu171Dqbev4ZFyP4ADmbd4M3C929yBF5PraZz578yC3jVXBrs0ors6LJ4EWAwXRI70iPhn7agT14JhW6ZGlOOh7yaxXQ= X-Yahoo-Newman-Id: 38756.74236.bm@smtp105.sbc.mail.gq1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: fZHsrjMVM1meGC6_i9KXh0sIBZAD_vjpX4.i0kFLP8r1e5o fkkcY7OfLTlP58dVTzMSqpRKeobkagNRNMlba5CKl_vUFMuQiOANi7H5nr0W nvwbIuIbNtGLCp4bdKPZoHsIoItrep.iHslIet2.iEt.MqurEHJUadcIAXWh wPK1Y9hV.l7uxWKah7MqUo738vhCKoYFr6cCckySw8qS8bqzrxlGw9OrX6zn 07cQf80qBVPOPoLUYcdVAqYk09__UOZhs5U8RbZ97Sw_kWmQKzn2tMnlLchl JdxpXR99FdZ8_odFFdtIonjPS8pQUOc.b8GEaCFRvjrObMuxz1D0MaU2SkwW ptfU4X7D.KaBzcySzspKkaYDL.cH7eb220umSMGOP4BhiUMAOjMTOifeW3sp fx5t_qHLRXcJcsPeNDr1HYsA9V6x_vD0hH7eDlgWwR.9w.yB2lI8EILm.fYg a5eTPVj0gbc7Oz0sdJm.88sOscIl.fB0VQdKb5bFwpxABbpbGsCIuNMVV.A- - X-Yahoo-SMTP: tUxoRneswBA21azLM.3ybMESf0mC2bFhTbmt0VU5ervH0kqi5lo- Received: from [192.168.1.9] (ThomasSkibo@71.139.174.219 with plain) by smtp105.sbc.mail.gq1.yahoo.com with SMTP; 04 Mar 2013 22:08:42 -0800 PST Message-ID: <51358BEB.50603@sbcglobal.net> Date: Mon, 04 Mar 2013 22:08:43 -0800 From: Thomas Skibo User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130216 Thunderbird/17.0.3 MIME-Version: 1.0 To: freebsd-arm@freebsd.org Subject: Re: Weird kernel mode data abort panic on Zedboard. References: <51354125.4060500@sbcglobal.net> In-Reply-To: <51354125.4060500@sbcglobal.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Mar 2013 06:08:44 -0000 Oleksandr Tymoshenko : > > Just a hunch here - looks like TLB entry is not update properly. Might > be missing > PTE_SYNC in pmap-v6.c. Or current PTE_SYNC implementation does not cover > all requirements for your platform. I'd say latter - but without proper > debugging > it's just guesswork. > Thanks. On my platform, PMAP_NEEDS_PTE_SYNC was 0 and I convinced myself earlier that the page tables were properly configured with write-through caching and didn't need PTE_SYNC() anyway. But, I just forced it use the run-time configurable pmap_needs_pte_sync variable which is set to 1 upon initialization and the problem went away. Setting pmap_needs_pte_sync to 0 subsequently didn't make the problem reappear so maybe it has something to do with early initialization of the page tables. I'll get more time to look at it later in the week. By the way, PTE_SYNC() doesn't properly write-back the level 2 cache on my platform because it needs physical addresses. But, it looks like that doesn't matter. --Thomas -- -------- Thomas Skibo ThomasSkibo@sbcglobal.net