Skip to content

[vendor] Keep unstrobed bytes on mailbox threshold writes - #759

Merged
marnovandermaas merged 1 commit into
lowRISC:mainfrom
martin-velay:pulp_axi_mailbox_irqt_strb
Oct 12, 2026
Merged

marnovandermaas merged 1 commit into
lowRISC:mainfrom
martin-velay:pulp_axi_mailbox_irqt_strb

Conversation

@martin-velay

Copy link
Copy Markdown
Contributor

Backports pulp-platform/axi@11603194 (pulp-platform/axi#412, released in v0.39.10) as a vendor patch, without bumping the vendored revision. A write to the mailbox WIRQT or RIRQT register with some byte strobes low cleared the bytes that were not strobed; they now keep their value, as AXI requires (IHI 0022 H.c A3.4.4). With Mocha's 2-bit thresholds this only shows when byte 0 is not strobed, for example a 32-bit store to the upper half of the register or a write with no strobes, which used to reset the threshold to 0.

The HAL writes both thresholds with 64-bit stores, so software sees no change. Checked with a standalone simulation of axi_lite_mailbox (partial writes cleared the other bytes before the patch and keep them after it), mailbox_smoke and mailbox_smoke_cheri on Xcelium, and the CI lint steps.

Backport pulp-platform/axi@11603194 (in v0.39.10) as a vendor patch.
A write to WIRQT or RIRQT with some write strobes low cleared the
unstrobed bytes instead of leaving them unchanged, which AXI requires
(IHI 0022 H.c A3.4.4). The vendored revision stays at v0.39.9.

Signed-off-by: Martin Velay <mvelay@lowrisc.org>

@marnovandermaas marnovandermaas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for integrating this fix! I've also found the initial issue which I'll link here for future reference: pulp-platform/axi#411

@marnovandermaas
marnovandermaas added this pull request to the merge queue Oct 12, 2026
Merged via the queue into lowRISC:main with commit 9b2a943 Oct 12, 2026
6 checks passed
@martin-velay
martin-velay deleted the pulp_axi_mailbox_irqt_strb branch October 13, 2026 04:43
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