| 5489e94f | 11-Apr-2023 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ffa: add boot info structs and defines
Adds defines to interpret FF-A Boot Info header and descriptor using two new structs and accompanying defines.
Acked-by: Etienne Carriere <etienne.carri
core: ffa: add boot info structs and defines
Adds defines to interpret FF-A Boot Info header and descriptor using two new structs and accompanying defines.
Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 3003505d | 11-Apr-2023 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: generic_ram_layout.h: remove TA_RAM_*
Removes the TA_RAM_START and TA_RAM_SIZE defines since core_mmu.c can calculate the values based registered secure_only memory.
Reviewed-by: Etienne
core: arm: generic_ram_layout.h: remove TA_RAM_*
Removes the TA_RAM_START and TA_RAM_SIZE defines since core_mmu.c can calculate the values based registered secure_only memory.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 54e4b08c | 11-Apr-2023 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: virt: use core_mmu_get_ta_range()
In get_ta_ram_size() use core_mmu_get_ta_range() instead of the define TA_RAM_SIZE.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by
core: virt: use core_mmu_get_ta_range()
In get_ta_ram_size() use core_mmu_get_ta_range() instead of the define TA_RAM_SIZE.
Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 0cc8f3e4 | 11-May-2023 |
Alvin Chang <alvinga@andestech.com> |
core: riscv: kernel: Fix stack pointer initialization for each hart
The RISC-V privileged specification defines that at least one hart must have a hart ID of zero. Since at least one stack_tmp_strid
core: riscv: kernel: Fix stack pointer initialization for each hart
The RISC-V privileged specification defines that at least one hart must have a hart ID of zero. Since at least one stack_tmp_stride is required for calculating the initial SP value for each hart, the formula should be address of stack_tmp plus (hartid+1) multiplied by stack_tmp_stride.
This commit fixes the formula for initializing SP of each hart, otherwise the stack underflow happens to hart 0.
Fixes: 93e54a63925f ("riscv: kernel: entry.S: provide entry script") Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 23419643 | 10-Jan-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: notif: fix input comment typo
Fixes inline comment typo in OP-TEE standard SMCs description and CFG_CORE_ASYNC_NOTIF switch description.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org
core: notif: fix input comment typo
Fixes inline comment typo in OP-TEE standard SMCs description and CFG_CORE_ASYNC_NOTIF switch description.
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 921af96f | 10-May-2023 |
Alvin Chang <alvinga@andestech.com> |
core: riscv: Refactor macros for inline assembly of CSR operations
Current CSR macros with inline assembly will lead to compilation error, because they use pre-processor stringizing not value substi
core: riscv: Refactor macros for inline assembly of CSR operations
Current CSR macros with inline assembly will lead to compilation error, because they use pre-processor stringizing not value substitution. The definitions such as CSR_XSTATUS are not sustituted to CSR encoding in CSR macros and compiler generates: Error: unknown CSR `CSR_XSTATUS'.
This patch fixes it by making the given CSR to be an assembly input operand with constraint "i", which is used to indicate the operand is an immediate integer operand. Thus, the CSR encoding can be correctly compiled.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| f7f7b505 | 02-May-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
plat-vexpress: remove TPM2 MMIO driver
Disable TPM2 MMIO driver and remove its integration from platform vexpress. OP-TEE will instead rely on a remote REE TPM2 driver allowing REE OS to embed TPM2
plat-vexpress: remove TPM2 MMIO driver
Disable TPM2 MMIO driver and remove its integration from platform vexpress. OP-TEE will instead rely on a remote REE TPM2 driver allowing REE OS to embed TPM2 software stack and leverage TPM2 features.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 42135d98 | 05-May-2023 |
Alvin Chang <alvinga@andestech.com> |
core: riscv: mm: Add missing return for TLB helpers
These functions should contain tailing ret instruction to return to caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jerome F
core: riscv: mm: Add missing return for TLB helpers
These functions should contain tailing ret instruction to return to caller.
Signed-off-by: Alvin Chang <alvinga@andestech.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| d8cc16cf | 17-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: ls: remove CFG_WITH_SOFTWARE_PRNG default definition for LS platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG flag when the CAAM is disabled. CFG_WITH_SOFTWARE_PRNG is enabled by defau
core: ls: remove CFG_WITH_SOFTWARE_PRNG default definition for LS platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG flag when the CAAM is disabled. CFG_WITH_SOFTWARE_PRNG is enabled by default.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e8e3c6a9 | 13-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: remove CFG_WITH_SOFTWARE_PRNG default definition for i.MX platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG ?= y since it's already globally enabled.
Signed-off-by: Clement Faure
core: imx: remove CFG_WITH_SOFTWARE_PRNG default definition for i.MX platforms
Remove the enablement of CFG_WITH_SOFTWARE_PRNG ?= y since it's already globally enabled.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 83ee3b4d | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: remove drivers directory
Remove drivers directory from plat-imx/ since all drivers should go to core/drivers/. Move tzc380.c to plat-imx/
Signed-off-by: Clement Faure <clement.faure@nxp.
core: imx: remove drivers directory
Remove drivers directory from plat-imx/ since all drivers should go to core/drivers/. Move tzc380.c to plat-imx/
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 92b64e4f | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
drivers: imx_csu: move imx_csu driver source file
Move imx_csu driver from plat-imx/ to core/drivers/ Rename CFG_CSU to CFG_IMX_CSU compilation flag.
Signed-off-by: Clement Faure <clement.faure@nxp
drivers: imx_csu: move imx_csu driver source file
Move imx_csu driver from plat-imx/ to core/drivers/ Rename CFG_CSU to CFG_IMX_CSU compilation flag.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 40c3f16e | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
drivers: imx_scu: move imx_scu driver source file
Move imx_scu driver from plat-imx/ to core/drivers/ Rename CFG_SCU to CFG_IMX_SCU compilation flag.
Signed-off-by: Clement Faure <clement.faure@nxp
drivers: imx_scu: move imx_scu driver source file
Move imx_scu driver from plat-imx/ to core/drivers/ Rename CFG_SCU to CFG_IMX_SCU compilation flag.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| fab76a67 | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
driver: imx_caam: move imx_caam driver source file
Move imx_caam driver from plat-imx/ to core/drivers/
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.fo
driver: imx_caam: move imx_caam driver source file
Move imx_caam driver from plat-imx/ to core/drivers/
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| f727e838 | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: caam: remove imx_caam.h header file
Remove imx_caam header file and move its content to source file.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jero
core: imx: caam: remove imx_caam.h header file
Remove imx_caam header file and move its content to source file.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| c7f21af4 | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: remove unnecessary preprocessor directive
Remove error regarding CFG_WITH_PAGER and CFG_WITH_LPAE on imx6ul/ull.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome For
core: imx: remove unnecessary preprocessor directive
Remove error regarding CFG_WITH_PAGER and CFG_WITH_LPAE on imx6ul/ull.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 28638023 | 28-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: scu: move SCU configuration values to source file
Move SCU configuration values from header file to the SCU source file.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Je
core: imx: scu: move SCU configuration values to source file
Move SCU configuration values from header file to the SCU source file.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 249c9780 | 17-Apr-2023 |
Clement Faure <clement.faure@nxp.com> |
core: imx: remove imx_sip.h
Remove imx_sip.h header file. Move definitions to the source file.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@l
core: imx: remove imx_sip.h
Remove imx_sip.h header file. Move definitions to the source file.
Signed-off-by: Clement Faure <clement.faure@nxp.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| 1f8363e6 | 05-May-2023 |
Alvin Chang <alvinga@andestech.com> |
core: riscv: kernel: Fix compilation error with missing parameter
This patch adds "unsigned long tos_fw_config" as second parameter for RISC-V's boot_init_primary_late() to solve compilation error.
core: riscv: kernel: Fix compilation error with missing parameter
This patch adds "unsigned long tos_fw_config" as second parameter for RISC-V's boot_init_primary_late() to solve compilation error.
Fixes: 809fa817ae63 ("core: ffa: add TOS_FW_CONFIG handling") Signed-off-by: Alvin Chang <alvinga@andestech.com> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| acaba7aa | 19-Apr-2023 |
Balint Dobszay <balint.dobszay@arm.com> |
core: spmc: handle HW feature info in SP manifest
Provide information to the SP about available HW features by updating the relevant DT node in the SP manifest. Currently only the CRC32 feature is s
core: spmc: handle HW feature info in SP manifest
Provide information to the SP about available HW features by updating the relevant DT node in the SP manifest. Currently only the CRC32 feature is supported.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
show more ...
|
| d4351c1e | 17-Apr-2023 |
Balint Dobszay <balint.dobszay@arm.com> |
core: arm64: add CRC32 HW support discovery
Add helper function to check if the CRC32 instructions are implemented by the PE.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: J
core: arm64: add CRC32 HW support discovery
Add helper function to check if the CRC32 instructions are implemented by the PE.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
show more ...
|
| 9e3c57c8 | 28-Feb-2023 |
Etienne Carriere <etienne.carriere@linaro.org> |
core: dt_driver: move related content from dt.h to dt_driver.h
Moves so-called dt_driver related declarations and definitions from dt.h to dt_drivers.h. Incidentally adds an inline description to en
core: dt_driver: move related content from dt.h to dt_driver.h
Moves so-called dt_driver related declarations and definitions from dt.h to dt_drivers.h. Incidentally adds an inline description to enum dt_driver_type. This change clarifies when a source file shall include dt.h and/or dt_driver.h.
This change updates driver source files to include none, one or both of these header files where applicable.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| d690c838 | 11-Apr-2023 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: kern.ld.S: assert load address page aligned
Simplify things and assert that the start of text or load address is page aligned instead. This replaces the more relaxed check for 32-byte or
core: arm: kern.ld.S: assert load address page aligned
Simplify things and assert that the start of text or load address is page aligned instead. This replaces the more relaxed check for 32-byte or 128-byte alignment depending on ARM32 or ARM64. This also helps later when introducing physical relocation of the OP-TEE binary.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
show more ...
|
| b38ef9b1 | 11-Apr-2023 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm: boot_init_memtag(): use core_mmu_get_secure_memory()
Use core_mmu_get_secure_memory() to determine the range of memory to pass to memtag_set_tags().
Signed-off-by: Jens Wiklander <jens.w
core: arm: boot_init_memtag(): use core_mmu_get_secure_memory()
Use core_mmu_get_secure_memory() to determine the range of memory to pass to memtag_set_tags().
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|
| 439d2a89 | 11-Apr-2023 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: pass secure memory parameter to virt_init_memory()
Pass the physical secure memory range as a parameter from secure_only[]. This avoids using hard coded defines in virt_init_memory().
CFG_NS_
core: pass secure memory parameter to virt_init_memory()
Pass the physical secure memory range as a parameter from secure_only[]. This avoids using hard coded defines in virt_init_memory().
CFG_NS_VIRTUALIZATION=y depends on secure_only[] to have all memory as consecutive memory ranges, but that's unchanged behaviour from before since it was expected that the entire range from TEE_RAM_START to TA_RAM_START + TA_RAM_SIZE is usable memory.
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org>
show more ...
|