From owner-freebsd-arm@FreeBSD.ORG Sat Dec 17 18:46:26 2011 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25B601065670 for ; Sat, 17 Dec 2011 18:46:26 +0000 (UTC) (envelope-from matthieu.kraus@s2008.tu-chemnitz.de) Received: from nick.hrz.tu-chemnitz.de (nick.hrz.tu-chemnitz.de [134.109.228.11]) by mx1.freebsd.org (Postfix) with ESMTP id C1C2E8FC08 for ; Sat, 17 Dec 2011 18:46:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tu-chemnitz.de; s=dkim2010; h=Content-Transfer-Encoding:Content-Type:Mime-Version:Date:Subject:Cc:To:From:Message-ID:References; bh=adSfy8Uysfw2+nD4y3OlBnLTUsq8kq5vFROBOncPPv4=; b=pscBxPUEws0VCJ9EhtJt3Oj8sn9TtjZfO0dmheaWG0HdjswmYNyqMELFENinUQv+HgXqKF9S+eq5bvQI1nUN9T8ociEbZdps+/vnv0vHvoWE2NgXig5moCtPdtqLsRStYan9JL7iilbsHh2cutiGjun82SgMN5K1rUpE9U7mX6g=; Received: from postman.hrz.tu-chemnitz.de ([134.109.133.5] helo=mailbox.hrz.tu-chemnitz.de) by nick.hrz.tu-chemnitz.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RbzH6-0007Dq-Go; Sat, 17 Dec 2011 19:46:24 +0100 Received: from rlydontknow.csn.tu-chemnitz.de ([134.109.92.98] helo=rlydontknow) by mailbox.hrz.tu-chemnitz.de with esmtps (TLSv1:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1RbzH6-0003Yx-CQ; Sat, 17 Dec 2011 19:46:24 +0100 References: <20111217151858.182523ch5m4bclw2@mail.tu-chemnitz.de> <1324143472.3268.147.camel@revolution.hippie.lan> Message-ID: X-Mailer: http://www.courier-mta.org/cone/ From: Matthieu Kraus To: Ian Lepore Date: Sat, 17 Dec 2011 18:46:23 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="US-ASCII" Content-Disposition: inline Content-Transfer-Encoding: 7bit X-Scan-Signature: 83a5f8de2c0ef3b8f39a5f9e6c2450f2 Cc: freebsd-arm@freebsd.org Subject: Re: cesa patch issues X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Dec 2011 18:46:26 -0000 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 > > >