Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp693471ybi; Fri, 31 May 2019 07:35:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyHtaFRdV/j/zzLZtmHn45vUZqeP8oQNM+O6hphnKdy0bC7UbrEWO2a/GbP0YqpT8MaHx3r X-Received: by 2002:a17:90a:2908:: with SMTP id g8mr9818636pjd.131.1559313346405; Fri, 31 May 2019 07:35:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559313346; cv=none; d=google.com; s=arc-20160816; b=LV+m2JTo41pfNA+vUoESXGpZ33K5OZTBe2hJQiFiuSGyQU8puVcGyX1VtWX5pPauiV Ow7rvJOUYVd+uK6XnRaGtWB21iNJ8bRy4jGaUaQoQ4QkDmThdE3VbB5NC73/gIxAUygX TFW+xLOsLQR+ny+ILpPvggpwLJELLq4lWp3k6GPsYsrhrkCtkjH+fHmh6wqwm2d9TVXd ZMLiXXTKArr9EAxkSmVSUz+rWn0H7hQozv/9r0w42LizhS+6k0xDTjdfCSI+hCE3G09M 5gkzTwyzMK9g7I41SBOIjxkEI1LeeYGN94QXDKZQ7OqKz8adIPdmdFk56mumeYQDBfv0 kWdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date:dkim-signature; bh=5ZfJvvBV7ZwWOYG+FsyFkr2VJotXJIEWvKf2ZCpsqpw=; b=rq92eH/JV0WKFQuU4qICbsFEXlsx5xVLJwXB/w8K6FsbmiKALtfXMyeqVysxEUWNWB 7FqD6G16HaLx+/yMZmRv+TNiP3fSbpwItHYvOUqcVeQi9J20SA71gPzxdZdHe5KP2V7X Gj5StBtKMYlR6rRL+itY5UwkQnXbS8wDT2x04YlmA3bjYW5rVsWqs0j/7ooTorEKkwkn Gseup662E3XJxmwK2Dea986p4BsR+VU4uuNQxTd/IzmVAD44bstkAJP6xJU0qZ8zU6Db 3Y6kqMOVywaLqgQBC7Z3Xll7nGkeR9/OB0Fl/1hKXxgXKDQlS2+JysZLkeo3Ls3ronu8 5pRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PkxOkx58; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k29si6335943pgl.157.2019.05.31.07.35.28; Fri, 31 May 2019 07:35:46 -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=pass header.i=@kernel.org header.s=default header.b=PkxOkx58; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726935AbfEaOd5 (ORCPT + 99 others); Fri, 31 May 2019 10:33:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:53692 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726559AbfEaOd4 (ORCPT ); Fri, 31 May 2019 10:33:56 -0400 Received: from pobox.suse.cz (prg-ext-pat.suse.com [213.151.95.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 730B326AB4; Fri, 31 May 2019 14:33:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559313235; bh=1nBozZjo2hDOp1xXAXOBbApH4GiAlFWbKx6C42s2Cks=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=PkxOkx58565Eq22i/BEn1YC29YYECsCDhoKy3ADpy8tiE60wXcfiYgCIIk+9ihLx4 ydGw3fjzOieA1GAArshst6SzTAx5aoVVnxWdnrY0j/UDwm0unnfcJou5l/HbMpGtR1 mwgDJ/P6xMrt84IqVzvkzUfweKpX6JaZniDThWJ8= Date: Fri, 31 May 2019 16:33:51 +0200 (CEST) From: Jiri Kosina To: Andy Lutomirski cc: "Rafael J. Wysocki" , Josh Poimboeuf , "Rafael J. Wysocki" , Thomas Gleixner , the arch/x86 maintainers , Pavel Machek , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Peter Zijlstra , Linux PM , Linux Kernel Mailing List Subject: Re: [PATCH v4] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume In-Reply-To: Message-ID: References: <20190531051456.fzkvn62qlkf6wqra@treble> <5564116.e9OFvgDRbB@kreacher> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 31 May 2019, Jiri Kosina wrote: > On Fri, 31 May 2019, Andy Lutomirski wrote: > > > 2. Put the CPU all the way to sleep by sending it an INIT IPI. > > > > Version 2 seems very simple and robust. Is there a reason we can't do > > it? We obviously don't want to do it for normal offline because it > > might be a high-power state, but a cpu in the wait-for-SIPI state is > > not going to exit that state all by itself. > > > > The patch to implement #2 should be short and sweet as long as we are > > careful to only put genuine APs to sleep like this. The only downside > > I can see is that an new kernel resuming and old kernel that was > > booted with nosmt is going to waste power, but I don't think that's a > > showstopper. > > Well, if *that* is not an issue, than the original 3-liner that just > forces them to 'hlt' [1] would be good enough as well. Actually no, scratch that, I misunderstood your proposal, sorry. -- Jiri Kosina SUSE Labs