Skip to content

Nvm ctrl sw#30390

Draft
gautschimi wants to merge 29 commits into
lowRISC:masterfrom
gautschimi:nvm-ctrl-sw
Draft

Nvm ctrl sw#30390
gautschimi wants to merge 29 commits into
lowRISC:masterfrom
gautschimi:nvm-ctrl-sw

Conversation

@gautschimi

Copy link
Copy Markdown
Contributor

No description provided.

@gautschimi gautschimi added the CI:Rerun Rerun failed CI jobs label Jun 12, 2026
@github-actions github-actions Bot removed the CI:Rerun Rerun failed CI jobs label Jun 12, 2026
This library serves as a wrapper to non volatile memory and hides all
flash dependencies.

Also includes:
- Fix info page register field names in dif_flash_ctrl.c
- Increase FPGA test timeout to 70min
- Move page_lockdown and owner info page list from flash_ctrl to nvm_ctrl

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
nvm_testutils wraps the most used flash function calls. By doing this,
the dependency to flash remains in the nvm_testutils library.

nvm_info_field replaces flash_info_fields, abstracting the info page
field definitions behind the nvm_testutils interface.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
@gautschimi gautschimi force-pushed the nvm-ctrl-sw branch 5 times, most recently from 84496c3 to 5507d99 Compare June 12, 2026 21:22
All references to flash have been moved to keymgr_testutils. This makes
many tests easier as they don't need to be aware of what kind of nvm is
used.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
@gautschimi gautschimi force-pushed the nvm-ctrl-sw branch 2 times, most recently from 54174b4 to 2ffbd18 Compare June 13, 2026 14:55
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Info pages are now configured with nvm_testutils_info_page_setup(), and
read/written with nvm_testutils_info_page_read/write().

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Update individualize, individualize_sw_cfg, personalize, and ast_program
to use nvm_testutils and nvm_info_field instead of flash_info_fields.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Update nvm_info_field dependency missed in the previous commit.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Update inject_scramble_seed and data_integrity_escalation_reset_test.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Remove flash_ctrl includes from files that don't use it directly.
These tests no longer need direct flash access after the nvm abstraction.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Migrate boot_data.c to use the new nvm library instead of flash_ctrl.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Alert_functest is now doing its checks with OTP alerts alone.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
Replaced by sram_device_info_nvm_wr_functest in the previous commit.

Signed-off-by: Michael Gautschi <mgautschi@lowrisc.org>
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.

1 participant