placing ML into shoot memory

Started by g3gg0, April 06, 2013, 01:43:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

g3gg0

0xFF000000 and 0xFF800000 are the same flash offset and thus contain the same data.
see http://www.magiclantern.fm/forum/index.php?topic=6785.msg58899#msg58899
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: [email protected]
ONLY donate for things we have done, not for things you expect!

josepvm

Ok, thanks for clarifying [emoji6]

dmilligan

1100D:

GetTaskName: 0xFF06FCC4
sMemShowFix: 0xFF0D85E0


  run_test:ff0d8610:80:16: --- Common ----
  run_test:ff0d8638:80:16: FILE_HEADER             0x40D00000 0x001F7000 2060288
  run_test:ff0d8664:80:16: BMPVRAM1                0x40EF7000 0x00080000 524288
  run_test:ff0d8690:80:16: BMPVRAM2                0x40F77000 0x00080000 524288
  run_test:ff0d86bc:80:16: ENGINE_MIRROR           0x40FF7000 0x00080000 524288
  run_test:ff0d86e8:80:16: DEVELOP_WORK            0x41077000 0x00070000 458752
  run_test:ff0d8714:80:16: VSHADING_COMP_WORK      0x410E7000 0x00080000 524288
  run_test:ff0d8740:80:16: FENCING_WORK            0x41167000 0x00010000 65536
  run_test:ff0d876c:80:16: DARKCUR_COMP_WORK       0x41177000 0x00017800 96256
  run_test:ff0d8798:80:16: CAPTURE_WORK1           0x4118E800 0x00076800 485376
  run_test:ff0d87c4:80:16: CAPTURE_WORK2           0x41205000 0x0003B400 242688
  run_test:ff0d87f0:80:16: LV_WB                   0x41240400 0x0000C000 49152
  run_test:ff0d881c:80:16: LV_HIST                 0x4124C400 0x00002000 8192
  run_test:ff0d8848:80:16: LV_ANGEL                0x4124E400 0x00004040 16448
  run_test:ff0d8874:80:16: LV_FENCING              0x41252440 0x00020C80 134272
  run_test:ff0d88a0:80:16: LV_MARGE_PDEFDATA1      0x412730C0 0x0000EA60 60000
  run_test:ff0d88c8:80:16: LV_MARGE_PDEFDATA2      0x41281B20 0x0000EA60 60000
  run_test:ff0d8bc8:80:16: LV_MARGE_CROP           0x41290580 0x00000000 0
  run_test:ff0d8bf4:80:16: LV_MARGE_ZOOM           0x41290580 0x0000A450 42064
  run_test:ff0d8c20:80:16: DCFNO                   0x4129A9D0 0x00002C00 11264
  run_test:ff0d8c4c:80:16: LV_FACEYUV              0x4129D5D0 0x00024080 147584
  run_test:ff0d8c78:80:16: IMGVRAM1                0x412C1650 0x00410000 4259840
  run_test:ff0d8ca4:80:16: IMGVRAM2                0x416D1650 0x00410000 4259840
  run_test:ff0d8cd0:80:16: IMGVRAM3                0x41AE1650 0x00410000 4259840
  run_test:ff0d8cfc:80:16: IMGPLAY_WORK            0x41EF1650 0x00800000 8388608
  run_test:ff0d8d28:80:16: IMGPLAY_WORK2           0x426F1650 0x00400000 4194304
  run_test:ff0d8d54:80:16: EXMEM3-2_AREA           0x42AF1650 0x0030E9B0 3205552
  run_test:ff0d8d74:80:16: EXMEM3_AREA             0x45E00000 0x00ACB400 11318272
  run_test:ff0d8d94:80:16: AVERAGE_WORK_TOP        0x468CB400 0x00B9A600 12166656
  run_test:ff0d8db0:80:16: AVERAGE_WORK_BOTTOM     0x47465A00 0x00B9A600 12166656
  run_test:ff0d8dc0:80:16: --- Usually Mode ----
  run_test:ff0d8de8:80:16: MEMORY_MGR              0x42E00000 0x03000000 50331648
  run_test:ff0d8df8:80:16: ---    NR Mode   ----
  run_test:ff0d8e20:80:16: NR_MEMORY_MGR           0x42E00000 0x03000000 50331648
  run_test:ff0d8e44:80:16: COMPOSITION_WORK_TOP    0x412C1650 0x00B9A600 12166656
  run_test:ff0d8e6c:80:16: COMPOSITION_WORK_BOTTOM 0x41E5BC50 0x00B9A600 12166656
  run_test:ff0d8e7c:80:16: ---    DP Mode   ----
  run_test:ff0d8ea8:80:16: DP_MULTI                0x467F1650 0x01800000 25165824
  run_test:ff0d8ed0:80:16: DP_SINGLE               0x42AF1650 0x03D00000 63963136
  run_test:ff0d8ee0:80:16: --- Indev Mode ----
  run_test:ff0d8ef4:80:16: [INDVMGR]               0x0
  run_test:ff0d92bc:80:16: YUV                     0x0 0x00000000 0
  run_test:ff0d92d8:80:16: YUV_OUT                 0x0 0x00000000 0
  run_test:ff0d92f4:80:16: INDV_WORK               0x0 0x00000000 0
  run_test:ff0d9304:80:16: --- Ta10 Mode ----
  run_test:ff0d9318:80:16: [TA10MGR]               0x0
  run_test:ff0d9334:80:16: FULL_SIZE_YUV           0x0 0x00000000 0
  run_test:ff0d9350:80:16: HALF_SIZE_YUV           0x0 0x00000000 0

a1ex


dmilligan

What are the grey blocks at the start of all these graphs?

a1ex

That's where DryOS runs, followed by AllocateMemory.

AllocateMemory on 1100D (and others) is from 0x3d0000 to 0xd00000. On 5D3 it's from 0x44C000 to 0xD3C000.

You can get more info about this block with meminfo and memmap from drysh.

a1ex

550D:



Three unused areas, 1M + 0.4M + 0.3M :)

a1ex

1200D, qemu:

(nothing interesting 0.88M free block, named BANK8_FREE1)


--- Common ----
IMGVRAM1                0x40D00000 0x00410000 4259840
FILE_HEADER             0x41110000 0x00200000 2097152
DEVELOP_WORK            0x41310000 0x00074000 475136
FENCING_WORK            0x41384000 0x00010000 65536
LV_QUARK1               0x41394000 0x00064000 409600
EXMEM3_AREA             0x413F8000 0x00C08000 12615680
BMPVRAM1                0x42000000 0x00080000 524288
BMPVRAM2                0x42080000 0x00080000 524288
EXMEM3_2_AREA           0x42100000 0x01F00000 32505856
--- Usually Mode ----
MEMORY_MGR              0x44000000 0x08000000 134217728
---    NR Mode   ----
NR_MEMORY_MGR           0x44000000 0x06000000 100663296
COMPOSITION_WORK_TOP    0x4A000000 0x01116000 17915904
COMPOSITION_WORK_BOTTOM 0x4B116000 0x01116000 17915904
---    DP Mode   ----
DP_MULTI                0x48000000 0x04000000 67108864
DP_SINGLE               0x42100000 0x05F00000 99614720
--- Indev Mode ----
[INDVMGR]               0x44000000
YUV                     0x4CEEA000 0x0222C000 35831808
YUV_OUT                 0x4A000000 0x0222C000 35831808
INDV_WORK               0x44000000 0x06000000 100663296
--- Common Bottom ----
[BOTTOM1]               0x4C22C000
IMGVRAM2                0x4C22C000 0x00410000 4259840
LV_QUARK2               0x4C63C000 0x00064000 409600
IMGPLAY_WORK1           0x4C6A0000 0x00800000 8388608
AVERAGE_WORK_TOP        0x4CEEA000 0x01116000 17915904
AVERAGE_WORK_BOTTOM     0x4E000000 0x01116000 17915904
IMGVRAM3                0x4F116000 0x00410000 4259840
LV_WB                   0x4F526000 0x0002BC00 179200
LV_FACEYUV              0x4F551C00 0x000E1080 921728
LV_HIST                 0x4F632C80 0x00002000 8192
LV_ANGEL                0x4F634C80 0x00004040 16448
LV_FENCING              0x4F638CC0 0x00020C80 134272
LV_QUARK3               0x4F659940 0x00064000 409600
BANK8_FREE1             0x4F6BD940 0x000E2740 927552
VSHADING_COMP_WORK      0x4F7A0080 0x000DC000 901120
DARKCUR_COMP_WORK       0x4F87C080 0x00020000 131072
CAPTURE_WORK1           0x4F89C080 0x00280000 2621440
ENGINE_MIRROR           0x4FB1C080 0x00080000 524288
DCFNO                   0x4FB9C080 0x00004000 16384
IMGPLAY_WORK2           0x4FBA0080 0x00400000 4194304
LV_MARGE_PDEFDATA1      0x4FFA0080 0x00010000 65536
LV_MARGE_PDEFDATA2      0x4FFB0080 0x00010000 65536
LV_MARGE_CROP           0x4FFC0080 0x00010000 65536
LV_MARGE_ZOOM           0x4FFD0080 0x00010000 65536
LV_WORK                 0x4FFE0080 0x0001FF80 130944


