All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about hibernation on sparc64
@ 2012-04-12 11:48 Kirill Tkhai
  2012-04-12 16:32 ` David Miller
                   ` (10 more replies)
  0 siblings, 11 replies; 14+ messages in thread
From: Kirill Tkhai @ 2012-04-12 11:48 UTC (permalink / raw)
  To: sparclinux

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.

So I want to ask people who know sparc64 deeply. Are there any architecture limits which make hibernation on v9 impossible? May be anybody has researched this question.

Kirill

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  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
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: David Miller @ 2012-04-12 16:32 UTC (permalink / raw)
  To: sparclinux

From: Kirill Tkhai <tkhai@yandex.ru>
Date: Thu, 12 Apr 2012 15:48:35 +0400

> So I want to ask people who know sparc64 deeply. Are there any
> architecture limits which make hibernation on v9 impossible? May be
> anybody has researched this question.

I can't think of any sparc64 hardware which would support hibernation
in any reasonable way, so I'm quite surprised that you plan on
implementing support for it.  Perhaps you can elaborate your plans :-)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  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
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Alex Buell @ 2012-04-12 18:59 UTC (permalink / raw)
  To: sparclinux

On Thu, 2012-04-12 at 12:32 -0400, David Miller wrote:
> From: Kirill Tkhai <tkhai@yandex.ru>
> Date: Thu, 12 Apr 2012 15:48:35 +0400
> 
> > So I want to ask people who know sparc64 deeply. Are there any
> > architecture limits which make hibernation on v9 impossible? May be
> > anybody has researched this question.
> 
> I can't think of any sparc64 hardware which would support hibernation
> in any reasonable way, so I'm quite surprised that you plan on
> implementing support for it.  Perhaps you can elaborate your plans :-)

http://www.rugged-systems.com/p/mobilesunsolaris/0075.htm is a sparc64
laptop :)
-- 
Tactical Nuclear Kittens

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  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
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: David Miller @ 2012-04-12 19:22 UTC (permalink / raw)
  To: sparclinux

From: Alex Buell <alex.buell@munted.eu>
Date: Thu, 12 Apr 2012 19:59:57 +0100

> On Thu, 2012-04-12 at 12:32 -0400, David Miller wrote:
>> From: Kirill Tkhai <tkhai@yandex.ru>
>> Date: Thu, 12 Apr 2012 15:48:35 +0400
>> 
>> > So I want to ask people who know sparc64 deeply. Are there any
>> > architecture limits which make hibernation on v9 impossible? May be
>> > anybody has researched this question.
>> 
>> I can't think of any sparc64 hardware which would support hibernation
>> in any reasonable way, so I'm quite surprised that you plan on
>> implementing support for it.  Perhaps you can elaborate your plans :-)
> 
> http://www.rugged-systems.com/p/mobilesunsolaris/0075.htm is a sparc64
> laptop :)

That's amusing but even that machine (and it's not a laptop, it's
a portable workstation) doesn't support hibernation.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (2 preceding siblings ...)
  2012-04-12 19:22 ` David Miller
@ 2012-04-12 19:26 ` Sam Ravnborg
  2012-04-12 23:04 ` Julian Calaby
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Sam Ravnborg @ 2012-04-12 19:26 UTC (permalink / raw)
  To: sparclinux

On Thu, Apr 12, 2012 at 07:59:57PM +0100, Alex Buell wrote:
> On Thu, 2012-04-12 at 12:32 -0400, David Miller wrote:
> > From: Kirill Tkhai <tkhai@yandex.ru>
> > Date: Thu, 12 Apr 2012 15:48:35 +0400
> > 
> > > So I want to ask people who know sparc64 deeply. Are there any
> > > architecture limits which make hibernation on v9 impossible? May be
> > > anybody has researched this question.
> > 
> > I can't think of any sparc64 hardware which would support hibernation
> > in any reasonable way, so I'm quite surprised that you plan on
> > implementing support for it.  Perhaps you can elaborate your plans :-)
> 
> http://www.rugged-systems.com/p/mobilesunsolaris/0075.htm is a sparc64
> laptop :)

I'm actually tempeted by this:
http://www.ebay.de/itm/Tadpole-SparcBook-s3-GX-32-mb-no-HD-or-Battery-3GX-free-shipping-/390406182711?ptÞ_Technik_Computer_Peripherieger%C3%A4te_PC_Systeme&hash=item5ae6059737#ht_3226wt_1064

But I could also wait until someone donate me a not-so-power hungry sparc64 box.

	Sam

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (3 preceding siblings ...)
  2012-04-12 19:26 ` Sam Ravnborg
@ 2012-04-12 23:04 ` Julian Calaby
  2012-04-13  9:55 ` Kirill Tkhai
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Julian Calaby @ 2012-04-12 23:04 UTC (permalink / raw)
  To: sparclinux

Sam,

