-
Notifications
You must be signed in to change notification settings - Fork 762
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
[top-level] Clarify uncalibrated IO/SYS/AON clock frequency test #18848
Comments
The purpose is to check the HW functionality until the clocks are calibrated or until we can switch to external clock |
Referring to https://docs.google.com/spreadsheets/d/18Aj0hV44XGYGRlqnSZo6pEcVuZy7n7qNnPRHmPlHrQ4/edit?pli=1#gid=178420566, I think the check we can move from raw to unlock0 is the subject of line 6 in the Tasks tab, and switching to external clock is the subject of line 21. In any case, the task in line 22 explicitly refers to clock frequency test, so I think we can conclude it is invalid. |
Clock frequencies cannot be measured if the clocks are not calibrated, because until ast_init is done (at which point the clocks should be calibrated) the clkmgr clock frequency measurement hardware is disabled. Regarding the Nuvoton tasks sheet mentioned above, I think we need to have a better description of the tasks, preferably as an issue? Regarding a test that moves from raw to unlock0 LC state when all four clocks (AON, IO, System (MAIN), USB) are un-calibrated, is this a missing test? Line 6 seems to address the volatile RAW -> TEST_UNLOCKED0 transition, and the test seems to have been merged in #18276. I think the tests to transition to external clock is covered by the various chip_sw_clkmgr_external_clk_src_for_sw_* tests. Regarding a test with uncalibrated clocks starting from prod life cycle and the ROM code runs until we see the clock are calibrated (indicated by AST init_done output), all tests go through this specific transition, so I don't see the need for additional tests. |
The description in line 22 of https://docs.google.com/spreadsheets/d/18Aj0hV44XGYGRlqnSZo6pEcVuZy7n7qNnPRHmPlHrQ4/edit?pli=1#gid=178420566 is incorrect. Once that is updated I will close this issue. Makes sense? |
This test has been replaced with an adapted RAW unlock test that is now called |
The test description can be found here: opentitan/hw/top_earlgrey/data/chip_testplan.hjson Lines 3510 to 3533 in 40ef2ca
I am closing this now, since I think this is addressed - but please reopen if something is still unclear. |
Description
This closed-source test needs some clarification:
What is the purpose of the test? We have an external clock, which should enable clock calibration, so it is not clear what is the use of running completely uncalibrated frequency measurements.
Are all clocks meant to be uncalibrated (including AON)? What is the pass/fail criterium?
The text was updated successfully, but these errors were encountered: