2008-07-10 16:06:14     Suspend the blackfin system to mem or disk

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-07-10 16:06:14     Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 58640   

 

Hi guys

 

I can suspend the blackfin system to standby mode by echo the string 'standby' to state file

 

and wake up the system by press the button related to GPIO PF4 which is preseted in configuration

 

but when I echo the string 'mem' to the state file, it will refuse to go to suspend the system, looks

 

like some wake up event is happening constantly  so it won't go to sleep.

 

terminal says:

Stopping tasks ... done.

Suspending console(s)

Restarting tasks ... done.

 

My question is why this is the case, cause in the configuration menu, seems all the state should have

 

the same wake up event GPIO or hardware irq. Why I can tell the system to standby, cannot tell it suspend

 

to mem. also the instruction about power management doesn't have any instuction about the mem and disk.

 

really confused!

 

need help on that!

 

Thanks in advance!

 

pengcheng

QuoteReplyEditDelete

 

 

2008-07-10 16:49:37     Re: Suspend the blackfin system to mem or disk

Robin Getz (UNITED STATES)

Message: 58642   

 

Pengcheng:

 

The instructions for mem and disk are missing since they are not implmented now.

 

We are working on it, and it should work on 537 (with some drivers) - documentation will also be updated soon.

 

-Robin

QuoteReplyEditDelete

 

 

2008-07-10 16:54:49     Re: Suspend the blackfin system to mem or disk

Michael Hennerich (GERMANY)

Message: 58643   

 

Pengcheng,

It is pretty simple – it’s not yet implemented.

I’m currently working on PM_SUSPEND_MEM.

Resulting in Blackfin Hibernate. Please check the Blackfin Hardware Reference Manual for possible wakeup events.

(RTC, RESET, CAN, PHYINT, etc.)

PM_SUSPEND_DISK will not be implemented anytime in the near future.

Please check SVN trunk in a week from now.

 

-Michael

QuoteReplyEditDelete

 

 

2008-07-10 18:50:04     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 58645   

 

Great Thanks

 

I am waiting the good news!

 

pengcheng

QuoteReplyEditDelete

 

 

2008-07-11 09:59:55     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 58683   

I find  /trunk/kernel/power/disk.c

 

which can be used as hibernating system, I can use this file?

 

or Is there anyway I could implement suspend-mem by myslef, could you give me some hint or

 

point me to the right direction?

 

pengcheng

QuoteReplyEditDelete

 

 

2008-07-14 10:07:02     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 58760   

 

Hi, Michael

 

Do you have any idea how much power would the system consume if we can put it

 

suspend to mem?

 

Thanks

QuoteReplyEditDelete

 

 

2008-07-14 12:45:18     Re: Suspend the blackfin system to mem or disk

Michael Hennerich (GERMANY)

Message: 58766   

 

Check the Blackfin datasheet. It should be something like 25uA. In case you have a RTC powered add another 20uA.

 

-Michael 

QuoteReplyEditDelete

 

 

2008-07-14 12:47:11     Re: Suspend the blackfin system to mem or disk

Michael Hennerich (GERMANY)

Message: 58767   

 

In addition - how much your system consumes depends on your system ...

 

We only know how much Blackfin typically consumes.

 

-Michael

QuoteReplyEditDelete

 

 

2008-07-15 11:48:51     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 58862   

 

Thanks Michael

 

That is good for me to know it!

 

 

QuoteReplyEditDelete

 

 

2008-07-16 14:47:48     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 58969   

 

Hi, Michael

 

I noticed that you guys updated the wiki for power management

 

Does that mean the suspend -mem ready?

 

I download the new verison of uImage for bf537 stamp, but I didn't see any difference

 

should I download the whole new version of uclinux?

 

Thanks

 

excited about the suspend - mem staff

 

pengcheng

QuoteReplyEditDelete

 

 

2008-07-16 17:46:31     Re: Suspend the blackfin system to mem or disk

Michael Hennerich (GERMANY)

Message: 58974   

 

 

Suspend mem is currently only supported in the Linux kernel on SVN/trunk.

In order to use suspend mem – you also need a special u-boot supporting resume form hibernate

– Which is not yet available, but suspected to be available anytime next week.

 

-Michael

QuoteReplyEditDelete

 

 

2008-07-17 12:05:17     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 59024   

 

Hi, Michael

 

I check out the new svn version of uclinux complied and put the new image into bf537 board

 

When I suspend system to standby it save almost 1.12 W power,

 

But  when I suspend system to mem it only save 1.2 W power.

 

I kind expect a huge saving of power from suspend to mem

 

Do you know what I did wrong or something else?

 

pengcheng

QuoteReplyEditDelete

 

 

2008-07-29 11:16:36     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 59560   

 

Hi Michael,

 

suspend to mem and suspend to standby should save power at different level right?

 

Why I observe those two state almost at same power level?

 

Really confused.

 

Thanks

 

Pengcheng

QuoteReplyEditDelete

 

 

2008-07-29 11:48:01     Re: Suspend the blackfin system to mem or disk

Michael Hennerich (GERMANY)

Message: 59561   

 

Do you use the internal core voltage regulator?

 

Please meassure VDD_INT when you in suspend mem, it should be 0.

 

If this the case then some other componets on your board may still be powered up.

 

-Michael

QuoteReplyEditDelete

 

 

2008-07-29 13:54:50     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 59565   

 

Thanks michael

 

I am trying to measure the VDDINT voltage when in suspend to mem,but I can not find it on any connectors

 

Does that mean I have to measure it directly from the chip side?

 

pengcheng

QuoteReplyEditDelete

 

 

2008-07-29 15:32:29     Re: Suspend the blackfin system to mem or disk

pengcheng liu (UNITED STATES)

Message: 59567   

 

Hi, Michael

 

I measured the VDD_INT from through hole on the back of the Chip182-Ball Mini-BGA

 

It is always 0 when suspend to mem or not.

 

I think maybe I didn't use the internal core voltage regulator.

 

Do you have any idea?

 

Thanks

 

Pengcheng

QuoteReplyEditDelete

 

 

2008-07-29 16:00:11     Re: Suspend the blackfin system to mem or disk

Robin Getz (UNITED STATES)

Message: 59568   

 

pengcheng:

 

If it measuring 0 when you have the Blackfin running - you are looking in the wrong place - this is the voltage that powers the core. It should be between 0.8 and 1.2V during normal operation (depending on the speed of the core), and 0V when in hibernation.

 

-Robin

Attachments

    Outcomes