From owner-freebsd-ppc@FreeBSD.ORG Sun Jul 24 20:35:43 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 97A301065672 for ; Sun, 24 Jul 2011 20:35:43 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from argol.doit.wisc.edu (argol.doit.wisc.edu [144.92.197.212]) by mx1.freebsd.org (Postfix) with ESMTP id 690998FC14 for ; Sun, 24 Jul 2011 20:35:43 +0000 (UTC) MIME-version: 1.0 Content-type: multipart/mixed; boundary="Boundary_(ID_McmDJIiro9Bss+VMmCKQuQ)" Received: from avs-daemon.smtpauth3.wiscmail.wisc.edu by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) id <0LOU00700UJI3U00@smtpauth3.wiscmail.wisc.edu> for freebsd-ppc@freebsd.org; Sun, 24 Jul 2011 15:35:42 -0500 (CDT) Received: from comporellon.tachypleus.net ([unknown] [76.210.68.180]) by smtpauth3.wiscmail.wisc.edu (Sun Java(tm) System Messaging Server 7u2-7.05 32bit (built Jul 30 2009)) with ESMTPSA id <0LOU004TKUJFQI00@smtpauth3.wiscmail.wisc.edu>; Sun, 24 Jul 2011 15:35:39 -0500 (CDT) Date: Sun, 24 Jul 2011 15:35:37 -0500 From: Nathan Whitehorn In-reply-to: <76CAEDC6-A527-4AEA-9CE8-1ED9B65CACB8@gromit.dlib.vt.edu> To: Paul Mather Message-id: <4E2C8219.6060907@freebsd.org> X-Spam-Report: AuthenticatedSender=yes, SenderIP=76.210.68.180 X-Spam-PmxInfo: Server=avs-14, Version=5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.7.24.202715, SenderIP=76.210.68.180 References: <76CAEDC6-A527-4AEA-9CE8-1ED9B65CACB8@gromit.dlib.vt.edu> User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:5.0) Gecko/20110704 Thunderbird/5.0 Cc: freebsd-ppc@freebsd.org Subject: Re: "sysctl -a" hangs multiuser boot X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2011 20:35:43 -0000 This is a multi-part message in MIME format. --Boundary_(ID_McmDJIiro9Bss+VMmCKQuQ) Content-type: text/plain; CHARSET=US-ASCII; format=flowed Content-transfer-encoding: 7BIT On 07/19/11 11:19, Paul Mather wrote: > I'm having problems with a kernel built today from a csup done today. I'm using an Xserve G5 running FreeBSD/powerpc64 9-CURRENT. The system will not boot up multiuser: it hangs at "Entropy harvesting: interrupts ethernet point_to_point" and gets no further. I can't Ctrl-C to get the boot past that point. > > It appears it is the "sysctl -a" in the entropy kickstart portion of /etc/rc.d/initrandom that is causing the problem. > > If I do "sysctl -a" manually it will produce output so far and then no further. Here are the last few lines before it stops outputting anything more: > > [[...]] > hw.usb.ugen.debug: 0 > hw.usb.power_timeout: 30 > hw.usb.uhub.debug: 0 > hw.usb.no_pf: 0 > hw.usb.proc.debug: 0 > hw.usb.pr_recovery_delay: 250 > hw.usb.pr_poll_delay: 50 > hw.usb.uhid.debug: 0 > hw.usb.ukbd.no_leds: 0 > hw.usb.ukbd.debug: 0 > hw.usb.ums.debug: 0 > > > > The system doesn't hang, but console input ceases to work and I can't SSH into the system any more. I can still ping the machine, but ping times vary wildly, e.g., > > 27 packets transmitted, 26 packets received, 3.7% packet loss > round-trip min/avg/max/stddev = 57.076/708.818/1395.450/280.318 ms > > Those ping times are way higher than normal. Here is an example of pinging the machine when it is not under the influence of doing a "sysctl -a": > > 23 packets transmitted, 23 packets received, 0.0% packet loss > round-trip min/avg/max/stddev = 0.421/0.591/0.758/0.096 ms > > > Also, at occasional intervals, this will be output on the console after having done a "sysctl -a": > > max66900: iicbus read failed > > Could you please try the attached patch? -Nathan --Boundary_(ID_McmDJIiro9Bss+VMmCKQuQ) Content-type: text/plain; name=fcu.diff Content-transfer-encoding: 7BIT Content-disposition: attachment; filename=fcu.diff Index: powerpc/powermac/fcu.c =================================================================== --- powerpc/powermac/fcu.c (revision 224288) +++ powerpc/powermac/fcu.c (working copy) @@ -282,14 +282,14 @@ fan->setpoint = rpm; } else { device_printf(fan->dev, "Unknown fan type: %d\n", fan->type); - return (-1); + return (ENXIO); } buf[0] = rpm >> (8 - fcu_rpm_shift); buf[1] = rpm << fcu_rpm_shift; if (fcu_write(sc->sc_dev, sc->sc_addr, reg, buf, 2) < 0) - return (-1); + return (EIO); return (0); } @@ -377,7 +377,7 @@ buf[0] = (pwm * 2550) / 1000; if (fcu_write(sc->sc_dev, sc->sc_addr, reg, buf, 1) < 0) - return (-1); + return (EIO); return (0); } @@ -536,12 +536,12 @@ if (fan->type == FCU_FAN_RPM) { rpm = fcu_fan_get_rpm(fan); if (rpm < 0) - return (-1); + return (EIO); error = sysctl_handle_int(oidp, &rpm, 0, req); } else { error = fcu_fan_get_pwm(fcu, fan, &pwm, &rpm); if (error < 0) - return (-1); + return (EIO); switch (arg2 & 0xff00) { case FCU_PWM_SYSCTL_PWM: @@ -552,7 +552,7 @@ break; default: /* This should never happen */ - error = -1; + return (EINVAL); }; } --Boundary_(ID_McmDJIiro9Bss+VMmCKQuQ)-- From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 25 11:07:13 2011 Return-Path: Delivered-To: freebsd-ppc@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8E440106566B for ; Mon, 25 Jul 2011 11:07:13 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7D3E28FC13 for ; Mon, 25 Jul 2011 11:07:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p6PB7DDx046464 for ; Mon, 25 Jul 2011 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p6PB7CUj046462 for freebsd-ppc@FreeBSD.org; Mon, 25 Jul 2011 11:07:12 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 25 Jul 2011 11:07:12 GMT Message-Id: <201107251107.p6PB7CUj046462@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-ppc@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-ppc@FreeBSD.org X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 11:07:13 -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/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 6 problems total. From owner-freebsd-ppc@FreeBSD.ORG Mon Jul 25 15:40:53 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 90152106566C; Mon, 25 Jul 2011 15:40:53 +0000 (UTC) (envelope-from paul@gromit.dlib.vt.edu) Received: from lennier.cc.vt.edu (lennier.cc.vt.edu [198.82.162.213]) by mx1.freebsd.org (Postfix) with ESMTP id 421578FC1A; Mon, 25 Jul 2011 15:40:52 +0000 (UTC) Received: from zidane.cc.vt.edu (zidane.cc.vt.edu [198.82.163.227]) by lennier.cc.vt.edu (8.13.8/8.13.8) with ESMTP id p6PFeMrj029991; Mon, 25 Jul 2011 11:40:22 -0400 Received: from auth3.smtp.vt.edu (EHLO auth3.smtp.vt.edu) ([198.82.161.152]) by zidane.cc.vt.edu (MOS 4.2.2-FCS FastPath queued) with ESMTP id QAW65796; Mon, 25 Jul 2011 11:40:21 -0400 (EDT) Received: from pmather.tower.lib.vt.edu (pmather.tower.lib.vt.edu [128.173.51.28]) (authenticated bits=0) by auth3.smtp.vt.edu (8.13.8/8.13.8) with ESMTP id p6PFeLWi014178 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO); Mon, 25 Jul 2011 11:40:21 -0400 Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Paul Mather In-Reply-To: <4E2C8219.6060907@freebsd.org> Date: Mon, 25 Jul 2011 11:40:21 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <76CAEDC6-A527-4AEA-9CE8-1ED9B65CACB8@gromit.dlib.vt.edu> <4E2C8219.6060907@freebsd.org> To: Nathan Whitehorn X-Mailer: Apple Mail (2.1084) X-Mirapoint-Received-SPF: 198.82.161.152 auth3.smtp.vt.edu paul@gromit.dlib.vt.edu 5 none X-Junkmail-Status: score=10/50, host=zidane.cc.vt.edu X-Junkmail-Signature-Raw: score=unknown, refid=str=0001.0A020209.4E2D8E66.0072,ss=1,fgs=0, ip=0.0.0.0, so=2010-07-22 22:03:31, dmn=2009-09-10 00:05:08, mode=single engine X-Junkmail-IWF: false Cc: freebsd-ppc@freebsd.org Subject: Re: "sysctl -a" hangs multiuser boot X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jul 2011 15:40:53 -0000 On Jul 24, 2011, at 4:35 PM, Nathan Whitehorn wrote: > On 07/19/11 11:19, Paul Mather wrote: >> I'm having problems with a kernel built today from a csup done today. = I'm using an Xserve G5 running FreeBSD/powerpc64 9-CURRENT. The system = will not boot up multiuser: it hangs at "Entropy harvesting: interrupts = ethernet point_to_point" and gets no further. I can't Ctrl-C to get the = boot past that point. >>=20 >> It appears it is the "sysctl -a" in the entropy kickstart portion of = /etc/rc.d/initrandom that is causing the problem. >>=20 >> If I do "sysctl -a" manually it will produce output so far and then = no further. Here are the last few lines before it stops outputting = anything more: >>=20 >> [[...]] >> hw.usb.ugen.debug: 0 >> hw.usb.power_timeout: 30 >> hw.usb.uhub.debug: 0 >> hw.usb.no_pf: 0 >> hw.usb.proc.debug: 0 >> hw.usb.pr_recovery_delay: 250 >> hw.usb.pr_poll_delay: 50 >> hw.usb.uhid.debug: 0 >> hw.usb.ukbd.no_leds: 0 >> hw.usb.ukbd.debug: 0 >> hw.usb.ums.debug: 0 >>=20 >>=20 >>=20 >> The system doesn't hang, but console input ceases to work and I can't = SSH into the system any more. I can still ping the machine, but ping = times vary wildly, e.g., >>=20 >> 27 packets transmitted, 26 packets received, 3.7% packet loss >> round-trip min/avg/max/stddev =3D 57.076/708.818/1395.450/280.318 ms >>=20 >> Those ping times are way higher than normal. Here is an example of = pinging the machine when it is not under the influence of doing a = "sysctl -a": >>=20 >> 23 packets transmitted, 23 packets received, 0.0% packet loss >> round-trip min/avg/max/stddev =3D 0.421/0.591/0.758/0.096 ms >>=20 >>=20 >> Also, at occasional intervals, this will be output on the console = after having done a "sysctl -a": >>=20 >> max66900: iicbus read failed >>=20 >>=20 >=20 > Could you please try the attached patch? >=20 A new kernel built with the patch can successfully execute "sysctl -a". = Thanks! Cheers, Paul. From owner-freebsd-ppc@FreeBSD.ORG Fri Jul 29 03:28:25 2011 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88328106566B for ; Fri, 29 Jul 2011 03:28:25 +0000 (UTC) (envelope-from superbisquit@gmail.com) Received: from mail-pz0-f44.google.com (mail-pz0-f44.google.com [209.85.210.44]) by mx1.freebsd.org (Postfix) with ESMTP id 66C878FC0A for ; Fri, 29 Jul 2011 03:28:25 +0000 (UTC) Received: by pzk5 with SMTP id 5so16262473pzk.17 for ; Thu, 28 Jul 2011 20:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=10Ivh1cdjVHACOPIEVqxyiBeSJesqT9NubDVnnsc3cA=; b=byxKuoUqx31+4ttiRUxNn8FmErLrDT2/N0vLqhqCkpVEoFeVrLu/DEhMGorb5F5Xen vW+Kv+CR/tz/7MotF9J6objYn1p7Oz4nzrn8K44cdBD/KPt2FWTOa0Ime2a9wX98MXtE j4jFaDSaDsxTVgDjQNZGYqdXea7TnPTEp0B8Y= MIME-Version: 1.0 Received: by 10.68.43.97 with SMTP id v1mr1204807pbl.456.1311910104774; Thu, 28 Jul 2011 20:28:24 -0700 (PDT) Received: by 10.68.57.36 with HTTP; Thu, 28 Jul 2011 20:28:24 -0700 (PDT) Date: Thu, 28 Jul 2011 23:28:24 -0400 Message-ID: From: Super Bisquit To: FreeBSD PowerPC ML Content-Type: text/plain; charset=ISO-8859-1 Subject: FreeBSD-10 and FreeBSD-9.X, When are they planned? X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2011 03:28:25 -0000 I'm curious as to what the foreplannned schedule is for PowerPC.