From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 17 14:28:40 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 8A0DE4B4 for ; Sun, 17 Feb 2013 14:28:40 +0000 (UTC) (envelope-from kristof@swissmail.org) Received: from vm-mailout2.vm.swissmail.org (vm-mailout2.vm.swissmail.org [212.25.22.135]) by mx1.freebsd.org (Postfix) with ESMTP id F31319FF for ; Sun, 17 Feb 2013 14:28:39 +0000 (UTC) Received: from vm-pemfos2.intra.swissmail.org (vm-smtp2.intra.swissmail.org [192.168.173.55]) by vm-mailout2.vm.swissmail.org (8.13.8/8.13.8/Debian-3) with ESMTP id r1HEIYtd023177; Sun, 17 Feb 2013 15:18:34 +0100 Received: from vm-pemfos2.intra.swissmail.org (localhost [127.0.0.1]) by localhost (PEmFoS-local-10025) with ESMTP id D50584A002; Sun, 17 Feb 2013 15:20:35 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by localhost (PEmFoS/1506.9908.a1); Sun, 17 Feb 2013 15:20:35 +0100 (CET) X-Pemfos-Policyd: accepted (x80z2YuEl1dl3mICo73m2UgTARxuRQ4yQAonJVksTWA6XAkBRAABBjFeUUBKTSwy) Message-ID: <5120E72B.2080102@swissmail.org> Date: Sun, 17 Feb 2013 08:20:27 -0600 From: Krzysztof Parzyszek User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: freebsd-ppc@freebsd.org Subject: Re: FreeBSD 9.1 freezes randomly on G5 References: <50F4BADB.5@swissmail.org> In-Reply-To: <50F4BADB.5@swissmail.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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, 17 Feb 2013 14:28:40 -0000 Just to provide some closure here... I replaced pretty much everything, except the RAM. I got a 1kW power supply, quad core 2.5GHz processor and a corresponding motherboard (the previous setup was a 2GHz dual-core CPU). Since the fix/upgrade everything has been working like a charm. Thanks for help everyone! -Krzysztof From owner-freebsd-ppc@FreeBSD.ORG Sun Feb 17 21:13:16 2013 Return-Path: Delivered-To: powerpc64@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 95FF3889; Sun, 17 Feb 2013 21:13:16 +0000 (UTC) (envelope-from marcel@xcllnt.net) Received: from mail.xcllnt.net (mail.xcllnt.net [70.36.220.4]) by mx1.freebsd.org (Postfix) with ESMTP id 716A48D7; Sun, 17 Feb 2013 21:13:16 +0000 (UTC) Received: from lrust-sslvpn-nc.jnpr.net (natint3.juniper.net [66.129.224.36]) (authenticated bits=0) by mail.xcllnt.net (8.14.6/8.14.6) with ESMTP id r1HLDBWP003862 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Sun, 17 Feb 2013 13:13:13 -0800 (PST) (envelope-from marcel@xcllnt.net) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: [head tinderbox] failure on powerpc64/powerpc From: Marcel Moolenaar In-Reply-To: <86ehgfc3th.fsf@ds4.des.no> Date: Sun, 17 Feb 2013 13:13:06 -0800 Content-Transfer-Encoding: quoted-printable Message-Id: <8FED3AA7-C2B7-4A8C-A5B3-45A098B7C67A@xcllnt.net> References: <201302162137.r1GLbn0B037655@freebsd-current.sentex.ca> <86ehgfc3th.fsf@ds4.des.no> To: =?iso-8859-1?Q?Dag-Erling_Sm=F8rgrav?= X-Mailer: Apple Mail (2.1499) X-Mailman-Approved-At: Sun, 17 Feb 2013 21:41:34 +0000 Cc: powerpc64@freebsd.org, FreeBSD Tinderbox , 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, 17 Feb 2013 21:13:16 -0000 On Feb 16, 2013, at 2:05 PM, Dag-Erling Sm=F8rgrav wrote: > FreeBSD Tinderbox writes: >> cc -O2 -pipe -I/src/lib/libldns/../../contrib/ldns -std=3Dgnu99 = -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k -W = -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes = -Wpointer-arith -Wno-uninitialized -Wno-pointer-sign -c = /src/lib/libldns/../../contrib/ldns/dnssec_verify.c -o dnssec_verify.o >> cc1: warnings being treated as errors >> /src/lib/libldns/../../contrib/ldns/dnssec_verify.c:638: warning: >> ldns_dnssec_trust_tree_print_sm' defined but not used >> *** [dnssec_verify.o] Error code 1 >>=20 >> Stop in /src/lib/libldns. >=20 > Why is this happening? The Makefile sets WARNS to 3, which adds > -Wno-unused-function to CFLAGS, which should suppress this warning. I don't see -Wno-unused-function above. I only see = -Wno-unused-parameter. I also don't see -Wno-parentheses-equality nor -Wno-conversion, so I guess that means that the set of flags applicable for WARNS=3D3 isn't = being taken. It looks like WARNS is in fact 3: eris% make -V WARNS 3 Since bsd.sys.mk has grown unreadable, try unraveling the conditionals to see if WARNS for GCC does the equivalent for CLANG. Is the problem specific to architectures that don't use CLANG? =20 --=20 Marcel Moolenaar marcel@xcllnt.net From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 18 10:38:50 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id A2E289CA for ; Mon, 18 Feb 2013 10:38:50 +0000 (UTC) (envelope-from revivo73@yahoo.com) Received: from nm34-vm3.bullet.mail.bf1.yahoo.com (nm34-vm3.bullet.mail.bf1.yahoo.com [72.30.239.75]) by mx1.freebsd.org (Postfix) with ESMTP id 362DDBDD for ; Mon, 18 Feb 2013 10:38:50 +0000 (UTC) Received: from [98.139.212.148] by nm34.bullet.mail.bf1.yahoo.com with NNFMP; 18 Feb 2013 10:38:42 -0000 Received: from [98.139.212.195] by tm5.bullet.mail.bf1.yahoo.com with NNFMP; 18 Feb 2013 10:38:42 -0000 Received: from [127.0.0.1] by omp1004.mail.bf1.yahoo.com with NNFMP; 18 Feb 2013 10:38:42 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 307843.2585.bm@omp1004.mail.bf1.yahoo.com Received: (qmail 7169 invoked by uid 60001); 18 Feb 2013 10:38:42 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1361183922; bh=jvgpV8SniBF7Khzm0k+hzIthDlwb/xU/kt73ZMARJ7k=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=unJsCnab9AwwkJCBtymbTxWlKUcny7V4HM8l2Kz+OdBac712ZCAvQwVAh9SswEdOt6tTE2TRuvmGTC3Ubdpc37PFo+WugBVbskdZmwPnwKvmYBN6tm535lJpmgf5E37xQa4kNoo2oZPK7aSgGUrR6ShIA+xjhfGfHhM0KKdMbOQ= 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:MIME-Version:Content-Type; b=s8vdGZYRMIaoChxAlSBG9xDIErMyQlJhIMU0NOoUEGUbeRbU9TrPUIru2IFCYzrm7vGE1cBOxrXZ0Apdxa/y13QGmNsFFa4MGHBuoLDZJf4WdpHNSjiLqyXx1txQuBI3YKfsIq8TPapEOQFUXWC0+sWFVR0Ik+QrOSJ23SUBy5E=; X-YMail-OSG: 8H3QrNYVM1nhgwTFP.zJIc5L7vDjBHZGnT63RNld0H029Ms qvkk8kXLAuOZXdYvbB87HaemYGv_FdHKDOc7P4vXwVGt2AbpZfuyQrJdZt_J pJrOq6lhEMf16ahj2WN7p6WR3vhn42j3m0PyphkG56il2s7ML4hoci2EJuhr 1tw7cLYM5utE5mZu0mbTwLyRk8NpNGcjWfQabygLNDYzCRfBI3RtN.XKBEMJ rPKAn9enn45yGcDNTi7ZyRqIBpoVGFBHRhtVRAMLCslUcpk_TPQx_lGphQ4t r.1sgn35_YO.PhkOke_ktUi3e88ZcTFUayprEnrIaBpo85BiWclbLPthz9_q QmNmyecAOPgWW5M2sJnQjPUJtv9RFZtJGZO7bkp5b3ss4Wysz_UfeZv2WnB0 KnCYVH8FK4IVpOxsBuLCFjy2KY7cZwem7y4MtImjZdzFwvJvh74H7kgDm4dW 6fGIErtihBy3vZPjGSGOAcg3NP8uMZpJ87kjhOl9ACO.g1fV5paz17K19w_I IadAfXsaBf0kkjcoHsQgjd21gnvuu3JZd94uhIsSlrKLN2RUxCAwz9AIPPYs 0T88e.BREBnJvWH7a9hMsCWDyVA-- Received: from [85.105.206.193] by web160706.mail.bf1.yahoo.com via HTTP; Mon, 18 Feb 2013 02:38:40 PST X-Rocket-MIMEInfo: 001.001, WW91IGNhbiB1c2UgIi1iIHN0YXJ0X29mZnNldCIgcGFyYW1ldGVyIGluIHRoZSBncGFydCg4KToKCiMgZ3BhcnQgY3JlYXRlIC1zIGFwbSBhZDAKIyBncGFydCBhZGQgLXQgYXBwbGUtYm9vdCAtYiA2NCAtcyA4MDBrIGFkMAoKV0JSLCBBbmRyZXkgVi4gRWxzdWtvdgoKSGVsbG8sIAoKLWIgc3RhcnQtb2Zmc2V0IHBhcmFtZXRlciBpbmRlZWQgbWFuYWdlcyB0byBhZGQgZnJlZSBzcGFjZSwgYnV0IGhhdmluZyB0cmllZCB0aGF0IGl0CiBkaWRuJ3QgaGVscCBMaW51eCcgR1BhcnRlZCBkZXRlY3QgdGhlIHBhcnQBMAEBAQE- X-Mailer: YahooMailWebService/0.8.134.513 References: <1360858013.53771.YahooMailNeo@web160704.mail.bf1.yahoo.com> <511D2E19.6020809@yandex.ru> Message-ID: <1361183920.93805.YahooMailNeo@web160706.mail.bf1.yahoo.com> Date: Mon, 18 Feb 2013 02:38:40 -0800 (PST) From: =?iso-8859-1?Q?Muammer_Hamut=E7u?= Subject: Re: How to make APM disk which can be detected by Linux' GParted? To: "freebsd-ppc@freebsd.org" 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: =?iso-8859-1?Q?Muammer_Hamut=E7u?= List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Feb 2013 10:38:50 -0000 You can use "-b start_offset" parameter in the gpart(8):=0A=0A# gpart creat= e -s apm ad0=0A# gpart add -t apple-boot -b 64 -s 800k ad0=0A=0AWBR, Andrey= V. Elsukov=0A=0AHello, =0A=0A-b start-offset parameter indeed manages to a= dd free space, but having tried that it=0A didn't help Linux' GParted detec= t the partitioning :(=0A=0AI have a clue on how to achieve a partition stru= cture which GParted can detect: http://d1302.hizliresim.com/16/f/k2fd8.jpg= =0A=0AThis partitioning is correctly detected by Linux' GParted. It's a dua= l-boot of FreeBSD and Ubuntu; I've tried it myself.=0A=0AThe only problem i= s I cannot remember how I achieved this partitioning (sounds ironic, yes.)= =0A=0AWhat I can say from what I remember is:=0A=0AThe 25K free space befor= e the 1st partition (of type apple-boot) was automatically added by some pa= rtitioning tool. The second 1MB free space before the 8th partition was don= e by me using the Ubuntu Install's manual partition tool. =0A=0AIt should b= e the first free space that matters. That first 25K free space seems to hav= e something which makes Linux GParted (and Ubuntu Install for the same matt= er) detect the partitioning correctly. =0A=0AHow could I remake such a part= itioning, how is it done? Thanks. =0A=0A> =0A> The problem is, the apple-bo= ot partitions=0A must have some =0Afree space before them (25K~1M in size) = in order to be detected by Ubuntu Install (or Linux GParted for the same ma= tter)=0A> =0A> =0A>=0A If there's no such space before apple boot blocks, U= buntu Install =0Acannot see the partitions thereby making the installation = of Ubuntu =0Aimpossible.=0A> =0A> The question is how can I properly add su= ch free space using FreeBSD gpart? Or using any other partitioning tool? = =0A=0AI=0A haven't tried this, but does it work if you create a small FreeB= SD =0Apartition (with gpart), and then delete it after you have created the= =0Aothers?=0A=0AHTH From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 18 11:06:50 2013 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B694321C for ; Mon, 18 Feb 2013 11:06:50 +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 A8A03E33 for ; Mon, 18 Feb 2013 11:06:50 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.6/8.14.6) with ESMTP id r1IB6otp061657 for ; Mon, 18 Feb 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.6/8.14.6/Submit) id r1IB6oQR061655 for freebsd-ppc@FreeBSD.org; Mon, 18 Feb 2013 11:06:50 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 18 Feb 2013 11:06:50 GMT Message-Id: <201302181106.r1IB6oQR061655@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, 18 Feb 2013 11:06:50 -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/175151 ppc Loader fails to load modules on PPC64 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 11 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Feb 18 13:55:50 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 0E5C2ACE for ; Mon, 18 Feb 2013 13:55:50 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward2h.mail.yandex.net (forward2h.mail.yandex.net [IPv6:2a02:6b8:0:f05::2]) by mx1.freebsd.org (Postfix) with ESMTP id B8761E4F for ; Mon, 18 Feb 2013 13:55:49 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward2h.mail.yandex.net (Yandex) with ESMTP id E137E701673; Mon, 18 Feb 2013 17:55:43 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 982D61700289; Mon, 18 Feb 2013 17:55:43 +0400 (MSK) Received: from dhcp-218-28-wifi.yandex.net (dhcp-218-28-wifi.yandex.net [213.180.218.28]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id tgQisHNJ-thQ8aoPv; Mon, 18 Feb 2013 17:55:43 +0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1361195743; bh=wrZdYDHJeHzC6bfv5oGton2GuVgwhIh+6awnYRdWKR0=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=kgZK4DUsi5POEGKJFds6a9Rxs3FUczQgywDsuzoPTlXqc7yLJJA9sipT74a4u0d8v 6a8KFMCthqTSAvZKxmZzjC7meR8QMQJ4JW3Z2S7FAU37d3fsmsEiz/sh9BodQLbA+Y v0+/42Isclw5tKJnCQDSrvZVJAXsiaJvUsoZ/sro= Message-ID: <51223290.4070509@yandex.ru> Date: Mon, 18 Feb 2013 17:54:24 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: =?ISO-8859-1?Q?Muammer_Hamut=E7u?= Subject: Re: How to make APM disk which can be detected by Linux' GParted? References: <1360858013.53771.YahooMailNeo@web160704.mail.bf1.yahoo.com> <511D2E19.6020809@yandex.ru> <1361183920.93805.YahooMailNeo@web160706.mail.bf1.yahoo.com> In-Reply-To: <1361183920.93805.YahooMailNeo@web160706.mail.bf1.yahoo.com> X-Enigmail-Version: 1.4.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit 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, 18 Feb 2013 13:55:50 -0000 On 18.02.2013 14:38, Muammer Hamutçu wrote: > I have a clue on how to achieve a partition structure which GParted > can detect: http://d1302.hizliresim.com/16/f/k2fd8.jpg It seems your partition table has not been created with gpart(8). And probably this did the trick. As you can see, your APM metadata takes 14 sectors, but when you use gpart(8), by default it takes 18 sectors. > How could I remake such a partitioning, how is it done? Thanks. You can patch your geom_part_apm module: Index: /usr/src/sys/geom/part/g_part_apm.c =================================================================== --- /usr/src/sys/geom/part/g_part_apm.c (revision 241375) +++ /usr/src/sys/geom/part/g_part_apm.c (working copy) @@ -101,7 +101,7 @@ static struct g_part_scheme g_part_apm_scheme = { g_part_apm_methods, sizeof(struct g_part_apm_table), .gps_entrysz = sizeof(struct g_part_apm_entry), - .gps_minent = 16, + .gps_minent = 12, .gps_maxent = 4096, }; G_PART_SCHEME_DECLARE(g_part_apm); The you can do: # mdconfig -s 78140160 # gpart create -s apm md0 # gpart add -b 64 -t apple-boot -s 2001 md0 # gpart add -t freebsd-ufs -s 5859376 md0 # gpart add -t apple-ufs -s 1953126 md0 # gpart add -t freebsd-ufs -s 1171876 md0 # gpart add -t freebsd-ufs -s 1171876 md0 # gpart add -t freebsd-ufs -s 7812501 md0 # gpart add -t freebsd-ufs -s 1171876 md0 # gpart add -b 19144704 -t apple-boot -s 2048 md0 # gpart add -t apple-ufs -s 15624192 md0 # gpart add -t apple-ufs -s 1953792 md0 # gpart show md0 => 14 78140146 md0 APM (37G) 14 50 - free - (25k) 64 2001 1 apple-boot (1M) 2065 5859376 2 freebsd-ufs (2.8G) 5861441 1953126 3 apple-ufs (953M) 7814567 1171876 4 freebsd-ufs (572M) 8986443 1171876 5 freebsd-ufs (572M) 10158319 7812501 6 freebsd-ufs (3.7G) 17970820 1171876 7 freebsd-ufs (572M) 19142696 2008 - free - (1M) 19144704 2048 8 apple-boot (1.0M) 19146752 15624192 9 apple-ufs (7.5G) 34770944 1953792 10 apple-ufs (954M) 36724736 41415424 - free - (19G) :) -- WBR, Andrey V. Elsukov From owner-freebsd-ppc@FreeBSD.ORG Tue Feb 19 10:48:01 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id C006799E for ; Tue, 19 Feb 2013 10:48:01 +0000 (UTC) (envelope-from revivo73@yahoo.com) Received: from nm22.bullet.mail.bf1.yahoo.com (nm22.bullet.mail.bf1.yahoo.com [98.139.212.181]) by mx1.freebsd.org (Postfix) with ESMTP id 6660636A for ; Tue, 19 Feb 2013 10:48:01 +0000 (UTC) Received: from [98.139.212.149] by nm22.bullet.mail.bf1.yahoo.com with NNFMP; 19 Feb 2013 10:47:54 -0000 Received: from [98.139.212.246] by tm6.bullet.mail.bf1.yahoo.com with NNFMP; 19 Feb 2013 10:47:54 -0000 Received: from [127.0.0.1] by omp1055.mail.bf1.yahoo.com with NNFMP; 19 Feb 2013 10:47:54 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 332806.90268.bm@omp1055.mail.bf1.yahoo.com Received: (qmail 48972 invoked by uid 60001); 19 Feb 2013 10:47:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1361270874; bh=kZU/b+Mj39eDGl+1boBVTzG+/Onf5LUtbltNywJcW/A=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:Cc:MIME-Version:Content-Type; b=oq2PvvfVLdw2TkE+MTHgor68Mv1TjI8kWXqknPL0wZnU5qmG/hxK6BbLH6+DPCQq1IcFACyE4tS+gxxxbjtFck9QnsCyV34AGKGQ8KhBTkWzbeRaabSXgJFmaQPQCLtUOuiAPl1idRvitN/9iUBhfDmi4sdG/I0DN1tISh2SZGU= 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:Cc:MIME-Version:Content-Type; b=kZaH0qIWDDI6BAK1UALC9oSI7+sqriQJfNESEmF5fTR8XnFJkWsZLk0usbFN6CffWlNPMOYVWGhA1+zwE1stPb3fzQZC3OzXv0BPQbtzPwELVC8iJCXke0XWoTRI+3H4sCVcgvT6ErvshZAHJk4IengmXrQQTzVxj/QQSPU6TZg=; X-YMail-OSG: ZXKYlrcVM1luQBL5rDSS45NgznGjtutVxrpN3FqV_h2Nhwg nZ8_FQNd8656gXCxuBcDM.3jNsJdNmHym.ULuN5Kvmizz8mRrFOrDpPPFRX. 16OMdA5tmF2p60MQcgFWWAIlnVfnMQWQtES.4Ms8JPLEpi5hhbw9LdJskJyY Ec2e0lrRC3nIzcSjGknG7VdFaKOWXFZpeyFZQBRhKJQP7DBPmbxVnCdjhO5G behGR_fHPAnRSCcyCeCMQXD.n.K5DPYducf3KBXLQRqjBDdy5X8fLQBzBce0 EN0eP2q_AaNmbMMSKKFyPy1LGall8gxPgwFwxLbx8AbZONVEVaXgxu.J42uU EBoABBK3NYwu658iY0ONswKo6s3B1kCqOOfrHICfflA_z5.s.h8nkCX8OZ2C MsDledyHMQKqwiFNA79m.ZLnYENzQtKwBVfYwBYuQsBOnp7nGzZHrot2ypzX WNMtqKAf9AWJBFKMXnt2yKyqNkKJ8Oh_Yrs7ENvV5pTE22ccY3J4.5AAzXHs lfKA_VNNPR_0awo_Z7auLvV7YjcT8ehZ5jFprvM3_JfVKXm4hrUY3sigdRLM 9AJ51KATn3uMymYRJIbM567pwTg-- Received: from [85.105.206.193] by web160703.mail.bf1.yahoo.com via HTTP; Tue, 19 Feb 2013 02:47:54 PST X-Rocket-MIMEInfo: 001.001, SGVsbG8KClRoYW5rIHlvdSBmb3IgdGhlIGNvbnRpbnVlZCBpbnRlcmVzdC7CoCBJJ2QgbGlrZSB0byB0cnkgaXQgYnV0IHdpdGggbXkgY3VycmVudCBGcmVlQlNEIFBQQyA4LjIgQ0QgYW5kIEZyZWVCU0QgUFBDIExpdmVmcyBDRCwgSSBjb3VsZG4ndCBkbyBpdC4gCgpGaXJzdCwgdGhlIFBQQyBMaXZlZnMgQ0QgZG9lc24ndCBoYXZlIC91c3Ivc3JjCgpTZWNvbmQsIGl0IGRvZXNuJ3QgaGF2ZSB0aGUgbWRjb25maWcgY29tbWFuZC4KCkkgZ3Vlc3MgdGhleSBhcmUgaW4gRnJlZUJTRCBpMzg2IERWRC4gSSB3aWwBMAEBAQE- X-Mailer: YahooMailWebService/0.8.134.513 References: <1360858013.53771.YahooMailNeo@web160704.mail.bf1.yahoo.com> <511D2E19.6020809@yandex.ru> <1361183920.93805.YahooMailNeo@web160706.mail.bf1.yahoo.com> <51223290.4070509@yandex.ru> Message-ID: <1361270874.34972.YahooMailNeo@web160703.mail.bf1.yahoo.com> Date: Tue, 19 Feb 2013 02:47:54 -0800 (PST) From: =?iso-8859-1?Q?Muammer_Hamut=E7u?= Subject: Re: How to make APM disk which can be detected by Linux' GParted? To: "Andrey V. Elsukov" 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 Cc: "freebsd-ppc@freebsd.org" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: =?iso-8859-1?Q?Muammer_Hamut=E7u?= List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Feb 2013 10:48:01 -0000 Hello=0A=0AThank you for the continued interest.=A0 I'd like to try it but = with my current FreeBSD PPC 8.2 CD and FreeBSD PPC Livefs CD, I couldn't do= it. =0A=0AFirst, the PPC Livefs CD doesn't have /usr/src=0A=0ASecond, it d= oesn't have the mdconfig command.=0A=0AI guess they are in FreeBSD i386 DVD= . I will try it on an Intel machine by plugging this 40GB IDE HDD through U= SB.=0A=0A=0A=0A________________________________=0A From: Andrey V. Elsukov = =0ATo: Muammer Hamut=E7u =0ACc: "fr= eebsd-ppc@freebsd.org" =0ASent: Monday, February = 18, 2013 3:54 PM=0ASubject: Re: How to make APM disk which can be detected = by Linux' GParted?=0A =0AOn 18.02.2013 14:38, Muammer Hamut=E7u wrote:=0A> = I have a clue on how to achieve a partition structure which GParted=0A> can= detect: http://d1302.hizliresim.com/16/f/k2fd8.jpg=0A=0AIt seems your part= ition table has not been created with gpart(8).=0AAnd probably this did the= trick.=0A=0AAs you can see, your APM metadata takes 14 sectors, but when y= ou use=0Agpart(8), by default it takes 18 sectors.=0A=0A> How could I remak= e such a partitioning, how is it done? Thanks.=0A=0AYou can patch your geom= _part_apm module:=0AIndex: /usr/src/sys/geom/part/g_part_apm.c=0A=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A--- /usr/src/sys/geom/part/g_p= art_apm.c=A0=A0=A0 (revision 241375)=0A+++ /usr/src/sys/geom/part/g_part_ap= m.c=A0=A0=A0 (working copy)=0A@@ -101,7 +101,7 @@ static struct g_part_sche= me g_part_apm_scheme =3D {=0A=A0=A0=A0 g_part_apm_methods,=0A=A0=A0=A0 size= of(struct=0A g_part_apm_table),=0A=A0=A0=A0 .gps_entrysz =3D sizeof(struct = g_part_apm_entry),=0A-=A0=A0=A0 .gps_minent =3D 16,=0A+=A0=A0=A0 .gps_minen= t =3D 12,=0A=A0=A0=A0 .gps_maxent =3D 4096,=0A};=0AG_PART_SCHEME_DECLARE(g_= part_apm);=0A=0AThe you can do:=0A# mdconfig -s 78140160=0A# gpart create -= s apm=A0 md0=0A# gpart add -b 64 -t apple-boot -s 2001 md0=0A# gpart add -t= freebsd-ufs -s 5859376 md0=0A# gpart add -t apple-ufs -s 1953126 md0=0A# g= part add -t freebsd-ufs -s 1171876 md0=0A# gpart add -t freebsd-ufs -s 1171= 876 md0=0A# gpart add -t freebsd-ufs -s 7812501 md0=0A# gpart add -t freebs= d-ufs -s 1171876 md0=0A# gpart add -b 19144704 -t apple-boot -s 2048 md0=0A= # gpart add -t apple-ufs -s 15624192 md0=0A# gpart add -t apple-ufs -s 1953= 792 md0=0A=0A# gpart show md0=0A=3D>=A0 =A0 =A0 14=A0 78140146=A0 md0=A0 AP= M=A0 (37G)=0A=A0 =A0 =A0 =A0 14=A0 =A0 =A0 =A0=0A 50=A0 =A0 =A0 - free -= =A0 (25k)=0A=A0 =A0 =A0 =A0 64=A0 =A0 =A0 2001=A0 =A0 1=A0 apple-boot=A0 (1= M)=0A=A0 =A0 =A0 2065=A0 5859376=A0 =A0 2=A0 freebsd-ufs=A0 (2.8G)=0A=A0 = 5861441=A0 1953126=A0 =A0 3=A0 apple-ufs=A0 (953M)=0A=A0 7814567=A0 1171= 876=A0 =A0 4=A0 freebsd-ufs=A0 (572M)=0A=A0 8986443=A0 1171876=A0 =A0 5= =A0 freebsd-ufs=A0 (572M)=0A=A0 10158319=A0 7812501=A0 =A0 6=A0 freebsd-uf= s=A0 (3.7G)=0A=A0 17970820=A0 1171876=A0 =A0 7=A0 freebsd-ufs=A0 (572M)=0A= =A0 19142696=A0 =A0 =A0 2008=A0 =A0 =A0 - free -=A0 (1M)=0A=A0 19144704=A0= =A0 =A0 2048=A0 =A0 8=A0 apple-boot=A0 (1.0M)=0A=A0 19146752=A0 15624192= =A0 =A0 9=A0 apple-ufs=A0 (7.5G)=0A=A0 34770944=A0 1953792=A0 10=A0 apple= -ufs=A0=0A (954M)=0A=A0 36724736=A0 41415424=A0 =A0 =A0 - free -=A0 (19G)= =0A=0A:)=0A=0A-- =0AWBR, Andrey V. Elsukov From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 12:09:33 2013 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0648815B9; Thu, 21 Feb 2013 12:09:33 +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 BA1E717D; Thu, 21 Feb 2013 12:09:32 +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 r1LAXnYp096736; Thu, 21 Feb 2013 05:33:49 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r1LAXn3d096735; Thu, 21 Feb 2013 10:33:49 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 21 Feb 2013 10:33:49 GMT Message-Id: <201302211033.r1LAXn3d096735@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: Thu, 21 Feb 2013 12:09:33 -0000 TB --- 2013-02-21 08:00:29 - tinderbox 2.10 running on freebsd-current.sentex.ca TB --- 2013-02-21 08:00:29 - 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 --- 2013-02-21 08:00:29 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2013-02-21 08:00:29 - cleaning the object tree TB --- 2013-02-21 08:00:29 - /usr/local/bin/svn stat /src TB --- 2013-02-21 08:00:32 - At svn revision 247073 TB --- 2013-02-21 08:00:33 - building world TB --- 2013-02-21 08:00:33 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 08:00:33 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 08:00:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 08:00:33 - SRCCONF=/dev/null TB --- 2013-02-21 08:00:33 - TARGET=powerpc TB --- 2013-02-21 08:00:33 - TARGET_ARCH=powerpc TB --- 2013-02-21 08:00:33 - TZ=UTC TB --- 2013-02-21 08:00:33 - __MAKE_CONF=/dev/null TB --- 2013-02-21 08:00:33 - cd /src TB --- 2013-02-21 08:00:33 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Feb 21 08:00:38 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Feb 21 10:24:38 UTC 2013 TB --- 2013-02-21 10:24:38 - generating LINT kernel config TB --- 2013-02-21 10:24:38 - cd /src/sys/powerpc/conf TB --- 2013-02-21 10:24:38 - /usr/bin/make -B LINT TB --- 2013-02-21 10:24:38 - cd /src/sys/powerpc/conf TB --- 2013-02-21 10:24:38 - /usr/sbin/config -m LINT TB --- 2013-02-21 10:24:38 - building LINT kernel TB --- 2013-02-21 10:24:38 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 10:24:38 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 10:24:38 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 10:24:38 - SRCCONF=/dev/null TB --- 2013-02-21 10:24:38 - TARGET=powerpc TB --- 2013-02-21 10:24:38 - TARGET_ARCH=powerpc TB --- 2013-02-21 10:24:38 - TZ=UTC TB --- 2013-02-21 10:24:38 - __MAKE_CONF=/dev/null TB --- 2013-02-21 10:24:38 - cd /src TB --- 2013-02-21 10:24:38 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Feb 21 10:24:38 UTC 2013 >>> 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 -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/amdsmb.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/if_rl.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/intpm.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/ncr.c /src/sys/pci/ncr.c: In function 'ncr_get_nccb': /src/sys/pci/ncr.c:6428: error: 's' undeclared (first use in this function) /src/sys/pci/ncr.c:6428: error: (Each undeclared identifier is reported only once /src/sys/pci/ncr.c:6428: error: for each function it appears in.) *** [ncr.o] 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 --- 2013-02-21 10:33:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-02-21 10:33:49 - ERROR: failed to build LINT kernel TB --- 2013-02-21 10:33:49 - 7734.03 user 1011.88 system 9199.66 real http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 16:54:41 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CF986BD9 for ; Thu, 21 Feb 2013 16:54:41 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-f49.google.com (mail-bk0-f49.google.com [209.85.214.49]) by mx1.freebsd.org (Postfix) with ESMTP id 6BBC7678 for ; Thu, 21 Feb 2013 16:54:40 +0000 (UTC) Received: by mail-bk0-f49.google.com with SMTP id w11so4293359bku.36 for ; Thu, 21 Feb 2013 08:54:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:date:x-google-sender-auth:message-id :subject:from:to:content-type; bh=GouWfTUmEesoDTIiDDesSCTBUBoX9/jwjvu3cH3EU00=; b=wF2gZjq9LKyE4Yjpm7v/zw4NrwD4hS8ZfDhIY1/rQ490QkYBFi4OGMA8VZ7SXIF5Lg IaqhhBBpPPd1oLdh10FO7acIBasg1fI7HM3sfNyYKjxEYb4sXKqbR4zGL9UqrVzic/+S PrkKz9/pHUAs0Rib0ZP20F2fj4NmrGbxe5dOu2O9rMkL1scsOdbixU1DVeH+pmloCajx gq0in35LenjBNrrfQavJ1ZaptahVfZPAL+bxu4HqTI5zzfFMgnG9IuWWUqtahsPuuM6V 94IrzHu7cMmveVBgBzU1GTf+eGyl838dCU16DlHNdjWz25vA4JAgowMl7IWnWXvjnyMw vZnQ== MIME-Version: 1.0 X-Received: by 10.204.130.210 with SMTP id u18mr10957685bks.57.1361465673634; Thu, 21 Feb 2013 08:54:33 -0800 (PST) Sender: chmeeedalf@gmail.com Received: by 10.204.10.13 with HTTP; Thu, 21 Feb 2013 08:54:33 -0800 (PST) Date: Thu, 21 Feb 2013 08:54:33 -0800 X-Google-Sender-Auth: s1l14LJlurAvgodOKi6P0ZU6yV4 Message-ID: Subject: CFT: PMU-based speed changes From: Justin Hibbits 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: Thu, 21 Feb 2013 16:54:41 -0000 After over a year of off-and-on work, lots of frustration, and help from quite a few people, I present to you all for testing, PMU speed changes. You can find it in the projects/pmac_pmu branch, which is branched from -CURRENT back in December/January. Anybody with a Titanium Powerbook, and some of the early Aluminum books, should now be able to run their machines at full speed using powerd, or sysctl dev.cpu.0.freq. I tested this on my 1GHz TiBook (last generation TiBook), using md5 on a core dump, and saw a nice performance boost. That branch also has PMU-based sleep code in place, but it does not work (don't try to set sysctl dev.pmu.0.sleep, your machine will go catatonic). I haven't decided yet if I will commit what I have minus the sleep, or wait until sleep is done. As always, any comments and suggestions are welcome. - Justin From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 17:52:21 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 01B7DF24; Thu, 21 Feb 2013 17:52:21 +0000 (UTC) (envelope-from adamartin.freebsd.org@gmail.com) Received: from mail-yh0-x230.google.com (yh-in-x0230.1e100.net [IPv6:2607:f8b0:4002:c01::230]) by mx1.freebsd.org (Postfix) with ESMTP id AE88FB08; Thu, 21 Feb 2013 17:52:20 +0000 (UTC) Received: by mail-yh0-f48.google.com with SMTP id q12so1686024yhf.21 for ; Thu, 21 Feb 2013 09:52:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=t5u6vSGvLE3kUvDA63FMd8xuH8z/N/PfCfW8jx56Q98=; b=TKYoGl3oRM7dzW42g11a6uQpAnO5I3k+mmeZuE+ol+2emwbN/YahUA4/+WCHZoOri/ ycx5FyJQaS+/N2n+2/IvJg0Mw/7L+3HM4HqB2VIMwdXaJ02i3g/hXcZz5xJRccYbm58e OY1WBjkn38aeJwr8xvfBcS0OuNmR8uBpU9C8cjVOWTcO7hw+HwYt55KqpL7C0l0vaVb4 WnjIE7VP4YN9Xfj9wccOr6Ymv9Ypa47X8N9ZZ4viNvMJYocMvIN709KhSDW3cH2Ynzci e3fPMgW0NhE2+5856YKRw0879ZmKFUufbXpprQoaAjGMM5tGZUkP90n3QL84xIUxE0a8 tCgA== MIME-Version: 1.0 X-Received: by 10.236.112.197 with SMTP id y45mr46231008yhg.121.1361469139782; Thu, 21 Feb 2013 09:52:19 -0800 (PST) Sender: adamartin.freebsd.org@gmail.com Received: by 10.236.15.37 with HTTP; Thu, 21 Feb 2013 09:52:19 -0800 (PST) Received: by 10.236.15.37 with HTTP; Thu, 21 Feb 2013 09:52:19 -0800 (PST) In-Reply-To: References: Date: Thu, 21 Feb 2013 09:52:19 -0800 X-Google-Sender-Auth: Vz9HV_YFPgLJAN8jRdomEk5Ajyc Message-ID: Subject: Re: CFT: PMU-based speed changes From: Adam Martin To: Justin Hibbits Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD PowerPC ML 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, 21 Feb 2013 17:52:21 -0000 Justin, On Feb 21, 2013 8:56 AM, "Justin Hibbits" wrote: > > After over a year of off-and-on work, lots of frustration, and help from > quite a few people, I present to you all for testing, PMU speed changes. > You can find it in the projects/pmac_pmu branch, which is branched from > -CURRENT back in December/January. Anybody with a Titanium Powerbook, and > some of the early Aluminum books, should now be able to run their machines > at full speed using powerd, or sysctl dev.cpu.0.freq. I tested this on my > 1GHz TiBook (last generation TiBook), using md5 on a core dump, and saw a > nice performance boost. Will an 867MHz 12" G4 be useful for testing this? It's MPC 7455, iirc. > That branch also has PMU-based sleep code in place, but it does not work > (don't try to set sysctl dev.pmu.0.sleep, your machine will go catatonic). Ideas on what makes it go catatonic yet? Is it just the TiBook, or AlBooks too? -- ADAM David Alan Martin From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 18:02:23 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 7690A3C6; Thu, 21 Feb 2013 18:02:23 +0000 (UTC) (envelope-from chmeeedalf@gmail.com) Received: from mail-bk0-f46.google.com (mail-bk0-f46.google.com [209.85.214.46]) by mx1.freebsd.org (Postfix) with ESMTP id DC019C47; Thu, 21 Feb 2013 18:02:22 +0000 (UTC) Received: by mail-bk0-f46.google.com with SMTP id j5so4245005bkw.5 for ; Thu, 21 Feb 2013 10:02:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=9Z44fzpoHfiH5WFw6uVIOctrQzAEqV9yn17CEfySaTQ=; b=O1ySWpLwuRCWHBMns9d7jjoh9nXwDJLG1A2wDW3omfKBxA2+eMvB61HS95ZqPvjo/w SwnSdGFuoq141SS6iUuvUX/NMd/pNfadP2qdwWmx40+BAhaVTA1ufBbWjTSJvLdkgHJd d3LJwL3fgNfV2u9SQJp9wW+O+c88bo6VcQkgzM4XFWhEgzX2JKdUqiZwRvIeDJNgYxD1 HFYigZzEw1OO4i9LUFwo6lQ45TD9iki75xGnH479BywXpMNp5hqKkw8AhYwIunPCEjnb LJWofAto0kh0EJwiz8fs5TZ20wIeHZwXXItDaDp/IzAebZX4ixXZ0zYCj0sX7a1CQQfT uFvQ== MIME-Version: 1.0 X-Received: by 10.204.148.9 with SMTP id n9mr10961141bkv.1.1361469736070; Thu, 21 Feb 2013 10:02:16 -0800 (PST) Sender: chmeeedalf@gmail.com Received: by 10.204.10.13 with HTTP; Thu, 21 Feb 2013 10:02:15 -0800 (PST) In-Reply-To: References: Date: Thu, 21 Feb 2013 10:02:15 -0800 X-Google-Sender-Auth: bukqcpxwVZv0uU-tUEv20c2gm94 Message-ID: Subject: Re: CFT: PMU-based speed changes From: Justin Hibbits To: Adam Martin Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD PowerPC ML 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, 21 Feb 2013 18:02:23 -0000 Adam, On Thu, Feb 21, 2013 at 9:52 AM, Adam Martin wrote: > Justin, > > On Feb 21, 2013 8:56 AM, "Justin Hibbits" wrote: > > > > After over a year of off-and-on work, lots of frustration, and help from > > quite a few people, I present to you all for testing, PMU speed changes. > > You can find it in the projects/pmac_pmu branch, which is branched from > > -CURRENT back in December/January. Anybody with a Titanium Powerbook, > and > > some of the early Aluminum books, should now be able to run their > machines > > at full speed using powerd, or sysctl dev.cpu.0.freq. I tested this on > my > > 1GHz TiBook (last generation TiBook), using md5 on a core dump, and saw a > > nice performance boost. > > Will an 867MHz 12" G4 be useful for testing this? It's MPC 7455, iirc. > I think your 867MHz would work fine. I think last time we looked, it boots to FreeBSD at 500MHz, so this branch should now Just Work(TM) for you. The tell is if the 'min-clock-frequency' property exists in open firmware for the CPU. > > That branch also has PMU-based sleep code in place, but it does not work > > (don't try to set sysctl dev.pmu.0.sleep, your machine will go > catatonic). > > Ideas on what makes it go catatonic yet? Is it just the TiBook, or > AlBooks too? > I think it's the order in which the devices are suspended. I think the primary busses are being suspended too early, so the PMU isn't being suspended properly. Looking at pmu_sleep() in sys/powerpc/powermac/pmu.c should give you an idea of how it should work (just trace all the device_suspend entries in sys/powerpc). In fact, looking at the code, simply removing the uninorth_chip_resume DEVMETHOD entry might be sufficient. > -- > ADAM David Alan Martin > - Justin From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 18:46:35 2013 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id DF36F5DF; Thu, 21 Feb 2013 18:46:35 +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 B61C9D4; Thu, 21 Feb 2013 18:46:35 +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 r1LIkZi4054886; Thu, 21 Feb 2013 13:46:35 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r1LIkZGV054885; Thu, 21 Feb 2013 18:46:35 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 21 Feb 2013 18:46:35 GMT Message-Id: <201302211846.r1LIkZGV054885@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: Thu, 21 Feb 2013 18:46:36 -0000 TB --- 2013-02-21 16:13:45 - tinderbox 2.10 running on freebsd-current.sentex.ca TB --- 2013-02-21 16:13:45 - 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 --- 2013-02-21 16:13:45 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2013-02-21 16:13:45 - cleaning the object tree TB --- 2013-02-21 16:14:47 - /usr/local/bin/svn stat /src TB --- 2013-02-21 16:14:51 - At svn revision 247093 TB --- 2013-02-21 16:14:52 - building world TB --- 2013-02-21 16:14:52 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 16:14:52 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 16:14:52 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 16:14:52 - SRCCONF=/dev/null TB --- 2013-02-21 16:14:52 - TARGET=powerpc TB --- 2013-02-21 16:14:52 - TARGET_ARCH=powerpc TB --- 2013-02-21 16:14:52 - TZ=UTC TB --- 2013-02-21 16:14:52 - __MAKE_CONF=/dev/null TB --- 2013-02-21 16:14:52 - cd /src TB --- 2013-02-21 16:14:52 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Feb 21 16:14:56 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Feb 21 18:37:32 UTC 2013 TB --- 2013-02-21 18:37:32 - generating LINT kernel config TB --- 2013-02-21 18:37:32 - cd /src/sys/powerpc/conf TB --- 2013-02-21 18:37:32 - /usr/bin/make -B LINT TB --- 2013-02-21 18:37:32 - cd /src/sys/powerpc/conf TB --- 2013-02-21 18:37:32 - /usr/sbin/config -m LINT TB --- 2013-02-21 18:37:33 - building LINT kernel TB --- 2013-02-21 18:37:33 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 18:37:33 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 18:37:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 18:37:33 - SRCCONF=/dev/null TB --- 2013-02-21 18:37:33 - TARGET=powerpc TB --- 2013-02-21 18:37:33 - TARGET_ARCH=powerpc TB --- 2013-02-21 18:37:33 - TZ=UTC TB --- 2013-02-21 18:37:33 - __MAKE_CONF=/dev/null TB --- 2013-02-21 18:37:33 - cd /src TB --- 2013-02-21 18:37:33 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Feb 21 18:37:33 UTC 2013 >>> 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 -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/amdsmb.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/if_rl.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/intpm.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/ncr.c /src/sys/pci/ncr.c: In function 'ncr_get_nccb': /src/sys/pci/ncr.c:6428: error: 's' undeclared (first use in this function) /src/sys/pci/ncr.c:6428: error: (Each undeclared identifier is reported only once /src/sys/pci/ncr.c:6428: error: for each function it appears in.) *** [ncr.o] 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 --- 2013-02-21 18:46:35 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-02-21 18:46:35 - ERROR: failed to build LINT kernel TB --- 2013-02-21 18:46:35 - 7744.05 user 1018.01 system 9169.80 real http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc-powerpc.full From owner-freebsd-ppc@FreeBSD.ORG Fri Feb 22 21:09:40 2013 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 98BD7C56 for ; Fri, 22 Feb 2013 21:09:40 +0000 (UTC) (envelope-from mrezny@hexaneinc.com) Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by mx1.freebsd.org (Postfix) with ESMTP id 32C5FBDA for ; Fri, 22 Feb 2013 21:09:39 +0000 (UTC) Received: from mfilter20-d.gandi.net (mfilter20-d.gandi.net [217.70.178.148]) by relay4-d.mail.gandi.net (Postfix) with ESMTP id 962DD17209C for ; Fri, 22 Feb 2013 22:09:23 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at mfilter20-d.gandi.net Received: from relay4-d.mail.gandi.net ([217.70.183.196]) by mfilter20-d.gandi.net (mfilter20-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id 2IXxLyAQO41h for ; Fri, 22 Feb 2013 22:09:21 +0100 (CET) X-Originating-IP: 81.90.254.28 Received: from unknown (unknown [81.90.254.28]) (Authenticated sender: mrezny@hexaneinc.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 82B7117208C for ; Fri, 22 Feb 2013 22:09:21 +0100 (CET) Date: Fri, 22 Feb 2013 22:09:18 +0100 From: Matthew Rezny To: Subject: Re: PowerMac G5 spurious sensor readings Message-ID: <20130222220918.00005998@unknown> In-Reply-To: <51169.1358483910@hexaneinc.com> References: <51169.1358483910@hexaneinc.com> X-Mailer: Claws Mail 3.9.0cvs98 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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: Fri, 22 Feb 2013 21:09:40 -0000 On Fri, 18 Jan 2013 05:38:30 +0100 Matthew Rezny wrote: > On Thu 13/01/17 21:59 , Matthew Rezny wrote:: > > >I have a G5 of the first model (PowerMac7,2) on which I've been > >using FreeBSD/ppc64 for over a year. Today, it suddenly rebooted. > >Not the first time by any means, but this is the first time I found > >the following log message: Jan 17 17:32:19 powermac kernel: WARNING: > >Current temperature (MLB MAX6690 AMB:127.8 C) exceeds critical > >temperature (80.0 C)! Shutting down! > > > >This is the first time I have seen such a message. After reboot, > >that sensor shows a temperature near 30C, which seems appropriate. > >The reading of 127.8C looks suspiciously like a max value. My only > >guess is there was a bad read that resulted in the sensor value > >going over the threshold. That raises a question in my mind as to > >whether there is any filtering or sanity checking of the data. Could > >a single bad read cause the threshold to be exceeded and trigger > >shutdown immediately, or would the excessive value have to be > >returned from that sensor multiple times for it to be believed an > >acted upon? > > > >$ uname -a > >FreeBSD powermac 9.1-RC1 FreeBSD 9.1-RC1 #0: Thu Aug 16 00:43:39 UTC > >2012 > >root@anacreon.physics.wisc.edu:/usr/obj/usr/src/sys/GENERIC64 > >powerpc > > > >The build is a bit old, though I wouldn't expect too much change to > >the code in question since then. I will update to 9.1-RELEASE or > >-STABLE in the next few days, but as this is a problem that has > >happened once in over a year, I wouldn't call it resolved just by a > >quick failure to reproduce after updating. > > > >I was already planning to do an update after the box has completed > >it's current task. I noticed a problem with excessive output causing > >the console to hang. A couple days ago I found the machine > >apparently hung in that the keyboard and mouse were not responsive, > >but I found it was still alive on the network and I could ssh in to > >reboot. The only clues were no buffer space for dmesg to output > >anything before reboot, and a rather full /var/log/messages file > >which had exhausted the drive. Under the same workload (and after > >freeing some drive space), the problem reoccurred in a matter of > >hours, but this time with me watching. While running ddrescue > >against a drive with some bad sectors, read errors flood the console > >in spurts. When some dozens of read errors are displayed at once, > >the console scrolls whole pages by in a fraction of a second, and > >then goes dead. Messages that should go to console are not shown on > >screen but are in the log. Attempts to switch virtual console or to > >reboot are not successful, but ssh access continues to work and the > >box is clearly still processing other workloads. The only sign of > >life from the console are the messages about flushing buffers just > >before completion of the reboot commanded via ssh. > > > > Just a few hours later, it strikes again. > Jan 17 23:06:11 powermac kernel: WARNING: Current temperature (MLB > MAX6690 AMB: 127.0 C) exceeds critical temperature (80.0 C)! Shutting > down! > > I took a peek in smu.c and powermac_thermal.c. In the former, > smu_sensor_read() has a check for an error returned from > smu_run_cmd() but no checks on the returned data. In the later, > pmac_therm_manage_fans() invokes smu_sensor_read() and considers the > returned value as valid if greater than zero. No other sanity checks > are performed. > > Looking at the datasheet[1] for max6690, I see that 127C is the > maximum readable temperature, which is represented as 01111111. The > value 10000000 is documented as representing a diode fault. As there > is no upper range check, the diode fault condition will be > interpreted as slightly over 127C. I think it would be appropriate to > treat as invalid any raw sensor value with the MSB set. Additionally, > the check on line 105 of pmac_therm_manage_fans should really be "if > (temp >= 0)" rather than just "if (temp > 0)" as a value of 0 is a > valid value for zero degrees and all actual errors are represented as > a value of -1. > > I have not looked at the datasheets for other relevant sensors, but > being that there are no range checks in any of the cases in > smu_sensor_read(), I currently consider them all suspect pending > review. > > [1] http://datasheets.maximintegrated.com/en/ds/MAX6690.pdf (Page 11, > Table 2) > It has been some time since I first looked at this, but something in the back of my mind said my first glance at it was flawed, so I recently revisited the matter. I realize I was looking in the wrong place previously. After reading through powermac_thermal.c I had done a search for sensor_read() and found a match in smu.c so I started from there. However, there is no SMU on this early model G5. Searching more than just the same directory, I found sensor_read() occurs in many places. The pertinent function is really in sys/dev/iicbus/max6690.c as max6690_sensor_read(). Looking at the correct function, I see multiple problems. max6690_read() is called twice, both times storing the return value in err. The value of err is checked only once, after both calls, so if the first call returns an error but the second succeeds, the error indicator is overwritten and calculations will be done with bad data. The check for err < 0 should be done after each call to max6690_read(). After that basic check, which would only indicate an error if there was a problem with the I2C bus transaction, computations are done without any further data validation. As stated before, the sensor may signal an error condition by returning the value 10000000. There is no check for that reserved value, so when the sensor attempts to indicate an error, we end up with a temperature of 127C being returned from max6690_sensor_read(). That value causes havoc for obvious reasons. This should be easy to clean up but I don't have time at the moment to do the testing of the changes on the one machine to which this is applicable. If nobody else deals with it, I'll get around to doing so and post a patch when that time comes. From owner-freebsd-ppc@FreeBSD.ORG Fri Feb 22 22:17:26 2013 Return-Path: Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id D2066D1B; Fri, 22 Feb 2013 22:17:26 +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 A8BACED9; Fri, 22 Feb 2013 22:17:26 +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 r1MMHPw9058083; Fri, 22 Feb 2013 17:17:25 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r1MMHPc9058082; Fri, 22 Feb 2013 22:17:25 GMT (envelope-from tinderbox@freebsd.org) Date: Fri, 22 Feb 2013 22:17:25 GMT Message-Id: <201302222217.r1MMHPc9058082@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: Fri, 22 Feb 2013 22:17:26 -0000 TB --- 2013-02-22 19:51:04 - tinderbox 2.10 running on freebsd-current.sentex.ca TB --- 2013-02-22 19:51:04 - 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 --- 2013-02-22 19:51:04 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2013-02-22 19:51:04 - cleaning the object tree TB --- 2013-02-22 19:51:04 - /usr/local/bin/svn stat /src TB --- 2013-02-22 19:51:07 - At svn revision 247151 TB --- 2013-02-22 19:51:08 - building world TB --- 2013-02-22 19:51:08 - CROSS_BUILD_TESTING=YES TB --- 2013-02-22 19:51:08 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-22 19:51:08 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-22 19:51:08 - SRCCONF=/dev/null TB --- 2013-02-22 19:51:08 - TARGET=powerpc TB --- 2013-02-22 19:51:08 - TARGET_ARCH=powerpc TB --- 2013-02-22 19:51:08 - TZ=UTC TB --- 2013-02-22 19:51:08 - __MAKE_CONF=/dev/null TB --- 2013-02-22 19:51:08 - cd /src TB --- 2013-02-22 19:51:08 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Fri Feb 22 19:51:12 UTC 2013 >>> 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 Fri Feb 22 22:12:38 UTC 2013 TB --- 2013-02-22 22:12:38 - generating LINT kernel config TB --- 2013-02-22 22:12:38 - cd /src/sys/powerpc/conf TB --- 2013-02-22 22:12:38 - /usr/bin/make -B LINT TB --- 2013-02-22 22:12:38 - cd /src/sys/powerpc/conf TB --- 2013-02-22 22:12:38 - /usr/sbin/config -m LINT TB --- 2013-02-22 22:12:38 - building LINT kernel TB --- 2013-02-22 22:12:38 - CROSS_BUILD_TESTING=YES TB --- 2013-02-22 22:12:38 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-22 22:12:38 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-22 22:12:38 - SRCCONF=/dev/null TB --- 2013-02-22 22:12:38 - TARGET=powerpc TB --- 2013-02-22 22:12:38 - TARGET_ARCH=powerpc TB --- 2013-02-22 22:12:38 - TZ=UTC TB --- 2013-02-22 22:12:38 - __MAKE_CONF=/dev/null TB --- 2013-02-22 22:12:38 - cd /src TB --- 2013-02-22 22:12:38 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Fri Feb 22 22:12:39 UTC 2013 >>> 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 [...] ld -b binary --no-warn-mismatch -d -warn-common -r -o mw88W8363.fwo mw88W8363.fw uudecode -o mwlboot.fw /src/sys/contrib/dev/mwl/mwlboot.fw.uu ld -b binary --no-warn-mismatch -d -warn-common -r -o mwlboot.fwo mwlboot.fw cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -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 -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/dev/mxge/if_mxge.c /src/sys/dev/mxge/if_mxge.c: In function 'mxge_rx_csum': /src/sys/dev/mxge/if_mxge.c:2571: error: 'cap' undeclared (first use in this function) /src/sys/dev/mxge/if_mxge.c:2571: error: (Each undeclared identifier is reported only once /src/sys/dev/mxge/if_mxge.c:2571: error: for each function it appears in.) *** [if_mxge.o] 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 --- 2013-02-22 22:17:25 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-02-22 22:17:25 - ERROR: failed to build LINT kernel TB --- 2013-02-22 22:17:25 - 7494.92 user 997.48 system 8781.84 real http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc-powerpc.full