All of lore.kernel.org
 help / color / mirror / Atom feed
From: marxdenl <marxdenl@gmail.com>
To: Kirill Tkhai <tkhai@yandex.ru>
Cc: davem@davemloft.net, sparclinux@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: Question about hibernation on sparc64
Date: Mon, 29 Oct 2012 17:44:23 +0800	[thread overview]
Message-ID: <1351503863.6005.15.camel@dlw-desktop> (raw)
In-Reply-To: <1862521351464447@web28d.yandex.ru>

On Mon, 2012-10-29 at 02:47 +0400, Kirill Tkhai wrote:
> 
> 28.10.2012, 19:21, "marxdenl" <marxdenl@gmail.com>:
> > On Thu, 2012-04-12 at 15:48 +0400, Kirill Tkhai wrote:
> >
> >>  Hello!
> >>
> >>  I bumped on the fact that there is no hibernation support
> >>  on sparc64. It's possible that the process of its porting
> >>  will become interesting for me in the future, but I'm not
> >>  exactly sure at the moment.
> >
> > hi, I'm also intersting to do that. How is that going?
> >
> > Waiting for reply:)
> 
> Hi, I did nothing. You may dive into this if you want.

I enabled CONFIG_HIBERNATION, implemented 'swsusp_arch_suspend'
which saves some general registers (%g,%i,%o,%l) and call 
'swsusp_save', and 'swsusp_arch_resume' which load 'pblist' and
restore those registers.

Now my T2 can create hibernation images, but after restore the image, 
it crashes. If there's something I missed?

Thanks!

--
Linwen Deng 


WARNING: multiple messages have this Message-ID (diff)
From: marxdenl <marxdenl@gmail.com>
To: Kirill Tkhai <tkhai@yandex.ru>
Cc: davem@davemloft.net, sparclinux@vger.kernel.org,
	linux-pm@vger.kernel.org
Subject: Re: Question about hibernation on sparc64
Date: Mon, 29 Oct 2012 09:44:23 +0000	[thread overview]
Message-ID: <1351503863.6005.15.camel@dlw-desktop> (raw)
In-Reply-To: <1862521351464447@web28d.yandex.ru>

On Mon, 2012-10-29 at 02:47 +0400, Kirill Tkhai wrote:
> 
> 28.10.2012, 19:21, "marxdenl" <marxdenl@gmail.com>:
> > On Thu, 2012-04-12 at 15:48 +0400, Kirill Tkhai wrote:
> >
> >>  Hello!
> >>
> >>  I bumped on the fact that there is no hibernation support
> >>  on sparc64. It's possible that the process of its porting
> >>  will become interesting for me in the future, but I'm not
> >>  exactly sure at the moment.
> >
> > hi, I'm also intersting to do that. How is that going?
> >
> > Waiting for reply:)
> 
> Hi, I did nothing. You may dive into this if you want.

I enabled CONFIG_HIBERNATION, implemented 'swsusp_arch_suspend'
which saves some general registers (%g,%i,%o,%l) and call 
'swsusp_save', and 'swsusp_arch_resume' which load 'pblist' and
restore those registers.

Now my T2 can create hibernation images, but after restore the image, 
it crashes. If there's something I missed?

Thanks!

--
Linwen Deng 


  reply	other threads:[~2012-10-29  9:44 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
2012-04-12 16:32 ` David Miller
2012-04-12 18:59 ` Alex Buell
2012-04-12 19:22 ` David Miller
2012-04-12 19:26 ` Sam Ravnborg
2012-04-12 23:04 ` Julian Calaby
2012-04-13  9:55 ` Kirill Tkhai
2012-04-13 14:50 ` David Miller
2012-04-16 20:11 ` Tom Callaway
2012-04-16 20:25 ` Sam Ravnborg
2012-10-28 15:21 ` marxdenl
2012-10-28 22:47 ` Kirill Tkhai
2012-10-29  9:44   ` marxdenl [this message]
2012-10-29  9:44     ` marxdenl

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=1351503863.6005.15.camel@dlw-desktop \
    --to=marxdenl@gmail.com \
    --cc=davem@davemloft.net \
    --cc=linux-pm@vger.kernel.org \
    --cc=sparclinux@vger.kernel.org \
    --cc=tkhai@yandex.ru \
    /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.