7D2 master, qemu:

(I've expected more RAM on this one)


--- Common Top ----
[TOP1]                  0x4124C000
FILE_HEADER             0x4124C000 0x0200000   2097152
JOB                     0x4144C000 0x0200000   2097152
ENGINE_MIRROR           0x4164C000 0x0060000    393216
SMAC_TRIC_WORK          0x416AC000 0x021B000   2207744
AE_WORK                 0x418C7000 0x0038000    229376
VGAIMG_VRAM1            0x418FF000 0x00AC800    706560
VGAIMG_VRAM2            0x419AB800 0x00AC800    706560
VGAIMG_VRAM3            0x41A58000 0x00AC800    706560
BMP_VRAM                0x41B04800 0x02F7C00   3111936
OMAR_COM                0x41DFC400 0x0003400     13312
OMAR                    0x41E00000 0x0200000   2097152
ZICO                    0x42000000 0x0180000   1572864
ARIMA                   0x42180000 0x0008000     32768
SHIRAHAMA               0x42188000 0x0007400     29696
APROC                   0x4218F400 0x000C000     49152
DCFNO                   0x4219B400 0x0004000     16384
USB30                   0x4219F400 0x0025800    153600
RENDERING WORK          0x421C4C00 0x0A7A800  10987520
CAPTURE_WORK1           0x42C3F400 0x0600000   6291456
VSHADING_COMP_WORK      0x4323F400 0x00109800   1087488
DARKCUR_COMP_WORK       0x43348C00 0x0001E800    124928
AUDIO_WORK              0x5BF8D800 0x0120000   1179648
DANCING                 0x43367400 0x0300000   3145728
IMG_VRAM1               0x5F02E000 0x03F4800   4147200
IMG_VRAM2               0x5F422800 0x03F4800   4147200
IMG_VRAM3               0x5F817000 0x03F4800   4147200
IMG_VRAM4               0x5FC0B800 0x03F4800   4147200
--- Usually Mode ----
MEMORY_MGR              0x44078000 0x8C60000 147193856
SS_DEVELOP_FINDER       0x4CCD8000 0x1E9C000  32096256
SS_DEVELOP_PIM          0x53620000 0x1E9C000  32096256
AE_SHOOTING_WORK        0x4EB74000 0x0432000   4399104
AE_SHOOTING_WORK_PIM    0x554BC000 0x0432000   4399104
EXMEM3_AREA             0x43667400 0x0A10C00  10554368
EXMEM3_AREA_2           0x5CBC0000 0x246E000  38199296
IMGPLAY_WORK            0x55938000 0x1400000  20971520
IMGPLAY_WORK2           0x00000000 0x0000000         0 [Cacheable!!]
YUV                     0x55938000 0x4F70000  83296256
1st_YUV                 0x55938000 0x4F70000  83296256
2nd_YUV                 0x5A8A8000 0x0B08000  11567104
---    DP Mode   ----
DP_MULTI                0x4C667400 0x9000000 150994944
DP_SINGLE               0x43667400 0x9000000 150994944
--- Indev Mode ----
[INDVMGR]               0x44078000
YUV                     0x48800000 0x2800000  41943040
YUV_OUT                 0x4F000000 0x2800000  41943040
INDV_WORK               0x51800000 0x98AF000 160100352
--- Movie Mode ----
REC_WORK                0x4CCD8000 0x3328000  53641216
STREAM                  0x50000000 0x35C2C00  56372224
REC_YUV                 0x5B3B0000 0x0BDD800  12441600

hjfilmspeed

Wait does this mean you could possibly run ML without a card?

a1ex

How exactly did you reach this conclusion?

Licaon_Kter

Maybe @hjfilmspeed thinks you can just upload ML there in memory, but that's volatile IIRC, right?

mk11174

600D
run_test:ff0da32c:80:16: IMGVRAM1                0x40D00000 0x00410000 4259840
  run_test:ff0da354:80:16: FILE_HEADER             0x41110000 0x00200000 2097152
  run_test:ff0da37c:80:16: DEVELOP_WORK            0x41310000 0x00074000 475136
  run_test:ff0da3a8:80:16: FENCING_WORK            0x41384000 0x00010000 65536
  run_test:ff0da3d4:80:16: LV_QUARK1               0x41394000 0x00064000 409600
  run_test:ff0da400:80:16: EXMEM3_AREA             0x413F8000 0x00C08000 12615680
  run_test:ff0da428:80:16: BMPVRAM1                0x42000000 0x00080000 524288
  run_test:ff0da450:80:16: BMPVRAM2                0x42080000 0x00080000 524288
  run_test:ff0da478:80:16: EXMEM3_2_AREA           0x42100000 0x01F00000 32505856
  run_test:ff0da488:80:16: --- Usually Mode ----
  run_test:ff0da4b0:80:16: MEMORY_MGR              0x44000000 0x08000000 134217728
  run_test:ff0da4c0:80:16: ---    NR Mode   ----
  run_test:ff0da4e8:80:16: NR_MEMORY_MGR           0x44000000 0x06000000 100663296
  run_test:ff0da510:80:16: COMPOSITION_WORK_TOP    0x4A000000 0x01116000 17915904
  run_test:ff0da538:80:16: COMPOSITION_WORK_BOTTOM 0x4B116000 0x01116000 17915904
  run_test:ff0da548:80:16: ---    DP Mode   ----
  run_test:ff0da570:80:16: DP_MULTI                0x48000000 0x04000000 67108864
  run_test:ff0da598:80:16: DP_SINGLE               0x42100000 0x05F00000 99614720
  run_test:ff0da5a8:80:16: --- Indev Mode ----
  run_test:ff0da5c4:80:16: [INDVMGR]               0x44000000
  run_test:ff0da8f8:80:16: YUV                     0x4CEEA000 0x0222C000 35831808
  run_test:ff0da91c:80:16: YUV_OUT                 0x4A000000 0x0222C000 35831808
  run_test:ff0da944:80:16: INDV_WORK               0x44000000 0x06000000 100663296
  run_test:ff0da954:80:16: --- Common Bottom ----
  run_test:ff0da974:80:16: [BOTTOM1]               0x4C22C000
  run_test:ff0da9a0:80:16: IMGVRAM2                0x4C22C000 0x00410000 4259840
  run_test:ff0da9cc:80:16: LV_QUARK2               0x4C63C000 0x00064000 409600
  run_test:ff0da9f8:80:16: IMGPLAY_WORK1           0x4C6A0000 0x00800000 8388608
  run_test:ff0daa20:80:16: AVERAGE_WORK_TOP        0x4CEEA000 0x01116000 17915904
  run_test:ff0daa44:80:16: AVERAGE_WORK_BOTTOM     0x4E000000 0x01116000 17915904
  run_test:ff0daa70:80:16: IMGVRAM3                0x4F116000 0x00410000 4259840
  run_test:ff0daa9c:80:16: LV_WB                   0x4F526000 0x0002BC00 179200
  run_test:ff0daac8:80:16: LV_FACEYUV              0x4F551C00 0x000E1080 921728
  run_test:ff0daaf4:80:16: LV_HIST                 0x4F632C80 0x00002000 8192
  run_test:ff0dab20:80:16: LV_ANGEL                0x4F634C80 0x00004040 16448
  run_test:ff0dab4c:80:16: LV_FENCING              0x4F638CC0 0x00020C80 134272
  run_test:ff0dab78:80:16: LV_QUARK3               0x4F659940 0x00064000 409600
  run_test:ff0daba4:80:16: BANK8_FREE1             0x4F6BD940 0x000E2740 927552
  run_test:ff0dabd0:80:16: VSHADING_COMP_WORK      0x4F7A0080 0x000DC000 901120
  run_test:ff0dabfc:80:16: DARKCUR_COMP_WORK       0x4F87C080 0x00020000 131072
  run_test:ff0dac28:80:16: CAPTURE_WORK1           0x4F89C080 0x00280000 2621440
  run_test:ff0dac54:80:16: ENGINE_MIRROR           0x4FB1C080 0x00080000 524288
  run_test:ff0db014:80:16: DCFNO                   0x4FB9C080 0x00004000 16384
  run_test:ff0db040:80:16: IMGPLAY_WORK2           0x4FBA0080 0x00400000 4194304
  run_test:ff0db06c:80:16: LV_MARGE_PDEFDATA1      0x4FFA0080 0x00010000 65536
  run_test:ff0db098:80:16: LV_MARGE_PDEFDATA2      0x4FFB0080 0x00010000 65536
  run_test:ff0db0c4:80:16: LV_MARGE_CROP           0x4FFC0080 0x00010000 65536
  run_test:ff0db0f0:80:16: LV_MARGE_ZOOM           0x4FFD0080 0x00010000 65536
  run_test:ff0db11c:80:16: LV_WORK                 0x4FFE0080 0x0001FF80 130944
500D/T1i  550D/T2i  600D/T3i  700D/T5i

a1ex

600D:






I've noticed some of the memory blocks are labeled as FREE, so I've updated all graphs to show them as unused. Full list:


5D Mark III     BANK1_FREE1             0x4153C000 0x00029200 168448
60D             FREE2                   0x5CC280E0 0x002C1F20 2891552
600D            BANK8_FREE1             0x4F6BD940 0x000E2740 927552
1200D           BANK8_FREE1             0x4F6BD940 0x000E2740 927552
7D              FREE1                   0x41FC2780 0x0003D880 252032
7D              FREE2                   0x5CBD3980 0x00316680 3237504
7D              FREE3                   0x5F758780 0x008A7880 9074816
70D             BANK1_FREE1             0x4153C000 0x00029200 168448
70D             BANK1_FREE2             0x41DD9B00 0x0000E900 59648
70D             BANK1_FREE3             0x41FC6000 0x00001000 4096

a1ex

80D, QEMU:



1GB RAM 8)


