-
Notifications
You must be signed in to change notification settings - Fork 10
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
[ot] Define (unused) OTP scrambling properties for EG #122
[ot] Define (unused) OTP scrambling properties for EG #122
Conversation
Have you tried with the latest |
Would it be better to define and not use yet those properties in ot_otp_eg rather than adding a special case in the script (I may have miss something though)? |
Yes, here's the generated file from the latest $ scripts/opentitan/cfggen.py ~/projects/opentitan -T earlgrey -o cfg.ini [ot_device "ot-otp-eg"]
digest_const = "e95f517cb98955b4d5a89aa9109294a"
digest_iv = "bead91d5fa4e0915"
sram_const = "4a22d4b78fe0266fbee3958332f2939b"
sram_iv = "f98c48b1f9377284"
[ot_device "ot-lc_ctrl"]
lc_state_first = "ee75b407d2314d2ef84185ac8c990f536071632c086d4c924070be92d2948d6228b2711e9b2d8c4d"
lc_state_last = "ee75fe0ffe7b6f3ffc5f9ffd9ff96fdb7f736f6c9e6fdcd35277fef2d3bdcd6ffbb2f59fdf3fbedd"
lc_trscnt_first = "dfb6c45a241f85ce9f42229e8627462fdb02c6701242f14b41891180045c09c26c52744267c04aa055921b9461bb07da"
lc_trscnt_last = "dfb6f4fabf1fefcebf5ba2ffc677c6afdbabcefeb672f36b4fbdb3988dfe1be67e7e77ca77c76af7ddde3b9e7fbfe7de"
ownership_first = "3c61398d626885931da660ed2ab18a0f"
ownership_last = "bc757dbdeaf9b7d35de7e9efabfbbecf"
raw_unlock_token = "ea2b3f32cbe77554e43c8ea7ebf197c2"
socdbg_first = "440af80d"
socdbg_last = "6c9ef9cf" I also noticed that:
|
Yes, this is probably a better solution, I just went with a quicker hack. I can do this properly if you'd prefer. |
No sure to what it applies :) Is it ok now?
No, not intentional. I'll have a look at both these issues. |
Since we want to deliver it to the master branch, I think it would be better yes, thanks. |
I've fixed my original comment |
66bc941
to
b3d41a9
Compare
I've updated the PR, the properties are now declared but not used in EG and I've removed the default values for DJ. I haven't tested DJ, but I can see warnings in |
These are currently unused but we should declare them so that the table of constants generated by `cfggen.py` continues working. Signed-off-by: James Wainwright <[email protected]>
Providing defaults here could be error prone. Instead, require that these properties are set by the `cfggen.py` INI file. There is already a trace in `ot_otp_dj_configure_scrmbl_key` and `ot_otp_dj_configure_digest` when these properties are not set. Signed-off-by: James Wainwright <[email protected]>
b3d41a9
to
b883eec
Compare
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.
LGTM
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.
LGTM, thanks @jwnrt.
nit pick: maybe update the PR title, as there is no more changes in |
Both are due to a regression I've unfortunately added with #117. Working in on a patch |
Earl Grey does not support OTP scrambling and does not have these parameters declared. QEMU complains when they are provided by the INI file generated by `cfggen.py.
This PR declares the properties but does not use them to silence this warning. It also removes the default values set in
ot_{darjeeling,earlgrey}
to avoid silent misconfigurations if these change.I did not notice that this was an issue before because I've been erroneously using
-T earlgrey
and notEarlGrey
so the table was calledot-otp-e
and wasn't being used.