Skip to contentSkip to conversation

Question about hibernation on sparc64

DISCUSSION Kirill Tkhai 7 participants 13 messages Apr 12, 2012 – Oct 29, 2012

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 3 lines

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 :-)

#2 lore raw
In reply to Kirill Tkhai
Quoted 10 lines · David Miller

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 3 lines

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 :)

Signature · 1 line
Tactical Nuclear Kittens
#3 lore raw
In reply to Kirill Tkhai

From: Alex Buell <[email protected]>
Date: Thu, 12 Apr 2012 19:59:57 +0100

Quoted 8 lines · David Miller
Quoted 7 lines

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 3 lines

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.

Quoted 6 lines
Quoted 3 lines

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.

#4 lore raw
In reply to Kirill Tkhai
Quoted 8 lines · Alex Buell
Quoted 7 lines · David Miller

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 3 lines

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.

Quoted 6 lines
Quoted 3 lines

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

#5 lore raw
In reply to Kirill Tkhai

Sam,

Quoted 5 lines · Sam Ravnborg
Quoted 4 lines · Alex Buell
Quoted 3 lines · David Miller

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

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.

Quoted 5 lines
Quoted 2 lines

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,

Signature · 5 lines
Julian Calaby

Email: [email protected]
Profile: http://www.google.com/profiles/julian.calaby/
.Plan: http://sites.google.com/site/juliancalaby/
#6 lore raw
In reply to Kirill Tkhai

12.04.2012,š20:32,š"DavidšMiller"š<[email protected]>:

Quoted 10 lines

šFrom:šKirillšTkhaiš<[email protected]>
šDate:šThu,š12šAprš2012š15:48:35š+0400

Quoted 3 lines

šš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

#7 lore raw
In reply to Kirill Tkhai

From: Kirill Tkhai <[email protected]>
Date: Fri, 13 Apr 2012 13:55:33 +0400

Quoted 1 line

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.

#8 lore raw
In reply to Kirill Tkhai
Quoted 13 lines · Sam Ravnborg
Quoted 12 lines · Alex Buell
Quoted 10 lines · David Miller

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 3 lines

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 :-)

Quoted 7 lines
Quoted 2 lines

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

#9 lore raw
In reply to Kirill Tkhai
Quoted 17 lines · Tom Callaway
Quoted 16 lines · Sam Ravnborg
Quoted 14 lines · Alex Buell
Quoted 10 lines · David Miller

From: Kirill Tkhai <[email protected]>
Date: Thu, 12 Apr 2012 15:48:35 +0400

Quoted 3 lines

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 :)

Quoted 7 lines
Quoted 4 lines

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

#10 lore raw
In reply to Kirill Tkhai
Quoted 10 lines · Kirill Tkhai

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

#11 lore raw
In reply to Kirill Tkhai

28.10.2012, 19:21, "marxdenl" <[email protected]>:

Quoted 9 lines · Kirill Tkhai
Quoted 8 lines

š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.

Quoted 7 lines
Quoted 3 lines

š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

#12 lore raw
Quoted 11 lines · Kirill Tkhai

28.10.2012, 19:21, "marxdenl" <[email protected]>:

Quoted 9 lines · Kirill Tkhai
Quoted 7 lines

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.

Quoted 5 lines
Quoted 3 lines

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