From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752346AbdBMICU (ORCPT ); Mon, 13 Feb 2017 03:02:20 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:48618 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752325AbdBMICT (ORCPT ); Mon, 13 Feb 2017 03:02:19 -0500 Date: Mon, 13 Feb 2017 09:02:15 +0100 From: Pavel Machek To: Woody Suwalski Cc: "Rafael J. Wysocki" , kernel list , tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com Subject: Re: 4.10-rc1: thinkpad x60: who ate my cpu? Message-ID: <20170213080215.GA3730@amd> References: <20170108221721.GB4878@amd> <20170109093001.GA30709@amd> <41553b16-c527-d99b-b56b-31d6a08a7e8a@gmail.com> <20170114113054.GA22012@amd> <20170115095656.GA16524@amd> <1614c21c-3626-074e-e3c3-26e9cd200454@gmail.com> <3c3d35ac-e4e4-6a6c-a78e-b0478ff39726@gmail.com> <20170212195742.GA6264@amd> <161a3edb-84f1-769d-d8e9-04102ddbbe58@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PNTmBPCT7hxwcZjr" Content-Disposition: inline In-Reply-To: <161a3edb-84f1-769d-d8e9-04102ddbbe58@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PNTmBPCT7hxwcZjr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >>>And now it is: > >>>[692517.868523] ACPI: Preparing to enter system sleep state S3 > >>>[692518.172074] ACPI : EC: EC stopped > >>>[692518.172076] PM: Saving platform NVS memory > >>>[692518.172269] Disabling non-boot CPUs ... > >>>[692518.172269] ACPI: Low-level resume complete > >>>[692518.172269] ACPI : EC: EC started > >>>[692518.172269] PM: Restoring platform NVS memory > >>>[692518.172269] ACPI: Waking up from system sleep state S3 > >>> > >>>Is there any test I could do on the CPU wakeup while in that state? > >>> > >>Is there a way to kick the offline-CPU into operation from /sys level? > >echo 0 > /sys/devices/system/cpu/cpu1/online > > > >should work. And... good thinking :-). > > Pavel > Did not work, > echo 0 > /sys/devices/system/cpu/cpu1/online > -su: echo: write error: Device or resource busy >=20 > However > echo 1 > /sys/devices/system/cpu/cpu1/online > did not return an error ( but still only CPU0 seen) >=20 > Interesting experiment: I have hibernated and then woke up - and still on= ly > CPU0. I was expecting that after the power cycle the hotplug will bring C= PU1 > up... Which is interesting indeed. Hardware was powercycled, so what is broken is probably some kernel state... [Evil: /sys/devices/cpu/ -- some perf stuff. /sys/devices/system/cpu -- that's where real CPU stuff is hiding.] cd /sys/devices/system/cpu/cpu1 while true; do echo 0 > online; echo 1 > online; done =2E..crashes x60 with 4.10-rc in few minutes. [Which is bad -- it should not die, but also good -- this is easier to reproduce then running 100 suspend cycles.] Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --PNTmBPCT7hxwcZjr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlihaAcACgkQMOfwapXb+vIhhwCcCPN4W0H9KH4z9zJZRWsqvhI2 CUYAnRetDqzmFuVKrba2fDPFX/GUIpub =krsn -----END PGP SIGNATURE----- --PNTmBPCT7hxwcZjr--