Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • F firmware
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
  • Issues 74
    • Issues 74
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 29
    • Merge requests 29
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • card10card10
  • firmware
  • Merge requests
  • !484

Fix epic_sleep() calls delaying load of new app

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Rahix requested to merge rahix/fix-reset-button into master Sep 19, 2021
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1

When core 1 repeatedly calls epic_sleep(), this could delay an epic_load() from core 0 because the reset interrupt can only be delivered after such a call completed.

To work around this, add calls into do_load() to notify the dispatcher task that it should return early from calls like epic_sleep(). This gets a bit tricky because the dispatcher task also uses ulTaskNotifyTake() to wake up when new API calls arrive. To make sure we still break out of epic_sleep(), we need to call xTaskNotifyGive() twice in the wait loop.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: rahix/fix-reset-button