Author Topic: UHS-I / SD cards investigation  (Read 186582 times)

70MM13

  • Hero Member
  • *****
  • Posts: 537
Re: UHS-I / SD cards investigation
« Reply #425 on: July 01, 2020, 11:40:43 PM »
false start!  sd overclock turns "ON" but as soon as i hit record, it says "file create error".

looks like it isn't working... yet!

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #426 on: July 01, 2020, 11:46:05 PM »
Run only sd card. Not with cf card.

70MM13

  • Hero Member
  • *****
  • Posts: 537
Re: UHS-I / SD cards investigation
« Reply #427 on: July 02, 2020, 12:02:45 AM »
yup, it was sd only... :(

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #428 on: July 02, 2020, 12:06:17 AM »
Only one try?

70MM13

  • Hero Member
  • *****
  • Posts: 537
Re: UHS-I / SD cards investigation
« Reply #429 on: July 02, 2020, 12:09:59 AM »
i tried a few times.  the error was a little different one time...  "card full"

empty freshly formatted card, of course.

i had the same behaviour a few months back when we were trying to overclock crappy old cards...  i guess it means the card can't handle it?

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #430 on: July 02, 2020, 06:37:35 AM »
Yes, probably not. Thanks for testing. Let´s leave that one for now.

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 750
Re: UHS-I / SD cards investigation
« Reply #431 on: July 02, 2020, 08:47:16 AM »
1.Canon 700D:
New-Preset-1" border="0

2.Canon 700D:
New-Preset-2" border="0


Thanks for Watching Nailing registers Part II
You're Welcome

Preset for the first Picture:
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4 }

It didn't switch to 48 MHz during my tests, there is a little of speed drop I have noticed, when it drops it also increase.

New discovery: You can make an overclock by changing only one register 0xC0400600 from 0x3 to 0x8, you got 81 MB/s in play mode End of Story, Video Mode around 58 to 61 Write Speed maybe sometimes a little more on 700D.

Preset for the second Picture:
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x8,        0x3,                             0x3, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x3 }

Continued from the first one, I set 0xC0400610 & 0xC0400620 from 0x4 to 0x3, that's it, write speed in Video Mode Ah let me show you:
Preset-2-Video-Mode" border="0

Unfortunately it switch back to 48 MHz, but you can record some clips before the switch and at least I could a benchmark in video mode. Maybe there is a sweet spot I didn't play so much with this new combination of the registers, make your tests and feedback ;D
Announcement: 100D/SL1 users:
I am willing to port the latest RAW video achievements to 100D. Check this for more info:
https://www.magiclantern.fm/forum/index.php?topic=26250.msg238692#msg238692

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #432 on: July 02, 2020, 09:00:07 AM »
checking these new found settings.
Work on 6d too, benchmark in photo mode:

Write speed 97.9Mb/s
Read speed 21.7Mb/s
Write speed 21.0Mb/s
Read speed 21.9Mb/s

So indeed still switches back to 20Mb/s mode...but this could mean there is another combination giving the same speed and will work.

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #433 on: July 02, 2020, 09:08:15 AM »
Try these settings  ;D


Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #434 on: July 02, 2020, 09:35:32 AM »
Haven't been able to break the above settings to 20Mb/s  8)

In video mode, recording bitrate starts at about 82Mb/s, saw it climb up to 88Mb/s during recording  :D

Benchmark in video mode:
Write speed 80.0 Mb/s
Read speed 83.7 Mb/s
Write speed 80.0 Mb/s
Read speed 83.5 Mb/s

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #435 on: July 02, 2020, 10:07:37 AM »
Well,well,well  :). From theBilalFakhouri numbers on eosm:
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }

{        0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x100,      0x201,      0x201,        0x4 }



EDIT:
This also works:
Code: [Select]
0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4

theBilalFakhouri

  • Developer
  • Hero Member
  • *****
  • Posts: 750
Re: UHS-I / SD cards investigation
« Reply #436 on: July 02, 2020, 10:27:08 AM »
Oh, this was a typo, it should be like your edit, I will edit the presets to the correct values.

EDIT:
This also works:
Code: [Select]
0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4
Announcement: 100D/SL1 users:
I am willing to port the latest RAW video achievements to 100D. Check this for more info:
https://www.magiclantern.fm/forum/index.php?topic=26250.msg238692#msg238692

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #437 on: July 02, 2020, 10:37:19 AM »
So cool. I am getting full sensor readout(anamorphic) in 1736x3256 14fps write speed 68Mb/s on my eosm. Prior was 10fps maximum.

masc

  • Contributor
  • Hero Member
  • *****
  • Posts: 1915
Re: UHS-I / SD cards investigation
« Reply #438 on: July 02, 2020, 10:46:34 AM »
This is soo good! Well done guys!
@Danne: would it be possible to record full width anamorphic 1736x2216 (2.35:1) @24fps on EOS M? At 10bit I expect something about 66MB/s, at 12bit around 80MB/s, if my calculation is correct.
5D3.113 | EOSM.202

