From owner-freebsd-stable@FreeBSD.ORG Tue May 20 06:13:39 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 59B33278; Tue, 20 May 2014 06:13:39 +0000 (UTC) Received: from mail-yh0-x230.google.com (mail-yh0-x230.google.com [IPv6:2607:f8b0:4002:c01::230]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 019E520A9; Tue, 20 May 2014 06:13:38 +0000 (UTC) Received: by mail-yh0-f48.google.com with SMTP id a41so1777yho.35 for ; Mon, 19 May 2014 23:13:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=O9WwshyuqKiSTiYBuIWVOHPR9MEZWlxKBJdAUJFNXy0=; b=anm/EbpY809up5UTWYYJ3iJ7lNn54C0yQ3v62TOmOudlaEO69vGeg2wblDksXXJKsN CbcxF/z7i6jMc1mgYewKTI/6T2h7YsIt5+d8aMNTwqvdP5KM4doTFdkIzlF6N7lSRMEG u9ofjwRNZeuiaV+QN03ahoQici41zvKiidh154FbKh/LT1rQY44K8mwzwxLq3lonnACs lKOqi7gSwMl4A3/471KRrRMFwKYPo3FyedkH3UAc8nwB873u/izEL0vLKVhJTV62hePX y9CxUWIAjN0l6qVSdMy7B9/aUK7zqOZeEWxterGvJp+4UD/IxOSE4+igVsWCIlsKE6aj EiOw== MIME-Version: 1.0 X-Received: by 10.236.44.41 with SMTP id m29mr43505886yhb.57.1400566418226; Mon, 19 May 2014 23:13:38 -0700 (PDT) Received: by 10.170.154.212 with HTTP; Mon, 19 May 2014 23:13:38 -0700 (PDT) Reply-To: huanghwh@gmail.com In-Reply-To: <537A0121.6090102@freebsd.org> References: <537A0121.6090102@freebsd.org> Date: Tue, 20 May 2014 14:13:38 +0800 Message-ID: Subject: Re: r266165: powerd hang sytem on MacbookPro 2013 From: Huang Wen Hui To: Colin Percival Content-Type: text/plain; charset=UTF-8 Cc: Adrian Chadd , "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: Tue, 20 May 2014 06:13:39 -0000 2014-05-19 21:03 GMT+08:00, Colin Percival : > 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? OK, I use sysctl dev.cpu.0.freq=xxxx many times, all freq change cause 100% hang, detail: freq 1000, 1200, 1500, 1700, 1900, it hangs after some time. freq 800, 2100, 2600, it hangs immediately, but not 100%. freq 2400, it always hangs immediately, I could not see command sysctl return message. I think I got the same hang, keyboard and ethernet no respond, but no panic message. > > 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 > >