Skip to content

Fix LRSC reservation handling for aborted stores - #154

Merged
cfuguet merged 1 commit into
openhwfoundation:masterfrom
Jackie425:fix-lrsc-abort-reservation
Sep 11, 2026
Merged

cfuguet merged 1 commit into
openhwfoundation:masterfrom
Jackie425:fix-lrsc-abort-reservation

Conversation

@Jackie425

@Jackie425 Jackie425 commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Hi,

This PR attempts to fix #153 by preventing aborted VIPT stores from invalidating the LR/SC reservation. The failing test that reproduced this issue in my HPDcache UVM environment now passes with this fix.

@Jackie425
Jackie425 requested a review from cfuguet as a code owner September 11, 2026 02:52
Copilot AI lite review requested due to automatic review settings September 11, 2026 02:52

Copilot AI 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.

🟡 Changes recommended

Add a directed regression test verifying that an aborted overlapping store preserves the LR reservation.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Fixes LR/SC reservation invalidation caused by aborted VIPT stores.

Changes:

  • Gates LR/SC snooping with ~st1_req_abort.
  • No directed regression test was added for the aborted-store scenario.
File summaries
File Description
rtl/src/hpdcache_ctrl.sv Prevents aborted stores from invalidating LR/SC reservations.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread rtl/src/hpdcache_ctrl.sv
@cfuguet cfuguet self-assigned this Sep 11, 2026
@cfuguet

cfuguet commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Hi @Jackie425,

Thank you for this contribution. This is indeed a performance bug, and your modification should fix it. I'm waiting for the non-regression tests to pass before merging.

@cfuguet
cfuguet merged commit e8f072e into openhwfoundation:master Sep 11, 2026
20 checks passed
@Jackie425
Jackie425 deleted the fix-lrsc-abort-reservation branch September 11, 2026 14:58
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.

VIPT aborted store invalidates LR/SC reservation

3 participants