Author Topic: SD Overclocking - DIGIC 5 only  (Read 2953 times)

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 659
SD Overclocking - DIGIC 5 only
« on: February 12, 2021, 10:32:15 PM »
Experimental SD Overclocking module with selectable presets (160/192/240 MHZ) for DIGIC 5 models only (5D3 1.13 / 5D3.123 / 6D.116 / 70D.112 / 700D.115 / 650D.104 / 100D.101 / EOSM.202).

Download / Source code / Technical discussion



Stock 700D                                                   160MHz                                                        192MHz                                                        240MHz


How to:
-You need a build based on crop_rec_4k branch (Experiments / crop_rec builds)
-Download sd_uhs.mo and put in your SD card in "ML/modules" folder
-After loading the module in camera, select a preset (160/192/240) then restart the camera
-Run "Benchmarks" test from Bench.mo in Photo mode
-Share the result, your card name, selected preset.

Notes:
-Best compatible and recommend card is Sandisk Extreme PRO 170 MB/s (works in all presets flawlessly - tested on 650D/700D).
-Sandisk Extreme PRO 95 MB/s cards are stable when using 192 MHz preset (240 MHz isn't , mostly won't work).
-For some reason not all DIGIC 5 cameras would work with 240 MHz and Sandisk Extreme PRO 170 MB/s card (like EOS M).

-Perform "Low Level Format" in the camera if you had speed drops, test again.
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7160
Re: SD Overclocking - DIGIC 5 only
« Reply #1 on: February 12, 2021, 11:30:41 PM »
Eosm max out on 192Mhz, 5D3 no more than 160Mhz if I recall correctly.
I also don´t trust the same patch routines here for 5D3. I do other stuff when patching 5D3 so beware.
https://bitbucket.org/Dannephoto/magic-lantern_dannephoto_git/src/master/modules/sd_uhs/sd_uhs.c

ArcziPL

  • Contributor
  • Member
  • *****
  • Posts: 182
Re: SD Overclocking - DIGIC 5 only
« Reply #2 on: March 01, 2021, 11:36:38 PM »
Confirmed: 70D can do 240MHz as well.



The card was Sandisk Extreme PRO 170MB/s 64GB.
With the older 95MB/s version of the card the 192MHz preset works well (results like on 700D) but the 240MHz falls back to 20MB/s.

Thumbs up Bilal! Great achievement!
M50.110 [main cam] | G7X III [pocket cam] | 70D.112 [gathers dust] | M.202 [gathers dust] | waiting for M5II

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 659
Re: SD Overclocking - DIGIC 5 only
« Reply #3 on: March 02, 2021, 12:39:36 AM »
Nice results! Thanks for testing!

Could you do one more test (Benchmarks) with Sandisk Extreme PRO 170MB/s @ 240 MHz in Video Mode (1080p24 from Canon menu), in that mode on 700D the max write speed ~68 MB/s .

I'd like to see what 70D would perform, it has DIGIC 5+ (700D has DIGIC 5) and more RAM (maybe also faster RAM than 700D).
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

ArcziPL

  • Contributor
  • Member
  • *****
  • Posts: 182
Re: SD Overclocking - DIGIC 5 only
« Reply #4 on: March 02, 2021, 12:53:16 AM »
M50.110 [main cam] | G7X III [pocket cam] | 70D.112 [gathers dust] | M.202 [gathers dust] | waiting for M5II

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 659
Re: SD Overclocking - DIGIC 5 only
« Reply #5 on: March 02, 2021, 11:58:10 AM »
Thanks!

Cool results! 70D could handle continuous recording in higher resolutions better than the entry level cameras like 700D and EOS M.
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

mynamesriz

  • New to the forum
  • *
  • Posts: 4
Re: SD Overclocking - DIGIC 5 only
« Reply #6 on: May 12, 2021, 11:03:41 AM »
Hi there,
I'm trying to figure out how to get this working on my 70D, for some reason only ArcziPL's mar19 build is working on my model, his newer builds aren't. Interestingly it worked for a week and then randomly stopped.

