Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp322404ybi; Fri, 31 May 2019 01:59:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwx8hOM8To3bOfEPSexAnXKHXmtCC2S6RWAPnmoZ1C1ZQuaO2KgugrUwQZChvLrWKDmanq1 X-Received: by 2002:a63:1c4:: with SMTP id 187mr7869037pgb.317.1559293148449; Fri, 31 May 2019 01:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559293148; cv=none; d=google.com; s=arc-20160816; b=RqdYiqg63PMRr38JJ9lM+DJx1LyMcSQj+x30gfuP0vI4AD0KKZ5/F8ts2SU3DANGjX WxKEzsmIiXJD7DG/zEl/UrLpfGCDukYuVtSMb/SZ3wQEc7Lbu47GK5G7Q1EDre0FyIGa 6wIc+ryKSlCvUIrBRjJZBjzvG/Gg2wWpTll0nz63dE4oJAR/AYRxwDoXHqi5+SeP/90m UAENhAKFHfWJ7stdS40gBd/TkRfmTZ51Bp23QngyBIfcZUkKk8Uam6y6yIsNUNq2Vgy2 jIbKvtncwe7/FBsi3Frk7WwSxjcPoX+rDLh2OTmtyZ1XQ91pSxe92T68UU1/Jgu4cOsR q5jg== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=l0n9gld/KDnOLE2VftfD42LFUaqccihoo5JOllffXfA=; b=ekWmC4r9oarRqFiW6ENvj63+bY1FBql/wPompu8ZfgOmMDfvNi53PjNZeAZRLFQkbH UfWyO2jQ2pSWHdF8iCgxHy7Jw5YjrnEnr6k+8X0BeKDJ3yIGUSwyj6PYz1ZRDo9E0tm0 dr1jSVLm94zU6oAxWzMK+hPQZjbv0ZyJj5UKPdFo6FmknnudzpEZ+tKtmkHA05UspH43 zU6CRQAOC2yC0tnxmJ6Z7gppqHTcKoKAZFXyvcLbhcqTkZFk1UxZioteVX5ITEjjZFaH U3NiGwowwqbEsglY+c8wNRqempSdsBmjWaJfSZ8hY5c13lvXQijN3W31ggNQzTp/zlop 8j9A== ARC-Authentication-Results: i=1; mx.google.com; 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 z7si5054381plo.274.2019.05.31.01.58.52; Fri, 31 May 2019 01:59:08 -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; 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 S1727291AbfEaI5V (ORCPT + 99 others); Fri, 31 May 2019 04:57:21 -0400 Received: from cloudserver094114.home.pl ([79.96.170.134]:55615 "EHLO cloudserver094114.home.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726934AbfEaI5T (ORCPT ); Fri, 31 May 2019 04:57:19 -0400 Received: from 79.184.255.225.ipv4.supernova.orange.pl (79.184.255.225) (HELO kreacher.localnet) by serwer1319399.home.pl (79.96.170.134) with SMTP (IdeaSmtpServer 0.83.213) id 4045aae7eaa9fce0; Fri, 31 May 2019 10:57:17 +0200 From: "Rafael J. Wysocki" To: Jiri Kosina Cc: 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 , Andy Lutomirski Subject: Re: [PATCH v4] x86/power: Fix 'nosmt' vs. hibernation triple fault during resume Date: Fri, 31 May 2019 10:57:17 +0200 Message-ID: <5564116.e9OFvgDRbB@kreacher> In-Reply-To: References: <20190531051456.fzkvn62qlkf6wqra@treble> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit 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 Friday, May 31, 2019 10:47:21 AM CEST Jiri Kosina wrote: > On Fri, 31 May 2019, Josh Poimboeuf wrote: > > > > I disagree with that from the backwards compatibility point of view. > > > > > > I personally am quite frequently using differnet combinations of > > > resumer/resumee kernels, and I've never been biten by it so far. I'd guess > > > I am not the only one. > > > Fixmap sort of breaks that invariant. > > > > Right now there is no backwards compatibility because nosmt resume is > > already broken. > > Yeah, well, but that's "only" for nosmt kernels at least. > > > For "future" backwards compatibility we could just define a hard-coded > > reserved fixmap page address, adjacent to the vsyscall reserved address. > > > > Something like this (not yet tested)? Maybe we could also remove the > > resume_play_dead() hack? > > Does it also solve cpuidle case? I have no overview what all the cpuidle > drivers might be potentially doing in their ->enter_dead() callbacks. > Rafael? There are just two of them, ACPI cpuidle and intel_idle, and they both should be covered. In any case, I think that this is the way to go here even though it may be somewhat problematic to start with. Cheers, Rafael