Skip to content

Add Google Tensor SoC detection#382

Open
fbarchard wants to merge 1 commit intopytorch:mainfrom
fbarchard:google-tensor-detection
Open

Add Google Tensor SoC detection#382
fbarchard wants to merge 1 commit intopytorch:mainfrom
fbarchard:google-tensor-detection

Conversation

@fbarchard
Copy link
Copy Markdown
Collaborator

@fbarchard fbarchard commented Apr 28, 2026

Adding ro.soc.model support to cpuinfo to detect Google Tensor SoC.
Fixes #329

Was:
SoC name: Unknown

Now:
SoC name: Google Tensor G2
Microarchitectures:
2x Cortex-X1
2x Cortex-A78
4x Cortex-A55
Cores:
0: 1 processor (0), ARM Cortex-X1
1: 1 processor (1), ARM Cortex-X1
2: 1 processor (2), ARM Cortex-A78
3: 1 processor (3), ARM Cortex-A78
4: 1 processor (4), ARM Cortex-A55
5: 1 processor (5), ARM Cortex-A55
6: 1 processor (6), ARM Cortex-A55
7: 1 processor (7), ARM Cortex-A55
Clusters:
0: 2 processors (0-1), 0: 2 cores (0-1), ARM Cortex-X1
1: 2 processors (2-3), 1: 2 cores (2-3), ARM Cortex-A78
2: 4 processors (4-7), 2: 4 cores (4-7), ARM Cortex-A55

getprop for pixel 10,9,8,7,6
adb shell getprop ro.soc.model
Tensor G5
Tensor G4
Tensor G3
GS201
Tensor

@meta-cla meta-cla Bot added the cla signed label Apr 28, 2026
Identify Google Tensor SoCs (Tensor, GS201) in ro.soc.model Android system property.
Updated src/arm/api.h and src/arm/linux/chipset.c to match internal Google CL 604382821.
Comment thread src/arm/linux/chipset.c
const size_t soc_model_length = strnlen(soc_model, CPUINFO_BUILD_PROP_VALUE_MAX);
const char* soc_model_end = soc_model + soc_model_length;

/* Check Qualcomm SMxxxx signature */
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the qualcomm detection logic removal intentional?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fairly large number of Unknown SoCs detected

2 participants