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

Clint interrupts virtualization #199

Closed
wants to merge 4 commits into from
Closed

Commits on Sep 30, 2024

  1. This commit adds m-mode interrupts tests

    To verify correctness of interrupt virtualization, we should test some corner cases that are not currently addressed by firmware payloads
    This tests verify that for virtualized m-mode interrupts from CLINT (timer&software) priority is right (e.g if two interrupts are pending simultaniously, MSI will be delivered before MTI), interrupt will be raised again if not cleared in trap handler, and that MSIs work overall (albeit that should already be covered by zephyr)
    Wesdcv committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    20c08f6 View commit details
    Browse the repository at this point in the history
  2. This is a first draft commit with virtualized interrupts MSI and MTI

    Works in CI, doesn't work on the board
    Wesdcv committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    ad3a40a View commit details
    Browse the repository at this point in the history
  3. Refactored interrupt virtialization tests

    Added timer tests to CI
    Tidied up the code a bit
    Wesdcv committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    c899b17 View commit details
    Browse the repository at this point in the history
  4. Fix timer virtualization bugs

    This commit resolves two issues with timer virtualization:
    1. Fixed a timer delay that was too large, ensuring test success regardless of log level.
    2. Corrected a bug where the MPIE value was being overwritten, which for some reason affected only Spike.
    Additionally, now firmware cannot delegate MSI and MTI.
    Wesdcv committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    460f09c View commit details
    Browse the repository at this point in the history