(Heads up I don't know ASM so I'm so sorry if this is a stupid question but I guess we've all got to start somewhere and I'm really hoping I can contribute to the community)


I'm struggling to figure out a few things:

  • When I search for the register addresses in my rom dump I can't find them, can you please advise? I'm sure I'm doing something wrong
  • what do the overclock values actually refer to?

Also If you have any recommendations on resources that would help me understand the above I'd really appreciate it.

Thanks in advance.

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 659
Re: SD Overclocking - DIGIC 5 only
« Reply #7 on: May 12, 2021, 11:26:36 AM »
Hello @mynamesriz

Strange. Have you tried another 170 MB/s Sandisk Extreme PRO card? Also try to do "Low level format" in camera, make sure there is no important data in the card.

I am not very familiar with 70D, so can't make/do tests, but ArcziPL's build should work fine . .
Have you tried sd_uhs.mo posted in this thread? download it and put it in ML/modules folder in SD card (you may want to replace it, use latest ArcziPL's build), 192 MHz and 240 MHz should work fine, 160 MHz may not work.

AFAIK sd_uhs.mo in this thread is identical to sd_uhs.mo in ArcziPL's build except for 160 MHz preset (mine doesn't work in 70D, but ArcziPL's 160 MHz version works, I need to update it . .), Anyway try 192 MHz and 240 MHz, do some benchmarks in mv1080 and report back.

These registers founded by looking in QEMU and camera startup LOGs, we don't know what exactly these registers mean, overclocked values founded initially by brute-forcing then by trial and error for 192 MHz and 240 MHz presets.

Long answer, you may want to read in this thread:
https://www.magiclantern.fm/forum/index.php?topic=12862.msg185968#msg185968
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

mynamesriz

  • New to the forum
  • *
  • Posts: 4
Re: SD Overclocking - DIGIC 5 only
« Reply #8 on: May 12, 2021, 12:36:23 PM »
Thanks @theBilalFakhouri

I've actually tried two 170MB/s SD cards a 64GB and 128GB both with the same result.

I just tried again:
  • did a low level format
  • installed ArcziPL's latest build April 04
  • Enabled sd_uhs.mo and rebooted
  • selected the 240mhz preset in photo mode
  • Benchmark reported 95MB/s write and 106MB/s read
  • Then switched to mv1080 and ran the same benchmark and got 20MB/s for both
It's a similar story for 192Mhs preset.

Tried the same as above with your module with the same results.

And thanks I'll take a look at that link. :)


edit: i'm actually getting memory allocation errors in mv1080 read benchmarks, so about 20MB/s writes mem alloc error on read

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 659
Re: SD Overclocking - DIGIC 5 only
« Reply #9 on: July 14, 2021, 03:14:36 AM »
I also don´t trust the same patch routines here for 5D3. I do other stuff when patching 5D3 so beware.
https://bitbucket.org/Dannephoto/magic-lantern_dannephoto_git/src/master/modules/sd_uhs/sd_uhs.c

Correct.


-New version:
Added 5D3 sd_uhs patching approach from Danne, added original 160 MHz preset from a1ex (70D didn't work with my 160 MHz preset) now 160 MHz should work on 70D.

Same download links above.
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 659
Re: SD Overclocking - DIGIC 5 only
« Reply #10 on: July 14, 2021, 03:17:31 AM »
@mynamesriz

192MHz and 240MHz presets might be unpractical for 70D, same for 5D3 . . nothing to do currently.

...
...
edit: i'm actually getting memory allocation errors in mv1080 read benchmarks, so about 20MB/s writes mem alloc error on read

Turn OFF RAW video before running benchmarks in LiveView.
700D 1.1.5 | no more ISOless LV err 8 / SDR104 @ 240 MHz - Constant! | Fixed Scrambled LiveView in Higher resolution | Real-Time correct framing in the Way