Page MenuHomePhabricator
Feed All Stories

Jun 25 2021

adeaarm triaged T933: PSA driver for hash capability as Normal priority.
Jun 25 2021, 11:01 AM · Restricted Project

Jun 24 2021

pgeorgi added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

Given that there's no activity to get the submission rule issues in 9990 resolved, I followed CJKay's and jwerner's instructions and made https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/10415, hopefully more ready for inclusion.

Jun 24 2021, 4:40 PM · Trusted Firmware A
balintdobszay renamed SP loading mechanisms in OP-TEE from SP loading mechanism to SP loading mechanisms in OP-TEE.
Jun 24 2021, 4:32 PM · Trusted Services
balintdobszay published a new version of SP loading mechanisms in OP-TEE.
Jun 24 2021, 3:59 PM · Trusted Services

Jun 23 2021

balintdobszay edited the content of SP loading mechanisms in OP-TEE.
Jun 23 2021, 1:05 PM · Trusted Services
balintdobszay changed the visibility for SP loading mechanisms in OP-TEE.
Jun 23 2021, 12:59 PM · Trusted Services
balintdobszay created an object: SP loading mechanisms in OP-TEE.
Jun 23 2021, 12:59 PM · Trusted Services

Jun 22 2021

Curacaoyang merged T931: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual into T932: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual.
Jun 22 2021, 9:03 AM · Trusted Firmware A
Curacaoyang merged task T931: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual into T932: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual.
Jun 22 2021, 9:03 AM · Trusted Firmware A
Curacaoyang updated the task description for T931: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual.
Jun 22 2021, 4:21 AM · Trusted Firmware A
Curacaoyang added a project to T932: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual: Trusted Firmware A.
Jun 22 2021, 4:21 AM · Trusted Firmware A
Curacaoyang created T932: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual.
Jun 22 2021, 4:19 AM · Trusted Firmware A
Curacaoyang created T931: the way to set pl011's UARTFBRD is differnt from the descrirtion in PL011 Technical Reference Manual.
Jun 22 2021, 4:15 AM · Trusted Firmware A

Jun 17 2021

spoonix renamed qwandor from qwandor-google to qwandor.
Jun 17 2021, 3:24 PM

Jun 15 2021

rossburton added a comment to T873: Compile fails for corstone500 with clang.

Still happens with TF-A 2.5.

Jun 15 2021, 11:22 AM
rossburton closed T927: Fails to build for corstone500 with clang as Invalid.

Duplicate of T873.

Jun 15 2021, 11:22 AM

Jun 14 2021

rossburton created T930: Cannot build hafnium in a sysroot.
Jun 14 2021, 1:22 PM

Jun 11 2021

KenLSoft changed the edit policy for Trusted Firmware M.
Jun 11 2021, 12:34 PM

Jun 10 2021

KenLSoft changed the edit policy for Trusted Firmware M.
Jun 10 2021, 2:42 PM

Jun 8 2021

federliangarm closed T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU as Resolved.
Jun 8 2021, 3:24 AM · Trusted Firmware M
davidwang claimed T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function.
Jun 8 2021, 3:07 AM · Trusted Firmware M

Jun 7 2021

KenLSoft edited the content of Trusted Firmware M.
Jun 7 2021, 2:27 AM
KenLSoft created an object: Development.
Jun 7 2021, 2:23 AM · Trusted Firmware M
KenLSoft deleted Design.
Jun 7 2021, 2:10 AM · Trusted Firmware M

Jun 4 2021

