aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2023-09-27Bump TEE driver versionBalint Dobszay
Update the TEE driver external component to refer to the new v2 branch. Also, remove the temporary TEE implemenation ID define from the Linux RPC caller since now we can get it from the driver's header file again. Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I1d9bf640932769e52822606fa3af01e192b16cd5
2023-09-27Update the RPC layerGyorgy Szing
This commit merges the 'tforg/topics/ts-rpc' into integration. The change overhauls the RPC layer implement the following changes: - allow RPC compatibility check be adding versioning to the RPC layer - allow multiple memory shares between FF-A endpoints. (This was a concerning limitation for NWd endpoints where multiple clients may operate). - add service discovery support. After this change all SPs use the same FF-A UUID. This means the FF-A UUID identifies the protocol and not the service as before. As a result, to locate a service further discovery is needed on top of FF-A discovery. This is implemented in the RPC layer for performance reasons. - update discovery implementation and add the new discovery step needed after service locator locates the SP. - change protocol encoding types to be represented as dedicated interfaces of an SP. This removes encoding type identifiers and replaces these with service UUIDs. - add RPC ABI documentation Change-Id: I7fbb28b17d44b04578595c8725674624297f01a0 Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
2023-09-27Document RPC layer and related componentstopics/ts-rpcImre Kis
Add documentation for the protocol layers of trusted services, the RPC layer and TS RPC layer in particular. The patch also includes the complete description of the TS RPC ABI and behavior. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I77031702b6a512d0b8edb0c826adeb2d762cecb3
2023-09-12Add tests for direct message error handlingImre Kis
Cover error handler branches of the direct message request and response handlers in the SPMC by sending various invalid messages from the tests SPs. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I0d0baacb49bf84bc34addbc10c2bca653da1e6bc
2023-09-08Remove ffarpc componentImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I1277dbd58d75a41f7dc955289144e0c9ac4b4466
2023-09-08Remove RPC demux componentImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I8e8541ae88750f5c46644829744da6850fbaa651
2023-09-08Remove discovery service componentImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I6309ec81dbe614fbf68a2df4dfa250c19183d033
2023-09-08Update sfs-demo to use new RPC layerImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I217a8c2b9875819f913a84b4a28808465f952727
2023-09-08Update ts-demo to use new RPC layerImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I8513f40c8437da397d7b2a7bae8ce6dec937d3d3
2023-09-08Update RPC initialization in ts-remote-testImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I9904ef58cbaf71365b80796fdd7e2fd0cfff6f92
2023-09-08Update RPC initialization in platform-inspectImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I9adf7f50c71f8d7fbcc04f9ade18344dda2c3315
2023-09-08FWU client and testsBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: Id7f20a878469e9a06cf14b37afbec8a06d8fca9d
2023-09-08Update SMM variable tests to use rpc_caller_sessionImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Id3a0986a0b15bfd40038e1eb04ad6c4a78b1701c
2023-09-08Update Attestation in psa-api-testBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I3cc85e63e7029c7185d40a0e51a1620f1be100bc
2023-09-08Update Attestation in ts-service-testBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: Ic9355e20cec6974b04ebd94d6e26bbc4ce618f48
2023-09-08Update Crypto in psa-api-testBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: Ie538f9a732dc4e4092207a6f88ebedc4bcf205c4
2023-09-08Update Crypto in ts-service-testBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: Icf120cb06c60b412accbd709bb22bffb3f613d12
2023-09-08Update RPC init for ITS and PS in psa-api-testBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I8ea37d05ac9a3b055c8186b6bac9742bfa0d6612
2023-09-08Update RPC init for ITS and PS in ts-service-testBalint Dobszay
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com> Change-Id: I041c35523d2e39dffd25ff05502a8d5b7c79ebd8
2023-09-06Update RPC layer initialization in SMM gateway SPImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I9a453e76d3424f3cf56864a4daf2c8b09f715024
2023-09-06Update RPC layer initialization in SE proxy SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I297fea525f6a8772d7bc5c8cd39a3711c243c843
2023-09-06Update RPC layer initialization in env test SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I27263372fb416b0f640b70e2f9404ce187e074d6
2023-09-06Update RPC layer initialization in PS SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I1c08c9c6fbfdee424752b437de9b0ba667b84592
2023-09-06Update RPC layer initialization in ITS SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I98da158882bcc0e1e10d97a170d769028ccc4329
2023-09-06Update RPC layer initialization in FWU SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I9a51b24db378358f6ed0bb94e7edba1994087401
2023-09-06Update RPC layer initialization in crypto SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I1700b0e8fc776f05fcde3b637fd2206cba5f6e69
2023-09-06Update RPC layer initialization in block storage SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I349024ece446824a772d413617b3b07937c47e02
2023-09-06Update RPC layer initialization in attestation SPImre Kis
Change ffa_call_ep to ts_rpc_endpoint_sp and update crypto service locator query. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Id7139107c7364af43f74ee806702ad9d99a68439
2023-09-06Change SMM variable client to use rpc_caller_sessionImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ib8e1e0f9f47d35e85e73e320a30a25176f5cc916
2023-09-06Change SMM variable provider to use rpc_service_interfaceImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ic38f75f1397c8f166abc517f370dd99a7fea1b87
2023-09-06Change test runner provider and client to use new RPC layerImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Id8f00875716b0cc3e8f7a6995ec1a4fc1376979e
2023-09-06Change FWU provider to use rpc_service_interfaceImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I8d3eb07f126a052b0eb27f28e00b731b6259b959
2023-09-06Change crypto clients to use rpc_caller_sessionImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I6c370e8dc14f2262a2502995f655888a80d69c7b
2023-09-06Change crypto providers to use rpc_service_interfaceImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Id99d8b095ee1221fdf4486dd109c222dfce51c94
2023-09-06Change block storage client to use rpc_caller_sessionImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ibf19ae43a95c9ecf67f2f0966209e3cf34afb4d0
2023-09-06Change block storage provider to use rpc_service_interfaceImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I17aaf6408dece9f391b19f4f8ee0a24407f2463d
2023-09-06Change attestation client to use rpc_caller_sessionImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I3291d9478ac981790e9248c29efc1cd9e91ee2d4
2023-09-06Change attestation provider to use rpc_service_interfaceImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ib0e9a86656f7fc16234d011487d39eefad13c063
2023-09-06Remove optee_trusted_storeImre Kis
The components is already dead code and with the RPC related changes it becomes unusable. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I8876884d46a81bbcf6f9bab0d8c18955e551fe1b
2023-09-06Change secure storage client to use rpc_caller_sessionImre Kis
Also align storage factories to find the endpoints using the rpc_caller_session's features. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ie716452a70655b5ab0b8c1e771f002b00fbb81c6
2023-09-06Change secure storage provider to use rpc_service_interfaceImre Kis
Modify secure storage service handlers to use the new RPC interface. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ic03914a5dda8a927d52b57f179779ce11d47afe5
2023-09-06Align standalone service locator implementation with RPC layer changesImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I1810d07f094d40a667ee3779156af80b7161ee44
2023-09-06Align service locator implementation for SPs with RPC layer changesImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I88097987434e94b7a47a2b77efb4c20b8f6a39ab
2023-09-05Align service locator implementations for Linux with RPC layer changesImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I7e8527c9217b95b4792f2dd24d9bccab2b81ee82
2023-09-04Fix mock store issuesImre Kis
Fixing multiple mock store issues in order to pass all PSA ITS API host tests. * Deny calls with 0 uid * Handle WRITE_ONCE flags * Handle data_offset argument in get calls Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I63b1812482bf9e98a0ca69fc5d14757346efafae
2023-09-04Fix initialization order and memory leak in fmpImre Kis
Initialize members in declaration order to prevent compiler warning in struct fmp. Also delete img_info member in fmp destructor to resolve memory leak. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: I43c9bf1afb7f01f4b79908aa6dfa611f074b35bd
2023-08-31LazyFetch: allow setting the cmake generatorGyorgy Szing
Allow configuring the CMake generator used for external components. By default use the generator the main project is using. For details see the documentation in tools/cmake/common/LazyFetch.cmake. Change-Id: Ie01ea1ae533cf7a40c1f09808de2ad2e83a09db3 Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
2023-08-31LazyFetch: add verbose build supportGyorgy Szing
Extend LazyFetch to allow building external components in verbose mode to help debugging issues. Both the configuration phase and the build pase can be made versbose with cmake or environemnt variables. For details see tools/cmake/common/LazyFetch.cmake. Change-Id: Ifa13904cf5692778cc1b1d56757e4c95539fc24a Signed-off-by: Gyorgy Szing <Gyorgy.Szing@arm.com>
2023-08-24Align service locator interface with RPC layer changesImre Kis
Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Ieb2e5ebdce689bcb5a9d3565b348c6a5f9d0353b
2023-08-24Align PSA IPC caller with the new RPC designImre Kis
Implement dummy rpc_caller_interface in PSA IPC caller and export an interface which matches the openamp functions. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Iaf30d1fe4607cc4e04c8859524eabe2d0f6bb31b