--- Common Lower ----
NETWORK_HEAP             0x40D6C000 0x00380000   3670016
SMAC_TRIC_WORK           0x410EC000 0x0021B000   2207744
TUNE2                    0x41307000 0x00180000   1572864
TUNE                     0x41487000 0x00120000   1179648
FIX                      0x415A7000 0x00160000   1441792
BITMAP_VRAM              0x41707000 0x002F7C00   3111936
OMAR                     0x41A00000 0x00480000   4718592
OMAR_NETWORK             0x41E80000 0x00180000   1572864
ZICO                     0x42000000 0x00180000   1572864
ARIMA                    0x42180000 0x00008000     32768
SHIRAHAMA                0x42188000 0x00007400     29696
APROC                    0x4218F400 0x0000D000     53248
DARKCUR_COMP_WORK        0x4219C400 0x00022000    139264
VSHADING_COMP_WORK       0x421BE400 0x0021F800   2226176
FACTORY/TVAFDEBUG        0x423DDC00 0x0004B000    307200
ENGINE_MIRROR            0x42428C00 0x00060000    393216
MOVIE_CFILTER_SEED       0x42488C00 0x00100000   1048576
CAPTURE_WORK             0x42588C00 0x01560000  22413312
DCFNO                    0x43AE8C00 0x00004000     16384
OMAR_COM                 0x43AECC00 0x00003400     13312
RENDERING_WORK           0x43AF0000 0x00AFA800  11511808
JOB_OBJECT               0x445EA800 0x00380000   3670016
FILE_HEADER              0x4496A800 0x00200000   2097152
--- Common Upper ----
DANCING                  0x7F122800 0x00300000   3145728
IMG_VRAM1                0x7F422800 0x003F4800   4147200
IMG_VRAM2                0x7F817000 0x003F4800   4147200
IMG_VRAM3                0x7FC0B800 0x003F4800   4147200
--- Normal ----
SS-1                     0x44BC0000 0x010D0000  17629184
YUV_1st-1                0x45C90000 0x02F40000  49545216
YUV_2nd-1                0x48BD0000 0x0060AE00   6336000
EXMEM3_AREA              0x491DAE00 0x01924000  26361856
MEMORY_MGR1              0x4AAFEE00 0x02AA0000  44695552
OnlyMem1-1               0x4D59EE00 0x02AA0000  44695552
OnlyMem1-2               0x5003EE00 0x02AA0000  44695552
OnlyMem1-3               0x52ADEE00 0x02AA0000  44695552
OnlyMem1-4               0x5557EE00 0x02AA0000  44695552
OnlyMem1-5               0x5801EE00 0x02AA0000  44695552
OnlyMem1-6               0x5AABEE00 0x02AA0000  44695552
OnlyMem1-7               0x5D55EE00 0x02AA0000  44695552
OnlyMem1-8               0x60000000 0x02AA0000  44695552
OnlyMem1-9               0x62AA0000 0x02AA0000  44695552
OnlyMem1-10              0x65540000 0x02AA0000  44695552
OnlyMem1-11              0x67FE0000 0x02AA0000  44695552
OnlyMem1-12              0x6AA80000 0x02AA0000  44695552
OnlyMem1-13              0x6D520000 0x02AA0000  44695552
OnlyMem1-14              0x6FFC0000 0x02AA0000  44695552
MEMORY_MGR2              0x72A60000 0x02AA0000  44695552
EXMEM3_AREA_2            0x75500000 0x048A8000  76185600
SS-2                     0x79DA8000 0x010D0000  17629184
YUV_1st-2                0x7AE78000 0x02F40000  49545216
YUV_2nd-1                0x7DDB8000 0x0060AE00   6336000
YUV_Thumb                0x7E3C4C00 0x00180000   1572864
--- Movie ----
MOVIE_RECWORK            0x5AAC0000 0x03400000  54525952
AUDIO_WORK               0x5DEC0000 0x000C1800    792576
MOVIE_STREAM             0x5DF81800 0x03600000  56623104
CINEMA_FILTER_WORK       0x61581800 0x00E00000  14680064
LV_WORK                  0x63680000 0x04960000  76939264
MOVIE_RECYUV             0x7E544C00 0x00BDDC00  12442624
--- Play ----
MOVIE_PLAYWORK           0x63FE0000 0x02400000  37748736
IMGPLAY_WORK             0x663E0000 0x01400000  20971520
SLIDESHOW_WORK           0x677E0000 0x00800000   8388608
--- Multishot ----
HDR/GIS_FLEXIBLE_MEM3_1  0x00000000 0x00000000         0 [Cacheable!!]
HDR/GIS_FLEXIBLE_MEM3_2  0x00000000 0x00000000         0 [Cacheable!!]
HDR/GIS_SS-1             0x44BC0000 0x010D0000  17629184
HDR/GIS_YUV 1st-1        0x45C90000 0x02F40000  49545216
HDR/GIS_YUV 2nd-1        0x48BD0000 0x0060AE00   6336000
HDR/GIS_WORK3            0x491DAE00 0x02C00000  46137344
HDR/GIS_WORK1            0x4BDDAE00 0x02C00000  46137344
HDR/GIS_WORK2            0x4E9DAE00 0x02C00000  46137344
HDR/GIS_WORK4            0x515DAE00 0x02C00000  46137344
HDR/GIS_COMP_WORK        0x541DAE00 0x0F4A5200 256528896
HDR/GIS_MOVIE_RECWORK    0x5AAC0000 0x03400000  54525952
HDR/GIS_AUDIO_WORK       0x5DEC0000 0x000C1800    792576
HDR/GIS_MOVIE_STREAM     0x5DF81800 0x03600000  56623104
HDR/GIS_LV_WORK          0x63680000 0x04960000  76939264
HDR/GIS_MOVIE_PLAYWORK   0x63FE0000 0x02400000  37748736
HDR/GIS_IMGPLAY_WORK     0x663E0000 0x01400000  20971520
HDR/GIS_SLIDE_SHOW_WORK  0x677E0000 0x00800000   8388608
HDR/GIS_EXMEM3_AREA      0x67FE0000 0x11DC8000 299663360
HDR/GIS_SS-2             0x79DA8000 0x010D0000  17629184
HDR/GIS_YUV_1st-2        0x7AE78000 0x02F40000  49545216
HDR/GIS_YUV_2nd-2        0x7DDB8000 0x0060AE00   6336000
HDR/GIS_YUV_Thumb        0x7E3C4C00 0x00180000   1572864
HDR/GIS_MOVIE_RECYUV     0x7E544C00 0x00BDDC00  12442624
--- Indev ----
INDEV_SS-1               0x44BC0000 0x010D0000  17629184
INDEV_YUV_1st-1          0x45C90000 0x02F40000  49545216
INDEV_YUV_2nd-1          0x48BD0000 0x0060AE00   6336000
INDEV_EXMEM3_AREA        0x491DAE00 0x092B5200 153833984
INDEV_YUV_IN             0x52490000 0x02DC6C00  48000000
INDEV_YUV_OUT            0x55256C00 0x02DC6C00  48000000
INDEV_BASIC              0x58020000 0x02AA0000  44695552
INDEV_WORK               0x67FE0000 0x0A8E8000 177111040
INDEV_EXMEM3_AREA        0x728C8000 0x074E0000 122552320
INDEV_SS-2               0x79DA8000 0x010D0000  17629184
INDEV_YUV_1st-2          0x7AE78000 0x02F40000  49545216
INDEV_YUV_2nd-2          0x7DDB8000 0x0060AE00   6336000
INDEV_YUV_Thumb          0x7E3C4C00 0x00180000   1572864
INDV_MOVIE_REC_YUV       0x7E544C00 0x00BDDC00  12442624
--- DP ----
DP_SS-1                  0x44BC0000 0x010D0000  17629184
DP_YUV_1st-1             0x45C90000 0x02F40000  49545216
DP_YUV_2nd-1             0x48BD0000 0x0060AE00   6336000
DP_YUV_IN                0x491DAE00 0x02DC6C00  48000000
DP_YUV_OUT               0x4BFA1A00 0x02DC6C00  48000000
DP_MULTI_CHUNK           0x4ED68600 0x17677A00 392657408
DP_WORK                  0x67FE0000 0x0A8E8000 177111040
DP_SINGLE_CHUNK          0x728C8000 0x074E0000 122552320
DP_SS-2                  0x79DA8000 0x010D0000  17629184
DP_YUV_1st-2             0x7AE78000 0x02F40000  49545216
DP_YUV_2nd-2             0x7DDB8000 0x0060AE00   6336000
DP_YUV_Thumb             0x7E3C4C00 0x00180000   1572864
DP_MOVIE_REC_YUV         0x7E544C00 0x00BDDC00  12442624

