Skip to content

[fuse_ctrl,dv] Assorted cleanups to how FC tests look at magic registers#750

Merged
ekarabu merged 5 commits intomainfrom
lowrisc_fuse_ctrl_partition_regs
Sep 30, 2025
Merged

[fuse_ctrl,dv] Assorted cleanups to how FC tests look at magic registers#750
ekarabu merged 5 commits intomainfrom
lowrisc_fuse_ctrl_partition_regs

Conversation

@rswarbrick
Copy link
Contributor

@rswarbrick rswarbrick commented Sep 24, 2025

I made this changes while trying to tidy up #727. I'm not convinced that some of the changes in that PR are correct, but these changes should be safe to apply separately.

@rswarbrick rswarbrick requested a review from ekarabu September 24, 2025 13:30
@rswarbrick rswarbrick marked this pull request as ready for review September 24, 2025 13:30
@rswarbrick rswarbrick linked an issue Sep 24, 2025 that may be closed by this pull request
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Sep 24, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

@rswarbrick
Copy link
Contributor Author

rswarbrick commented Sep 24, 2025

Hmm, that's annoying: the promote pipeline just pushed a magic commit as the wrong user
image

This causes easyCLA to fail. Grr. I'll try to figure out where the MS machine is getting the bogus email address from, but I'm convinced this is good to go otherwise.

EDIT: Ahah! I just had to teach GitHub that my Microsoft account was associated with this user (and force-push to the head of the branch to get EasyCLA to re-do its check)

@rswarbrick rswarbrick force-pushed the lowrisc_fuse_ctrl_partition_regs branch from 4178619 to b10353a Compare September 24, 2025 15:13
andreaskurth
andreaskurth previously approved these changes Sep 30, 2025
Copy link
Contributor

@andreaskurth andreaskurth left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for fixing these tests, @rswarbrick

This avoids fuse_ctrl_mmap.h defining something that actually gets
instantiated (and defines a symbol). Without fixing that, if more than
one compilation unit includes the header then link will fail because
more than one object file defines "partitions" and various fuse index
arrays.
No functional change (but hopefully it makes things a bit clearer: I
found these ranges a bit hard to reason about).
The value in caliptra_ss_fuse_ctrl_manuf_prod_prov hadn't yet been
updated for the change in 275521b. This change should make it so
that test and also caliptra_ss_fuse_ctrl_init_fail get a magic number
from a single (documented) place.

Apply the same change to caliptra_ss_fuse_ctrl_test_unlocked0_prov.
This is a bit fiddly to do properly, because you end up needing to map
from a partition with a read lock to that partition's read lock
address (which depends on soc_mmap.h).

My solution is to have a template generate that map (which will
contain actual addresses that get pulled from soc_mmap.h at compile
time).
…' with updated timestamp and hash after successful run
Copy link
Contributor

@andreaskurth andreaskurth left a comment

Choose a reason for hiding this comment

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

Re-approving after promote pipeline has passed

@ekarabu ekarabu merged commit baf339f into main Sep 30, 2025
8 checks passed
@ekarabu ekarabu deleted the lowrisc_fuse_ctrl_partition_regs branch September 30, 2025 15:30
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.

[Val] FC Test uses local register definitions

3 participants