From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 28 06:40: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 AEE6D106568B for ; Sun, 28 Sep 2008 06:40:55 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id 3553B8FC15 for ; Sun, 28 Sep 2008 06:40:55 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id B259B11991; Sun, 28 Sep 2008 16:40:52 +1000 (EST) Received: from peter-grehans-power-mac-g5.local (dsl-63-249-90-35.cruzio.com [63.249.90.35]) by dommail.onthenet.com.au (MOS 3.8.6-GA) with ESMTP id EJF89406 (AUTH peterg@ptree32.com.au); Sun, 28 Sep 2008 16:40:11 +1000 (EST) Message-ID: <48DF26F2.1000209@freebsd.org> Date: Sat, 27 Sep 2008 23:40:50 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Marcel Moolenaar References: <48DD91A4.2060306@freebsd.org> <263AF44F-FC15-4700-B93B-B0DE07A17B40@mac.com> <11FEA924-DB76-46E1-BF79-A26206F796C0@mac.com> In-Reply-To: <11FEA924-DB76-46E1-BF79-A26206F796C0@mac.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org Subject: Re: 8.0-current 200809 snapshot CD boot problem X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: grehan@freebsd.org List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Sep 2008 06:40:55 -0000 Hi Marcel, > o I-cache coherency The culprit could be the code fragment in sys/boot/ofw/libofw/elf_freebsd.c:__elfN(ofw_loadfile), if (!strcmp((*result)->f_type, "elf kernel")) __syncicache((void *) (*result)->f_addr, (*result)->f_size); If f_addr isn't the start of the text segment i.e. if the initial page wasn't included, then that is what is blowing up. > Quick question: On ARM and ia64 you need to sync the > D-cache before you can make the I-cache coherent. That's > because the I-cache is made coherent with memory and > not with the D-cache. How's that on PowerPC? Same - see powerpc/syncicache.c where the d-cache is flushed before the invalidating the i-cache. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 28 11:12:49 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 BB5061065689 for ; Sun, 28 Sep 2008 11:12:49 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.183]) by mx1.freebsd.org (Postfix) with ESMTP id 9208D8FC14 for ; Sun, 28 Sep 2008 11:12:49 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wa-out-1112.google.com with SMTP id n4so829705wag.27 for ; Sun, 28 Sep 2008 04:12:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=WQx9bu1b2XijgppVcdfgszwp457GQN2WjygNEluwxC8=; b=kdpPfCYbkOZB9eUriSItw7SqMSswMYVh+ZCcLy5zMktCFk1XgdEMW1EIcpTvBgOncz mkrBUxi7geGR0oxkUhpCsrFdLjPaynS+oyv9Lktjy1JdhuG1Kmn1nfT4gtfQvhCA6hKy KzWRVmmn8r5iOXsJmbg9d9epa5xRBxLjqgziA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=xIN6JMOrjqiC1rCILj+1V2GKoXgA5vkViCrMihRfu9v5JeBiO0vh3yXXghsBWPAzbU jruMmoaPrA1vsR0kh0aVhV0sfFT4LUY9VlCo4phte9xJG5iOFKRrmLo4MRQx2j5aKTw4 POJo6f3wPzXIks5bA2pWQDSuNI9kL8d4kv05M= Received: by 10.115.74.1 with SMTP id b1mr4072325wal.169.1222600369083; Sun, 28 Sep 2008 04:12:49 -0700 (PDT) Received: by 10.114.67.13 with HTTP; Sun, 28 Sep 2008 04:12:49 -0700 (PDT) Message-ID: Date: Sun, 28 Sep 2008 13:12:49 +0200 From: "Marco Trillo" To: freebsd-ppc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Fatal kernel trap on 7400 G4 processors 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: Sun, 28 Sep 2008 11:12:49 -0000 Hi all, Recent 8.0-current kernels cause a "fatal kernel trap" on 7400 G4 processors: fatal kernel trap exception = 0x7 (program) srr0 = 0x5336bc srr1 = 0x83032 lr = 0x5334b4 Stopped at 0x5336bc mfspr 0, dccr The address 0x5336bc corresponds to function cpu_setup() in powerpc/cpu.c: 5336b4: 7f 9e 00 00 cmpw cr7,r30,r0 5336b8: 40 be 02 94 bne+ cr7,53394c 5336bc: 7c 1a fa a6 mfdccr r0 <<<<< here 5336c0: 3d 20 00 5f lis r9,95 I tracked the line to the following code in cpu.c: switch (vers) { case MPC7400: case MPC7410: case MPC7447A: case MPC7448: case MPC7450: case MPC7455: case MPC7457: /* G3 systems don't have an L3 cache, so only check * for G4 and above */ l3cr_config = mfspr(SPR_L3CR); <<<< here /* Fallthrough */ In include/spr.h I see the following: #define SPR_L3CR 0x3fa /* .6. L3 Control Register */ #define SPR_DCCR 0x3fa /* 4.. Data Cache Cachability Register */ So it seems that the 7400 processor doesn't have these registers so it causes a fault. What do you think? Thanks, Marco. From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 28 11:50:19 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 AC9531065687 for ; Sun, 28 Sep 2008 11:50:19 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 7B4A58FC08 for ; Sun, 28 Sep 2008 11:50:19 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wa-out-1112.google.com with SMTP id n4so833131wag.27 for ; Sun, 28 Sep 2008 04:50:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=un1W70BodBkC2h4QCf8ByzMlMs0NBvDzwgKlC0CzjXU=; b=onfVSvyJd6SS3rq+iMBAUSn9SUB4MrDLY2rKJnIDJG5Dqw5iQhqJXEYmX06b8ymKvE W7fgPLetfcyKb5hvANgQd2dqauKcPw9KWaRmnR1zT8Ns0stnu+m8YCjseFQf1xeJmF2U gEH+yHPDRI1eaeUv9XKxquP612U8Sxky0WIEQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=gS5bcohs+YhhSIDywz/Egm2O4PKSny7OuHV3qqq6IJuLGIMf+UJLj71Dm2KNNIFL1r K0lWcv/YzUAvhZ5VXBniAykWNU50fexpUaD6ALdIrI3DOp696mIZhCyXq9KEFcdvdkod uc4LybM1I902DanF19rzjD9MmmOS5Y/1537nE= Received: by 10.114.152.17 with SMTP id z17mr4149819wad.63.1222602619003; Sun, 28 Sep 2008 04:50:19 -0700 (PDT) Received: by 10.114.67.13 with HTTP; Sun, 28 Sep 2008 04:50:18 -0700 (PDT) Message-ID: Date: Sun, 28 Sep 2008 13:50:18 +0200 From: "Marco Trillo" To: "Nathan Whitehorn" In-Reply-To: <48DE7C93.5050506@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <48D389EE.9000207@FreeBSD.org> <48DA4037.9000508@freebsd.org> <48DBD6C0.5070005@freebsd.org> <48DD2DF7.2020901@freebsd.org> <48DDAC14.9070604@freebsd.org> <48DE7C93.5050506@freebsd.org> Cc: freebsd-ppc@freebsd.org Subject: Re: Call for testers: Apple ATA DMA 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: Sun, 28 Sep 2008 11:50:19 -0000 Hi, On Sat, Sep 27, 2008 at 8:33 PM, Nathan Whitehorn wrote: > Thanks for testing -- I've committed the patch. I'll revisit it when Marcel > tests it on Monday and it erases his hard drive... Another report, just for the record, this time from a PowerMac G4 "Sawtooth" (PowerMac3,1) with three mac-io ATA cells, two hard drives and a DVD drive. It works perfectly! ata0 mem 0x1f000-0x1ffff,0x8a00-0x8aff irq 19,11 on macio0 ata0: [ITHREAD] ata1 mem 0x20000-0x20fff,0x8b00-0x8bff irq 20,12 on macio0 ata1: [ITHREAD] ata2 mem 0x21000-0x21fff,0x8c00-0x8cff irq 21,13 on macio0 ata2: [ITHREAD] ad0: 9797MB at ata0-master UDMA66 ad1: 76319MB at ata0-slave UDMA66 acd0: DVDR at ata1-master WDMA2 Thanks, Marco. From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 28 15:14: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 6FB6A1065686 for ; Sun, 28 Sep 2008 15:14:46 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 431988FC1A for ; Sun, 28 Sep 2008 15:14:46 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) 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-6.03 (built Mar 14 2008; 32bit)) id <0K7W00400VOL2S00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sun, 28 Sep 2008 10:14:45 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K7W00KQTVOKYI20@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sun, 28 Sep 2008 10:14:45 -0500 (CDT) Date: Sun, 28 Sep 2008 10:19:11 -0500 From: Nathan Whitehorn In-reply-to: To: Marco Trillo Message-id: <48DFA06F.20607@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-11, Version=5.4.1.325704, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.28.145525, SenderIP=76.204.100.161 References: User-Agent: Thunderbird 2.0.0.16 (X11/20080814) Cc: freebsd-ppc@freebsd.org Subject: Re: Fatal kernel trap on 7400 G4 processors 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: Sun, 28 Sep 2008 15:14:46 -0000 Marco Trillo wrote: > Hi all, > > Recent 8.0-current kernels cause a "fatal kernel trap" on 7400 G4 processors: > > fatal kernel trap > > exception = 0x7 (program) > srr0 = 0x5336bc > srr1 = 0x83032 > lr = 0x5334b4 > > Stopped at 0x5336bc mfspr 0, dccr > > The address 0x5336bc corresponds to function cpu_setup() in powerpc/cpu.c: > > 5336b4: 7f 9e 00 00 cmpw cr7,r30,r0 > 5336b8: 40 be 02 94 bne+ cr7,53394c > 5336bc: 7c 1a fa a6 mfdccr r0 <<<<< here > 5336c0: 3d 20 00 5f lis r9,95 > > I tracked the line to the following code in cpu.c: > > l3cr_config = mfspr(SPR_L3CR); <<<< here > > /* Fallthrough */ > > In include/spr.h I see the following: > > #define SPR_L3CR 0x3fa /* .6. L3 Control Register */ > #define SPR_DCCR 0x3fa /* 4.. Data Cache Cachability Register */ > > So it seems that the 7400 processor doesn't have these registers so it > causes a fault. Apparently only the MPC745x CPUs have an L3 cache, and I just updated cpu.c to reflect that. For G5 support, I wrote a piece of code that you can put in EXEC_PGM that writes a value to SPRG2 if a trap was taken, then tries to execute a 64-bit instruction to see if the CPU is 64-bit. I think we should do something similar to detect cache presence, Altivec support and such things. Since we can do this when the system is further into booting, we should be able to use the regular trap handlers. Is there a way to catch traps instead of panicing? -Nathan From owner-freebsd-ppc@FreeBSD.ORG Sun Sep 28 18:06:13 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 8A3D41065690; Sun, 28 Sep 2008 18:06:13 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout017.mac.com (asmtpout017.mac.com [17.148.16.92]) by mx1.freebsd.org (Postfix) with ESMTP id 7044B8FC12; Sun, 28 Sep 2008 18:06:13 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from [192.168.1.95] (209-128-86-226.BAYAREA.NET [209.128.86.226]) by asmtp017.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K7X00HYK3MC4000@asmtp017.mac.com>; Sun, 28 Sep 2008 11:06:13 -0700 (PDT) Message-id: From: Marcel Moolenaar To: grehan@freebsd.org In-reply-to: <48DF26F2.1000209@freebsd.org> Date: Sun, 28 Sep 2008 11:06:11 -0700 References: <48DD91A4.2060306@freebsd.org> <263AF44F-FC15-4700-B93B-B0DE07A17B40@mac.com> <11FEA924-DB76-46E1-BF79-A26206F796C0@mac.com> <48DF26F2.1000209@freebsd.org> X-Mailer: Apple Mail (2.929.2) Cc: freebsd-ppc@freebsd.org Subject: Re: 8.0-current 200809 snapshot CD boot problem 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: Sun, 28 Sep 2008 18:06:13 -0000 On Sep 27, 2008, at 11:40 PM, Peter Grehan wrote: > Hi Marcel, > >> o I-cache coherency > > The culprit could be the code fragment in sys/boot/ofw/libofw/ > elf_freebsd.c:__elfN(ofw_loadfile), > > if (!strcmp((*result)->f_type, "elf kernel")) > __syncicache((void *) (*result)->f_addr, (*result)- > >f_size); > > If f_addr isn't the start of the text segment i.e. if the initial > page wasn't included, then that is what is blowing up. It looks like f_addr is the correct (virtual) load address. I think the problem relates to whether the starting address falls withing the first page, given that: o We bcopy the first page to avoid reading twice, o We need to flush the D-cache before we can sync the I-cache. We do dcbst before we icbi, but I'm wondering if there isn't a bug there. What if we need to sync after every dcbst? -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 29 08:55:02 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 5A1D3106568E for ; Mon, 29 Sep 2008 08:55:02 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from sippysoft.com (gk1.360sip.com [72.236.70.240]) by mx1.freebsd.org (Postfix) with ESMTP id 2873C8FC29 for ; Mon, 29 Sep 2008 08:55:01 +0000 (UTC) (envelope-from sobomax@FreeBSD.org) Received: from [192.168.0.61] ([204.244.149.125]) (authenticated bits=0) by sippysoft.com (8.13.8/8.13.8) with ESMTP id m8T8sw91063743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 29 Sep 2008 01:54:58 -0700 (PDT) (envelope-from sobomax@FreeBSD.org) Message-ID: <48E097E1.2060101@FreeBSD.org> Date: Mon, 29 Sep 2008 01:54:57 -0700 From: Maxim Sobolev Organization: Sippy Software, Inc. User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: freebsd-ppc@FreeBSD.org References: 48DE7C93.5050506@freebsd.org Content-Type: text/plain; charset=KOI8-U; format=flowed Content-Transfer-Encoding: 7bit Cc: marius@alchemy.franken.de Subject: Call for testers: Apple ATA DMA 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, 29 Sep 2008 08:55:02 -0000 > I see two issues with acd(4) on sparc64, which, given that > I don't see them with either amd64 or i386 and that there > are no such reports for these archs, I suspect are endian- > bugs (which might be hidden with 32-bit machines though): > a) read-only drives are falsely reported as having write > capabilities in dmesg (this is a rather old bug but so > far this seemed to be a cosmetic problem only) > b) DMA is broken in that file content read is wrong except > for "small" files; there's no data corruption when PIO > mode is forced (this seem to be a recurring bug once > again present in HEAD). > > Do you guys see these problems also with powerpc? Not sure if it's related, but burning CD image to CD-RW media doesn't work on my MacMini, failing with something like "invalid argument". At the same time, erasing the same media works just fine. -Maxim From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 29 11: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 DA69E1065688 for ; Mon, 29 Sep 2008 11:06:55 +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 C9AD48FC0C for ; Mon, 29 Sep 2008 11:06:55 +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 m8TB6tZX040900 for ; Mon, 29 Sep 2008 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8TB6tbl040896 for freebsd-ppc@FreeBSD.org; Mon, 29 Sep 2008 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Sep 2008 11:06:55 GMT Message-Id: <200809291106.m8TB6tbl040896@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, 29 Sep 2008 11:06:55 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- a power/121407 ppc [panic] Won't boot up; strange error message. o power/112435 ppc [nexus] [patch] Update nexus children to use ofw_bus f o power/111296 ppc [kernel] [patch] [request] Support IMISS, DLMISS an DS o power/93203 ppc FreeBSD PPC Can't Write to Partitions. 4 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 29 13:42:42 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 3A64E1065693 for ; Mon, 29 Sep 2008 13:42:42 +0000 (UTC) (envelope-from tn06aj0@student.lth.se) Received: from erik.ddg.lth.se (erik.ddg.lth.se [130.235.20.69]) by mx1.freebsd.org (Postfix) with ESMTP id A5BC38FC13 for ; Mon, 29 Sep 2008 13:42:41 +0000 (UTC) (envelope-from tn06aj0@student.lth.se) Received: from filip.ddg.lth.se (root@filip.ddg.lth.se [130.235.20.70]) by erik.ddg.lth.se (8.14.1/8.14.1) with ESMTP id m8TDNZTx005963 for ; Mon, 29 Sep 2008 15:23:35 +0200 Received: from webmail.student.lth.se (daemon@localhost.localdomain [127.0.0.1]) by filip.ddg.lth.se (8.13.4/8.13.4/Debian-3sarge3) with ESMTP id m8TDNZ2e010951 for ; Mon, 29 Sep 2008 15:23:35 +0200 Received: from 83.233.155.226 (SquirrelMail authenticated user tn06aj0) by webmail.student.lth.se with HTTP; Mon, 29 Sep 2008 15:23:35 +0200 (CEST) Message-ID: <46171.83.233.155.226.1222694615.squirrel@webmail.student.lth.se> Date: Mon, 29 Sep 2008 15:23:35 +0200 (CEST) From: Andreas =?iso-8859-1?Q?J=F6nsson?= To: freebsd-ppc@freebsd.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: ADB support? 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, 29 Sep 2008 13:42:42 -0000 Hi, I'm wondering how the ADB keyboard support is coming along? The last thing I've seen on this list is from July. /Andreas From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 29 13:49:20 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 412C110656A5 for ; Mon, 29 Sep 2008 13:49:20 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from adsum.doit.wisc.edu (adsum.doit.wisc.edu [144.92.197.210]) by mx1.freebsd.org (Postfix) with ESMTP id 1743F8FC19 for ; Mon, 29 Sep 2008 13:49:20 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 8BIT 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-6.03 (built Mar 14 2008; 32bit)) id <0K7Y00G08ME5BA00@smtpauth1.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Mon, 29 Sep 2008 08:49:17 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth1.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K7Y00418ME2Y380@smtpauth1.wiscmail.wisc.edu>; Mon, 29 Sep 2008 08:49:15 -0500 (CDT) Date: Mon, 29 Sep 2008 08:53:42 -0500 From: Nathan Whitehorn In-reply-to: <46171.83.233.155.226.1222694615.squirrel@webmail.student.lth.se> To: =?ISO-8859-1?Q?Andreas_J=F6nsson?= Message-id: <48E0DDE6.5030909@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-13, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.9.29.132509, SenderIP=76.204.100.161 References: <46171.83.233.155.226.1222694615.squirrel@webmail.student.lth.se> User-Agent: Thunderbird 2.0.0.17 (X11/20080928) Cc: freebsd-ppc@freebsd.org Subject: Re: ADB support? 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, 29 Sep 2008 13:49:20 -0000 Andreas Jönsson wrote: > Hi, > > I'm wondering how the ADB keyboard support is coming along? > The last thing I've seen on this list is from July. I've been stymied by a lack of hardware. It works great on my PowerMac G3, but that has a different controller chip (CUDA) than the one everybody wants support for (PMU, found in laptops). My current work is here: http://people.freebsd.org/~nwhitehorn/adb.diff It has a PMU driver, which may just work. Of course, it more likely won't... Motivated people are welcome to hack it, and I'd appreciate any reports. To add this support, apply the patch to sys on a recent -CURRENT, add the following to your kernel config, and recompile: device cuda device pmu device adb -Nathan From owner-freebsd-ppc@FreeBSD.ORG Mon Sep 29 21:52:04 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 43A9A1065698; Mon, 29 Sep 2008 21:52:04 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout015.mac.com (asmtpout015.mac.com [17.148.16.90]) by mx1.freebsd.org (Postfix) with ESMTP id 26E028FC38; Mon, 29 Sep 2008 21:52:04 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Received: from macbook-pro.jnpr.net (natint3.juniper.net [66.129.224.36]) by asmtp015.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0K7Z000C38QRC3W4@asmtp015.mac.com>; Mon, 29 Sep 2008 14:52:04 -0700 (PDT) Message-id: <0D5AE023-0D54-43BA-A325-0E1BEEC39D28@mac.com> From: Marcel Moolenaar To: Nathan Whitehorn In-reply-to: <48DE7C93.5050506@freebsd.org> Date: Mon, 29 Sep 2008 14:52:03 -0700 References: <48D389EE.9000207@FreeBSD.org> <645CD2B8-11A0-42E8-B5F9-C04DCF21F763@mac.com> <48D84C12.7070207@freebsd.org> <0DD89065-9CF3-45E4-89A0-70D6BBB9621D@mac.com> <48D92D44.6080807@freebsd.org> <48DA4037.9000508@freebsd.org> <48DBD6C0.5070005@freebsd.org> <48DD2DF7.2020901@freebsd.org> <48DDAC14.9070604@freebsd.org> <48DE7C93.5050506@freebsd.org> X-Mailer: Apple Mail (2.929.2) Cc: grehan@freebsd.org, freebsd-ppc@freebsd.org Subject: Re: Call for testers: Apple ATA DMA 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, 29 Sep 2008 21:52:04 -0000 On Sep 27, 2008, at 11:33 AM, Nathan Whitehorn wrote: > Peter Grehan wrote: >> Hi Nathan, >> > If I can get positive reports from a few more people who were >>> having trouble, I'll drop this in the tree. >> The imac's ata-4 is working solidly at UDMA-66. The difference in >> CPU usage and i/o with dd at 32k block size is stunning: 2MB/7% >> idle before, 18MB/75% idle with your patch. > > I guess DMA is a useful technology :) > > Thanks for testing -- I've committed the patch. I'll revisit it when > Marcel tests it on Monday and it erases his hard drive... Good and bad news. The good: my Xserve is working fine and acd0 is now using UDMA33 instead of BIOSPIO. The bad: my Mac Mini G4 is still having the same problems. This is ad0 at UDMA66 and acd0 at UDMA33. I'll experiment with it a bit later... -- Marcel Moolenaar xcllnt@mac.com From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 30 09:31: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 A164D106568C for ; Tue, 30 Sep 2008 09:31:18 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.228]) by mx1.freebsd.org (Postfix) with ESMTP id 798148FC19 for ; Tue, 30 Sep 2008 09:31:18 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by rv-out-0506.google.com with SMTP id b25so2358913rvf.43 for ; Tue, 30 Sep 2008 02:31:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=x2egGGAEK8X4FnlCqTRN9NJiC1R8W/GguO/XxoQ4/mw=; b=Sl8a7doh1cTLC/znOZwRD/NDR6/e0uHXTP6qEymPQSf+AZ6CJt7/3bxy1ZQ5hLoS4n F/VdMStlN2cEJ9EIHxlcjX6RWqC/Vn+DOmegA6NfMWj3Kb2TTRvaiw3poqOmc07RTUFq VJnxsZpcR5ObJ9go+TuKXGjYq7EAuP5ADwGlU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=WVZjKCQbyljKvA888TzduYS0cceiT+RxkWWgCpafOWH8TbvD4icCaBSXAp3sVTnBGc SIxYpf4uGOIM6WhnYWlB7u8Ui/V6OVE7tZD0Gpsm56xkknYggXw1vrtIH+uBlTpLfLqx uRHEat/eqZoK649na5md+djMatDii6KCTZMLk= Received: by 10.142.136.16 with SMTP id j16mr2705382wfd.65.1222767077541; Tue, 30 Sep 2008 02:31:17 -0700 (PDT) Received: by 10.142.101.13 with HTTP; Tue, 30 Sep 2008 02:31:17 -0700 (PDT) Message-ID: Date: Tue, 30 Sep 2008 11:31:17 +0200 From: "Marco Trillo" To: freebsd-ppc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Apple Screamer Audio: looking for testers 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, 30 Sep 2008 09:31:18 -0000 Hi all, This is a status report of the "Apple Onboard Audio" (aoa) driver. I have full audio output support for Apple machines using the "Apple Screamer" audio device. The volume control works and can be regulated with the mixer(8) utility. When something is plugged (or unplugged) in the headphones / line out jack, the driver switches the output to/from the jack automatically, just like Mac OS. If you are interested in audio support and have this device (see below for an incomplete list of machines), it would be nice that you tested it to see how it does on other machines apart from the one I have (PowerMac3,1 G4). Especially regarding the headphone jack detection stuff, since different machines are wired differently. Some dmesg from my machine: pcm0: mem 0x14000-0x14fff,0x8800-0x88ff,0x8900-0x89ff irq 24,9,10 on macio0 interrupting at irq 9 pcm0: [ITHREAD] pcm0: codec: , Crystal Semiconductor part pcm0: [ITHREAD] Enabled outputs: SPEAKER Enabling programmable output. volume 3 3 [...] Enabled outputs: HEADPHONES Enabling programmable output. $ mixer Mixer vol is currently set to 83:83 An incomplete list of machines known to have the Apple Screamer audio device: - "PowerMac2,1" iMac DV ('99) (screamer, Device ID 8) - "PowerMac2,2" iMac DV ('00) (screamer, Device ID 11) - "PowerMac3,1" PowerMac G4 (screamer, Device ID 5) - "PowerMac3,2" PowerMac G4 (screamer, Device ID 5) - "PowerMac3,3" PowerMac G4 (screamer, Device ID 5) - "PowerBook1,1" PowerBook G3 Lombard (screamer, Device ID 2) - "PowerBook3,1" PowerBook G3 Pismo (screamer, Device ID 10) - "PowerBook3,2" PowerBook G3 Titanium (screamer, Device ID 13) (The Screamer is sometimes known as "AWACS" in other operating systems such as NetBSD or OpenBSD; according to Apple the Screamer is in fact a new revision of the AWACS chip used in old-world machines.) In addition to the above list, OpenFirmware can also be used to see if the machine has the Screamer chip: Properties of pci@f2000000/mac-io@17/davbus@14000/sound "name" 0000000: 736f 756e 6400 sound. "device_type" 0000000: 736f 756e 6463 6869 7000 soundchip. "compatible" 0000000: 7363 7265 616d 6572 0061 7761 6373 0000 screamer.awacs.. Anyone with one of these machines? Thanks! Marco. From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 30 11: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 7517E106568E for ; Tue, 30 Sep 2008 11:43:34 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.175]) by mx1.freebsd.org (Postfix) with ESMTP id 487E78FC1A for ; Tue, 30 Sep 2008 11:43:34 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so2499398wfg.7 for ; Tue, 30 Sep 2008 04:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=JW5t1eSoywr7+8wTfkMeiO+FBEl/7oQzfbgrVq10IKE=; b=C88ohDgItjR8bvG/ViBGxUd2XqjHnYQVPXkqxZn9vFHaoI/L+OgrsiscpmK8D14kA9 /PzNL9Axbv5TVXN2WMU7qhZf7xiWtiOANLOKgxTflxFVmowjKfs20KSK9vs+vMjsghOW BuuURIgn33q5Xmc+A6eA/LVqdGykmtdCA1C2E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=RZzN3bstvyRz4rUxq8HwVzYYaj98v7HHhPSoZCIkwQ6/TrjT9FWgkvvifIf+WgQhyv OBnf5FzGHwm7Dm8L0iX9vUD6y8mmHqtf4FCbSKUR5Hb6m9G+ZX0x1O8eqeaq4sFaDukM lfThFbFXp1A57eoSjwAQFxSQ4cQForYX0uZvw= Received: by 10.142.239.13 with SMTP id m13mr2743377wfh.218.1222775013943; Tue, 30 Sep 2008 04:43:33 -0700 (PDT) Received: by 10.142.101.13 with HTTP; Tue, 30 Sep 2008 04:43:33 -0700 (PDT) Message-ID: Date: Tue, 30 Sep 2008 13:43:33 +0200 From: "Marco Trillo" To: freebsd-ppc@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Subject: Re: Apple Screamer Audio: looking for testers 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, 30 Sep 2008 11:43:34 -0000 Hi, On Tue, Sep 30, 2008 at 11:31 AM, Marco Trillo wrote: > An incomplete list of machines known to have the Apple Screamer audio device: > > - "PowerMac2,1" iMac DV ('99) (screamer, Device ID 8) > - "PowerMac2,2" iMac DV ('00) (screamer, Device ID 11) > - "PowerMac3,1" PowerMac G4 (screamer, Device ID 5) > - "PowerMac3,2" PowerMac G4 (screamer, Device ID 5) > - "PowerMac3,3" PowerMac G4 (screamer, Device ID 5) > - "PowerBook1,1" PowerBook G3 Lombard (screamer, Device ID 2) > - "PowerBook3,1" PowerBook G3 Pismo (screamer, Device ID 10) > - "PowerBook3,2" PowerBook G3 Titanium (screamer, Device ID 13) Oops.. I meant "PowerBook G4 Titanium", not G3... And another Screamer-based model to add to the list: - "PowerMac4,1" iMac G3 (2001) (screamer) Thanks! Marco. From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 30 20:50: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 AAFDE1065691 for ; Tue, 30 Sep 2008 20:50:18 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.158]) by mx1.freebsd.org (Postfix) with ESMTP id 424D08FC0C for ; Tue, 30 Sep 2008 20:50:18 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: by fg-out-1718.google.com with SMTP id l26so150143fgb.35 for ; Tue, 30 Sep 2008 13:50:16 -0700 (PDT) Received: by 10.180.207.7 with SMTP id e7mr3543191bkg.18.1222807411710; Tue, 30 Sep 2008 13:43:31 -0700 (PDT) Received: from ?131.194.34.47? ([131.194.34.47]) by mx.google.com with ESMTPS id k5sm11851213nfh.0.2008.09.30.13.43.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Sep 2008 13:43:30 -0700 (PDT) Message-ID: <48E28F71.4070906@genesi-usa.com> Date: Tue, 30 Sep 2008 15:43:29 -0500 From: Matt Sealey User-Agent: Thunderbird 2.0.0.18pre (Windows/20080930) MIME-Version: 1.0 To: Marco Trillo References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Matt Sealey Cc: freebsd-ppc@freebsd.org Subject: Re: Fatal kernel trap on 7400 G4 processors 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, 30 Sep 2008 20:50:18 -0000 Shouldn't be doing it on a 7447A or 7448 either as they are 744x series which explicitly does not have L3 cache capability. Ironically these are the only chips where you can actually determine the difference between having L3 and not having L3, since the 7447 and 7457 (and all previous pairs) share the same CPU PVR. -- Matt Sealey Genesi, Manager, Developer Relations Marco Trillo wrote: > Hi all, > > Recent 8.0-current kernels cause a "fatal kernel trap" on 7400 G4 processors: > > fatal kernel trap > > exception = 0x7 (program) > srr0 = 0x5336bc > srr1 = 0x83032 > lr = 0x5334b4 > > Stopped at 0x5336bc mfspr 0, dccr > > The address 0x5336bc corresponds to function cpu_setup() in powerpc/cpu.c: > > 5336b4: 7f 9e 00 00 cmpw cr7,r30,r0 > 5336b8: 40 be 02 94 bne+ cr7,53394c > 5336bc: 7c 1a fa a6 mfdccr r0 <<<<< here > 5336c0: 3d 20 00 5f lis r9,95 > > I tracked the line to the following code in cpu.c: > > switch (vers) { > case MPC7400: > case MPC7410: > case MPC7447A: > case MPC7448: > case MPC7450: > case MPC7455: > case MPC7457: > /* G3 systems don't have an L3 cache, so only check > * for G4 and above */ > > l3cr_config = mfspr(SPR_L3CR); <<<< here > > /* Fallthrough */ > > In include/spr.h I see the following: > > #define SPR_L3CR 0x3fa /* .6. L3 Control Register */ > #define SPR_DCCR 0x3fa /* 4.. Data Cache Cachability Register */ > > So it seems that the 7400 processor doesn't have these registers so it > causes a fault. > > What do you think? > > Thanks, > Marco. > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 30 21:01:45 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 311411065693 for ; Tue, 30 Sep 2008 21:01:45 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: from qw-out-2122.google.com (qw-out-2122.google.com [74.125.92.27]) by mx1.freebsd.org (Postfix) with ESMTP id DCC758FC0C for ; Tue, 30 Sep 2008 21:01:44 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: by qw-out-2122.google.com with SMTP id 9so57191qwb.7 for ; Tue, 30 Sep 2008 14:01:44 -0700 (PDT) Received: by 10.214.244.9 with SMTP id r9mr7105045qah.76.1222807129589; Tue, 30 Sep 2008 13:38:49 -0700 (PDT) Received: from ?131.194.34.47? ([131.194.34.47]) by mx.google.com with ESMTPS id 6sm787995qwk.1.2008.09.30.13.38.47 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Sep 2008 13:38:48 -0700 (PDT) Message-ID: <48E28E58.1020901@genesi-usa.com> Date: Tue, 30 Sep 2008 15:38:48 -0500 From: Matt Sealey User-Agent: Thunderbird 2.0.0.18pre (Windows/20080930) MIME-Version: 1.0 To: Rafal Jaworowski References: <60ACBA3B-927C-4F2C-8680-A6B40B81E06C@mac.com> <48DA84D5.4010109@semihalf.com> <48DA99F8.7070904@semihalf.com> <111399E3-2BC7-4724-8AFB-A40F2A47E66D@mac.com> <48DBC59C.3040101@semihalf.com> In-Reply-To: <48DBC59C.3040101@semihalf.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Matt Sealey Cc: freebsd-ppc@freebsd.org Subject: Re: 64-bit atomic ops on 32-bit CPU -- was: ZFS .. on PowerPC ? 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, 30 Sep 2008 21:01:45 -0000 Isn't there some kind of semaphore primitive in FreeBSD that can be used? I don't understand why you would need to go for all this effort when every atomic-access-requiring variable can simply just be paired with a lock flag (atomic_a and atomic_a_sem). You ask for the semaphore, if you get it, you can write into the value and read from the value, if you do not, you wait until you can get the semaphore.. After all you are basically just implementing a cache-line-sized integrated variable and a new semaphore system here, is NIH really that big a problem? -- Matt Sealey Genesi, Manager, Developer Relations Rafal Jaworowski wrote: > Marcel Moolenaar wrote: >>> Atomic increment would be like this: >>> 1. lwarx W1 >>> >>> 2. lwz W2 >>> 3. In-register increment/other modification >>> 4. stw W2 (modified) >>> Neither 2. nor 3 issued from local CPU will not clear our reservation >>> on this >>> granule. >>> >>> (optionally increment/modify in-register value of W1) >>> 5. stwcx W1, goto p.1 if not succeeded >> Ok. Let's assume we lose the reservation and we're >> forced to loop and try again. Step 2 then reads W2, >> which on a retry is the word written in step 4. As >> such, if we have to loop and retry X times, then >> the atomic increment would increment by X and not >> 1. >> >> I don't think an unconditional write to W2 will >> work if we don't preserve the origional value of >> W2. > > Yeah, it seems there are problems with W2 in read-modify-write scenarios... My > environment is simpler (don't need full R-M-W facility). Let me think a bit > about that other algo. > > FWIW, on multicore e500 systems it is possible to do this safely: there is > system wide atomic op monitoring bit HID1[ATS], which lets a given CPU know if > a lwarx/stwcx sequence is in progress on the system, so we can remotely manage > reservations and eliminate wasting some of bus bandwidth. But this is of > course not uniform accross PowerPC implementations. > > Rafal > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" From owner-freebsd-ppc@FreeBSD.ORG Tue Sep 30 21:37:36 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 A9F941065698 for ; Tue, 30 Sep 2008 21:37:36 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from nagasaki.bogus.com (nagasaki.bogus.com [IPv6:2001:418:1::81]) by mx1.freebsd.org (Postfix) with ESMTP id 864C28FC1F for ; Tue, 30 Sep 2008 21:37:36 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dhcp-206.nokiaip.net ([192.103.16.206]) (authenticated bits=0) by nagasaki.bogus.com (8.14.3/8.14.3) with ESMTP id m8ULb2V8006823 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 30 Sep 2008 21:37:35 GMT (envelope-from grehan@freebsd.org) Message-ID: <48E29BF3.40106@freebsd.org> Date: Tue, 30 Sep 2008 14:36:51 -0700 From: Peter Grehan User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: Matt Sealey References: <60ACBA3B-927C-4F2C-8680-A6B40B81E06C@mac.com> <48DA84D5.4010109@semihalf.com> <48DA99F8.7070904@semihalf.com> <111399E3-2BC7-4724-8AFB-A40F2A47E66D@mac.com> <48DBC59C.3040101@semihalf.com> <48E28E58.1020901@genesi-usa.com> In-Reply-To: <48E28E58.1020901@genesi-usa.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.93.3/8361/Tue Sep 30 14:28:47 2008 on nagasaki.bogus.com X-Virus-Status: Clean Cc: freebsd-ppc@freebsd.org Subject: Re: 64-bit atomic ops on 32-bit CPU -- was: ZFS .. on PowerPC ? 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, 30 Sep 2008 21:37:36 -0000 Hi Matt, > Isn't there some kind of semaphore primitive in FreeBSD that can be > used? The issue is the OpenSolaris ZFS code that makes liberal use of calls such as atomic_add_64(&ptr_to_uint64). This is emulated by having a global lock for all 64-bit atomic operations, but it would be better if this could be done without such workarounds on 32-bit ppc. later, Peter. From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 1 02:43: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 7A110106568A for ; Wed, 1 Oct 2008 02:43:32 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.227]) by mx1.freebsd.org (Postfix) with ESMTP id 316848FC28 for ; Wed, 1 Oct 2008 02:43:31 +0000 (UTC) (envelope-from neko@genesi-usa.com) Received: by wx-out-0506.google.com with SMTP id s17so86016wxc.7 for ; Tue, 30 Sep 2008 19:43:31 -0700 (PDT) Received: by 10.70.41.11 with SMTP id o11mr8650562wxo.35.1222829011170; Tue, 30 Sep 2008 19:43:31 -0700 (PDT) Received: from ?166.128.185.1? ([166.128.185.1]) by mx.google.com with ESMTPS id i39sm844802wxd.17.2008.09.30.19.43.29 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 30 Sep 2008 19:43:30 -0700 (PDT) Message-ID: <48E2E3D2.7020206@genesi-usa.com> Date: Tue, 30 Sep 2008 21:43:30 -0500 From: Matt Sealey User-Agent: Thunderbird 2.0.0.18pre (Windows/20080930) MIME-Version: 1.0 To: Peter Grehan References: <60ACBA3B-927C-4F2C-8680-A6B40B81E06C@mac.com> <48DA84D5.4010109@semihalf.com> <48DA99F8.7070904@semihalf.com> <111399E3-2BC7-4724-8AFB-A40F2A47E66D@mac.com> <48DBC59C.3040101@semihalf.com> <48E28E58.1020901@genesi-usa.com> <48E29BF3.40106@freebsd.org> In-Reply-To: <48E29BF3.40106@freebsd.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Matt Sealey Cc: freebsd-ppc@freebsd.org Subject: Re: 64-bit atomic ops on 32-bit CPU -- was: ZFS .. on PowerPC ? 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, 01 Oct 2008 02:43:32 -0000 Peter Grehan wrote: > Hi Matt, > >> Isn't there some kind of semaphore primitive in FreeBSD that can be >> used? > > The issue is the OpenSolaris ZFS code that makes liberal use of calls > such as atomic_add_64(&ptr_to_uint64). Indeed I had a look at the ZFS-FUSE project a while back, had a lot of discussion with the developer, and even got Tom Riddle of Sun involved in implementing a lot of the 32-bit atomicity code which wasn't present in Solaris at the time. > global lock for all 64-bit atomic operations, but it would be better if > this could be done without such workarounds on 32-bit ppc. What makes this any different to the Giant Lock problem? I don't suppose it needs to be TOO fine grained - after all there are still big locks in FreeBSD, Linux and pick-another-OS, they are just not so clumsy as the old FreeBSD Giant or Linux's equivalent. Stripping it down so that you have many 64-bit atomic access locks first, would be probably an easier task than attempting to come up with some clever way of implementing 64-bit atomicity on all 32-bit PPC processors. Why not simply access protect individual structures? For instance anything which you have to update some member in an atomic manner, lock the entire structure. Other atomic accesses can be made to other structures in parallel (within reason, since PPC can only hold one reservation at a time, so trying to get two locks in tandem will fail, but in this case, one will work, the atomic update will happen, and the other lock attempt will spin until it succeeds.. and then that atomic update will happen) -- Matt Sealey Genesi, Manager, Developer Relations From owner-freebsd-ppc@FreeBSD.ORG Thu Oct 2 22:31:33 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 18F8E1065678 for ; Thu, 2 Oct 2008 22:31:33 +0000 (UTC) (envelope-from horst@sxemacs.org) Received: from fallbackmx09.syd.optusnet.com.au (fallbackmx09.syd.optusnet.com.au [211.29.132.242]) by mx1.freebsd.org (Postfix) with ESMTP id A63F68FC2A for ; Thu, 2 Oct 2008 22:31:32 +0000 (UTC) (envelope-from horst@sxemacs.org) Received: from mail09.syd.optusnet.com.au (mail09.syd.optusnet.com.au [211.29.132.190]) by fallbackmx09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m92B3FNh007650 for ; Thu, 2 Oct 2008 21:03:16 +1000 Received: from [220.237.26.25] (c220-237-26-25.farfl2.nsw.optusnet.com.au [220.237.26.25]) (authenticated sender horst.burkhardt) by mail09.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id m92B3C9O010372 for ; Thu, 2 Oct 2008 21:03:13 +1000 From: Horst =?ISO-8859-1?Q?G=FCnther?= Burkhardt III To: FreeBSD PowerPC ML Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-YKWRC5m8vmmj2p2j9bZ1" Date: Thu, 02 Oct 2008 21:03:56 +1000 Message-Id: <1222945436.15248.103.camel@horst-tla> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Subject: Extreme difficulty with partitioning on mac powerpc g4. 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, 02 Oct 2008 22:31:33 -0000 --=-YKWRC5m8vmmj2p2j9bZ1 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Good evening.=20 I'm having some significant trouble using the install.iso for ppc. This trouble being (with both 7.0-RELEASE and 7.1-BETA) that the installer insists on doing its partitioning with fdisk. I have used linux fdisk to make the partition tables up, and failing this attempted some semblance of partitioning with Mac OS X Disk Utility (an idea taken from OpenBSD install docs for ppc). I also attempted to use GParted, and none of these attempts at partitioning are being picked up.=20 It all comes back to me hitting "custom install" as I always do, and the damned partitioner, and me trying to do _anything_ results in a SIG11 (Segmentation Violation i believe).=20 a) Is there a known workaround? ` - b) If there is, why are there no docs anywhere on the internet? ` - c) If (following either assistance or dumb luck) I get it=20 working, would a "walkthrough" be welcomed? (see lack of docs) |- d) If no known workaround, are there any suggestions from the ppc devs and users on this ML? Extra info: this is a Power Mac G4 (ADC/Gigabit Ethernet) with two harddrives: one 40GB and one 60GB.=20 My intended partition layout is:=20 /---------------- IDE0 Master: 40GB ----------------- Partition 0: (smallest amount possible) (whatever's needed to allow autoboot into FreeBSD, I've nuked OS X) Partition 1: (the remainder) FreeBSD UFS2, mountpoint / IDE0 Slave : 60GB ----------------- Partition 0: 2GB FreeBSD swap Partition 1: 58GB FreeBSD UFS2, mountpoint /usr=20 \---------------- This is my first attempt at FreeBSD on a ppc, doubly so for a mac. I'm not, however, completely new to FreeBSD, I've run it before. Any help anyone here could provide in this matter would be much appreciated, and I will help as I can in procuring information for you if you require.=20 I apologise for the incoherence of this message, I'm quite distressed by this.=20 --Horst. --=-YKWRC5m8vmmj2p2j9bZ1 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEABECAAYFAkjkqpwACgkQRtTtv0BbTe6kVACgvkziDmP4z4zCw3gTY6I3Ag+V SjIAoJzF6e5KhyRWJCOPkDMfnZdmfCzX =RLhU -----END PGP SIGNATURE----- --=-YKWRC5m8vmmj2p2j9bZ1-- From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 3 00:33:43 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 D7FC71065686 for ; Fri, 3 Oct 2008 00:33:43 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from agogare.doit.wisc.edu (agogare.doit.wisc.edu [144.92.197.211]) by mx1.freebsd.org (Postfix) with ESMTP id ABB8D8FC25 for ; Fri, 3 Oct 2008 00:33:43 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) MIME-version: 1.0 Content-transfer-encoding: 8BIT Content-type: text/plain; charset=ISO-8859-1; format=flowed Received: from avs-daemon.smtpauth2.wiscmail.wisc.edu by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) id <0K8500700086HK00@smtpauth2.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Thu, 02 Oct 2008 19:33:42 -0500 (CDT) Received: from trantor.tachypleus.net (adsl-76-204-100-161.dsl.mdsnwi.sbcglobal.net [76.204.100.161]) by smtpauth2.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 6.3-6.03 (built Mar 14 2008; 32bit)) with ESMTPSA id <0K85004FO0857Q10@smtpauth2.wiscmail.wisc.edu>; Thu, 02 Oct 2008 19:33:42 -0500 (CDT) Date: Thu, 02 Oct 2008 19:38:15 -0500 From: Nathan Whitehorn In-reply-to: <48E0DDE6.5030909@freebsd.org> To: =?ISO-8859-1?Q?Andreas_J=F6nsson?= Message-id: <48E56977.9050407@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.204.100.161 X-Spam-PmxInfo: Server=avs-14, Version=5.4.2.344556, Antispam-Engine: 2.6.0.325393, Antispam-Data: 2008.10.3.1621, SenderIP=76.204.100.161 References: <46171.83.233.155.226.1222694615.squirrel@webmail.student.lth.se> <48E0DDE6.5030909@freebsd.org> User-Agent: Thunderbird 2.0.0.17 (X11/20080928) Cc: freebsd-ppc@freebsd.org Subject: Re: ADB support? [UPDATE] 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, 03 Oct 2008 00:33:43 -0000 Nathan Whitehorn wrote: > Andreas Jönsson wrote: >> Hi, >> >> I'm wondering how the ADB keyboard support is coming along? >> The last thing I've seen on this list is from July. > > I've been stymied by a lack of hardware. It works great on my PowerMac > G3, but that has a different controller chip (CUDA) than the one > everybody wants support for (PMU, found in laptops). My current work is > here: > > http://people.freebsd.org/~nwhitehorn/adb.diff > > It has a PMU driver, which may just work. Of course, it more likely > won't... Motivated people are welcome to hack it, and I'd appreciate any > reports. To add this support, apply the patch to sys on a recent > -CURRENT, add the following to your kernel config, and recompile: > > device cuda > device pmu > device adb It appears my ability to fix bugs without hardware is better than I thought. I managed to borrow a G4 iBook today, and the internal keyboard works perfectly with the above patch applied. I'd appreciate some more testing, and will clean it up a little before committing. On another note, it appears that loader is broken on this machine. I had to roll back to one from the end of 2007 to get it to boot -- it stalled right before loading loader.conf. Maybe it has to do with how it started opening the NIC several times? -Nathan From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 3 19:15:09 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 4787A106568A for ; Fri, 3 Oct 2008 19:15:09 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) by mx1.freebsd.org (Postfix) with ESMTP id C09BC8FC1E for ; Fri, 3 Oct 2008 19:15:08 +0000 (UTC) (envelope-from andreast-list@fgznet.ch) Received: from wolfram.andreas.nets ([91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id m93Ikjhx024971 for ; Fri, 3 Oct 2008 20:46:46 +0200 (CEST) (envelope-from andreast-list@fgznet.ch) Message-ID: <48E66895.2030002@fgznet.ch> Date: Fri, 03 Oct 2008 20:46:45 +0200 From: Andreas Tobler User-Agent: Thunderbird 2.0.0.17 (Macintosh/20080914) MIME-Version: 1.0 To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 Subject: ppc project page change request. 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, 03 Oct 2008 19:15:09 -0000 Hi, could someone please adjust my e-mail address in the section of 'Supported Hardware'? s/toa@pop.agri.ch/andreast-list@fgznet.ch/ Thanks, Andreas From owner-freebsd-ppc@FreeBSD.ORG Fri Oct 3 19:20:23 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 59DB9106568C for ; Fri, 3 Oct 2008 19:20:23 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: from el-out-1112.google.com (el-out-1112.google.com [209.85.162.178]) by mx1.freebsd.org (Postfix) with ESMTP id 0991E8FC19 for ; Fri, 3 Oct 2008 19:20:22 +0000 (UTC) (envelope-from minimarmot@gmail.com) Received: by el-out-1112.google.com with SMTP id v27so357318ele.13 for ; Fri, 03 Oct 2008 12:20:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=bgFF6uaRbOLar8mWZ27beHSxuw9IACifAQAMIMVUPDQ=; b=q2P06B+aACGc4vyHSutVPJmcFniJOaG4HBuOGJqVUUFwL9NI4EYxplM8AfUTrJhEwu qxGV2TVG4uiB6V/+ThLb77S6ptkm8wEyV+Soj8Q3FKlyR/zzY/QAZuwSgfIJxdZQfIEs WtimKruZLNhuxpSxBCHswuzlGEGfh6nlfq0no= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=pg2WxJ0ZazUtzmFrkrLqIyQoTqpT6neL/pJT3dxC3IxQd8MYIOe1BalP+sA4DCayip jq8TbQVKSVxVOzcEnqC0wcrg3XWe5YbJpfwDcfwvikbQVHVnhUkD/YXVmrIvQkRMc2hb U1A6de3rWMXN5OPxqPDDXW6utuj02n/ToYV4c= Received: by 10.142.50.15 with SMTP id x15mr502658wfx.342.1223060063164; Fri, 03 Oct 2008 11:54:23 -0700 (PDT) Received: by 10.142.204.17 with HTTP; Fri, 3 Oct 2008 11:54:23 -0700 (PDT) Message-ID: <47d0403c0810031154m4fb03e41m651627b6f19fb22d@mail.gmail.com> Date: Fri, 3 Oct 2008 14:54:23 -0400 From: "Ben Kaduk" To: "Nathan Whitehorn" In-Reply-To: <48E56977.9050407@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <46171.83.233.155.226.1222694615.squirrel@webmail.student.lth.se> <48E0DDE6.5030909@freebsd.org> <48E56977.9050407@freebsd.org> Cc: freebsd-ppc@freebsd.org Subject: Re: ADB support? [UPDATE] 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, 03 Oct 2008 19:20:23 -0000 On Thu, Oct 2, 2008 at 8:38 PM, Nathan Whitehorn w= rote: > Nathan Whitehorn wrote: >> >> Andreas J=F6nsson wrote: >>> >>> Hi, >>> >>> I'm wondering how the ADB keyboard support is coming along? >>> The last thing I've seen on this list is from July. >> >> I've been stymied by a lack of hardware. It works great on my PowerMac G= 3, >> but that has a different controller chip (CUDA) than the one everybody w= ants >> support for (PMU, found in laptops). My current work is here: >> >> http://people.freebsd.org/~nwhitehorn/adb.diff >> >> It has a PMU driver, which may just work. Of course, it more likely >> won't... Motivated people are welcome to hack it, and I'd appreciate any >> reports. To add this support, apply the patch to sys on a recent -CURREN= T, >> add the following to your kernel config, and recompile: >> >> device cuda >> device pmu >> device adb > > It appears my ability to fix bugs without hardware is better than I thoug= ht. > I managed to borrow a G4 iBook today, and the internal keyboard works > perfectly with the above patch applied. I'd appreciate some more testing, > and will clean it up a little before committing. > > On another note, it appears that loader is broken on this machine. I had = to > roll back to one from the end of 2007 to get it to boot -- it stalled rig= ht > before loading loader.conf. Maybe it has to do with how it started openin= g > the NIC several times? > -Nathan I have a late-model iBook G4 that I'll test, once I get my (new) T400 think= pad in a useable state. Thanks for putting all this work in! -Ben Kaduk From owner-freebsd-ppc@FreeBSD.ORG Sat Oct 4 18:25: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 399871065695 for ; Sat, 4 Oct 2008 18:25:50 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.168]) by mx1.freebsd.org (Postfix) with ESMTP id 106498FC13 for ; Sat, 4 Oct 2008 18:25:50 +0000 (UTC) (envelope-from marcotrillo@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so2032365wfg.7 for ; Sat, 04 Oct 2008 11:25:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=pJb/PFCOTKSZ0xhOFxz1VlO1roFPvXHFOqs8bF1+HqY=; b=Z/WRSvVmjZSTWNB6ZLydo8DAfOveliTB1uoS36gmHbw1GuoAoTnAJkUJi2kJkj75pQ gVWkCfqQEpZLNysb36incBJETyASqRmjNIk1VjiKxduH1hRSEluAkheGvTnrEe47nIWe SSuL2XfkYKkqwxRTW+fOP+Wck+kGbVo7HCIAg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=b+oTqeJAifBjv/d+N919xPAgGsFOjwmFQx1fS9KbLdHO4nx1fPkkF6jhTgDHqGaF1k T9p/BTt2bOxaOIbpA6tqYaBxKR2HojVaAy7t24jd7eFCEf20/UyIaPepAiBySfV3XKzD in85d2PkGHG/iRAxB5MWDIUHCCG6ovSTTkN4I= Received: by 10.142.177.7 with SMTP id z7mr960284wfe.249.1223144749557; Sat, 04 Oct 2008 11:25:49 -0700 (PDT) Received: by 10.142.101.13 with HTTP; Sat, 4 Oct 2008 11:25:49 -0700 (PDT) Message-ID: Date: Sat, 4 Oct 2008 20:25:49 +0200 From: "Marco Trillo" To: freebsd-ppc@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Apple Burgundy Audio: looking for testers 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: Sat, 04 Oct 2008 18:25:50 -0000 Hi all, I've implemented output support for the Apple "Burgundy" audio device, in addition to the "Screamer" one which I mentioned in my earlier message (both of these use same DAVbus-style controller). These are the new-world machines wich this chip: - "PowerMac1,1" PowerMac G3 Blue&White - "PowerMac1,2" PowerMac G4 PCI graphics (Yikes) - "iMac,1" original iMac rev. A-D Anyone with one of these machines interested in testing it? Thanks, Marco. From owner-freebsd-ppc@FreeBSD.ORG Sat Oct 4 20:15:22 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 F011E1065688 for ; Sat, 4 Oct 2008 20:15:22 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from alto.onthenet.com.au (alto.OntheNet.com.au [203.13.68.12]) by mx1.freebsd.org (Postfix) with ESMTP id B307D8FC13 for ; Sat, 4 Oct 2008 20:15:22 +0000 (UTC) (envelope-from grehan@freebsd.org) Received: from dommail.onthenet.com.au (dommail.OntheNet.com.au [203.13.70.57]) by alto.onthenet.com.au (Postfix) with ESMTP id 20085114E4; Sun, 5 Oct 2008 06:15:20 +1000 (EST) Received: (from dommail.onthenet.com.au [76.25.181.67]) by dommail.onthenet.com.au (MOS 3.8.6-GA) with HTTP/1.1 id EJS23099 (AUTH peterg@ptree32.com.au); Sun, 5 Oct 2008 06:14:39 +1000 (EST) From: Peter Grehan To: Marco Trillo X-Mailer: Mirapoint Webmail Direct 3.8.6-GA MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20081005061439.EJS23099@dommail.onthenet.com.au> Date: Sun, 5 Oct 2008 06:14:39 +1000 (EST) Cc: freebsd-ppc@freebsd.org Subject: Re: Apple Burgundy Audio: looking for testers 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: Sat, 04 Oct 2008 20:15:23 -0000 Hi Marco, >These are the new-world machines wich this chip: > >- "PowerMac1,1" PowerMac G3 Blue&White >- "PowerMac1,2" PowerMac G4 PCI graphics (Yikes) I have both of these :) >- "iMac,1" original iMac rev. A-D Used to have a rev B too though not anymore. Might take a while to dig the old machines out, but send me your patch anyways. later, Peter.