Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp314311ybi; Fri, 31 May 2019 01:48:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqw8sqKeUnO9Y855EFxLB5Fsvf2uc6TLrVE7c5hwVrpIdXESqL1VariiCA+nNndjqvzOnpdP X-Received: by 2002:a17:90a:bb8d:: with SMTP id v13mr7519360pjr.79.1559292539242; Fri, 31 May 2019 01:48:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559292539; cv=none; d=google.com; s=arc-20160816; b=aJYc0a+qxZq7OZU2t9XwE+roNm0oZ36Cq1xQL0r0mPx8ba1vpdZZHMe0ozGuUowP4c 7DcLpR7qp6BPmWHXjEkEtHCd6/GGUkysfbcXU77fDFJNRR+t/SKX5YtAkVvu6Uuf1DBx mO0ypCOJmDimn0ZkYnWN1l/pdkvjbhUypmUV4w1Q6iSpyKo7cAUgy8Im4P9O5Ppz4k4m T6KeGl+D3m6835WwnvjF/QHf7wjAnNhP/LF0mWBaw3mfa6o1erTp56IRYfaN3p2c3yRx jkIvMmDYpdjraU5A7SJIxoilTS85C0xAtCcfoJ6OeJoLywYLvJYURkw2HrCDnpZAgJCE bbIg== 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=fqUC7fKZAO7euJ9yun16UZi49dFxcGA+qXZXelN8vnI=; b=KIQZ5kYG4o2Ct8moSCtvqOOcq8re7xi2SLK3MvtJZNxY7qrhhVpRm6i5elDmOJtdai r5YC4XY9PPmcZbRTbIgrn6+0FRYOET0aDvfcd3RFYD5Zdqia2fLIrrU+zjXdptqQdfRR V5UUTnsPV+N3/KkxJb/OPTfqkXy9H7DelMZ5wjss9AW8bpoV/6mmrB8RBipnu1XddwmO B5ZUb1Rt83JuT1ynOShm59yHTdre1LjaH0dE6Fccy3sHtsLSgw7xU8xuGPOHIoenamqj TnHulNtc9rvPCzX/YcVPnfg9pxZcusuhkFwKb/GGd/vTGiCNdGyBmaPmoL4S/m5CMMWQ JZNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LsBosZBq; 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 v12si5149617pjn.105.2019.05.31.01.48.43; Fri, 31 May 2019 01:48:59 -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=LsBosZBq; 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 S1727006AbfEaIr2 (ORCPT + 99 others); Fri, 31 May 2019 04:47:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:57312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726002AbfEaIr1 (ORCPT ); Fri, 31 May 2019 04:47:27 -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 253B3206C1; Fri, 31 May 2019 08:47:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559292446; bh=IIaVN1Sed6YeNQgaJd2OLBZP8P14wg5t9mFGKrpWqq8=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=LsBosZBqtOKJ1OYqUUke6mXwXRYOqUy+Ul4wPQoIxfeBsqxdbhJSrGVlsiZCug0Pn g/6ripfj3sQG/05kWEYiCt9ROMJn5gBz3IF8W8DVi8nHHRlDZlyyQyAej+4eD4ERvw gHXuqLhP+2PG+VWeAkvawjMIhmw+59QfGqQq7lF8= Date: Fri, 31 May 2019 10:47:21 +0200 (CEST) From: Jiri Kosina To: Josh Poimboeuf cc: "Rafael J. Wysocki" , Thomas Gleixner , the arch/x86 maintainers , "Rafael J. Wysocki" , 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 In-Reply-To: <20190531051456.fzkvn62qlkf6wqra@treble> Message-ID: References: <20190530233804.syv4brpe3ndslyvo@treble> <20190531051456.fzkvn62qlkf6wqra@treble> 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, 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? Thanks, -- Jiri Kosina SUSE Labs