Skip to content

Fix FFA_DIRECT_REQ2 into STMM partition receiving extra bytes - #1858

Open
kuqin12 wants to merge 2 commits into
microsoft:release/202511from
kuqin12:fix_ppi
Open

Fix FFA_DIRECT_REQ2 into STMM partition receiving extra bytes#1858
kuqin12 wants to merge 2 commits into
microsoft:release/202511from
kuqin12:fix_ppi

Conversation

@kuqin12

@kuqin12 kuqin12 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Description

The previous change that introduces the header from FFA_DIRECT_REQ2 calls has a side effect of injecting 4 extra arguments into MM communication buffer, causing the handler parsing the data incorrectly.

This change strip off the extra 4 arguments from the core side before handing off to the receiver.

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

This was tested on QEMU Arm Virt and verified the TPM PPI is functional again.

Integration Instructions

N/A

@kuqin12 kuqin12 self-assigned this Jul 23, 2026
@kuqin12 kuqin12 added the type:bug Something isn't working label Jul 23, 2026
@mu-automation

mu-automation Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

❌ QEMU Validation Failed

Source Dependencies

Repository Commit
mu_basecore 6df52d9
mu_tiano_platforms 5fe0377

Results

Platform Target Build Boot Overall Boot Time Build Logs Boot Logs
Q35 DEBUG ❌ failure ⏩ skipped N/A Build Logs N/A
ArmVirt DEBUG ✅ success ✅ success 0m 14s Build Logs Boot Logs

Workflow run: https://github.com/microsoft/mu_basecore/actions/runs/29990599592

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@kuqin12
kuqin12 requested a review from cfernald July 23, 2026 07:52
/** Implementation defined argument tail carried by an FF-A direct message
* (FFA_SEND_MSG_DIRECT_REQ/FFA_SEND_MSG_DIRECT_RESP (i.e. v1) and
* FFA_SEND_MSG_DIRECT_REQ2/FFA_SEND_MSG_DIRECT_RESP2 (i.e. v2)).
*/

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'm not opposed exactly, but my not the more conventional struct vs a macro?

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

Labels

type:bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants