New 240 MHz preset for 5D3 / EOS M / 100D (Download available)

Started by theBilalFakhouri, September 07, 2022, 05:26:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

gabriielangel

Quote from: Danne on September 14, 2022, 12:22:00 PM
Cards not working might work with trial and error modifying small increments in 240Mhz patch. "Unfortunately" I don´t have one of these cards myself to play with.

If you or any dev here is willing to work on solving the mystery, I don't mind sending you my non-working card for experimentation. You could send it back if it survives the treatment :)
As being able to record 3K 1:1 continuous is serious business... If a few of us are willing to do the same, it would give a capable person enough reference points to maybe find a way.

Danne

Bilal is the man here. I think you could do tests otherwise by simply compile and try out different possibilites.

gabriielangel

I don't know how to compile. It would be too much of a time investment to learn all of that now (I'd rather spend my spare time using the new and improved 3K mode.)
But if there is a simple way for me to clone your repository and only have to worry about changing specific values in a specific file or two,
I am willing to try that... Or just send my card to Bilal :)

p.s. Danne's build has the 240 MHz setting in the movie tab (As opposed to only in the debug tab), which is a very useful spot for the setting,
as we may sometimes need to switch to 192 MHz to allow the camera to cool down while still using it, if needed.

Walter Schulz

Quote from: gabriielangel on September 14, 2022, 05:36:35 PM
I am willing to try that... Or just send my card to Bilal :)

Which may be way more complicated than you think. Plus Bilal doesn't own an EOS M.

Possie

Brandnew Samsung Pro Plus not getting past 20. I'm sending it back to the store.

Trusty old SanDisk Extreme Pro 170 U3 is working on 240hz

Benchmarked with Danne's build of sept 12th on EOS M

Thanks a bunch guys. Keep up the good work



theBilalFakhouri

For users who has 170 MB/s SD card which didn't work with new 240 MHz, could you try this version:

new_sd_uhs_SDR104_patch.zip

Change in these lines (source code included in .zip file too):
from:
if (sd_overclock <= 2)
{
patch_hook_function(sd_set_function, MEM(sd_set_function), sd_set_function_log, "SDR104");
SD_ReConfiguration();
}


to just:
patch_hook_function(sd_set_function, MEM(sd_set_function), sd_set_function_log, "SDR104");
SD_ReConfiguration();


The only difference now is SDR104 patch would be applied for 240 MHz, in original new sd_uhs version SDR104 won't be applied for 240 MHz preset because my Sandisk Extreme PRO 170 MB/s card becomes not stable (drop to 21 MB/s) with SDR104 patch on 100D.

It could be that some of 170 MB/s SD cards need SDR104 patch (see here and here, SDR104 patch was required for 160 MHz and 192 MHz preset there).

Feedback please!

If it didn't work, I am assuming that you either need to play with GPIO registers with SDR104 patch enabled or without SDR104 patch for 240 MHz preset.
Will add some info soon about GPIO registers.

Edit: Nope, it doesn't work.


gabriielangel

Quote from: theBilalFakhouri on September 14, 2022, 08:16:16 PM
For users who has 170 MB/s SD card which didn't work with new 240 MHz, could you try this version:

new_sd_uhs_SDR104_patch.zip

Feedback please!

If it didn't work, I am assuming that you either need to play with GPIO registers with SDR104 patch enabled or without SDR104 patch for 240 MHz preset.
Will add some info soon about GPIO registers.

Doesn't work @240 MHz here (But Works @192 MHz) Sandisk Extreme Pro 170, 128GB on EOS M

Grognard

Mine sandisk 170mbs 256g doesn't work on Eos M but works on 5DIII with the new patch.... and it works with the previous patch on Eos M but not on 5D mark iii


theBilalFakhouri

EOS M / 100D users:
Yet another new 240 MHz preset to test:

-It works better at high temps using my Sandisk 170 MB/s and 100D, it didn't drop to 21 MB/s after 5 minuets of recording :D
-SDR104 patch which required to enable high OC for some cards now works with the newest 240 MHz preset, and it's stable

I am expecting that 170 MB/s SD card which didn't work previously using the original new 240 MHz preset to work with the newest 240 MHz on EOS M / 100D (hopefully)


Download: newest_sd_uhs_SDR104_patch.zip


-Side effect I noticed (at least using my card and 100D):

● It happens after SD controller/card become too hot (I mean it) write speed performance will drop from 90 MB/s to 72 MB/s in benchmarks (Play mode), or from ~80 MB/s to ~62 MB/s for RAW video recording.
● After a camera restart SD card will restore full write speed (90 MB/s in Play mode, ~80 MB/s in RAW video recording) and you should be able to record more minuets until it drop again to 72 MB/s in Play mode or 62 MB/s while RAW video recording.
● I am not 100% sure if the drop happens because of high temps, I will need to make more tests and a test inside the fridge (at cool temps). Will do that later.

Note: use any of new 240 MHz presets at your own risk, I am not responsible for any type of damage!
For me I will be using it until bad things happen.

-The Method:

I have used an overclocked 240 MHz preset which could be achieved by keeping 0xC0400600 = 0x3 and by reducing 0xC0400610 to 0x1 with other registers adjustments, full preset:
static uint32_t uhs_regs[]       = { 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 };   /* register addresses */
static uint32_t sdr_240MHz2[]    = {        0x3,        0x3,                             0x1, 0x1D000001,        0x0,      0x100,      0x100,      0x100,        0x1 };   /* Works better on 100D, also SDR104 is stable with this preset (for Write operations) */


