[HD Mini Android Development] -r0bin-:
Now more interesting:

The SMEM of photon/liberty is very evoluated, because it has a TOC (table of contents) that allows you to retrieve the memory offset of each memory segment, and to know if its allocated(initialized).

Code is in smd.c. So I also did a mapping for photon:

[ 68.641223] SMEM vaddr=0xf8100000, offset=0x20d0
[ 68.641244] SMEM #0 name=SMEM_PROC_COMM, allocated=Y, size=64; offset=0x0
[ 68.641268] SMEM #1 name=SMEM_HEAP_INFO, allocated=Y, size=16; offset=0xc0
[ 68.641289] SMEM #2 name=SMEM_ALLOCATION_TABLE, allocated=Y, size=8192; offset=0xd0
[ 68.641314] SMEM #3 name=SMEM_VERSION_INFO, allocated=Y, size=128; offset=0x40
[ 68.641338] SMEM #4 name=SMEM_HW_RESET_DETECT, allocated=Y, size=8; offset=0x20d0
[ 68.641361] SMEM #5 name=SMEM_AARM_WARM_BOOT, allocated=Y, size=4; offset=0x20d8
[ 68.641386] SMEM #6 name=SMEM_DIAG_ERR_MESSAGE, allocated=Y, size=200; offset=0x20dc
[ 68.641409] SMEM #7 name=SMEM_SPINLOCK_ARRAY, allocated=Y, size=32; offset=0x21a4
[ 68.641434] SMEM #8 name=SMEM_MEMORY_BARRIER_LOCATION, allocated=Y, size=4; offset=0x21c4
[ 68.641459] SMEM #9 name=SMEM_AARM_PARTITION_TABLE, allocated=Y, size=464; offset=0x738d0
[ 68.641484] SMEM #10 name=SMEM_AARM_BAD_BLOCK_TABLE, allocated=N, size=0; offset=0x0
[ 68.641508] SMEM #11 name=SMEM_RESERVE_BAD_BLOCKS, allocated=N, size=0; offset=0x0
[ 68.641533] SMEM #12 name=SMEM_WM_UUID, allocated=Y, size=16; offset=0x45f0
[ 68.641556] SMEM #13 name=SMEM_CHANNEL_ALLOC_TBL, allocated=Y, size=2048; offset=0x18f98
[ 68.641581] SMEM #14 name=SMEM_SMD_BASE_ID, allocated=Y, size=40; offset=0x358b8
[ 68.641606] SMEM #15 name=??, allocated=Y, size=40; offset=0x21868
[ 68.641628] SMEM #16 name=??, allocated=Y, size=40; offset=0x1d840
[ 68.641649] SMEM #17 name=??, allocated=N, size=0; offset=0x0
[ 68.641669] SMEM #18 name=??, allocated=N, size=0; offset=0x0
[ 68.641691] SMEM #19 name=??, allocated=Y, size=40; offset=0x19818
[ 68.641713] SMEM #20 name=??, allocated=N, size=0; offset=0x0
[ 68.641734] SMEM #21 name=??, allocated=Y, size=40; offset=0x398e0
[ 68.641756] SMEM #22 name=??, allocated=Y, size=40; offset=0x49908
[ 68.641778] SMEM #23 name=??, allocated=Y, size=40; offset=0x59930
[ 68.641799] SMEM #24 name=??, allocated=N, size=0; offset=0x0
[ 68.641819] SMEM #25 name=??, allocated=N, size=0; offset=0x0
[ 68.641841] SMEM #26 name=??, allocated=N, size=0; offset=0x0
[ 68.641861] SMEM #27 name=??, allocated=N, size=0; offset=0x0
[ 68.641881] SMEM #28 name=??, allocated=N, size=0; offset=0x0
[ 68.641903] SMEM #29 name=??, allocated=Y, size=40; offset=0x69958
[ 68.641924] SMEM #30 name=??, allocated=N, size=0; offset=0x0
[ 68.641944] SMEM #31 name=??, allocated=N, size=0; offset=0x0
[ 68.641966] SMEM #32 name=??, allocated=N, size=0; offset=0x0
[ 68.641986] SMEM #33 name=??, allocated=N, size=0; offset=0x0
[ 68.642008] SMEM #34 name=??, allocated=N, size=0; offset=0x0
[ 68.642028] SMEM #35 name=??, allocated=N, size=0; offset=0x0
[ 68.642048] SMEM #36 name=??, allocated=N, size=0; offset=0x0
[ 68.642069] SMEM #37 name=??, allocated=N, size=0; offset=0x0
[ 68.642089] SMEM #38 name=??, allocated=N, size=0; offset=0x0
[ 68.642111] SMEM #39 name=??, allocated=N, size=0; offset=0x0
[ 68.642131] SMEM #40 name=??, allocated=N, size=0; offset=0x0
[ 68.642153] SMEM #41 name=??, allocated=Y, size=40; offset=0x6d980
[ 68.642174] SMEM #42 name=??, allocated=N, size=0; offset=0x0
[ 68.642194] SMEM #43 name=??, allocated=N, size=0; offset=0x0
[ 68.642214] SMEM #44 name=??, allocated=N, size=0; offset=0x0
[ 68.642236] SMEM #45 name=??, allocated=N, size=0; offset=0x0
[ 68.642256] SMEM #46 name=??, allocated=N, size=0; offset=0x0
[ 68.642278] SMEM #47 name=??, allocated=N, size=0; offset=0x0
[ 68.642298] SMEM #48 name=??, allocated=N, size=0; offset=0x0
[ 68.642319] SMEM #49 name=??, allocated=N, size=0; offset=0x0
[ 68.642339] SMEM #50 name=??, allocated=N, size=0; offset=0x0
[ 68.642359] SMEM #51 name=??, allocated=N, size=0; offset=0x0
[ 68.642381] SMEM #52 name=??, allocated=Y, size=40; offset=0x31890
[ 68.642403] SMEM #53 name=??, allocated=N, size=0; offset=0x0
[ 68.642423] SMEM #54 name=??, allocated=N, size=0; offset=0x0
[ 68.642444] SMEM #55 name=??, allocated=N, size=0; offset=0x0
[ 68.642464] SMEM #56 name=??, allocated=N, size=0; offset=0x0
[ 68.642484] SMEM #57 name=??, allocated=N, size=0; offset=0x0
[ 68.642506] SMEM #58 name=??, allocated=N, size=0; offset=0x0
[ 68.642526] SMEM #59 name=??, allocated=N, size=0; offset=0x0
[ 68.642548] SMEM #60 name=??, allocated=N, size=0; offset=0x0
[ 68.642568] SMEM #61 name=??, allocated=N, size=0; offset=0x0
[ 68.642589] SMEM #62 name=??, allocated=N, size=0; offset=0x0
[ 68.642609] SMEM #63 name=??, allocated=N, size=0; offset=0x0
[ 68.642629] SMEM #64 name=??, allocated=N, size=0; offset=0x0
[ 68.642651] SMEM #65 name=??, allocated=N, size=0; offset=0x0
[ 68.642671] SMEM #66 name=??, allocated=N, size=0; offset=0x0
[ 68.642691] SMEM #67 name=??, allocated=N, size=0; offset=0x0
[ 68.642713] SMEM #68 name=??, allocated=N, size=0; offset=0x0
[ 68.642733] SMEM #69 name=??, allocated=N, size=0; offset=0x0
[ 68.642754] SMEM #70 name=??, allocated=N, size=0; offset=0x0
[ 68.642776] SMEM #71 name=??, allocated=N, size=0; offset=0x0
[ 68.642796] SMEM #72 name=??, allocated=N, size=0; offset=0x0
[ 68.642816] SMEM #73 name=??, allocated=N, size=0; offset=0x0
[ 68.642838] SMEM #74 name=??, allocated=N, size=0; offset=0x0
[ 68.642858] SMEM #75 name=??, allocated=N, size=0; offset=0x0
[ 68.642879] SMEM #76 name=??, allocated=N, size=0; offset=0x0
[ 68.642899] SMEM #77 name=??, allocated=N, size=0; offset=0x0
[ 68.642921] SMEM #78 name=SMEM_SMEM_LOG_IDX, allocated=Y, size=8; offset=0xe740
[ 68.642944] SMEM #79 name=SMEM_SMEM_LOG_EVENTS, allocated=Y, size=40000; offset=0x4b00
[ 68.642971] SMEM #80 name=SMEM_SMEM_STATIC_LOG_IDX, allocated=Y, size=8; offset=0xf300
[ 68.642996] SMEM #81 name=SMEM_SMEM_STATIC_LOG_EVENTS, allocated=Y, size=3000; offset=0xe748
[ 68.643021] SMEM #82 name=SMEM_SMEM_SLOW_CLOCK_SYNC, allocated=N, size=0; offset=0x0
[ 68.643046] SMEM #83 name=SMEM_SMEM_SLOW_CLOCK_VALUE, allocated=Y, size=8; offset=0xf308
[ 68.643069] SMEM #84 name=SMEM_BIO_LED_BUF, allocated=N, size=0; offset=0x0
[ 68.643093] SMEM #85 name=SMEM_SMSM_SHARED_STATE, allocated=Y, size=32; offset=0x4a80
[ 68.643118] SMEM #86 name=SMEM_SMSM_INT_INFO, allocated=N, size=0; offset=0x0
[ 68.643141] SMEM #87 name=SMEM_SMSM_SLEEP_DELAY, allocated=N, size=0; offset=0x0
[ 68.643164] SMEM #88 name=SMEM_SMSM_LIMIT_SLEEP, allocated=N, size=0; offset=0x0
[ 68.643189] SMEM #89 name=SMEM_SLEEP_POWER_COLLAPSE_DISABLED, allocated=Y, size=8; offset=0x738c8
[ 68.643216] SMEM #90 name=SMEM_KEYPAD_KEYS_PRESSED, allocated=N, size=0; offset=0x0
[ 68.643239] SMEM #91 name=SMEM_KEYPAD_STATE_UPDATED, allocated=N, size=0; offset=0x0
[ 68.643264] SMEM #92 name=SMEM_KEYPAD_STATE_IDX, allocated=N, size=0; offset=0x0
[ 68.643288] SMEM #93 name=SMEM_GPIO_INT, allocated=N, size=0; offset=0x0
[ 68.643309] SMEM #94 name=SMEM_MDDI_LCD_IDX, allocated=N, size=0; offset=0x0
[ 68.643333] SMEM #95 name=SMEM_MDDI_HOST_DRIVER_STATE, allocated=N, size=0; offset=0x0
[ 68.643358] SMEM #96 name=SMEM_MDDI_LCD_DISP_STATE, allocated=N, size=0; offset=0x0
[ 68.643381] SMEM #97 name=SMEM_LCD_CUR_PANEL, allocated=N, size=0; offset=0x0
[ 68.643406] SMEM #98 name=SMEM_MARM_BOOT_SEGMENT_INFO, allocated=Y, size=280; offset=0x44d8
[ 68.643431] SMEM #99 name=SMEM_AARM_BOOT_SEGMENT_INFO, allocated=N, size=0; offset=0x0
[ 68.643456] SMEM #100 name=SMEM_SLEEP_STATIC, allocated=Y, size=1152; offset=0x4600
[ 68.643481] SMEM #101 name=SMEM_SCORPION_FREQUENCY, allocated=N, size=0; offset=0x0
[ 68.643504] SMEM #102 name=SMEM_SMD_PROFILES, allocated=N, size=0; offset=0x0
[ 68.643528] SMEM #103 name=SMEM_TSSC_BUSY, allocated=N, size=0; offset=0x0
[ 68.643551] SMEM #104 name=SMEM_HS_SUSPEND_FILTER_INFO, allocated=N, size=0; offset=0x0
[ 68.643576] SMEM #105 name=SMEM_BATT_INFO, allocated=N, size=0; offset=0x0
[ 68.643599] SMEM #106 name=SMEM_APPS_BOOT_MODE, allocated=Y, size=8; offset=0x21c8
[ 68.643624] SMEM #107 name=SMEM_VERSION_FIRST, allocated=Y, size=128; offset=0x19798
[ 68.643648] SMEM #108 name=??, allocated=N, size=0; offset=0x0
[ 68.643669] SMEM #109 name=??, allocated=N, size=0; offset=0x0
[ 68.643689] SMEM #110 name=??, allocated=N, size=0; offset=0x0
[ 68.643711] SMEM #111 name=??, allocated=N, size=0; offset=0x0
[ 68.643731] SMEM #112 name=??, allocated=N, size=0; offset=0x0
[ 68.643753] SMEM #113 name=??, allocated=N, size=0; offset=0x0
[ 68.644066] SMEM #114 name=??, allocated=N, size=0; offset=0x0
[ 68.644091] SMEM #115 name=??, allocated=N, size=0; offset=0x0
[ 68.644111] SMEM #116 name=??, allocated=N, size=0; offset=0x0
[ 68.644133] SMEM #117 name=??, allocated=N, size=0; offset=0x0
[ 68.644154] SMEM #118 name=??, allocated=N, size=0; offset=0x0
[ 68.644174] SMEM #119 name=??, allocated=N, size=0; offset=0x0
[ 68.644196] SMEM #120 name=??, allocated=N, size=0; offset=0x0
[ 68.644216] SMEM #121 name=??, allocated=N, size=0; offset=0x0
[ 68.644238] SMEM #122 name=??, allocated=N, size=0; offset=0x0
[ 68.644259] SMEM #123 name=??, allocated=N, size=0; offset=0x0
[ 68.644279] SMEM #124 name=??, allocated=N, size=0; offset=0x0
[ 68.644301] SMEM #125 name=??, allocated=N, size=0; offset=0x0
[ 68.644321] SMEM #126 name=??, allocated=N, size=0; offset=0x0
[ 68.644343] SMEM #127 name=??, allocated=N, size=0; offset=0x0
[ 68.644363] SMEM #128 name=??, allocated=N, size=0; offset=0x0
[ 68.644384] SMEM #129 name=??, allocated=N, size=0; offset=0x0
[ 68.644406] SMEM #130 name=??, allocated=N, size=0; offset=0x0
[ 68.644428] SMEM #131 name=SMEM_VERSION_LAST, allocated=N, size=0; offset=0x0
[ 68.644451] SMEM #132 name=SMEM_OSS_RRCASN1_BUF1, allocated=N, size=0; offset=0x0
[ 68.644476] SMEM #133 name=SMEM_OSS_RRCASN1_BUF2, allocated=N, size=0; offset=0x0
[ 68.644499] SMEM #134 name=SMEM_ID_VENDOR0, allocated=N, size=0; offset=0x0
[ 68.644524] SMEM #135 name=SMEM_ID_VENDOR1, allocated=Y, size=7712; offset=0x71aa8
[ 68.644549] SMEM #136 name=SMEM_ID_VENDOR2, allocated=Y, size=256; offset=0x719a8
[ 68.644574] SMEM #137 name=SMEM_HW_SW_BUILD_ID, allocated=Y, size=56; offset=0x21d0
[ 68.644598] SMEM #138 name=SMEM_SMD_BLOCK_PORT_BASE_ID, allocated=N, size=0; offset=0x0
[ 68.645251] SMEM #139 name=??, allocated=N, size=0; offset=0x0
[ 68.645276] SMEM #140 name=??, allocated=N, size=0; offset=0x0
[ 68.645296] SMEM #141 name=??, allocated=N, size=0; offset=0x0
[ 68.645318] SMEM #142 name=??, allocated=N, size=0; offset=0x0
[ 68.645338] SMEM #143 name=??, allocated=N, size=0; offset=0x0
[ 68.645359] SMEM #144 name=??, allocated=N, size=0; offset=0x0
[ 68.645381] SMEM #145 name=??, allocated=N, size=0; offset=0x0
[ 68.645401] SMEM #146 name=??, allocated=N, size=0; offset=0x0
[ 68.645423] SMEM #147 name=??, allocated=N, size=0; offset=0x0
[ 68.645443] SMEM #148 name=??, allocated=N, size=0; offset=0x0
[ 68.645464] SMEM #149 name=??, allocated=N, size=0; offset=0x0
[ 68.645484] SMEM #150 name=??, allocated=N, size=0; offset=0x0
[ 68.645506] SMEM #151 name=??, allocated=N, size=0; offset=0x0
[ 68.645526] SMEM #152 name=??, allocated=N, size=0; offset=0x0
[ 68.645548] SMEM #153 name=??, allocated=N, size=0; offset=0x0
[ 68.645569] SMEM #154 name=??, allocated=N, size=0; offset=0x0
[ 68.645589] SMEM #155 name=??, allocated=N, size=0; offset=0x0
[ 68.645611] SMEM #156 name=??, allocated=N, size=0; offset=0x0
[ 68.645631] SMEM #157 name=??, allocated=N, size=0; offset=0x0
[ 68.645653] SMEM #158 name=??, allocated=N, size=0; offset=0x0
[ 68.645673] SMEM #159 name=??, allocated=N, size=0; offset=0x0
[ 68.645694] SMEM #160 name=??, allocated=N, size=0; offset=0x0
[ 68.645716] SMEM #161 name=??, allocated=N, size=0; offset=0x0
[ 68.645736] SMEM #162 name=??, allocated=N, size=0; offset=0x0
[ 68.645758] SMEM #163 name=??, allocated=N, size=0; offset=0x0
[ 68.645778] SMEM #164 name=??, allocated=N, size=0; offset=0x0
[ 68.645799] SMEM #165 name=??, allocated=N, size=0; offset=0x0
[ 68.645821] SMEM #166 name=??, allocated=N, size=0; offset=0x0
[ 68.645841] SMEM #167 name=??, allocated=N, size=0; offset=0x0
[ 68.645863] SMEM #168 name=??, allocated=N, size=0; offset=0x0
[ 68.646096] SMEM #169 name=??, allocated=N, size=0; offset=0x0
[ 68.646121] SMEM #170 name=??, allocated=N, size=0; offset=0x0
[ 68.646141] SMEM #171 name=??, allocated=N, size=0; offset=0x0
[ 68.646163] SMEM #172 name=??, allocated=N, size=0; offset=0x0
[ 68.646184] SMEM #173 name=??, allocated=N, size=0; offset=0x0
[ 68.646204] SMEM #174 name=??, allocated=N, size=0; offset=0x0
[ 68.646224] SMEM #175 name=??, allocated=N, size=0; offset=0x0
[ 68.646246] SMEM #176 name=??, allocated=N, size=0; offset=0x0
[ 68.646268] SMEM #177 name=??, allocated=N, size=0; offset=0x0
[ 68.646288] SMEM #178 name=??, allocated=N, size=0; offset=0x0
[ 68.646309] SMEM #179 name=??, allocated=N, size=0; offset=0x0
[ 68.646329] SMEM #180 name=??, allocated=N, size=0; offset=0x0
[ 68.646351] SMEM #181 name=??, allocated=N, size=0; offset=0x0
[ 68.646373] SMEM #182 name=??, allocated=N, size=0; offset=0x0
[ 68.646393] SMEM #183 name=??, allocated=N, size=0; offset=0x0
[ 68.646414] SMEM #184 name=??, allocated=N, size=0; offset=0x0
[ 68.646434] SMEM #185 name=??, allocated=N, size=0; offset=0x0
[ 68.646456] SMEM #186 name=??, allocated=N, size=0; offset=0x0
[ 68.646476] SMEM #187 name=??, allocated=N, size=0; offset=0x0
[ 68.646498] SMEM #188 name=??, allocated=N, size=0; offset=0x0
[ 68.646519] SMEM #189 name=??, allocated=N, size=0; offset=0x0
[ 68.646539] SMEM #190 name=??, allocated=N, size=0; offset=0x0
[ 68.646561] SMEM #191 name=??, allocated=N, size=0; offset=0x0
[ 68.646581] SMEM #192 name=??, allocated=N, size=0; offset=0x0
[ 68.646603] SMEM #193 name=??, allocated=N, size=0; offset=0x0
[ 68.646624] SMEM #194 name=??, allocated=N, size=0; offset=0x0
[ 68.646909] SMEM #195 name=??, allocated=N, size=0; offset=0x0
[ 68.646934] SMEM #196 name=??, allocated=N, size=0; offset=0x0
[ 68.646954] SMEM #197 name=??, allocated=N, size=0; offset=0x0
[ 68.646976] SMEM #198 name=??, allocated=N, size=0; offset=0x0
[ 68.646998] SMEM #199 name=??, allocated=N, size=0; offset=0x0
[ 68.647018] SMEM #200 name=??, allocated=N, size=0; offset=0x0
[ 68.647039] SMEM #201 name=??, allocated=N, size=0; offset=0x0
[ 68.647063] SMEM #202 name=SMEM_SMD_BLOCK_PORT_PROC0_HEAP, allocated=N, size=0; offset=0x0
[ 68.647088] SMEM #203 name=??, allocated=N, size=0; offset=0x0
[ 68.647108] SMEM #204 name=??, allocated=N, size=0; offset=0x0
[ 68.647129] SMEM #205 name=??, allocated=N, size=0; offset=0x0
[ 68.647149] SMEM #206 name=??, allocated=N, size=0; offset=0x0
[ 68.647171] SMEM #207 name=??, allocated=N, size=0; offset=0x0
[ 68.647193] SMEM #208 name=??, allocated=N, size=0; offset=0x0
[ 68.647213] SMEM #209 name=??, allocated=N, size=0; offset=0x0
[ 68.647234] SMEM #210 name=??, allocated=N, size=0; offset=0x0
[ 68.647303] SMEM #211 name=??, allocated=N, size=0; offset=0x0
[ 68.647323] SMEM #212 name=??, allocated=N, size=0; offset=0x0
[ 68.647344] SMEM #213 name=??, allocated=N, size=0; offset=0x0
[ 68.647366] SMEM #214 name=??, allocated=N, size=0; offset=0x0
[ 68.647386] SMEM #215 name=??, allocated=N, size=0; offset=0x0
[ 68.647408] SMEM #216 name=??, allocated=N, size=0; offset=0x0
[ 68.647428] SMEM #217 name=??, allocated=N, size=0; offset=0x0
[ 68.647448] SMEM #218 name=??, allocated=N, size=0; offset=0x0
[ 68.647469] SMEM #219 name=??, allocated=N, size=0; offset=0x0
[ 68.647489] SMEM #220 name=??, allocated=N, size=0; offset=0x0
[ 68.647511] SMEM #221 name=??, allocated=N, size=0; offset=0x0
[ 68.647531] SMEM #222 name=??, allocated=N, size=0; offset=0x0
[ 68.647553] SMEM #223 name=??, allocated=N, size=0; offset=0x0
[ 68.647573] SMEM #224 name=??, allocated=N, size=0; offset=0x0
[ 68.647594] SMEM #225 name=??, allocated=N, size=0; offset=0x0
[ 68.647614] SMEM #226 name=??, allocated=N, size=0; offset=0x0
[ 68.647636] SMEM #227 name=??, allocated=N, size=0; offset=0x0
[ 68.647656] SMEM #228 name=??, allocated=N, size=0; offset=0x0
[ 68.647678] SMEM #229 name=??, allocated=N, size=0; offset=0x0
[ 68.647698] SMEM #230 name=??, allocated=N, size=0; offset=0x0
[ 68.647719] SMEM #231 name=??, allocated=N, size=0; offset=0x0
[ 68.647739] SMEM #232 name=??, allocated=N, size=0; offset=0x0
[ 68.647761] SMEM #233 name=??, allocated=N, size=0; offset=0x0
[ 68.647781] SMEM #234 name=??, allocated=N, size=0; offset=0x0
[ 68.647803] SMEM #235 name=??, allocated=N, size=0; offset=0x0
[ 68.647823] SMEM #236 name=??, allocated=N, size=0; offset=0x0
[ 68.647844] SMEM #237 name=??, allocated=N, size=0; offset=0x0
[ 68.647864] SMEM #238 name=??, allocated=N, size=0; offset=0x0
[ 68.647886] SMEM #239 name=??, allocated=N, size=0; offset=0x0
[ 68.647906] SMEM #240 name=??, allocated=N, size=0; offset=0x0
[ 68.647928] SMEM #241 name=??, allocated=N, size=0; offset=0x0
[ 68.647948] SMEM #242 name=??, allocated=N, size=0; offset=0x0
[ 68.647969] SMEM #243 name=??, allocated=N, size=0; offset=0x0
[ 68.647989] SMEM #244 name=??, allocated=N, size=0; offset=0x0
[ 68.648011] SMEM #245 name=??, allocated=N, size=0; offset=0x0
[ 68.648421] SMEM #246 name=??, allocated=N, size=0; offset=0x0
[ 68.648446] SMEM #247 name=??, allocated=N, size=0; offset=0x0
[ 68.648466] SMEM #248 name=??, allocated=N, size=0; offset=0x0
[ 68.648488] SMEM #249 name=??, allocated=N, size=0; offset=0x0
[ 68.648509] SMEM #250 name=??, allocated=N, size=0; offset=0x0
[ 68.648529] SMEM #251 name=??, allocated=N, size=0; offset=0x0
[ 68.648551] SMEM #252 name=??, allocated=N, size=0; offset=0x0
[ 68.648573] SMEM #253 name=??, allocated=N, size=0; offset=0x0
[ 68.648593] SMEM #254 name=??, allocated=N, size=0; offset=0x0
[ 68.648614] SMEM #255 name=??, allocated=N, size=0; offset=0x0
[ 68.648634] SMEM #256 name=??, allocated=N, size=0; offset=0x0
[ 68.648656] SMEM #257 name=??, allocated=N, size=0; offset=0x0
[ 68.648676] SMEM #258 name=??, allocated=N, size=0; offset=0x0
[ 68.648698] SMEM #259 name=??, allocated=N, size=0; offset=0x0
[ 68.648718] SMEM #260 name=??, allocated=N, size=0; offset=0x0
[ 68.648739] SMEM #261 name=??, allocated=N, size=0; offset=0x0
[ 68.648761] SMEM #262 name=??, allocated=N, size=0; offset=0x0
[ 68.648781] SMEM #263 name=??, allocated=N, size=0; offset=0x0
[ 68.648803] SMEM #264 name=??, allocated=N, size=0; offset=0x0
[ 68.648823] SMEM #265 name=??, allocated=N, size=0; offset=0x0
[ 68.648846] SMEM #266 name=SMEM_SMD_BLOCK_PORT_PROC1_HEAP, allocated=N, size=0; offset=0x0
[ 68.648871] SMEM #267 name=??, allocated=N, size=0; offset=0x0
[ 68.648893] SMEM #268 name=??, allocated=N, size=0; offset=0x0
[ 68.648913] SMEM #269 name=??, allocated=N, size=0; offset=0x0
[ 68.648934] SMEM #270 name=??, allocated=N, size=0; offset=0x0
[ 68.648954] SMEM #271 name=??, allocated=N, size=0; offset=0x0
[ 68.648976] SMEM #272 name=??, allocated=N, size=0; offset=0x0
[ 68.648998] SMEM #273 name=??, allocated=N, size=0; offset=0x0
[ 68.649018] SMEM #274 name=??, allocated=N, size=0; offset=0x0
[ 68.649039] SMEM #275 name=??, allocated=N, size=0; offset=0x0
[ 68.649061] SMEM #276 name=??, allocated=N, size=0; offset=0x0
[ 68.649081] SMEM #277 name=??, allocated=N, size=0; offset=0x0
[ 68.649103] SMEM #278 name=??, allocated=N, size=0; offset=0x0
[ 68.649123] SMEM #279 name=??, allocated=N, size=0; offset=0x0
[ 68.649144] SMEM #280 name=??, allocated=N, size=0; offset=0x0
[ 68.649166] SMEM #281 name=??, allocated=N, size=0; offset=0x0
[ 68.649186] SMEM #282 name=??, allocated=N, size=0; offset=0x0
[ 68.649208] SMEM #283 name=??, allocated=N, size=0; offset=0x0
[ 68.649228] SMEM #284 name=??, allocated=N, size=0; offset=0x0
[ 68.649249] SMEM #285 name=??, allocated=N, size=0; offset=0x0
[ 68.649271] SMEM #286 name=??, allocated=N, size=0; offset=0x0
[ 68.649291] SMEM #287 name=??, allocated=N, size=0; offset=0x0
[ 68.649313] SMEM #288 name=??, allocated=N, size=0; offset=0x0
[ 68.649333] SMEM #289 name=??, allocated=N, size=0; offset=0x0
[ 68.649354] SMEM #290 name=??, allocated=N, size=0; offset=0x0
[ 68.649374] SMEM #291 name=??, allocated=N, size=0; offset=0x0
[ 68.649396] SMEM #292 name=??, allocated=N, size=0; offset=0x0
[ 68.649418] SMEM #293 name=??, allocated=N, size=0; offset=0x0
[ 68.649438] SMEM #294 name=??, allocated=N, size=0; offset=0x0
[ 68.649459] SMEM #295 name=??, allocated=N, size=0; offset=0x0
[ 68.649479] SMEM #296 name=??, allocated=N, size=0; offset=0x0
[ 68.649501] SMEM #297 name=??, allocated=N, size=0; offset=0x0
[ 68.649523] SMEM #298 name=??, allocated=N, size=0; offset=0x0
[ 68.649543] SMEM #299 name=??, allocated=N, size=0; offset=0x0
[ 68.649564] SMEM #300 name=??, allocated=N, size=0; offset=0x0
[ 68.649584] SMEM #301 name=??, allocated=N, size=0; offset=0x0
[ 68.649606] SMEM #302 name=??, allocated=N, size=0; offset=0x0
[ 68.649626] SMEM #303 name=??, allocated=N, size=0; offset=0x0
[ 68.649648] SMEM #304 name=??, allocated=N, size=0; offset=0x0
[ 68.649669] SMEM #305 name=??, allocated=N, size=0; offset=0x0
[ 68.649689] SMEM #306 name=??, allocated=N, size=0; offset=0x0
[ 68.649711] SMEM #307 name=??, allocated=N, size=0; offset=0x0
[ 68.649733] SMEM #308 name=??, allocated=N, size=0; offset=0x0
[ 68.649753] SMEM #309 name=??, allocated=N, size=0; offset=0x0
[ 68.649774] SMEM #310 name=??, allocated=N, size=0; offset=0x0
[ 68.649794] SMEM #311 name=??, allocated=N, size=0; offset=0x0
[ 68.649816] SMEM #312 name=??, allocated=N, size=0; offset=0x0
[ 68.649838] SMEM #313 name=??, allocated=N, size=0; offset=0x0
[ 68.649858] SMEM #314 name=??, allocated=N, size=0; offset=0x0
[ 68.649879] SMEM #315 name=??, allocated=N, size=0; offset=0x0
[ 68.649899] SMEM #316 name=??, allocated=N, size=0; offset=0x0
[ 68.649921] SMEM #317 name=??, allocated=N, size=0; offset=0x0
[ 68.649941] SMEM #318 name=??, allocated=N, size=0; offset=0x0
[ 68.649963] SMEM #319 name=??, allocated=N, size=0; offset=0x0
[ 68.649983] SMEM #320 name=??, allocated=N, size=0; offset=0x0
[ 68.650004] SMEM #321 name=??, allocated=N, size=0; offset=0x0
[ 68.650026] SMEM #322 name=??, allocated=N, size=0; offset=0x0
[ 68.650046] SMEM #323 name=??, allocated=N, size=0; offset=0x0
[ 68.650068] SMEM #324 name=??, allocated=N, size=0; offset=0x0
[ 68.650088] SMEM #325 name=??, allocated=N, size=0; offset=0x0
[ 68.650109] SMEM #326 name=??, allocated=N, size=0; offset=0x0
[ 68.650129] SMEM #327 name=??, allocated=N, size=0; offset=0x0
[ 68.650151] SMEM #328 name=??, allocated=N, size=0; offset=0x0
[ 68.650171] SMEM #329 name=??, allocated=N, size=0; offset=0x0
[ 68.650194] SMEM #330 name=SMEM_I2C_MUTEX, allocated=Y, size=8; offset=0x73aa0
[ 68.650218] SMEM #331 name=SMEM_SCLK_CONVERSION, allocated=N, size=0; offset=0x0
[ 68.650243] SMEM #332 name=SMEM_SMD_SMSM_INTR_MUX, allocated=N, size=0; offset=0x0
[ 68.650268] SMEM #333 name=SMEM_SMSM_CPU_INTR_MASK, allocated=Y, size=96; offset=0x4aa0
[ 68.650394] SMEM #334 name=SMEM_APPS_DEM_SLAVE_DATA, allocated=Y, size=56; offset=0x18f60
[ 68.650421] SMEM #335 name=SMEM_QDSP6_DEM_SLAVE_DATA, allocated=N, size=0; offset=0x0
[ 68.650446] SMEM #336 name=SMEM_CLKREGIM_BSP, allocated=Y, size=6936; offset=0x2208
[ 68.650471] SMEM #337 name=SMEM_CLKREGIM_SOURCES, allocated=Y, size=152; offset=0x3d20
[ 68.650496] SMEM #338 name=SMEM_SMD_FIFO_BASE_ID, allocated=Y, size=16384; offset=0x358e0
[ 68.650521] SMEM #339 name=??, allocated=Y, size=65536; offset=0x21890
[ 68.650544] SMEM #340 name=??, allocated=Y, size=16384; offset=0x1d868
[ 68.650566] SMEM #341 name=??, allocated=N, size=0; offset=0x0
[ 68.650586] SMEM #342 name=??, allocated=N, size=0; offset=0x0
[ 68.650609] SMEM #343 name=??, allocated=Y, size=16384; offset=0x19840
[ 68.650631] SMEM #344 name=??, allocated=N, size=0; offset=0x0
[ 68.650653] SMEM #345 name=??, allocated=Y, size=65536; offset=0x39908
[ 68.650674] SMEM #346 name=??, allocated=Y, size=65536; offset=0x49930
[ 68.650698] SMEM #347 name=??, allocated=Y, size=65536; offset=0x59958
[ 68.650719] SMEM #348 name=??, allocated=N, size=0; offset=0x0
[ 68.650739] SMEM #349 name=??, allocated=N, size=0; offset=0x0
[ 68.650761] SMEM #350 name=??, allocated=N, size=0; offset=0x0
[ 68.650781] SMEM #351 name=??, allocated=N, size=0; offset=0x0
[ 68.650803] SMEM #352 name=??, allocated=N, size=0; offset=0x0
[ 68.650824] SMEM #353 name=??, allocated=Y, size=16384; offset=0x69980
[ 68.650846] SMEM #354 name=??, allocated=N, size=0; offset=0x0
[ 68.650866] SMEM #355 name=??, allocated=N, size=0; offset=0x0
[ 68.651464] SMEM #364 name=??, allocated=N, size=0; offset=0x0
[ 68.651488] SMEM #365 name=??, allocated=Y, size=16384; offset=0x6d9a8
[ 68.651509] SMEM #366 name=??, allocated=N, size=0; offset=0x0
[ 68.651531] SMEM #367 name=??, allocated=N, size=0; offset=0x0
[ 68.651699] SMEM #375 name=??, allocated=N, size=0; offset=0x0
[ 68.651721] SMEM #376 name=??, allocated=Y, size=16384; offset=0x318b8
[ 68.651744] SMEM #377 name=??, allocated=N, size=0; offset=0x0
[ 68.652016] SMEM #390 name=??, allocated=N, size=0; offset=0x0
[ 68.652226] SMEM #400 name=??, allocated=N, size=0; offset=0x0
[ 68.652248] SMEM #401 name=??, allocated=N, size=0; offset=0x0
[ 68.652271] SMEM #402 name=SMEM_USABLE_RAM_PARTITION_TABLE, allocated=Y, size=1816; offset=0x3dc0
[ 68.652299] SMEM #403 name=SMEM_POWER_ON_STATUS_INFO, allocated=Y, size=8; offset=0x3db8
[ 68.652324] SMEM #404 name=SMEM_DAL_AREA, allocated=N, size=0; offset=0x0
[ 68.652348] SMEM #405 name=SMEM_SMEM_LOG_POWER_IDX, allocated=Y, size=8; offset=0x18f50
[ 68.652374] SMEM #406 name=SMEM_SMEM_LOG_POWER_WRAP, allocated=Y, size=8; offset=0x18f58
[ 68.652401] SMEM #407 name=SMEM_SMEM_LOG_POWER_EVENTS, allocated=Y, size=40000; offset=0xf310
[ 68.652428] SMEM #408 name=SMEM_ERR_CRASH_LOG, allocated=N, size=0; offset=0x0
[ 68.652451] SMEM #409 name=SMEM_ERR_F3_TRACE_LOG, allocated=N, size=0; offset=0x0
[ 68.652476] SMEM #410 name=SMEM_SMD_BRIDGE_ALLOC_TABLE, allocated=N, size=0; offset=0x0
[ 68.652501] SMEM #411 name=SMEM_SMDLITE_TABLE, allocated=N, size=0; offset=0x0
[ 68.652526] SMEM #412 name=SMEM_SD_IMG_UPGRADE_STATUS, allocated=N, size=0; offset=0x0
[ 68.652551] SMEM #413 name=SMEM_SEFS_INFO, allocated=N, size=0; offset=0x0
[ 68.652568] E/O SMEM index.

The one that interests us here is the battery info:

[ 68.643576] SMEM #105 name=SMEM_BATT_INFO, allocated=N, size=0; offset=0x0

unfortunately it is not allocated.

based on the liberty source code, it should be done by the ARM9 of MSM, after sending a RPC call: (htc_battery.c)

/* SMEM_BATT_INFO is allocated by A9 after first A2M RPC is sent. */

It is interesting to note that on other devices (raphael, leo), their devices use a different radio (OS for the ARM9) that require usage of specific RPC that they call "DEX".

On raphael, they must call a special "DEX" in order to retrieve the battery data.

i'm trying to investigate here.

does it makes sense for you?

what do you think?