-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Firmware handoff #6308
Firmware handoff #6308
Conversation
Please rebase to resolve the conflicts. We also need to decide if firmware handoff will be used by OP-TEE or not. A good use case is enough motivation to include this. |
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.
Some generic coding style comments that could be addressed before you rebase.
Could you add a link the the Firmware Handoff Transfer List specification?
TL is too vague I think as acronym. If you want an acronym, maybe FHTL would be better (Firmware Handoff Transfer List, as its the name of the spec).
fca57fc
to
6fb3c95
Compare
Updated the patch set with:
|
Rebased and add description on the motivation, links of specification and reference. |
Fix in the commit [fixup] core: init dt when no DTB observed from TL I guess at current stage I would prefer keep it named as "Transfer List", since the specification is named as "Firmware Handoff specification", generally "handoff" is a common terms and can by different implementations - The current one is implemented via "Transfer List" - That is the reason I use "TL" for the acronym, similiarly "TE" for "Transfer Entry". |
All comments have been addressed. |
Please squash the fixups. |
5a08df2
to
06abaf6
Compare
Squash done. |
06abaf6
to
cb0a351
Compare
All comments have been addressed. |
The handling of boot arguments becomes even more complicated with this. I'm about to propose a PR to use common handling of boot arguments in C. |
Just took a quick look at the PR, seems that all arguments are saved instead of passing into individual boot functions. |
All comments have been addressed. |
All comments have been addressed. |
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.
I fine you squash the fixup commits.
Some minor late comments.
beb77e0
to
e7bbddd
Compare
All comments have been addressed. |
@raymo200915, actually no review tag were posted yet for the 3 commits. We only posted comments. |
Checkpatch report are all false positive, all about missspelled
|
9628980
to
aca63db
Compare
Done. Sorry, I misunderstand the purpose of |
63dad43
to
c8a3f89
Compare
Done. |
All comments have been addressed. |
For "core: add support for transfer list" please apply: For "core: add transfer list API" please apply: |
c8a3f89
to
10c59e5
Compare
Thanks @jenswi-linaro , tags added. |
|
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.
comment for commit "core: add transfer list API".
40b48a0
to
993ab14
Compare
Fixed the clang build error in multi-platform. |
Minor fixes applied: |
993ab14
to
bb7b8b4
Compare
Fixed another CI multi-platform build error. |
@raymo200915, it's hard to review again the whole changes after your latest updates since we don't really know which piece of code you updated. This is where appending fixup commits on top of an series of the patches we have reviewed (acked or not acked, not matter) is quite handy for the dear reviewers. @jforissier, could you enable CI tests for this P-R? (edited ;-)> |
Sorry for my last force-push... |
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.
Thanks @raymo200915.
Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
for the series.
The latest fixups look good. |
Adding a new area to map a transfer list if it is handed over from previous boot stage Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
Introduce Transfer List API into kernel to implement Firmware Handoff specification Link: https://github.com/FirmwareHandoff/firmware_handoff Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
Add supports for Transfer List on both aarch32/64. Fetch arguments from {x,r}{0-3} and check if a valid Transfer List exists, which compliant to the Firmware Handoff specification. The Transfer List will be mapped during early initialization and unmapped before exiting to next boot stage. DTB and pagable address will be parsed from the Transfer List if they exist as Transfer Entries. If Transfer List does not exist or is invalid, legacy argument handoff is backwards compatible. Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
Add CI multi-platform build with CFG_TRANSFER_LIST Signed-off-by: Raymond Mao <raymond.mao@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@foss.st.com>
b50bb94
to
274fc26
Compare
Squashed fixup commits and added Etienne's tag. |
Thanks @raymo200915 |
Add supports for Transfer List into core, which are compliant to the Firmware Handoff
specification v0.9 (https://github.com/FirmwareHandoff/firmware_handoff/releases/tag/v0.9).
The motivation for this patch set is to unify the way of arguments handoff between all boot stages (BL2/BL31/BL32/BL33).
In current practice, when the Transfer List is enabled between BL2 and BL33 (See the related patch sets for TF-A below for reference),
we need this patch to allow the DTB nodes appended by OP-TEE can be reflected into the Transfer List memory and passed to BL33.
Reference: