rse_measured_boot_flow.puml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. @startuml
  2. skinparam ParticipantPadding 10
  3. skinparam BoxPadding 10
  4. box RSE
  5. participant RSE_BL1_1
  6. participant RSE_BL1_2
  7. participant RSE_BL2
  8. participant RSE_S
  9. endbox
  10. box SCP
  11. participant SCP_BL1
  12. endbox
  13. box AP
  14. participant AP_BL1
  15. participant AP_BL2
  16. participant AP_BL31
  17. endbox
  18. == RSE Boot phase ==
  19. -> RSE_BL1_1: Reset
  20. Rnote over RSE_BL1_1: ROM code, XIP
  21. Rnote over RSE_BL1_2: OTP code, XIP
  22. Rnote over RSE_BL2, AP_BL31: Stored in flash, loaded and executed in RAM
  23. activate RSE_BL1_1 #Green
  24. RSE_BL1_1 -->> RSE_BL1_2: Validate, measure
  25. Rnote over RSE_BL1_1: BL1_2 measurement\n\ saved to a shared buffer
  26. RSE_BL1_1 -> RSE_BL1_2: Pass execution
  27. deactivate RSE_BL1_1
  28. activate RSE_BL1_2 #Green
  29. RSE_BL1_2 -->> RSE_BL2: Validate, measure, load
  30. Rnote over RSE_BL1_2: RSE_BL2 measurement\n\ saved to a shared buffer
  31. RSE_BL1_2 -> RSE_BL2: Pass execution
  32. deactivate RSE_BL1_2
  33. activate RSE_BL2 #Green
  34. RSE_BL2 -->> RSE_S: Validate, measure, load
  35. RSE_BL2 -->> SCP_BL1: Validate, measure, load
  36. Rnote over RSE_BL2: RSE_S and SCP_BL1\n\ measurements saved\n\ to a shared buffer
  37. RSE_BL2 -> SCP_BL1: Release from reset
  38. activate SCP_BL1 #Green
  39. Rnote over RSE_BL2, SCP_BL1: MHU init between RSE and SCP
  40. Rnote over SCP_BL1: Configure memory
  41. Rnote over RSE_BL2: Waits for SCP
  42. SCP_BL1 --> RSE_BL2: Done
  43. RSE_BL2 -->> AP_BL1: Validate, measure, load
  44. Rnote over RSE_BL2: AP_BL1 measurement\n\ saved to a shared buffer
  45. RSE_BL2 -> AP_BL1: Release from reset
  46. activate AP_BL1 #Green
  47. RSE_BL2 -> RSE_S: Pass execution
  48. deactivate RSE_BL2
  49. activate RSE_S #Green
  50. Rnote over RSE_S: Measurements read from\n\ shared buffer and saved by\n\
  51. Measured Boot service to\n\ measurement slots.
  52. == RSE Runtime / AP Boot phase ==
  53. Rnote over RSE_S, AP_BL1: MHU init between RSE and AP
  54. Rnote over AP_BL1: Measure and load:\n\ FW_CONFIG\n\ TB_FW_CONFIG
  55. AP_BL1 -> RSE_S: Extend measurement
  56. Rnote over RSE_S: Measured Boot:\n\ store measurement
  57. AP_BL1 -->> AP_BL2: Validate, measure,load
  58. AP_BL1 -> RSE_S: Extend measurement
  59. Rnote over RSE_S: Measured Boot:\n\ store measurement
  60. AP_BL1 -> AP_BL2: Pass execution
  61. deactivate AP_BL1
  62. activate AP_BL2 #Green
  63. Rnote over AP_BL2: Measure and load:\n\ HW_CONFIG
  64. AP_BL2 -> RSE_S: Extend measurement
  65. Rnote over RSE_S: Measured Boot:\n\ store measurement
  66. AP_BL2 -->> AP_BL31: Validate, measure,load
  67. Rnote over AP_BL2: Measure and load:\n\ BL31
  68. AP_BL2 -> RSE_S: Extend measurement
  69. Rnote over RSE_S: Measured Boot:\n\ store measurement
  70. Rnote over AP_BL2: Measure and load:\n\ RMM
  71. AP_BL2 -> RSE_S: Extend measurement
  72. Rnote over RSE_S: Measured Boot:\n\ store measurement
  73. AP_BL2 -> AP_BL31: Pass execution
  74. deactivate AP_BL2
  75. activate AP_BL31 #Green
  76. == RSE / AP Runtime ==
  77. @enduml