Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp691084ybi; Fri, 31 May 2019 07:33:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqzwGM8VUrGtY3lMPXCrd4DDKOOMH3a/uP9Kv3PvguQD6NcqVWek5uuVK2DHM8Pui6fBS9Yk X-Received: by 2002:a17:90a:bc42:: with SMTP id t2mr9759862pjv.107.1559313219929; Fri, 31 May 2019 07:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559313219; cv=none; d=google.com; s=arc-20160816; b=E4J4TiSut3Gyh9ERYrhLLGDKWRUQnFVuTLhPtBFM9DkMh2izqC26ekurFOGNtl47TJ w1ymx47qrnw5VaiHmx4Ja34ncfxSUgh335wvKDW+0hUWOWp7dDiUfGnJRTJEvhZ+GgXV 5oUhvN/TMk8eb0iuMgIS5j03Peib2BMmisjkrK0DTZa/FwmzjEF85NcjzymPJyNocy9g W63QsysB6xaV0N5/ZY0YnRHmneFgqPdgodZO/+MSefNuUXtnD5Rs4w8ojJRuyZxCM731 ELc2GYiUT4dRXIguTKcq+xPIxGQxfbURkC6Aj5jT6+PKK2WM7LdZZ225kj6IrJDHz5aR 29rg== 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=vrSdVQ3I05SVgSQ3rxP27EW8lX4KZbkYleJJEBism4M=; b=fYcvlYWu9rp5YTpw92PrCCbH+kc9lKSB+zcQG7/tQF69pf51CmieEVAdnnPWtrTUSf AvDqI3RN16g2/Q7BRY1x1v0vce9KMfZwBu3/2tJTxwzrih4HHSVMqW76yYE20jCD7+y7 ebQSe32vQnDIxlGlwdEfZw/8sf97x/ONgfn+aVaoVZNd/Qej6lUG2YsPk4ym+P6KLahV klA9hQ8q4HwXoEXLWc3VMvvgDQKaWeFC4ezcIzNg7LjPp2LohCfwDJYiH3pbxJs9W8Te HTXnGAZNJh+R13qUIweY3bmINmzytij9K5by6IWXOKMdA7FyRXg2s0LF7cObkagNald8 S0ow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dFv1PZB+; 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 j91si6476112pld.267.2019.05.31.07.33.15; Fri, 31 May 2019 07:33:39 -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=dFv1PZB+; 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 S1726776AbfEaOcC (ORCPT + 99 others); Fri, 31 May 2019 10:32:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:50248 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726418AbfEaOcB (ORCPT ); Fri, 31 May 2019 10:32:01 -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 E3A0526AA4; Fri, 31 May 2019 14:31:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559313121; bh=BJaq/gCxh2F9IzWlqp5lUeCK+g1V/HOJkpE9nZ5AYdw=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=dFv1PZB+n6hJGe+t4cqnp6mVtrYdBvkOqT/OVfG9dO3JxZk8GuQymNIIeWfcYKEEr V+Vay3NAquyI+exdd/LJCoi/TQ2JEuG6uSoT7FRuMeRkfHThGv7lpCVOwnfICZrVlP /OlQ3rUqKGcGKzn2hpqJzv9+HXkRpxX5+ygMSKls= Date: Fri, 31 May 2019 16:31:56 +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, 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. [1] https://lore.kernel.org/lkml/nycvar.YFH.7.76.1905291230130.1962@cbobk.fhfr.pm/ Thanks, -- Jiri Kosina SUSE Labs