From owner-freebsd-mips@FreeBSD.ORG Thu Aug 5 13:13:23 2010 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24D551065678 for ; Thu, 5 Aug 2010 13:13:23 +0000 (UTC) (envelope-from waynegong83@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id D07338FC0A for ; Thu, 5 Aug 2010 13:13:22 +0000 (UTC) Received: by gwj23 with SMTP id 23so3047589gwj.13 for ; Thu, 05 Aug 2010 06:13:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=Ae/TRtIP2XFUEGeMvWCGA+sMDGv4Gdb46Y7ygB0q3Lo=; b=qOAprr2qCw4fHWeMak/odoxon9ieJ7x+IAPgEOYIFDnvpS9IqQH0q5fFa5TRxHDQMP 4Dx9ven28zR9oE1DcvlZDPS7eFIblZQ46sFN1PwY/AOv5J16ecqtqYOTUQHy5GKGM1nK UNXx14WyNULs8s4LbHY9oz9LTjUDdl3guDnMI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=ZBjzQ9m9kqQ2RRUJzr7rB6dIy1xHBYho/pYdTeu5Q6PvEz5eLzsOterBZV//HIzGKV j0Odc+SpFJVhsQd7jXS6sMxON9OajDAFvC6pbOeDzGUJPQi2ipcFg+ntoSC+G6HkXnzB et4MYJSRTQAERRlWLX+WhZ81OohUvzmoiB3Xo= MIME-Version: 1.0 Received: by 10.100.107.6 with SMTP id f6mr11773912anc.220.1281014001139; Thu, 05 Aug 2010 06:13:21 -0700 (PDT) Received: by 10.220.186.72 with HTTP; Thu, 5 Aug 2010 06:13:20 -0700 (PDT) In-Reply-To: References: Date: Thu, 5 Aug 2010 18:43:20 +0530 Message-ID: From: waynegong L To: "Jayachandran C." Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-mips@freebsd.org Subject: Re: HEADSUP : n64 changes in HEAD. X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Aug 2010 13:13:23 -0000 Hi Jayachandran, I have been waiting for n64 support and happy to see this mail. But unfortunately i got a panic with the from HEAD(revision 210854) on my octeon board. Please find the information below. I have built rootfs in to the kernel and the rootfs is stripped one with 30M size. Also SMP support is disabled in the config file. -----------------panic info------------------------------------------------------------------ Trying to mount root from ufs:/dev/md0 warning: no time-of-day clock registered, system time will not be set accurately Lookup of /dev for devfs, error: 2 start_init: trying /sbin/init panic: userret: Returning with 1 locks held. KDB: enter: panic [ thread pid 1 tid 100001 ] Stopped at kdb_enter+0x90: lui at,0x0 A bit of debugging pointed has taken me to lockmgr. db> show alllocks Process 1 (init) thread 0xc000000007926000 (100001) exclusive lockmgr devfs (devfs) r = 0 (0xc000000007fb8cf0) locked @ /freebsd/testmainline/ head/sys/kern/vfs_subr.c:2101 db> show lockedvnods Locked vnodes db> show lock 0xc000000007fb8cf0 class: lockmgr name: devfs state: XLOCK: 0xc000000007926000 (tid 100001, pid 1, "init") waiters: none spinners: none db> show thread 100001 Thread 100001 at 0xc000000007926000: proc (pid 1): 0xc000000007923000 name: init stack: 0xc00000002589c000-0xc00000002589dfff flags: 0x1000004 pflags: 0 state: RUNNING (CPU 0) priority: 180 container lock: sched lock (0xffffffff8240a338) db> ps pid ppid pgrp uid state wmesg wchan cmd 15 0 0 0 DL mdwait 0xc0000000080a0800 [md0] 14 0 0 0 DL - 0xffffffff82404eb4 [schedcpu] 13 0 0 0 DL sdflush 0xffffffff825b00c8 [softdepflush] 9 0 0 0 DL syncer 0xffffffff825ac2a0 [syncer] 8 0 0 0 DL vlruwt 0xc0000000080a9448 [vnlru] 7 0 0 0 DL psleep 0xffffffff825abe50 [bufdaemon] 6 0 0 0 RL [pagezero] 5 0 0 0 DL psleep 0xffffffff825b0e8c [pagedaemon] 12 0 0 0 DL - 0xffffffff82404eb4 [yarrow] 4 0 0 0 DL - 0xffffffff82401950 [g_down] 3 0 0 0 DL - 0xffffffff82401948 [g_up] 2 0 0 0 DL - 0xffffffff82401938 [g_event] 11 0 0 0 WL (threaded) [intr] 100015 I [swi0: uart uart] 100014 I [swi5: +] 100012 I [swi6: task queue] 100011 I [swi6: Giant taskq] 100005 I [swi3: vm] 100004 I [swi1: netisr 0] 100003 I [swi4: clock] 10 0 0 0 RL [idle] 1 0 0 0 RL CPU 0 [init] 0 0 0 0 DLs (threaded) [kernel] 100017 D deadlkre 0xffffffff82404eb4 [deadlkres] 100016 D - 0xc0000000079b4380 [octe taskq] 100013 D - 0xc000000007972e00 [kqueue taskq] 100010 D - 0xc000000007955500 [thread taskq] 100000 D sched 0xffffffff824019c8 [swapper] My env is as below. TARGET=mips TARGET_ABI=n64 TARGET_CPUTYPE=mips64 TARGET_BIG_ENDIAN=y My kernel build was successful, Also buildworld/install world was done with the below components as suggested. -DWITHOUT_CDDL -DWITHOUT_USB -DWITHOUT_BLUETOOTH Please let me know if you need any more info. Thanks, Wayne. On Wed, Aug 4, 2010 at 7:52 PM, Jayachandran C. wrote: > I have checked the n64 changes into HEAD. The changes areto add 3 level > page tables for n64 compilation. Juli's work (from octeon branch) had > added > most of kernel and userspace code for n64, other than the page table code, > so this is just one of the last pieces of the whole effort. I have already > checked in fixes to many user/kernel components for n64 during the past > week. > > I have tried quite a bit to make sure that the new 32 bit code in pmap.c is > completely equivalent to the earlier code. If you see any regressions in > the o32 compilation, please let me know. > > To try out 64 bit, the environment and commands are: > -- > export TARGET=mips > export TARGET_ARCH=mips > export TARGET_CPUTYPE=mips64 > export TARGET_BIG_ENDIAN=y > export TARGET_ABI=n64 > export KERNCONF=XLR64 > make buildworld -DWITHOUT_CDDL -DWITHOUT_USB -DWITHOUT_BLUETOOTH > make buildkernel > -- > > The n64 kernel and userspace comes up in multi-user, and is pretty stable. > > There is still some work to do: > - SMP is still untested > - PTE entries are still 32 bit, physmem >4GB is not yet supported > - ddb does not fully work yet > - thread libraries are not tested yet. > - page table page allocation code needs to be updated to use XKPHYS. > - buildworld still has some components (see -D above) which does not > compile. > - code for 32 bit compatibility is still not there, so only n64 executables > run on n64 kernel. > > But other than this, if you come across any crash or failure in n64 please > let me know. > > Thanks, > JC. > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org" >