From owner-freebsd-ppc@FreeBSD.ORG Mon Mar 31 11:07:07 2008 Return-Path: Delivered-To: freebsd-ppc@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 767071065843 for ; Mon, 31 Mar 2008 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 67A1F8FC1F for ; Mon, 31 Mar 2008 11:07:07 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2VB77S9039013 for ; Mon, 31 Mar 2008 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2VB76HH039009 for freebsd-ppc@FreeBSD.org; Mon, 31 Mar 2008 11:07:06 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 31 Mar 2008 11:07:06 GMT Message-Id: <200803311107.m2VB76HH039009@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 11:07:07 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. f power/121407 ppc [panic] Won't boot up; strange error message. 2 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f 2 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Apr 1 05:27:07 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C89D1065670; Tue, 1 Apr 2008 05:27:07 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: from staff.cyber.mmu.edu.my (staff.cyber.mmu.edu.my [203.106.62.12]) by mx1.freebsd.org (Postfix) with ESMTP id 1F8918FC18; Tue, 1 Apr 2008 05:27:07 +0000 (UTC) (envelope-from root@mmu.edu.my) Received: by staff.cyber.mmu.edu.my (Postfix, from userid 0) id DC6094D491F; Tue, 1 Apr 2008 13:07:03 +0800 (MYT) Received: from mx2.freebsd.org (mx2.freebsd.org [69.147.83.53]) by mmu.edu.my (Postfix) with ESMTP id 423EE55E43D for ; Fri, 28 Mar 2008 22:37:55 +0800 (MYT) Received: from hub.freebsd.org (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx2.freebsd.org (Postfix) with ESMTP id 77EE01FFE66; Fri, 28 Mar 2008 14:36:18 +0000 (UTC) (envelope-from owner-freebsd-current@freebsd.org) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id 30CB210656E0; Fri, 28 Mar 2008 14:36:17 +0000 (UTC) (envelope-from owner-freebsd-current@freebsd.org) Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FAE5106564A; Fri, 28 Mar 2008 14:35:59 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [205.211.164.50]) by mx1.freebsd.org (Postfix) with ESMTP id 2984B8FC25; Fri, 28 Mar 2008 14:35:58 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1.sentex.ca [199.212.134.4]) by smarthost2.sentex.ca (8.14.2/8.14.2) with ESMTP id m2SEZwUD084093; Fri, 28 Mar 2008 10:35:58 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.2/8.14.2) with ESMTP id m2SEZwq6035792; Fri, 28 Mar 2008 10:35:58 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id ED94973039; Fri, 28 Mar 2008 09:35:57 -0500 (EST) From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080328143557.ED94973039@freebsd-current.sentex.ca> Date: Fri, 28 Mar 2008 09:35:57 -0500 (EST) X-Virus-Scanned: ClamAV version 0.92, clamav-milter version 0.92 on clamscanner1 X-Virus-Status: Clean X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Sender: owner-freebsd-current@freebsd.org Errors-To: owner-freebsd-current@freebsd.org Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Apr 2008 05:27:07 -0000 TB --- 2008-03-28 14:35:14 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-03-28 14:35:14 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-03-28 14:35:14 - cleaning the object tree TB --- 2008-03-28 14:35:52 - cvsupping the source tree TB --- 2008-03-28 14:35:52 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-03-28 14:35:57 - building world (CFLAGS=-O -pipe) TB --- 2008-03-28 14:35:57 - cd /src TB --- 2008-03-28 14:35:57 - /usr/bin/make -B buildworld TB --- 2008-03-28 14:35:57 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-03-28 14:35:57 - ERROR: failed to build world TB --- 2008-03-28 14:35:57 - tinderbox aborted TB --- 1.98 user 2.70 system 43.88 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full _______________________________________________ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 2 11:07:42 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A8CF106567C; Wed, 2 Apr 2008 11:07:41 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 2FFDB8FC19; Wed, 2 Apr 2008 11:07:41 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2c.sentex.ca [64.7.153.30]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m32B7emN061397; Wed, 2 Apr 2008 07:07:40 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.14.2/8.14.2) with ESMTP id m32B7eYY092386; Wed, 2 Apr 2008 07:07:40 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 7A3AB73039; Wed, 2 Apr 2008 06:07:40 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080402110740.7A3AB73039@freebsd-current.sentex.ca> Date: Wed, 2 Apr 2008 06:07:40 -0500 (EST) X-Virus-Scanned: ClamAV 0.92.1/6526/Tue Apr 1 08:33:51 2008 clamav-milter version 0.92.1 on clamscanner3 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 11:07:42 -0000 TB --- 2008-04-02 10:50:17 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-04-02 10:50:17 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-04-02 10:50:17 - cleaning the object tree TB --- 2008-04-02 10:50:49 - cvsupping the source tree TB --- 2008-04-02 10:50:49 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-04-02 10:50:55 - building world (CFLAGS=-O -pipe) TB --- 2008-04-02 10:50:55 - cd /src TB --- 2008-04-02 10:50:55 - /usr/bin/make -B buildworld >>> World build started on Wed Apr 2 10:50:57 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] rm -f .depend mkdep -f .depend -a -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -D_PTHREADS_INVARIANTS /src/lib/libthr/arch/powerpc/powerpc/pthread_md.c /src/lib/libthr/sys/thr_error.c /src/lib/libthr/thread/thr_affinity.c /src/lib/libthr/thread/thr_attr.c /src/lib/libthr/thread/thr_barrier.c /src/lib/libthr/thread/thr_barrierattr.c /src/lib/libthr/thread/thr_cancel.c /src/lib/libthr/thread/thr_clean.c /src/lib/libthr/thread/thr_concurrency.c /src/lib/libthr/thread/thr_cond.c /src/lib/libthr/thread/thr_condattr.c /src/lib/libthr/thread/thr_create.c /src/lib/libthr/thread/thr_detach.c /src/lib/libthr/thread/thr_equal.c /src/lib/libthr/thread/thr_event.c /src/lib/libthr/thread/thr_exit.c /src/lib/libthr/thread/thr_fork.c /src/lib/libthr/thread/th r_getprio.c /src/lib/libthr/thread/thr_getcpuclockid.c /src/lib/libthr/thread/thr_getschedparam.c /src/lib/libthr/thread/thr_info.c /src/lib/libthr/thread/thr_init.c /src/lib/libthr/thread/thr_join.c /src/lib/libthr/thread/thr_list.c /src/lib/libthr/thread/thr_kern.c /src/lib/libthr/thread/thr_kill.c /src/lib/libthr/thread/thr_main_np.c /src/lib/libthr/thread/thr_multi_np.c /src/lib/libthr/thread/thr_mutex.c /src/lib/libthr/thread/thr_mutexattr.c /src/lib/libthr/thread/thr_once.c /src/lib/libthr/thread/thr_printf.c /src/lib/libthr/thread/thr_pspinlock.c /src/lib/libthr/thread/thr_resume_np.c /src/lib/libthr/thread/thr_rtld.c /src/lib/libthr/thread/thr_rwlock.c /src/lib/libthr/thread/thr_rwlockattr.c /src/lib/libthr/thread/thr_self.c /src/lib/libthr/thread/thr_sem.c /src/lib/libthr/thread/thr_setprio.c /src/lib/libthr/thread/thr_setschedparam.c /src/lib/libthr/thread/thr_sig.c /src/lib/libthr/thread/thr_single_np.c /src/lib/libthr/thread/thr_spec.c /src/lib/libthr/thread/thr_ spinlock.c /src/lib/libthr/thread/thr_stack.c /src/lib/libthr/thread/thr_syscalls.c /src/lib/libthr/thread/thr_suspend_np.c /src/lib/libthr/thread/thr_switch_np.c /src/lib/libthr/thread/thr_symbols.c /src/lib/libthr/thread/thr_umtx.c /src/lib/libthr/thread/thr_yield.c cc -O -pipe -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libthr/arch/powerpc/powerpc/pthread_md.c cc -O -pipe -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libthr/sys/thr_error.c cc -O -pipe -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libthr/thread/thr_affinity.c cc1: warnings being treated as errors /src/lib/libthr/thread/thr_affinity.c:43: warning: no previous prototype for '_pthread_setaffinity_np' /src/lib/libthr/thread/thr_affinity.c:71: warning: no previous prototype for '_pthread_getaffinity_np' *** Error code 1 Stop in /src/lib/libthr. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-04-02 11:07:40 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-04-02 11:07:40 - ERROR: failed to build world TB --- 2008-04-02 11:07:40 - tinderbox aborted TB --- 749.27 user 92.51 system 1043.28 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 2 12:16:43 2008 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5C8CF106567F; Wed, 2 Apr 2008 12:16:43 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smarthost1.sentex.ca (smarthost1.sentex.ca [64.7.153.18]) by mx1.freebsd.org (Postfix) with ESMTP id 111F98FC2C; Wed, 2 Apr 2008 12:16:42 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from smtp1.sentex.ca (smtp1c.sentex.ca [64.7.153.10]) by smarthost1.sentex.ca (8.14.2/8.14.2) with ESMTP id m32CGgKt068415; Wed, 2 Apr 2008 08:16:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp1.sentex.ca (8.14.2/8.14.2) with ESMTP id m32CGgkL030488; Wed, 2 Apr 2008 08:16:42 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 6CFA973039; Wed, 2 Apr 2008 07:16:42 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20080402121642.6CFA973039@freebsd-current.sentex.ca> Date: Wed, 2 Apr 2008 07:16:42 -0500 (EST) X-Virus-Scanned: ClamAV version 0.92, clamav-milter version 0.92 on clamscanner2 X-Virus-Status: Clean Cc: Subject: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 12:16:43 -0000 TB --- 2008-04-02 12:00:01 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2008-04-02 12:00:01 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2008-04-02 12:00:01 - cleaning the object tree TB --- 2008-04-02 12:00:11 - cvsupping the source tree TB --- 2008-04-02 12:00:11 - /usr/bin/csup -r 3 -g -L 1 -h localhost -s /tinderbox/HEAD/powerpc/powerpc/supfile TB --- 2008-04-02 12:00:18 - building world (CFLAGS=-O -pipe) TB --- 2008-04-02 12:00:18 - cd /src TB --- 2008-04-02 12:00:18 - /usr/bin/make -B buildworld >>> World build started on Wed Apr 2 12:00:20 UTC 2008 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries [...] rm -f .depend mkdep -f .depend -a -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -D_PTHREADS_INVARIANTS /src/lib/libthr/arch/powerpc/powerpc/pthread_md.c /src/lib/libthr/sys/thr_error.c /src/lib/libthr/thread/thr_affinity.c /src/lib/libthr/thread/thr_attr.c /src/lib/libthr/thread/thr_barrier.c /src/lib/libthr/thread/thr_barrierattr.c /src/lib/libthr/thread/thr_cancel.c /src/lib/libthr/thread/thr_clean.c /src/lib/libthr/thread/thr_concurrency.c /src/lib/libthr/thread/thr_cond.c /src/lib/libthr/thread/thr_condattr.c /src/lib/libthr/thread/thr_create.c /src/lib/libthr/thread/thr_detach.c /src/lib/libthr/thread/thr_equal.c /src/lib/libthr/thread/thr_event.c /src/lib/libthr/thread/thr_exit.c /src/lib/libthr/thread/thr_fork.c /src/lib/libthr/thread/th r_getprio.c /src/lib/libthr/thread/thr_getcpuclockid.c /src/lib/libthr/thread/thr_getschedparam.c /src/lib/libthr/thread/thr_info.c /src/lib/libthr/thread/thr_init.c /src/lib/libthr/thread/thr_join.c /src/lib/libthr/thread/thr_list.c /src/lib/libthr/thread/thr_kern.c /src/lib/libthr/thread/thr_kill.c /src/lib/libthr/thread/thr_main_np.c /src/lib/libthr/thread/thr_multi_np.c /src/lib/libthr/thread/thr_mutex.c /src/lib/libthr/thread/thr_mutexattr.c /src/lib/libthr/thread/thr_once.c /src/lib/libthr/thread/thr_printf.c /src/lib/libthr/thread/thr_pspinlock.c /src/lib/libthr/thread/thr_resume_np.c /src/lib/libthr/thread/thr_rtld.c /src/lib/libthr/thread/thr_rwlock.c /src/lib/libthr/thread/thr_rwlockattr.c /src/lib/libthr/thread/thr_self.c /src/lib/libthr/thread/thr_sem.c /src/lib/libthr/thread/thr_setprio.c /src/lib/libthr/thread/thr_setschedparam.c /src/lib/libthr/thread/thr_sig.c /src/lib/libthr/thread/thr_single_np.c /src/lib/libthr/thread/thr_spec.c /src/lib/libthr/thread/thr_ spinlock.c /src/lib/libthr/thread/thr_stack.c /src/lib/libthr/thread/thr_syscalls.c /src/lib/libthr/thread/thr_suspend_np.c /src/lib/libthr/thread/thr_switch_np.c /src/lib/libthr/thread/thr_symbols.c /src/lib/libthr/thread/thr_umtx.c /src/lib/libthr/thread/thr_yield.c cc -O -pipe -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libthr/arch/powerpc/powerpc/pthread_md.c cc -O -pipe -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libthr/sys/thr_error.c cc -O -pipe -DPTHREAD_KERNEL -I/src/lib/libthr/../libc/include -I/src/lib/libthr/thread -I/src/lib/libthr/../../include -I/src/lib/libthr/arch/powerpc/include -I/src/lib/libthr/sys -I/src/lib/libthr/../../libexec/rtld-elf -I/src/lib/libthr/../../libexec/rtld-elf/powerpc -I/src/lib/libthr/../libthread_db -Winline -D_PTHREADS_INVARIANTS -Wsystem-headers -Werror -Wall -Wno-format-y2k -W -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c /src/lib/libthr/thread/thr_affinity.c cc1: warnings being treated as errors /src/lib/libthr/thread/thr_affinity.c:43: warning: no previous prototype for '_pthread_setaffinity_np' /src/lib/libthr/thread/thr_affinity.c:71: warning: no previous prototype for '_pthread_getaffinity_np' *** Error code 1 Stop in /src/lib/libthr. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2008-04-02 12:16:42 - WARNING: /usr/bin/make returned exit code 1 TB --- 2008-04-02 12:16:42 - ERROR: failed to build world TB --- 2008-04-02 12:16:42 - tinderbox aborted TB --- 748.02 user 92.00 system 1001.29 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 2 14:53:46 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10A12106567B for ; Wed, 2 Apr 2008 14:53:46 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id D8A4B8FC29 for ; Wed, 2 Apr 2008 14:53:45 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYP00A1UDDLQN00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Wed, 02 Apr 2008 09:53:45 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYP002JBDDG5770@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Wed, 02 Apr 2008 09:53:40 -0500 (CDT) Date: Wed, 02 Apr 2008 09:57:56 -0500 From: Nathan Whitehorn In-reply-to: <47E8527B.2050002@uchicago.edu> To: freebsd-ppc@freebsd.org Message-id: <47F39EF4.8040800@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.2.74157, SenderIP=76.201.152.232 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 14:53:46 -0000 I've refreshed the BMAC tarball at http://home.physics.wisc.edu/~nwhitehorn/bm.tgz. It supports multicast and full-duplex operation now, the code is a little more style(9) compliant, and I don't think I have anything left to do unless someone finds some bugs. The patch to macio is also now included in the tarball. To support full-duplex operation, I had to do a hack to reset autonegotiation on the PHY (firmware puts the PHY in a weird state where its registers claim it did autonegotiation, but it always ends up in half-duplex mode). This is done in this way: sc->sc_mii = device_get_softc(sc->sc_miibus); LIST_FOREACH(child, &sc->sc_mii->mii_phys, mii_list) { mii_phy_auto(child); } Is a better course to modify lxtphy's attach routine to do this there? Or should this stay in bm? -Nathan From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 2 16:36:50 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C7B0106564A for ; Wed, 2 Apr 2008 16:36:50 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.69]) by mx1.freebsd.org (Postfix) with ESMTP id 82D458FC2B for ; Wed, 2 Apr 2008 16:36:50 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp001-s [10.150.69.64]) by smtpoutm.mac.com (Xserve/smtpout006/MantshX 4.0) with ESMTP id m32GaoLG003466; Wed, 2 Apr 2008 09:36:50 -0700 (PDT) Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mac.com (Xserve/asmtp001/MantshX 4.0) with ESMTP id m32GalUA014588 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 2 Apr 2008 09:36:48 -0700 (PDT) Message-Id: From: Marcel Moolenaar To: Nathan Whitehorn In-Reply-To: <47F39EF4.8040800@uchicago.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 2 Apr 2008 09:36:46 -0700 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 16:36:50 -0000 On Apr 2, 2008, at 7:57 AM, Nathan Whitehorn wrote: > I've refreshed the BMAC tarball at http://home.physics.wisc.edu/~nwhitehorn/bm.tgz > . > > It supports multicast and full-duplex operation now, the code is a > little more style(9) compliant, and I don't think I have anything > left to do unless someone finds some bugs. The patch to macio is > also now included in the tarball. > > To support full-duplex operation, I had to do a hack to reset > autonegotiation on the PHY (firmware puts the PHY in a weird state > where its registers claim it did autonegotiation, but it always ends > up in half-duplex mode). This is done in this way: > > sc->sc_mii = device_get_softc(sc->sc_miibus); > LIST_FOREACH(child, &sc->sc_mii->mii_phys, mii_list) { > mii_phy_auto(child); > } > > Is a better course to modify lxtphy's attach routine to do this > there? Or should this stay in bm? I lean towards putting it in the PHY driver itself. I expect a PHY reset to do the right thing and in this case it doesn't seem to do that. From what you say it seems that the driver is commitable at this time. I can't test it, but I can definitely commit. Just let me know... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Wed Apr 2 18:38:55 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 24C54106564A for ; Wed, 2 Apr 2008 18:38:55 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id EB0F18FC1D for ; Wed, 2 Apr 2008 18:38:54 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYP00G0CNSU4V00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Wed, 02 Apr 2008 13:38:54 -0500 (CDT) Received: from [72.33.107.137] (dyn-107-137.uwnet.wisc.edu [72.33.107.137]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYP00EZ6NSS3I10@smtpauth1.wiscmail.wisc.edu>; Wed, 02 Apr 2008 13:38:52 -0500 (CDT) Date: Wed, 02 Apr 2008 13:38:52 -0500 From: Nathan Whitehorn In-reply-to: To: Marcel Moolenaar Message-id: <47F3D2BC.7060001@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=72.33.107.137 X-Spam-PmxInfo: Server=avs-8, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.2.111931, SenderIP=72.33.107.137 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> User-Agent: Thunderbird 1.5.0.12 (X11/20080213) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2008 18:38:55 -0000 Marcel Moolenaar wrote: > > On Apr 2, 2008, at 7:57 AM, Nathan Whitehorn wrote: >> I've refreshed the BMAC tarball at >> http://home.physics.wisc.edu/~nwhitehorn/bm.tgz. >> >> It supports multicast and full-duplex operation now, the code is a >> little more style(9) compliant, and I don't think I have anything >> left to do unless someone finds some bugs. The patch to macio is also >> now included in the tarball. >> >> To support full-duplex operation, I had to do a hack to reset >> autonegotiation on the PHY (firmware puts the PHY in a weird state >> where its registers claim it did autonegotiation, but it always ends >> up in half-duplex mode). This is done in this way: >> >> sc->sc_mii = device_get_softc(sc->sc_miibus); >> LIST_FOREACH(child, &sc->sc_mii->mii_phys, mii_list) { >> mii_phy_auto(child); >> } >> >> Is a better course to modify lxtphy's attach routine to do this >> there? Or should this stay in bm? > > I lean towards putting it in the PHY driver itself. I expect > a PHY reset to do the right thing and in this case it doesn't > seem to do that. That does seem less hackish. What I don't know is whether Apple ever shipped machines with other PHYs and the BMAC chip, and whether those have the same problem. > From what you say it seems that the driver is commitable at > this time. I can't test it, but I can definitely commit. > Just let me know... I would like some tests with one of the other two revisions of the chip, of course, but any fixes should be minor. The real concern, on my part, for committing it is whether the macio IRQ patch breaks anything. If you have both an interrupts property and an AAPL,interrupts in OF, with multiple interrupts listed, it will cause all of the AAPL,interrupts IRQ resources to be renumbered. At the moment, we only support two devices (SCC and macio ATA) hanging off macio, so the set of things to be checked is limited. I know that the ATA code still works, but I suspect it might break the scc UART support, since it has several interrupts. So if you have any mac hardware at all with an SCC part you can test, it might be good to check that before committing. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 00:15:32 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 63D0D106564A for ; Thu, 3 Apr 2008 00:15:32 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 37DED8FC18 for ; Thu, 3 Apr 2008 00:15:32 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYQ00C0I3DVBC00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Wed, 02 Apr 2008 19:15:31 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYQ003F23DRMH50@smtpauth1.wiscmail.wisc.edu>; Wed, 02 Apr 2008 19:15:27 -0500 (CDT) Date: Wed, 02 Apr 2008 19:19:44 -0500 From: Nathan Whitehorn In-reply-to: <47F3D2BC.7060001@uchicago.edu> To: Marcel Moolenaar Message-id: <47F422A0.9080907@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-7, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.2.170345, SenderIP=76.201.152.232 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 00:15:32 -0000 Nathan Whitehorn wrote: > Marcel Moolenaar wrote: >> >> On Apr 2, 2008, at 7:57 AM, Nathan Whitehorn wrote: >>> I've refreshed the BMAC tarball at >>> http://home.physics.wisc.edu/~nwhitehorn/bm.tgz. [snip] >>> Is a better course to modify lxtphy's attach routine to do this >>> there? Or should this stay in bm? >> >> I lean towards putting it in the PHY driver itself. I expect >> a PHY reset to do the right thing and in this case it doesn't >> seem to do that. > That does seem less hackish. What I don't know is whether Apple ever > shipped machines with other PHYs and the BMAC chip, and whether those > have the same problem. After some poking around, it looks like pretty much all machines with BMAC NICs also have lxtphy. Some powerbooks appear to have nsphy instead. It also appears that the Sun HME chip has the same problem with nsphy (which is not surprising, since BMAC is the cheap Apple variant of HME). I decided to duplicate the solution to the problem from there (setting MIIF_FORCEANEG in lxtphy_attach() if lxtphy is attached to bm). Since there are at least some machines with bm and nsphy, we might also want to check for bm there in addition to hme. I've refreshed the tarball with the patch. >> From what you say it seems that the driver is commitable at >> this time. I can't test it, but I can definitely commit. >> Just let me know... > I would like some tests with one of the other two revisions of the chip, > of course, but any fixes should be minor. The real concern, on my part, > for committing it is whether the macio IRQ patch breaks anything. If you > have both an interrupts property and an AAPL,interrupts in OF, with > multiple interrupts listed, it will cause all of the AAPL,interrupts IRQ > resources to be renumbered. > > At the moment, we only support two devices (SCC and macio ATA) hanging > off macio, so the set of things to be checked is limited. I know that > the ATA code still works, but I suspect it might break the scc UART > support, since it has several interrupts. So if you have any mac > hardware at all with an SCC part you can test, it might be good to check > that before committing. As it turns out, this description is not quite accurate -- it will break devices with children with more than one interrupt. This description fits SCC, where each child has three interrupts (one for general stuff, and two for the DBDMA channels). Thus SCC channel B is likely to stop working without some fixups to its interrupt allocation on macio. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 00:23:55 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 656291065670 for ; Thu, 3 Apr 2008 00:23:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.79]) by mx1.freebsd.org (Postfix) with ESMTP id 4DBD48FC1C for ; Thu, 3 Apr 2008 00:23:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp001-s [10.150.69.64]) by smtpoutm.mac.com (Xserve/smtpout016/MantshX 4.0) with ESMTP id m330NsfT008793; Wed, 2 Apr 2008 17:23:55 -0700 (PDT) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp001/MantshX 4.0) with ESMTP id m330NrOQ006386 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 2 Apr 2008 17:23:53 -0700 (PDT) Message-Id: From: Marcel Moolenaar To: Nathan Whitehorn In-Reply-To: <47F422A0.9080907@uchicago.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 2 Apr 2008 17:23:51 -0700 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 00:23:55 -0000 On Apr 2, 2008, at 5:19 PM, Nathan Whitehorn wrote: >>> From what you say it seems that the driver is commitable at >>> this time. I can't test it, but I can definitely commit. >>> Just let me know... >> I would like some tests with one of the other two revisions of the >> chip, of course, but any fixes should be minor. The real concern, >> on my part, for committing it is whether the macio IRQ patch breaks >> anything. If you have both an interrupts property and an >> AAPL,interrupts in OF, with multiple interrupts listed, it will >> cause all of the AAPL,interrupts IRQ resources to be renumbered. >> >> At the moment, we only support two devices (SCC and macio ATA) >> hanging off macio, so the set of things to be checked is limited. I >> know that the ATA code still works, but I suspect it might break >> the scc UART support, since it has several interrupts. So if you >> have any mac hardware at all with an SCC part you can test, it >> might be good to check that before committing. > > As it turns out, this description is not quite accurate -- it will > break devices with children with more than one interrupt. This > description fits SCC, where each child has three interrupts (one for > general stuff, and two for the DBDMA channels). Thus SCC channel B > is likely to stop working without some fixups to its interrupt > allocation on macio. I'll test the patch... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 01:06:55 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C83D0106564A for ; Thu, 3 Apr 2008 01:06:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.78]) by mx1.freebsd.org (Postfix) with ESMTP id 96D7D8FC24 for ; Thu, 3 Apr 2008 01:06:55 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout015/MantshX 4.0) with ESMTP id m3316oR3012002; Wed, 2 Apr 2008 18:06:50 -0700 (PDT) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id m3316iFK007917 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 2 Apr 2008 18:06:46 -0700 (PDT) Message-Id: From: Marcel Moolenaar To: Nathan Whitehorn In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 2 Apr 2008 18:06:44 -0700 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 01:06:55 -0000 On Apr 2, 2008, at 5:23 PM, Marcel Moolenaar wrote: >>> ... The real concern, on my part, for committing it is whether the >>> macio IRQ patch breaks anything. > > I'll test the patch... I doubt the patch is correct.... Before: scc0: mem 0x13000-0x13fff,0x8400-0x84ff, 0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,23 on macio0 scc0: [FILTER] scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart0: console (57600,n,8,1) uart1: on scc0 uart1: [FILTER] ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19 on macio0 ata0: [ITHREAD] After: scc0: mem 0x13000-0x13fff,0x8400-0x84ff, 0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,1,5,0,6,0 on macio0 scc0: [FILTER] scc0: [FILTER] uart0: on scc0 uart0: [FILTER] uart0: console (57600,n,8,1) uart1: on scc0 uart1: [FILTER] ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19,1,11,0 on macio0 ata0: [ITHREAD] "ofwdump -aP interrupts" gives: ... Node 0xff95fd30: escc Node 0xff95ffb8: ch-a interrupts: 00 00 00 16 00 00 00 01 00 00 00 05 00 00 00 00 00 00 00 06 00 00 00 00 Node 0xff960a08: ch-b interrupts: 00 00 00 17 00 00 00 01 00 00 00 07 00 00 00 00 00 00 00 08 00 00 00 00 ... Node 0xff970618: ata-4 interrupts: 00 00 00 13 00 00 00 01 00 00 00 0b 00 00 00 00 Node 0xff973358: disk Can you send me the output of ofwdump on your machine? Thanks, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 03:24:52 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 10FBF1065680 for ; Thu, 3 Apr 2008 03:24:52 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from relay02.uchicago.edu (relay02.uchicago.edu [128.135.12.76]) by mx1.freebsd.org (Postfix) with ESMTP id BD3748FC22 for ; Thu, 3 Apr 2008 03:24:51 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from harper.uchicago.edu (harper.uchicago.edu [128.135.12.7]) by relay02.uchicago.edu (8.13.6.20060614/8.12.9) with ESMTP id m3337ieK026678; Wed, 2 Apr 2008 22:07:44 -0500 (CDT) Received: from localhost (nathanw@localhost) by harper.uchicago.edu (8.12.10/8.12.10) with ESMTP id m3337iEh020964; Wed, 2 Apr 2008 22:07:44 -0500 (CDT) X-Authentication-Warning: harper.uchicago.edu: nathanw owned process doing -bs Date: Wed, 2 Apr 2008 22:07:43 -0500 (CDT) From: Nathan Whitehorn To: Marcel Moolenaar In-Reply-To: Message-ID: References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 03:24:52 -0000 On Wed, 2 Apr 2008, Marcel Moolenaar wrote: > > On Apr 2, 2008, at 5:23 PM, Marcel Moolenaar wrote: > >>>> ... The real concern, on my part, for committing it is whether the macio >>>> IRQ patch breaks anything. >> >> I'll test the patch... > > I doubt the patch is correct.... > > Before: > > scc0: mem 0x13000-0x13fff,0x8400-0x84ff, > 0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,23 on macio0 > scc0: [FILTER] > scc0: [FILTER] > uart0: on scc0 > uart0: [FILTER] > uart0: console (57600,n,8,1) > uart1: on scc0 > uart1: [FILTER] > ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19 on macio0 > ata0: [ITHREAD] > > After: > > scc0: mem 0x13000-0x13fff,0x8400-0x84ff, > 0x8500-0x85ff,0x8600-0x86ff,0x8700-0x87ff irq 22,1,5,0,6,0 on macio0 > scc0: [FILTER] > scc0: [FILTER] > uart0: on scc0 > uart0: [FILTER] > uart0: console (57600,n,8,1) > uart1: on scc0 > uart1: [FILTER] > ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19,1,11,0 on macio0 > ata0: [ITHREAD] > > > "ofwdump -aP interrupts" gives: > ... > Node 0xff95fd30: escc > Node 0xff95ffb8: ch-a > interrupts: > 00 00 00 16 00 00 00 01 00 00 00 05 00 00 00 00 00 00 00 06 > 00 00 00 00 > Node 0xff960a08: ch-b > interrupts: > 00 00 00 17 00 00 00 01 00 00 00 07 00 00 00 00 00 00 00 08 > 00 00 00 00 > ... > Node 0xff970618: ata-4 > interrupts: > 00 00 00 13 00 00 00 01 00 00 00 0b 00 00 00 00 > Node 0xff973358: disk > > > Can you send me the output of ofwdump on your machine? So it looks like that corresponds to the OF output, to within the macio limit of 5 interrupts per device. Two of the interrupts for each channel (probably the first two after the main one) are the DBDMA interrupts for transmit and receive DMA on each UART. The others, I don't know. G4 machines seem to have a lot of 0 interrupts listed in OF. Maybe we should remove them? I somehow doubt that 0 is a valid IRQ. This definitely does break the serial support, and should probably be reevaluated. The limit of five interrupts should be removed, certainly, and possibly some of the values trimmed. After that, SCC still needs to get the right per-channel primary interrupt, which I don't know how to do without hints from macio. On my machine, there are three SCC interrupts per channel: the main per-channel interrupts, and the two DBDMA interrupts. None of them are 0. I'll send the exact output in the morning. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 03:39:18 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1A9B1065671 for ; Thu, 3 Apr 2008 03:39:18 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.64]) by mx1.freebsd.org (Postfix) with ESMTP id B8ED58FC20 for ; Thu, 3 Apr 2008 03:39:18 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp004-s [10.150.69.67]) by smtpoutm.mac.com (Xserve/smtpout001/MantshX 4.0) with ESMTP id m333dI8L013168; Wed, 2 Apr 2008 20:39:18 -0700 (PDT) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp004/MantshX 4.0) with ESMTP id m333dGZO026502 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Wed, 2 Apr 2008 20:39:17 -0700 (PDT) Message-Id: From: Marcel Moolenaar To: Nathan Whitehorn In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Wed, 2 Apr 2008 20:39:16 -0700 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 03:39:18 -0000 On Apr 2, 2008, at 8:07 PM, Nathan Whitehorn wrote: >> "ofwdump -aP interrupts" gives: >> ... >> Node 0xff95fd30: escc >> Node 0xff95ffb8: ch-a >> interrupts: >> 00 00 00 16 00 00 00 01 00 00 00 05 00 00 00 00 00 00 >> 00 06 >> 00 00 00 00 >> Node 0xff960a08: ch-b >> interrupts: >> 00 00 00 17 00 00 00 01 00 00 00 07 00 00 00 00 00 00 >> 00 08 >> 00 00 00 00 >> ... >> Node 0xff970618: ata-4 >> interrupts: >> 00 00 00 13 00 00 00 01 00 00 00 0b 00 00 00 00 >> Node 0xff973358: disk >> >> >> Can you send me the output of ofwdump on your machine? > > So it looks like that corresponds to the OF output, to within the > macio limit of 5 interrupts per device. Two of the interrupts for > each channel (probably the first two after the main one) are the > DBDMA interrupts for transmit and receive DMA on each UART. The > others, I don't know. G4 machines seem to have a lot of 0 interrupts > listed in OF. Maybe we should > remove them? I somehow doubt that 0 is a valid IRQ. OpenPIC uses 2 cells per interrupt. The first being the interrupt line; the second being the interrupt trigger properties. As such, there are 3 interrupts per SCC channels and 2 for ATA: SCC-A: 0x16, 0x05, 0x06 SCC-B: 0x17, 0x07, 0x08 ATA: 0x13, 0x0b It seems that the DMA interrupts are edge triggered, so we can easily filter them out to preserve the old behaviour. I guess on your machine, interrupts use only 1 cell. This means we need to fix macio(4) to interpret the "#interrupt-cells" property of the interrupt controller in the "interrupt-parent" property... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 13:43:34 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 743561065673 for ; Thu, 3 Apr 2008 13:43:34 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 3F66F8FC26 for ; Thu, 3 Apr 2008 13:43:34 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYR00M004SLU000@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 08:43:33 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYR00HEZ4SKZ130@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 08:43:33 -0500 (CDT) Date: Thu, 03 Apr 2008 08:47:51 -0500 From: Nathan Whitehorn In-reply-to: To: freebsd-ppc@freebsd.org Message-id: <47F4E007.90802@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-10, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.3.63359, SenderIP=76.201.152.232 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 13:43:34 -0000 Marcel Moolenaar wrote: > > On Apr 2, 2008, at 8:07 PM, Nathan Whitehorn wrote: > >>> "ofwdump -aP interrupts" gives: >>> ... >>> Node 0xff95fd30: escc >>> Node 0xff95ffb8: ch-a >>> interrupts: >>> 00 00 00 16 00 00 00 01 00 00 00 05 00 00 00 00 00 00 00 06 >>> 00 00 00 00 >>> Node 0xff960a08: ch-b >>> interrupts: >>> 00 00 00 17 00 00 00 01 00 00 00 07 00 00 00 00 00 00 00 08 >>> 00 00 00 00 >>> ... >>> Node 0xff970618: ata-4 >>> interrupts: >>> 00 00 00 13 00 00 00 01 00 00 00 0b 00 00 00 00 >>> Node 0xff973358: disk >>> >>> >>> Can you send me the output of ofwdump on your machine? >> >> So it looks like that corresponds to the OF output, to within the >> macio limit of 5 interrupts per device. Two of the interrupts for each >> channel (probably the first two after the main one) are the DBDMA >> interrupts for transmit and receive DMA on each UART. The others, I >> don't know. G4 machines seem to have a lot of 0 interrupts listed in >> OF. Maybe we should >> remove them? I somehow doubt that 0 is a valid IRQ. > > OpenPIC uses 2 cells per interrupt. The first being the interrupt line; > the second being the interrupt trigger properties. As such, there are > 3 interrupts per SCC channels and 2 for ATA: > SCC-A: 0x16, 0x05, 0x06 > SCC-B: 0x17, 0x07, 0x08 > ATA: 0x13, 0x0b > > It seems that the DMA interrupts are edge triggered, so we can easily > filter them out to preserve the old behaviour. Ah, ok. I wan't aware OpenPIC behaved that way -- that explains the 0 interrupts. I suppose as an alternative to filtering them out, you could make SCC use nintr/nchannels as the increment into the array of interrupts, instead of incrementing by one. Since bm depends on those DBDMA interrupts, like any DBDMA device, we shouldn't filter them out globally, and I'm hesitant to add a bunch of SCC-specific hacks to macio. We will also need them if we want to support DMA on the onboard ATA controller or want to support the AWACS sound chip. > I guess on your machine, interrupts use only 1 cell. This means we need > to fix macio(4) to interpret the "#interrupt-cells" property of the > interrupt controller in the "interrupt-parent" property... So it would seem: Node 0xff860a58: mac-io Node 0xff861220: interrupt-controller #interrupt-cells: 00 00 00 01 This sounds like a good solution. Do you want to make the patch, or do you want me to give it a try? -Nathan From owner-freebsd-ppc@FreeBSD.ORG Thu Apr 3 14:53:38 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DCA89106564A for ; Thu, 3 Apr 2008 14:53:38 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpoutm.mac.com (smtpoutm.mac.com [17.148.16.68]) by mx1.freebsd.org (Postfix) with ESMTP id BB5FE8FC1B for ; Thu, 3 Apr 2008 14:53:38 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from mac.com (asmtp005-s [10.150.69.68]) by smtpoutm.mac.com (Xserve/smtpout005/MantshX 4.0) with ESMTP id m33ErcD6004189; Thu, 3 Apr 2008 07:53:38 -0700 (PDT) Received: from [192.168.1.100] (209-128-86-226.bayarea.net [209.128.86.226]) (authenticated bits=0) by mac.com (Xserve/asmtp005/MantshX 4.0) with ESMTP id m33ErR0g018330 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Thu, 3 Apr 2008 07:53:29 -0700 (PDT) Message-Id: <3B02E59E-5399-40B6-9747-2F49200FD708@mac.com> From: Marcel Moolenaar To: Nathan Whitehorn In-Reply-To: <47F4E007.90802@uchicago.edu> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Date: Thu, 3 Apr 2008 07:53:26 -0700 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> <47F4E007.90802@uchicago.edu> X-Mailer: Apple Mail (2.919.2) Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2008 14:53:38 -0000 On Apr 3, 2008, at 6:47 AM, Nathan Whitehorn wrote: > Since bm depends on those DBDMA interrupts, like any DBDMA device, > we shouldn't filter them out globally, and I'm hesitant to add a > bunch of SCC-specific hacks to macio. We will also need them if we > want to support DMA on the onboard ATA controller or want to support > the AWACS sound chip. See below. >> I guess on your machine, interrupts use only 1 cell. This means we >> need >> to fix macio(4) to interpret the "#interrupt-cells" property of the >> interrupt controller in the "interrupt-parent" property... > > So it would seem: > Node 0xff860a58: mac-io > Node 0xff861220: interrupt-controller > #interrupt-cells: > 00 00 00 01 > > This sounds like a good solution. Do you want to make the patch, or > do you want me to give it a try? Let's split the work. If you could fix macio(4) to use #interrupt-cells, I'll fix scc(4) to deal with the DBDMA interrupts... Thoughts? -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 4 02:56:48 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 47C601065671 for ; Fri, 4 Apr 2008 02:56:48 +0000 (UTC) (envelope-from onlinefuturebazaar2007@gmail.com) Received: from qb-out-0506.google.com (qb-out-0506.google.com [72.14.204.237]) by mx1.freebsd.org (Postfix) with ESMTP id 7F11D8FC20 for ; Fri, 4 Apr 2008 02:56:47 +0000 (UTC) (envelope-from onlinefuturebazaar2007@gmail.com) Received: by qb-out-0506.google.com with SMTP id a10so4264673qbd.7 for ; Thu, 03 Apr 2008 19:56:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:return-receipt-to:reply-to:from:to:subject:date:organization:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole:disposition-notification-to; bh=iD2efWMNaMqN6f1BsYFfrOrky+HhADUOMoat8x4tUPo=; b=r/FDpzpp2F1EkqDga4NA8jC1gGKaTCkxSqulnArHyMod8wRf5iCCP2VHfsffjIDUVxyajx1MjJSG1q/mTcRQm2fl92SnX7DBCkmROe5IVBk8DVIWV1nmpo4uNS8WXZIzf5jmKkvOTMs2h55QtRSZV0ntDO5GP/iULxSUoKq0rZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=return-receipt-to:reply-to:from:to:subject:date:organization:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole:disposition-notification-to; b=UAJdQfQjiQUlcBYahpxaeoGevg39l8yWsFIgbWR9C8kELi7Tj9+maWfBXKA+QFHAcWyhZ/nfjBOcW0zkSTBgcatnrDcCcvTOcHBKj1O1rBG5e+s6jwcCK8ZmBqfQoGxVHPXnc7JrdjlJzeMl0+u4ZyP/t/zPvGecBB+73Lagl2Y= Received: by 10.142.174.8 with SMTP id w8mr524747wfe.5.1207274101100; Thu, 03 Apr 2008 18:55:01 -0700 (PDT) Received: from onlinemain ( [59.161.47.100]) by mx.google.com with ESMTPS id 27sm8094416wff.8.2008.04.03.18.54.57 (version=SSLv3 cipher=RC4-MD5); Thu, 03 Apr 2008 18:55:00 -0700 (PDT) From: "Suraj Saroj" To: Date: Fri, 4 Apr 2008 06:59:24 +0530 Organization: Online Future Bazaar Message-ID: MIME-Version: 1.0 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AciV6UfOuk1pRPr1SQCGDPX9VCPg1g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Online Future Bazaar X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: onlinefuturebazaar2007@gmail.com List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 02:56:48 -0000 Visit: www.onlinefuturebazaar.com Online Future Bazaar India From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 4 03:05:56 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 535EA1065670 for ; Fri, 4 Apr 2008 03:05:56 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id 1414E8FC17 for ; Fri, 4 Apr 2008 03:05:55 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_RxzxIkHXi5e4Hyi9c4g2Ng)" Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYS00M005XVJV00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 22:05:55 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYS00DFH5XT8I40@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 22:05:54 -0500 (CDT) Date: Thu, 03 Apr 2008 22:10:11 -0500 From: Nathan Whitehorn In-reply-to: <3B02E59E-5399-40B6-9747-2F49200FD708@mac.com> To: freebsd-ppc@freebsd.org Message-id: <47F59C13.9030705@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-10, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.3.195434, SenderIP=76.201.152.232 References: <47E06B23.7060400@uchicago.edu> <20080325023040.ab0daa19.stas@FreeBSD.org> <47E8527B.2050002@uchicago.edu> <47F39EF4.8040800@uchicago.edu> <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> <47F4E007.90802@uchicago.edu> <3B02E59E-5399-40B6-9747-2F49200FD708@mac.com> User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 03:05:56 -0000 This is a multi-part message in MIME format. --Boundary_(ID_RxzxIkHXi5e4Hyi9c4g2Ng) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT Marcel Moolenaar wrote: > Let's split the work. If you could fix macio(4) to use #interrupt-cells, > I'll fix scc(4) to deal with the DBDMA interrupts... I've attached a revised patch that does this, and is tested on an OpenPIC system (G4 iBook) and on my G3. -Nathan --Boundary_(ID_RxzxIkHXi5e4Hyi9c4g2Ng) Content-type: text/plain; name=macio.patch Content-transfer-encoding: 7BIT Content-disposition: inline; filename=macio.patch --- macio.c 2007-12-20 18:23:22.000000000 -0600 +++ macio.c.multi 2008-04-03 20:00:23.562978813 -0500 @@ -179,27 +179,40 @@ static void macio_add_intr(phandle_t devnode, struct macio_devinfo *dinfo) { - int intr; + int *intr; + int i, nintr; + phandle_t iparent; + int icells; - if (dinfo->mdi_ninterrupts >= 5) { - printf("macio: device has more than 5 interrupts\n"); + if (dinfo->mdi_ninterrupts >= 6) { + printf("macio: device has more than 6 interrupts\n"); return; } - if (OF_getprop(devnode, "interrupts", &intr, sizeof(intr)) == -1) { - if (OF_getprop(devnode, "AAPL,interrupts", &intr, - sizeof(intr)) == -1) + icells = 1; + + if (OF_getprop(devnode, "interrupt-parent", &iparent, sizeof(iparent)) == sizeof(iparent)) + OF_getprop(iparent, "#interrupt-cells", &icells, sizeof(icells)); + + nintr = OF_getprop_alloc(devnode, "interrupts", sizeof(*intr), + (void **)&intr); + if (nintr == -1) { + nintr = OF_getprop_alloc(devnode, "AAPL,interrupts", + sizeof(*intr), (void **)&intr); + if (nintr == -1) return; } - if (intr == -1) + if (intr[0] == -1) return; - resource_list_add(&dinfo->mdi_resources, SYS_RES_IRQ, - dinfo->mdi_ninterrupts, intr, intr, 1); + for (i = 0; i < nintr; i+=icells) { + resource_list_add(&dinfo->mdi_resources, SYS_RES_IRQ, + dinfo->mdi_ninterrupts, intr[i], intr[i], 1); - dinfo->mdi_interrupts[dinfo->mdi_ninterrupts] = intr; - dinfo->mdi_ninterrupts++; + dinfo->mdi_interrupts[dinfo->mdi_ninterrupts] = intr[i]; + dinfo->mdi_ninterrupts++; + } } @@ -413,9 +426,9 @@ rle = resource_list_find(&dinfo->mdi_resources, SYS_RES_IRQ, *rid); if (rle == NULL) { - if (dinfo->mdi_ninterrupts >= 5) { + if (dinfo->mdi_ninterrupts >= 6) { device_printf(bus, - "%s has more than 5 interrupts\n", + "%s has more than 6 interrupts\n", device_get_nameunit(child)); return (NULL); } --- maciovar.h 2005-12-03 05:59:26.000000000 -0600 +++ maciovar.h.multi 2008-04-03 20:00:31.643813109 -0500 @@ -49,7 +49,7 @@ * Per macio device structure. */ struct macio_devinfo { - int mdi_interrupts[5]; + int mdi_interrupts[6]; int mdi_ninterrupts; int mdi_base; struct ofw_bus_devinfo mdi_obdinfo; --Boundary_(ID_RxzxIkHXi5e4Hyi9c4g2Ng)-- From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 4 03:14:54 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3327106564A for ; Fri, 4 Apr 2008 03:14:54 +0000 (UTC) (envelope-from nathanw@uchicago.edu) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id A079F8FC1D for ; Fri, 4 Apr 2008 03:14:54 +0000 (UTC) (envelope-from nathanw@uchicago.edu) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth1.wiscmail.wisc.edu by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) id <0JYS00C006CUMU00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 22:14:54 -0500 (CDT) Received: from trantor.tachypleus.net ([76.201.152.232]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-5.02 (built Oct 12 2007; 32bit)) with ESMTPSA id <0JYS00AWF6CTPY00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 03 Apr 2008 22:14:53 -0500 (CDT) Date: Thu, 03 Apr 2008 22:19:11 -0500 From: Nathan Whitehorn To: freebsd-ppc@freebsd.org Message-id: <47F59E2F.6060009@uchicago.edu> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.201.152.232 X-Spam-PmxInfo: Server=avs-9, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.4.3.200034, SenderIP=76.201.152.232 User-Agent: Thunderbird 2.0.0.12 (X11/20080322) Subject: ADB support - round 2 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 03:14:54 -0000 I've fixed up the ADB support I emailed about a while ago a little bit. On CUDA machines, it works well, aside from keyboard autorepeat being slow, and arrow keys not working in X. The code also isn't style(9) compliant at all, and is missing copyright headers, etc. This version now also has experimental PMU support, so the built-in keyboard and mouse in Apple laptops can work, if your machine doesn't kernel panic instantly, which is what happens frequently on my test G4 iBook. It is also hard-coded to use IRQ 47 instead of finding it from the extint-gpio1 like it should. The last is easy to change -- the first I cannot figure out at all. I'm hoping someone with better debugging skills than I can figure out what it going on there. It seems to be crashing in the interrupt handler, but somehow after pmu_intr() has exited, and my access to the machine in question is limited. Anyway, the code: http://banshee.uchicago.edu/~nwhitehorn/adb.tgz -Nathan From owner-freebsd-ppc@FreeBSD.ORG Fri Apr 4 06:12:24 2008 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 125CE1065673; Fri, 4 Apr 2008 06:12:24 +0000 (UTC) Date: Fri, 4 Apr 2008 06:12:24 +0000 From: Alexey Dokuchaev To: Nathan Whitehorn Message-ID: <20080404061224.GB11845@FreeBSD.org> References: <47F3D2BC.7060001@uchicago.edu> <47F422A0.9080907@uchicago.edu> <47F4E007.90802@uchicago.edu> <3B02E59E-5399-40B6-9747-2F49200FD708@mac.com> <47F59C13.9030705@uchicago.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <47F59C13.9030705@uchicago.edu> User-Agent: Mutt/1.4.2.1i Cc: freebsd-ppc@freebsd.org Subject: Re: BMAC Ethernet Driver X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Apr 2008 06:12:24 -0000 On Thu, Apr 03, 2008 at 10:10:11PM -0500, Nathan Whitehorn wrote: > --- macio.c 2007-12-20 18:23:22.000000000 -0600 > +++ macio.c.multi 2008-04-03 20:00:23.562978813 -0500 > @@ -179,27 +179,40 @@ > static void > macio_add_intr(phandle_t devnode, struct macio_devinfo *dinfo) > { > - int intr; > + int *intr; > + int i, nintr; > + phandle_t iparent; > + int icells; >From examples I see in man style(9), type and varname for local vars are seperated by space, not a tab. ./danfe