UHS-I / SD cards investigation

Started by nikfreak, July 30, 2014, 05:46:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Danne


70MM13

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

Yes, probably not. Thanks for testing. Let´s leave that one for now.

theBilalFakhouri

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:
{ 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:
{ 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

Levas

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


Levas

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

Well,well,well  :). From theBilalFakhouri numbers on eosm:
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }

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




EDIT:
This also works:
0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4

theBilalFakhouri

Oh, this was a typo, it should be like your edit, I will edit the presets to the correct values.

Quote from: Danne on July 02, 2020, 10:07:37 AMEDIT:
This also works:
0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4

Danne

So cool. I am getting full sensor readout(anamorphic) in 1736x3256 14fps write speed 68Mb/s on my eosm. Prior was 10fps maximum.

masc

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

Sandisk wants to know your location!

mineralof

Quote from: Levas 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
unbelievable!

Danne

Quote from: Walter Schulz on July 02, 2020, 10:50:11 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

is it already possible to download a new module for testing on canon 6d?

Levas

@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

@Danne and @theBilalFakhouri
Are your settings stable or does it still switch to 20Mb/s after a while ?

Danne

Seems stable over here(eosm).
I recommend you run my latest sd_uhs code.

Levas

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

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:

0x8,        0x3,                             0x3, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x3


The last one looks stable to me.

Danne

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

Quote from: Danne on July 02, 2020, 01:00:07 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

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):

{ 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

theBilalFakhouri

Quote from: Levas 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 ?

This preset works fine and doesn't switch to 48 MHz, tested on 700D
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x8,        0x3,                             0x4, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x4 }


This one it also works on 700D and I could record tens of video clips in all video mods mv720, mv1080, x5, 1x3 etc . . but at some point it will switch back to 48 MHz on 700D
{ 0xC0400600, 0xC0400604,/*C0400608, C040060C*/0xC0400610, 0xC0400614, 0xC0400618, 0xC0400624, 0xC0400628, 0xC040061C, 0xC0400620 }
{        0x8,        0x3,                             0x3, 0x1D000301,        0x0,      0x201,      0x201,      0x100,        0x3 }



However the write speed on these two presets are not constant, it drops especially on Sandisk Extreme Pro 170 MB/s, only the Write Speed drops , but read speed is constant during benchmark, I got it 105.4 MB/s read speed :D , we need Bench.mo with graph overtime , if someone could implement it, that will be helpful.



I tried to call sdDMAWriteBlk: Transfer Block Size Invalid I end up with a Card not working with Camera, it couldn't startup again with card I made the call with, on PC the card works just fine, I formatted it many times in different types, the camera refused to work with the card, until I got SD Memory Card Formatter from SD Association, that resolved the problem like magic after a quick format . .

Not sure if I did the call right :P

Levas

Quote from: theBilalFakhouri on July 02, 2020, 02:24:28 PM
However the write speed on these two presets are not constant, it drops especially on Sandisk Extreme Pro 170 MB/s

Same over here, noticed yesterday with the 128Gb Sandisk Extreme Pro 170 MB/s that the write speeds fluctuate.
The 64Gb Sandisk extreme pro 95Mb/s I'm having seems far more stable with write speeds.

Although I didn't try formatting the 128GB card. So could be that after reformatting it performs the same ?

70MM13

levas, i tried your module on my 5d3, and it gave me 20mb/s  with my sandisk 170 :(

i await the next version :)