Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1216727

RE: [PATCH 3/3] PM / hibernate: Remove the restriction when checking memory size before/after hibernation

From "Chen, Yu C" <yu.c.chen@intel.com>
Newsgroups linux.kernel
Subject RE: [PATCH 3/3] PM / hibernate: Remove the restriction when checking memory size before/after hibernation
Date 2015-09-01 12:00 +0200
Message-ID <q3Qw9-2Zo-1@gated-at.bofh.it> (permalink)
References <q1ZtT-5E6-3@gated-at.bofh.it> <q1ZtU-5E6-29@gated-at.bofh.it> <q2kym-2kM-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hi Ingo, thanks for your review/suggestion,

> -----Original Message-----
> From: Ingo Molnar [mailto:mingo.kernel.org@gmail.com] On Behalf Of Ingo
> Molnar
> Sent: Friday, August 28, 2015 1:38 PM
> To: Chen, Yu C
> Cc: tglx@linutronix.de; mingo@redhat.com; rjw@rjwysocki.net;
> pavel@ucw.cz; hpa@zytor.com; Brown, Len; yinghai@kernel.org;
> joeyli.kernel@gmail.com; Zhang, Rui; linux-pm@vger.kernel.org; linux-
> kernel@vger.kernel.org
> Subject: Re: [PATCH 3/3] PM / hibernate: Remove the restriction when
> checking memory size before/after hibernation
> 
> 
> * Chen Yu <yu.c.chen@intel.com> wrote:
> > +	/*
> > +	 * No need to check num_physpages with get_num_physpages
> > +	 * as we did before(please refer to git log), because
> > +	 * is_nosave_page will ensure that each page is safe
> > +	 * to be restored.
> > +	 */
> >  	if (reason) {
> >  		printk(KERN_ERR "PM: Image mismatch: %s\n", reason);
> >  		return -EPERM;
> 
> No, this removes a useful sanity check that protects against data corruption.
> 
> If you want to relax it then you should add code that checks whether the
> before/after memory image is truly a superset of each other, and warn and
> deny the hibernation in any other case. (For example when RAM got
> removed or moved.)
> 
OK, I've sent out another patch based on pfn_mapped checking.thanks

Best Regards,
Yu
> Thanks,
> 
> 	Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] PM / hibernate: Fix hibernation panic caused by inconsistent e820 memory map Chen Yu <yu.c.chen@intel.com> - 2015-08-27 09:10 +0200
  [PATCH 1/3] x86: Kill E820_RESERVED_KERN Chen Yu <yu.c.chen@intel.com> - 2015-08-27 09:10 +0200
  [PATCH 3/3] PM / hibernate: Remove the restriction when checking memory size before/after hibernation Chen Yu <yu.c.chen@intel.com> - 2015-08-27 09:10 +0200
    Re: [PATCH 3/3] PM / hibernate: Remove the restriction when checking  memory size before/after hibernation Ingo Molnar <mingo@kernel.org> - 2015-08-28 07:40 +0200
      RE: [PATCH 3/3] PM / hibernate: Remove the restriction when  checking memory size before/after hibernation "Chen, Yu C" <yu.c.chen@intel.com> - 2015-09-01 12:00 +0200

csiph-web