From owner-freebsd-ppc@FreeBSD.ORG Mon Dec 4 11:08:58 2006 Return-Path: X-Original-To: freebsd-ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 74AC216A506 for ; Mon, 4 Dec 2006 11:08:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.FreeBSD.org (Postfix) with ESMTP id C392043CBC for ; Mon, 4 Dec 2006 11:08:03 +0000 (GMT) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id kB4B8ZWp045470 for ; Mon, 4 Dec 2006 11:08:35 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id kB4B8XdY045466 for freebsd-ppc@FreeBSD.org; Mon, 4 Dec 2006 11:08:33 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Dec 2006 11:08:33 GMT Message-Id: <200612041108.kB4B8XdY045466@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 04 Dec 2006 11:08:58 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 1 problem total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o power/95367 ppc docs for ppc release. 1 problem total. From owner-freebsd-ppc@FreeBSD.ORG Mon Dec 4 15:00:17 2006 Return-Path: X-Original-To: powerpc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0309816A492; Mon, 4 Dec 2006 15:00:16 +0000 (UTC) (envelope-from flag@newluxor.wired.org) Received: from mail.oltrelinux.com (krisma.oltrelinux.com [194.242.226.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA85F43CA6; Mon, 4 Dec 2006 14:59:34 +0000 (GMT) (envelope-from flag@newluxor.wired.org) Received: from newluxor.wired.org (ip-64-88.sn2.eutelia.it [83.211.64.88]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.oltrelinux.com (Postfix) with ESMTP id B1E1711AE43; Mon, 4 Dec 2006 16:00:07 +0100 (CET) Received: (from flag@localhost) by newluxor.wired.org (8.13.8/8.13.8/Submit) id kB4F02m3094554; Mon, 4 Dec 2006 16:00:02 +0100 (CET) (envelope-from flag) Date: Mon, 4 Dec 2006 16:00:01 +0100 From: Paolo Pisati To: powerpc@freebsd.org Message-ID: <20061204150001.GA45877@tin.it> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="xHFwDpU9dbj6ez1V" Content-Disposition: inline User-Agent: Mutt/1.4.2.2i X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at krisma.oltrelinux.com Cc: Peter Grehan Subject: [patch] Shared interrupts with fast handlers 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, 04 Dec 2006 15:00:17 -0000 --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi list, attached is my patch to let ppc share different fast handlers on the same irq line. It's slightly different from the patch i sent to Peter back then, and form the code in my p4 tree, with much _less_ code churn. If Peter/Marcel/anyone can test it, and i works, please feel free to commit it. Thanks. -- Paolo Piso's first law: nothing works as expected! --xHFwDpU9dbj6ez1V Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="intr_machdep.powerpc.patch" --- sys/powerpc/include/intr_machdep.h.orig Sun Dec 3 17:50:52 2006 +++ sys/powerpc/include/intr_machdep.h Mon Dec 4 12:46:30 2006 @@ -33,11 +33,8 @@ struct intr_event; struct ppc_intr_handler { - ih_func_t *ih_func; - void *ih_arg; struct intr_event *ih_event; u_int ih_irq; - u_int ih_flags; u_int ih_index; u_long *ih_count; u_long *ih_straycount; --- sys/powerpc/powerpc/intr_machdep.c.orig Sun Dec 3 17:50:52 2006 +++ sys/powerpc/powerpc/intr_machdep.c Mon Dec 4 15:13:13 2006 @@ -66,6 +66,7 @@ #include #include #include +#include #include #include #include @@ -82,10 +83,8 @@ MALLOC_DEFINE(M_INTR, "intr", "interrupt handler data"); -static int intr_initialized = 0; - static u_int intr_nirq; -static struct ppc_intr_handler *intr_handlers; +static struct ppc_intr_handler *intr_handlers = NULL; static struct mtx intr_table_lock; @@ -94,7 +93,6 @@ static int intrcnt_index; static ih_func_t intr_stray_handler; -static ih_func_t sched_ithd; static void (*irq_enable)(uintptr_t); static void (*irq_disable)(uintptr_t); @@ -139,25 +137,18 @@ int i; u_int32_t msr; - if (intr_initialized != 0) + if (intr_handlers != NULL) panic("intr_init: interrupts intialized twice\n"); - intr_initialized++; - intr_nirq = nirq; intr_handlers = malloc(nirq * sizeof(struct ppc_intr_handler), M_INTR, M_NOWAIT|M_ZERO); if (intr_handlers == NULL) panic("intr_init: unable to allocate interrupt handler array"); - for (i = 0; i < nirq; i++) { - intr_handlers[i].ih_func = intr_stray_handler; - intr_handlers[i].ih_arg = &intr_handlers[i]; - intr_handlers[i].ih_irq = i; - intr_handlers[i].ih_flags = 0; - /* mux all initial stray irqs onto same count... */ + /* mux all initial stray irqs onto same count... */ + for (i = 0; i < nirq; i++) intr_handlers[i].ih_straycount = &intrcnt[0]; - } intrcnt_setname("???", 0); intrcnt_index = 1; @@ -175,22 +166,6 @@ mtx_init(&intr_table_lock, "intr table", NULL, MTX_SPIN); } -void -intr_setup(u_int irq, ih_func_t *ihf, void *iha, u_int flags) -{ - u_int32_t msr; - - msr = mfmsr(); - mtmsr(msr & ~PSL_EE); - - intr_handlers[irq].ih_func = ihf; - intr_handlers[irq].ih_arg = iha; - intr_handlers[irq].ih_irq = irq; - intr_handlers[irq].ih_flags = flags; - - mtmsr(msr); -} - int inthand_add(const char *name, u_int irq, void (*handler)(void *), void *arg, int flags, void **cookiep) @@ -198,7 +173,6 @@ struct ppc_intr_handler *ih; struct intr_event *event, *orphan; int error = 0; - int created_event = 0; /* * Work around a race where more than one CPU may be registering @@ -218,7 +192,6 @@ if (ih->ih_event == NULL) { ih->ih_event = event; - created_event++; mtx_unlock_spin(&intr_table_lock); } else { orphan = event; @@ -228,21 +201,12 @@ } } - /* XXX: Should probably fix support for multiple FAST. */ - if (flags & INTR_FAST) - flags |= INTR_EXCL; error = intr_event_add_handler(event, name, handler, arg, intr_priority(flags), flags, cookiep); - if ((flags & INTR_FAST) == 0 || error) - intr_setup(irq, sched_ithd, ih, flags); - if (error) return (error); - if (flags & INTR_FAST) - intr_setup(irq, handler, arg, flags); - intrcnt_register(ih); return (0); @@ -251,37 +215,42 @@ int inthand_remove(u_int irq, void *cookie) { - struct ppc_intr_handler *ih; - int error; - - error = intr_event_remove_handler(cookie); - - if (error == 0) { - ih = &intr_handlers[irq]; - - mtx_lock_spin(&intr_table_lock); - - if (ih->ih_event == NULL) { - intr_setup(irq, intr_stray_handler, ih, 0); - } else { - intr_setup(irq, sched_ithd, ih, 0); - } - - mtx_unlock_spin(&intr_table_lock); - } - - return (error); + return (intr_event_remove_handler(cookie)); } void intr_handle(u_int irq) { - atomic_add_long(intr_handlers[irq].ih_count, 1); - intr_handlers[irq].ih_func(intr_handlers[irq].ih_arg); + struct ppc_intr_handler *ppc_ih = &intr_handlers[irq]; + struct intr_event *ie = ppc_ih->ih_event; + struct intr_handler *ih; + int error = 0, thread; + + if (ie == NULL) { + intr_stray_handler(ppc_ih); + return; + } + + atomic_add_long(ppc_ih->ih_count, 1); + + /* Execute fast interrupt handlers directly. */ + thread = 0; + TAILQ_FOREACH(ih, &ie->ie_handlers, ih_next) { + if (!(ih->ih_flags & IH_FAST)) { + thread = 1; + continue; + } + CTR3(KTR_INTR, "%s: executing handler %p(%p)", __func__, + ih->ih_handler, ih->ih_argument); + ih->ih_handler(ih->ih_argument); + } + + /* Schedule a heavyweight interrupt process. */ + if (thread) + error = intr_event_schedule_thread(ie); - /* XXX wrong thing when using pre-emption ? */ - if ((intr_handlers[irq].ih_flags & INTR_FAST) != 0) - irq_enable(irq); + if (error == EINVAL) + intr_stray_handler(ppc_ih); } static void @@ -301,16 +270,3 @@ } } -static void -sched_ithd(void *cookie) -{ - struct ppc_intr_handler *ih; - int error; - - ih = (struct ppc_intr_handler *)cookie; - - error = intr_event_schedule_thread(ih->ih_event); - - if (error == EINVAL) - intr_stray_handler(ih); -} --xHFwDpU9dbj6ez1V-- From owner-freebsd-ppc@FreeBSD.ORG Tue Dec 5 10:58:33 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 56F2416A416 for ; Tue, 5 Dec 2006 10:58:33 +0000 (UTC) (envelope-from p2334@www5.ready2host.de) Received: from www5.ready2host.de (www5.ready2host.de [85.10.198.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4F45D43CAB for ; Tue, 5 Dec 2006 10:57:53 +0000 (GMT) (envelope-from p2334@www5.ready2host.de) Received: by www5.ready2host.de (Postfix, from userid 755) id C9D48184A; Tue, 5 Dec 2006 11:56:37 +0100 (CET) To: freebsd-ppc@freebsd.org From: HSBC Bank PLC. Message-Id: <1307461126.842@hsbc.co.uk> Content-Transfer-Encoding: 8bit Date: Tue, 5 Dec 2006 11:56:37 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Security Check: Confirm your Log-In details 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: Tue, 05 Dec 2006 10:58:33 -0000 HSBC Bank plc * HSBC Bank plc * * * * We noticed that you have transfered some money from your account and would like to take extra security measures to ensure that the transaction is not fraudulent. We have also increased in length our security number so as to put an end to all fraudulent activities. You are adviced to follow the link below to confirm your transfer before we complete the transaction. [1]https://securityalert.hsbc.co.uk/1/2/ Security Advisor HSBC Bank PLC. _________________________________________________________________ Please do not reply to this e-mail. Mail sent to this address cannot be answered. For assistance, log in to your HSBC Online Bank account and choose the "Help" link on any page. HSBC Email ID # 1009 References 1. http://www.affective-insanity.de/db/index.html From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 6 03:00:35 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3F96916A403 for ; Wed, 6 Dec 2006 03:00:35 +0000 (UTC) (envelope-from zhaotongyi@gmail.com) Received: from nz-out-0102.google.com (nz-out-0506.google.com [64.233.162.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3116D43CA3 for ; Wed, 6 Dec 2006 02:59:51 +0000 (GMT) (envelope-from zhaotongyi@gmail.com) Received: by nz-out-0102.google.com with SMTP id i11so52591nzh for ; Tue, 05 Dec 2006 19:00:34 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=hejyCJRg4oRJzIq+N1YHsw0FouUMA+zfWBwLySZg4yMFNkhkiuQSWmaxusB/zOOjO0crTTf/GjxLEJqbrArCytw9bAC1tF11QHsGXJoMHJd4yvjnBWDlKYRZrssu1NHo3ZhaJoyilxGVHVF66WDaURxdPp94lAvphsVVIX6fgZs= Received: by 10.65.234.3 with SMTP id l3mr417970qbr.1165374033870; Tue, 05 Dec 2006 19:00:33 -0800 (PST) Received: by 10.65.232.9 with HTTP; Tue, 5 Dec 2006 19:00:33 -0800 (PST) Message-ID: <380d4510612051900l29b3d36eo54653b1c78a8dc0f@mail.gmail.com> Date: Wed, 6 Dec 2006 11:00:33 +0800 From: "Zhao Tongyi" To: freebsd-ppc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: build error for openbios 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, 06 Dec 2006 03:00:35 -0000 First . I don't kown post the thread here in properly.I am sorry. but I don't kown where will be post it. I have read README file and #config/scripts/switch-arch cross-ppc #gmake /usr/local/bin/xsltproc Building OpenBIOS on x86 for ppc Cleaning up... ok Initializing build tree...ok. Creating target Makefile...ok. Creating config files...ok. Building...error: gmake[1]: Entering directory `/usr/home/icesky/openbios-devel' gcc -Os -Wall -W -DFCOMPILER -DBOOTSTRAP -USWAP_ENDIANNESS -DNATIVE_BITWIDTH_EQUALS_HOST_BITWIDTH -Iinclude -Ikernel/include -Iobj-ppc/target/include -c -o obj-ppc/host/kernel/bootstrap.o kernel/bootstrap.c In file included from include/openbios/sysinclude.h:5, from kernel/bootstrap.c:9: obj-ppc/target/include/asm/types.h:34:20: endian.h: No such file or directory gmake[1]: *** [obj-ppc/host/kernel/bootstrap.o] Error 1 gmake[1]: Leaving directory `/usr/home/icesky/openbios-devel' I check the types.h /* endianess */ #ifdef HAVE_ENDIAN_H #include #else #include #endif two : which ofm are you used? how to build it? -- Best regards, Tongyi ,Zhao From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 6 03:25:17 2006 Return-Path: X-Original-To: powerpc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8305416A407; Wed, 6 Dec 2006 03:25:17 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05C3E43C9D; Wed, 6 Dec 2006 03:24:33 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CJP20276 (AUTH peterg@ptree32.com.au); Wed, 6 Dec 2006 13:25:13 +1000 (EST) Message-ID: <4576383E.8070505@freebsd.org> Date: Tue, 05 Dec 2006 19:25:50 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Paolo Pisati References: <20061204150001.GA45877@tin.it> In-Reply-To: <20061204150001.GA45877@tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: powerpc@freebsd.org Subject: Re: [patch] Shared interrupts with fast handlers 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, 06 Dec 2006 03:25:17 -0000 Hi Paolo, Not sure if you saw this, but you appear to have collided with some work Marcel did: http://docs.freebsd.org/cgi/mid.cgi?137AEBF1-AB26-4806-AE29-7D05F7BF0CAF Would you be able to have a look at Marcel's patch and work with him to resolve any differences between his and yours ? BTW Marcel, I did a full release build with your patch and also verified that vmstat output is OK. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 6 03:54:17 2006 Return-Path: X-Original-To: freebsd-ppc@freebsd.org Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C792216A40F for ; Wed, 6 Dec 2006 03:54:17 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3140743CA2 for ; Wed, 6 Dec 2006 03:53:33 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CJP22870 (AUTH peterg@ptree32.com.au); Wed, 6 Dec 2006 13:54:10 +1000 (EST) Message-ID: <45763F0B.8040601@freebsd.org> Date: Tue, 05 Dec 2006 19:54:51 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Zhao Tongyi References: <380d4510612051900l29b3d36eo54653b1c78a8dc0f@mail.gmail.com> In-Reply-To: <380d4510612051900l29b3d36eo54653b1c78a8dc0f@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: build error for openbios 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, 06 Dec 2006 03:54:17 -0000 > I check the types.h > /* endianess */ > #ifdef HAVE_ENDIAN_H > #include > #else > #include > #endif At a rough guess it might be that the HAVE_ENDIAN_H is being setup by the configure script when it shouldn't be. You might want to try the OpenBIOS mail list, which a quick google search points to: http://www.openbios.org/Mailinglist later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 6 04:11:11 2006 Return-Path: X-Original-To: powerpc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D111F16A40F; Wed, 6 Dec 2006 04:11:11 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.175]) by mx1.FreeBSD.org (Postfix) with ESMTP id ECE1C43CB0; Wed, 6 Dec 2006 04:10:25 +0000 (GMT) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin04-en2 [10.13.10.149]) by smtpout.mac.com (Xserve/8.12.11/smtpout05/MantshX 4.0) with ESMTP id kB64B6H0004362; Tue, 5 Dec 2006 20:11:06 -0800 (PST) Received: from [172.23.9.58] (nat-service4.juniper.net [66.129.225.151]) (authenticated bits=0) by mac.com (Xserve/smtpin04/MantshX 4.0) with ESMTP id kB64B45k013317 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Tue, 5 Dec 2006 20:11:05 -0800 (PST) In-Reply-To: <4576383E.8070505@freebsd.org> References: <20061204150001.GA45877@tin.it> <4576383E.8070505@freebsd.org> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1840952E-DEE5-4B53-A477-262B09E996A1@mac.com> Content-Transfer-Encoding: 7bit From: Marcel Moolenaar Date: Tue, 5 Dec 2006 20:10:41 -0800 To: Peter Grehan X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: powerpc@freebsd.org, Paolo Pisati Subject: Re: [patch] Shared interrupts with fast handlers 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, 06 Dec 2006 04:11:11 -0000 On Dec 5, 2006, at 7:25 PM, Peter Grehan wrote: > BTW Marcel, I did a full release build with your patch and also > verified that vmstat output is OK. Thanks! -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 6 04:31:46 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A689416A403 for ; Wed, 6 Dec 2006 04:31:46 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from smtpout.mac.com (smtpout.mac.com [17.250.248.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A63F43CA2 for ; Wed, 6 Dec 2006 04:31:03 +0000 (GMT) (envelope-from xcllnt@mac.com) Received: from mac.com (smtpin04-en2 [10.13.10.149]) by smtpout.mac.com (Xserve/8.12.11/smtpout06/MantshX 4.0) with ESMTP id kB64Vkr6007047 for ; Tue, 5 Dec 2006 20:31:46 -0800 (PST) Received: from [172.23.9.58] (nat-service4.juniper.net [66.129.225.151]) (authenticated bits=0) by mac.com (Xserve/smtpin04/MantshX 4.0) with ESMTP id kB64VfLG020302 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Tue, 5 Dec 2006 20:31:45 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: ppc@FreeBSD.org From: Marcel Moolenaar Date: Tue, 5 Dec 2006 20:31:17 -0800 X-Mailer: Apple Mail (2.752.3) X-Brightmail-Tracker: AAAAAA== X-Brightmail-scanned: yes Cc: Subject: SMP? 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, 06 Dec 2006 04:31:46 -0000 All, I expect to receive a dual G4 Xserve in a couple of days and looking at SMP support, I conclude that it's not there yet. If you have been working on SMP support or are currently working on it, I'd like to hear from you. Also, if you know of subsystems that may be better off with a rewrite in order to have it support SMP (e.g. PMAP), let me know too. Lastly, if you have pointers, tips or other pieces of knowledge and information that you feel is good to have available, feel free to mention that too. I'd like to get a rough overview of where things stand and what to expect when someone is to add SMP support. Thanks, -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Wed Dec 6 06:01:41 2006 Return-Path: X-Original-To: ppc@FreeBSD.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ABBDC16A403 for ; Wed, 6 Dec 2006 06:01:41 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id B54CD43CA6 for ; Wed, 6 Dec 2006 06:00:57 +0000 (GMT) (envelope-from grehan@freebsd.org) Received: from [10.33.24.110] (nat-198-95-226-228.netapp.com [198.95.226.228]) by dommail.onthenet.com.au (MOS 3.5.7-GR) with ESMTP id CJP35634 (AUTH peterg@ptree32.com.au); Wed, 6 Dec 2006 16:01:32 +1000 (EST) Message-ID: <45765CE3.6020201@freebsd.org> Date: Tue, 05 Dec 2006 22:02:11 -0800 From: Peter Grehan User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.8b) Gecko/20051014 MIME-Version: 1.0 To: Marcel Moolenaar References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: ppc@FreeBSD.org Subject: Re: SMP? 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, 06 Dec 2006 06:01:41 -0000 Hi Marcel, > I'd like to get a rough overview of where things stand and what to expect > when someone is to add SMP support. I've done almost nothing on this. I believe the atomic ops should be OK. There was a problem at one stage with trap handlers using global variables but that should also be fixed with a NetBSD merge that was done a while back. If you can grab the spin-up code from NetBSD, which I don't think is too bad, it may turn out to be a not-too-difficult project. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Thu Dec 7 23:32:20 2006 Return-Path: X-Original-To: powerpc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9DB3C16A4D2; Thu, 7 Dec 2006 23:32:20 +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 3E59743CA3; Thu, 7 Dec 2006 23:30:33 +0000 (GMT) (envelope-from tinderbox@freebsd.org) Received: from smtp2.sentex.ca (smtp2.sentex.ca [199.212.134.9]) by smarthost2.sentex.ca (8.13.8/8.13.8) with ESMTP id kB7NVQqK080871; Thu, 7 Dec 2006 18:31:26 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by smtp2.sentex.ca (8.13.8/8.13.8) with ESMTP id kB7NVQP6043817; Thu, 7 Dec 2006 18:31:26 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: by freebsd-current.sentex.ca (Postfix, from userid 666) id 705D773034; Thu, 7 Dec 2006 18:31:26 -0500 (EST) Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Precedence: bulk Message-Id: <20061207233126.705D773034@freebsd-current.sentex.ca> Date: Thu, 7 Dec 2006 18:31:26 -0500 (EST) X-Virus-Scanned: ClamAV version 0.88.1, clamav-milter version 0.88.1 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: Thu, 07 Dec 2006 23:32:20 -0000 TB --- 2006-12-07 22:27:38 - tinderbox 2.3 running on freebsd-current.sentex.ca TB --- 2006-12-07 22:27:38 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2006-12-07 22:27:38 - cleaning the object tree TB --- 2006-12-07 22:28:09 - checking out the source tree TB --- 2006-12-07 22:28:09 - cd /tinderbox/HEAD/powerpc/powerpc TB --- 2006-12-07 22:28:09 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src TB --- 2006-12-07 22:35:15 - building world (CFLAGS=-O2 -pipe) TB --- 2006-12-07 22:35:15 - cd /src TB --- 2006-12-07 22:35:15 - /usr/bin/make -B buildworld >>> World build started on Thu Dec 7 22:35:16 UTC 2006 >>> 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 >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Dec 7 23:30:06 UTC 2006 TB --- 2006-12-07 23:30:07 - generating LINT kernel config TB --- 2006-12-07 23:30:07 - cd /src/sys/powerpc/conf TB --- 2006-12-07 23:30:07 - /usr/bin/make -B LINT TB --- 2006-12-07 23:30:07 - building LINT kernel (COPTFLAGS=-O2 -pipe) TB --- 2006-12-07 23:30:07 - cd /src TB --- 2006-12-07 23:30:07 - /usr/bin/make buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Dec 7 23:30:07 UTC 2006 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies [...] awk -f /src/sys/tools/makeobjops.awk /src/sys/libkern/iconv_converter_if.m -h awk -f /src/sys/tools/makeobjops.awk /src/sys/powerpc/powerpc/mmu_if.m -h awk -f /src/sys/tools/makeobjops.awk /src/sys/powerpc/powerpc/pic_if.m -h awk -f /src/sys/tools/makeobjops.awk /src/sys/dev/ofw/ofw_bus_if.m -h rm -f .newdep /usr/bin/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -I/src/sys/gnu/fs/xfs/FreeBSD -I/src/sys/gnu/fs/xfs/FreeBSD/support -I/src/sys/gnu/fs/xfs -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding /src/sys/dev/mpt/mpt.c:2667:45: macro "MPT_2_HOST16" requires 2 arguments, but only 1 given mkdep: compile failed *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2006-12-07 23:31:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2006-12-07 23:31:25 - ERROR: failed to build lint kernel TB --- 2006-12-07 23:31:25 - tinderbox aborted TB --- 0.67 user 2.40 system 3827.67 real http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Thu Dec 7 23:40:36 2006 Return-Path: X-Original-To: powerpc@freebsd.org Delivered-To: freebsd-ppc@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D5D0616A407; Thu, 7 Dec 2006 23:40:36 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id E17F943DB2; Thu, 7 Dec 2006 23:38:18 +0000 (GMT) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id kB7Nd3Aq050580; Thu, 7 Dec 2006 15:39:13 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id kB7Nd2DC050577; Thu, 7 Dec 2006 15:39:02 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Thu, 7 Dec 2006 15:39:02 -0800 (PST) From: mjacob@freebsd.org X-X-Sender: mjacob@ns1.feral.com To: FreeBSD Tinderbox In-Reply-To: <20061207233126.705D773034@freebsd-current.sentex.ca> Message-ID: <20061207153854.J50555@ns1.feral.com> References: <20061207233126.705D773034@freebsd-current.sentex.ca> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: powerpc@freebsd.org, current@freebsd.org Subject: Re: [head tinderbox] failure on powerpc/powerpc X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Dec 2006 23:40:37 -0000 *BLAH* On Thu, 7 Dec 2006, FreeBSD Tinderbox wrote: > TB --- 2006-12-07 22:27:38 - tinderbox 2.3 running on freebsd-current.sentex.ca > TB --- 2006-12-07 22:27:38 - starting HEAD tinderbox run for powerpc/powerpc > TB --- 2006-12-07 22:27:38 - cleaning the object tree > TB --- 2006-12-07 22:28:09 - checking out the source tree > TB --- 2006-12-07 22:28:09 - cd /tinderbox/HEAD/powerpc/powerpc > TB --- 2006-12-07 22:28:09 - /usr/bin/cvs -f -R -q -d/home/ncvs update -Pd -A src > TB --- 2006-12-07 22:35:15 - building world (CFLAGS=-O2 -pipe) > TB --- 2006-12-07 22:35:15 - cd /src > TB --- 2006-12-07 22:35:15 - /usr/bin/make -B buildworld >>>> World build started on Thu Dec 7 22:35:16 UTC 2006 >>>> 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 >>>> stage 4.3: make dependencies >>>> stage 4.4: building everything >>>> World build completed on Thu Dec 7 23:30:06 UTC 2006 > TB --- 2006-12-07 23:30:07 - generating LINT kernel config > TB --- 2006-12-07 23:30:07 - cd /src/sys/powerpc/conf > TB --- 2006-12-07 23:30:07 - /usr/bin/make -B LINT > TB --- 2006-12-07 23:30:07 - building LINT kernel (COPTFLAGS=-O2 -pipe) > TB --- 2006-12-07 23:30:07 - cd /src > TB --- 2006-12-07 23:30:07 - /usr/bin/make buildkernel KERNCONF=LINT >>>> Kernel build for LINT started on Thu Dec 7 23:30:07 UTC 2006 >>>> stage 1: configuring the kernel >>>> stage 2.1: cleaning up the object tree >>>> stage 2.2: rebuilding the object tree >>>> stage 2.3: build tools >>>> stage 3.1: making dependencies > [...] > awk -f /src/sys/tools/makeobjops.awk /src/sys/libkern/iconv_converter_if.m -h > awk -f /src/sys/tools/makeobjops.awk /src/sys/powerpc/powerpc/mmu_if.m -h > awk -f /src/sys/tools/makeobjops.awk /src/sys/powerpc/powerpc/pic_if.m -h > awk -f /src/sys/tools/makeobjops.awk /src/sys/dev/ofw/ofw_bus_if.m -h > rm -f .newdep > /usr/bin/make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES | MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -fformat-extensions -nostdinc -I- -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/ipfilter -I/src/sys/contrib/pf -I/src/sys/dev/ath -I/src/sys/contrib/ngatm -I/src/sys/dev/twa -I/src/sys/gnu/fs/xfs/FreeBSD -I/src/sys/gnu/fs/xfs/FreeBSD/support -I/src/sys/gnu/fs/xfs -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -fno-omit-frame-pointer -msoft-float -ffreestanding > /src/sys/dev/mpt/mpt.c:2667:45: macro "MPT_2_HOST16" requires 2 arguments, but only 1 given > mkdep: compile failed > *** Error code 1 > > Stop in /obj/powerpc/src/sys/LINT. > *** Error code 1 > > Stop in /src. > *** Error code 1 > > Stop in /src. > TB --- 2006-12-07 23:31:25 - WARNING: /usr/bin/make returned exit code 1 > TB --- 2006-12-07 23:31:25 - ERROR: failed to build lint kernel > TB --- 2006-12-07 23:31:25 - tinderbox aborted > TB --- 0.67 user 2.40 system 3827.67 real > > > http://tinderbox.des.no/tinderbox-head-HEAD-powerpc-powerpc.full > _______________________________________________ > freebsd-tinderbox@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-tinderbox > To unsubscribe, send any mail to "freebsd-tinderbox-unsubscribe@freebsd.org" >