Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansа Clip Zip - Improve battery life
« previous next »
  • Print
Pages: 1 2 [3] 4 5 ... 22

Author Topic: Sansа Clip Zip - Improve battery life  (Read 90133 times)

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #30 on: October 05, 2014, 02:50:41 PM »
Benchmarking average clock speed needed for realtime playback:

Vorbis 128k stock:  49.81 MHz
Above patch:  20.93 MHz.

So yes, it would appear to have massively increased the memory subsystem performance.  I will do more testing.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #31 on: October 05, 2014, 02:57:01 PM »
Unfortunately, my player has only a 50% chance of booting with that patch applied, and most of the menus will freeze the player (although interestingly test_codec seems to be able to benchmark ok, perhaps because it forces boost or keeps the playback hardware off?). 
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #32 on: October 05, 2014, 03:00:07 PM »
Can you try increase CVDD1?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #33 on: October 05, 2014, 03:02:40 PM »
I'm testing that right now, < 1.0 volts may not be safe.  This is an older 130 nm chip. 
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #34 on: October 05, 2014, 03:10:44 PM »
I use for test two player, both manufactured 9 months ago.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #35 on: October 05, 2014, 03:21:17 PM »
I removed most of the voltage changes, except for the one that scales voltage during CPU frequency change.  I changed this to 1.1 and 1.2v to be conservative.   I'll see if I can do a battery bench. 

Edit:  Device hard locked after 1 song. 
« Last Edit: October 05, 2014, 03:27:39 PM by saratoga »
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #36 on: October 05, 2014, 03:30:11 PM »
Better test CVDD1 for boost and normal mode separately. I force one mode in set_cpu_frequency, do test for stability and then check another mode.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #37 on: October 05, 2014, 03:39:56 PM »
Going into the debug menu and manually boosting hard locks the player, so I suppose that is the problem. 

Edit:  1 time hard locked, the next corrupted the display, and the third worked correctly but crashed shortly there after when I tried to play a song. 

Maybe a better approach would be to confirm that frequency scaling is really working, and then try to adjust PCLK? I think 120MHz is probably far outside of the device spec. 
« Last Edit: October 05, 2014, 03:41:48 PM by saratoga »
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #38 on: October 05, 2014, 03:49:55 PM »
AFAIK we don't have datasheet for this chip, so we don't know maximum frequency for it.  But you right better try set FCLK lower, maybe 180/90MHz? 
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #39 on: October 05, 2014, 03:53:20 PM »
Quote from: Mihail Zenkov on October 05, 2014, 03:49:55 PM
AFAIK we don't have datasheet for this chip, so we don't know maximum frequency for it.  But you right better try set FCLK lower, maybe 180/90MHz?

We have a datasheet for the AMSv1, which is pretty close (although the CPU core and memory amounts are different).  That one was limited to 60MHz. 

I don't think a lower FCLK will help.  My guess is that 120MHz isn't entirely stable on my player, and that there are some race conditions or other glitches when switching the F or P clocks.  Years ago we actually disabled frequency scaling because it caused a lot of random crashes. 

Edit:  Unfortunately the tracker is down so I can't check fs#11297, but as I recall, funman added quite a lot of additional code to the frequency switching functions to try and make them more stable.  Perhaps something there is needed?
« Last Edit: October 05, 2014, 03:56:23 PM by saratoga »
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #40 on: October 05, 2014, 03:56:41 PM »
Sorry, I mean change PLLA and have FCLK 180 / PCLK 90.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #41 on: October 05, 2014, 03:58:49 PM »
Maybe just seeing if FLCK switching from 240 to 24 at constant PCLK works would be best?
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #42 on: October 05, 2014, 04:00:18 PM »
Quote from: saratoga on October 05, 2014, 03:53:20 PM
Edit:  Unfortunately the tracker is down so I can't check fs#11297, but as I recall, funman added quite a lot of additional code to the frequency switching functions to try and make them more stable.  Perhaps something there is needed?
My patch V3 based on this code, but it not totally stable as was mention in tracker.
Logged

Offline Mihail Zenkov

  • Developer
  • Member
  • *
  • Posts: 374
Re: Sansа Clip Zip - Improve battery life
« Reply #43 on: October 05, 2014, 04:02:25 PM »
Quote from: saratoga on October 05, 2014, 03:58:49 PM
Maybe just seeing if FLCK switching from 240 to 24 at constant PCLK works would be best?
We can't set PLCK constant, datasheet say we should switch PLCK to master clock, but we can't do this in AMSv2.
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Sansа Clip Zip - Improve battery life
« Reply #44 on: October 05, 2014, 04:06:25 PM »
Quote from: Mihail Zenkov on October 05, 2014, 04:02:25 PM
Quote from: saratoga on October 05, 2014, 03:58:49 PM
Maybe just seeing if FLCK switching from 240 to 24 at constant PCLK works would be best?
We can't set PLCK constant, datasheet say we should switch PLCK to master clock, but we can't do this in AMSv2.

Didn't funman's old code set the PCLK to 24MHz and just change the multiplier? 
Logged

  • Print
Pages: 1 2 [3] 4 5 ... 22
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Hardware
| | |-+  Sansа Clip Zip - Improve battery life
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.067 seconds with 15 queries.