shebuk deleted Linaro Connect, Vancouver (YVR'18) Video Presentations.
Jun 4 2021, 9:54 AM
shebuk edited the content of Trusted Firmware M.
Jun 4 2021, 9:53 AM
shebuk edited the content of TF-M Videos.
Jun 4 2021, 9:44 AM · Trusted Firmware M
shebuk created an object: Linaro Connect Vancouver 2018.
Jun 4 2021, 9:43 AM
KenLSoft edited the content of Design.
Jun 4 2021, 8:54 AM · Trusted Firmware M
KenLSoft edited the content of Trusted Firmware M.
Jun 4 2021, 12:42 AM
KenLSoft deleted Entity Attestation Token (EAT) For Attestation.
Jun 4 2021, 12:41 AM
KenLSoft edited the content of Trusted Firmware M.
Jun 4 2021, 12:38 AM
KenLSoft deleted Help.
Jun 4 2021, 12:35 AM

Jun 3 2021

adeaarm added a comment to T929: Optimise SPM operations in Library mode.

Note that as part of this activity the following bug in the Qemu porting of the mps2-an521 board has been found and fixed with the following pull request:

Jun 3 2021, 6:32 PM · Trusted Firmware M
adeaarm added a comment to T929: Optimise SPM operations in Library mode.

Patches available here:

Jun 3 2021, 6:18 PM · Trusted Firmware M
adeaarm triaged T929: Optimise SPM operations in Library mode as Normal priority.
Jun 3 2021, 6:17 PM · Trusted Firmware M
AlexaJhon added a comment to T414: Build failed on AN524/musca_b1 platform when -DMBEDTLS_DEBUG=ON.
Jun 3 2021, 12:02 PM · Restricted Project
joannafarley-arm added a comment to T395: support platform for rockchip px30.

FYI I removed the previous SPAM comment.

Jun 3 2021, 11:39 AM · Trusted Firmware A
elmadavis added a comment to T395: support platform for rockchip px30.
Jun 3 2021, 10:57 AM · Trusted Firmware A
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

As you know, for secure and non-secure side are closely related in TF-M. In latest TF-M v1.3 release, FP support (in secure side either non-secure side) are not official announced, so the problem you reported is not a TF-M bug.

Jun 3 2021, 8:05 AM · Trusted Firmware M
matetothpal changed the edit policy for Non-Secure Interrupt Handling.
Jun 3 2021, 7:53 AM · Trusted Firmware M
federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Thank you for letting us know the problem when you are using TF-M, this is helpful for all stakeholder of TF-M.

Jun 3 2021, 7:40 AM · Trusted Firmware M

Jun 1 2021

ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Hi Feder,
Honestly, I've only faced this issue when doing some advance scheduling manipulations on the Non-Secure side (modifying LSPACT, FPCA, etc.), so not in mainline TF-M/RTOS use-cases. Please disregard it for now.

Jun 1 2021, 12:08 PM · Trusted Firmware M
federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

However, this is only a partial solution. That is because a Secure thread re-scheduling will clear the .FPCA flag, but leave the LSPACT set, meaning that a NS IRQ with FP instructions will trigger again an FP stacking. But this FP stacking will be done on the memory where FPCAR is pointing at, and FPCAR is only updated in exception entry, if .FPCA is set. As a result, it does not seem that you avoid a stack corruption.

Let me know if you've understood this argumentation, or you need more information.

Jun 1 2021, 1:35 AM · Trusted Firmware M

May 31 2021

ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Any updates here, Feder?

May 31 2021, 9:15 AM · Trusted Firmware M

May 27 2021

ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

However, this is only a partial solution. That is because a Secure thread re-scheduling will clear the .FPCA flag, but leave the LSPACT set, meaning that a NS IRQ with FP instructions will trigger again an FP stacking. But this FP stacking will be done on the memory where FPCAR is pointing at, and FPCAR is only updated in exception entry, if .FPCA is set. As a result, it does not seem that you avoid a stack corruption.

May 27 2021, 8:06 AM · Trusted Firmware M
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Hi Feder, correct; setting CPACR_S solves the problem of Secure No-Coprocessor Usage Fault.

May 27 2021, 7:36 AM · Trusted Firmware M
federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Please try to add code below just before setting NSACR in tfm_arch_config_extensions() and let me know the result. Thanks!

May 27 2021, 7:00 AM · Trusted Firmware M

May 26 2021

Anton-TF added a comment to TF-M Security Patch Release Process.

Following the discussion on the meeting I would update my comment:

May 26 2021, 7:48 PM
microbuilder added a comment to T928: Commit NXP SDK files directly to the repo.

https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/10127

May 26 2021, 5:26 PM
microbuilder triaged T928: Commit NXP SDK files directly to the repo as High priority.
May 26 2021, 4:36 PM
ioannisg assigned T926: log: UART drivers and libraries are compiled in when log level is set to "silence" to Anton-TF.

Anton, could you please, suggest an assignee for this one? Thanks!

May 26 2021, 1:20 PM
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Hi Feder,

May 26 2021, 10:42 AM · Trusted Firmware M
KenLSoft edited the content of Recyclebin.
May 26 2021, 8:36 AM · Trusted Firmware M
KenLSoft edited the content of Recyclebin.
May 26 2021, 8:36 AM · Trusted Firmware M
KenLSoft edited the content of Trusted Firmware M.
May 26 2021, 8:36 AM
KenLSoft edited the content of Recyclebin.
May 26 2021, 8:35 AM · Trusted Firmware M
KenLSoft edited the content of Trusted Firmware M.
May 26 2021, 8:35 AM
KenLSoft created an object: Recyclebin.
May 26 2021, 8:33 AM · Trusted Firmware M

May 25 2021

mcreatisoul added a comment to T860: TF Marketing Initiatives.
May 25 2021, 4:40 AM · Restricted Project

May 24 2021

adilahbisar added a comment to T398: Initial support for IAR Embedded Workbench for Arm tool chain.
May 24 2021, 9:48 AM · Trusted Firmware M

May 22 2021

melissachris added a comment to T414: Build failed on AN524/musca_b1 platform when -DMBEDTLS_DEBUG=ON.
May 22 2021, 5:11 AM · Restricted Project

May 21 2021

federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

I tried on my side with steps above, and I still cannot reproduce your issue.
Please confirm NSACR register is configured correctly, and check the FP related registers before the FP instruction causing crash.

May 21 2021, 8:22 AM · Trusted Firmware M

May 20 2021

DaveCocca edited the content of TF-M Security Patch Release Process.
May 20 2021, 6:56 PM
DaveCocca edited the content of TF-M Security Patch Release Process.
May 20 2021, 6:53 PM
DaveCocca edited the content of TF-M Security Patch Release Process.
May 20 2021, 6:52 PM
DaveCocca edited the content of TF-M Security Patch Release Process.
May 20 2021, 6:51 PM
DaveCocca edited the content of TF-M Security Patch Release Process.
May 20 2021, 6:49 PM
abhishek-pandit created an object: TF-M Security Patch Release Process.
May 20 2021, 5:52 PM
abhishek-pandit edited the content of Community Inclusive Language.
May 20 2021, 5:50 PM
abhishek-pandit edited the content of Community Code Of Conduct.
May 20 2021, 5:50 PM
abhishek-pandit edited the content of Community Guidelines.
May 20 2021, 5:50 PM
rossburton created T927: Fails to build for corstone500 with clang.
May 20 2021, 3:13 PM
sambattherford added a comment to T414: Build failed on AN524/musca_b1 platform when -DMBEDTLS_DEBUG=ON.
May 20 2021, 1:03 PM · Restricted Project
hakonfam triaged T926: log: UART drivers and libraries are compiled in when log level is set to "silence" as High priority.
May 20 2021, 10:27 AM

May 19 2021

Sherryzhang2 added a comment to T923: PS relies on linking ITS library to get its definition.

Hi Alamy,

May 19 2021, 9:12 AM
AlamyLiu added a comment to T923: PS relies on linking ITS library to get its definition.

Hi Sherry,

May 19 2021, 6:18 AM

May 18 2021

sonusood2022 added a comment to T414: Build failed on AN524/musca_b1 platform when -DMBEDTLS_DEBUG=ON.
May 18 2021, 6:19 PM · Restricted Project
sonusood2022 added a comment to T414: Build failed on AN524/musca_b1 platform when -DMBEDTLS_DEBUG=ON.
May 18 2021, 6:18 PM · Restricted Project
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

I tried this on my side on STM32L562e_dk board with TF-M repo: enable "-mfloat-abi=softfp" in NS side and use TF-M default "-mfloat-abi=soft" option, and changed FP registers in non-secure thread first, then do PSA call. When system is in secure thread mode, no crash found even FPCCR_S.LSPACT = 1.

May 18 2021, 8:50 AM · Trusted Firmware M
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Do you have FP instruction in secure thread? If there is no FP instruction, the processor will not stack FP registers even LSPACT flag is set.
I tried this on my side on STM32L562e_dk board with TF-M repo: enable "-mfloat-abi=softfp" in NS side and use TF-M default "-mfloat-abi=soft" option, and changed FP registers in non-secure thread first, then do PSA call. When system is in secure thread mode, no crash found even FPCCR_S.LSPACT = 1.

May 18 2021, 8:45 AM · Trusted Firmware M

May 17 2021

federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

TF-M currently support "-mfloat-abi=soft" as default, but doesn't support the setting in Zephyr "-mfloat-abi=softfp". Because they are totally different things.

But why? These ABIs are link-compatible, I do not see the problem. GCC allows these binaries to link successfully.

I mean TF-M itself current FP option is "-mfloat-abi=soft", not the "-mfloat-abi=softfp" which is used in Zephyr. It doesn't matter with setting for Zephyr.

May 17 2021, 10:33 AM · Trusted Firmware M

May 13 2021

ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

TF-M currently support "-mfloat-abi=soft" as default, but doesn't support the setting in Zephyr "-mfloat-abi=softfp". Because they are totally different things.

May 13 2021, 5:56 PM · Trusted Firmware M
nullr0ute added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

Thanks, I submitted the following based on CJKay's patch above:
https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/9990

May 13 2021, 11:15 AM · Trusted Firmware A
federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

This is the explanation for "FP_SOFTABI" in Zephyr.
"config FP_SOFTABI
bool "Floating point Soft ABI"
help

	  This option selects the Floating point ABI in which hardware floating
	  point instructions are generated but soft-float calling conventions."
May 13 2021, 9:28 AM · Trusted Firmware M
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Yes, it crashes even without Lazy Stacking. It is a bit more deterministic as is. It crashes in the first secure exception entry, after the transition to secure domain from non-secure.

May 13 2021, 8:26 AM · Trusted Firmware M
ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

But for Zephyr, are you using soft FP or hardware FP?

May 13 2021, 8:12 AM · Trusted Firmware M
federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

The first thing I want to confirm is "I compile zephyr and Tf-M with soft FP". As you know, TF-M is default with soft FP.

  1. But for Zephyr, are you using soft FP or hardware FP?
  2. Is it possible for you to share the compile options and linker options for the source file including the "Non-Secure interrupt" crashing?
  3. Is it possible to show the assembly code for the "Non-Secure interrupt"?
  4. Please have a try to disable lazy FP stacking, to see whether still crash.
May 13 2021, 1:35 AM · Trusted Firmware M

May 12 2021

ioannisg added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Hi Feder,

May 12 2021, 12:36 PM · Trusted Firmware M

May 11 2021

yuezhiran closed T868: TF-A Bug as Resolved.

The problem has been solved.

May 11 2021, 1:40 PM · TF-A Bug, Trusted Firmware A
federliangarm added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

If you didn't change TF-M while integrating into your project, PSA call(handler mode) cannot be interrupted by non-secure interrupt like you mentioned, the reason is non-secure exceptions are de-prioritized (AIRCR.PRIS = 1) in TF-M.
Non-secure interrupt can only be active when system in thread mode.

May 11 2021, 8:01 AM · Trusted Firmware M

May 7 2021

Sherryzhang2 added a comment to T923: PS relies on linking ITS library to get its definition.

Hi Alamy,

May 7 2021, 9:03 AM
KenLSoft closed T911: Build warnings as Resolved.
May 7 2021, 2:32 AM · Trusted Firmware M
KenLSoft added a comment to T911: Build warnings.

Merged.

May 7 2021, 2:32 AM · Trusted Firmware M

May 6 2021

davidwang added a comment to T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.

Hi @ioannisg,
FYI. Feder is on holiday and will back to office on 10th May.
Thanks.

May 6 2021, 6:05 AM · Trusted Firmware M

May 5 2021

jwerner added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

Yes, the __sramdata in the declaration is a mistake, the correct target section for that global needs to be .pmusram.data. This used to be in .sram.data once upon a time but then the suspend.c stuff got added and required it to be moved to PMUSRAM. I guess they forgot to update that part in the declaration and since the old GCC seemed to silently prefer the attribute in the definition, nobody noticed. Please apply CJKay's first patch to fix the warning.

May 5 2021, 5:52 PM · Trusted Firmware A
CJKay added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

I can only assume GCC <11 simply didn't have this warning, but it looks legitimate.

May 5 2021, 1:14 PM · Trusted Firmware A
odeprez added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

Ok thanks.

May 5 2021, 12:35 PM · Trusted Firmware A
nullr0ute added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

It's native aarch64, the command line I'm using is:
make HOSTCC="gcc $RPM_OPT_FLAGS" CROSS_COMPILE="" PLAT=rk3399 bl31

May 5 2021, 10:03 AM · Trusted Firmware A
odeprez added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

Is this building natively on arm64 host?

May 5 2021, 9:31 AM · Trusted Firmware A