Page MenuHomePhabricator
Feed All Stories

May 26 2021

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
nullr0ute added a comment to T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.

I'm using Fedora 34/35 with the distribution toolchain (gcc 11.1 GA)

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

Can you please provide the link to the gcc11 toolchain you use?
AFAIK latest public Arm release of the cross compiler toolchains is 10.2 (https://developer.arm.com/tools-and-software/open-source-software/developer-tools/gnu-toolchain/gnu-a/downloads)

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

May 4 2021

nullr0ute created T925: ATF v2.5-rc0 fails to build rk3399 support with gcc11.
May 4 2021, 9:08 PM · Trusted Firmware A
andvib created T924: Protected Storage Non-Secure Client Identification test cases failing.
May 4 2021, 2:54 PM · Trusted Firmware M

May 3 2021

ioannisg triaged T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU as High priority.

Setting this to High for now - but feel free to re-triage this was not appropriate.

May 3 2021, 8:21 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,

May 3 2021, 8:04 AM · Trusted Firmware M

Apr 30 2021

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

For the concern you mentioned, yes, we need to add extra steps in secure scheduler, I am still working on this part.

  1. When secure doing secure calls: a. if lazy fp is disabled, hardware will push/pop FP context automatically during exception entry/return. b. if lazy fp is enable, for isolation 1, secure scheduler will save and restore FP context, but not invalidate FP context; for isolation 2 and 3, secure scheduler will trigger lazy fp stacking, hardware will push FP context to thread' stack and invalidate them automatically.
  2. When non-secure doing secure calls, non-secure side will SG to secure world in tfm_nspm_thread_entry, then doing secure calls as same as above. FP context of non-secure can be restored when bxns lr to non-secure side.
Apr 30 2021, 3:57 AM · Trusted Firmware M

Apr 29 2021

gyuri-szing added a comment to T922: cmake: TF-M documentation build issue.

At a quick glance this seems to be an m2r bug: https://github.com/sphinx-doc/sphinx/issues/8705. m2r seems to be abandoned, switching to m2r2 might be a workaround, as that seems to have a fix merged.
For now the best might be to stick to the documented package versions. I am wondering if the requirements file should be more strict on Spninx version.

Apr 29 2021, 8:06 AM · Restricted Project
davidhuziji reassigned T923: PS relies on linking ITS library to get its definition from davidhuziji to Sherryzhang2.
Apr 29 2021, 7:12 AM
AlamyLiu triaged T923: PS relies on linking ITS library to get its definition as Normal priority.
Apr 29 2021, 7:10 AM
AndreyButokNXP added a comment to T922: cmake: TF-M documentation build issue.

Hi Minos,
Is this a compatibility issue and the TFM doc build system can be upgraded, or this a bug in the latest version of Sphinx?

Apr 29 2021, 5:47 AM · Restricted Project

Apr 28 2021

MartinaHanusovaNXP added a comment to T922: cmake: TF-M documentation build issue.

Hi Minos,

Apr 28 2021, 3:55 PM · Restricted Project
minosgalanakis added a comment to T922: cmake: TF-M documentation build issue.

Hi Martina.

Apr 28 2021, 1:26 PM · Restricted Project
MartinaHanusovaNXP triaged T922: cmake: TF-M documentation build issue as Low priority.
Apr 28 2021, 10:30 AM · Restricted Project
davidwang reassigned T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU from Anton-TF to federliangarm.
Apr 28 2021, 2:23 AM · Trusted Firmware M

Apr 27 2021

ioannisg created T921: Supporting Non-Secure RTOS applications, integrated with Trusted Firmware-M, which want to use the FPU.
Apr 27 2021, 9:12 AM · Trusted Firmware M

Apr 21 2021

shebuk edited the content of Trusted Services (TS) Roadmap.
Apr 21 2021, 10:14 AM
KenLSoft added a comment to T911: Build warnings.

The first patch for this:
https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/9730

Apr 21 2021, 9:49 AM · Trusted Firmware M
davidhuziji added a comment to T911: Build warnings.

Currently GNU 10-2020-q4-major cannot support CMSE well (https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/docs/getting_started/tfm_sw_requirement.rst#n54).
So this GNU version won't be supported in TF-M.

Apr 21 2021, 9:46 AM · Trusted Firmware M

Apr 19 2021

shebuk edited the content of Trusted Services (TS) Roadmap.
Apr 19 2021, 2:41 PM
shebuk edited the content of Trusted Services.
Apr 19 2021, 2:41 PM · Trusted Services
shebuk created an object: Trusted Services (TS) Roadmap.
Apr 19 2021, 2:40 PM

Apr 13 2021

shebuk edited the content of Roadmap.
Apr 13 2021, 3:29 PM
shebuk edited the content of Roadmap.
Apr 13 2021, 2:44 PM
shebuk edited the content of Trusted Firmware M.
Apr 13 2021, 1:19 PM
shebuk edited the content of TF-M Videos.
Apr 13 2021, 12:21 PM · Trusted Firmware M
shebuk created an object: Linaro Virtual Connect 2021.
Apr 13 2021, 12:20 PM

Apr 12 2021

zoescott25 updated zoescott25.
Apr 12 2021, 10:17 AM
oyvindronningstad added a comment to T911: Build warnings.

I built with

Apr 12 2021, 7:21 AM · Trusted Firmware M
KenLSoft added a comment to T911: Build warnings.

I will run the GCC version later to check if there are more warnings. Will collect all the warnings and fix them in one shot later.

Apr 12 2021, 5:41 AM · Trusted Firmware M
KenLSoft added a comment to T911: Build warnings.

Would fix after the release. Mark as a long term goal.

Apr 12 2021, 5:10 AM · Trusted Firmware M

Apr 7 2021

adrianlshaw added a comment to Twin-cpu.

Hi Martin. I was referring to PSA FF-M, not FF-A. See the spec here, in Section 2.1. TF-A conforms to FF-A, which is a different spec.

Apr 7 2021, 1:37 PM
MartinSchoenstedt added a comment to Twin-cpu.

Thanks @adrianlshaw for your comment. A multi-core TF-M design is indeed a different thing than this twin-cpu design or any of the implemented designs for multiple CPUs in TF-M.
Do I understand you correctly, that such a multi-core TF-M design would not be possible to design according to PSA FF-A guidelines, because no mutex is defined in these?
How is this problem handled in TF-A as the same PSA guidelines apply there?

I somehow messed up the two files and got confused

Apr 7 2021, 1:28 PM
Karl added a comment to T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function.

Okay, I run into a fault when apply this patch on AN521, may need some investigations :
Running Test Suite Core non-secure interactive tests (TFM_CORE_TEST_2XXX)...

Executing 'TFM_CORE_TEST_2001'

Description: 'Interactive tests'

Segmentation fault

Apr 7 2021, 7:02 AM · Trusted Firmware M
lairdjm added a comment to T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function.

You will need to apply this patch in order for the interactive tests to function as without it the secure part will never build with that part enabled https://review.trustedfirmware.org/c/TF-M/tf-m-tests/+/9431
After applying that and building using:

cmake -DTFM_PLATFORM=lairdconnectivity/bl5340_dvk_cpuapp -GNinja -DTFM_TOOLCHAIN_FILE=../toolchain_GNUARM.cmake -DTEST_S=off -DTEST_NS=on -DCMAKE_BUILD_TYPE=debug -DTFM_INTERACTIVE_TEST=on -DTFM_PERIPH_ACCESS_TEST=ON -DTFM_IRQ_TEST=ON ..

And running it, the first test passes but the freezes at the same point as yours does, it does not continue with the next task

Apr 7 2021, 6:44 AM · Trusted Firmware M
Karl claimed T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function.

I took a look at this test case, the interactive test suit is disabled by default. Could you append some logs or command on your platform of TFM_CORE_TEST_2001
The test from my side on AN521 will stop after scenario 1:

Executing 'TFM_CORE_TEST_2001'

Description: 'Interactive tests'

Scenario 1 - SequentialTrying to acquire the TFM core from NS [seq_task]NS Lock: acquired [seq_task]Secure call to tfm_spm_core_test_sfn_veneer(&in_vec, 1, NULL, 0) failed, generic!NS Lock: releasing... [seq_task]Scenario 1 - test finished

Apr 7 2021, 6:41 AM · Trusted Firmware M

Apr 6 2021

adrianlshaw added a comment to Twin-cpu.

If the NSPE can use all the ARMv8-M processors, then it makes sense to use a model similar to ARMv8-A. In that model, the request for a secure service is usually handled by the local core - no cross core interaction.

Apr 6 2021, 3:34 PM
davidhuziji added a comment to Twin-cpu.

Imo, the implementation can be very platform specific. It is required that the two cores shall be physically isolated.
Besides, when NS requires secure services on the other core, the other core must runs in S world. It is a bit difficult to guarantee.

Apr 6 2021, 2:33 PM
MartinSchoenstedt added a comment to Twin-cpu.

The concept I am working on would allow for execution of two NS environments both with access to TF-M services. The goal is also to isolate the NS environments from one another to provide safety in case of failure / maliciousness of one NS env. But this safety feature is not necessary for the use case of two Cortex M-33 with NS + TF-M.

Apr 6 2021, 9:50 AM
Sherryzhang2 added a comment to T918: Issues with alignment and buffer locations.

@oyvind.ronningstad@nordicsemi.no This issue is on the Nordic platform. Can you take a look at it?

Apr 6 2021, 9:26 AM · Trusted Firmware M
lairdjm created T920: Cryptocell CC312 does not work on Nordic nRF5340.
Apr 6 2021, 8:56 AM
davidwang assigned T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function to karl-zh.
Apr 6 2021, 3:06 AM · Trusted Firmware M
davidwang added a comment to T911: Build warnings.

Assigned to Ken for the warning fix.

Apr 6 2021, 3:01 AM · Trusted Firmware M
davidwang reassigned T911: Build warnings from davidwang to KenLSoft.
Apr 6 2021, 3:01 AM · Trusted Firmware M
davidhuziji added a comment to Twin-cpu.

@MartinSchoenstedt so are you trying to run Non-secure OS + TF-M on both MPS2 AN521 cores?
Are you designing a SMP (symmetric multiprocessing) system for both NS and S? May I know the benefit to run NS + TF-M on both cores, compared to running a single Cortex-M33?

Apr 6 2021, 1:42 AM

Apr 5 2021

ta9ya closed T916: The Assert State for Checking PSCI_INVALID_DATA dose not work, dose it? as Resolved.

I solved this issue by myself.
The assert state works normally.

Apr 5 2021, 12:40 AM · TF-A Question

Apr 3 2021

elmadavis added a comment to T885: What is a Minimum Viable Product (MVP) and what is its use in app development?.
Apr 3 2021, 7:55 AM

Apr 2 2021

MartinSchoenstedt added a comment to Twin-cpu.

Yes this was indeed what I was thinking about. I am now trying to modify the secure enclave implementation to work with both CPUs in the SSE 200 on the MPS2 AN521 image. This would also also both cores to still be used by nonsecure OS / applications

Apr 2 2021, 8:07 PM
adrianlshaw added a comment to Twin-cpu.

Hi David. What about a scenario where non-secure applications want to use both cores? I think this is what Martin is asking about. Dedicating one M33 to act as a secure enclave can be considered a waste of compute resource (it will be idle most of the time).

Apr 2 2021, 5:32 PM
KenLSoft created T918: Issues with alignment and buffer locations.
Apr 2 2021, 12:39 AM · Trusted Firmware M

Apr 1 2021

gyuri-szing created T917: cmake: change install rules to use GNUInstallDirs..
Apr 1 2021, 12:24 PM · Trusted Services
ta9ya created T916: The Assert State for Checking PSCI_INVALID_DATA dose not work, dose it?.
Apr 1 2021, 7:50 AM · TF-A Question
davidhuziji updated subscribers of T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function.
Apr 1 2021, 2:48 AM · Trusted Firmware M
davidhuziji added a project to T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function: Trusted Firmware M.
Apr 1 2021, 2:47 AM · Trusted Firmware M

Mar 31 2021

gyuri-szing renamed T893: User and system includes are not consistent. from User ar system includes are not consistent. to User and system includes are not consistent..
Mar 31 2021, 3:05 PM · Trusted Services
imre-kis-arm added a project to T915: Implement FF-A Direct Message Routing Extension: Trusted Services.
Mar 31 2021, 2:47 PM · Trusted Services
imre-kis-arm created T915: Implement FF-A Direct Message Routing Extension.
Mar 31 2021, 2:46 PM · Trusted Services
gyuri-szing created an object: Design.
Mar 31 2021, 12:18 PM · Trusted Services