hjfilmspeed

Oh yeah I'm sorry I must have misunderstood this. I'm useless ha ha

a1ex

EOS M2, QEMU:




  1062: 48619.520 [RSC] --- Common Top ----
  1063: 48619.520 [RSC] [TOP1]                  0x40C2A000
  1064: 48619.776 [RSC] REPLACE_IMAGE_VRAM      0x40C2A000 0x00032000 204800
  1065: 48623.104 [RSC] SSS_DEVELOP_WORK        0x40C5C000 0x00038000 229376
  1066: 48626.432 [RSC] SDS_DEVELOP_WORK        0x40C94000 0x00038000 229376
  1067: 48629.760 [RSC] DARKCUR_COMP_WORK       0x40CCC000 0x00020000 131072
  1069: 48637.440 [RSC] FENCING_WORK            0x40CEC000 0x00010000 65536
  1070: 48640.768 [RSC] DCFNO                   0x40CFC000 0x00004000 16384
  1071: 48644.096 [RSC] LVMARGE_P_DEF_DATA_1    0x40D00000 0x0000A000 40960
  1072: 48647.424 [RSC] LVMARGE_P_DEF_DATA_2    0x40D0A000 0x0000A000 40960
  1074: 48654.848 [RSC] LVMARGE_P_DEF_DATA_3    0x41FF0000 0x0000A000 40960
  1075: 48657.920 [RSC] LVMARGE_P_DEF_DATA_ZOOM 0x40D14000 0x0000C000 49152
  1076: 48661.504 [RSC] FILE_HEADER             0x40D20000 0x00240000 2359296
  1077: 48664.320 [RSC] SAF WORK                0x40FA0000 0x00200000 2097152
  1078: 48667.136 [RSC] BMPVRAM1                0x411A0000 0x00080000 524288
  1080: 48676.864 [RSC] BMPVRAM2                0x41220000 0x00080000 524288
  1081: 48680.704 [RSC] ENGINE_MIRROR           0x412A0000 0x00044000 278528
  1082: 48688.640 [RSC] VSHADING_COMP_WORK      0x412E4000 0x000DC000 901120
  1084: 48692.992 [RSC] STILL SCAR              0x413C0000 0x00075B00 482048
  1085: 48692.992 [RSC] TUNEDATA                0x41435B00 0x00140000 1310720
  1086: 48692.992 [RSC] TUNEDATA2               0x41575B00 0x00160000 1441792
  1087: 48693.504 [RSC] FIXDATA                 0x416D5B00 0x0021E500 2221312
  1088: 48693.504 [RSC] LVMARGE_P_DEF_DATA_CROP 0x418F4000 0x0000C000 49152
  1089: 48693.760 [RSC] WIRELESS_WORK2          0x41900000 0x00300000 3145728
  1090: 48699.648 [RSC] WIRELESS_WORK1   *      0x41C00000 0x00200000 2097152
  1091: 48702.464 [RSC] ADAPTER_TRANSFER *      0x0 0x00000000 0
  1092: 48702.464 [RSC] EEKO                    0x41E00000 0x001E0000 1966080
  1093: 48702.720 [RSC] SHOOTING_CREATIVEFILTER 0x41FE0000 0x00010000 65536
  1094: 48704.512 [RSC] EXMEM3_AREA_4           0x0 0x00000000 0
  1095: 48706.304 [RSC] --- Usually Mode ----
  1096: 48708.352 [RSC] MEMORY_MGR              0x42000000 0x04000000 67108864
  1098: 48715.520 [RSC] ONLY MEM1 1             0x46000000 0x02000000 33554432
  1099: 48717.568 [RSC] ONLY MEM1 2             0x48000000 0x02000000 33554432
  1100: 48721.152 [RSC] IMGPLAY_WORK            0x4A000000 0x00A00000 10485760
  1101: 48724.736 [RSC] IMGPLAY_WORK2           0x4AA00000 0x00400000 4194304
  1102: 48727.808 [RSC] SS_DEVELOP1             0x4A000000 0x00E00000 14680064
  1104: 48734.976 [RSC] EXMEM3_AREA_2           0x4AE00000 0x000EA000 958464
  1105: 48738.816 [RSC] AVERAGE_WORK_TOP        0x4AEEA000 0x01116000 17915904
  1106: 48742.144 [RSC] AVERAGE_WORK_BOTTOM     0x4C000000 0x01116000 17915904
  1107: 48745.472 [RSC] SS_DEVELOP_OTHER_WORK   0x4D116000 0x00400000 4194304
  1109: 48752.384 [RSC] SLIDE_SHOW_WORK         0x4D516000 0x00800000 8388608
  1110: 48753.920 [RSC] CAPTURE_WORK1           0x4D600000 0x00240000 2359296
  1111: 48760.576 [RSC] EXMEM3_AREA_1           0x4DD16000 0x016BA000 23830528
  1112: 48764.416 [RSC] IMGVRAM1                0x4F3D0000 0x00410000 4259840
  1113: 48764.928 [RSC] IMGVRAM2                0x4F7E0000 0x00410000 4259840
  1114: 48765.184 [RSC] IMGVRAM3                0x4FBF0000 0x00410000 4259840
  1116: 48771.584 [RSC] ---   GIS Mode   ----
  1117: 48772.352 [RSC] TEMPMEM1                0x48000000 0x02000000 33554432
  1118: 48775.680 [RSC] WORK                    0x4A000000 0x08600000 140509184
  1119: 48775.680 [RSC] IMGPLAY_WORK            0x4A000000 0x00A00000 10485760
  1120: 48775.680 [RSC] IMGPLAY_WORK2           0x4AA00000 0x00400000 4194304
  1121: 48779.520 [RSC] MOVIE_REC_WORK          0x4AE00000 0x00FA0000 16384000
  1122: 48779.520 [RSC] MOVIE_PLAY_WORK         0x4BE00000 0x00E00000 14680064
  1123: 48782.848 [RSC] SLIDE_SHOW_WORK         0x4D516000 0x00800000 8388608
  1124: 48787.200 [RSC] MOVIE_STREAM            0x4DD16000 0x01400000 20971520
  1126: 48790.528 [RSC] IMGVRAM1                0x4F3D0000 0x00410000 4259840
  1127: 48796.160 [RSC] IMGVRAM2                0x4F7E0000 0x00410000 4259840
  1128: 48796.160 [RSC] IMGVRAM3                0x4FBF0000 0x00410000 4259840
  1129: 48797.696 [RSC] EXMEM3_1_AREA           0x42000000 0x06000000 100663296
  1130: 48800.256 [RSC] EXMEM3_2_AREA           0x4CC40000 0x004D6000 5070848
  1131: 48802.304 [RSC] ---   HDR Mode   ----
  1133: 48806.912 [RSC] TEMPMEM1                0x48000000 0x02000000 33554432
  1134: 48808.192 [RSC] WORK                    0x4800000 0x0A600000 174063616
  1135: 48813.312 [RSC] IMGPLAY_WORK            0x4A000000 0x00A00000 10485760
  1136: 48815.360 [RSC] IMGPLAY_WORK2           0x4AA00000 0x00400000 4194304
  1137: 48815.360 [RSC] MOVIE_REC_WORK          0x4AE00000 0x00FA0000 16384000
  1138: 48815.360 [RSC] MOVIE_PLAY_WORK         0x4BE00000 0x00E00000 14680064
  1139: 48815.872 [RSC] SLIDE_SHOW_WORK         0x4D516000 0x00800000 8388608
  1140: 48816.896 [RSC] MOVIE_STREAM            0x4DD16000 0x01400000 20971520
  1141: 48817.920 [RSC] IMGVRAM1                0x4F3D0000 0x00410000 4259840
  1142: 48817.920 [RSC] IMGVRAM2                0x4F7E0000 0x00410000 4259840
  1143: 48817.920 [RSC] IMGVRAM3                0x4FBF0000 0x00410000 4259840
  1144: 48820.224 [RSC] EXMEM3_1_AREA           0x42000000 0x06000000 100663296
  1145: 48823.808 [RSC] EXMEM3_2_AREA           0x4CC40000 0x004D6000 5070848
  1146: 48824.320 [RSC] ---    NR Mode   ----
  1148: 48829.952 [RSC] NR_MEMORY_MGR           0x42000000 0x08000000 134217728
  1149: 48833.024 [RSC] COMPOSITION_WORK_TOP    0x0 0x00000000 0
  1150: 48836.096 [RSC] COMPOSITION_WORK_BOTTOM 0x0 0x00000000 0
  1151: 48839.424 [RSC] ---    DP Mode   ----
  1152: 48841.216 [RSC] DP_SINGLE               0x42000000 0x05E00000 98566144
  1153: 48841.216 [RSC] DP_MULTI                0x47E00000 0x04D94000 81346560
  1154: 48843.520 [RSC] DP_CAPTURE_WORK1        0x4CB94000 0x00040000 262144
  1155: 48844.288 [RSC] DP_AVERAGE_TOP          0x4DBD4000 0x01116000 17915904
  1157: 48848.128 [RSC] DP_AVERAGE_BOTTOM       0x4ECEA000 0x01116000 17915904
  1158: 48849.408 [RSC] --- Indev Mode ----
  1159: 48851.200 [RSC] [INDVMGR]               0x0
  1160: 48852.480 [RSC] YUV                     0x4AEEA000 0x0222C000 35831808
  1161: 48852.480 [RSC] YUV_OUT                 0x42000000 0x0222C000 35831808
  1162: 48853.760 [RSC] INDV_WORK               0x0 0x00000000 0


