From bfc7e3c4ce4746690a3c12bf449f4041798cd0ee Mon Sep 17 00:00:00 2001 From: AI Dev Date: Thu, 3 Dec 2026 09:07:11 +0000 Subject: [PATCH] gm: the GM8128 that reads 0x812622 (#305) The reporter's GM8128 reads PMU ID 0x812622, not the 0x812621 the vendor kernel in the dump used for testing knows. The vendor 2.6.28 tree's pmu.h has both, GM8128_MP_CHIP_ID and GM8128_MP1_CHIP_ID, and its own kernel prints "IC: GM8128 MP" for either. --- src/hal/gm.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/hal/gm.c b/src/hal/gm.c index aa803bf..737f5c7 100644 --- a/src/hal/gm.c +++ b/src/hal/gm.c @@ -83,9 +83,10 @@ static unsigned long gm_pmuver() { /* The vendor 2.6.28 kernel of the GM8126 generation says "Hardware : * Faraday GM8126" whatever the die, and has no /proc/pmu/chipver. It tells * the dies apart on its boot line ("IC: GM8128 MP") from the PMU ID word: - * 0x812610 GM8126, 0x812620 GM8126 MP, 0x812621 GM8128 MP. Without one of - * those the Hardware line names only the generation, so that is all the - * report claims. */ + * 0x812610 GM8126, 0x812620 GM8126 MP, 0x812621 and 0x812622 GM8128 MP + * (GM8128_MP_CHIP_ID and GM8128_MP1_CHIP_ID in the vendor pmu.h; a GM8128 + * in #305 reads 0x812622). Without one of those the Hardware line names + * only the generation, so that is all the report claims. */ bool gm_faraday_detect_cpu(char *chip_name) { char buf[256]; @@ -95,6 +96,7 @@ bool gm_faraday_detect_cpu(char *chip_name) { switch (gm_pmuver()) { case 0x812621: + case 0x812622: strcpy(chip_name, "GM8128"); break; case 0x812610: