All of lore.kernel.org
 help / color / mirror / Atom feed
From: Laurent Badel <laurentbadel@eaton.com>
To: "Rafael J . Wysocki" <rjw@rjwysocki.net>,
	Pavel Machek <pavel@ucw.cz>, <linux-pm@vger.kernel.org>
Cc: Laurent Badel <laurentbadel@eaton.com>
Subject: [PATCH 0/1] PM: hibernate: Fix swap file marking
Date: Fri, 22 Jan 2021 17:19:40 +0100	[thread overview]
Message-ID: <20210122161941.1080-1-laurentbadel@eaton.com> (raw)

It seems that the swap writer might need be flushed after marking the 
signature into the swap files, otherwise the system may power off before
the signature is written. This is what happened on my system (the swap 
file was missing the hibernation signature) and this patch allowed it
to restore from the hibernation image. 

I don't know if it might be due to a peculiarity of the system I am using,
it is a custom board with an iMX28 SoC and the hibernation image is stored
on the gpmi nand flash.

Best regards,

Laurent

Laurent Badel (1):
  PM: hibernate: flush swap writer after marking

 kernel/power/swap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.17.1



-----------------------------
Eaton Industries Manufacturing GmbH ~ Registered place of business: Route de la Longeraie 7, 1110, Morges, Switzerland 

-----------------------------


             reply	other threads:[~2021-01-22 17:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-22 16:19 Laurent Badel [this message]
2021-01-22 16:19 ` [PATCH 1/1] PM: hibernate: flush swap writer after marking Laurent Badel
2021-01-25 17:55   ` Rafael J. Wysocki

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210122161941.1080-1-laurentbadel@eaton.com \
    --to=laurentbadel@eaton.com \
    --cc=linux-pm@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=rjw@rjwysocki.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.