From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 26A2CC28CC3 for ; Fri, 31 May 2019 08:57:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F3EF626616 for ; Fri, 31 May 2019 08:57:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727276AbfEaI5U (ORCPT ); Fri, 31 May 2019 04:57:20 -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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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