-
Notifications
You must be signed in to change notification settings - Fork 3k
platform reset API rename #9997
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
Conversation
@alzix, thank you for your changes. |
@@ -63,9 +64,11 @@ psa_status_t mbed_psa_reboot_and_request_new_security_state(uint32_t new_state); | |||
|
|||
|
|||
/** \brief Resets the system | |||
* | |||
* | |||
* PSA targets do not allow NPS to access system power domain. |
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.
NPS ->NSPE
* | ||
* | ||
* PSA targets do not allow NPS to access system power domain. | ||
* This API requests system reset to be caried out by SPE once all critical secure tasks are finished. |
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.
carried
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.
please align with psa/errors.h
@orenc17, I agree that service should be revisited and adapted to use psa/errors.h. it was written before psa/errors.h was introduced. But as the errors are all internal (the API returns void or actually do not returns at all) it can be post 5.12 |
@orenc17 @mikisch81 please review latest changes. |
rebased on top #9910 |
A bit context for this PR: this PR renames an API added couple of days ago. It was not part of any release yet and is not expected to effect any external developer. |
This needs rebase now, dependency was merged. |
rebased and squashed |
fixed astyle |
starting CI |
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
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.
why mbed_system_reset
is not in platform, and accessible to all ? The name leads me to believe this is common API.
@alzix please rebase and edit TESTS/psa/attestation/main.cpp accordingly |
on ARMv8-M architecture system reset can only be performed from TZ. This API provides an entry point to TZ. We cannot move this API to platform as it is a PSA service and better reside with rest of PSA sources, for the sake of not adding further compilation tweaks |
Rebased and fixed attestation test. @NirSonnenschein, can we start CI? We need make sure it will be merged before 5.12 official? |
CI started on latest fixes |
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.
Line 57 - todo in lifecycle needs to be removed
I've checked lifecycle - 3 functions, 3 different prefixes
psa_...
mbed_psa...
mbed_...
does each one has special meaning ? why not all mbed_psa or just psa?
add noreturn attributes update lifecycle service to use psa/error.h fix doxygen
@0xc0170, solid points on the API names and doxygen API names - |
Restarting CI (earlier run will be aborted) |
Test run: FAILEDSummary: 2 of 13 test jobs failed Failed test jobs:
|
Test run: SUCCESSSummary: 13 of 13 test jobs passed |
Description
Renamed newly added
psa_system_reset()
API tombed_system_reset()
We should not use PSA prefix for APIs not defined in PSA specs.
Must be merged after #9910
Targeting RC2
Pull request type
Reviewers
@mikisch81 @orenc17 @mmahadevan108
Release Notes