-
Notifications
You must be signed in to change notification settings - Fork 792
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
[Sival, rstmgr] Fix rstmgr_alert_info_test on ROM_EXT #22795
[Sival, rstmgr] Fix rstmgr_alert_info_test on ROM_EXT #22795
Conversation
d164d14
to
3ec76bf
Compare
14eeaba
to
426df7e
Compare
@@ -701,6 +701,12 @@ static void init_expected_cause(void) { | |||
.alert_info.alert_cause[kTopEarlgreyAlertIdI2c0FatalFault] = 1; | |||
kExpectedInfo[kRound3] | |||
.alert_info.alert_cause[kTopEarlgreyAlertIdSpiHost0FatalFault] = 1; | |||
|
|||
if (kBootStage == kBootStageOwner && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On Round 3 all the alerts are enabled, after the reset is caused by the alert handler escalation, a kTopEarlgreyAlertIdFlashCtrlFatalErr
happens during the boot, only with FGPA + ROM_EXT.
This doesn't happen on Silicon, probably because the Creator and Owner secrets are there, but I'm not sure why it happens on the FPGA.
@cfrantz Could you please check that this is not a bug with ROM_EXT?
426df7e
to
67d6a7c
Compare
CHECK_DIF_OK(dif_alert_handler_irq_set_enabled( | ||
&alert_handler, kDifAlertHandlerIrqClassb, kDifToggleEnabled)); | ||
} else { | ||
LOG_INFO("Skipping OTP test due to ROM_EXT"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Skipping OTP test due to ROM_EXT ePMP configuration
67d6a7c
to
3779600
Compare
Signed-off-by: Douglas Reis <[email protected]>
3779600
to
32d2c5c
Compare
The ROM_EXT locks up the OTP registers with the ePMP, any write attempt to them would generate an exception. Therefore we can't test OTP alerts when the test runs after the ROM_EXT. Signed-off-by: Douglas Reis <[email protected]>
The test generates a kTopEarlgreyAlertIdFlashCtrlFatalErr alert only on the FPGA and with ROM_EXT. It doesn't happens on Silicon probrably because it has the seeds. Signed-off-by: Douglas Reis <[email protected]>
Signed-off-by: Douglas Reis <[email protected]>
2123499
to
00a19c9
Compare
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin master
git worktree add -d .worktree/backport-22795-to-master origin/master
cd .worktree/backport-22795-to-master
git switch --create backport-22795-to-master
git cherry-pick -x 9836ff68262144b4289a03dfcd7962ed80367056 6e21981a7430f057070e788a5d9ebcb74c83bd09 7be7335ffbd1d5097c8c141718fce8c4a58dee20 00a19c96a6d233bb48dd423b29f61a0e0bb5bd7e |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin master
git worktree add -d .worktree/backport-22795-to-master origin/master
cd .worktree/backport-22795-to-master
git switch --create backport-22795-to-master
git cherry-pick -x 9836ff68262144b4289a03dfcd7962ed80367056 6e21981a7430f057070e788a5d9ebcb74c83bd09 7be7335ffbd1d5097c8c141718fce8c4a58dee20 00a19c96a6d233bb48dd423b29f61a0e0bb5bd7e |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin earlgrey_1.0.0
git worktree add -d .worktree/backport-22795-to-earlgrey_1.0.0 origin/earlgrey_1.0.0
cd .worktree/backport-22795-to-earlgrey_1.0.0
git switch --create backport-22795-to-earlgrey_1.0.0
git cherry-pick -x 9836ff68262144b4289a03dfcd7962ed80367056 6e21981a7430f057070e788a5d9ebcb74c83bd09 7be7335ffbd1d5097c8c141718fce8c4a58dee20 00a19c96a6d233bb48dd423b29f61a0e0bb5bd7e |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin master
git worktree add -d .worktree/backport-22795-to-master origin/master
cd .worktree/backport-22795-to-master
git switch --create backport-22795-to-master
git cherry-pick -x 9836ff68262144b4289a03dfcd7962ed80367056 6e21981a7430f057070e788a5d9ebcb74c83bd09 7be7335ffbd1d5097c8c141718fce8c4a58dee20 00a19c96a6d233bb48dd423b29f61a0e0bb5bd7e |
Backport failed for Please cherry-pick the changes locally and resolve any conflicts. git fetch origin earlgrey_1.0.0
git worktree add -d .worktree/backport-22795-to-earlgrey_1.0.0 origin/earlgrey_1.0.0
cd .worktree/backport-22795-to-earlgrey_1.0.0
git switch --create backport-22795-to-earlgrey_1.0.0
git cherry-pick -x 9836ff68262144b4289a03dfcd7962ed80367056 6e21981a7430f057070e788a5d9ebcb74c83bd09 7be7335ffbd1d5097c8c141718fce8c4a58dee20 00a19c96a6d233bb48dd423b29f61a0e0bb5bd7e |
Fixes #20589
The Root cause was that the ROM_EXT locks up the OTP registers with the ePMP, any attempt to write to them would generate an exception.
Therefore, we can't test the OTP alert when the test runs after the ROM_EXT.