256MB. Note the WORK region has invalid size (it would overflow), so I've patched it to get a proper graph.

No unused areas for us.

a1ex

1300D, QEMU:




--- Common Top ----
IMGVRAM1                0x40D00000 0x00410000 4259840
FILE_HEADER             0x41110000 0x00200000 2097152
DEVELOP_WORK            0x41310000 0x00074000 475136
FENCING_WORK            0x41384000 0x00010000 65536
LV_QUARK1               0x41394000 0x00064000 409600
EXMEM3_AREA             0x41878000 0x00788000 7897088
BMPVRAM1                0x42000000 0x00080000 524288
BMPVRAM2                0x42080000 0x00080000 524288
EXMEM3_2_AREA           0x42100000 0x01F00000 32505856
--- Usually Mode ----
MEMORY_MGR              0x44000000 0x08000000 134217728
---    NR Mode   ----
NR_MEMORY_MGR           0x44000000 0x06000000 100663296
COMPOSITION_WORK_TOP    0x4A000000 0x01116000 17915904
COMPOSITION_WORK_BOTTOM 0x4B116000 0x01116000 17915904
---    DP Mode   ----
DP_MULTI                0x48000000 0x04000000 67108864
DP_SINGLE               0x42100000 0x05F00000 99614720
--- Indev Mode ----
[INDVMGR]               0x44000000
YUV                     0x4CEEA000 0x0222C000 35831808
YUV_OUT                 0x4A000000 0x0222C000 35831808
INDV_WORK               0x44000000 0x06000000 100663296
--- Common Bottom ----
[BOTTOM1]               0x4C22C000
IMGVRAM2                0x4C22C000 0x00410000 4259840
LV_QUARK2               0x4C63C000 0x00064000 409600
IMGPLAY_WORK1           0x4C6A0000 0x00800000 8388608
AVERAGE_WORK_TOP        0x4CEEA000 0x01116000 17915904
AVERAGE_WORK_BOTTOM     0x4E000000 0x01116000 17915904
IMGVRAM3                0x4F116000 0x00410000 4259840
LV_WB                   0x4F526000 0x0002BC00 179200
LV_FACEYUV              0x4F551C00 0x000E1080 921728
LV_HIST                 0x4F632C80 0x00002000 8192
LV_ANGEL                0x4F634C80 0x00004040 16448
LV_FENCING              0x4F638CC0 0x00020C80 134272
LV_QUARK3               0x4F659940 0x00064000 409600
BANK8_FREE1             0x4F6BD940 0x000E2740 927552
VSHADING_COMP_WORK      0x4F7A0080 0x000DC000 901120
DARKCUR_COMP_WORK       0x4F87C080 0x00020000 131072
CAPTURE_WORK1           0x4F89C080 0x00280000 2621440
ENGINE_MIRROR           0x4FB1C080 0x00080000 524288
DCFNO                   0x4FB9C080 0x00004000 16384
IMGPLAY_WORK2           0x4FBA0080 0x00400000 4194304
LV_MARGE_PDEFDATA1      0x4FFA0080 0x00010000 65536
LV_MARGE_PDEFDATA2      0x4FFB0080 0x00010000 65536
LV_MARGE_CROP           0x4FFC0080 0x00010000 65536
LV_MARGE_ZOOM           0x4FFD0080 0x00010000 65536
LV_WORK                 0x4FFE0080 0x0001FF80 130944


