From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 01:29:57 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 40B6A3D9; Sun, 28 Oct 2012 01:29:57 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id 04B838FC16; Sun, 28 Oct 2012 01:29:56 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id q9S1TtmC039356; Sat, 27 Oct 2012 21:29:55 -0400 (EDT) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id q9S1Tt4W039355; Sun, 28 Oct 2012 01:29:55 GMT (envelope-from tinderbox@freebsd.org) Date: Sun, 28 Oct 2012 01:29:55 GMT Message-Id: <201210280129.q9S1Tt4W039355@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [head tinderbox] failure on powerpc/powerpc Precedence: bulk X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Oct 2012 01:29:57 -0000 TB --- 2012-10-27 23:08:18 - tinderbox 2.9 running on freebsd-current.sentex.ca TB --- 2012-10-27 23:08:18 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-10-27 23:08:18 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2012-10-27 23:08:18 - cleaning the object tree TB --- 2012-10-27 23:08:18 - checking out /src from svn://svn.freebsd.org/base/head TB --- 2012-10-27 23:08:18 - cd /tinderbox/HEAD/powerpc/powerpc TB --- 2012-10-27 23:08:18 - /usr/local/bin/svn cleanup /src TB --- 2012-10-27 23:09:24 - /usr/local/bin/svn update /src TB --- 2012-10-27 23:09:30 - At svn revision 242195 TB --- 2012-10-27 23:09:31 - building world TB --- 2012-10-27 23:09:31 - CROSS_BUILD_TESTING=YES TB --- 2012-10-27 23:09:31 - MAKEOBJDIRPREFIX=/obj TB --- 2012-10-27 23:09:31 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-10-27 23:09:31 - SRCCONF=/dev/null TB --- 2012-10-27 23:09:31 - TARGET=powerpc TB --- 2012-10-27 23:09:31 - TARGET_ARCH=powerpc TB --- 2012-10-27 23:09:31 - TZ=UTC TB --- 2012-10-27 23:09:31 - __MAKE_CONF=/dev/null TB --- 2012-10-27 23:09:31 - cd /src TB --- 2012-10-27 23:09:31 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Sat Oct 27 23:09:39 UTC 2012 >>> 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 Sun Oct 28 01:27:57 UTC 2012 TB --- 2012-10-28 01:27:57 - generating LINT kernel config TB --- 2012-10-28 01:27:57 - cd /src/sys/powerpc/conf TB --- 2012-10-28 01:27:57 - /usr/bin/make -B LINT TB --- 2012-10-28 01:27:57 - cd /src/sys/powerpc/conf TB --- 2012-10-28 01:27:57 - /usr/sbin/config -m LINT TB --- 2012-10-28 01:27:57 - building LINT kernel TB --- 2012-10-28 01:27:57 - CROSS_BUILD_TESTING=YES TB --- 2012-10-28 01:27:57 - MAKEOBJDIRPREFIX=/obj TB --- 2012-10-28 01:27:57 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-10-28 01:27:57 - SRCCONF=/dev/null TB --- 2012-10-28 01:27:57 - TARGET=powerpc TB --- 2012-10-28 01:27:57 - TARGET_ARCH=powerpc TB --- 2012-10-28 01:27:57 - TZ=UTC TB --- 2012-10-28 01:27:57 - __MAKE_CONF=/dev/null TB --- 2012-10-28 01:27:57 - cd /src TB --- 2012-10-28 01:27:57 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Sun Oct 28 01:27:57 UTC 2012 >>> 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 [...] @/dev/drm/drmP.h:123:42: error: machine/../linux/linux_proto.h: No such file or directory In file included from /src/sys/modules/drm/via/../../../dev/drm/via_verifier.c:35: @/dev/drm/drmP.h:122:36: error: machine/../linux/linux.h: No such file or directory @/dev/drm/drmP.h:123:42: error: machine/../linux/linux_proto.h: No such file or directory In file included from /src/sys/modules/drm/via/../../../dev/drm/via_video.c:31: @/dev/drm/drmP.h:122:36: error: machine/../linux/linux.h: No such file or directory @/dev/drm/drmP.h:123:42: error: machine/../linux/linux_proto.h: No such file or directory mkdep: compile failed *** [.depend] Error code 1 Stop in /src/sys/modules/drm/via. *** [depend] Error code 1 Stop in /src/sys/modules/drm. *** [depend] Error code 1 Stop in /src/sys/modules. *** [modules-depend] Error code 1 Stop in /obj/powerpc.powerpc/src/sys/LINT. *** [buildkernel] Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-10-28 01:29:55 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-10-28 01:29:55 - ERROR: failed to build LINT kernel TB --- 2012-10-28 01:29:55 - 6966.41 user 892.80 system 8497.22 real http://tinderbox.freebsd.org/tinderbox-head-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 02:17:13 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6022F997; Sun, 28 Oct 2012 02:17:13 +0000 (UTC) (envelope-from nwhitehorn@banshee.munuc.org) Received: from banshee.munuc.org (cl-106.chi-02.us.sixxs.net [IPv6:2001:4978:f:69::2]) by mx1.freebsd.org (Postfix) with ESMTP id 247238FC0A; Sun, 28 Oct 2012 02:17:12 +0000 (UTC) Received: from nwhitehorn (helo=localhost) by banshee.munuc.org with local-esmtp (Exim 4.74 (FreeBSD)) (envelope-from ) id 1TSIR6-0008Xs-3r; Sat, 27 Oct 2012 21:17:12 -0500 Date: Sat, 27 Oct 2012 21:17:12 -0500 (CDT) From: Nathan Whitehorn X-X-Sender: nwhitehorn@banshee.munuc.org To: FreeBSD Tinderbox Subject: Re: [head tinderbox] failure on powerpc/powerpc In-Reply-To: <201210280129.q9S1Tt4W039355@freebsd-current.sentex.ca> Message-ID: References: <201210280129.q9S1Tt4W039355@freebsd-current.sentex.ca> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: Nathan Whitehorn X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: nwhitehorn@banshee.munuc.org X-SA-Exim-Scanned: No (on banshee.munuc.org); SAEximRunCond expanded to false Cc: powerpc@freebsd.org, current@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 02:17:13 -0000 On Sun, 28 Oct 2012, FreeBSD Tinderbox wrote: > TB --- 2012-10-27 23:08:18 - tinderbox 2.9 running on freebsd-current.sentex.ca > @/dev/drm/drmP.h:122:36: error: machine/../linux/linux.h: No such file or directory > @/dev/drm/drmP.h:123:42: error: machine/../linux/linux_proto.h: No such file or directory > mkdep: compile failed > *** [.depend] Error code 1 Sorry about this breakage. It is fixed by r242197 and r242203. -Nathan From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 15:52:35 2012 Return-Path: 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 96906EDD for ; Sun, 28 Oct 2012 15:52:35 +0000 (UTC) (envelope-from michael@kryptos-security.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3EEC98FC0A for ; Sun, 28 Oct 2012 15:52:34 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so5645061vcb.13 for ; Sun, 28 Oct 2012 08:52:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=B6Mz51zg/EsFWuGs6va12BlkAI8tOhiWnjla1Orqnq4=; b=RADwUXQeLgbNCAD3+YGQiI3BKj878y0TMPoQ/4XJX7z5U29U4bknyg/BGQfY5ozurC xRu+0VerPLXZb7WZTErlUqdqFO1hKa6iD1LzKtYkV95Cqqv7hOw2EgQUYCMV9mnJx8im /C7tjFVUrjyqiMl5Pe3Hv7tMRQsbJWKzPZUqSEB0uoIKuSZoRD8i/8XNXHBF5qvWF0aH QOJMLrjDaxHrkNrilNUliZtZmoQfnZ+5QF6jl+WTJCmsJmrAwDd7GJq2bC9Lna11y1YR WZnXNzcZdaFeuO4y4tKC22Wc0hPM1UuLTfXj2k6+XZzKpjwuEpzABRg/B/KISURmp/JX msPA== MIME-Version: 1.0 Received: by 10.52.98.229 with SMTP id el5mr36081654vdb.122.1351439553257; Sun, 28 Oct 2012 08:52:33 -0700 (PDT) Received: by 10.58.252.199 with HTTP; Sun, 28 Oct 2012 08:52:33 -0700 (PDT) X-Originating-IP: [98.231.6.79] Date: Sun, 28 Oct 2012 11:52:33 -0400 Message-ID: Subject: Quick question about dev.smu dev.smusat on powermac11,2 From: Michael Copeland To: freebsd-ppc@freebsd.org X-Gm-Message-State: ALoCoQkO7dxXKHgax1K8NUMeDZP8ncoHnGpP8Tampq3vVfv34SPOGYrbs/+BZHoyhk1ktu0nT7M5 Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 15:52:35 -0000 Is the fan control disabled by default on a GP dual core? Only reason I ask is that the fans on spool up under full load, and that usually results in a panic. I did make a rather simple program and associated script to control the fans, but this happens to result in the fans constantly going up and down by about 300-400 rpm even while doing something simple like portsnap extract. I checked the list after doing that, and found a thread where someone else already did the same thing(a common problem of mine, I usually try to fix it myself without checking the list). I swapped out the program written by Nathan, but my results are the same. It DOES work, but I was only wondering if it's normal for the fan speed to vary so often. Thanks, Michael From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 19:08:06 2012 Return-Path: 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 076ED34B for ; Sun, 28 Oct 2012 19:08:06 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id A82968FC08 for ; Sun, 28 Oct 2012 19:08:05 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so777432vba.13 for ; Sun, 28 Oct 2012 12:08:04 -0700 (PDT) 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:x-mailer :mime-version:content-type:content-transfer-encoding; bh=9r1595phBAUFnRp1//Ji75or2iizmDxBgnSyGXUE/HU=; b=ZsRrOZYuTCdtOHSdN0oVQT+OEJR+aP6bq+UjSlBhQFxT+kYfjl5bixdKfKVLA5LtEv vB4u7nMilQKyVgmLvt4jl1ON/h9nYvOWAuLa8hliacwaqrJm/vFc/fFpUtpRJJUzRMgg k4WglFqrU9Yk6yX+YCnDT7S5uv3Xc+jaPlUnGTqBR/f2Up6notqJE4Qqf02rDOzKV5aX ES+RJss75zwciGsrtKNn9xb1uRbnGj02VJbSKSzXZet9aaCt2LlyyxvEqlguq1lNNoMS YFR0S1hPFU9DNBifuGa8KlS7si7YWRIb806pg0FqqsMyWVAJ85gAIKde/pxM0lishV0r YQPg== Received: by 10.58.116.212 with SMTP id jy20mr49324435veb.5.1351451283922; Sun, 28 Oct 2012 12:08:03 -0700 (PDT) Received: from narn.knownspace (pool-108-48-127-15.washdc.fios.verizon.net. [108.48.127.15]) by mx.google.com with ESMTPS id t12sm4465757vdi.18.2012.10.28.12.08.03 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 12:08:03 -0700 (PDT) Date: Sun, 28 Oct 2012 15:08:01 -0400 From: Justin Hibbits To: Michael Copeland Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 Message-ID: <20121028150801.78f72f2a@narn.knownspace> In-Reply-To: References: X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; powerpc-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 19:08:06 -0000 On Sun, 28 Oct 2012 11:52:33 -0400 Michael Copeland wrote: > Is the fan control disabled by default on a GP dual core? Only reason > I ask is that the fans on spool up under full load, and that usually > results in a panic. > I did make a rather simple program and associated script to control > the fans, but this happens to result in the fans constantly going up > and down by about 300-400 rpm even while doing something simple like > portsnap extract. I checked the list after doing that, and found a > thread where someone else already did the same thing(a common problem > of mine, I usually try to fix it myself without checking the list). I > swapped out the program written by Nathan, but my results are the > same. It DOES work, but I was only wondering if it's normal for the > fan speed to vary so often. > > Thanks, > > Michael You shouldn't need to manually control the fans, they should be automatically controlled by the kernel based on temperature. - Justin From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 19:42:13 2012 Return-Path: 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 6B0D8247 for ; Sun, 28 Oct 2012 19:42:13 +0000 (UTC) (envelope-from nwhitehorn@banshee.munuc.org) Received: from banshee.munuc.org (cl-106.chi-02.us.sixxs.net [IPv6:2001:4978:f:69::2]) by mx1.freebsd.org (Postfix) with ESMTP id 316798FC16 for ; Sun, 28 Oct 2012 19:42:12 +0000 (UTC) Received: from nwhitehorn (helo=localhost) by banshee.munuc.org with local-esmtp (Exim 4.74 (FreeBSD)) (envelope-from ) id 1TSYkN-000Bwo-Ar; Sun, 28 Oct 2012 14:42:11 -0500 Date: Sun, 28 Oct 2012 14:42:11 -0500 (CDT) From: Nathan Whitehorn X-X-Sender: nwhitehorn@banshee.munuc.org To: Michael Copeland Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: Nathan Whitehorn X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: nwhitehorn@banshee.munuc.org X-SA-Exim-Scanned: No (on banshee.munuc.org); SAEximRunCond expanded to false Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 19:42:13 -0000 It should work fine (it does on my desktop, which is a G5 of the same model). Since I wrote that program, fan control has moved to the kernel. The fans should be fairly quickly responsive (the algorithm is quite basic) but should never go to full or cause a panic. Which release are you running? There were some improvements to fan control in 9.1. -Nathan On Sun, 28 Oct 2012, Michael Copeland wrote: > Is the fan control disabled by default on a GP dual core? Only reason I ask > is that the fans on spool up under full load, and that usually results in a > panic. > I did make a rather simple program and associated script to control the > fans, but this happens to result in the fans constantly going up and down > by about 300-400 rpm even while doing something simple like portsnap > extract. I checked the list after doing that, and found a thread where > someone else already did the same thing(a common problem of mine, I usually > try to fix it myself without checking the list). I swapped out the program > written by Nathan, but my results are the same. It DOES work, but I was > only wondering if it's normal for the fan speed to vary so often. > > Thanks, > > Michael > _______________________________________________ > 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 Sun Oct 28 19:44:47 2012 Return-Path: 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 0EE2328B for ; Sun, 28 Oct 2012 19:44:47 +0000 (UTC) (envelope-from michael@kryptos-security.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id A49FA8FC12 for ; Sun, 28 Oct 2012 19:44:46 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so5777845vcb.13 for ; Sun, 28 Oct 2012 12:44:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=1ZvUf/Z3KmxJcAHtdodQCH4EMkiPM1Z9C2zp57T/oFU=; b=B+WgS77iYEXk8i98RS45dhuSKy/hXNZ/dg3TW/h1TkuV0us4Al0UvuapyPVYK5xPhv aVlqDu7FCiAiVXUF/2VoptvMj8/zIBJtNiOIlrpD6iMNJ7HUmIRAbLT8ckbRdq63CZBO obhzHby+C/L347jMpbqFj05wPn1l3ZMtbxo2uqMAr0VLbE9I3GYgTkLgK329VDURrS84 +CgP9rl9h9WwVS6Gdg6n6ksmbVyVh3DfoIjIo2K4izKp2dt8ZwmT7wjo6KfgjK+X3t6P YmcXOW0SfR/mkt7hRjQyHIVDz4WPXygbWDxT7x5/6497z6xmebjpvKthRP781vrs0drM R/sg== MIME-Version: 1.0 Received: by 10.220.8.73 with SMTP id g9mr27617121vcg.28.1351453485558; Sun, 28 Oct 2012 12:44:45 -0700 (PDT) Received: by 10.58.252.199 with HTTP; Sun, 28 Oct 2012 12:44:45 -0700 (PDT) X-Originating-IP: [98.231.6.79] In-Reply-To: References: Date: Sun, 28 Oct 2012 15:44:45 -0400 Message-ID: Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 From: Michael Copeland To: Nathan Whitehorn , freebsd-ppc@freebsd.org X-Gm-Message-State: ALoCoQkfHifDHe3IWM2iY7aWKwYwnjNSHh17Nnw5Sb0wiu4USVPn+Q5Hja3WIk5S2NKRfwOo5Urb Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 19:44:47 -0000 On Sun, Oct 28, 2012 at 3:42 PM, Nathan Whitehorn wrote: > It should work fine (it does on my desktop, which is a G5 of the same > model). Since I wrote that program, fan control has moved to the kernel. > The fans should be fairly quickly responsive (the algorithm is quite basic) > but should never go to full or cause a panic. Which release are you > running? There were some improvements to fan control in 9.1. > -Nathan > > > On Sun, 28 Oct 2012, Michael Copeland wrote: > > Is the fan control disabled by default on a GP dual core? Only reason I >> ask >> is that the fans on spool up under full load, and that usually results in >> a >> panic. >> I did make a rather simple program and associated script to control the >> fans, but this happens to result in the fans constantly going up and down >> by about 300-400 rpm even while doing something simple like portsnap >> extract. I checked the list after doing that, and found a thread where >> someone else already did the same thing(a common problem of mine, I >> usually >> try to fix it myself without checking the list). I swapped out the program >> written by Nathan, but my results are the same. It DOES work, but I was >> only wondering if it's normal for the fan speed to vary so often. >> >> Thanks, >> >> Michael >> ______________________________**_________________ >> 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 >> " >> >> Hi Nathan, It's 9.1-PRE, from.. 3 days ago. The fans, without my app running either spin at the lowest rpm, or the fastest. Once it's at max rpm, in 5 minutes it will panic. From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 19:50:03 2012 Return-Path: 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 1BA1273B for ; Sun, 28 Oct 2012 19:50:03 +0000 (UTC) (envelope-from nwhitehorn@banshee.munuc.org) Received: from banshee.munuc.org (cl-106.chi-02.us.sixxs.net [IPv6:2001:4978:f:69::2]) by mx1.freebsd.org (Postfix) with ESMTP id DFC5E8FC0A for ; Sun, 28 Oct 2012 19:50:02 +0000 (UTC) Received: from nwhitehorn (helo=localhost) by banshee.munuc.org with local-esmtp (Exim 4.74 (FreeBSD)) (envelope-from ) id 1TSYrx-000By7-TU; Sun, 28 Oct 2012 14:50:01 -0500 Date: Sun, 28 Oct 2012 14:50:01 -0500 (CDT) From: Nathan Whitehorn X-X-Sender: nwhitehorn@banshee.munuc.org To: Michael Copeland Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="1464019946-1187362250-1351453801=:41855" Sender: Nathan Whitehorn X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: nwhitehorn@banshee.munuc.org X-SA-Exim-Scanned: No (on banshee.munuc.org); SAEximRunCond expanded to false Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 19:50:03 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --1464019946-1187362250-1351453801=:41855 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Sun, 28 Oct 2012, Michael Copeland wrote: >=20 >=20 > On Sun, Oct 28, 2012 at 3:42 PM, Nathan Whitehorn wrote: > It should work fine (it does on my desktop, which is a G5 of the sa= me model). Since I wrote that > program, fan control has moved to the kernel. The fans should be fa= irly quickly responsive (the > algorithm is quite basic) but should never go to full or cause a pa= nic. Which release are you > running? There were some improvements to fan control in 9.1. > -Nathan > > On Sun, 28 Oct 2012, Michael Copeland wrote: > > Is the fan control disabled by default on a GP dual core? Only reas= on I ask > is that the fans on spool up under full load, and that usually resu= lts in a > panic. > I did make a rather simple program and associated script to control= the > fans, but this happens to result in the fans constantly going up an= d down > by about 300-400 rpm even while doing something simple like portsna= p > extract. I checked the list after doing that, and found a thread wh= ere > someone else already did the same thing(a common problem of mine, I= usually > try to fix it myself without checking the list). I swapped out the = program > written by Nathan, but my results are the same. It DOES work, but I= was > only wondering if it's normal for the fan speed to vary so often. > > Thanks, > > Michael > _______________________________________________ > 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" >=20 > Hi Nathan, > It's 9.1-PRE, from.. 3 days ago.=A0 > The fans, without my app running either spin at the lowest rpm, or the fa= stest. Once it's at max rpm, in 5 > minutes it will panic. >=20 > Interesting -- that should not happen, to say the least. Could you report= =20 what the panic is and print out the contents of the dev.smu and dev.smusat= =20 registries? You can also disable automatic fan control by the sysctl=20 machdep.manage_fans (although I'd like to find and fix the actual problem= =20 here) -Nathan --1464019946-1187362250-1351453801=:41855-- From owner-freebsd-ppc@FreeBSD.ORG Sun Oct 28 21:35:44 2012 Return-Path: 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 E7FC41A1 for ; Sun, 28 Oct 2012 21:35:44 +0000 (UTC) (envelope-from michael@kryptos-security.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 83D358FC0A for ; Sun, 28 Oct 2012 21:35:44 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so5839343vcb.13 for ; Sun, 28 Oct 2012 14:35:42 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=cACMPTdUqGReU6rxphR+75rkkH5mkqGRmMBgSqt220s=; b=gTMfOZ/6+uQW/WBrhQchGksm3QHbazBmhRquckimPOm8X9qzwpRtb1a1ihoZgbR22c vVf8InW4xuNOJJv+55B1uIuKqzr7Hg6OLQt4JI0HULZ/f7jizJzfR5WYhlTbbZBX3XDs Xat6ZhU0MBElPREPWFrHBP4WIkG7lCVtldo/aUvKWUlvNyVqWgVtepUyEABv3rfgSuwZ vVBUzx+rtKfveiO7+euL77ylnXeP9UCkzztX3eaF8zExpSKNAzG7DiGo8d1p9h9PlSmE Ru2XJ4R0xQkU5Ac05IJ0ujeycVkhjvfSkPM8dL9aj3fJO/teA4JrO0IeLXaPa0TDp5Dp pvVw== MIME-Version: 1.0 Received: by 10.59.8.133 with SMTP id dk5mr50791252ved.19.1351460142818; Sun, 28 Oct 2012 14:35:42 -0700 (PDT) Received: by 10.58.252.199 with HTTP; Sun, 28 Oct 2012 14:35:42 -0700 (PDT) X-Originating-IP: [98.231.6.79] In-Reply-To: References: Date: Sun, 28 Oct 2012 17:35:42 -0400 Message-ID: Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 From: Michael Copeland To: Nathan Whitehorn , freebsd-ppc@freebsd.org X-Gm-Message-State: ALoCoQkznVAnM6DE6ho1rj8n3NhL5QuGeVJVHouIm1KLS0UkZT3W+9NzBoGp+sj47P5wNMbdQ/xm Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 21:35:45 -0000 On Sun, Oct 28, 2012 at 5:24 PM, Nathan Whitehorn wrote: > > > On Sun, 28 Oct 2012, Michael Copeland wrote: > > >> >> On Sun, Oct 28, 2012 at 3:50 PM, Nathan Whitehorn >> wrote: >> >> >> On Sun, 28 Oct 2012, Michael Copeland wrote: >> >> >> >> On Sun, Oct 28, 2012 at 3:42 PM, Nathan Whitehorn < >> nwhitehorn@freebsd.org> wrote: >> It should work fine (it does on my desktop, which is a >> G5 of the same model). >> Since I wrote that >> program, fan control has moved to the kernel. The fans >> should be fairly >> quickly responsive (the >> algorithm is quite basic) but should never go to full >> or cause a panic. Which >> release are you >> running? There were some improvements to fan control in >> 9.1. >> -Nathan >> >> On Sun, 28 Oct 2012, Michael Copeland wrote: >> >> Is the fan control disabled by default on a GP dual >> core? Only reason I ask >> is that the fans on spool up under full load, and that >> usually results in a >> panic. >> I did make a rather simple program and associated >> script to control the >> fans, but this happens to result in the fans constantly >> going up and down >> by about 300-400 rpm even while doing something simple >> like portsnap >> extract. I checked the list after doing that, and found >> a thread where >> someone else already did the same thing(a common >> problem of mine, I usually >> try to fix it myself without checking the list). I >> swapped out the program >> written by Nathan, but my results are the same. It DOES >> work, but I was >> only wondering if it's normal for the fan speed to vary >> so often. >> >> Thanks, >> >> Michael >> ______________________________**_________________ >> 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 " >> >> Hi Nathan, >> It's 9.1-PRE, from.. 3 days ago. >> The fans, without my app running either spin at the lowest >> rpm, or the fastest. Once >> it's at max rpm, in 5 >> minutes it will panic. >> >> >> >> Interesting -- that should not happen, to say the least. Could you report >> what the panic is and print >> out the contents of the dev.smu and dev.smusat registries? >> >> You can also disable automatic fan control by the sysctl >> machdep.manage_fans (although I'd like to >> find and fix the actual problem here) >> -Nathan >> >> Nothing to report for the panic, the screen isn't refreshed, no dumps >> either, and i do have that enabled >> >> frodoG5# sysctl dev.smu >> dev.smu.0.%desc: Apple System Management Unit >> dev.smu.0.%driver: smu >> dev.smu.0.%pnpinfo: name=smu compat=smu >> dev.smu.0.%parent: nexus0 >> dev.smu.0.fans.drive_bay_a_**intake.minrpm: 1000 >> dev.smu.0.fans.drive_bay_a_**intake.maxrpm: 4000 >> dev.smu.0.fans.drive_bay_a_**intake.rpm: 1060 >> dev.smu.0.fans.backside.**minrpm: 1100 >> dev.smu.0.fans.backside.**maxrpm: 3000 >> dev.smu.0.fans.backside.rpm: 1549 >> dev.smu.0.fans.cpu_a_intake.**minrpm: 485 >> dev.smu.0.fans.cpu_a_intake.**maxrpm: 3200 >> dev.smu.0.fans.cpu_a_intake.**rpm: 624 >> dev.smu.0.fans.cpu_b_intake.**minrpm: 485 >> dev.smu.0.fans.cpu_b_intake.**maxrpm: 3200 >> dev.smu.0.fans.cpu_b_intake.**rpm: 628 >> dev.smu.0.fans.cpu_a_exhaust.**minrpm: 500 >> dev.smu.0.fans.cpu_a_exhaust.**maxrpm: 3200 >> dev.smu.0.fans.cpu_a_exhaust.**rpm: 619 >> dev.smu.0.fans.cpu_b_exhaust.**minrpm: 500 >> dev.smu.0.fans.cpu_b_exhaust.**maxrpm: 3200 >> dev.smu.0.fans.cpu_b_exhaust.**rpm: 605 >> dev.smu.0.fans.expansion_**slots_intake.minrpm: 1560 >> dev.smu.0.fans.expansion_**slots_intake.maxrpm: 4500 >> dev.smu.0.fans.expansion_**slots_intake.rpm: 1618 >> dev.smu.0.sensors.slots_power: 18818 >> dev.smu.0.server_mode: 0 >> frodoG5# sysctl dev.smusat >> dev.smusat.0.%desc: SMU Satellite Sensors >> dev.smusat.0.%driver: smusat >> dev.smusat.0.%location: addr=0xb0 >> dev.smusat.0.%pnpinfo: name=sat compat=smu-sat >> dev.smusat.0.%parent: iicbus2 >> dev.smusat.0.cpu_a0_vcore: 1 >> dev.smusat.0.cpu_a1_vcore: 1 >> dev.smusat.0.cpu_a0_diode_**temp: 43.6C >> dev.smusat.0.cpu_a1_diode_**temp: 43.4C >> dev.smusat.0.cpu_a0_core_**current: 24 >> dev.smusat.0.cpu_a1_core_**current: 20 >> frodoG5# uname -a >> FreeBSD frodoG5 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Oct 28 >> 20:21:16 EDT 2012 >> michael@frodoG5:/usr/obj/usr/**src/sys/FRODOG5 powerpc >> >> >> > That all looks in order. Any change you could provide the same from when > the fans are racing? > -Nathan Yeah, I'm getting ready to build something. The output from sysctl was with my app running. If I disable it, the fans will go full tilt on their own after a while, no activity. From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 29 01:49:20 2012 Return-Path: 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 DF8E0841 for ; Mon, 29 Oct 2012 01:49:20 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 7BF628FC08 for ; Mon, 29 Oct 2012 01:49:20 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so1005383vba.13 for ; Sun, 28 Oct 2012 18:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:x-mailer:mime-version:content-type; bh=tcx3AJZKdoO1EG51rSgDxRsn4n3y/QqcwearuFIRslU=; b=hyt6Op9tywb6CjmoonW1GPNY6P6Yj7+3upXhyzDiHemwdXw+1rVYPDE3pdxZuDiPlL ShM83QnON9bBF8n2yBVZcmiUu8XOPlLcfNI27UeOPYyTDS+1KSF/efi0ayLTJhdC45+f aiJXrimOvTewwzPjAt31nAwpWVEpt9U1XWzvZCqXDeGivk80xp+oyTZ3PU8A/OjuISje qixu3pjSWwXhpqCVpSCT1YaUkRc0x7n7gTkXYShBAvrcE7aEX41R8oqhuMbHRhoupCPy UjwlIuRsqq2Ym27r/H8tFnwBhrm6mh0er9Wui0dYKWCRYRmw4x3esbCvpOGuL3rql231 Zrhw== Received: by 10.221.2.10 with SMTP id ns10mr6757915vcb.25.1351475359770; Sun, 28 Oct 2012 18:49:19 -0700 (PDT) Received: from narn.knownspace (pool-108-48-127-15.washdc.fios.verizon.net. [108.48.127.15]) by mx.google.com with ESMTPS id o13sm5002748vde.21.2012.10.28.18.49.19 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 28 Oct 2012 18:49:19 -0700 (PDT) Date: Sun, 28 Oct 2012 21:49:17 -0400 From: Justin Hibbits To: freebsd-ppc@freebsd.org Subject: Help on PMU work Message-ID: <20121028214917.3500f21e@narn.knownspace> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.10; powerpc-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="MP_/0OtZeAhMXg1GgqTp+4I7Ns." X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 01:49:20 -0000 --MP_/0OtZeAhMXg1GgqTp+4I7Ns. Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm working on getting PMU sleep and speed control working for at least the MPC7455-based PowerBooks and running into a snag. I've got it changing speed, but it immediately panics. The method for PMU speed change is as follows: * Tell the PMU to change PLL inputs * Save all the needed registers (methinks I missed one or two critical ones, but can't figure out which) * Flush and disable the caches * Disable NAP and enable SLEEP in HID0 * Sleep via MSR * PMU asserts #HRESET, and jumps to where you want (write address at 0x80). * Recover and restore all the necessary registers * Go on your merry way. I'm getting stuck on the "Go on your merry way" part. When it recovers, I get a 'panic: null_fetch_syscall_args'. curthread is the same going into and coming out of reset/restore, verified with a printf. Any help tracking this down is greatly appreciated. I'll be at MeetBSD with my PowerBook, and hope to get it finished either before then, or by the time I leave. - Justin --MP_/0OtZeAhMXg1GgqTp+4I7Ns. Content-Type: text/x-patch Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=pmufreq.diff Index: sys/powerpc/aim/mp_cpudep.c =================================================================== --- sys/powerpc/aim/mp_cpudep.c (revision 241450) +++ sys/powerpc/aim/mp_cpudep.c (working copy) @@ -322,17 +322,13 @@ mtspr(SPR_CELL_TSRL, bsp_state[5]); break; - case MPC7450: - case MPC7455: - case MPC7457: - /* Only MPC745x CPUs have an L3 cache. */ - reg = mpc745x_l3_enable(bsp_state[3]); - - /* Fallthrough */ case MPC7400: case MPC7410: case MPC7447A: case MPC7448: + case MPC7450: + case MPC7455: + case MPC7457: /* XXX: Program the CPU ID into PIR */ __asm __volatile("mtspr 1023,%0" :: "r"(PCPU_GET(cpuid))); @@ -342,6 +338,18 @@ mtspr(SPR_HID0, bsp_state[0]); isync(); mtspr(SPR_HID1, bsp_state[1]); isync(); + /* Now enable the L3 cache. */ + switch (vers) { + case MPC7450: + case MPC7455: + case MPC7457: + /* Only MPC745x CPUs have an L3 cache. */ + reg = mpc745x_l3_enable(bsp_state[3]); + default: + break; + } + + /* Fallthrough */ reg = mpc74xx_l2_enable(bsp_state[2]); reg = mpc74xx_l1d_enable(); reg = mpc74xx_l1i_enable(); Index: sys/powerpc/powerpc/mp_machdep.c =================================================================== --- sys/powerpc/powerpc/mp_machdep.c (revision 241450) +++ sys/powerpc/powerpc/mp_machdep.c (working copy) @@ -53,25 +53,41 @@ #include #include #include +#include #include #include "pic_if.h" extern struct pcpu __pcpu[MAXCPU]; +extern void *ap_pcpu; volatile static int ap_awake; volatile static u_int ap_letgo; -volatile static u_quad_t ap_timebase; +volatile u_quad_t ap_timebase; static u_int ipi_msg_cnt[32]; static struct mtx ap_boot_mtx; struct pcb stoppcbs[MAXCPU]; +int longfault(faultbuf, int); void machdep_ap_bootstrap(void) { + jmp_buf *restore; +#ifdef __powerpc64__ + /* Writing to the time base register is hypervisor-privileged */ + if (mfmsr() & PSL_HV) + mttb(ap_timebase); +#else + mttb(ap_timebase); +#endif /* Set up important bits on the CPU (HID registers, etc.) */ cpudep_ap_setup(); + restore = PCPU_GET(restore); + if (restore != NULL) { + longjmp(*restore, 1); + } + /* Set PIR */ PCPU_SET(pir, mfspr(SPR_PIR)); PCPU_SET(awake, 1); @@ -80,14 +96,7 @@ while (ap_letgo == 0) ; - /* Initialize DEC and TB, sync with the BSP values */ -#ifdef __powerpc64__ - /* Writing to the time base register is hypervisor-privileged */ - if (mfmsr() & PSL_HV) - mttb(ap_timebase); -#else - mttb(ap_timebase); -#endif + /* Initialize DEC, sync with the BSP values */ decr_ap_init(); /* Serialize console output and AP count increment */ @@ -201,11 +210,13 @@ struct pcpu *pc; int cpus, timeout; - if (mp_ncpus <= 1) + mtx_init(&ap_boot_mtx, "ap boot", NULL, MTX_SPIN); + + if (mp_ncpus <= 1) { + atomic_store_rel_int(&ap_letgo, 1); return; + } - mtx_init(&ap_boot_mtx, "ap boot", NULL, MTX_SPIN); - cpus = 0; smp_cpus = 0; STAILQ_FOREACH(pc, &cpuhead, pc_allcpu) { Index: sys/powerpc/cpufreq/pmufreq.c =================================================================== --- sys/powerpc/cpufreq/pmufreq.c (revision 0) +++ sys/powerpc/cpufreq/pmufreq.c (working copy) @@ -0,0 +1,225 @@ +/*- + * Copyright (c) 2011 Justin Hibbits + * Copyright (c) 2009 Nathan Whitehorn + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. + * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, + * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + */ + +#include +__FBSDID("$FreeBSD: head/sys/powerpc/cpufreq/pmufreq.c 217065 2011-01-06 20:19:01Z andreast $"); + +#include +#include +#include +#include +#include +#include + +#include +#include + +#include "cpufreq_if.h" +#include "powerpc/powermac/pmuvar.h" + +struct pmufreq_softc { + device_t dev; + uint32_t minfreq; + uint32_t maxfreq; + uint32_t curfreq; +}; + +static void pmufreq_identify(driver_t *driver, device_t parent); +static int pmufreq_probe(device_t dev); +static int pmufreq_attach(device_t dev); +static int pmufreq_settings(device_t dev, struct cf_setting *sets, int *count); +static int pmufreq_set(device_t dev, const struct cf_setting *set); +static int pmufreq_get(device_t dev, struct cf_setting *set); +static int pmufreq_type(device_t dev, int *type); + +static device_method_t pmufreq_methods[] = { + /* Device interface */ + DEVMETHOD(device_identify, pmufreq_identify), + DEVMETHOD(device_probe, pmufreq_probe), + DEVMETHOD(device_attach, pmufreq_attach), + + /* cpufreq interface */ + DEVMETHOD(cpufreq_drv_set, pmufreq_set), + DEVMETHOD(cpufreq_drv_get, pmufreq_get), + DEVMETHOD(cpufreq_drv_type, pmufreq_type), + DEVMETHOD(cpufreq_drv_settings, pmufreq_settings), + + {0, 0} +}; + +static driver_t pmufreq_driver = { + "pmufreq", + pmufreq_methods, + sizeof(struct pmufreq_softc) +}; + +static devclass_t pmufreq_devclass; +DRIVER_MODULE(pmufreq, cpu, pmufreq_driver, pmufreq_devclass, 0, 0); + +static void +pmufreq_identify(driver_t *driver, device_t parent) +{ + uint16_t vers; + vers = mfpvr() >> 16; + + /* Check for an MPC7455 CPU */ + switch (vers) { + case MPC7455: + break; + default: + return; + } + + /* Make sure we're not being doubly invoked. */ + if (device_find_child(parent, "pmufreq", -1) != NULL) + return; + + /* + * We attach a child for every CPU since settings need to + * be performed on every CPU in the SMP case. + */ + if (BUS_ADD_CHILD(parent, 10, "pmufreq", -1) == NULL) + device_printf(parent, "add pmufreq child failed\n"); +} + +static int +pmufreq_probe(device_t dev) +{ + uint32_t min_freq; + struct pmufreq_softc *sc; + phandle_t node; + + if (resource_disabled("pmufreq", 0)) + return (ENXIO); + + sc = device_get_softc(dev); + node = ofw_bus_get_node(device_get_parent(dev)); + /* + * A scalable MPC7455 has min-clock-frequency/max-clock-frequency as OFW + * properties of the 'cpu' node. + */ + if (OF_getprop(node, "min-clock-frequency", &min_freq, sizeof(min_freq)) == -1) + return (ENXIO); + device_set_desc(dev, "PMU-based frequency scaling"); + return (0); +} + +static int +pmufreq_attach(device_t dev) +{ + struct pmufreq_softc *sc; + phandle_t node; + + sc = device_get_softc(dev); + sc->dev = dev; + + node = ofw_bus_get_node(device_get_parent(dev)); + OF_getprop(node, "min-clock-frequency", &sc->minfreq, sizeof(sc->minfreq)); + OF_getprop(node, "max-clock-frequency", &sc->maxfreq, sizeof(sc->maxfreq)); + OF_getprop(node, "rounded-clock-frequency", &sc->curfreq, sizeof(sc->curfreq)); + sc->minfreq /= 1000000; + sc->maxfreq /= 1000000; + sc->curfreq /= 1000000; + + cpufreq_register(dev); + return (0); +} + +static int +pmufreq_settings(device_t dev, struct cf_setting *sets, int *count) +{ + struct pmufreq_softc *sc; + + sc = device_get_softc(dev); + if (sets == NULL || count == NULL) + return (EINVAL); + if (*count < 2) + return (E2BIG); + + /* Return a list of valid settings for this driver. */ + memset(sets, CPUFREQ_VAL_UNKNOWN, sizeof(*sets) * 2); + + sets[0].freq = sc->maxfreq; sets[0].dev = dev; + sets[1].freq = sc->minfreq; sets[1].dev = dev; + /* Set high latency for CPU frequency changes, it's a tedious process. */ + sets[0].lat = 1000000; + sets[1].lat = 1000000; + *count = 2; + + return (0); +} + +static int +pmufreq_set(device_t dev, const struct cf_setting *set) +{ + struct pmufreq_softc *sc; + int speed_sel; + int error; + + if (set == NULL) + return (EINVAL); + + sc = device_get_softc(dev); + + if (set->freq == sc->maxfreq) + speed_sel = 1; + else + speed_sel = 0; + + error = pmu_set_speed(speed_sel); + if (error == 0) + sc->curfreq = set->freq; + + return error; +} + +static int +pmufreq_get(device_t dev, struct cf_setting *set) +{ + struct pmufreq_softc *sc; + + if (set == NULL) + return (EINVAL); + sc = device_get_softc(dev); + + set->freq = sc->curfreq; + set->dev = dev; + + return (0); +} + +static int +pmufreq_type(device_t dev, int *type) +{ + + if (type == NULL) + return (EINVAL); + + *type = CPUFREQ_TYPE_ABSOLUTE; + return (0); +} + Index: sys/conf/files.powerpc =================================================================== --- sys/conf/files.powerpc (revision 241450) +++ sys/conf/files.powerpc (working copy) @@ -115,6 +115,7 @@ powerpc/booke/vm_machdep.c optional booke powerpc/cpufreq/dfs.c optional cpufreq powerpc/cpufreq/pcr.c optional cpufreq aim +powerpc/cpufreq/pmufreq.c optional cpufreq aim powerpc/fpu/fpu_add.c optional fpu_emu powerpc powerpc/fpu/fpu_compare.c optional fpu_emu powerpc powerpc/fpu/fpu_div.c optional fpu_emu powerpc Index: sys/powerpc/powermac/viareg.h =================================================================== --- sys/powerpc/powermac/viareg.h (revision 241450) +++ sys/powerpc/powermac/viareg.h (working copy) @@ -33,6 +33,8 @@ #define vBufA 0x0200 /* register A */ #define vDirB 0x0400 /* data direction register */ #define vDirA 0x0600 /* data direction register */ +#define vT1C 0x0800 /* Timer 1 counter Lo */ +#define vT1CH 0x0a00 /* Timer 1 counter Hi */ #define vSR 0x1400 /* shift register */ #define vACR 0x1600 /* aux control register */ #define vPCR 0x1800 /* peripheral control register */ Index: sys/powerpc/powermac/uninorth.c =================================================================== --- sys/powerpc/powermac/uninorth.c (revision 241450) +++ sys/powerpc/powermac/uninorth.c (working copy) @@ -65,6 +65,8 @@ static int unin_chip_probe(device_t); static int unin_chip_attach(device_t); +static int unin_chip_suspend(device_t); +//static int unin_chip_resume(device_t); /* * Bus interface. @@ -102,6 +104,8 @@ /* Device interface */ DEVMETHOD(device_probe, unin_chip_probe), DEVMETHOD(device_attach, unin_chip_attach), + DEVMETHOD(device_suspend, unin_chip_suspend), + DEVMETHOD(device_resume, unin_chip_resume), /* Bus interface */ DEVMETHOD(bus_print_child, unin_chip_print_child), @@ -136,6 +140,13 @@ static devclass_t unin_chip_devclass; +/* + * Assume there is only one unin chip in a PowerMac, so that pmu.c functions can + * suspend the chip after the whole rest of the device tree is suspended, not + * earlier. + */ +static device_t unin_chip; + DRIVER_MODULE(unin, nexus, unin_chip_driver, unin_chip_devclass, 0, 0); /* @@ -210,31 +221,30 @@ } static void -unin_enable_gmac(device_t dev) +unin_update_reg(device_t dev, uint32_t regoff, uint32_t set, uint32_t clr) { - volatile u_int *clkreg; + volatile u_int *reg; struct unin_chip_softc *sc; u_int32_t tmpl; sc = device_get_softc(dev); - clkreg = (void *)(sc->sc_addr + UNIN_CLOCKCNTL); - tmpl = inl(clkreg); - tmpl |= UNIN_CLOCKCNTL_GMAC; - outl(clkreg, tmpl); + reg = (void *)(sc->sc_addr + regoff); + tmpl = inl(reg); + tmpl &= ~clr; + tmpl |= set; + outl(reg, tmpl); } static void +unin_enable_gmac(device_t dev) +{ + unin_update_reg(dev, UNIN_CLOCKCNTL, UNIN_CLOCKCNTL_GMAC, 0); +} + +static void unin_enable_mpic(device_t dev) { - volatile u_int *toggle; - struct unin_chip_softc *sc; - u_int32_t tmpl; - - sc = device_get_softc(dev); - toggle = (void *)(sc->sc_addr + UNIN_TOGGLE_REG); - tmpl = inl(toggle); - tmpl |= UNIN_MPIC_RESET | UNIN_MPIC_OUTPUT_ENABLE; - outl(toggle, tmpl); + unin_update_reg(dev, UNIN_TOGGLE_REG, UNIN_MPIC_RESET | UNIN_MPIC_OUTPUT_ENABLE, 0); } static int @@ -301,6 +311,9 @@ return (error); } + if (unin_chip == NULL) + unin_chip = dev; + /* * Iterate through the sub-devices */ @@ -621,3 +634,38 @@ return (&dinfo->udi_obdinfo); } +static int unin_chip_suspend(device_t dev) +{ + int error; + + error = bus_generic_suspend(dev); + return 0; +} + +int unin_chip_resume(device_t dev) +{ + if (dev == NULL) + dev = unin_chip; + unin_update_reg(dev, UNIN_PWR_MGMT, UNIN_PWR_NORMAL, UNIN_PWR_MASK); + DELAY(10); + unin_update_reg(dev, UNIN_HWINIT_STATE, UNIN_RUNNING, 0); + DELAY(100); + + bus_generic_resume(dev); + return (0); +} + +int unin_chip_sleep(device_t dev, int idle) +{ + if (dev == NULL) + dev = unin_chip; + + unin_update_reg(dev, UNIN_HWINIT_STATE, UNIN_SLEEPING, 0); + DELAY(10); + if (idle) + unin_update_reg(dev, UNIN_PWR_MGMT, UNIN_PWR_IDLE2, UNIN_PWR_MASK); + else + unin_update_reg(dev, UNIN_PWR_MGMT, UNIN_PWR_SLEEP, UNIN_PWR_MASK); + DELAY(10); + return (0); +} Index: sys/powerpc/powermac/pmuvar.h =================================================================== --- sys/powerpc/powermac/pmuvar.h (revision 241450) +++ sys/powerpc/powermac/pmuvar.h (working copy) @@ -161,6 +161,7 @@ int sc_batteries; struct cdev *sc_leddev; int lid_closed; + uint8_t saved_regs[9]; }; struct pmu_battstate { @@ -172,4 +173,6 @@ int voltage; }; +int pmu_set_speed(int high_speed); + #endif /* PMUVAR_H */ Index: sys/powerpc/powermac/platform_powermac.c =================================================================== --- sys/powerpc/powermac/platform_powermac.c (revision 241450) +++ sys/powerpc/powermac/platform_powermac.c (working copy) @@ -280,6 +280,97 @@ #endif } +/* From p3-53 of the MPC7450 RISC Microprocessor Family Reference Manual */ +void +flush_disable_caches(void) +{ + register_t msr; + register_t msscr0; + register_t cache_reg; + volatile uint32_t *romp; + uint32_t temp; + int i; + int x; + + msr = mfmsr(); + powerpc_sync(); + mtmsr(msr & ~(PSL_EE | PSL_DR)); + msscr0 = mfspr(SPR_MSSCR0); + msscr0 &= ~MSSCR0_L2PFE; + mtspr(SPR_MSSCR0, msscr0); + powerpc_sync(); + isync(); + __asm__ __volatile__("dssall; sync"); + powerpc_sync(); + isync(); + __asm__ __volatile__("dcbf 0,%0" :: "r"(0)); + __asm__ __volatile__("dcbf 0,%0" :: "r"(0)); + __asm__ __volatile__("dcbf 0,%0" :: "r"(0)); + + /* Lock the L1 Data cache. */ + mtspr(SPR_LDSTCR, mfspr(SPR_LDSTCR) | 0xFF); + powerpc_sync(); + isync(); + + mtspr(SPR_LDSTCR, 0); + + romp = (uint32_t *)0xfff00000; + x = 0xfe; + + for (; x != 0xff;) { + mtspr(SPR_LDSTCR, x); + for (i = 0; i < 128; i++) { + temp = *romp; + romp += 32/sizeof(*romp); + } + x = ((x << 1) | 1) & 0xff; + } + + cache_reg = mfspr(SPR_L2CR); + if (cache_reg & L2CR_L2E) { + cache_reg &= ~(L2CR_L2IO_7450 | L2CR_L2DO_7450); + mtspr(SPR_L2CR, cache_reg); + powerpc_sync(); + mtspr(SPR_L2CR, cache_reg | L2CR_L2HWF); + while (mfspr(SPR_L2CR) & L2CR_L2HWF) + ; /* Busy wait for cache to flush */ + powerpc_sync(); + cache_reg &= ~L2CR_L2E; + mtspr(SPR_L2CR, cache_reg); + powerpc_sync(); + mtspr(SPR_L2CR, cache_reg | L2CR_L2I); + powerpc_sync(); + while (mfspr(SPR_L2CR) & L2CR_L2I) + ; /* Busy wait for L2 cache invalidate */ + powerpc_sync(); + } + + cache_reg = mfspr(SPR_L3CR); + if (cache_reg & L3CR_L3E) { + cache_reg &= ~(L3CR_L3IO_7450 | L3CR_L3DO_7450); + mtspr(SPR_L3CR, cache_reg); + powerpc_sync(); + mtspr(SPR_L3CR, cache_reg | L3CR_L3HWF); + while (mfspr(SPR_L3CR) & L3CR_L3HWF) + ; /* Busy wait for cache to flush */ + powerpc_sync(); + cache_reg &= ~L3CR_L3E; + mtspr(SPR_L3CR, cache_reg); + powerpc_sync(); + mtspr(SPR_L3CR, cache_reg | L3CR_L3I); + powerpc_sync(); + while (mfspr(SPR_L3CR) & L3CR_L3I) + ; /* Busy wait for L3 cache invalidate */ + powerpc_sync(); + } + + mtspr(SPR_HID0, mfspr(SPR_HID0) & ~HID0_DCE); + powerpc_sync(); + isync(); + + mtmsr(msr); +} + static void powermac_reset(platform_t platform) { Index: sys/powerpc/powermac/pmu.c =================================================================== --- sys/powerpc/powermac/pmu.c (revision 241450) +++ sys/powerpc/powermac/pmu.c (working copy) @@ -44,10 +44,14 @@ #include #include +#include +#include #include #include +#include #include #include +#include #include #include @@ -60,6 +64,10 @@ #include "pmuvar.h" #include "viareg.h" +#define PMU_DEFAULTS PMU_INT_TICK | PMU_INT_ADB | \ + PMU_INT_PCEJECT | PMU_INT_SNDBRT | \ + PMU_INT_BATTERY | PMU_INT_ENVIRONMENT + /* * Bus interface */ @@ -89,10 +97,13 @@ static void pmu_shutdown(void *xsc, int howto); static void pmu_set_sleepled(void *xsc, int onoff); static int pmu_server_mode(SYSCTL_HANDLER_ARGS); +static int pmu_sleep(SYSCTL_HANDLER_ARGS); static int pmu_acline_state(SYSCTL_HANDLER_ARGS); static int pmu_query_battery(struct pmu_softc *sc, int batt, struct pmu_battstate *info); static int pmu_battquery_sysctl(SYSCTL_HANDLER_ARGS); +static void pmu_restore_state(struct pmu_softc *sc); +static void pmu_save_state(struct pmu_softc *sc); /* * List of battery-related sysctls we might ask for @@ -193,7 +204,7 @@ 0x02, -1, -1, -1, -1, -1, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, -1, -1, 0x01, 0x01, 0x01, -1, -1, -1, -1, -1, - 0x00, 0x00, -1, -1, -1, -1, 0x04, 0x04, + 0x00, 0x00, -1, -1, -1, 0x05, 0x04, 0x04, 0x04, -1, 0x00, -1, -1, -1, -1, -1, 0x00, -1, -1, -1, -1, -1, -1, -1, 0x01, 0x02, -1, -1, -1, -1, -1, -1, @@ -229,7 +240,7 @@ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x04, 0x04, 0x03, 0x09, -1, -1, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - -1, -1, -1, -1, -1, -1, 0x01, 0x01, + -1, -1, -1, -1, -1, 0x01, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06, -1, -1, -1, -1, -1, -1, -1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, @@ -357,12 +368,13 @@ /* Init PMU */ - reg = PMU_INT_TICK | PMU_INT_ADB | PMU_INT_PCEJECT | PMU_INT_SNDBRT; - reg |= PMU_INT_BATTERY; - reg |= PMU_INT_ENVIRONMENT; + pmu_write_reg(sc, vBufB, pmu_read_reg(sc, vBufB) | vPB4); + pmu_write_reg(sc, vDirB, (pmu_read_reg(sc, vDirB) | vPB4) & ~vPB3); + + reg = PMU_DEFAULTS; pmu_send(sc, PMU_SET_IMASK, 1, ®, 16, resp); - pmu_write_reg(sc, vIER, 0x90); /* make sure VIA interrupts are on */ + pmu_write_reg(sc, vIER, 0x94); /* make sure VIA interrupts are on */ pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp); pmu_send(sc, PMU_GET_VERSION, 1, cmd, 16, resp); @@ -407,6 +419,10 @@ "server_mode", CTLTYPE_INT | CTLFLAG_RW, sc, 0, pmu_server_mode, "I", "Enable reboot after power failure"); + SYSCTL_ADD_PROC(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, + "sleep", CTLTYPE_INT | CTLFLAG_RW, sc, 0, + pmu_sleep, "I", "Put the machine to sleep"); + if (sc->sc_batteries > 0) { struct sysctl_oid *oid, *battroot; char battnum[2]; @@ -464,6 +480,7 @@ } } + sc->lid_closed = 0; /* * Set up LED interface */ @@ -515,6 +532,34 @@ bus_write_1(sc->sc_memr, offset, value); } +static void +pmu_save_state(struct pmu_softc *sc) +{ + sc->saved_regs[0] = pmu_read_reg(sc, vBufA); + sc->saved_regs[1] = pmu_read_reg(sc, vDirA); + sc->saved_regs[2] = pmu_read_reg(sc, vBufB); + sc->saved_regs[3] = pmu_read_reg(sc, vDirB); + sc->saved_regs[4] = pmu_read_reg(sc, vPCR); + sc->saved_regs[5] = pmu_read_reg(sc, vACR); + sc->saved_regs[6] = pmu_read_reg(sc, vIER); + sc->saved_regs[7] = pmu_read_reg(sc, vT1C); + sc->saved_regs[8] = pmu_read_reg(sc, vT1CH); +} + +static void +pmu_restore_state(struct pmu_softc *sc) +{ + pmu_write_reg(sc, vBufA, sc->saved_regs[0]); + pmu_write_reg(sc, vDirA, sc->saved_regs[1]); + pmu_write_reg(sc, vBufB, sc->saved_regs[2]); + pmu_write_reg(sc, vDirB, sc->saved_regs[3]); + pmu_write_reg(sc, vPCR, sc->saved_regs[4]); + pmu_write_reg(sc, vACR, sc->saved_regs[5]); + pmu_write_reg(sc, vIER, sc->saved_regs[6]); + pmu_write_reg(sc, vT1C, sc->saved_regs[7]); + pmu_write_reg(sc, vT1CH, sc->saved_regs[8]); +} + static int pmu_send_byte(struct pmu_softc *sc, uint8_t data) { @@ -1018,3 +1063,145 @@ return (0); } +static jmp_buf resetjb; +static register_t sprgs[4]; +static register_t srrs[2]; +extern void *ap_pcpu; +extern int setfault(faultbuf); +extern int unin_chip_sleep(device_t dev, int idle); +extern int unin_chip_resume(device_t dev); +extern u_quad_t ap_timebase; +extern void move_sp(uint32_t *newptr); +extern void pmu_sleep_int(void); +extern void low_sleep_handler(void); + +void pmu_sleep_int(void) +{ + register_t hid0; + register_t msr; + register_t saved_msr; + ap_pcpu = pcpup; + PCPU_SET(restore, &resetjb); + + *(unsigned long *)0x80 = 0x100; + saved_msr = mfmsr(); + ap_timebase = mftb(); + flush_disable_caches(); + if (setjmp(resetjb) == 0) { + sprgs[0] = mfspr(SPR_SPRG0); + sprgs[1] = mfspr(SPR_SPRG1); + sprgs[2] = mfspr(SPR_SPRG2); + sprgs[3] = mfspr(SPR_SPRG3); + srrs[0] = mfspr(SPR_SRR0); + srrs[1] = mfspr(SPR_SRR1); + hid0 = mfspr(SPR_HID0); + hid0 = (hid0 & ~(HID0_DOZE | HID0_NAP)) | HID0_SLEEP; + powerpc_sync(); + isync(); + mtspr(SPR_HID0, hid0); + powerpc_sync(); + + msr = mfmsr() | PSL_POW; + while (1) + mtmsr(msr); + } + mtspr(SPR_SPRG0, sprgs[0]); + mtspr(SPR_SPRG1, sprgs[1]); + mtspr(SPR_SPRG2, sprgs[2]); + mtspr(SPR_SPRG3, sprgs[3]); + mtspr(SPR_SRR0, srrs[0]); + mtspr(SPR_SRR1, srrs[1]); + mtmsr(saved_msr); + powerpc_sync(); +} + +static int +pmu_sleep(SYSCTL_HANDLER_ARGS) +{ + u_int sleep = 0; + int error; + struct pmu_softc *sc = arg1; + uint8_t clrcmd[] = {PMU_PWR_CLR_POWERUP_EVENTS, 0xff, 0xff}; + uint8_t setcmd[] = {PMU_PWR_SET_POWERUP_EVENTS, 0, PMU_PWR_WAKEUP_LID_OPEN|PMU_PWR_WAKEUP_KEY}; + uint8_t sleepcmd[] = {'M', 'A', 'T', 'T'}; + uint8_t resp[16]; + uint8_t reg; + uint8_t cmd[2] = {2, 0}; + + error = sysctl_handle_int(oidp, &sleep, 0, req); + + if (error || !req->newptr) + return (error); + + error = DEVICE_SUSPEND(root_bus); + mtx_lock(&sc->sc_mutex); + if (error == 0) { + mtx_lock(&Giant); + spinlock_enter(); + reg = 0; + pmu_send(sc, PMU_SET_IMASK, 1, ®, 16, resp); + pmu_send(sc, PMU_POWER_EVENTS, 3, clrcmd, 16, resp); + pmu_send(sc, PMU_POWER_EVENTS, 3, setcmd, 2, resp); + pmu_save_state(sc); + + pmu_send(sc, PMU_SLEEP, 4, sleepcmd, 16, resp); + unin_chip_sleep(NULL, 0); + pmu_sleep_int(); + unin_chip_resume(NULL); + + pmu_restore_state(sc); + pmu_send(sc, PMU_SYSTEM_READY, 1, cmd, 16, resp); + reg = PMU_DEFAULTS; + pmu_send(sc, PMU_SET_IMASK, 1, ®, 16, resp); + spinlock_exit(); + mtx_unlock(&Giant); + } + mtx_unlock(&sc->sc_mutex); + printf("failure: %d\n", error); + DEVICE_RESUME(root_bus); + + return (error); +} + +int +pmu_set_speed(int high_speed) +{ + struct pmu_softc *sc; + uint8_t sleepcmd[] = {'W', 'O', 'O', 'F', 0}; + uint8_t resp[16]; + uint8_t reg; + + sc = device_get_softc(pmu); + pmu_write_reg(sc, vIER, 0x10); + spinlock_enter(); + mtdec(0x7fffffff); + mb(); + mtdec(0x7fffffff); + + reg = 0; + + /* The PMU speed change command actually uses '1' to denote low-speed. */ + if (high_speed) + sleepcmd[4] = 0; + else + sleepcmd[4] = 1; + + printf("curthread: %p\n", curthread); + printf("srr0: %x\n", mfspr(SPR_SRR0)); + mtx_lock(&sc->sc_mutex); + pmu_send(sc, PMU_CPU_SPEED, 5, sleepcmd, 16, resp); + mtx_unlock(&sc->sc_mutex); + unin_chip_sleep(NULL, 1); + pmu_sleep_int(); + decr_init(); /* Reset the ns_per_tick to the new frequency */ + unin_chip_resume(NULL); + + mtdec(1); + spinlock_exit(); + printf("curthread: %p\n", curthread); + printf("srr0: %x\n", mfspr(SPR_SRR0)); + printf("exit from here\n"); + pmu_write_reg(sc, vIER, 0x90); + + return (0); +} Index: sys/powerpc/powermac/macio.c =================================================================== --- sys/powerpc/powermac/macio.c (revision 241450) +++ sys/powerpc/powermac/macio.c (working copy) @@ -69,12 +69,17 @@ /* FCR registers */ int sc_memrid; struct resource *sc_memr; + int sc_rev; + int sc_devid; + uint32_t saved_fcrs[6]; }; static MALLOC_DEFINE(M_MACIO, "macio", "macio device information"); static int macio_probe(device_t); static int macio_attach(device_t); +static int macio_suspend(device_t); +static int macio_resume(device_t); static int macio_print_child(device_t dev, device_t child); static void macio_probe_nomatch(device_t, device_t); static struct resource *macio_alloc_resource(device_t, device_t, int, int *, @@ -97,8 +102,8 @@ DEVMETHOD(device_attach, macio_attach), DEVMETHOD(device_detach, bus_generic_detach), DEVMETHOD(device_shutdown, bus_generic_shutdown), - DEVMETHOD(device_suspend, bus_generic_suspend), - DEVMETHOD(device_resume, bus_generic_resume), + DEVMETHOD(device_suspend, macio_suspend), + DEVMETHOD(device_resume, macio_resume), /* Bus interface */ DEVMETHOD(bus_print_child, macio_print_child), @@ -319,6 +324,13 @@ } /* + * If possible, get the device ID and revision ID. + */ + OF_getprop(root, "revision-id", &sc->sc_rev, sizeof(sc->sc_rev)); + OF_getprop(root, "device-id", &sc->sc_devid, sizeof(sc->sc_devid)); + + + /* * Iterate through the sub-devices */ for (child = OF_child(root); child != 0; child = OF_peer(child)) { @@ -605,3 +617,140 @@ dinfo = device_get_ivars(child); return (&dinfo->mdi_obdinfo); } + +static int macio_suspend(device_t dev) +{ + int error; + uint32_t temp; + struct macio_softc *sc = device_get_softc(dev); + + error = bus_generic_suspend(dev); + + if (error) + return (error); + + sc->saved_fcrs[0] = bus_read_4(sc->sc_memr, KEYLARGO_FCR0); + sc->saved_fcrs[1] = bus_read_4(sc->sc_memr, KEYLARGO_FCR1); + sc->saved_fcrs[2] = bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + sc->saved_fcrs[3] = bus_read_4(sc->sc_memr, KEYLARGO_FCR3); + + temp = bus_read_4(sc->sc_memr, KEYLARGO_FCR0); + temp |= FCR0_USB_REF_SUSPEND; + temp &= ~(FCR0_SCCA_ENABLE | FCR0_SCCB_ENABLE | + FCR0_SCC_CELL_ENABLE | FCR0_IRDA_ENABLE | + FCR0_IRDA_CLK32_ENABLE | + FCR0_IRDA_CLK19_ENABLE); + bus_write_4(sc->sc_memr, KEYLARGO_FCR0, temp); + DELAY(1000); + + if (sc->sc_devid == 0x22) { + temp = bus_read_4(sc->sc_memr, KEYLARGO_MEDIABAY); + temp |= KEYLARGO_MB0_DEV_ENABLE; + bus_write_4(sc->sc_memr, KEYLARGO_MEDIABAY, temp); + } + + temp = bus_read_4(sc->sc_memr, KEYLARGO_FCR1); + temp &= ~(FCR1_AUDIO_SEL_22MCLK | FCR1_AUDIO_CLK_ENABLE | + FCR1_AUDIO_CLKOUT_ENABLE | FCR1_AUDIO_CELL_ENABLE | + FCR1_I2S0_CELL_ENABLE | FCR1_I2S0_CLK_ENABLE | + FCR1_I2S0_ENABLE | + FCR1_I2S1_CELL_ENABLE | FCR1_I2S1_CLK_ENABLE | + FCR1_I2S1_ENABLE | + FCR1_EIDE0_ENABLE | FCR1_EIDE0_RESET | + FCR1_EIDE1_ENABLE | FCR1_EIDE1_RESET | + FCR1_UIDE_ENABLE + ); + bus_write_4(sc->sc_memr, KEYLARGO_FCR1, temp); + + temp = bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + temp &= ~FCR2_IOBUS_ENABLE; + bus_write_4(sc->sc_memr, KEYLARGO_FCR2, temp); + + temp = bus_read_4(sc->sc_memr, KEYLARGO_FCR3); + temp |= (FCR3_SHUTDOWN_PLL_KW6 | FCR3_SHUTDOWN_PLL_KW4 | + FCR3_SHUTDOWN_PLL_KW35 | FCR3_SHUTDOWN_PLL_KW12); + temp &= ~(FCR3_CLK_66_ENABLE | FCR3_CLK_49_ENABLE | + FCR3_CLK_45_ENABLE | FCR3_CLK_31_ENABLE | + FCR3_TMR_CLK18_ENABLE | FCR3_I2S1_CLK18_ENABLE | + FCR3_I2S0_CLK18_ENABLE | FCR3_VA_CLK16_ENABLE); + if (sc->sc_rev >= 2) + temp |= (FCR3_SHUTDOWN_PLL_2X | FCR3_SHUTDOWN_PLL_TOTAL); + bus_write_4(sc->sc_memr, KEYLARGO_FCR3, temp); + /* Delay for a millisecond to let things settle. */ + temp = bus_read_4(sc->sc_memr, KEYLARGO_FCR0); + DELAY(1000); + + return (0); +} + +static int macio_resume(device_t dev) +{ + struct macio_softc *sc = device_get_softc(dev); + + bus_write_4(sc->sc_memr, KEYLARGO_FCR0, sc->saved_fcrs[0]); + bus_read_4(sc->sc_memr, KEYLARGO_FCR0); + DELAY(10); + bus_write_4(sc->sc_memr, KEYLARGO_FCR1, sc->saved_fcrs[1]); + bus_read_4(sc->sc_memr, KEYLARGO_FCR1); + DELAY(10); + bus_write_4(sc->sc_memr, KEYLARGO_FCR2, sc->saved_fcrs[2]); + bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + DELAY(10); + bus_write_4(sc->sc_memr, KEYLARGO_FCR3, sc->saved_fcrs[3]); + bus_read_4(sc->sc_memr, KEYLARGO_FCR3); + DELAY(10); + bus_write_4(sc->sc_memr, KEYLARGO_FCR4, sc->saved_fcrs[4]); + bus_read_4(sc->sc_memr, KEYLARGO_FCR4); + DELAY(10); + bus_write_4(sc->sc_memr, KEYLARGO_FCR5, sc->saved_fcrs[5]); + bus_read_4(sc->sc_memr, KEYLARGO_FCR5); + DELAY(10); + + bus_generic_resume(dev); + + return (0); +} + +int macio_enable_wireless(device_t dev, bool enable) +{ + struct macio_softc *sc = device_get_softc(dev); + + uint32_t x; + + if (enable) { + x = bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + x |= 0x4; + bus_write_4(sc->sc_memr, KEYLARGO_FCR2, x); + + /* Enable card slot. */ + bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0f, 5); + DELAY(1000); + bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0f, 4); + DELAY(1000); + x = bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + x &= ~0x800000; + + bus_write_4(sc->sc_memr, KEYLARGO_FCR2, x); + /* out8(gpio + 0x10, 4); */ + + bus_write_1(sc->sc_memr, KEYLARGO_EXTINT_GPIO_REG_BASE + 0x0b, 0); + bus_write_1(sc->sc_memr, KEYLARGO_EXTINT_GPIO_REG_BASE + 0x0a, 0x28); + bus_write_1(sc->sc_memr, KEYLARGO_EXTINT_GPIO_REG_BASE + 0x0d, 0x28); + bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0d, 0x28); + bus_write_1(sc->sc_memr, KEYLARGO_GPIO_BASE + 0x0e, 0x28); + bus_write_4(sc->sc_memr, 0x1c000, 0); + + /* Initialize the card. */ + bus_write_4(sc->sc_memr, 0x1a3e0, 0x41); + x = bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + x |= 0x800000; + bus_write_4(sc->sc_memr, KEYLARGO_FCR2, x); + } else { + x = bus_read_4(sc->sc_memr, KEYLARGO_FCR2); + x &= ~0x4; + bus_write_4(sc->sc_memr, KEYLARGO_FCR2, x); + /* out8(gpio + 0x10, 0); */ + } + + return 0; +} Index: sys/powerpc/powermac/uninorthpci.c =================================================================== --- sys/powerpc/powermac/uninorthpci.c (revision 241450) +++ sys/powerpc/powermac/uninorthpci.c (working copy) @@ -86,6 +86,8 @@ /* Device interface */ DEVMETHOD(device_probe, uninorth_probe), DEVMETHOD(device_attach, uninorth_attach), + DEVMETHOD(device_suspend, bus_generic_suspend), + DEVMETHOD(device_resume, bus_generic_resume), /* pcib interface */ DEVMETHOD(pcib_read_config, uninorth_read_config), Index: sys/powerpc/powermac/maciovar.h =================================================================== --- sys/powerpc/powermac/maciovar.h (revision 241450) +++ sys/powerpc/powermac/maciovar.h (working copy) @@ -43,10 +43,77 @@ #define HEATHROW_FCR 0x38 #define KEYLARGO_FCR0 0x38 #define KEYLARGO_FCR1 0x3c +#define KEYLARGO_FCR2 0x40 +#define KEYLARGO_FCR3 0x44 +#define KEYLARGO_FCR4 0x48 +#define KEYLARGO_FCR5 0x4c #define FCR_ENET_ENABLE 0x60000000 #define FCR_ENET_RESET 0x80000000 +#define KEYLARGO_MEDIABAY 0x34 +#define KEYLARGO_MB0_DEV_ENABLE 0x00001000 +#define KEYLARGO_MB0_DEV_POWER 0x00000400 +#define KEYLARGO_MB0_DEV_RESET 0x00000200 +#define KEYLARGO_MB0_ENABLE 0x00000100 +#define KEYLARGO_MB1_DEV_ENABLE 0x10000000 +#define KEYLARGO_MB1_DEV_POWER 0x04000000 +#define KEYLARGO_MB1_DEV_RESET 0x02000000 +#define KEYLARGO_MB1_ENABLE 0x01000000 + +#define KEYLARGO_GPIO_BASE 0x6a +#define KEYLARGO_GPIO_LEVELS_0 0x50 +#define KEYLARGO_GPIO_LEVELS_1 0x54 + +#define KEYLARGO_EXTINT_GPIO_REG_BASE 0x58 + +#define FCR0_CHOOSE_SCCB 0x00000001 +#define FCR0_CHOOSE_SCCA 0x00000002 +#define FCR0_SLOW_SCC_PCLK 0x00000004 +#define FCR0_RESET_SCC 0x00000008 +#define FCR0_SCCA_ENABLE 0x00000010 +#define FCR0_SCCB_ENABLE 0x00000020 +#define FCR0_SCC_CELL_ENABLE 0x00000040 +#define FCR0_IRDA_ENABLE 0x00008000 +#define FCR0_IRDA_CLK32_ENABLE 0x00010000 +#define FCR0_IRDA_CLK19_ENABLE 0x00020000 + +#define FCR0_USB_REF_SUSPEND 0x10000000 + +#define FCR1_AUDIO_SEL_22MCLK 0x00000002 +#define FCR1_AUDIO_CLK_ENABLE 0x00000008 +#define FCR1_AUDIO_CLKOUT_ENABLE 0x00000020 +#define FCR1_AUDIO_CELL_ENABLE 0x00000040 +#define FCR1_I2S0_CELL_ENABLE 0x00000400 +#define FCR1_I2S0_CLK_ENABLE 0x00001000 +#define FCR1_I2S0_ENABLE 0x00002000 +#define FCR1_I2S1_CELL_ENABLE 0x00020000 +#define FCR1_I2S1_CLK_ENABLE 0x00080000 +#define FCR1_I2S1_ENABLE 0x00100000 +#define FCR1_EIDE0_ENABLE 0x00800000 +#define FCR1_EIDE0_RESET 0x01000000 +#define FCR1_EIDE1_ENABLE 0x04000000 +#define FCR1_EIDE1_RESET 0x08000000 +#define FCR1_UIDE_ENABLE 0x20000000 +#define FCR1_UIDE_RESET 0x40000000 + +#define FCR2_IOBUS_ENABLE 0x00000002 + +#define FCR3_SHUTDOWN_PLL_TOTAL 0x00000001 +#define FCR3_SHUTDOWN_PLL_KW6 0x00000002 +#define FCR3_SHUTDOWN_PLL_KW4 0x00000004 +#define FCR3_SHUTDOWN_PLL_KW35 0x00000008 +#define FCR3_SHUTDOWN_PLL_KW12 0x00000010 +#define FCR3_SHUTDOWN_PLL_2X 0x00000080 +#define FCR3_CLK_66_ENABLE 0x00000100 +#define FCR3_CLK_49_ENABLE 0x00000200 +#define FCR3_CLK_45_ENABLE 0x00000400 +#define FCR3_CLK_31_ENABLE 0x00000800 +#define FCR3_TMR_CLK18_ENABLE 0x00001000 +#define FCR3_I2S1_CLK18_ENABLE 0x00002000 +#define FCR3_I2S0_CLK18_ENABLE 0x00004000 +#define FCR3_VA_CLK16_ENABLE 0x00008000 + /* * Format of a macio reg property entry. */ @@ -66,4 +133,6 @@ struct resource_list mdi_resources; }; +extern int macio_enable_wireless(device_t, bool); + #endif /* _MACIO_MACIOVAR_H_ */ Index: sys/powerpc/powermac/uninorthvar.h =================================================================== --- sys/powerpc/powermac/uninorthvar.h (revision 241450) +++ sys/powerpc/powermac/uninorthvar.h (working copy) @@ -76,10 +76,30 @@ #define UNIN_CLOCKCNTL_GMAC 0x2 /* + * Power management register + */ +#define UNIN_PWR_MGMT 0x30 +#define UNIN_PWR_NORMAL 0x00 +#define UNIN_PWR_IDLE2 0x01 +#define UNIN_PWR_SLEEP 0x02 +#define UNIN_PWR_SAVE 0x03 +#define UNIN_PWR_MASK 0x03 + +/* + * Hardware initialization state register + */ +#define UNIN_HWINIT_STATE 0x70 +#define UNIN_SLEEPING 0x01 +#define UNIN_RUNNING 0x02 + + +/* * Toggle registers */ #define UNIN_TOGGLE_REG 0xe0 #define UNIN_MPIC_RESET 0x2 #define UNIN_MPIC_OUTPUT_ENABLE 0x4 +extern int unin_chip_sleep(device_t dev, int idle); +extern int unin_chip_resume(device_t dev); #endif /* _POWERPC_POWERMAC_UNINORTHVAR_H_ */ Index: sys/powerpc/include/openpicvar.h =================================================================== --- sys/powerpc/include/openpicvar.h (revision 241450) +++ sys/powerpc/include/openpicvar.h (working copy) @@ -31,7 +31,17 @@ #define OPENPIC_DEVSTR "OpenPIC Interrupt Controller" #define OPENPIC_IRQMAX 256 /* h/w allows more */ +#define OPENPIC_TIMER_COUNT 4 +#define OPENPIC_IPI_COUNT 4 +#define OPENPIC_TASK_PRIORITY_COUNT 4 +struct openpic_timer { + u_int current_count_reg; + u_int base_count_reg; + u_int vector_priority_reg; + u_int dest_reg; +}; + struct openpic_softc { device_t sc_dev; struct resource *sc_memr; @@ -45,6 +55,15 @@ u_int sc_ncpu; u_int sc_nirq; int sc_psim; + + struct saved_state { + u_int spurious_vector; + u_int ipi[OPENPIC_IPI_COUNT]; + struct openpic_timer timers[OPENPIC_TIMER_COUNT]; + u_int task_priorities[OPENPIC_TASK_PRIORITY_COUNT]; + u_int *int_src_vect_priorities; + u_int *int_src_dest; + } saved_state; }; extern devclass_t openpic_devclass; @@ -65,5 +84,6 @@ void openpic_ipi(device_t, u_int); void openpic_mask(device_t, u_int); void openpic_unmask(device_t, u_int); +int openpic_get_priority(device_t); #endif /* _POWERPC_OPENPICVAR_H_ */ Index: sys/powerpc/include/cpu.h =================================================================== --- sys/powerpc/include/cpu.h (revision 241450) +++ sys/powerpc/include/cpu.h (working copy) @@ -98,4 +98,6 @@ void fork_trampoline(void); void swi_vm(void *); +void flush_disable_caches(void); + #endif /* _MACHINE_CPU_H_ */ Index: sys/powerpc/include/spr.h =================================================================== --- sys/powerpc/include/spr.h (revision 241450) +++ sys/powerpc/include/spr.h (working copy) @@ -518,6 +518,8 @@ #define MSSCR0_EMODE 0x00200000 /* 10: MPX bus mode (read-only) */ #define MSSCR0_ABD 0x00100000 /* 11: address bus driven (read-only) */ #define MSSCR0_MBZ 0x000fffff /* 12-31: must be zero */ +#define MSSCR0_L2PFE 0x00000003 /* 30-31: L2 prefetch enable */ +#define SPR_LDSTCR 0x3f8 /* .6. Load/Store Control Register */ #define SPR_L2PM 0x3f8 /* .6. L2 Private Memory Control Register */ #define SPR_L2CR 0x3f9 /* .6. L2 Control Register */ #define L2CR_L2E 0x80000000 /* 0: L2 enable */ @@ -548,6 +550,7 @@ #define L2CR_L2WT 0x00080000 /* 12: L2 write-through. */ #define L2CR_L2TS 0x00040000 /* 13: L2 test support. */ #define L2CR_L2OH 0x00030000 /* 14-15: L2 output hold. */ +#define L2CR_L2DO_7450 0x00010000 /* 15: L2 data-only (MPC745x). */ #define L2CR_L2SL 0x00008000 /* 16: L2 DLL slow. */ #define L2CR_L2DF 0x00004000 /* 17: L2 differential clock. */ #define L2CR_L2BYP 0x00002000 /* 18: L2 DLL bypass. */ Index: sys/powerpc/include/pcpu.h =================================================================== --- sys/powerpc/include/pcpu.h (revision 241450) +++ sys/powerpc/include/pcpu.h (working copy) @@ -49,7 +49,8 @@ uint32_t pc_ipimask; \ register_t pc_tempsave[CPUSAVE_LEN]; \ register_t pc_disisave[CPUSAVE_LEN]; \ - register_t pc_dbsave[CPUSAVE_LEN]; + register_t pc_dbsave[CPUSAVE_LEN]; \ + void *pc_restore; #define PCPU_MD_AIM32_FIELDS --MP_/0OtZeAhMXg1GgqTp+4I7Ns.-- From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 29 02:53:50 2012 Return-Path: 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 CFACA472 for ; Mon, 29 Oct 2012 02:53:50 +0000 (UTC) (envelope-from michael@kryptos-security.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 6DCD08FC1E for ; Mon, 29 Oct 2012 02:53:49 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so1045194vba.13 for ; Sun, 28 Oct 2012 19:53:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=xYa4eV95iwqsrZhxZnsbvA88vhWcbtVYw/3otSefTAY=; b=QHu5hoL+YAVj8WsZWe9oQAos73qVMwbtYO9Bxjeh7LxBD7bQPhzjS/PwUl9J/nt++/ o57nyAariKH3NomJP5pGA4VUb2AX8JcLbmKCtDNc1YrgisuIafebjNm2V+64RNyhO9oT KxHRAQaeYyevRuWSFRNQDbZb1O4hkG/tzR/1bqIUMjUXr8KIWv+tlX3g28Pd1dtRaEmB vIor0351nzZhlog6DVUZ7kOKTQDQPKowxWxEEgnljnsTZfKiasSbZYEW/pF3NvvK7ubw pIUkNCPufLuAiZnhXSwbV5d9/jRiLK/0qeh3aNmyDRmz9ZI8YjY45p25uagZxgnEmWOM G5CA== MIME-Version: 1.0 Received: by 10.58.239.162 with SMTP id vt2mr51565163vec.1.1351479229020; Sun, 28 Oct 2012 19:53:49 -0700 (PDT) Received: by 10.58.252.199 with HTTP; Sun, 28 Oct 2012 19:53:48 -0700 (PDT) X-Originating-IP: [98.231.6.79] In-Reply-To: References: Date: Sun, 28 Oct 2012 22:53:48 -0400 Message-ID: Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 From: Michael Copeland To: Nathan Whitehorn , freebsd-ppc@freebsd.org X-Gm-Message-State: ALoCoQlQOI94jDS7BdnDO79z6f350CJzqtL/atElhuRjjoIMwSv6W+Rd2RZa4GIlVqMdDJIh7Cul Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 02:53:50 -0000 On Sun, Oct 28, 2012 at 5:35 PM, Michael Copeland < michael@kryptos-security.com> wrote: > > > On Sun, Oct 28, 2012 at 5:24 PM, Nathan Whitehorn wrote: > >> >> >> On Sun, 28 Oct 2012, Michael Copeland wrote: >> >> >>> >>> On Sun, Oct 28, 2012 at 3:50 PM, Nathan Whitehorn < >>> nwhitehorn@freebsd.org> wrote: >>> >>> >>> On Sun, 28 Oct 2012, Michael Copeland wrote: >>> >>> >>> >>> On Sun, Oct 28, 2012 at 3:42 PM, Nathan Whitehorn < >>> nwhitehorn@freebsd.org> wrote: >>> It should work fine (it does on my desktop, which is a >>> G5 of the same model). >>> Since I wrote that >>> program, fan control has moved to the kernel. The fans >>> should be fairly >>> quickly responsive (the >>> algorithm is quite basic) but should never go to full >>> or cause a panic. Which >>> release are you >>> running? There were some improvements to fan control >>> in 9.1. >>> -Nathan >>> >>> On Sun, 28 Oct 2012, Michael Copeland wrote: >>> >>> Is the fan control disabled by default on a GP dual >>> core? Only reason I ask >>> is that the fans on spool up under full load, and that >>> usually results in a >>> panic. >>> I did make a rather simple program and associated >>> script to control the >>> fans, but this happens to result in the fans >>> constantly going up and down >>> by about 300-400 rpm even while doing something simple >>> like portsnap >>> extract. I checked the list after doing that, and >>> found a thread where >>> someone else already did the same thing(a common >>> problem of mine, I usually >>> try to fix it myself without checking the list). I >>> swapped out the program >>> written by Nathan, but my results are the same. It >>> DOES work, but I was >>> only wondering if it's normal for the fan speed to >>> vary so often. >>> >>> Thanks, >>> >>> Michael >>> ______________________________**_________________ >>> 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 " >>> >>> Hi Nathan, >>> It's 9.1-PRE, from.. 3 days ago. >>> The fans, without my app running either spin at the lowest >>> rpm, or the fastest. Once >>> it's at max rpm, in 5 >>> minutes it will panic. >>> >>> >>> >>> Interesting -- that should not happen, to say the least. Could you >>> report what the panic is and print >>> out the contents of the dev.smu and dev.smusat registries? >>> >>> You can also disable automatic fan control by the sysctl >>> machdep.manage_fans (although I'd like to >>> find and fix the actual problem here) >>> -Nathan >>> >>> Nothing to report for the panic, the screen isn't refreshed, no dumps >>> either, and i do have that enabled >>> >>> frodoG5# sysctl dev.smu >>> dev.smu.0.%desc: Apple System Management Unit >>> dev.smu.0.%driver: smu >>> dev.smu.0.%pnpinfo: name=smu compat=smu >>> dev.smu.0.%parent: nexus0 >>> dev.smu.0.fans.drive_bay_a_**intake.minrpm: 1000 >>> dev.smu.0.fans.drive_bay_a_**intake.maxrpm: 4000 >>> dev.smu.0.fans.drive_bay_a_**intake.rpm: 1060 >>> dev.smu.0.fans.backside.**minrpm: 1100 >>> dev.smu.0.fans.backside.**maxrpm: 3000 >>> dev.smu.0.fans.backside.rpm: 1549 >>> dev.smu.0.fans.cpu_a_intake.**minrpm: 485 >>> dev.smu.0.fans.cpu_a_intake.**maxrpm: 3200 >>> dev.smu.0.fans.cpu_a_intake.**rpm: 624 >>> dev.smu.0.fans.cpu_b_intake.**minrpm: 485 >>> dev.smu.0.fans.cpu_b_intake.**maxrpm: 3200 >>> dev.smu.0.fans.cpu_b_intake.**rpm: 628 >>> dev.smu.0.fans.cpu_a_exhaust.**minrpm: 500 >>> dev.smu.0.fans.cpu_a_exhaust.**maxrpm: 3200 >>> dev.smu.0.fans.cpu_a_exhaust.**rpm: 619 >>> dev.smu.0.fans.cpu_b_exhaust.**minrpm: 500 >>> dev.smu.0.fans.cpu_b_exhaust.**maxrpm: 3200 >>> dev.smu.0.fans.cpu_b_exhaust.**rpm: 605 >>> dev.smu.0.fans.expansion_**slots_intake.minrpm: 1560 >>> dev.smu.0.fans.expansion_**slots_intake.maxrpm: 4500 >>> dev.smu.0.fans.expansion_**slots_intake.rpm: 1618 >>> dev.smu.0.sensors.slots_power: 18818 >>> dev.smu.0.server_mode: 0 >>> frodoG5# sysctl dev.smusat >>> dev.smusat.0.%desc: SMU Satellite Sensors >>> dev.smusat.0.%driver: smusat >>> dev.smusat.0.%location: addr=0xb0 >>> dev.smusat.0.%pnpinfo: name=sat compat=smu-sat >>> dev.smusat.0.%parent: iicbus2 >>> dev.smusat.0.cpu_a0_vcore: 1 >>> dev.smusat.0.cpu_a1_vcore: 1 >>> dev.smusat.0.cpu_a0_diode_**temp: 43.6C >>> dev.smusat.0.cpu_a1_diode_**temp: 43.4C >>> dev.smusat.0.cpu_a0_core_**current: 24 >>> dev.smusat.0.cpu_a1_core_**current: 20 >>> frodoG5# uname -a >>> FreeBSD frodoG5 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #1: Sun Oct 28 >>> 20:21:16 EDT 2012 >>> michael@frodoG5:/usr/obj/usr/**src/sys/FRODOG5 powerpc >>> >>> >>> >> That all looks in order. Any change you could provide the same from when >> the fans are racing? >> -Nathan > > Yeah, I'm getting ready to build something. The output from sysctl was > with my app running. If I disable it, the fans will go full tilt on their > own after a while, no activity. Ok. Without the manual control of the fans, it locks up and you get nothing to report. With it running, it never gets too far above about 70. Not sure what's going on. I'm going to setup debug over firewire and see if I can catch something before it hardlocks. I've no idea why the main console never updates when it locks. I guess I'm not even sure if it's a kernel panic or the hardware itself is actually freezing. It doesn't do it in linux, even under a full load. From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 29 03:02:41 2012 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1033) id 189438C9; Mon, 29 Oct 2012 03:02:41 +0000 (UTC) Date: Mon, 29 Oct 2012 03:02:41 +0000 From: Alexey Dokuchaev To: Michael Copeland Subject: Re: Quick question about dev.smu dev.smusat on powermac11,2 Message-ID: <20121029030241.GA64986@FreeBSD.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 03:02:41 -0000 [ Excessive, broken, useless quoting trimmed ] Guys, please, quote what you reply wisely. This list suffers badly from completely insane quoting practices and becomes real PITA to read, thanks. ./danfe From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 29 04:48:32 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3FCA4C0A; Mon, 29 Oct 2012 04:48:32 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id BFC2F8FC0C; Mon, 29 Oct 2012 04:48:31 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id q9T4mUfw093820; Mon, 29 Oct 2012 04:48:30 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id q9T4mU8r093816; Mon, 29 Oct 2012 04:48:30 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 29 Oct 2012 04:48:30 GMT Message-Id: <201210290448.q9T4mU8r093816@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_8 tinderbox] failure on powerpc/powerpc Precedence: bulk X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 04:48:32 -0000 TB --- 2012-10-29 03:58:58 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-10-29 03:58:58 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-10-29 03:58:58 - starting RELENG_8 tinderbox run for powerpc/powerpc TB --- 2012-10-29 03:58:58 - cleaning the object tree TB --- 2012-10-29 03:58:58 - checking out /src from svn://svn.freebsd.org/base/stable/8 TB --- 2012-10-29 03:58:58 - cd /tinderbox/RELENG_8/powerpc/powerpc TB --- 2012-10-29 03:58:58 - /usr/local/bin/svn cleanup /src TB --- 2012-10-29 03:59:05 - /usr/local/bin/svn update /src TB --- 2012-10-29 03:59:11 - At svn revision 242284 TB --- 2012-10-29 03:59:12 - building world TB --- 2012-10-29 03:59:12 - CROSS_BUILD_TESTING=YES TB --- 2012-10-29 03:59:12 - MAKEOBJDIRPREFIX=/obj TB --- 2012-10-29 03:59:12 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-10-29 03:59:12 - SRCCONF=/dev/null TB --- 2012-10-29 03:59:12 - TARGET=powerpc TB --- 2012-10-29 03:59:12 - TARGET_ARCH=powerpc TB --- 2012-10-29 03:59:12 - TZ=UTC TB --- 2012-10-29 03:59:12 - __MAKE_CONF=/dev/null TB --- 2012-10-29 03:59:12 - cd /src TB --- 2012-10-29 03:59:12 - /usr/bin/make -B buildworld >>> World build started on Mon Oct 29 03:59:13 UTC 2012 >>> 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 Mon Oct 29 04:43:41 UTC 2012 TB --- 2012-10-29 04:43:41 - generating LINT kernel config TB --- 2012-10-29 04:43:41 - cd /src/sys/powerpc/conf TB --- 2012-10-29 04:43:41 - /usr/bin/make -B LINT TB --- 2012-10-29 04:43:41 - cd /src/sys/powerpc/conf TB --- 2012-10-29 04:43:41 - /usr/sbin/config -m LINT TB --- 2012-10-29 04:43:41 - building LINT kernel TB --- 2012-10-29 04:43:41 - CROSS_BUILD_TESTING=YES TB --- 2012-10-29 04:43:41 - MAKEOBJDIRPREFIX=/obj TB --- 2012-10-29 04:43:41 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-10-29 04:43:41 - SRCCONF=/dev/null TB --- 2012-10-29 04:43:41 - TARGET=powerpc TB --- 2012-10-29 04:43:41 - TARGET_ARCH=powerpc TB --- 2012-10-29 04:43:41 - TZ=UTC TB --- 2012-10-29 04:43:41 - __MAKE_CONF=/dev/null TB --- 2012-10-29 04:43:41 - cd /src TB --- 2012-10-29 04:43:41 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Oct 29 04:43:41 UTC 2012 >>> 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 >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/misc/ufm.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/misc/udbp.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/input/uep.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/input/uhid.c /src/sys/dev/usb/input/uhid.c: In function 'uhid_probe': /src/sys/dev/usb/input/uhid.c:697: error: 'UQ_UMS_IGNORE' undeclared (first use in this function) /src/sys/dev/usb/input/uhid.c:697: error: (Each undeclared identifier is reported only once /src/sys/dev/usb/input/uhid.c:697: error: for each function it appears in.) *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-10-29 04:48:30 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-10-29 04:48:30 - ERROR: failed to build LINT kernel TB --- 2012-10-29 04:48:30 - 2466.05 user 428.63 system 2972.78 real http://tinderbox.freebsd.org/tinderbox-releng_8-RELENG_8-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 29 08:14:27 2012 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E35483A4; Mon, 29 Oct 2012 08:14:27 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-legacy2.sentex.ca (freebsd-legacy2.sentex.ca [IPv6:2607:f3e0:0:3::6502:9c]) by mx1.freebsd.org (Postfix) with ESMTP id 9AA2D8FC17; Mon, 29 Oct 2012 08:14:27 +0000 (UTC) Received: from freebsd-legacy2.sentex.ca (localhost [127.0.0.1]) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5) with ESMTP id q9T8ER9V018432; Mon, 29 Oct 2012 08:14:27 GMT (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-legacy2.sentex.ca (8.14.5/8.14.5/Submit) id q9T8ERNM018431; Mon, 29 Oct 2012 08:14:27 GMT (envelope-from tinderbox@freebsd.org) Date: Mon, 29 Oct 2012 08:14:27 GMT Message-Id: <201210290814.q9T8ERNM018431@freebsd-legacy2.sentex.ca> X-Authentication-Warning: freebsd-legacy2.sentex.ca: tinderbox set sender to FreeBSD Tinderbox using -f Sender: FreeBSD Tinderbox From: FreeBSD Tinderbox To: FreeBSD Tinderbox , , Subject: [releng_8 tinderbox] failure on powerpc/powerpc Precedence: bulk X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Oct 2012 08:14:28 -0000 TB --- 2012-10-29 07:29:06 - tinderbox 2.9 running on freebsd-legacy2.sentex.ca TB --- 2012-10-29 07:29:06 - FreeBSD freebsd-legacy2.sentex.ca 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2012-10-29 07:29:06 - starting RELENG_8 tinderbox run for powerpc/powerpc TB --- 2012-10-29 07:29:06 - cleaning the object tree TB --- 2012-10-29 07:29:24 - checking out /src from svn://svn.freebsd.org/base/stable/8 TB --- 2012-10-29 07:29:24 - cd /tinderbox/RELENG_8/powerpc/powerpc TB --- 2012-10-29 07:29:24 - /usr/local/bin/svn cleanup /src TB --- 2012-10-29 07:29:31 - /usr/local/bin/svn update /src TB --- 2012-10-29 07:29:36 - At svn revision 242302 TB --- 2012-10-29 07:29:37 - building world TB --- 2012-10-29 07:29:37 - CROSS_BUILD_TESTING=YES TB --- 2012-10-29 07:29:37 - MAKEOBJDIRPREFIX=/obj TB --- 2012-10-29 07:29:37 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-10-29 07:29:37 - SRCCONF=/dev/null TB --- 2012-10-29 07:29:37 - TARGET=powerpc TB --- 2012-10-29 07:29:37 - TARGET_ARCH=powerpc TB --- 2012-10-29 07:29:37 - TZ=UTC TB --- 2012-10-29 07:29:37 - __MAKE_CONF=/dev/null TB --- 2012-10-29 07:29:37 - cd /src TB --- 2012-10-29 07:29:37 - /usr/bin/make -B buildworld >>> World build started on Mon Oct 29 07:29:38 UTC 2012 >>> 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 Mon Oct 29 08:10:17 UTC 2012 TB --- 2012-10-29 08:10:17 - generating LINT kernel config TB --- 2012-10-29 08:10:17 - cd /src/sys/powerpc/conf TB --- 2012-10-29 08:10:17 - /usr/bin/make -B LINT TB --- 2012-10-29 08:10:17 - cd /src/sys/powerpc/conf TB --- 2012-10-29 08:10:17 - /usr/sbin/config -m LINT TB --- 2012-10-29 08:10:17 - building LINT kernel TB --- 2012-10-29 08:10:17 - CROSS_BUILD_TESTING=YES TB --- 2012-10-29 08:10:17 - MAKEOBJDIRPREFIX=/obj TB --- 2012-10-29 08:10:17 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2012-10-29 08:10:17 - SRCCONF=/dev/null TB --- 2012-10-29 08:10:17 - TARGET=powerpc TB --- 2012-10-29 08:10:17 - TARGET_ARCH=powerpc TB --- 2012-10-29 08:10:17 - TZ=UTC TB --- 2012-10-29 08:10:17 - __MAKE_CONF=/dev/null TB --- 2012-10-29 08:10:17 - cd /src TB --- 2012-10-29 08:10:17 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Mon Oct 29 08:10:17 UTC 2012 >>> 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 >>> stage 3.2: building everything [...] cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/misc/ufm.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/misc/udbp.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/input/uep.c cc -c -O2 -pipe -fno-strict-aliasing -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -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 -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/usb/input/uhid.c /src/sys/dev/usb/input/uhid.c: In function 'uhid_probe': /src/sys/dev/usb/input/uhid.c:697: error: 'UQ_UMS_IGNORE' undeclared (first use in this function) /src/sys/dev/usb/input/uhid.c:697: error: (Each undeclared identifier is reported only once /src/sys/dev/usb/input/uhid.c:697: error: for each function it appears in.) *** Error code 1 Stop in /obj/powerpc/src/sys/LINT. *** Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2012-10-29 08:14:27 - WARNING: /usr/bin/make returned exit code 1 TB --- 2012-10-29 08:14:27 - ERROR: failed to build LINT kernel TB --- 2012-10-29 08:14:27 - 2298.22 user 402.91 system 2720.18 real http://tinderbox.freebsd.org/tinderbox-releng_8-RELENG_8-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Mon Oct 29 11:06:37 2012 Return-Path: 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 54D36B48 for ; Mon, 29 Oct 2012 11:06:37 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 3936B8FC22 for ; Mon, 29 Oct 2012 11:06:37 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q9TB6bVv028585 for ; Mon, 29 Oct 2012 11:06:37 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q9TB6a3H028583 for freebsd-ppc@FreeBSD.org; Mon, 29 Oct 2012 11:06:36 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Oct 2012 11:06:36 GMT Message-Id: <201210291106.q9TB6a3H028583@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 Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 11:06:37 -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 -------------------------------------------------------------------------------- o power/170340 ppc Enabling geom-mirror on 9.1-powerpc64 prevents the sys o power/164225 ppc Boot fails on IBM 7028-6E1 (heap memory claim failed) o power/161947 ppc multimedia/libdvdnav builds broken binaries on big end o power/161045 ppc X doesn't detect ADB mouse up event until another even o power/149009 ppc sysinstall(8) on powerpc fails to install manpages, so o power/140241 ppc [kernel] [patch] Linker set problems on PowerPC EABI o power/135576 ppc gdb cannot debug threaded programs on ppc o power/133503 ppc [sound] Sound stutter after switching ttys o power/133382 ppc [install] Installer gets signal 11 o power/131548 ppc ofw_syscons no longer supports 32-bit framebuffer 10 problems total. From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 30 00:05:58 2012 Return-Path: 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 41E5FF42 for ; Tue, 30 Oct 2012 00:05:58 +0000 (UTC) (envelope-from bounce-ormtkwjwfjjdrtmkzdvfflmrwtngqnkwkwsrmvgwcnggzlrzvp@todayonthirdage.com) Received: from mail2.todayonthirdage.com (mail2.todayonthirdage.com [96.46.136.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0F1B78FC19 for ; Tue, 30 Oct 2012 00:05:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=default; d=todayonthirdage.com; h=From:Reply-To:To:Message-ID:Subject:MIME-Version:Content-Type:Content-Transfer-Encoding:list-unsubscribe:Date; i=newsletters@todayonthirdage.com; bh=agDtJ1BY97OubjIcBr9JqbiHkMU=; b=viOQMDTvhUTBvXVxGsuerK1DJH6WsFkizKE4i+zrQCqNnHFbiu48r4Ldq+v143xV8r3Dg5zTQo8g dhrVX4nDwA== DomainKey-Signature: a=rsa-sha1; c=nofws; q=dns; s=default; d=todayonthirdage.com; b=VwUAzhpNcvEeipCe5vVzge16BWgTC+JNRHo26m2v8qdE9ZbYAuSgQBpbr6LHZKu84D6KFennciL+ hVAS3KH9Zw==; Received: by mail2.todayonthirdage.com id hhscuc0j9jsn for ; Mon, 29 Oct 2012 18:57:05 -0500 (envelope-from ) From: ThirdAge To: "friend" Message-ID: <1950605329.4932063.1351555024654.JavaMail.root@todayonthirdage.com> Subject: Is Your Computer Safe? Get StrongHold Computer Backup Today! X-THAG: hnfvnsffmhnshzvqvzqmfcqcsmh gnnwmhcvprfpscscjhmgrclprrqwhqgdzvscbcnbbzhvmsq vbbfcvqcbs X-PVIQ: 000317-000671- Date: Mon, 29 Oct 2012 18:57:05 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: ThirdAge List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Oct 2012 00:05:58 -0000 [bGl2ZWNvbmNsaWVudElEPTQ2Mjk5NzU5MDcxNzImQ3JlYXRpdmVJRD1GMDA2ODc1MS1DR DlDLTQ1NDUtQjc4Ri1ENUFDREQyNjcyRkUtNzE4NDImUGxhY2VtZW50SUQ9MiZFdmVudFR5 cGU9SW1wcmVzc2lvbiZyYW5kPWdhOWc.jpeg] [1][img_top.png] [NFB-AwardColor.jpg] [info.jpg] Get Stronghold today and let our comprehensive, easy-to-use system do the work of managing and protecting your digital assets. You can even try Stronghold FREE* for 30-days. We're confident that once you've used our product, you'll feel more secure than ever about your online activity. Plus, you'll enjoy easy access to your data and total control over how you want to share any file, big or small. [about.png] Stronghold is a pioneer and technology leader in online backup - dedicated to service consumers, small and medium businesses and IT/managed service providers. Stronghold Online Backup delivers a simple yet powerful online backup service that has become the industry's top award winner, including Laptop Magazine's Editor's Choice and PC Magazine's Editor's Choice Award since 2006. At Stronghold, we believe your backup should be set up once, and then work automatically. Our product works seamlessly so you never have to remember to back up. You can recover your files from our servers with just a few clicks. [about_checks.png] [couple.jpg] [2][start_now.png] [i.ashx?a=1&c=1&s1=SUB_ID] References 1. http://click1.todayonthirdage.com/rckqjjvwtgcpbflbpkgkgpytwqpfghbffrvtrqskwtgvcn_yvlsfkqkmqq.html 2. http://click1.todayonthirdage.com/wdvyffszngdbmqjmbwgwgbknzybqgtmqqlsnlyhwzngsdw_yvlsfkqkmqq.html From owner-freebsd-ppc@FreeBSD.ORG Tue Oct 30 05:00:29 2012 Return-Path: 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 78239C3F for ; Tue, 30 Oct 2012 05:00:29 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 29F908FC12 for ; Tue, 30 Oct 2012 05:00:28 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so2648938vba.13 for ; Mon, 29 Oct 2012 22:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PEfjaqrS4Iw/MWBMw7qh1MZ+45D73hynZUMR1uoQLIY=; b=dX1d0LmTqaqIT3j3T7kp9FZCvyd/Ir7Q0Q1udN37YtEKj0aFu4s9MvWB3UNEIc7tMP uyAuAstlNnsZ9R3oLEhZcqusdX9TU2+L882Y3ifkk3YHYqUxvozdYzbb4BzTY42rK4Lt h2wHZjj+uophB6H0RWVEgn5NtPeDZ3DCKEgKguZPwWiLxB8TGyCQfv/xa8tJcDTgI9+E 1yRk0aVleImK6sMLdezL0cQosXdgl9rYvspTB0ModYV1dXCjRgXPGP+NRgpY6TJDoPnU ZQ/AItT1yzhcfjeMEMeElEY51jJTQxv5Q+rYgsKZhqgVntCzwmHB4YLDH5aNN4bUsIQW nZlw== MIME-Version: 1.0 Received: by 10.59.13.135 with SMTP id ey7mr38159613ved.37.1351573227808; Mon, 29 Oct 2012 22:00:27 -0700 (PDT) Received: by 10.58.239.66 with HTTP; Mon, 29 Oct 2012 22:00:27 -0700 (PDT) In-Reply-To: <20121028214917.3500f21e@narn.knownspace> References: <20121028214917.3500f21e@narn.knownspace> Date: Tue, 30 Oct 2012 00:00:27 -0500 Message-ID: Subject: Re: Help on PMU work From: Super Bisquit To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-ppc@freebsd.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 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 Oct 2012 05:00:29 -0000 Right now, I'm stuck at "Need to replace the video cable on my G4 titanium." On 10/28/12, Justin Hibbits wrote: > I'm working on getting PMU sleep and speed control working for at least > the MPC7455-based PowerBooks and running into a snag. I've got it > changing speed, but it immediately panics. > > The method for PMU speed change is as follows: > * Tell the PMU to change PLL inputs > * Save all the needed registers (methinks I missed one or two critical > ones, but can't figure out which) > * Flush and disable the caches > * Disable NAP and enable SLEEP in HID0 > * Sleep via MSR > * PMU asserts #HRESET, and jumps to where you want (write address at > 0x80). > * Recover and restore all the necessary registers > * Go on your merry way. > > I'm getting stuck on the "Go on your merry way" part. When it > recovers, I get a 'panic: null_fetch_syscall_args'. curthread is the > same going into and coming out of reset/restore, verified with a printf. > > Any help tracking this down is greatly appreciated. I'll be at MeetBSD > with my PowerBook, and hope to get it finished either before then, or > by the time I leave. > > - Justin From owner-freebsd-ppc@FreeBSD.ORG Wed Oct 31 08:57:56 2012 Return-Path: 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 68A7A682 for ; Wed, 31 Oct 2012 08:57:56 +0000 (UTC) (envelope-from B22300@freescale.com) Received: from tx2outboundpool.messaging.microsoft.com (tx2ehsobe004.messaging.microsoft.com [65.55.88.14]) by mx1.freebsd.org (Postfix) with ESMTP id 163128FC12 for ; Wed, 31 Oct 2012 08:57:55 +0000 (UTC) Received: from mail276-tx2-R.bigfish.com (10.9.14.236) by TX2EHSOBE005.bigfish.com (10.9.40.25) with Microsoft SMTP Server id 14.1.225.23; Wed, 31 Oct 2012 08:57:47 +0000 Received: from mail276-tx2 (localhost [127.0.0.1]) by mail276-tx2-R.bigfish.com (Postfix) with ESMTP id A9829DE00BB for ; Wed, 31 Oct 2012 08:57:47 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: -2 X-BigFish: VS-2(zzc85fh168aJ14ffIzz1202h1d1ah1d2ahzz177df4h17326ah8275bh8275dhz2dh2a8h668h839h8e2h8e3hd25hf0ah1288h12a5h12bdh137ah1441h1504h1537h153bhbe9i1155h) Received: from mail276-tx2 (localhost.localdomain [127.0.0.1]) by mail276-tx2 (MessageSwitch) id 1351673865821073_18172; Wed, 31 Oct 2012 08:57:45 +0000 (UTC) Received: from TX2EHSMHS031.bigfish.com (unknown [10.9.14.248]) by mail276-tx2.bigfish.com (Postfix) with ESMTP id BBAA0AC0044 for ; Wed, 31 Oct 2012 08:57:45 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by TX2EHSMHS031.bigfish.com (10.9.99.131) with Microsoft SMTP Server (TLS) id 14.1.225.23; Wed, 31 Oct 2012 08:57:41 +0000 Received: from 039-SN2MPN1-022.039d.mgd.msft.net ([169.254.2.221]) by 039-SN1MMR1-005.039d.mgd.msft.net ([::1]) with mapi id 14.02.0318.003; Wed, 31 Oct 2012 08:57:41 +0000 From: U Bhaskar-B22300 To: "freebsd-ppc@freebsd.org" Subject: Powerpc based FreeBSD Compilation Thread-Topic: Powerpc based FreeBSD Compilation Thread-Index: Ac23Rcbvi4ZOJ1rsTOyOLNLxJLS/uA== Date: Wed, 31 Oct 2012 08:57:41 +0000 Message-ID: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.232.132.127] MIME-Version: 1.0 X-OriginatorOrg: freescale.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Oct 2012 08:57:56 -0000 Hi All, I want to compile FREEBSD Kernel on powerpc I am using Ubuntu as my development system and I am having = the powerc tool chain, While compiling, I am getting the below error. root@test-VirtualBox:/usr/src# bmake bmake: no system rules (sys.mk). bmake: stopped in /usr/src What is this error ? 1. Can I compile FreeBSD on Ubuntu system. 2. Do I need the iso or src.tgz for FreeBSD compilation Regards --Bhaskar From owner-freebsd-ppc@FreeBSD.ORG Thu Nov 1 22:19:12 2012 Return-Path: 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 84BD84BE for ; Thu, 1 Nov 2012 22:19:12 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-vc0-f182.google.com (mail-vc0-f182.google.com [209.85.220.182]) by mx1.freebsd.org (Postfix) with ESMTP id 33FB18FC0A for ; Thu, 1 Nov 2012 22:19:12 +0000 (UTC) Received: by mail-vc0-f182.google.com with SMTP id fw7so4215463vcb.13 for ; Thu, 01 Nov 2012 15:19:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=GDxK7YmzviWwl0m+lKJotrhfXfQSaQy0xm3OTGmybg0=; b=lFJItSF+bNutFzU030RRxU/lPe3FNLZkUmM9jDas+hdg2ZypUZJZEolpOq4h+AQqvS QqwfISFGk41NUGFfcJgX23oTn1HbcT9ZDlqFb5hyBfqZsreduaaLjg521a0WMJMrO+Fr 0bt4KZhsAlGST1e+pFI2meNQMch2JkRcrQ7IYemMX/rCYscyG7pwIlLJotzdTZtomAoP J1Q8wi1WSd3T2oKZKLbNSTiH2MEZwh/hmMHgSivCZBd31mT0IK4+/opNAJa79pVGQNuZ L90qDe1fP85q68m3J8vki4MxzJPKE177M1jLDWMRO6DNq8geDjIAl2xl/ESKVnnMUs/N R8Pg== MIME-Version: 1.0 Received: by 10.220.115.19 with SMTP id g19mr22313010vcq.69.1351808351221; Thu, 01 Nov 2012 15:19:11 -0700 (PDT) Received: by 10.58.239.66 with HTTP; Thu, 1 Nov 2012 15:19:11 -0700 (PDT) In-Reply-To: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> References: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> Date: Thu, 1 Nov 2012 17:19:11 -0500 Message-ID: Subject: Re: Powerpc based FreeBSD Compilation From: Super Bisquit To: U Bhaskar-B22300 , FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Nov 2012 22:19:12 -0000 You are better off just installing FreeBSD to a PowerPC/POWER machine and recompiling the kernel. II do not think that Aurelian Jarno nor the others involved have ported a C implementation to POWER as they did for i386 and AMD64 with debianKFreeBSD.l On 10/31/12, U Bhaskar-B22300 wrote: > Hi All, > I want to compile FREEBSD Kernel on powerpc > I am using Ubuntu as my development system and I am having > the powerc tool chain, While compiling, I am getting the below error. > > root@test-VirtualBox:/usr/src# bmake > bmake: no system rules (sys.mk). > > bmake: stopped in /usr/src > > What is this error ? > > 1. Can I compile FreeBSD on Ubuntu system. > 2. Do I need the iso or src.tgz for FreeBSD compilation > > Regards > --Bhaskar > _______________________________________________ > 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 Fri Nov 2 04:51:11 2012 Return-Path: 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 7226CE99 for ; Fri, 2 Nov 2012 04:51:11 +0000 (UTC) (envelope-from white.heron@yahoo.com) Received: from nm2-vm0.bullet.mail.sp2.yahoo.com (nm2-vm0.bullet.mail.sp2.yahoo.com [98.139.91.248]) by mx1.freebsd.org (Postfix) with ESMTP id 2BF338FC17 for ; Fri, 2 Nov 2012 04:51:11 +0000 (UTC) Received: from [98.139.91.66] by nm2.bullet.mail.sp2.yahoo.com with NNFMP; 02 Nov 2012 04:51:10 -0000 Received: from [98.139.91.19] by tm6.bullet.mail.sp2.yahoo.com with NNFMP; 02 Nov 2012 04:51:10 -0000 Received: from [127.0.0.1] by omp1019.mail.sp2.yahoo.com with NNFMP; 02 Nov 2012 04:51:10 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 511141.61221.bm@omp1019.mail.sp2.yahoo.com Received: (qmail 98479 invoked by uid 60001); 2 Nov 2012 04:51:10 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1351831869; bh=LvWgpJOGa/bkD9J96EMhTQgcFgfWuJlpCslOznbtSfg=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=5VntdePSeyKKM3mIMM1SClrhNTyssA5dPxs+tcHMmiIvB6Kw9BmmJvC5fPVqbBaWPwaDTqa5EUTzVAIiTkw69D+IfTUk7ClRs++Qp3amxNa9i/Wd0hFsuKVUIPumnUeoWwmTZf6As8lzIz/RMumv3+lWOr5E6DBdMOr84JlWHbY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=nmPZwYoLNSeOAV7JYKbgC/TDIFOanBKq0pEZP48BiUjSjN7ezvljy0UR9/SUjOtuBNBhh+tZmldpWE50oQl8+sZ+AduNqnJBrIw66lVH+o/MvwCsjj4r8ISHy4YBDo3wCd2Ougk96bvG6gCnsvct3ECBIVjVHffujee3xSFM0y8=; X-YMail-OSG: WHib.1cVM1n48yd0LJmrN9TubxQijWJ7dnJBwQ8Tu8l199u b6dIOd_JH7aJYA82FTBUEaKp..tjS_aQYvNlbfsfpOyyjxxPzSMX3vhKm.ph sSaPyOs_BKnNvqLbAkfR4eE4QGZYKH7qGfLQBMc_wuDXDu1LMT2hGrMnB.ao LutEbH.MkpP2rlM31sYJuYPzsh_4AC.dN4R.kOod.z6thWQN9Mc8FRmcRS0S AhqaVENhilbTN0Sl67YRSHZ2Vk5TK2CGwrIkdh0EeVcgo.FigP.GmDVxbaxV cQMA0fEVEhXFYI76h.gT9pIk7zi96t1cKXUpA4IXPJSeG3hlbNOpWtH0cE6y SIFpPR0ANppHwQ2xAavgefzEroGnrt8FT_v2d99pHAeuqXygeWD9aYDl6LxJ dSr_g7w5ABJddKH7FuyySLbsx9L0w2FsKgsmrFcQDhaJWUg8feDIdCpIksI1 DcGo.tLQJhYI82YVp2yK8WmVCvj6JVwaqOlVaz5smFCmPDj9CB0qvGn_QNUC xdpG52FQV4Ub4pcs_YDtP26IRmnRXtQQ7 Received: from [211.25.197.34] by web110713.mail.gq1.yahoo.com via HTTP; Thu, 01 Nov 2012 21:51:09 PDT X-Rocket-MIMEInfo: 001.001, RGVhciBBbGwsCgpJIGFtIFBvd2VyUEMgRzQgdXNlci4gSSBhbSBrZWVuIHRvIGluc3RhbGwgRnJlZUJTRCBQUEMgaW50byB0aGlzIG1hY2hpbmUuCkkgYW0gZmFtaWxpYXIgd2l0aCBrZXJuZWwgY29tcGlsYXRpb24gcHJvY2VzcyBpbiBvcmRlciB0byBmdWxseSB1dGlsaXplIHRoZSBQUEMgaGFyZHdhcmUuCkhvd2V2ZXIsIEkgbmVlZCBzb21lIG1hbnVhbCB0byBjb21wbGV0ZSB0aGlzIHRhc2suIEtpbmRseSBhZHZpc2VkLiBUaGFua3MuCgrCoApSZWdhcmRzLAoKCk1PSEFNTUFEIEFETEkgQklOIE1UIFRBSlUBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.460 References: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> Message-ID: <1351831869.45744.YahooMailNeo@web110713.mail.gq1.yahoo.com> Date: Thu, 1 Nov 2012 21:51:09 -0700 (PDT) From: "white.heron white" Subject: Re: Powerpc based FreeBSD Compilation To: Super Bisquit , U Bhaskar-B22300 , FreeBSD PowerPC ML In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "white.heron white" List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 04:51:11 -0000 Dear All,=0A=0AI am PowerPC G4 user. I am keen to install FreeBSD PPC into = this machine.=0AI am familiar with kernel compilation process in order to f= ully utilize the PPC hardware.=0AHowever, I need some manual to complete th= is task. Kindly advised. Thanks.=0A=0A=A0=0ARegards,=0A=0A=0AMOHAMMAD ADLI = BIN MT TAJUDINSystem Engineer=0ACentium Software Sdn Bhd,=0AKuala Lumpur, M= Y.=0A=0A=0A=0AEmail: white.heron@yahoo.com=0A=0A=0A----- Original Message -= ----=0AFrom: Super Bisquit =0ATo: U Bhaskar-B22300 = ; FreeBSD PowerPC ML =0ACc: = =0ASent: Friday, November 2, 2012 6:19 AM=0ASubject: Re: Powerpc based Free= BSD Compilation=0A=0AYou are better off just installing FreeBSD to a PowerP= C/POWER machine=0Aand recompiling the kernel. II do not think that Aurelian= Jarno nor=0Athe others involved have ported a C implementation to POWER as= they=0Adid for i386 and=0AAMD64 with debianKFreeBSD.l=0A=0A=0AOn 10/31/12,= U Bhaskar-B22300 wrote:=0A> Hi All,=0A>=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 I want to compile FREEBSD Kernel on powerpc=0A>=A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 I am using Ubuntu as my development system and I = am having=0A> the powerc tool chain, While compiling, I am getting the belo= w error.=0A>=0A> root@test-VirtualBox:/usr/src# bmake=0A> bmake: no system = rules (sys.mk).=0A>=0A> bmake: stopped in /usr/src=0A>=0A> What is this err= or ?=0A>=0A> 1. Can I compile FreeBSD on Ubuntu system.=0A> 2. Do I need th= e iso or src.tgz for FreeBSD compilation=0A>=0A> Regards=0A> --Bhaskar=0A> = _______________________________________________=0A> freebsd-ppc@freebsd.org= mailing list=0A> http://lists.freebsd.org/mailman/listinfo/freebsd-ppc=0A>= To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"=0A>= =0A_______________________________________________=0Afreebsd-ppc@freebsd.or= g mailing list=0Ahttp://lists.freebsd.org/mailman/listinfo/freebsd-ppc=0ATo= unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org"=0A From owner-freebsd-ppc@FreeBSD.ORG Fri Nov 2 18:19:44 2012 Return-Path: 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 43A19931 for ; Fri, 2 Nov 2012 18:19:44 +0000 (UTC) (envelope-from 3vw6UUAwHC7YYdaiqbWYpqnax2z.YkibnaaXoZ-llYbnaaXoZ.knc@photos-server.bounces.google.com) Received: from mail-pa0-f74.google.com (mail-pa0-f74.google.com [209.85.220.74]) by mx1.freebsd.org (Postfix) with ESMTP id 0FF508FC1C for ; Fri, 2 Nov 2012 18:19:44 +0000 (UTC) Received: by mail-pa0-f74.google.com with SMTP id fb10so265155pad.1 for ; Fri, 02 Nov 2012 11:19:43 -0700 (PDT) MIME-Version: 1.0 Received: by 10.66.78.40 with SMTP id y8mt2031757paw.9.1351880383841; Fri, 02 Nov 2012 11:19:43 -0700 (PDT) Message-ID: Date: Fri, 02 Nov 2012 18:19:43 +0000 Subject: SalesSBR chinachem shared photos with you From: SalesSBR chinachem To: freebsd-ppc@freebsd.org Content-Type: multipart/mixed; boundary=f46d042e008b0f032a04cd872e78 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: SalesSBR chinachem List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Nov 2012 18:19:44 -0000 --f46d042e008b0f032a04cd872e78 Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Hello Sir/Mam: Happy to contact you ! We would like to introudce our company.Our company is a large scale pertrochemical enterprise with synthetic rubber as the main product. We could supply SBR 1502 and 1712. It is manufactured by SINOPEC YANGZI. The following is the SBR quotation : * SBR 1502: USD 2500.00/TON FOB China port SBR 1712: USD 2350.00/TON FOB China port * packing : 35kg ppbag * quantity: 21ton/20'container * price validity: within 3 days . * payment terms : TT in advance or LC at sight . * delivery time: within 20 days . Any other question, contact me freely ! best wishes Adelle Liang sales manage rXuzhou Yizhengyuan Chemical Technology Co., Ltd email:chemade@163.com --f46d042e008b0f032a04cd872e78-- From owner-freebsd-ppc@FreeBSD.ORG Sat Nov 3 03:49:59 2012 Return-Path: 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 7CE1D1A2 for ; Sat, 3 Nov 2012 03:49:59 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2761C8FC0A for ; Sat, 3 Nov 2012 03:49:59 +0000 (UTC) Received: by mail-vb0-f54.google.com with SMTP id l1so5708641vba.13 for ; Fri, 02 Nov 2012 20:49:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Ryh9Y2NinmWUiZoM6DV3ZTOTSKCvHreAlplgdTB2IpQ=; b=hFoxxfDe/MV1Ba3BIE1h3+y+ebhF4zP5ZZ7+WnB+6Sb77HYNMJRQ9CvtOg7Mo4dPmy ZBaaGjn3NTLPc8Aa68yNGTydsPxYpg5cdzgO6XWzsUe/no9kD+c4ZOsEGGzEInXRLNYY Dn/4zSc8hi3ybQgCH6PWD49lqR2TBQMSTwL87ZaFY/wsAz1ONdq5SVlKCM7ilhTWQ6lQ rK5avjHQ2Nvay9AmUJszU3LWbr7vjUxtYLHcsY4bqCP+fUzgxsXdZ4kZOrUAieFXeHC/ G2QszRNLhN1T72Zzi/ivvU5LAFGElOa2pXDhsOvFoneoRpuAcpX5iwnDnk3Kibrg4m5S IJnQ== MIME-Version: 1.0 Received: by 10.52.90.37 with SMTP id bt5mr3260949vdb.67.1351914598185; Fri, 02 Nov 2012 20:49:58 -0700 (PDT) Received: by 10.58.239.66 with HTTP; Fri, 2 Nov 2012 20:49:58 -0700 (PDT) In-Reply-To: <1351831869.45744.YahooMailNeo@web110713.mail.gq1.yahoo.com> References: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> <1351831869.45744.YahooMailNeo@web110713.mail.gq1.yahoo.com> Date: Fri, 2 Nov 2012 22:49:58 -0500 Message-ID: Subject: Re: Powerpc based FreeBSD Compilation From: Super Bisquit To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 03:49:59 -0000 The handbook shows you how to compile: http://www.freebsd.org/doc You may also want to look at the forums and mailing lists. What I do is let the default kernel compile, disable witness checking, and keep it there. Where exactly are you having the problem? On 11/1/12, white.heron white wrote: > Dear All, > > I am PowerPC G4 user. I am keen to install FreeBSD PPC into this machine. > I am familiar with kernel compilation process in order to fully utilize the > PPC hardware. > However, I need some manual to complete this task. Kindly advised. Thanks. > > > Regards, > > > MOHAMMAD ADLI BIN MT TAJUDINSystem Engineer > Centium Software Sdn Bhd, > Kuala Lumpur, MY. > > > > Email: white.heron@yahoo.com > > > ----- Original Message ----- > From: Super Bisquit > To: U Bhaskar-B22300 ; FreeBSD PowerPC ML > > Cc: > Sent: Friday, November 2, 2012 6:19 AM > Subject: Re: Powerpc based FreeBSD Compilation > > You are better off just installing FreeBSD to a PowerPC/POWER machine > and recompiling the kernel. II do not think that Aurelian Jarno nor > the others involved have ported a C implementation to POWER as they > did for i386 and > AMD64 with debianKFreeBSD.l > > > On 10/31/12, U Bhaskar-B22300 wrote: >> Hi All, >> I want to compile FREEBSD Kernel on powerpc >> I am using Ubuntu as my development system and I am having >> the powerc tool chain, While compiling, I am getting the below error. >> >> root@test-VirtualBox:/usr/src# bmake >> bmake: no system rules (sys.mk). >> >> bmake: stopped in /usr/src >> >> What is this error ? >> >> 1. Can I compile FreeBSD on Ubuntu system. >> 2. Do I need the iso or src.tgz for FreeBSD compilation >> >> Regards >> --Bhaskar >> _______________________________________________ >> 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" >> > _______________________________________________ > 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 Sat Nov 3 04:23:45 2012 Return-Path: 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 C77B97FB for ; Sat, 3 Nov 2012 04:23:45 +0000 (UTC) (envelope-from white.heron@yahoo.com) Received: from nm16-vm0.bullet.mail.sp2.yahoo.com (nm16-vm0.bullet.mail.sp2.yahoo.com [98.139.91.210]) by mx1.freebsd.org (Postfix) with ESMTP id 82FC98FC08 for ; Sat, 3 Nov 2012 04:23:45 +0000 (UTC) Received: from [98.139.91.64] by nm16.bullet.mail.sp2.yahoo.com with NNFMP; 03 Nov 2012 04:23:45 -0000 Received: from [98.139.91.4] by tm4.bullet.mail.sp2.yahoo.com with NNFMP; 03 Nov 2012 04:23:45 -0000 Received: from [127.0.0.1] by omp1004.mail.sp2.yahoo.com with NNFMP; 03 Nov 2012 04:23:45 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 279706.44183.bm@omp1004.mail.sp2.yahoo.com Received: (qmail 13149 invoked by uid 60001); 3 Nov 2012 04:23:44 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1351916624; bh=uirkX2RO527fzyn4cv5qqsx9Vju9JGc6gdsQ6vWEPK0=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=jhqIh/LAM0xP3Dlp/AECfPjnIsqrLXYOM9HvNPBwgm2pO5dB/rNCNTxQ1m9u3GebfFJXJhxH7dsqHiF/FTJZ6Oki1OHqV4Uls//sEAvGALTuwlqlvTKfma341IcqeFeMn9ktPJjl2eoJEHy4JBeXnryth1SI1EzytGXhN0/D6HQ= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=157DqwLgOCBx6MOdh+vseoFonSqsjzIyDNgoubzNzmJJt6EzJFjnuLAQ8b+/7J+hflaWGPsoD1np91f5//+sTW2AI2pvf5Fk2QXsCLpxhzxnQgS7JdbKzirdAEM+6tjINNUB1ctUP8qMrQ3l64yZvWMoxM/96Sl61HcmGAGSsR4=; X-YMail-OSG: 2P64GxgVM1k2dgfbBDj2hBuvzzYi9tr4duhIt5e87ehnAt1 Bwen5QyYNT9oQLFSYuQ.Nu2Kd3HPCpz44f87VLDFFVzZmRDVMt.BT9zbBK_X _MgTANXWCtQ.1HaVGyjy7MUcN2wBOg4jcnqXZwqXJcEF1rw74.rnESzdTO2d lOGBoi742YzcrfxsPvdwEXg1xgf5CfghJ.FMNqay5EwVxtjiIdhWOcQxgrre iDZqwKTm7vN.MIVgpTV9BLp7FlqQ31i7CDFg8FNCztpnQcQGRrTZqP_gtdYD VjcpA8vqMnY5V5Dw.nRe.jWYhQJafmflM8UH9DXQ3WtCRI02DWSuSaz7_OLa 304lNXdcP84ZdSBzNOXYYnktFAkoYhwaWMGLWv88SLXxRatnsU6zx8sQusDh VN4RLDpXLbwY8LeUYF1YcB35Cq6H.F7JbMdVYWAoh.G2Tne1dGN5eaISfHkK ViWFNNe.d6XAIk8umGyLpC8FlKA.DwbfBy38BO5F7ZrJUJSom8IokQFMRhr3 9RHY14v3RepNpnkrusT2RZH9cWbTaG8D.gxBpZ9zN9TxjrD_XfC5qKKE7sgv VdYOXxQdXl3K29shLWinnr9dH Received: from [42.152.12.185] by web110710.mail.gq1.yahoo.com via HTTP; Fri, 02 Nov 2012 21:23:44 PDT X-Rocket-MIMEInfo: 001.001, RGVhciBTdXBlciBCaXNxdWl0LAoKSSBhbSBoYXZpbmcgcHJvYmxlbSB0byBib290IEZyZWVCU0QgY2Ryb20gaW4gUG93ZXJib29rIEc0LiBLaW5kbHkgYWR2aXNlZCBzb21lIGd1aWRlbGluZS4gVGhhbmtzLgoKwqAKUmVnYXJkcywKCgpNT0hBTU1BRCBBRExJIEJJTiBNVCBUQUpVRElOCgoKLS0tLS0gT3JpZ2luYWwgTWVzc2FnZSAtLS0tLQpGcm9tOiBTdXBlciBCaXNxdWl0IDxzdXBlcmJpc3F1aXRAZ21haWwuY29tPgpUbzogRnJlZUJTRCBQb3dlclBDIE1MIDxmcmVlYnNkLXBwY0BmcmVlYnNkLm9yZz4KQ2MBMAEBAQE- X-Mailer: YahooMailWebService/0.8.123.460 References: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> <1351831869.45744.YahooMailNeo@web110713.mail.gq1.yahoo.com> Message-ID: <1351916624.13123.YahooMailNeo@web110710.mail.gq1.yahoo.com> Date: Fri, 2 Nov 2012 21:23:44 -0700 (PDT) From: "white.heron white" Subject: Re: Powerpc based FreeBSD Compilation To: Super Bisquit , FreeBSD PowerPC ML In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: "white.heron white" List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 04:23:46 -0000 Dear Super Bisquit,=0A=0AI am having problem to boot FreeBSD cdrom in Power= book G4. Kindly advised some guideline. Thanks.=0A=0A=A0=0ARegards,=0A=0A= =0AMOHAMMAD ADLI BIN MT TAJUDIN=0A=0A=0A----- Original Message -----=0AFrom= : Super Bisquit =0ATo: FreeBSD PowerPC ML =0ACc: =0ASent: Saturday, November 3, 2012 11:49 AM=0ASubje= ct: Re: Powerpc based FreeBSD Compilation=0A=0AThe handbook shows you how t= o compile: http://www.freebsd.org/doc=0AYou may also want to look at the fo= rums and mailing lists.=0A=0AWhat I do is let the default kernel compile, d= isable witness checking,=0Aand keep it there.=0AWhere exactly are you havin= g the problem?=0A=0AOn 11/1/12, white.heron white w= rote:=0A> Dear All,=0A>=0A> I am PowerPC G4 user. I am keen to install Free= BSD PPC into this machine.=0A> I am familiar with kernel compilation proces= s in order to fully utilize the=0A> PPC hardware.=0A> However, I need some = manual to complete this task. Kindly advised. Thanks.=0A>=0A>=0A> Regards,= =0A>=0A>=0A> MOHAMMAD ADLI BIN MT TAJUDINSystem Engineer=0A> Centium Softwa= re Sdn Bhd,=0A> Kuala Lumpur, MY.=0A>=0A>=0A>=0A> Email: white.heron@yahoo.= com=0A>=0A>=0A> ----- Original Message -----=0A> From: Super Bisquit =0A> To: U Bhaskar-B22300 ; FreeBSD= PowerPC ML=0A> =0A> Cc:=0A> Sent: Friday, Novembe= r 2, 2012 6:19 AM=0A> Subject: Re: Powerpc based FreeBSD Compilation=0A>=0A= > You are better off just installing FreeBSD to a PowerPC/POWER machine=0A>= and recompiling the kernel. II do not think that Aurelian Jarno nor=0A> th= e others involved have ported a C implementation to POWER as they=0A> did f= or i386 and=0A> AMD64 with debianKFreeBSD.l=0A>=0A>=0A> On 10/31/12, U Bhas= kar-B22300 wrote:=0A>> Hi All,=0A>>=A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 I want to compile FREEBSD Kernel on powerpc=0A>>=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 I am using Ubuntu as my development system and I a= m having=0A>> the powerc tool chain, While compiling, I am getting the belo= w error.=0A>>=0A>> root@test-VirtualBox:/usr/src# bmake=0A>> bmake: no syst= em rules (sys.mk).=0A>>=0A>> bmake: stopped in /usr/src=0A>>=0A>> What is t= his error ?=0A>>=0A>> 1. Can I compile FreeBSD on Ubuntu system.=0A>> 2. Do= I need the iso or src.tgz for FreeBSD compilation=0A>>=0A>> Regards=0A>> -= -Bhaskar=0A>> _______________________________________________=0A>> freebsd-= ppc@freebsd.org mailing list=0A>> http://lists.freebsd.org/mailman/listinfo= /freebsd-ppc=0A>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe= @freebsd.org"=0A>>=0A> _______________________________________________=0A> = freebsd-ppc@freebsd.org mailing list=0A> http://lists.freebsd.org/mailman/l= istinfo/freebsd-ppc=0A> To unsubscribe, send any mail to "freebsd-ppc-unsub= scribe@freebsd.org"=0A>=0A_______________________________________________= =0Afreebsd-ppc@freebsd.org mailing list=0Ahttp://lists.freebsd.org/mailman/= listinfo/freebsd-ppc=0ATo unsubscribe, send any mail to "freebsd-ppc-unsubs= cribe@freebsd.org"=0A From owner-freebsd-ppc@FreeBSD.ORG Sat Nov 3 12:49:25 2012 Return-Path: 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 718DA9EC for ; Sat, 3 Nov 2012 12:49:25 +0000 (UTC) (envelope-from bdysonsmith@gmail.com) Received: from mail-wi0-f178.google.com (mail-wi0-f178.google.com [209.85.212.178]) by mx1.freebsd.org (Postfix) with ESMTP id E818C8FC14 for ; Sat, 3 Nov 2012 12:49:24 +0000 (UTC) Received: by mail-wi0-f178.google.com with SMTP id hr7so1619413wib.13 for ; Sat, 03 Nov 2012 05:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=+yIOjLYu5ci8d2Rb/aV1BKVBk0RZbwwmW0VZT6ROv+4=; b=QO+3ySBT0FU5n71ERmOdFp3mVXqXUE7/rPqC+2uBzp10tPb6SjnGpp78Q03vMQmY0k u+w75OnnA0fvG7dTAqCyegdlUZnPQprTMPgU6BFaRePVEN8IJ4q8fIsLItzShl6/TfJ4 8jRV/+G0k/0C7SZ2inyPR2CQi69L9fJ1gaWfyRUc8eMnz9i44PXnwxVRq3gMyEIrUPx7 g8tHMWXnhEI2jIjL2HQPx8D3oczc54sOqG1LwfFMQXan9lSNO+aP3bxphHa48cQzeRz/ jTm5KjUigvwdY/grbzw5jX46iu3W258P6DRjq8ortYU8AtCsIVOOv4IdBwfDXnSvP0zE TfHw== MIME-Version: 1.0 Received: by 10.216.201.24 with SMTP id a24mr1608359weo.102.1351946957700; Sat, 03 Nov 2012 05:49:17 -0700 (PDT) Received: by 10.227.205.142 with HTTP; Sat, 3 Nov 2012 05:49:17 -0700 (PDT) Received: by 10.227.205.142 with HTTP; Sat, 3 Nov 2012 05:49:17 -0700 (PDT) In-Reply-To: <1351916624.13123.YahooMailNeo@web110710.mail.gq1.yahoo.com> References: <52332D70CF559243A1B371F7061C2F7F0957C45A@039-SN2MPN1-022.039d.mgd.msft.net> <1351831869.45744.YahooMailNeo@web110713.mail.gq1.yahoo.com> <1351916624.13123.YahooMailNeo@web110710.mail.gq1.yahoo.com> Date: Sat, 3 Nov 2012 08:49:17 -0400 Message-ID: Subject: Re: Powerpc based FreeBSD Compilation From: Bridger Dyson-Smith To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Nov 2012 12:49:25 -0000 I'm not an expert by any stretch, but you should tell the list the following: a) which IMG are you working with; e.g. one of the 9.1 candidates, or something earlier? b) tell us more about your hardware; i.e. which G4 laptop? c) at what point does the boot process fail? What error messages do you see? HTH On Nov 2, 2012 10:23 PM, "white.heron white" wrote: > Dear Super Bisquit, > > I am having problem to boot FreeBSD cdrom in Powerbook G4. Kindly advised > some guideline. Thanks. > > > Regards, > > > MOHAMMAD ADLI BIN MT TAJUDIN > > > ----- Original Message ----- > From: Super Bisquit > To: FreeBSD PowerPC ML > Cc: > Sent: Saturday, November 3, 2012 11:49 AM > Subject: Re: Powerpc based FreeBSD Compilation > > The handbook shows you how to compile: http://www.freebsd.org/doc > You may also want to look at the forums and mailing lists. > > What I do is let the default kernel compile, disable witness checking, > and keep it there. > Where exactly are you having the problem? > > On 11/1/12, white.heron white wrote: > > Dear All, > > > > I am PowerPC G4 user. I am keen to install FreeBSD PPC into this machine. > > I am familiar with kernel compilation process in order to fully utilize > the > > PPC hardware. > > However, I need some manual to complete this task. Kindly advised. > Thanks. > > > > > > Regards, > > > > > > MOHAMMAD ADLI BIN MT TAJUDINSystem Engineer > > Centium Software Sdn Bhd, > > Kuala Lumpur, MY. > > > > > > > > Email: white.heron@yahoo.com > > > > > > ----- Original Message ----- > > From: Super Bisquit > > To: U Bhaskar-B22300 ; FreeBSD PowerPC ML > > > > Cc: > > Sent: Friday, November 2, 2012 6:19 AM > > Subject: Re: Powerpc based FreeBSD Compilation > > > > You are better off just installing FreeBSD to a PowerPC/POWER machine > > and recompiling the kernel. II do not think that Aurelian Jarno nor > > the others involved have ported a C implementation to POWER as they > > did for i386 and > > AMD64 with debianKFreeBSD.l > > > > > > On 10/31/12, U Bhaskar-B22300 wrote: > >> Hi All, > >> I want to compile FREEBSD Kernel on powerpc > >> I am using Ubuntu as my development system and I am > having > >> the powerc tool chain, While compiling, I am getting the below error. > >> > >> root@test-VirtualBox:/usr/src# bmake > >> bmake: no system rules (sys.mk). > >> > >> bmake: stopped in /usr/src > >> > >> What is this error ? > >> > >> 1. Can I compile FreeBSD on Ubuntu system. > >> 2. Do I need the iso or src.tgz for FreeBSD compilation > >> > >> Regards > >> --Bhaskar > >> _______________________________________________ > >> 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" > >> > > _______________________________________________ > > 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" > > > _______________________________________________ > 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" > _______________________________________________ > 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" >