Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Dec 2011 18:46:23 +0000
From:      Matthieu Kraus <matthieu.kraus@s2008.tu-chemnitz.de>
To:        Ian Lepore <freebsd@damnhippie.dyndns.org>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: cesa patch issues
Message-ID:  <cone.1324147583.974458.1719.500@rlydontknow>
References:  <20111217151858.182523ch5m4bclw2@mail.tu-chemnitz.de> <1324143472.3268.147.camel@revolution.hippie.lan>

next in thread | previous in thread | raw e-mail | index | archive | help
vm_fault(0xc35789c8, 0, 2, 0) -> 1
Fatal kernel mode data abort: 'Translation Fault (P)'
trapframe: 0xd2069bb0
FSR=00000017, FAR=00000010, spsr=80000013
r0 =0000001f, r1 =00000000, r2 =00000000, r3 =00000004
r4 =00000000, r5 =00000000, r6 =00000000, r7 =c373d898
r8 =c3736000, r9 =00000000, r10=c3736000, r11=d2069c38
r12=00000000, ssp=d2069bfc, slr=c0c02f40, pc =c0c22d58

[ thread pid 1439 tid 100057 ]
Stopped at      cpu_initclocks+0x3340:  str     r4, [r3, #0x00c]

Tracing pid 1439 tid 100057 td 0xc390f5c0
cpu_initclocks() at cpu_initclocks+0x3114
scp=0xc0c22b2c rlv=0xc0c246c0 (cpu_initclocks+0x4ca8)
        rsp=0xd2069c3c rfp=0xd2069ca0
        r10=0xc3736000 r9=0xc37410c0
        r8=0xc374141c r7=0x00000000 r6=0x00000000 r5=0x00000000
        r4=0xc373d898
cpu_initclocks() at cpu_initclocks+0x46e8
scp=0xc0c24100 rlv=0xc0ba9348 (crypto_freesession+0x20c)
        rsp=0xd2069ca4 rfp=0xd2069cc4
        r10=0xc3a3f000 r9=0xc3a16940
        r8=0xc3731600 r7=0x00000000 r6=0x00000000 r5=0xc3a3d000
        r4=0xc35d8600
crypto_freesession() at crypto_freesession+0x11c
scp=0xc0ba9258 rlv=0xc0ba9704 (crypto_dispatch+0x68)
        rsp=0xd2069cc8 rfp=0xd2069ce0
        r6=0xc3a3d000 r5=0x01000000
        r4=0x00000006
crypto_dispatch() at crypto_dispatch+0x10
scp=0xc0ba96ac rlv=0xc0baa7cc (crypto_getreq+0xcec)
        rsp=0xd2069ce4 rfp=0xd2069d80
        r6=0xc3a3d000 r5=0xc3a16900
        r4=0x00000000
crypto_getreq() at crypto_getreq+0x498
scp=0xc0ba9f78 rlv=0xc0af0a04 (kern_ioctl+0x2d8)
        rsp=0xd2069d84 rfp=0xd2069db4
        r10=0xc3a15c00 r9=0x00000000
        r8=0xc390f5c0 r7=0x00000004 r6=0xc01c6367 r5=0x00000000
        r4=0xc3731600
kern_ioctl() at kern_ioctl+0x10
scp=0xc0af073c rlv=0xc0af0b70 (sys_ioctl+0x114)
        rsp=0xd2069db8 rfp=0xd2069de4
        r10=0xc390f5c0 r8=0xc3731600
        r7=0xd2069e40 r6=0x00000000 r5=0x0000001c r4=0xc01c6367
sys_ioctl() at sys_ioctl+0x10
scp=0xc0af0a6c rlv=0xc0c14a20 (swi_handler+0x268)
        rsp=0xd2069de8 rfp=0xd2069ea8
        r10=0x00000004 r8=0x00000000
        r7=0xc3a14888 r6=0x00000000 r5=0xc390f5c0 r4=0x00000001
swi_handler() at swi_handler+0x10
scp=0xc0c147c8 rlv=0xc0c06b98 (swi_entry+0x3c)
        rsp=0xd2069eac rfp=0xbfffe924
        r8=0x20407038 r7=0x00000008
        r6=0x00000008 r5=0x20407030 r4=0x00000001


Ian Lepore writes:

> On Sat, 2011-12-17 at 15:18 +0100, Matthieu Kraus wrote: 
>> [...]
>> However I can't seem to get my modifications to work as I always get:
>> 
>> vm_fault(0xc35789c8, 0, 2, 0) -> 1
>> Fatal kernel mode data abort: 'Translation Fault (P)'
>> trapframe: 0xd2069bb0
>> FSR=00000017, FAR=00000010, spsr=80000013
>> r0 =0000001f, r1 =00000000, r2 =00000000, r3 =00000004
>> r4 =00000000, r5 =00000000, r6 =00000000, r7 =c373d898
>> r8 =c3736000, r9 =00000000, r10=c3736000, r11=d2069c38
>> r12=00000000, ssp=d2069bfc, slr=c0c02f40, pc =c0c22d58
>> 
>> [ thread pid 1439 tid 100057 ]
>> Stopped at      cpu_initclocks+0x3340:  str     r4, [r3, #0x00c]
>> 
>> I'm completely new to kernel development, so any hints on how to  
>> further debug the issue (traces in ddb didn't seem very informational  
>> to me) would be highly appreciated.
>> 
>> kind regards,
>> Matthieu Kraus
> 
> All that can be seen from what you posted is that the immediate cause of
> the error is a bad value in register r3.  The ddb backtrace that wasn't
> helpful to you might contain clues that are meaningful to others; you
> should post it. 
> 
> -- Ian
> 
> 
> 



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