On Fri, Apr 13, 2012 at 05:26, Sam Ravnborg <sam@ravnborg.org> wrote:
> On Thu, Apr 12, 2012 at 07:59:57PM +0100, Alex Buell wrote:
>> On Thu, 2012-04-12 at 12:32 -0400, David Miller wrote:
>> > From: Kirill Tkhai <tkhai@yandex.ru>
>> > Date: Thu, 12 Apr 2012 15:48:35 +0400
>> >
>> > > So I want to ask people who know sparc64 deeply. Are there any
>> > > architecture limits which make hibernation on v9 impossible? May be
>> > > anybody has researched this question.
>> >
>> > I can't think of any sparc64 hardware which would support hibernation
>> > in any reasonable way, so I'm quite surprised that you plan on
>> > implementing support for it.  Perhaps you can elaborate your plans :-)

I would guess that it would be possible to implement it 100% in
software - it is essentially just dumping ram to disk and powering
off. That said, I'm not sure what role the hardware, say, on x86 has
to play in facilitating that.

>> http://www.rugged-systems.com/p/mobilesunsolaris/0075.htm is a sparc64
>> laptop :)
>
> I'm actually tempeted by this:
> http://www.ebay.de/itm/Tadpole-SparcBook-s3-GX-32-mb-no-HD-or-Battery-3GX-free-shipping-/390406182711?ptÞ_Technik_Computer_Peripherieger%C3%A4te_PC_Systeme&hash=item5ae6059737#ht_3226wt_1064

The legendary tadpole! I'd be tempted too =)

Thanks,

-- 
Julian Calaby

Email: julian.calaby@gmail.com
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (4 preceding siblings ...)
  2012-04-12 23:04 ` Julian Calaby
@ 2012-04-13  9:55 ` Kirill Tkhai
  2012-04-13 14:50 ` David Miller
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Kirill Tkhai @ 2012-04-13  9:55 UTC (permalink / raw)
  To: sparclinux


12.04.2012,š20:32,š"DavidšMiller"š<davem@davemloft.net>:
>šFrom:šKirillšTkhaiš<tkhai@yandex.ru>
>šDate:šThu,š12šAprš2012š15:48:35š+0400
>
>>ššSošIšwantštošaskšpeoplešwhošknowšsparc64šdeeply.šAreštherešany
>>ššarchitecturešlimitsšwhichšmakešhibernationšonšv9šimpossible?šMayšbe
>>ššanybodyšhasšresearchedšthisšquestion.
>
>šIšcan'tšthinkšofšanyšsparc64šhardwarešwhichšwouldšsupportšhibernation
>šinšanyšreasonablešway,šsošI'mšquitešsurprisedšthatšyoušplanšon
>šimplementingšsupportšforšit.ššPerhapsšyoušcanšelaboratešyouršplansš:-)

1)AsšIšseešinšCONFIG_HIBERNATIONšcomment:

"InšprinciplešitšdoesšnotšrequirešACPIšoršAPM,šalthoughšforšexamplešACPIšwillšbešusedšforšthešfinalšstepsšwhenšitšisšavailable".

Andšit'sšimplementedšonšplatformsšw/ošACPIšlikešMIPS.

Sošitšseemsštošmešthatšitšdoesn'tšrequirešspecialšhardwarešsupport,šbutšexceptionsšarešpossible..

2)Duringšthešsecondšbootšhibernationšdoesšthešnormalšbootš(itšinitializesšhardware in its normal way - standard initcalls).
The only exeption is "late_initcall(software_resume)" which resumes the memory, but it is executed after hardware is initialized.
---

We are talking about hibernation, it's different from "suspend to RAM" operation. "Suspend to RAM" requires hardware support.

Kirill

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (5 preceding siblings ...)
  2012-04-13  9:55 ` Kirill Tkhai
@ 2012-04-13 14:50 ` David Miller
  2012-04-16 20:11 ` Tom Callaway
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: David Miller @ 2012-04-13 14:50 UTC (permalink / raw)
  To: sparclinux

From: Kirill Tkhai <tkhai@yandex.ru>
Date: Fri, 13 Apr 2012 13:55:33 +0400

> 1)As I see in CONFIG_HIBERNATION comment:

