Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp56848imm; Thu, 20 Sep 2018 15:06:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZQiyaAH8oAOHH/jxiHRnWt/Pl3B/u2YCkKQcyOd3qyvA/OvufNLHN8lFi/saZFGfgOT8Hx X-Received: by 2002:a63:ea43:: with SMTP id l3-v6mr4322pgk.427.1537481204450; Thu, 20 Sep 2018 15:06:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537481204; cv=none; d=google.com; s=arc-20160816; b=RKKbfVyutYWBOgjlTT84mXxbBpHnwuFKf/ZACZZMTO1XuKmKpe4ECdKZRXpi4/dwu5 TRWcNT6PMY8QXh0mKNXczxRJMRzH0+xQVgks70+TJnOXRm1Dn7HCPBiSgu9+igAsjZKq 0Ax2tel67+sCWBHF7sBTOT7iqL1WNxQTkpcvaNjIbdIItWeNr7ysIXagZMjzJ2Up+72Y nis75QP0AS9NlTdvQQrA7vxFIiyBwOFbpnuf1YUqloRhxinLRfpSzXWW6Pu7L4cjvOuc bEAD/4f0LWYAHVetx80tOrti3PWeipAxw0MUhfj3xegnpzUrLGwLl4dmG/1ejmqAzx7u SHOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=W3hjvrvSWT6oBgLUSkOKpk4RvOfy7y3bnovIC2uVyTc=; b=MLUAwrhkBSr3Q04C11raVvApbqJzm16U6L9S+i8XQMFYUmx9xGKINLEuer1CyboVWE GdhI1ioex3jtAWF8nJZ3mvjSchZjNbC/ILC4L70gONG+lLJj80hlGooKNTRFrcZasw7u dLLAIPlz6TNT+D1KXZM+xkj5pvxvQtVVDSr6VsFPbyghx8FFpiOT34D2raHMM3vTqsIQ yukffdUecFyACE9pOSwDzPsTcOwlGt0dXs4wmaxpni51ZgBXp/zFjJIQ0GkVLABnqYuq 7ZnOqnKF0T0QbWOOM5QfIFbRFPiVdJ7SmHFFVFYSCPN7qlsLekJMGrR9R6jRswyTf1Fp nUzA== 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 b23-v6si24938668pgj.571.2018.09.20.15.06.29; Thu, 20 Sep 2018 15:06:44 -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 S2388875AbeIUDve (ORCPT + 99 others); Thu, 20 Sep 2018 23:51:34 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:55828 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388716AbeIUDvd (ORCPT ); Thu, 20 Sep 2018 23:51:33 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 22EE080749; Fri, 21 Sep 2018 00:05:54 +0200 (CEST) Date: Fri, 21 Sep 2018 00:05:53 +0200 From: Pavel Machek To: Chen Yu Cc: Thomas Gleixner , "Rafael J. Wysocki" , x86@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Len Brown , Zhimin Gu Subject: Re: [PATCH 10/12][RFC v3] x86-32, hibernate: Switch to relocated restore code during resume on 32bit system Message-ID: <20180920220553.GL27468@xo-6d-61-c0.localdomain> References: <7a562ef6f77ff83c1fbdc6a2ecc7af387ce1fd71.1537275915.git.yu.c.chen@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7a562ef6f77ff83c1fbdc6a2ecc7af387ce1fd71.1537275915.git.yu.c.chen@intel.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed 2018-09-19 15:43:12, Chen Yu wrote: > From: Zhimin Gu > > Code should be executed in a safe page during page > restoring, as the page where instruction is running > during resume might be scribbled and causes issues. > > Backport the code from 64 bit system to fix this bug. On 32 bit, we only suspend resuming by same kernel that did the suspend. 64 bit does not have that restriction. So 32 bit code should not be actually bugy. > Cc: "Rafael J. Wysocki" > Signed-off-by: Zhimin Gu > Signed-off-by: Chen Yu But we'd like to remove that restriction in future, so: Acked-by: Pavel Machek