Another 256MB cam. There is a gap between LV_QUARK1 and EXMEM3 that might be useful.

a1ex

5D Mark IV, QEMU:




--- Common Lower ----
[TOP1]                  0x40D6C000
ENGINE_MIRROR            0x40D6C000 0x0008E000    581632
GIMLET_WORK              0x40DFA000 0x00010000     65536
DANCING                  0x40E0A000 0x00300000   3145728
SMAC TRIC WORK           0x4110A000 0x0021B000   2207744
DCFNO                    0x41325000 0x00004000     16384
OMAR COM                 0x41329000 0x00003400     13312
BITMAP VRAM              0x4132C400 0x0034C400   3458048
VGAIMG_VRAM1             0x41678800 0x0012C000   1228800
VGAIMG_VRAM2             0x417A4800 0x0012C000   1228800
VGAIMG_VRAM3             0x418D0800 0x0012C000   1228800
OMAR                     0x41A00000 0x00480000   4718592
OMAR_NETWORK_BSS         0x41E80000 0x00180000   1572864
ZICO                     0x42000000 0x00180000   1572864
ARIMA                    0x42180000 0x00024000    147456
SHIRAHAMA                0x421A4000 0x0000A000     40960
APROC                    0x421AE000 0x00016800     92160
VSHADING_COMP_WORK       0x421C4800 0x0002C6A0    181920
DARKCUR_COMP_WORK        0x421F1000 0x000250A0    151712
CAPTURE_WORK             0x42216400 0x0014A800   1353728
FACTORY/TVAFDEBUG        0x43049C00 0x0004B000    307200
RENDERING WORK           0x43094C00 0x00AAF9DC  11205084
DAF_PROGRAM              0x43B44800 0x00007530     30000
--- Common Upper ----
JOB OBJECT               0x7D98D400 0x00200000   2097152
FILE HEADER              0x7DB8D400 0x00200000   2097152
NETWORK HEAP             0x7DD8D400 0x00380000   3670016
FIX_DATA                 0x7E10D400 0x00140000   1310720
TUNE_DATA                0x7E24D400 0x003C0000   3932160
TUNE_DATA2               0x7E60D400 0x00760000   7733248
TUNE_DATA3               0x7ED6D400 0x002C0000   2883584
IMG_VRAM1                0x7F02D400 0x003F4800   4147200
IMG_VRAM2                0x7F421C00 0x003F4800   4147200
IMG_VRAM3                0x7F816400 0x003F4800   4147200
IMG_VRAM4                0x7FC0AC00 0x003F4800   4147200
--- Normal ----
LV_SERVO_WORK-1          0x43B50000 0x011F3A80  18823808
SS-1                     0x44D48000 0x029B0000  43712512
YUV 1st-1                0x476F8000 0x03BE8000  62816256
YUV 2nd-1                0x4B2E0000 0x00A8FC00  11074560
EXMEM3_AREA              0x4BD6FC00 0x00851C00   8723456
OnlyMem1-1               0x4C5C1800 0x0345FC00  54918144
OnlyMem1-2               0x4FA21400 0x0345FC00  54918144
MEMORY_MGR1              0x52E81000 0x0D17F000 219672576
MEMORY_MGR2              0x60000000 0x0D17F000 219672576
OnlyMem1-3               0x6D17F000 0x0345FC00  54918144
OnlyMem1-4               0x705DEC00 0x0345FC00  54918144
EXMEM3_AREA_2            0x73A3E800 0x02768C00  41323520
SS-2                     0x761A8000 0x029B0000  43712512
YUV 1st-2                0x78B58000 0x03BE8000  62816256
YUV 2nd-2                0x7C740000 0x00A8FC00  11074560
YUV Thumb                0x7D1CFC00 0x000CB700    833280
LV_SERVO_WORK-2          0x7D2A0000 0x006ED280   7262848
--- Movie ----
LV_WORK-1                0x43B50000 0x03D4E5E4  64284132
REC_DATA-1               0x4C5C1800 0x01580000  22544384
MOVIE_STREAM             0x562E0C00 0x10400000 272629760
REC_DATA-2               0x6D17F000 0x01580000  22544384
AUDIO WORK               0x7D2A0000 0x00263048   2502728
LV_WORK-2                0x761A8000 0x028C45E8  42747368
--- Play ----
MOVIE_PLAYWORK           0x4784E800 0x024FD9F8  38787576
IMGPLAY_WORK             0x4C5C8000 0x01400000  20971520
SLIDESHOW_WORK           0x4D9C8000 0x007E9000   8294400
--- DLO ----
IMG_RECOVERY_WORK        0x59800000 0x14000000 335544320
--- Multishot ----
HDR/GIS_WORK1            0x69E00000 0x03600000  56623104
HDR/GIS_WORK2            0x6D400000 0x03600000  56623104
HDR/GIS_WORK3            0x66800000 0x03600000  56623104
HDR/GIS_WORK4            0x70A00000 0x03600000  56623104
HDR/GIS_COMP_WORK-1      0x4C600000 0x0FA00000 262144000
HDR/GIS_COMP_WORK-2      0x74000000 0x01A00000  27262976
HDR/GIS_EXMEM3           0x4BD6FC00 0x00851C00   8723456
HDR/GIS_FLEXIBLE_MEM3_1  0x66800000 0x0D800000 226492416
HDR/GIS_FLEXIBLE_MEM3_2  0x4C600000 0x1A200000 438304768
--- Indev ----
INDEV_EXMEM3_AREA_1      0x4BD6FC00 0x00851C00   8723456
INDEV_MEMORY_MGR1        0x4FA21400 0x068BF800 109836288
INDEV_IMG_RECOVERY_WORK  0x56400000 0x14000000 335544320
INDEV_INPUT_YUV          0x6A400000 0x03C00000  62914560
INDEV_OUTPUT_YUV         0x6E000000 0x03C00000  62914560
INDEV_EXMEM3_AREA_2      0x71C00000 0x045A8000  73039872
--- DP ----
DP_SINGLE_CHUNK          0x52000000 0x08C00000 146800640
DP_MULTI_CHUNK           0x5B000000 0x0C800000 209715200
DP_INPUT_YUV             0x6A400000 0x03C00000  62914560
DP_OUTPUT_YUV            0x6E000000 0x03C00000  62914560


