Repository navigation
gm: the GM8126 and GM8128 on the vendor 2.6.28 kernel - #306
Conversation
That kernel says "Hardware : Faraday GM8126" for every die and has no
/proc/pmu/chipver, so no row matched. It names the die on its boot line
("IC: GM8128 MP") from the PMU ID word, 0x99000000 >> 8: 0x812610 GM8126,
0x812620 GM8126 MP, 0x812621 GM8128 MP. /proc/pmu/attribute shows the same
word as pmuver, so it is read from there, without /dev/mem.
ipctool only, as the rest of the GM8126 support: ipcinfo is unchanged.
Closes #305
PR Summary by Qodogm: detect GM8126/GM8128 on the vendor 2.6.28 kernel
AI Description
Merge Risk
|
Code Review by Qodo
1.
|
The Hardware line reads GM8126 on the GM8128 too, so with no pmuver, or one the kernel itself does not know, it cannot name the die.
|
Qodo's finding is fixed in fbcd2f8. The Hardware line says GM8126 on a GM8128 too, so without a |
Closes #305.
The GM8126 generation's vendor 2.6.28 kernel says
Hardware : Faraday GM8126in/proc/cpuinfowhatever the die is, and has no/proc/pmu/chipver(that file belongs to the GM813x kernels). So no row in the vendor table matched, and ipctool printedno vendor matches /proc/cpuinfo: Faraday.The kernel names the die on its own boot line from the PMU ID word,
0x99000000 >> 8. I disassembled its decoder from a vendor dump:0x812610IC: GM81260x812620IC: GM8126 MP0x812621IC: GM8128 MP/proc/pmu/attributeshows the same word aspmuver, so ipctool reads it from there, without/dev/mem. Ifpmuveris missing or holds another value, the name comes from the Hardware line.Like the rest of the GM8126 support (#293), this is in ipctool only.
ipcinfois byte-identical on arm32 (153852 bytes).Tested
In qemu-bench's
gm8126machine, booted from a GM8126 camera's vendor flash dump (report r-nz9qyrtg):mastergives exactly the error in GM8128 #305.GM8126, MAC, all 10 NOR partitions, 128M RAM, the 2.6.28 kernel and toolchain, and the OV7725 at 0x42 on bus 0.-global gm-sys8126.chip-id=0x81262100, the kernel printsIC: GM8128 MP(the reporter's boot line),pmuverreads 8463905, and ipctool reportsGM8128.The native build passes all six unit tests, and clang-format finds nothing to change in the diff. Not yet run on real silicon: the reporter's GM8128 is the check.
Known gaps on this kernel, not in this PR
15M, because the partitions skip the 4 KiB header at 0./proc/frammap/ddr_infohere is a table with aMemSizecolumn, not thesize:line ipctool parses.