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

Fill in Genoa tokens #120

Merged
merged 14 commits into from
Feb 19, 2024
Merged

Fill in Genoa tokens #120

merged 14 commits into from
Feb 19, 2024

Conversation

luqmana
Copy link
Contributor

@luqmana luqmana commented Jan 31, 2024

A rough pass at adding the APCB tokens found in Genoa

@luqmana luqmana requested a review from daym January 31, 2024 22:54
Copy link
Collaborator

@daym daym left a comment

Choose a reason for hiding this comment

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

Only small nits.


// Fch

#[cfg_attr(feature = "serde-hex", serde(serialize_with = "SerHex::<StrictPfx>::serialize", deserialize_with = "SerHex::<StrictPfx>::deserialize"))]
FchConsoleOutMode(default 0, id 0xddb7_59da) | pub get u8 : pub set u8,
FchConsoleOutMode(default 0, id 0xddb7_59da) | pub get FchConsoleOutMode : pub set FchConsoleOutMode,
Copy link
Collaborator

@daym daym Feb 12, 2024

Choose a reason for hiding this comment

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

Ok I'm all for that but what will happen to existing config files? Are they backward compatible? If not, let's make them backward compatible (that's why there's an extra serializers.rs in the first place--to be able to do that). Otherwise, we need a flag day.

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'm in favour of revving the version and having a flag day. Especially if we do end up making some API changes. Either way this PR is just into the issue-110 working branch. Once we're ready to land to main we can update pinned commit in helios and AHIB

// TODO: Maybe should be called `FchI2cSdaRxHold` but that's already a WordToken
FchIcSdaRxHold(default 0, id 0xa4ba_c3d5) | pub get u8: pub set u8,
// Same as `FchI2cSdaHoldOverrideMode` but that's already a WordToken
FchI2cSdaHoldOverrideMode2(default 0, id 0x545d_7662) | pub get FchI2cSdaHoldOverrideMode : pub set FchI2cSdaHoldOverrideMode,
Copy link
Collaborator

@daym daym Feb 12, 2024

Choose a reason for hiding this comment

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

If we wanted to we could totally remove (or complicate) the direct token interface that "takes all the tokens, and for each of them, generates an accessor at the top level with just the token name".

I don't think we have any consumers of that interface anyway.

Not sure what AMD's intention here is. Is it so everyone requires hungarian notation to make sense of the things? ;P

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 opened #121 to track what to do there and updated the TODO comments.

@daym daym merged commit 53df093 into issue-110 Feb 19, 2024
4 checks passed
@daym daym deleted the luqmana/issue-110 branch February 19, 2024 07:27
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