1 GB RAM (on main core).

a1ex

5DS - master core, QEMU:




--- Common Lower ----
[TOP1]                  0x4168E000
FILE HEADER              0x434C9400 0x00200000   2097152
JOB OBJECT               0x436C9400 0x00200000   2097152
BITMAP VRAM              0x4168E000 0x002F7C00   3111936
DARKCUR_COMP_WORK        0x41985C00 0x00030400    197632
AE WORK                  0x419B6000 0x00038000    229376
DCFNO                    0x419EE000 0x00004000     16384
TVAF WORK                0x419F2000 0x0000C800     51200
OMAR                     0x41A00000 0x00380000   3670016
ZICO                     0x42000000 0x00180000   1572864
ARIMA                    0x42180000 0x00008000     32768
SHIRAHAMA                0x42188000 0x00007400     29696
APROC                    0x4218F400 0x0000D000     53248
FACTORY/TVAFDEBUG        0x4219C400 0x0004B000    307200
SMAC TRIC WORK           0x421E7400 0x0021B000   2207744
USB30                    0x42402400 0x00025800    153600
ENGINE_MIRROR            0x41D80000 0x00060000    393216
VSHADING_COMP_WORK       0x42427C00 0x001A7000   1732608
CAPTURE_WORK             0x425CEC00 0x00480000   4718592
RENDERING WORK           0x42A4EC00 0x00A7A800  10987520
OMAR COM                 0x41DE0000 0x00003400     13312
--- Common Upper ----
REC_YUV                  0x7DD50400 0x00BDDC00  12442624
AE SHOOT WORK            0x7E92E000 0x00400000   4194304
DANCING                  0x7ED2E000 0x00300000   3145728
IMG_VRAM1                0x7F02E000 0x003F4800   4147200
IMG_VRAM2                0x7F422800 0x003F4800   4147200
IMG_VRAM3                0x7F817000 0x003F4800   4147200
IMG_VRAM4                0x7FC0B800 0x003F4800   4147200
--- Normal ----
EXMEM3_AREA              0x438C9400 0x03136C00  51604480
SS-1                     0x46A00000 0x01844000  25444352
YUV 1st-1                0x48248000 0x060B0000 101384192
YUV Thumb                0x4E300000 0x00180000   1572864
OnlyMem1-1               0x4E480000 0x058B8800  93030400
OnlyMem1-2               0x53D38800 0x058B8800  93030400
OnlyMem1-3               0x595F1000 0x058B8800  93030400
OnlyMem1-4               0x60000000 0x058B8800  93030400
OnlyMem1-5               0x658B8800 0x058B8800  93030400
SS-2                     0x70A29800 0x01844000  25444352
YUV 1st-2                0x72270000 0x060B0000 101384192
LV_WORK                  0x72270000 0x060B0000 101384192
EXMEM3_AREA_2            0x78329800 0x05A26C00  94530560
--- Movie ----
IMGPLAY_WORK             0x65F40000 0x02000000  33554432
MOVIE_PLAYWORK           0x67F40000 0x02333400  36910080
MOVIE_RECWORK            0x595F8000 0x0339E800  54126592
MOVIE_STREAM             0x5C996800 0x0353EC00  55831552
MOVIE_RECYUV             0x7DD50400 0x00BDDC00  12442624
AUDIO WORK               0x5FED5400 0x0011F400   1176576
--- Play ----
IMGPLAY_WORK             0x65F40000 0x02000000  33554432
MOVIE_PLAYWORK           0x67F40000 0x02333400  36910080
--- Multishot ----
HDR/GIS_WORK1            0x4C670000 0x05A00000  94371840
HDR/GIS_WORK2            0x52070000 0x05A00000  94371840
HDR/GIS_WORK3            0x46C70000 0x05A00000  94371840
HDR/GIS_WORK4            0x57A70000 0x05A00000  94371840
HDR/GIS_COMP_WORK        0x5D470000 0x1B230000 455278592
HDR/GIS_IMGPLAY_WORK     0x65F40000 0x02000000  33554432
HDR/GIS_MOVIE_PLAYWORK   0x67F40000 0x02333400  36910080
HDR/GIS_MOVIE_RECWORK    0x438D1000 0x0339E800  54126592
HDR/GIS_MOVIE_STREAM     0x5D470000 0x0353EC00  55831552
HDR/GIS_MOVIE_RECYUV     0x7DD50400 0x00BDDC00  12442624
HDR/GIS_AUDIO WORK       0x609AEC00 0x0011F400   1176576
HDR/GIS_FLEXIBLE_MEM3_1  0x46A70000 0x16800000 377487360
HDR/GIS_FLEXIBLE_MEM3_2  0x5D470000 0x135B9800 324769792
--- Indev ----
INDEV_YUV_IN             0x4E480000 0x064A7200 105542144
INDEV_YUV_OUT            0x54927200 0x064A7200 105542144
INDEV_WORK               0x67F40000 0x096E9800 158242816
INDEV_DISTOR_WORK        0x70A29800 0x06C00000 113246208
INDV_IMGPLAY_WORK        0x65F40000 0x02000000  33554432


Possibly unused block at 41DE3400 - 41FFFC00 (2.11 MB).

a1ex

750D/760D, QEMU, "only" 512MB:




