| 2c6f8f19 | 23-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add TEE_MATTR_SHAREABLE
Adds TEE_MATTR_SHAREABLE to tag mappings that may be shared by other TAs.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <je
core: add TEE_MATTR_SHAREABLE
Adds TEE_MATTR_SHAREABLE to tag mappings that may be shared by other TAs.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e990d7a6 | 23-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add vm_map_pad()
Adds vm_map_pad() which allows specifying how much free memory should be available before and after the map.
This allows mapping the first part of for instance an ELF file wh
core: add vm_map_pad()
Adds vm_map_pad() which allows specifying how much free memory should be available before and after the map.
This allows mapping the first part of for instance an ELF file while knowing that the next part which has to be of a certain offset from the first part also will succeed.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 79b56cf5 | 23-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add vm_unmap()
Adds vm_unmap() to simplify removing mappings previously added with vm_map().
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wi
core: add vm_unmap()
Adds vm_unmap() to simplify removing mappings previously added with vm_map().
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| bae0f170 | 23-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: file: refactor interface to be thread safe
Adds file_lock() and file_unlock() to change the lock state of a file.
file_new() is removed, the only way to create a file is with file_get_by_tag(
core: file: refactor interface to be thread safe
Adds file_lock() and file_unlock() to change the lock state of a file.
file_new() is removed, the only way to create a file is with file_get_by_tag() which will return an empty newly allocated file if none can be found.
file_add_slice() is added to add slices to a file, one by one.
With this can multiple threads try to load a TA at once, the first one taking the lock will add all the slices to the file.
The code in user_ta.c and elf_load.c using the <file.h> interface can be optimized to allow more operations in parallel.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ccbc05e1 | 03-Jun-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: lockdep: support lock destroy
With lockdep enabled (CFG_LOCKDEP=y), additional cleanup is needed when a mutex is destroyed. This patch adds mutex_destroy_check() which is called when a mutex i
core: lockdep: support lock destroy
With lockdep enabled (CFG_LOCKDEP=y), additional cleanup is needed when a mutex is destroyed. This patch adds mutex_destroy_check() which is called when a mutex is destroyed with mutex_destroy(). From mutex_destroy_check() the corresponding lockdep node and all edges referring to it are removed.
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6b71c85c | 29-May-2019 |
Joakim Bech <joakim.bech@linaro.org> |
HUK: Add enum for TA unique key derivation
Add an additional enum that will be used when deriving device and TA unique keys.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wi
HUK: Add enum for TA unique key derivation
Add an additional enum that will be used when deriving device and TA unique keys.
Signed-off-by: Joakim Bech <joakim.bech@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| bdeb310a | 10-Jun-2019 |
Sumit Garg <sumit.garg@linaro.org> |
core: enable ftrace for TAs built using shared libraries
To enable ftrace for TAs built with shared libraries, we need to dump the TA state (include regions dump along with mapping to <uuid>.elf) in
core: enable ftrace for TAs built using shared libraries
To enable ftrace for TAs built with shared libraries, we need to dump the TA state (include regions dump along with mapping to <uuid>.elf) in corresponding ftrace buffer for symbolize.py script to map symbols to particular shared libraries.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Joakim Bech <joakim.bech@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey960)
show more ...
|
| d35a00c7 | 16-May-2019 |
Sumit Garg <sumit.garg@linaro.org> |
core: prepare support for TA function tracing
To support TA function tracing OP-TEE core role being: - To initialize and register ftrace buffer per TA session. - To dump TA ftrace buffer to normal w
core: prepare support for TA function tracing
To support TA function tracing OP-TEE core role being: - To initialize and register ftrace buffer per TA session. - To dump TA ftrace buffer to normal world via RPC call in case TA session closes or in case of TA abort.
Signed-off-by: Sumit Garg <sumit.garg@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Tested-by: Jerome Forissier <jerome.forissier@linaro.org> (HiKey960)
show more ...
|
| 2a7088cc | 27-May-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: correct _fdt_get_status() description
Correct _fdt_get_status() function description since it returns a positive or null value on success and -1 on error.
Signed-off-by: Etienne Carriere <eti
core: correct _fdt_get_status() description
Correct _fdt_get_status() function description since it returns a positive or null value on success and -1 on error.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Joakim Bech <joakim.bech@linaro.org>
show more ...
|
| 286c31d4 | 29-Apr-2019 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: move embedded DTB out of init sections
This change makes generic boot to discover non-secure memory and console configuration from the external DTB only, no more from the embedded DTB as prior
core: move embedded DTB out of init sections
This change makes generic boot to discover non-secure memory and console configuration from the external DTB only, no more from the embedded DTB as prior this change. When generic boot attempts to access embedded DTB, the embedded DTB gets located in init read-only data section become unnecessary too big. With this change, embedded DTB now lies in the standard pageable read-only data section, relaxing memory footprint constraint.
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| eb5d5313 | 27-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
drivers/stpmic1: unpaged low power sequence
STPMIC1 is used by the secure world to driver the system low power sequences. Since these sequences are executed in unpaged context, the driver gets the c
drivers/stpmic1: unpaged low power sequence
STPMIC1 is used by the secure world to driver the system low power sequences. Since these sequences are executed in unpaged context, the driver gets the configuration from the DTB during the initialization and provides optimized functions to load target configuration at runtime.
This change makes STPMIC1 driver to call the memory footprint optimized function stm32_i2c_read_write_membyte() for I2C transfer instead of generic stm32_i2c_mem_read()/stm32_i2c_mem_write(). This is more suitable to OP-TEE pager constraints on the platform.
This changes removes now unused STPMIC1_I2C_TIMEOUT_US.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c7cf2933 | 06-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
core: introduce STPMIC1 driver
STPMIC1 is a power management chip for the stm32mp1 platform. It is accessed through an I2C bus. STPMIC1 provides regulators and other features as interrupt sources an
core: introduce STPMIC1 driver
STPMIC1 is a power management chip for the stm32mp1 platform. It is accessed through an I2C bus. STPMIC1 provides regulators and other features as interrupt sources and watchdogs.
STPMIC1 configuration is expected from a secure device tree blob, that currently is the embedded DTB.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 1183a0aa | 23-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: update DTS files to Linux kernel 5.2-rc1
Synchronize stm32mp1 DTS files with those published in Linux kernel source tree at commit a188339ca5a3 ("Linux 5.2-rc1").
This change updates plat
stm32mp1: update DTS files to Linux kernel 5.2-rc1
Synchronize stm32mp1 DTS files with those published in Linux kernel source tree at commit a188339ca5a3 ("Linux 5.2-rc1").
This change updates platforms EV1 and ED1 and introduces DK1 and DK2 known as DiscoveryKit board. It also introduces stpmic1 bindings header file needed for platform DTS files compilation.
Among other changes, this commit introduces STPMIC1 and BSEC description nodes. STPMIC1 defines regulators. BSEC describes fuses and uses the status / secure-status to define fuse access scope in the scope of BSEC support.
This change strictly dumps Linux kernel DTS files into OP-TEE but regarding stm32mp157c.dtsi for which the OP-TEE DTS file adds node for the ETZPC device which is mandated by OP-TEE but not defined in non-secure Linux kernel scope.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b99a33dd | 23-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: provide struct user_ta_store_ops in public .h file
Moves struct user_ta_store_ops definition into the new <kernel/user_ta_store.h> file.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro
core: provide struct user_ta_store_ops in public .h file
Moves struct user_ta_store_ops definition into the new <kernel/user_ta_store.h> file.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 52ae1039 | 23-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: handle_db: add ptr_destructor argument
Adds ptr_destructor argument to handle_db_destroy() which is called for each registered pointer.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.
core: handle_db: add ptr_destructor argument
Adds ptr_destructor argument to handle_db_destroy() which is called for each registered pointer.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c6563194 | 17-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32_i2c: save DTB status
This change saves DTB status value found in the I2C node and introduces i2c_is_secure() to state the bus state.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com>
stm32_i2c: save DTB status
This change saves DTB status value found in the I2C node and introduces i2c_is_secure() to state the bus state.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 834ce4c6 | 03-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32_i2c: optimized I2C 1 byte memory transfer
Introduce stm32_i2c_read_write_membyte() to operate a single byte data transfer in memory mode. This function will be used by the power management seq
stm32_i2c: optimized I2C 1 byte memory transfer
Introduce stm32_i2c_read_write_membyte() to operate a single byte data transfer in memory mode. This function will be used by the power management sequence in order to relax pager resident memory footprint when I2C need to execute in an unpaged context.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| a3104caa | 06-May-2019 |
Etienne Carriere <etienne.carriere@st.com> |
stm32mp1: counting GPIOZ bank pins
Get the GPIOZ bank pin count from the device tree. The shared resources driver uses this information to validate GPIO pin numbers.
Signed-off-by: Etienne Carriere
stm32mp1: counting GPIOZ bank pins
Get the GPIOZ bank pin count from the device tree. The shared resources driver uses this information to validate GPIO pin numbers.
Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5d47b773 | 18-Dec-2018 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: pm: helper register_pm_core_service_cb()
Introduce inline helper function register_pm_core_service_cb() to simplifies registration of core service PM callbacks:
help: register_pm_core_servi
core: pm: helper register_pm_core_service_cb()
Introduce inline helper function register_pm_core_service_cb() to simplifies registration of core service PM callbacks:
help: register_pm_core_service_cb(my_callback, my_handle); instead of generic: register_pm_cb(&PM_CALLBACK_HANDLE_INITIALIZER( my_callback, my_handle, PM_CB_ORDER_CORE_SERVICE));
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 7485f3c7 | 15-May-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove unused tee_customer_part.h
Removes the unused <tee_customer_part.h>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> |
| 0b345c6c | 07-Feb-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add tee_tadb_get_tag()
Adds the function tee_tadb_get_tag() which returns a tag that uniquely identifies a TA.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens
core: add tee_tadb_get_tag()
Adds the function tee_tadb_get_tag() which returns a tag that uniquely identifies a TA.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 9f31ef5a | 07-Feb-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add a file abstraction
Adds a struct file which is used to share fobjs with other memory mappings or contexts.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wik
core: add a file abstraction
Adds a struct file which is used to share fobjs with other memory mappings or contexts.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 6cc3087f | 07-Feb-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: user_ta: support mapping paged parameters
Supports mapping shared paged parameters for user TA.
vm_map() is modified to map objects with the TEE_MATTR_EPHEMERAL attribute which is an indicati
core: user_ta: support mapping paged parameters
Supports mapping shared paged parameters for user TA.
vm_map() is modified to map objects with the TEE_MATTR_EPHEMERAL attribute which is an indication that it's a parameter instead of TA code/data or permanent mapping.
tee_mmu_clean_param() is added to clean out all parameters added with tee_mmu_map_param().
In tee_mmu_map_param() instead of clearing out any old parameters there's a check to see that there's no old parameters hanging around.
Finally mobj_update_mapping() is removed since the pager now supports shared mappings.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| b83c0d5f | 07-Feb-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pager: record fobj in pmem instead of area
Records the fobj backing the physical page represented by a pmem instead of struct tee_pager_area which was used prior to this patch. Each fobj can
core: pager: record fobj in pmem instead of area
Records the fobj backing the physical page represented by a pmem instead of struct tee_pager_area which was used prior to this patch. Each fobj can be used by several unrelated areas in the end allowing real shared memory between multiple user context.
Reference counting for the page tables is increasing in activity since entries which are hidden/unhidden also decrease/increase the count. This is because there's no difference between unhiding a pmem or just mapping it again in another page table.
The memory sharing is not fully taken advantage of in this patch.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e595a5f0 | 07-Feb-2019 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: remove TEE_MATTR_HIDDEN_*
Removes the now unused TEE_MATTR_HIDDEN_BLOCK and TEE_MATTR_HIDDEN_DIRTY_BLOCK.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wikla
core: remove TEE_MATTR_HIDDEN_*
Removes the now unused TEE_MATTR_HIDDEN_BLOCK and TEE_MATTR_HIDDEN_DIRTY_BLOCK.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|