Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 May 2014 06:03:29 -0700
From:      Colin Percival <cperciva@freebsd.org>
To:        Adrian Chadd <adrian@freebsd.org>, =?UTF-8?B?6buE5paH6L6J?= <huanghwh@gmail.com>
Cc:        "freebsd-stable@freebsd.org" <freebsd-stable@freebsd.org>
Subject:   Re: r266165: powerd hang sytem on MacbookPro 2013
Message-ID:  <537A0121.6090102@freebsd.org>
In-Reply-To: <CAJ-Vmo=b7A3Gap%2B9Z1qiFKbu7ksSioeZTciykB=nMNfvrA_SQQ@mail.gmail.com>
References:  <CAB8uncbQmv%2Beb6n5Gg0M3e5SrQN%2BJrd8-poNznzLfA43X0BMxw@mail.gmail.com> <CAJ-Vmo=b7A3Gap%2B9Z1qiFKbu7ksSioeZTciykB=nMNfvrA_SQQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 05/18/14 15:43, Adrian Chadd wrote:
> On 18 May 2014 08:32, Huang Wen Hui <huanghwh@gmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?537A0121.6090102>