From owner-freebsd-stable@FreeBSD.ORG Mon May 19 13:09:40 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 220D8D27 for ; Mon, 19 May 2014 13:09:40 +0000 (UTC) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id AA77A29C4 for ; Mon, 19 May 2014 13:09:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=vwNGuEvZ1HhmSeWZNyQmA5fHcpA=; b=xK/xZKj/6ysrahxnbI qEJKQOWW0BL15X0yKJM2By52V/SaeDphf4Bh0Mtij3TtyZdSWpW+Ov2InmmYcp3M FSyF8FHFwwAqe8e4tmF8b3vvW5pWs3pzoQsqW03NK4LzYvk9gwx7lWQhXr2unaAW 6LB0PStC57Tl78OWx4Fti6CQ8= Received: by mf191.sendgrid.net with SMTP id mf191.20288.537A01826 Mon, 19 May 2014 13:05:06 +0000 (UTC) Received: from mail.tarsnap.com (unknown [10.100.60.97]) by ismtpd-013 (SG) with ESMTP id 1461495e481.4a02.7b287 for ; Mon, 19 May 2014 13:05:06 +0000 (GMT) Received: (qmail 25427 invoked from network); 19 May 2014 13:05:05 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 19 May 2014 13:05:05 -0000 Received: (qmail 4692 invoked from network); 19 May 2014 13:03:29 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 19 May 2014 13:03:29 -0000 Message-ID: <537A0121.6090102@freebsd.org> Date: Mon, 19 May 2014 06:03:29 -0700 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Adrian Chadd , =?UTF-8?B?6buE5paH6L6J?= Subject: Re: r266165: powerd hang sytem on MacbookPro 2013 References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-SG-EID: 5qVSvszVOIE6PbdhSmXigGB+QElqqXSFvopX9r8bq1D+JBwOPEoSYKlfOyZt9an04KRNqmr9i5ZkTlfwUSVMTD2bGHNWOura+8fzGcgDQ7xkPdL8ZJn891Z9OVn160cKjJXjbJqpvVDjOOmvIaJ7mUNEk+XBpjw6m+00yKjYd3w= Cc: "freebsd-stable@freebsd.org" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2014 13:09:40 -0000 On 05/18/14 15:43, Adrian Chadd wrote: > On 18 May 2014 08:32, Huang Wen Hui wrote: >> Hi, >> Before r266165, There is no "dev.cpu.0.freq" on my MacbookPro 2013, now I >> got: >> >> #sysctl dev.cpu.0.freq >> dev.cpu.0.freq: 2601 >> >> but If start powerd, system will quickly hang, both keyboard and ethernet >> are not respond. Well, the good news is that r266165 is working: It makes that sysctl visible in situations where it used to be (accidentally) inoperative. The bad news is that you seem to be running into a problem with the now-functional power management code. I suggest disabling powerd in /etc/rc.conf, and manually adjusting the clock frequency using dev.cpu.0.freq. Does it repeatably die at a certain point? Does it die immediately at that point, or after some time? Do you always get the same hang? The most likely problem IMHO is that your CPU isn't actually able to run with the frequency/voltage pairs that it thinks it can run with, and so reducing the clock speed is causing bitflip errors. But if that's the case you will probably see a variety of hangs/panics and they won't always occur immediately. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid