Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 May 2013 08:54:55 -0600
From:      Ian Lepore <ian@FreeBSD.org>
To:        Jakob Alvermark <jakob@alvermark.net>
Cc:        freebsd-arm@FreeBSD.org
Subject:   Re: Allwinner A13: Fatal kernel mode data abort: 'Translation Fault (S)'
Message-ID:  <1367420095.1180.68.camel@revolution.hippie.lan>
In-Reply-To: <63837.85.229.93.125.1367417396.squirrel@alvermark.net>
References:  <63837.85.229.93.125.1367417396.squirrel@alvermark.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2013-05-01 at 16:09 +0200, Jakob Alvermark wrote:
> Hi again,
> 
> In my effort to get FreeBSD running on the A13 I got a little further,
> however not quite so far as I was hoping for.
> 
> Any clues on this?
> 
> Jakob
> 
> sun5i#go 0x40200100
> ## Starting application at 0x40200100 ...
> KDB: debugger backends: ddb
> KDB: current backend: ddb
> Copyright (c) 1992-2013 The FreeBSD Project.
> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
> 	The Regents of the University of California. All rights reserved.
> FreeBSD is a registered trademark of The FreeBSD Foundation.
> FreeBSD 10.0-CURRENT #0 r250141M: Wed May  1 14:15:44 CEST 2013
>     root@test10:/home/jakob/a13-gonzo/obj/arm.armv6/usr/src/sys/A13 arm
> FreeBSD clang version 3.3 (trunk 178860) 20130405
> WARNING: WITNESS option enabled, expect reduced performance.
> CPU: Cortex A8-r3 rev 2 (Cortex-A core)
>  Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext
>  WB disabled EABT branch prediction enabled
> LoUU:2 LoC:2 LoUIS:1
> Cache level 1:
>  32KB/64B 4-way data cache WT WB Read-Alloc
>  32KB/64B 4-way instruction cache Read-Alloc
> Cache level 2:
>  256KB/64B 8-way unified cache WT WB Read-Alloc Write-Alloc
> real memory  = 536870912 (512 MB)
> avail memory = 511303680 (487 MB)
> random device not loaded; using insecure entropy
> simplebus0: <Flattened device tree simple bus> on fdtbus0
> a13_ccm0: <Allwinner Clock Control Module> mem 0x1c20000-0x1c203ff on
> simplebus0
> a13_timer0: <Allwinner A13 timer> mem 0x1c20c00-0x1c20c8f irq 22 on
> simplebus0
> 
> vm_fault(0xc0716ff8, 0, 1, 0) -> 1
> Fatal kernel mode data abort: 'Translation Fault (S)'
> trapframe: 0xc072aad4
> FSR=00000005, FAR=00000008, spsr=a00000d3
> r0 =00000000, r1 =00000004, r2 =00000001, r3 =c2f93b48
> r4 =00000120, r5 =00000040, r6 =c30ac500, r7 =00000000
> r8 =c0716508, r9 =00000000, r10=00000016, r11=c072ab40
> r12=c0716da4, ssp=c072ab20, slr=c04b0c64, pc =c04c013c
> 
> [ thread pid 0 tid 100000 ]
> Stopped at      arm_unmask_irq+0x24:    ldr     r2, [r0, #0x008]
> db>

It looks like the timer driver tried to set up interrupts before the
interrupt controller driver had attached.  The arm_unmask_irq() routine
tried to dereference a NULL pointer, I'm thinking from where it died it
was a10_aintc_sc.

-- Ian





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1367420095.1180.68.camel>