Skip to content

Add Nord RPMh driver support; Lemans target specific rpmh config; fix MSD_ID flag and length - #74

Open
Shivam Sanjay (shvm-ap) wants to merge 3 commits into
qualcomm-linux:early/hwe/nordfrom
shvm-ap:topic/shivsanj-optee-rpmh-changes
Open

Shivam Sanjay (shvm-ap) wants to merge 3 commits into
qualcomm-linux:early/hwe/nordfrom
shvm-ap:topic/shivsanj-optee-rpmh-changes

Conversation

@shvm-ap

@shvm-ap Shivam Sanjay (shvm-ap) commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

Adding RPMh driver support for Nord following target specific Rpmh config as in Lemans.

Fixing MSG_ID Flag (using WRITE flag now correctly), and Length (earlier length was 1 which
was causing undefined behaviour, now using the correct value of 8).

Fixing Boot cookie polling timeout due to reading wrong address.

Bootup tested on Nord device. Build tested for Lemans.

The RPMh command MSGID encodes a MSG_LENGTH field describing the
payload length, in bytes, of the command. This field was hardcoded
to 1 which is leading to unpredictable behavior on the
AOP side (including the command never being acknowledged, causing timeouts).

Changing it to 8 (the correct length for the single 32-bit data
word every RPMh command carries), introducing macros MSGID_MSG_LENGTH_VALUE,
MSGID_WRITE, MSGID_READ so the expected encoding is explicit.

Using MSGID_WRITE since it's a write command.

Signed-off-by: Shivam Sanjay <shivsanj@qti.qualcomm.com>
Adding Nord support, following target specific RMPh
configuration structure.

Unit tested on Nord device.
@shvm-ap
Shivam Sanjay (shvm-ap) marked this pull request as draft September 17, 2026 13:15
@shvm-ap Shivam Sanjay (shvm-ap) changed the title Topic/shivsanj optee rpmh changes Add Nord RPMh driver support, fix MSD_ID length and length Sep 17, 2026
@shvm-ap Shivam Sanjay (shvm-ap) changed the title Add Nord RPMh driver support, fix MSD_ID length and length Add Nord RPMh driver support; Lemans target specific rpmh config; fix MSD_ID flag and length Sep 17, 2026
@shvm-ap
Shivam Sanjay (shvm-ap) marked this pull request as ready for review September 17, 2026 15:48

@IDineshChoudhary IDineshChoudhary 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 is for staging branch - explicit reviews ongoing on qcom-next and optee upstream.
Let's merge it to unblock depedent drivers.

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.

2 participants