Received: by 10.223.185.116 with SMTP id b49csp1507225wrg; Sun, 4 Mar 2018 03:36:34 -0800 (PST) X-Google-Smtp-Source: AG47ELs5Hbbu5JkpGpyjjaRFaHOryVGJeNgWb3C/8L7nKy9JY/NoPgGt3yrW/5Kf63+pLqOQjRMz X-Received: by 10.101.81.135 with SMTP id h7mr9653173pgq.121.1520163394418; Sun, 04 Mar 2018 03:36:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520163394; cv=none; d=google.com; s=arc-20160816; b=rI5TQsqsHNJXSQ9Jho3ex0UYSw5dT3EoQRuD4qmqO0slmfbEP8RGC+ym2EF699kJwY iDKp82Lsq4yRJ8VA2JQhJ9QldKFuw0lViVkdD4Q53MpbmoEWsvaaT0VTdfz8ARzL/8JQ L2eaobIVp7JBZcWBNl7Tj0yx0m7MvFEkFKHtG2i01gI8qVcrILzA5bufLzijv14PG7ZH YA6M0mOHJUF7KJe6zdd8Btnjr04XYqWdONmN2in7DoI3fi6CK6r74XyQaYgFap3GXHIr Alp5LYEbGhiVcW0PlPPlsDIk2/C1HdXdsujxtLwBOJyVeKH3BD3AlRRqKUCz+hWGzs0m sBhA== 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:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject:dkim-signature:arc-authentication-results; bh=iS9Ulf2h2YjgaVPsFRWKnvUQ8mgWoLrBKhZ64hUmUDU=; b=IjxfRW6PyKUCSnZrpt8JhMrKSRBnzAoo8L84UoGD0gjERRMOg4tPjaF68gJ68Jz8q3 X4PrPgvci8BkyYYdk3GyouArsRAs/e1EM3WxZLhT4c46QrccuKptq2MbMf7QEosd5hCv SkQmxIP452dfsBFOzso0xy9OgJBhZ8O/FfWeWuvMhx9hPBtsWycc6v9aV9ZvfckP0rlH 4LXr5ThgTSjnnjmf5GDNTsDa8BEeiYOoLvQZabN8gWiQJd6QNoLg+cEW/oDRnm47jO7g lr2x8mXqVFuKcSR49Oqi2l8ATOVaMEgs0lWFEMs4ABaNuMA+iENNvMSJXbmvQgFUMLp4 T1JQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IXAF0nd3; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p14si6880908pgn.333.2018.03.04.03.35.44; Sun, 04 Mar 2018 03:36:34 -0800 (PST) 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=@gmail.com header.s=20161025 header.b=IXAF0nd3; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752674AbeCDLJQ (ORCPT + 99 others); Sun, 4 Mar 2018 06:09:16 -0500 Received: from mail-it0-f47.google.com ([209.85.214.47]:55356 "EHLO mail-it0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751844AbeCDLJO (ORCPT ); Sun, 4 Mar 2018 06:09:14 -0500 Received: by mail-it0-f47.google.com with SMTP id n7so6287689ita.5; Sun, 04 Mar 2018 03:09:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=iS9Ulf2h2YjgaVPsFRWKnvUQ8mgWoLrBKhZ64hUmUDU=; b=IXAF0nd3TADHLrv90cS0oIfNp+citPXFKGCRbCfyTgALJl+Uq+KHOpL0/gicsq1Fgz TOAi73RQPzyBoDXFKseztNQ3AELOIO1Vpj7kTXKnGxW3X7jGMgaEUXytMHavyejID/Zd +UcoCM+cgHm4q4kZGF7TUAh7gINCTD7FkJCqWF2yC2a3r/1lcmVPZRN139BHZCWZW5AJ Snmk2VT2HXVowyBLloOZt1ktZuqcKXb/6xrFYECAp6W4Uvco4fCHEpSdOOyE5hs5NB3v HMFqX4hiqUcf3x858JWnLbuSjuJ0Rz0pdmjk50khqTxE5bYmZUJ4vqRSI487oWwyv7Cx 4//g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=iS9Ulf2h2YjgaVPsFRWKnvUQ8mgWoLrBKhZ64hUmUDU=; b=UAxu6Ntih+PSj1Iljcp4/gv+XvTXqdh9qJiTjA6W+CBK1ZGBdYlT1fThwSOCdZgaKp jgmsnOXpmdZYJnJ7HfrrK87ffRzRPvA5bFGKs+zfuKX3uMhYc/9xPiVHdIAuq3Bkh9zZ 1iZPDEkYueajMOut/rCT0Rq4GQQ2rjFAXEspHxJLavKKmBNtaEoRusxbUi+7YOa51LQj eRmRvB21yV083GFQG4TyDPfcJDEV1lRb5CQK5+Nrn5R7iQLOU5CMI0uWAO0uYPOnMaXz Lcd87e87LLhhykXrWuaZwpYQ+Xrkg/m9tnnIUCWPfkVKy1bizfeQxFXCBR4i3YxRUmwa 9OrQ== X-Gm-Message-State: AElRT7HCz4zuJw8YmanRndFb0IbEJEMe14Lw+eXegDFLo3LiUoAigqW4 nGJy6HQSmD4QWHoFFAhH7qKq X-Received: by 10.36.70.210 with SMTP id j201mr9638526itb.8.1520161752769; Sun, 04 Mar 2018 03:09:12 -0800 (PST) Received: from [120.7.1.38] (24-212-162-55.cable.teksavvy.com. [24.212.162.55]) by smtp.gmail.com with ESMTPSA id u129sm3090792itb.5.2018.03.04.03.09.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 04 Mar 2018 03:09:12 -0800 (PST) Subject: Re: Fwd: Re: Hibernation on i386 failure... To: Pavel Machek Cc: "Rafael J. Wysocki" , Linux-pm mailing list , kernel list References: <1cd7fdbb-3b3e-02b5-743b-2cc8c4d755b5@intel.com> <92900026-5110-bde7-fba2-89d545bca29a@gmail.com> <20180109223047.GA26431@amd> <20180303210617.GA22392@amd> <20180304082547.GA7931@amd> From: Woody Suwalski Message-ID: Date: Sun, 4 Mar 2018 06:09:11 -0500 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.2 MIME-Version: 1.0 In-Reply-To: <20180304082547.GA7931@amd> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pavel Machek wrote: > On Sat 2018-03-03 19:03:48, Woody Suwalski wrote: >> Pavel Machek wrote: >>> Hi! >>> >>>>> On Tue 2018-01-09 16:54:51, Woody Suwalski wrote: >>>>>> Hey Pavel, so you have found that issue earlier... Do you have a patch to >>>>>> try? >>>>> Did I? I do not remember clearly. >>>>> >>>>> Anyway, here are my hibernation-related patches... Absolutely no >>>>> guarantees. >>>> Pavel, here is my attempt to convert your patch to 4.15 git, it builds >>>> cleanly, and it does not work. If you have a moment to spare - could you >>>> check if it is a classic case "everything is good, just does not >>>> work"? >>> Sorry for the delay. >>> >>> I've tested today's linux-next, and hibernation works for me, no >>> patches needed. >>> >>> Best regards, >>> Pavel >> My January tests have showed that hibernation does work if I turn off the >> CONFIG_RELOCATABLE option. >> So can you confirm that you have it enabled and it works again? I will try >> it on 4.16-rc4 tomorrow... > I was actually testing with linux-next: > > commit 80253003d5da3b82d6bebfb755a04c24011e90e2 > Author: Stephen Rothwell > Date: Fri Mar 2 14:17:11 2018 +1100 > > Add linux-next specific files for 20180302 > > # git clone > git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git > # git fetch linux-next > # git fetch --tags linux-next > git remote update > # then: git checkout next-20170201 > > And yes, I do have CONFIG_RELOCATABLE on: > > CONFIG_RELOCATABLE=y > # CONFIG_RANDOMIZE_BASE is not set > CONFIG_X86_NEED_RELOCS=y > > Best regards, > Pavel Almost there. Yes I have noticed the linux-next, but I wanted to see first if the same does not work in the mainline - then it would have pointed to the difference between the branches. However the important part is your "CONFIG_RANDOMIZE_BASE is not set". Try to turn it on and check hibernation. I have used the CONFIG_RELOCATABLE entry, because it turns off the randomized automatically, and on its own it I had no use for it. BTW. turning the relocatable field on by default also brings randomization on, so you must have specifically disable it. Why? So the real issue is: can the 32-bit kernel use randomization, _and_ hibernate on linux-next??? Thanks, Woody