Commit Graph

7 Commits

Author SHA1 Message Date
Roberto Pereira 1939a7914f ql-tipc: sysdeps.h: separate memory allocation from getting attributes
Obtaining the memory attributes can be done indepentently of the
bootloader environment and is now done by the ipc layer.

Updated u-boot example to reflect this.

Change-Id: I8e649a1367ba02981419c43aac6e55b469dcf651
2018-11-12 09:18:35 +08:00
Roberto Pereira 8b91ad3b1e ql-tipc: sysdeps: Change memory allocation to be page based
Changed trusty_membuf_alloc and trusty_membuf_free to trusty_alloc_pages and
trusty_free_pages. The memory allocated by these functions is intended
to be shared with the secure world so it should be inherently page based.

Updated u-boot sysdeps and trusty_ipc_dev_create/shutdown to use these
new functions

Change-Id: Ica1aa5b0cb50eba6ce18914d048e731133d94c4f
2018-11-12 09:18:35 +08:00
Haoran.Wang 0c6af83fed MA-12698 Check NULL pointer in secure storage proxy
In some situation, like uuu, the current mmc device
won't return the correct value. Avoid the NULL
pointer in secure storage proxy which may cause
panic.

Change-Id: Ie24afc270fec0b0977dee71b7fc44fe94876e410
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-09-13 14:51:00 +08:00
Haoran.Wang 502522c089 [iot] Support ARM64 for Trusty OS
Align the callback to ARM64 environment for
Trusty OS.

TEST: AIY-3G & AIY-1G board's TIPC and AVB handler
      works.

Change-Id: I65806f56267a4a9278db04a462e351da181618cb
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-09-12 18:12:13 +08:00
Haoran.Wang 37bc75510a [iot] Refine ql-tipc Makefile to pass build
Refine ql-tipc Makefile to pass the u-boot
build which use uboot.mk.

Change-Id: I678eebdd8b5e5702a59b20b9580592dbaa78aa90
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
2018-08-20 21:25:42 +08:00
Jocelyn Bohr fe28fb6482 [iot] Update Trusty IPC code to latest
Update to commit bb39a2b12dce8b6c9df9012faf231648de795e6d

List of changes:

bb39a2b ql-tipc: Support ATAP operations from bootloader
62b8d61 ql-tipc: Move serialization code to keymaster_serializable
8283307 avoid dead loop if tipc is closed by peer
cf3f7f5 [ql-tipc] Refactor U-boot rpmb_storage_send
4b1d74d Make logging more readable

Test: build + manual TIPC tests

Change-Id: Ib2c0e7a4a8313b6e62c1fe4f58b923c0c2d3f695
2018-08-20 21:25:42 +08:00
Haoran.Wang 0ccdd527a7 MLK-18591-4 android: iot: Import ql-tipc lib for Trusty OS
The lib provided ql-tipc communication channel with
Trusty OS.
Also the AVB, Keymaster and SecureStorage service
tipc client implement in this lib.

Change-Id: I0ab1ec9ee1b6f272b960c2e944008283c2c9249a
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
(cherry picked from commit 8fb370dd80fbb293b58115d2e7fc4970813773c7)
2018-06-13 03:06:36 -07:00