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

tokio: fix cache line size for RISC-V #5994

Merged
merged 2 commits into from Sep 11, 2023

Commits on Sep 11, 2023

  1. tokio: fix cache line size for RISC-V

    Currently tokio uses cache line size data from Go, which is not
    sufficient at least for T-Head C910 cores.
    
    The RISC-V Profiles document defines a maximum 64 bytes cache line for
    RVA22U64 (although the maximum is 128 bytes for RVA20U64), and the Linux
    kernel currently assumes 64B cache line too.
    
    Change the cache line size used to 64 bytes to match Linux and RVA22U64.
    
    Signed-off-by: Icenowy Zheng <uwu@icenowy.me>
    Icenowy committed Sep 11, 2023
    Configuration menu
    Copy the full SHA
    51fd4db View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7ad5cb6 View commit details
    Browse the repository at this point in the history