Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rare TLB refill/invalidate race condition #2534

Merged
merged 2 commits into from
Jun 25, 2020

Commits on Jun 25, 2020

  1. Fix TLB refill/invalidate race condition

    If an SFENCE.VMA with rs1 != x0 or rs2 != x0 happens on the same cycle
    as an I-TLB refill, the refill still occurs, even if the SFENCE.VMA
    should've flushed the entry being refilled.
    
    SFENCE.VMA with rs1=x0 and rs2=x0 is unaffected.
    
    It's exceedingly difficult, but possible, to manifest this bug.  We found
    it by inspection (thanks @khannaudit), not by observing it in the wild.
    aswaterman committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    5da05db View commit details
    Browse the repository at this point in the history
  2. Reduce fanout on io.sfence.valid signal in TLB

    This signal is sometimes slow to compute, so avoid fanning it out to the
    clock-enables for the entire TLB.  Instead, make only the valid signals
    depend on its output.
    aswaterman committed Jun 25, 2020
    Configuration menu
    Copy the full SHA
    898f7c7 View commit details
    Browse the repository at this point in the history