Walter Schulz

  • Contributor
  • Hero Member
  • *****
  • Posts: 8252
Re: UHS-I / SD cards investigation
« Reply #439 on: July 02, 2020, 10:50:11 AM »
Sandisk wants to know your location!

mineralof

  • New to the forum
  • *
  • Posts: 15
Re: UHS-I / SD cards investigation
« Reply #440 on: July 02, 2020, 10:57:17 AM »
Haven't been able to break the above settings to 20Mb/s  8)

In video mode, recording bitrate starts at about 82Mb/s, saw it climb up to 88Mb/s during recording  :D

Benchmark in video mode:
Write speed 80.0 Mb/s
Read speed 83.7 Mb/s
Write speed 80.0 Mb/s
Read speed 83.5 Mb/s
unbelievable!

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #441 on: July 02, 2020, 10:58:18 AM »
Sandisk wants to know your location!
Say what?

@masc
The card speed depends on fps. Even if the card theoretically seems to work for this it seems with 24 fps it maxes out around 57Mb/s. This is not the case with full resolution preset which runs with a reduced framerate.

mineralof

  • New to the forum
  • *
  • Posts: 15
Re: UHS-I / SD cards investigation
« Reply #442 on: July 02, 2020, 11:14:48 AM »
is it already possible to download a new module for testing on canon 6d?

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #443 on: July 02, 2020, 11:35:08 AM »
@mineralof, other stuff to do now, but I will upload the module and/or build for the 6d within 3 hours.
Curious what recording speeds :D other people get

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #444 on: July 02, 2020, 11:40:06 AM »
@Danne and @theBilalFakhouri
Are your settings stable or does it still switch to 20Mb/s after a while ?

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #445 on: July 02, 2020, 11:51:52 AM »
Seems stable over here(eosm).
I recommend you run my latest sd_uhs code.

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #446 on: July 02, 2020, 12:54:56 PM »
It is already stable over here.
Downloaded your improved sd_uhs source file.
Works fine, although I like the old source better (no waiting times and messages on screen  :P )
Never experienced any trouble with the old build.

So if I'm correct you're using
Code: [Select]
0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4

Works on the 6d, but recording speed is ~72Mb/s

With this one I get ~85Mb/s:
Code: [Select]
0x8,        0x3,                             0x3, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x3

The last one looks stable to me.

Danne

  • Developer
  • Hero Member
  • *****
  • Posts: 7235
Re: UHS-I / SD cards investigation
« Reply #447 on: July 02, 2020, 01:00:07 PM »
Tried your 0x3 one but not working on eosm. First one does :).
Wait for the magician. I think he returns with 90Mb/s  :P.

EDIT: Seems eosm can handle the patching without the delays and comments so out it goes ;).

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #448 on: July 02, 2020, 01:29:42 PM »
Wait for the magician. I think he returns with 90Mb/s  :P.

Either that, or some men in black just put him in the back of a van with tinted windows by now  ;D

Levas

  • Contributor
  • Hero Member
  • *****
  • Posts: 1731
  • 6d - Nightly build user
Re: UHS-I / SD cards investigation
« Reply #449 on: July 02, 2020, 01:58:05 PM »
Ok, here it goes.
One compiled sd_uhs.mo file.

I used these settings, which gave me the highest recording speeds on 6d and seems stable (doesn't switch to 20Mb/s, but not tested extensively):
Code: [Select]
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x8,        0x3,                             0x3, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x3 }

Tested on 2 different sd cards on the 6d (write speed varies depending on card, one card does ~80Mb/s and the other one ~85Mb/s)

Use at your own risk, only tested on 6d, but the sd_uhs patching is probably also done on EOSM, 100D, 700D, 70D, 650D and 5d3 with this build.
Although Danne already reports this setting doesn't work for EOSM.
When settings don't work, or your card can't handle it, I expect you get 20Mb/s write speed.
In that case, turn off the sd_uhs module in the module tab, restart your camera and everything should be normal again.

Copy this file in your ML module directory (replace old sd_uhs.mo file if you're already using one)
Should work on crop_rec_4K branches I guess ?

The patching is done at startup of the camera, you won't get any messages or feedback with this one.
Only thing you would see is some more activity from your SD card unit (red led blinks a few more times at startup)

Here is the link to the compiled module file:
https://drive.google.com/file/d/1wRLfWoMDCxB2SAZXRVoKM-9plDBAvxIq/view?usp=sharing

Here's a link to the source:
https://drive.google.com/file/d/1w8E1IPGSyJbYIb3MiZNic-jGI0yQTwJv/view?usp=sharing

To know if it works, try some raw recording and see what write speeds are displayed or see if you get longer recording times.

If you want to do benchmark test, here's the benchmark module for the crop_rec_4K branch:
https://drive.google.com/file/d/1dbqHccpJK52hxguy8QGvFUhVVdYe3S_G/view?usp=sharing