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

fdcan: rate limit CAN core reset #2137

Merged
merged 3 commits into from
Jan 30, 2025
Merged

fdcan: rate limit CAN core reset #2137

merged 3 commits into from
Jan 30, 2025

Conversation

sshane
Copy link
Contributor

@sshane sshane commented Jan 30, 2025

Closes #2132 and commaai/openpilot#33840.

Ignition off w/ canState1 and canState2 active receiving messages w/ forced resetting on canState0 (bus 2, similar case to right after ignition off in commaai/openpilot#33840):

  • No resetting: 0.13 interrupt load
  • Resetting at 10Hz: 0.15 interrupt load (this PR)
  • Resetting at 100Hz: 0.35 interrupt load
  • Resetting w/o restrictions (~286Hz): 0.8 interrupt load (similar to issue)

@sshane
Copy link
Contributor Author

sshane commented Jan 30, 2025

No issues on ignition off with some transmit errors and forced resets!

image

Before, we would get stuck resetting in a loop for ~500 resets: #2134 (comment)

@sshane sshane added the bugfix label Jan 30, 2025
@sshane sshane requested a review from adeebshihadeh January 30, 2025 04:12
@sshane sshane merged commit 3ff9730 into master Jan 30, 2025
10 of 11 checks passed
@sshane sshane deleted the rl-cc-reset branch January 30, 2025 21:21
elkoled pushed a commit to elkoled/panda that referenced this pull request Feb 18, 2025
* rate limit can core resets

* overflow protection

* U
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fdcan: high number of CAN core resets w/ ACK error
2 participants