| fc5e0894 | 31-Dec-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: mm: move tee_mm.c to core/mm
Move tee_mm.c from core/arch/arm/mm to core/mm to reuse it with new architectures.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etien
core: mm: move tee_mm.c to core/mm
Move tee_mm.c from core/arch/arm/mm to core/mm to reuse it with new architectures.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 70eacc45 | 28-Dec-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: move boot.h to core/include/kernel
Move boot.h from core/arch/arm/include/kernel/ to core/include/kernel to avoid duplicating it in arch folder if we build for a new architecture.
Sig
core: kernel: move boot.h to core/include/kernel
Move boot.h from core/arch/arm/include/kernel/ to core/include/kernel to avoid duplicating it in arch folder if we build for a new architecture.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 85c8e02c | 31-Dec-2021 |
Marouene Boubakri <marouene.boubakri@nxp.com> |
core: kernel: tee_ta_manager.c: remove arm.h from includes
Header file arm.h is not used in tee_ta_manager.c, remove it from includes such that can reuse it with new architecture.
Signed-off-by: Ma
core: kernel: tee_ta_manager.c: remove arm.h from includes
Header file arm.h is not used in tee_ta_manager.c, remove it from includes such that can reuse it with new architecture.
Signed-off-by: Marouene Boubakri <marouene.boubakri@nxp.com> Reviewed-by: Etienne Carriere <etienne.carriere@linaro.org> Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| d8ba4bae | 08-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: split core/arch/arm/mm/core_mmu.c
Splits core/arch/arm/mm/core_mmu.c into one generic and one architecture specific file.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene
core: split core/arch/arm/mm/core_mmu.c
Splits core/arch/arm/mm/core_mmu.c into one generic and one architecture specific file.
Acked-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| ef192d2f | 09-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add core_mmu_table_write_barrier()
Adds the special barrier core_mmu_table_write_barrier() which is supposed to be used to make sure that writes to translation tables has become visible.
Revi
core: add core_mmu_table_write_barrier()
Adds the special barrier core_mmu_table_write_barrier() which is supposed to be used to make sure that writes to translation tables has become visible.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 01ef8af4 | 08-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: introduce TRUSTED_{S,D}RAM_*
Introduces TRUSTED_{S,D}RAM_* intended to replace TZ{S,D}RAM_* on the longer term. In this patch we're cleaning up core_mmu.c to make it less architecture dependen
core: introduce TRUSTED_{S,D}RAM_*
Introduces TRUSTED_{S,D}RAM_* intended to replace TZ{S,D}RAM_* on the longer term. In this patch we're cleaning up core_mmu.c to make it less architecture dependent.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| c02edd30 | 08-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: split core_mmu_private.h
Splits core_mmu_private.h into <mm/core_mmu_arch.h> and <mm/core_mmu.h>
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.bou
core: split core_mmu_private.h
Splits core_mmu_private.h into <mm/core_mmu_arch.h> and <mm/core_mmu.h>
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 8c260e80 | 08-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: split core/arch/arm/include/mm/core_mmu.h
Splits core/arch/arm/include/mm/core_mmu.h into one generic and one architecture specific file.
Reviewed-by: Jerome Forissier <jerome@forissier.org>
core: split core/arch/arm/include/mm/core_mmu.h
Splits core/arch/arm/include/mm/core_mmu.h into one generic and one architecture specific file.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 04b9df6c | 09-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: arm{32,64}.h: add "memory" constraint
Adds the missing memory constraint to the inline assembly instructions isb, dsb, dmb, sev, wfe and wfi.
Reviewed-by: Jerome Forissier <jerome@forissier.o
core: arm{32,64}.h: add "memory" constraint
Adds the missing memory constraint to the inline assembly instructions isb, dsb, dmb, sev, wfe and wfi.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| e26b8354 | 17-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: add support for SPMC at EL3
Adds support for SPMC at EL3 with CFG_CORE_EL3_SPMC. This is from OP-TEE point of view almost identical to CFG_CORE_SEL2_SPMC with SPMC at S-EL2.
The previously S-
core: add support for SPMC at EL3
Adds support for SPMC at EL3 with CFG_CORE_EL3_SPMC. This is from OP-TEE point of view almost identical to CFG_CORE_SEL2_SPMC with SPMC at S-EL2.
The previously S-EL2 specific functions mobj_ffa_sel2_spmc_new() and mobj_ffa_sel2_spmc_delete() are renamed to mobj_ffa_spmc_new() and mobj_ffa_spmc_delete() respectively since they are no longer reserved to used only with SPMC at S-EL2.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 5f01dc49 | 21-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ffa: stop using FFA_MEMORY_REGION_FLAG_TIME_SLICE
FFA_MEMORY_REGION_FLAG_TIME_SLICE is an optional feature and might not be available in the SPM. So drop this flag for better compatibility.
A
core: ffa: stop using FFA_MEMORY_REGION_FLAG_TIME_SLICE
FFA_MEMORY_REGION_FLAG_TIME_SLICE is an optional feature and might not be available in the SPM. So drop this flag for better compatibility.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 67fec989 | 21-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ffa: correct response to FFA_INTERRUPT
When a secure interrupts is delivered by the SPM to OP-TEE the correct response is FFA_MSG_WAIT, not FFA_SUCCESS_32 as was used previously. So fix this.
core: ffa: correct response to FFA_INTERRUPT
When a secure interrupts is delivered by the SPM to OP-TEE the correct response is FFA_MSG_WAIT, not FFA_SUCCESS_32 as was used previously. So fix this.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 2d35f6b6 | 21-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: ffa: fix spmc_rxtx_map()
Adds the missing calls to virt_to_phys() when registering the rxtx buffers with the SPMC.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklan
core: ffa: fix spmc_rxtx_map()
Adds the missing calls to virt_to_phys() when registering the rxtx buffers with the SPMC.
Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 16664fe8 | 21-Jan-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
plat-vexpress: enable uart IT with TF-A and GICv3
With GICv3 TF-A doesn't need to know which interrupts are destined to S-EL1 since this is programmed directly in the GICv3. On GICv2 that's not poss
plat-vexpress: enable uart IT with TF-A and GICv3
With GICv3 TF-A doesn't need to know which interrupts are destined to S-EL1 since this is programmed directly in the GICv3. On GICv2 that's not possible so fix the ifdefs for this.
Always keep uart interrupts disabled with CFG_VIRTUALIZATION=y since that requires more work to sort out.
Fixes: 41985789f3bd ("plat-vexpress: disable uart IT with TF-A and GICv3") Acked-by: Jerome Forissier <jerome@forissier.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 73d89627 | 14-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: enable watchdog support in configuration
Enable watchdog support and watchdog SMC handler. Set the watchdog SMC id to 0x2000500 (SiP SMC with func id 0x500).
Acked-by: Jens Wiklander <jen
plat-sam: enable watchdog support in configuration
Enable watchdog support and watchdog SMC handler. Set the watchdog SMC id to 0x2000500 (SiP SMC with func id 0x500).
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 5cbd8b3a | 14-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: atmel_wdt: add atmel watchdog timer driver
Add a driver to handle the atmel watchdog timer that is present on the sama5d2. This driver allows to use an interrupt handler that for the moment
drivers: atmel_wdt: add atmel watchdog timer driver
Add a driver to handle the atmel watchdog timer that is present on the sama5d2. This driver allows to use an interrupt handler that for the moment does nothing but display the watchdog error.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 03f63b66 | 20-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
dts: sama5d2: set the watchdog as secure
Enable the watchdog to be secure since dt_map_dev uses this attribute to apply the correct MMU policy and we want the interrupt to be redirected to the SAIC.
dts: sama5d2: set the watchdog as secure
Enable the watchdog to be secure since dt_map_dev uses this attribute to apply the correct MMU policy and we want the interrupt to be redirected to the SAIC.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 75786993 | 20-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
plat-sam: disable CFG_CORE_HAS_GENERIC_TIMER
sama5d2 platform does not have support for the ARM generic timer extension. Disable CFG_CORE_HAS_GENERIC_TIMER and implement plat_get_freq() using device
plat-sam: disable CFG_CORE_HAS_GENERIC_TIMER
sama5d2 platform does not have support for the ARM generic timer extension. Disable CFG_CORE_HAS_GENERIC_TIMER and implement plat_get_freq() using device-tree. Since clocks are probed early in the boot process, the udelay function can be used at driver probe time but not before clock probing of course.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 17616ec6 | 01-Feb-2022 |
Clément Léger <clement.leger@bootlin.com> |
dts: sama5d2: add clocks for cpu
This clock will be used to retrieve the CPU clock frequency in plat_get_freq().
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <c
dts: sama5d2: add clocks for cpu
This clock will be used to retrieve the CPU clock frequency in plat_get_freq().
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 34d244bf | 19-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
delay: allow udelay() function to work without generic timers
sama5d2 processor is missing the optional ARM generic timers extension. In order to allow using the udelay function, add a function base
delay: allow udelay() function to work without generic timers
sama5d2 processor is missing the optional ARM generic timers extension. In order to allow using the udelay function, add a function based on a wait loop. This support needs plat_get_freq() to be implemented by the platform code and CFG_CORE_HAS_GENERIC_TIMER should be set to 'n'.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| e19943dd | 31-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
core: sm: call wdt_sm_handler()
Call wdt_sm_handler() in order to handle watchdog SMCs.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com> |
| cb60bce4 | 14-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: wdt: add SMC handler for arm-smc-wdt Linux driver
Add SMC handler to handle SMC coming from Linux arm-smc-wdt driver. This function is meant to be called in sm_platform_handler() since CFG_
drivers: wdt: add SMC handler for arm-smc-wdt Linux driver
Add SMC handler to handle SMC coming from Linux arm-smc-wdt driver. This function is meant to be called in sm_platform_handler() since CFG_WDT_SM_HANDLER_ID is going to be defined by the platforms.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| 011a8f96 | 14-Jan-2022 |
Clément Léger <clement.leger@bootlin.com> |
drivers: wdt: add watchdog interface
Add necessary code to register a system watchdog. This watchdog will then used for generic watchdog usage using a new simple watchdog interface. This interface w
drivers: wdt: add watchdog interface
Add necessary code to register a system watchdog. This watchdog will then used for generic watchdog usage using a new simple watchdog interface. This interface will be used by SMC handler which will allow handling SMC coming from the arm-smc-wdt compatible driver present in Linux.
Acked-by: Jens Wiklander <jens.wiklander@linaro.org> Signed-off-by: Clément Léger <clement.leger@bootlin.com>
show more ...
|
| bd6c9770 | 01-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: split core/include/kernel/thread_private.h
Splits core/include/kernel/thread_private.h into one generic and one architecture specific file.
Reviewed-by: Jerome Forissier <jerome@forissier.org
core: split core/include/kernel/thread_private.h
Splits core/include/kernel/thread_private.h into one generic and one architecture specific file.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|
| 891569af | 01-Feb-2022 |
Jens Wiklander <jens.wiklander@linaro.org> |
core: move thread_defs.h into thread.h
Moves the defines in core/arch/arm/include/kernel/thread_defs.h into core/include/kernel/thread.h.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-
core: move thread_defs.h into thread.h
Moves the defines in core/arch/arm/include/kernel/thread_defs.h into core/include/kernel/thread.h.
Reviewed-by: Jerome Forissier <jerome@forissier.org> Acked-by: Marouene Boubakri <marouene.boubakri@nxp.com> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
show more ...
|