Please fix your email client to not turn every space into an
"_" underscore character if you want to communicate with us.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (6 preceding siblings ...)
  2012-04-13 14:50 ` David Miller
@ 2012-04-16 20:11 ` Tom Callaway
  2012-04-16 20:25 ` Sam Ravnborg
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 14+ messages in thread
From: Tom Callaway @ 2012-04-16 20:11 UTC (permalink / raw)
  To: sparclinux

On 04/12/2012 03:26 PM, Sam Ravnborg wrote:
> On Thu, Apr 12, 2012 at 07:59:57PM +0100, Alex Buell wrote:
>> On Thu, 2012-04-12 at 12:32 -0400, David Miller wrote:
>>> From: Kirill Tkhai <tkhai@yandex.ru>
>>> Date: Thu, 12 Apr 2012 15:48:35 +0400
>>>
>>>> So I want to ask people who know sparc64 deeply. Are there any
>>>> architecture limits which make hibernation on v9 impossible? May be
>>>> anybody has researched this question.
>>>
>>> I can't think of any sparc64 hardware which would support hibernation
>>> in any reasonable way, so I'm quite surprised that you plan on
>>> implementing support for it.  Perhaps you can elaborate your plans :-)
>>
>> http://www.rugged-systems.com/p/mobilesunsolaris/0075.htm is a sparc64
>> laptop :)
> 
> I'm actually tempeted by this:
> http://www.ebay.de/itm/Tadpole-SparcBook-s3-GX-32-mb-no-HD-or-Battery-3GX-free-shipping-/390406182711?ptÞ_Technik_Computer_Peripherieger%C3%A4te_PC_Systeme&hash=item5ae6059737#ht_3226wt_1064
> 
> But I could also wait until someone donate me a not-so-power hungry sparc64 box.

I actually have one of those Tadpoles. Not sparc64. Worked last time I
poked it, except for the video chipset and the PCMCIA.

~tom

=
Fedora Project

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (7 preceding siblings ...)
  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
  10 siblings, 0 replies; 14+ messages in thread
From: Sam Ravnborg @ 2012-04-16 20:25 UTC (permalink / raw)
  To: sparclinux

On Mon, Apr 16, 2012 at 04:11:58PM -0400, Tom Callaway wrote:
> On 04/12/2012 03:26 PM, Sam Ravnborg wrote:
> > On Thu, Apr 12, 2012 at 07:59:57PM +0100, Alex Buell wrote:
> >> On Thu, 2012-04-12 at 12:32 -0400, David Miller wrote:
> >>> From: Kirill Tkhai <tkhai@yandex.ru>
> >>> Date: Thu, 12 Apr 2012 15:48:35 +0400
> >>>
> >>>> So I want to ask people who know sparc64 deeply. Are there any
> >>>> architecture limits which make hibernation on v9 impossible? May be
> >>>> anybody has researched this question.
> >>>
> >>> I can't think of any sparc64 hardware which would support hibernation
> >>> in any reasonable way, so I'm quite surprised that you plan on
> >>> implementing support for it.  Perhaps you can elaborate your plans :-)
> >>
> >> http://www.rugged-systems.com/p/mobilesunsolaris/0075.htm is a sparc64
> >> laptop :)
> > 
> > I'm actually tempeted by this:
> > http://www.ebay.de/itm/Tadpole-SparcBook-s3-GX-32-mb-no-HD-or-Battery-3GX-free-shipping-/390406182711?ptÞ_Technik_Computer_Peripherieger%C3%A4te_PC_Systeme&hash=item5ae6059737#ht_3226wt_1064
> > 
> > But I could also wait until someone donate me a not-so-power hungry sparc64 box.
> 
> I actually have one of those Tadpoles. Not sparc64. Worked last time I
> poked it, except for the video chipset and the PCMCIA.
Whenever you have some time I would be glad if you could test
a sparc32 kernel.
sparc32 (for obvious reasons) does not see much test-coverage - so a little
more would be a great help to keep the sparc32 port alive.

	Sam

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (8 preceding siblings ...)
  2012-04-16 20:25 ` Sam Ravnborg
@ 2012-10-28 15:21 ` marxdenl
  2012-10-28 22:47 ` Kirill Tkhai
  10 siblings, 0 replies; 14+ messages in thread
From: marxdenl @ 2012-10-28 15:21 UTC (permalink / raw)
  To: sparclinux

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.
> 
> So I want to ask people who know sparc64 deeply. Are there 
> any architecture limits which make hibernation on v9 impossible? 
> May be anybody has researched this question.

hi, I'm also intersting to do that. How is that going?

Waiting for reply:)

--
Linwen Deng


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-04-12 11:48 Question about hibernation on sparc64 Kirill Tkhai
                   ` (9 preceding siblings ...)
  2012-10-28 15:21 ` marxdenl
@ 2012-10-28 22:47 ` Kirill Tkhai
  2012-10-29  9:44     ` marxdenl
  10 siblings, 1 reply; 14+ messages in thread
From: Kirill Tkhai @ 2012-10-28 22:47 UTC (permalink / raw)
  To: sparclinux



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.
>>
>> šSo I want to ask people who know sparc64 deeply. Are there
>> šany architecture limits which make hibernation on v9 impossible?
>> šMay be anybody has researched this question.
>
> 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.

Kirill

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
  2012-10-28 22:47 ` Kirill Tkhai
@ 2012-10-29  9:44     ` marxdenl
  0 siblings, 0 replies; 14+ messages in thread
From: marxdenl @ 2012-10-29  9:44 UTC (permalink / raw)
  To: Kirill Tkhai; +Cc: davem, sparclinux, linux-pm

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 


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: Question about hibernation on sparc64
@ 2012-10-29  9:44     ` marxdenl
  0 siblings, 0 replies; 14+ messages in thread
From: marxdenl @ 2012-10-29  9:44 UTC (permalink / raw)
  To: Kirill Tkhai; +Cc: davem, sparclinux, linux-pm

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 


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2012-10-29  9:44 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2012-10-29  9:44     ` marxdenl

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.