Skip to content

Conversation

@hawkw
Copy link
Member

@hawkw hawkw commented Nov 11, 2025

PR #2246 introduced the microcbor crate for derivable CBOR serialization with a fixed max length. That branch changed the ereports in drv_gimlet_seq_server to use the new derives. The intent at the time was to update other existing ereports, such as those in drv_psc_seq_server, separately. This branch does that.

PR #2246 introduced the `microcbor` crate for derivable CBOR
serialization with a fixed max length. That branch changed the ereports
in `drv_gimlet_seq_server` to use the new derives. The intent at the
time was to update other existing ereports, such as those in
`drv_psc_seq_server`, separately. This branch does that.
@hawkw hawkw requested a review from mkeeter November 11, 2025 22:13
@hawkw hawkw added psc Related to the power shelf controller ⚠️ ereport if you see something, say something! fault-management Everything related to the Oxide's Fault Management architecture implementation labels Nov 12, 2025
pub(super) struct EreportFields {
pub(super) refdes: FixedStr<20>, // Component ID max length
pub(super) rail: FixedStr<8>, // "V54_PSUx"
pub(super) slot: u8,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could this be a PsuSlot instead? That would save some round-tripping through u8 / usize.

Copy link
Member Author

Choose a reason for hiding this comment

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

Currently microcbor doesn't have a way to tell it to PsuSlot to serialize as an integer. I should add that, but was going to separately.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, sounds reasonable!

@hawkw hawkw enabled auto-merge (squash) November 14, 2025 19:48
@hawkw hawkw merged commit 0739044 into master Nov 14, 2025
165 checks passed
@hawkw hawkw deleted the eliza/psc-microcbor branch November 14, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⚠️ ereport if you see something, say something! fault-management Everything related to the Oxide's Fault Management architecture implementation psc Related to the power shelf controller

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants