Skip to content

drivers: qcom: add chipinfo driver - #70

Open
Vinod Kumar Amanaganti (vinod-amanaganti) wants to merge 1 commit into
qualcomm-linux:qcom-nextfrom
vinod-amanaganti:feature/chip-info
Open

Vinod Kumar Amanaganti (vinod-amanaganti) wants to merge 1 commit into
qualcomm-linux:qcom-nextfrom
vinod-amanaganti:feature/chip-info

Conversation

@vinod-amanaganti

Copy link
Copy Markdown

drivers: qcom: add chipinfo driver

Add a Qualcomm ChipInfo driver used to retrieve SoC identification
information from shared memory.

The driver exposes a common API that allows Qualcomm clients to
query chip family, device ID, and version information.

Depends on: PR #51

Add a Qualcomm Chipinfo driver to provide SoC identification.

The driver retrieves SoC-specific information from
shared memory and exposes a common interface for Qualcomm clients.

Depends on: PR qualcomm-linux#51
@vinod-amanaganti

Copy link
Copy Markdown
Author

Sumit Garg (@b49020) could you please review this?

QTI_CHIPINFO_ID_SM_HAWI_AS_MAILI = 755,

QTI_CHIPINFO_NUM_IDS,
QTI_CHIPINFO_ID_32BITS = 0x7FFFFFF

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

QTI_CHIPINFO_PART_32BITS = 0x7FFFFFFF (seven Fs). This is 0x7FFFFFF, with six Fs. Is this intentional?

QTI_CHIPINFO_FAMILY_MAILI = 173,

QTI_CHIPINFO_NUM_FAMILIES,
QTI_CHIPINFO_FAMILY_32BITS = 0x7FFFFFF

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@hl5746 hl5746 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This breaks build on Nord:
CC out/arm-plat-qcom/core/drivers/qcom/chipinfo/chipinfo.o
core/drivers/qcom/chipinfo/chipinfo.c:12:10: fatal error: drivers/qcom/smem/smem.h: No such file or directory

(uint32_t)part >= QTI_CHIPINFO_NUM_PARTS)
return false;

if (part_idx == 0U) {

@hl5746 hl5746 Sep 15, 2026

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This assigns to part idx 0 special behaviour, implying that part_idx is 1-based, but in def of struct qti_platforminfo_part_info (platforminfodefs.h:55) it's defined as 0-based.

@b49020 Sumit Garg (b49020) left a comment

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.

End-to-end use-case missing, please clarify how this driver is going to be used for Nord.

@basantku

Basant Kumar (basantku) commented Sep 20, 2026

Copy link
Copy Markdown

Please follow below guideline to avoid basic query from maintainer:

[chipset name] [driver name] :
<If your change is touching common driver or need some reorg in common driver, provide justification like why reorg needed>
<If first time driver addition, give brief introduction about driver>
<end use case detail, at which stage driver get plugged, any other init dependency, if driver not present what use case will get impacted, etc.>

[Dependent PR] :

signed-off :

After testing is complete, the author must paste the test log in the "commit comment".

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants