Add Google Tensor SoC detection#382
Open
fbarchard wants to merge 1 commit intopytorch:mainfrom
Open
Conversation
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.
950d283 to
2ed25e3
Compare
GregoryComer
approved these changes
Apr 28, 2026
| 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 */ |
Member
There was a problem hiding this comment.
Is the qualcomm detection logic removal intentional?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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