From owner-freebsd-ppc@FreeBSD.ORG Thu Jan 23 05:46:28 2014 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 5A2A3835; Thu, 23 Jan 2014 05:46:28 +0000 (UTC) Received: from mail-pa0-x232.google.com (mail-pa0-x232.google.com [IPv6:2607:f8b0:400e:c03::232]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 271B61128; Thu, 23 Jan 2014 05:46:28 +0000 (UTC) Received: by mail-pa0-f50.google.com with SMTP id kp14so1404643pab.23 for ; Wed, 22 Jan 2014 21:46:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=7qA0wewdwN1t0g3SIR0ottWvs7r0pNH1zGVgpE4vVbw=; b=TBZWxRqUweWB9oy7OTJpPQzR55RXUlQ3AithTnemqb6tzwpvkRVnxaB8B5MOvYnNPz xH/2ei7mQS1q8Bar473BI19uha3hHp1yZZ7NjyLGJ5YjsW+y4iJbipRjfFfytY4fy4Gz KJSbvtTRQ4VIsnR6qdVPVF4y3Gysqud95iWMdu3KrbHQat+2rMCT9QrJCAXyaquuOH5w qJ59kYBTR/h+gzkeSw7+2TkOmAm4El8pNunwoAtxXDpGONmVFIPReAkk89dx+OppTAgO FP0InopQNAHRXlQK/SVv6rQuezVRRmXjQIarDU2AYF6VydGCAVmxOAEmhCHAUJWPlzS/ 1eHQ== X-Received: by 10.66.233.71 with SMTP id tu7mr6178462pac.22.1390455987186; Wed, 22 Jan 2014 21:46:27 -0800 (PST) Received: from zhabar.gateway.2wire.net (76-253-2-5.lightspeed.sntcca.sbcglobal.net. [76.253.2.5]) by mx.google.com with ESMTPSA id om6sm31629948pbc.43.2014.01.22.21.46.25 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 22 Jan 2014 21:46:26 -0800 (PST) Date: Wed, 22 Jan 2014 21:46:22 -0800 From: Justin Hibbits To: Alexey Dokuchaev Subject: Re: Tightening kernel for Mac Mini G4 Message-ID: <20140122214622.62b36222@zhabar.gateway.2wire.net> In-Reply-To: <20140123044922.GA29547@FreeBSD.org> References: <20140122153323.GA3637@FreeBSD.org> <20140122082542.745de133@zhabar.gateway.2wire.net> <20140123044922.GA29547@FreeBSD.org> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; powerpc64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: powerpc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jan 2014 05:46:28 -0000 On Thu, 23 Jan 2014 04:49:22 +0000 Alexey Dokuchaev wrote: > On Wed, Jan 22, 2014 at 08:25:42AM -0800, Justin Hibbits wrote: > > ata_macio and ata_kauai aren't available as modules. It's probably > > trivial to make them such, but currently they're not. Just keep the > > devices in kernel config. > > OK, I can live with "device ATA" for a while; but ultimately I do > think that ata_macio and ata_kauai should be factored out as modules > (similar with our existing x86 ata stuff). Ideally, all > hardware-dependent stuff should be modular. That shouldn't be too difficult. Just needs someone to take the time to do it. > > Neither of these are necessary for you. I should probably > > eventually modularize windtunnel driver (and give it a better > > name). SMU is for G5 systems, PMU is for G4 and G3 systems. > > Great, I've removed entire "Misc" section of the config. I'm > wondering if I can do the same for ADB support? There are no ADB > connectors for peripherals on Mac Mini; is ADB still required (used > internally)? All three devices (adb, cuda, pmu) or something can be > dropped out? ADB is unnecessary, as is cuda. PMU isn't strictly necessary, but I'm in the process of adding more capabilities to our PMU driver, so you may want to keep it, but it's not required for operation. > > Can you drop the output of 'ofwdump -ap' somewhere (freefall?) and I > > can take a look at it. Internal sound on most PowerPC Apple > > hardware is supported, I'm curious why yours isn't. > > Sure, have a look: ~danfe/macmini-g4-ofw.dump. Looks like you don't have 'codec' node, so mixer likely will be software only. Someone else may know what to do for the sound chip (compatible= 'AOAKeylargo', only a 'sound' node, I've never seen that one before). It may be simple to implement, but I'm not certain. USB audio should work fine, though. > > ./danfe > > P.S. "make -j2 buildworld" on tmpfs-backed OBJDIR took 12 hours > (default -CURRENT, i.e. reduced performance) and used 1,2G of tmpfs > (and 76% of 1G swap). Replacing default 256M of RAM with 1G module > was definitely a good idea. Alas, "make buildkernel" (without > cleaning after buildworld) caused it to run out of memory. :( Yeah, buildworld is a beast. I think on my dual 1.42GHz G4 w/ 2GB RAM, a buildworld+buildkernel takes 8 hours with -j4. I suggest not building clang, it's not complete yet for ppc32 (it's complete for ppc64, but there are some bugs rdivacky is tracking down, I'm helping off and on). - Justin