Received: by 2002:ac0:950e:0:0:0:0:0 with SMTP id f14csp1524imc; Fri, 15 Mar 2019 13:22:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqxNmLOMJJIrORHxLlNGem49NnsAPv2C05oKULv45pKvEpK2pxOd+L45lkMN15oLQ/R0r400 X-Received: by 2002:a62:5c4:: with SMTP id 187mr5864904pff.153.1552681333546; Fri, 15 Mar 2019 13:22:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552681333; cv=none; d=google.com; s=arc-20160816; b=lDaJ0poQlKRkGMkjm+vOoGzlr3nkrt7fcjywv67AJWL8llWZ/2TbY0m2dgJFmpYYEg CLkxUhPRw03RH/cyPX7RuRfI8l1jmwMPjqyzI91UF9O73eyxw+BKI9QH7QjTovegWm1i pH8cY2ZidHTg62qnjCm1otPlVdGTQgOeFKuYqa0VArS4SXoUFcAdg2wYjEE7ZD2znyV8 kYte1dhv9ukq0HZmbdj7A1M0UjZhaPfB5oHTchh1hKJOX9kzsRGpsTuS32K51Jml7lUw Ur41w7Q6OW9vQGrIrz2KHLu/GwnURDt8nhh3Guug6jyCikvSmAzs6XJhdhwmgsPtkH/W SyJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=0ifRgTzX3nf6OmDFiqVjqSX9JADkticdYBzTIE/1w5g=; b=hJn5Krbqg/TROWHqXWUcL3I5j3GsDjJB4ocYYh3wYRYam1O3jpvEMgaewqgIYYIwj4 y2gE1J5GTyR7xqyK1tcew+B54GtRSGfhqvRWwgoscvKu/5qTgaR7YsxY9aHOfSykcBi2 QGDF6ziUqrR4I2801OS6glzxvXBTXuXRlCl+183iPXlEx2bcVx/AO1aoBYZYs5IWeCCP AwMwDJINdhoglp3pAugGpQesMBNHCfM4Dul04ew/s9lrpZv2rZVu4sLns316lA53KgBw njTfI9dmOqRhWAlTorkHfGzro/lGEMAzBnEzJ6j/HmWObYwQsP1P9wcNYbzpLOEpghqy pBrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mathtm.de header.s=strato-dkim-0002 header.b="Knzwm/SS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si2490739pgq.539.2019.03.15.13.21.56; Fri, 15 Mar 2019 13:22:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@mathtm.de header.s=strato-dkim-0002 header.b="Knzwm/SS"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726511AbfCOUVP (ORCPT + 99 others); Fri, 15 Mar 2019 16:21:15 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.220]:18490 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726326AbfCOUVP (ORCPT ); Fri, 15 Mar 2019 16:21:15 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1552681268; s=strato-dkim-0002; d=mathtm.de; h=In-Reply-To:Date:Message-ID:From:References:Cc:To:Subject: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=0ifRgTzX3nf6OmDFiqVjqSX9JADkticdYBzTIE/1w5g=; b=Knzwm/SSEdNhb2Y0EL+lOBJGKs2qTC0vdrdybHHh/CcsjKLm3a5y/trWSIt+JIEm5B H9OciEfsiMmcTj8m6+F7RxBlXmJ8uv4b24IBqDXaFU+tP7lVrFe04FJPs2D5dwCQXAuo fmkSNwFwSiTBg5g5fpjUZi8qwvZFh8Xps6FOOVMU93K36jX4JTqHuK3T2VqF87B8OMXn L37UQTcGzJSDtCNfMz7QwBzk1cVcBjOqTmn05tGKpLZpm/FPnjx8+f6M13ht3aoLSy6z R9aB6zcYrpyCzl3JyMxnkIglHUAmxmp/LZQLJOpGTRwkxuUCkUhsHY6RzGv7jCTACYyi ga3Q== X-RZG-AUTH: ":OGQLeEG7W/KAXU7xLV2hdHgxFRdqbfEqQfblTbv8grSYpDW1Eaj6FvvOcjigVdGPh5DhF+qnevIOn9P3RmBEJvyulaz8y/n6Yk8=" X-RZG-CLASS-ID: mo00 Received: from [IPv6:2003:cb:3740:e000:a481:fc47:16dd:4cc6] by smtp.strato.de (RZmta 44.16 AUTH) with ESMTPSA id e091ffv2FKL26ZN (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Fri, 15 Mar 2019 21:21:02 +0100 (CET) Subject: Re: disabling secondary CPU hangs / system fails to suspend with kernel 4.19+ To: Peter Zijlstra Cc: linux-kernel@vger.kernel.org References: <5c48095e-028a-404f-aaa1-964f83c83817@mathtm.de> <20190315090950.GT5996@hirez.programming.kicks-ass.net> <20190315121541.GD6058@hirez.programming.kicks-ass.net> From: =?UTF-8?Q?Thomas_M=c3=bcller?= Openpgp: preference=signencrypt Autocrypt: addr=thomas@mathtm.de; prefer-encrypt=mutual; keydata= mQINBFBAwwQBEAD6UqItxt6H5dgJChVeNlJNyIiyhLrtzpM6ZEpKpbVwewYRvVjeZMXH+Roj r+1jEK3CkeGH4hBo2VxJSZBF1J6iyD6NhJ2tpQ5/kXR91hG+QHoyqlVvbZHeP9syKE0EdPzY 1bekSSjccn3l862NDht7OBZq9i4efi5K9SxkvLYZDzGLFFXdltT3ULs7IHPJxMqZozXRqzCT eKhLc8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SEjRfKpwz ftSQbok/hXyXsWTSqZzVgDZlnxI2t3q+Knt/8nkNKLAZb60Z0xoAyE+bk0hSuAkIuyE9OdF5 tslxDnEb2PCTr+TtP5ldr1IrRzei4SNpzsLAtcgPmp6OfhXGpCmf9tnCPCREBPkQKG43jI5A 8s2YWQvNBiuNQeLY4Bz+ivBVdO6oJCXmY/9nx2x8YojbU7TXHpeVVtzTHsyGKcJ836d27oWL m8Yd/Zqbj19AAegAup5Po/M9dI4VqjKcCQKErJc+eu35obEk4ns+vkI9LfXRTVvto9Fc2mbB ca5svD5zeV6yOTY/lr9wHEAAmkXXg3Qt0QmfSPeeJ3/3zGlHOQzU0LKPZ1ld6fEzLMvP7XbH Efrcr9Nvu2KwQl5+dkVHxIZbJF0PQm4TctAChZ2/goxqTaRFb5kajk1HtYZPu3rUgNxgDfvF YFAvk8wePA/gGXZ6JhLwo3AoNXwM4pKFuGEDb3JiKwdctrw0QNqDa4bgia4AyvDZbn5S+h0o Vlsd/Dj2GMPP+MXYWtEruPcwdB4GZKTGWS/hPXtjB8sUllyamYNfSWkNpjpxph/7Xlg= Message-ID: <2b1c85d3-d94b-1593-e30a-a32d97043579@mathtm.de> Date: Fri, 15 Mar 2019 21:21:02 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190315121541.GD6058@hirez.programming.kicks-ass.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Am 15.03.19 um 13:15 schrieb Peter Zijlstra: > On Fri, Mar 15, 2019 at 12:41:00PM +0100, Thomas Müller wrote: > >>> What .config do you have? >> The one packaged by Fedora. I've attached the one for 4.20.15 as reference. > > Thanks, I'll have a poke, see what, if anything, is different from the > kernels I ran. > >>> And what, if anything do you see on the >>> console when it goes funny? >> Nothing unfortunately. >> When trying to suspend the display immediately goes blank, the system becomes unresponsive and the >> status LED within the power button start flashing rapidly (just like it does when the power cord is >> attached). >> >> >>> I think you wrote that hot-un-plug never completes? Is there anything in >>> dmesg when it's stuck in: >>> >>> echo 0 > /sys/devices/system/cpu/cpu1/online >>> >>> ? >> I've just tried that again and the system immediately froze. > > Hmm, I tought you said the system remained semi usable, just that reboot > stopped working thereafter and it needed a power cycle. > >> `journalctl -f` was running in a second window but it had no chance to output anything... :/ > > Ah, you're using a GUI! > > Stop doing that ;-) Easier said than done ;) > See if you can use the VGA console; not a FB console or a DRM console, > but the real ancient, proper text mode, VGA console. I've just re-tested with runlevel 3. Not a real VGA console, but at least no Wayland or Gnome to interfere... `echo 0 > /sys/...` just blocks and no message whatsoever is visible in dmesg. I've executed `echo 0 > ...` in the background to keep my console functional and I can e.g. echo something to /dev/kmsg and it shows up, so reading/updating the log buffer appears to be working just fine. A power cycle is still necessary to recover the system. > Now, don't ask me how to do that, because I don't know, I've been > running on pure serial console output for the past 10 years or so, heck > I don't even have systemd. > > And you might have to do something like: dmesg -n8, to get the console > to print the kernel messages or something. >