Skip to content

Conversation

mkeeter
Copy link
Contributor

@mkeeter mkeeter commented Jul 15, 2025

(opening this as a draft while we wait for oxidecomputer/lpc55_support#94)

Without this change, the SP's "multiple seconds of resets" in oxidecomputer/hubris#2138 cause Humility to time out. We could increase Humility's timeout, but having an explicit SKIP token seems like a cleaner solution; with the SWD dongle attached, the SP is definitely not getting measured!

// reboot loop. The memory address and token values are hard-coded based on
// the `measurement-token` crate in Hubris.
if hubris.manifest.features.iter().any(|s| s == "measurement-handoff") {
core.reset_and_halt(std::time::Duration::from_millis(25))?;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to make this time a constant in measurement-token too?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so – it's a Humility-specific delay, so it doesn't need to be coordinated between repositories.

@mkeeter mkeeter force-pushed the mkeeter/measurement-token-handoff branch 3 times, most recently from f867a1c to 654d4f3 Compare July 22, 2025 14:58
@mkeeter mkeeter marked this pull request as ready for review July 22, 2025 14:58
@mkeeter mkeeter force-pushed the mkeeter/measurement-token-handoff branch 2 times, most recently from 615337d to 8fe8b1c Compare July 28, 2025 13:54
@mkeeter mkeeter force-pushed the mkeeter/measurement-token-handoff branch from 0539fb9 to c418035 Compare July 29, 2025 13:39
@mkeeter mkeeter enabled auto-merge (squash) July 29, 2025 13:55
@mkeeter mkeeter merged commit 5f3492d into master Jul 29, 2025
11 checks passed
@mkeeter mkeeter deleted the mkeeter/measurement-token-handoff branch July 29, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants