From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752323AbcG2IOU (ORCPT ); Fri, 29 Jul 2016 04:14:20 -0400 Received: from mga04.intel.com ([192.55.52.120]:7287 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750806AbcG2IOQ (ORCPT ); Fri, 29 Jul 2016 04:14:16 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,438,1464678000"; d="scan'208";a="1004751536" Date: Fri, 29 Jul 2016 16:22:10 +0800 From: Chen Yu To: Pavel Machek Cc: Linux PM , "Rafael J. Wysocki" , Len Brown , Linux Kernel Mail List Subject: Re: [PATCH][v6] PM / hibernate: Introduce test_resume mode for hibernation Message-ID: <20160729082210.GA8125@sharon> References: <1469154647-5860-1-git-send-email-yu.c.chen@intel.com> <20160728193206.GC8837@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160728193206.GC8837@amd> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 28, 2016 at 09:32:06PM +0200, Pavel Machek wrote: > On Fri 2016-07-22 10:30:47, Chen Yu wrote: > > test_resume mode is to verify if the snapshot data > > written to swap device can be successfully restored > > to memory. It is useful to ease the debugging process > > on hibernation, since this mode can not only bypass > > the BIOSes/bootloader, but also the system re-initialization. > > > > To avoid the risk to break the filesystm on persistent storage, > > this patch resumes the image with tasks frozen. > > > > For example: > > echo test_resume > /sys/power/disk > > echo disk > /sys/power/state > > > > > > Suggested-by: Rafael J. Wysocki > > Signed-off-by: Chen Yu > > Acked-by: Pavel Machek > > (And yes, I'd still like documentation patch for this, but that can be > done in separate patch.) > Thanks! Will update the doc in another patch. Yu