Skip to content

Preinstall improve csme manufacturing mode check#525

Merged
chrisccoulson merged 1 commit intocanonical:masterfrom
chrisccoulson:preinstall-improve-csme-manufacturing-mode-check
Mar 10, 2026
Merged

Preinstall improve csme manufacturing mode check#525
chrisccoulson merged 1 commit intocanonical:masterfrom
chrisccoulson:preinstall-improve-csme-manufacturing-mode-check

Conversation

@chrisccoulson
Copy link
Collaborator

This refines the checks that run on Intel systems so that appropriate
error messages are returned if the system is in manufacturing mode. The
changes are based on checks in the coreboot repository, specifically
https://github.com/coreboot/coreboot/blob/eb5bdf06b92534b6f66f612297a4ccb69008b4ac/src/soc/intel/common/block/cse/cse_spec.c#L15

Fixes: FR-12761
Fixes: #515

@chrisccoulson chrisccoulson requested a review from pedronis March 9, 2026 20:39
This refines the checks that run on Intel systems so that appropriate
error messages are returned if the system is in manufacturing mode. The
changes are based on checks in the coreboot repository, specifically
https://github.com/coreboot/coreboot/blob/eb5bdf06b92534b6f66f612297a4ccb69008b4ac/src/soc/intel/common/block/cse/cse_spec.c#L15

Fixes: FR-12761
Fixes: canonical#515
@chrisccoulson chrisccoulson force-pushed the preinstall-improve-csme-manufacturing-mode-check branch from 9998096 to fc91a56 Compare March 9, 2026 22:46
Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

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

double checking question

}

const (
hfsts1Csme18SPIProtectionMode hfsts1Csme18 = 1 << 4
Copy link
Collaborator

Choose a reason for hiding this comment

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

double checking, this is the same bit as in 11 but different naming?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

It is. There's some confusion about the naming - fwupd has it as "manufacturing mode" for CSME11 and "SPI protection mode" for CSME18, coreboot calls it "manufacturing mode" everywhere and slimbootloader calls it "SPI protection mode" almost everywhere with the exception of 1 CPU family. I think the bit means the same thing in both cases though.

Copy link
Collaborator

@pedronis pedronis left a comment

Choose a reason for hiding this comment

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

+1

@chrisccoulson chrisccoulson merged commit 5798c18 into canonical:master Mar 10, 2026
2 checks passed
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.

Make sure we are interpreting bit 30 of HSTS6 correctly

2 participants