--- Common Top ----
[TOP1]                  0x40D6C000
FIX_DATA                0x40D6C000 0x0200000   2097152
TUNE_DATA               0x40F6C000 0x0120000   1179648
TUNE_DATA2              0x4108C000 0x0260000   2490368
LENS_DATA2              0x412EC000 0x0060000    393216
SAF_WORK                0x4134C000 0x0100000   1048576
ENGINE_MIRROR           0x4144C000 0x0060000    393216
VSHADING_COMP_WORK      0x414AC000 0x00121800   1185792
DARKCUR_COMP_WORK       0x415CD800 0x00021000    135168
OMAR COM                0x415EE800 0x0003400     13312
TVAF_WORK               0x415F1C00 0x000C800     51200
DCFNO                   0x415FE400 0x0004000     16384
FACTORY_PROGRAM         0x41602400 0x004B000    307200
TVAF_DEBUG              0x41602400 0x004B000    307200
NETWORK_HEAP            0x41680000 0x0380000   3670016
OMAR                    0x41A00000 0x0480000   4718592
OMAR_NET_BSS            0x41E80000 0x0180000   1572864
ZICO                    0x42000000 0x0180000   1572864
ARIMA                   0x42180000 0x0008000     32768
SHIRAHAMA               0x42188000 0x0007400     29696
APROC                   0x4218F400 0x000D000     53248
RENDERING WORK          0x4219C400 0x0A7A800  10987520
FILE_HEADER             0x42C16C00 0x0200000   2097152
JOB                     0x42E16C00 0x0200000   2097152
CAPTURE_WORK1           0x5EA74800 0x06AE000   7004160
DANCING                 0x5F122800 0x0300000   3145728
SMAC TRIC WORK          0x43016C00 0x021B000   2207744
BMP VRAM                0x43231C00 0x02F7C00   3111936
IMG_VRAM1               0x5F422800 0x03F4800   4147200
IMG_VRAM2               0x5F817000 0x03F4800   4147200
IMG_VRAM3               0x5FC0B800 0x03F4800   4147200
IMG_VRAM4               0x00000000 0x03F4800   4147200 [Cacheable!!]
--- Usually Mode ----
MEMORY_MGR              0x483B0000 0x2970000  43450368
SS_DEVELOP FINDER       0x438B0000 0x2190000  35192832
SS_DEVELOP(Lower)       0x43D9C000 0x10C8000  17596416
SS_DEVELOP(Upper)       0x5BE2C000 0x10C8000  17596416
EXMEM3_AREA             0x43529800 0x0872800   8857600
EXMEM3_AREA_2           0x5D014000 0x1A60800  27658240
IMGPLAY_WORK            0x58830000 0x1400000  20971520
IMGPLAY_WORK2           0x00000000 0x0000000         0 [Cacheable!!]
MOVPLAY_WORK            0x59C30000 0x2400000  37748736
SLIDESHOW_WORK          0x5C030000 0x0800000   8388608
YUV                     0x58830000 0x6B48000 112492544
REC_YUV                 0x57C50000 0x0BDD800  12441600
1st_YUV(Lower)          0x44E64000 0x2F40000  49545216
1st_YUV(Upper)          0x58830000 0x2F40000  49545216
2nd_YUV(Lower)          0x47DA4000 0x060B000   6336512
2nd_YUV(Upper)          0x5B770000 0x060B000   6336512
THUMBNAIL_YUV           0x5BD7C000 0x00AF000    716800
LV_WORK                 0x58830000 0x46C4000  74203136
---    DP Mode   ----
DP_SINGLE               0x483B0000 0x8200000 136314880
DP_MULTI                0x505B0000 0x8200000 136314880
DP_SS_DEVELOP           0x5BA00000 0x2190000  35192832
DP_SS_DEVELOP(Lower)    0x43D9C000 0x10C8000  17596416
DP_SS_DEVELOP(Upper)    0x5BE2C000 0x10C8000  17596416
DP_1st_YUV(Lower)       0x44E64000 0x2F40000  49545216
DP_1st_YUV(Upper)       0x58830000 0x2F40000  49545216
DP_2nd_YUV(Lower)       0x47DA4000 0x060B000   6336512
DP_2nd_YUV(Upper)       0x5B770000 0x060B000   6336512
DP_THUMBNAIL_YUV        0x5BD7C000 0x00AF000    716800
--- Indev Mode ----
[INDVMGR]               0x45F2C000
YUV_IN                  0x4B20C000 0x3000000  50331648
YUV_OUT                 0x4E20C000 0x3000000  50331648
INDV_WORK               0x5260C000 0xA8E4000 177094656
INDV_SS_DEVELOP(Lower)  0x43D9C000 0x10C8000  17596416
INDV_SS_DEVELOP(Upper)  0x44E64000 0x10C8000  17596416
INDV_1st_YUV(Lower)     0x5260C000 0x2F40000  49545216
INDV_1st_YUV(Upper)     0x5554C000 0x2F40000  49545216
INDV_2nd_YUV(Lower)     0x5848C000 0x060B000   6336512
INDV_2nd_YUV(Upper)     0x58A97000 0x060B000   6336512
INDV_THUMBNAIL_YUV      0x590A2000 0x00AF000    716800
--- Movie Mode ----
REC WORK                0x4AD20000 0x3328000  53641216
STREAM                  0x4E048000 0x35C2C00  56372224
AUDIO WORK              0x5CEF4000 0x0120000   1179648


BTW, getting these logs is a LOT easier now - just type this at the serial console in QEMU:

akashimorino
smemShowFix

a1ex

From this EOSM2 quirk:

The ENGINE_MIRROR region from the above logs is used by engio_read / EngDrvOut to store the values written to hardware registers, as these registers cannot be read back. This address must be aligned at 0x40000 bytes, but the block allocated for it might be a bit larger.

Some examples:

60D: ENGINE_MIRROR 0x5C849960 0x00080000
Actual mirror address is 0x5c880000 (rounded up near 0xff1c566c), used until 0x5c8c0000.
0x5c880000 - 0x5C849960 = 217K free before this block.
0x5C849960 + 0x00080000 - 0x5c8c0000 = 38K free after this block.

1100D: ENGINE_MIRROR 0x40FF7000 0x00080000
Actual mirror address is 0x41000000 (rounded up near 0xff1d4890), used until 0x41040000.
0x41000000 - 0x40FF7000 = 36K free before this block.
0x40FF7000 + 0x00080000 - 0x41040000 = 225K free after this block. Not bad!

EOSM2: ENGINE_MIRROR 0x412A0000 0x00044000
Actual mirror address 0x412A0000 (somebody forgot to round it up). Good luck fixing that...

550D: ENGINE_MIRROR 0x4F757200 0x00040000
Actual mirror address: 0x4f780000 (rounded up near 0xff1c1228), used until 0x4f7c0000. Buffer overflow?! (overlaps VSHADING_COMP_WORK)

The above is just theory; I did not verify whether the addresses are really unused or not. Procedure: CONFIG_MARK_UNUSED_MEMORY_AT_STARTUP, then use the camera in any mode you may think of, including taking pictures in burst mode until the buffer gets full, then look for changes in the tested memory region. See also PR #731.

dfort

Quote from: a1ex on February 21, 2018, 10:37:43 PM
EOSM2: ENGINE_MIRROR 0x412A0000 0x00044000
Actual mirror address 0x412A0000 (somebody forgot to round it up). Good luck fixing that...

You mean someone else? Looking up the addresses for the other cameras the EOSM2 should be rounding up near ff2c6bf8 but the code looks quite a bit different. So the rounding up isn't happening?

Looked up PR #731 and it seems like the EOSM2 needs to sprout yet another branch--RscMgr_memory, right?

a1ex

Not really; it was linked as documentation for the above procedure (to make sure some possibly free memory area is really unused). This extra memory is only available for DIGIC 4 models (they allocate 0x80000 - twice as much - to be able to align this buffer). That's not needed in my opinion - they could have just used ADD instead of ORR...

The models that would benefit even from this - small - extra memory are 1100D and 600D.

ToniX

Quote from: a1ex on February 22, 2018, 05:58:09 AM

The models that would benefit even from this - small - extra memory are 1100D and 600D.

This is the only part I understand in this topic, so my question is : how much is for 600D? (it is not mentioned) in wich these benefits would consist?
600D - EFs18-55 ISII

a1ex

600D is linked earlier (you can do the math). In some cases, ML runs out of general-purpose memory and allocates from shoot_malloc (Debug -> Free Memory); whenever such memory is used for a longer time (such as, many/large modules loaded), certain operations in Canon menu can not be performed (such as switching some ISO options, or developing raw photos in camera, maybe others) and will result in ERR70.

You can tell exactly what these situations are.

Having 256K of additional memory could make the difference between having to use shoot_malloc (with the problems it has) or not.

The issue is probably subtle enough that nobody would ever bother narrowing it down to report it (they would probably just reset ML to defaults).




Edit: a quick test in QEMU, with dual_iso.mo and lua.mo loaded (but no features actually used) gives error on shutdown (might or might not translate to ERR70 on real hardware, not sure):

   167: 22539.008 [MEM] NG AllocateMemory 262176
   168: 22539.008 [MEM] Total = 0x8a0000, Free = 0x81320, MaxReg = 0x2e248
   169: 22539.520 [MEM] Num Alloc = 3463, Num Free = 287
   170: 22542.080 [STARTUP] ERROR ASSERT : Memory\Memory.c, Task = GuiMainTask
   171: 22542.080 [STARTUP] ERROR ASSERT : Line 188
   172: 22542.080 [STARTUP] ERROR ASSERT : FALSE


Loading Lua alongside with a few other modules will result in shoot_malloc being used. Try changing everything you can think of in Canon menu in this configuration, and I'm sure you'll find more issues, not just the ones I know about.