I am using 240MHz2 preset only for write operations (WriteClock) beside keeping 192 MHz for reads.
static void WriteClock(uint32_t* regs, uint32_t* stack, uint32_t pc)
{
    memcpy(uhs_vals, sdr_240MHz2, sizeof(uhs_vals));
}


Removed this part of code for EOS M / 100D too:

/* SDR104 patch casues instability for 240 MHz preset */
if (sd_overclock <= 2)


SDR104 patch will be applied for all overclocking presets.
Source code is included in zip file.

Feedback please!

theBilalFakhouri

Results from Walter using EOS M with the newest 240 MHz preset:

These SD cards now works @240MHz on EOS M!
-SanDisk Extreme R190/W130 256 GB
-SanDisk Extreme PRO R200/W140 256 GB
-Samsung EVO Select 256 GB MB-ME256KA

Benchmark using SanDisk Extreme R190/W130 256 GB using newest 240 MHz on EOS M:

bench8" border="0

Hell Yeah :D

-Not tested yet with RAW video recording
-That wasn't possible with original new sd_uhs , previous results.
-Walter said: It could be a breakthrough enabling cheaper cards for highest res with EOS M.

-To be tested by you!

More SD cards might work on EOS M @ 240 MHz ;) (oh also on 100D)

theBilalFakhouri

First report on Discord from @AceCom:
Previously his Sandisk Extreme PRO 170 MB/s SD card didn't work with original new sd_uhs on EOS M, by using the newest sd_uhs it works now:
QuoteWrite speed is at 92.7 Average on the new preset and 83.3 constant read speed @240MHz

Another hell yeah :D



Walter Schulz

To enter play mode press play after starting benchmark run. Your numbers look like liveview modes.

anto

ye, I didnt know about that difference. in playmode its 87.9MB/s and 92.3MB/s. so its ok now!
Extreme pro 512gb 170MB/s

theBilalFakhouri

EOS M users reports with the newest sd_uhs and 240 MHz:

@cedricp:
Quote from: cedricp on September 15, 2022, 02:47:59 PM
In play mode the 128Gb Extreme pro 170MB/s reports a fabulous 95Mb/s


@cannibalferox
Quote from: cannibalferox on September 15, 2022, 02:57:02 PM
By the way I wanted to mention while I did a couple of minutes test recordinings as in the fourth picture I started to smell something :D Which was the hot sdcard so I can definetly confirm higher temperatures.

Towards the Liveview/Play Mode I have now only repeated it with the last version plus patch I am running now:
Writespeed1 95.3MB/s
Readspeed1 85.6MB/s
Writespeed2 94.7MB/s
Readspeed2 85.6MB/s


@Possie
Quote from: Possie on September 15, 2022, 03:47:45 PM
Holy cow ! Redid the benchmarks.

Samsung hitting 99 write speed - high 80's read. Insane !

SanDisk 92/85 write/read (most consistent performer)

Lexar does only high read speeds 80's - low write 50
After low-level format of the card it's reversed -barely hitting 60 write. It's a wonky card I use for my M2. 

That play button trick worked a charm


@gabriielangel
Quote from: gabriielangel on September 15, 2022, 03:50:09 PM
... even my Sandisk Extreme 256GB (Red and Gold) works @240MHz!!!!!
bench10-Sandisk-Extreme-256" border="0

The Sandisk Extreme Pro 170 MHz 128GB which did not work a few days ago @240 also works now!


Ah, did we reach that day? :D

Quote from: theBilalFakhouri on September 12, 2022, 01:37:18 PM
.... I hope someday we will reach perfect 240 MHz on EOS M / 100D.

theBilalFakhouri

A new report from Walter using newest sd_uhs and 240 MHz on EOS M:

-Card used: Samsung PRO Plus 256 GB, R160/W120 MB-SD256KA

Quote from: Walter Schulz on September 15, 2022, 06:25:27 PM
And another one stable @240 MHz:
Samsung PRO Plus 256 GB, R160/W120 MB-SD256KA

Seems to have same performance as 128 GB variety. Lower capacities should perfom not as well according to Samsung specs.

Walter Schulz

Slightly off-topic and shape of things to come. Stable recording? Nope, just benchmark!
Running with 280 MHz now:

SebastianC

Hello there

What means 280MHz?
New sd hack?

240MHz hack most high speed can not help 5D mark iii 14bit 3k 3.3k 3.5k 4k,

just Benchmark show high speed,high speed just used in 1920 1080 and full 5760.

100d 3k 14bit also can not use high speed more.

Danne

For 5DIII it could be used replacing CF card in some cases but biggest win is for 100D/EOSM.

Ernani

Samsung Pro Plus 128GB. With the original hack, the card would be very unreliable. I managed to pull 240Mhz speed only for a few seconds before it reverted to 20MB/s. 192Mhz was also unreliable. With the 15th of September build, however, it seems the card is very stable at 240MHz. I can shoot for minutes non stop, even in 2.8k!! This was unthinkable just a few months back! Needless to say I'm excited...

Danne

Hm, I do believe the code for 192Mhz is the same from september 15th. Maybe I missed something. Anyway. I´ll wait for a few more reports.
What camera by the way?
Edit: sorry. Misread. Code seems good.

Ernani

Quote from: Danne on September 16, 2022, 08:03:39 AM
Hm, I do believe the code for 192Mhz is the same from september 15th. Maybe I missed something. Anyway. I´ll wait for a few more reports.
What camera by the way?
Yes, in fact, before these new developments, I was stuck with 160MHz for the samsung card to work (192 didn't work)
I'm on the M.  getting 93MBs write speed on benchmarking.