From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: [PATCH v2] Hibernate: check unsafe page should not in e820 reserved region Date: Thu, 7 Aug 2014 11:39:57 +0200 Message-ID: <20140807093957.GB28649@Nokia-N900> References: <1407165801-24648-1-git-send-email-jlee@suse.com> <20140807040543.GE26210@linux-rxt1.site> <20140807080025.GA24700@amd.pavel.ucw.cz> <20140807085203.GF26210@linux-rxt1.site> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:54264 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754269AbaHGJkC (ORCPT ); Thu, 7 Aug 2014 05:40:02 -0400 Content-Disposition: inline In-Reply-To: <20140807085203.GF26210@linux-rxt1.site> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: joeyli Cc: "Lee, Chun-Yi" , "Rafael J. Wysocki" , Len Brown , Takashi Iwai , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org > > Actually, if you are doing such a check... it makes sense to check for > > _all_ the regions, nosave or not. If e820 map changed at all, it is > > not safe to resume. > > Pavel > > Currently nosave region only called register by e820 code, so hibernate's nosave region included e820 > reserved, ACPI data and ACPI NVS region. > > I thought hashing the start/end pfn of above regions is enough. If ammount of memory changed, for example, it is unsafe to resume. So if you are doing the check, anyway, please hash whole e820 table. Pavel