Page MenuHomePhabricator
Feed All Stories

Apr 7 2021

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
balintdobszay created T914: SPM: unmap FIP SP image after loading.
Mar 31 2021, 8:35 AM · Trusted Services
gyuri-szing created T913: CppUtest features are limited on arm-linux builds..
Mar 31 2021, 7:31 AM · Trusted Services

Mar 30 2021

nathan-menhorn created T912: OP-TEE OS 3.11.0 Hangs at opteed_enter_sp on Cold Boot.
Mar 30 2021, 4:11 PM · TF-A Bug, Trusted Firmware A
maulik-arm edited the content of Psa Arch Crypto Test Failure Analysis In Tf-m V1.3 Release.
Mar 30 2021, 10:43 AM
maulik-arm edited the content of Psa Arch Crypto Test Failure Analysis In Tf-m V1.3 Release.
Mar 30 2021, 9:54 AM
davidhuziji 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.

Mar 30 2021, 8:06 AM · Trusted Firmware M
davidhuziji added a project to T911: Build warnings: Trusted Firmware M.
Mar 30 2021, 8:03 AM · Trusted Firmware M
oyvindronningstad added a comment to T911: Build warnings.

Makes sense :)
Here is the GCC version output:

$arm-zephyr-eabi-gcc --version
arm-zephyr-eabi-gcc (crosstool-NG 1.24.0.212_d7da3a9) 10.2.0
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Mar 30 2021, 7:48 AM · Trusted Firmware M
Summer-ARM edited the content of Psa Arch Crypto Test Failure Analysis In Tf-m V1.3 Release.
Mar 30 2021, 6:51 AM
davidhuziji added a comment to T911: Build warnings.

It looks like your compiler is bit more stricter than mine :)
It won't take too much to effort to fix those warnings I guess.

Mar 30 2021, 5:31 AM · Trusted Firmware M
Summer-ARM edited the content of Psa Arch Crypto Test Failure Analysis In Tf-m V1.3 Release.
Mar 30 2021, 3:29 AM
davidhuziji added a comment to T911: Build warnings.

Can you share the Compiler information please?

Mar 30 2021, 3:27 AM · Trusted Firmware M
davidhuziji added a comment to T911: Build warnings.
Mar 30 2021, 3:22 AM · Trusted Firmware M
davidhuziji added a comment to Twin-cpu.

Hi Martin, this *dual-cpu* design is dedicated for the platforms which consist of a non-secure core and a secure core. The secure core is protected from the non-secure core by system physical isolation. PSoC 64 is an example port of this *dual-cpu* implementation.

Mar 30 2021, 3:09 AM

Mar 29 2021

oyvindronningstad created T911: Build warnings.
Mar 29 2021, 10:28 AM · Trusted Firmware M
MartinSchoenstedt added a comment to Twin-cpu.

Don't know where to ask this, current TF-M design allows only for one secure cpu and one non-secure?
Why not have SPE and NSPE on both cores, as would be possible on mps2/an521 e.g. (dual M-33 with TrustZone). Could TF-M be modified to allow for such a behavior in the current version?
Thankful for any answers!

Mar 29 2021, 10:23 AM
lairdjm triaged T910: Interactive tests fail to return to main thread after test has ran and sit in osRtxIdleThread() function as Normal priority.
Mar 29 2021, 8:32 AM · Trusted Firmware M
davidhuziji closed T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON as Resolved.
Mar 29 2021, 8:16 AM
davidhuziji added a comment to T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON.

Improved by https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/9451

Mar 29 2021, 8:16 AM
gyuri-szing edited the content of Trusted Services.
Mar 29 2021, 8:12 AM · Trusted Services
gyuri-szing created an object: Public Videos And Presentations.
Mar 29 2021, 8:10 AM · Trusted Services
davidhuziji added a comment to T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON.

Great suggestion. Will add one in build configuration check soon.

Mar 29 2021, 6:58 AM
oyvindronningstad added a comment to T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON.

I see. It would be good to have an error message in that case.

Mar 29 2021, 6:48 AM
davidhuziji added a comment to T907: AUDIT_LOG incompatible with profile_medium.

Profile Medium selects IPC model by default. TF-M IPC model disables audit log service since audit log doesn't implement IPC model interface yet.
Please see: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/config/tfm_ipc_config_default.cmake

Mar 29 2021, 6:46 AM
davidhuziji added a comment to T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON.

TF-M audit log service doesn't implement IPC model interface. Therefore it is not enabled by default in IPC model.
IPC model default configuration disables TF-M audit log. Please see: https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/config/tfm_ipc_config_default.cmake

Mar 29 2021, 6:45 AM
KenLSoft updated the task description for T909: 'psa-arch-tests' panic test result inconsistent between ARMCLANG and GNUARM.
Mar 29 2021, 6:01 AM · Trusted Firmware M
KenLSoft created T909: 'psa-arch-tests' panic test result inconsistent between ARMCLANG and GNUARM.
Mar 29 2021, 6:00 AM · Trusted Firmware M
davidwang reassigned T907: AUDIT_LOG incompatible with profile_medium from Anton-TF to davidhuziji.
Mar 29 2021, 3:22 AM
davidwang reassigned T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON from Anton-TF to davidhuziji.
Mar 29 2021, 3:22 AM

Mar 26 2021

raghuncstate added a comment to T908: Move platform description to the Hypervisor manifest.

Hi Olivier,

Mar 26 2021, 6:44 PM · Hafnium
odeprez updated the task description for T908: Move platform description to the Hypervisor manifest.
Mar 26 2021, 5:35 PM · Hafnium
odeprez added a comment to T908: Move platform description to the Hypervisor manifest.

Raghu as you are originator for this ask; can you state more about the requirements as to the why we'd really need to do so?

Mar 26 2021, 5:34 PM · Hafnium
odeprez renamed T908: Move platform description to the Hypervisor manifest from Move platform descripton to the Hypervisor manifest to Move platform description to the Hypervisor manifest.
Mar 26 2021, 5:30 PM · Hafnium
odeprez created T908: Move platform description to the Hypervisor manifest.
Mar 26 2021, 5:29 PM · Hafnium
oyvindronningstad updated the task description for T907: AUDIT_LOG incompatible with profile_medium.
Mar 26 2021, 1:54 PM
oyvindronningstad created T907: AUDIT_LOG incompatible with profile_medium.
Mar 26 2021, 1:51 PM
gyuri-szing closed T899: protobuf is missing from nanapob python dependencies. as Resolved.

Fix is merged to integration and master. (https://git.trustedfirmware.org/TS/trusted-services.git/commit/?h=refs/heads/main&id=840696b9ac1ba6aa9ccd024ca9dc3b4be12bf837)

Mar 26 2021, 9:15 AM · Trusted Services
oyvindronningstad assigned T892: AUDIT_LOG secure regression tests don't compile with TFM_PSA_API=ON to Anton-TF.
Mar 26 2021, 8:08 AM
oyvindronningstad closed T837: -fshort-wchar causes incompatibility as Resolved.
Mar 26 2021, 8:05 AM
lairdjm claimed T906: Interactive tests do not work and fail.
Mar 26 2021, 7:58 AM
lairdjm added a comment to T906: Interactive tests do not work and fail.

Submitted for review at https://review.trustedfirmware.org/c/TF-M/tf-m-tests/+/9431

Mar 26 2021, 7:58 AM

Mar 25 2021

lairdjm triaged T906: Interactive tests do not work and fail as High priority.
Mar 25 2021, 5:35 PM
Summer-ARM edited the content of Psa Arch Crypto Test Failure Analysis In Tf-m V1.3 Release.
Mar 25 2021, 2:30 AM

Mar 24 2021

adeaarm added a comment to T1: Add information on running under QEMU to the user guide.

With a recent version of QEMU (i.e. 4.x), it should be enough just to use this to run TF-M on QEMU for AN521:

Mar 24 2021, 7:58 PM · Restricted Project
gyuri-szing added a comment to T899: protobuf is missing from nanapob python dependencies. .

Fix is on review here: https://review.trustedfirmware.org/c/TS/trusted-services/+/9379

Mar 24 2021, 10:55 AM · Trusted Services
lairdjm created T905: Alignment of target flash read and buffer alignment.
Mar 24 2021, 8:12 AM
Summer-ARM edited the content of Trusted Firmware M.
Mar 24 2021, 6:05 AM
Summer-ARM edited the content of Release.
Mar 24 2021, 6:04 AM
Summer-ARM created an object: Psa Arch Crypto Test Failure Analysis In Tf-m V1.3 Release.
Mar 24 2021, 6:01 AM
davidhuziji added a comment to T904: Dual-cpu NS mailbox initialization shall be executed after CMSIS RTX kernel initialization.

The fix is merged: https://review.trustedfirmware.org/c/TF-M/tf-m-tests/+/8178

Mar 24 2021, 3:08 AM · Restricted Project
davidhuziji closed T904: Dual-cpu NS mailbox initialization shall be executed after CMSIS RTX kernel initialization as Resolved.
Mar 24 2021, 3:07 AM · Restricted Project

Mar 23 2021

qwandor added a comment to T898: Hafnium fails to build on arm64 hosts.

That's not currently supported.

Mar 23 2021, 9:56 AM · Hafnium
KenLSoft triaged T903: TFM IPC Regression test would fail if TEST_NS=ON and TEST_S=OFF as Low priority.
Mar 23 2021, 8:15 AM · Trusted Firmware M
davidhuziji created T902: NV counter test in PS regression test 4001 is stuck on SSE-300 in isolation level 2 when PXN is enabled.
Mar 23 2021, 6:26 AM · Trusted Firmware M
Karl renamed T895: Musca B1/S1 : build faill by load region overlaps for PSA FF Debug type from Musca B1 : build faill by load region overlaps for PSA FF Debug type to Musca B1/S1 : build faill by load region overlaps for PSA FF Debug type.
Mar 23 2021, 1:38 AM

Mar 22 2021

achingupta added a comment to T897: Implement retrieving of memory region by specifying address ranges.

I think it would be reasonable if Hafnium implements this feature when there is an explicit request for it from a Trusted OS or SP vendor. In the meantime, Hafnium returning INVALID_PARAMETERS sounds like a reasonable approach to me. It implies that the ACK test can be ignored. What do you reckon?

Mar 22 2021, 7:22 PM · Hafnium
achingupta added a comment to T896: Implement FFA_RXTX_UNMAP_32 interface.

FWIW, agree with Olivier's analysis.

Mar 22 2021, 7:19 PM · Hafnium
rossburton added a comment to T898: Hafnium fails to build on arm64 hosts.

That's a very interesting definition of reproducible.

Mar 22 2021, 6:38 PM · Hafnium
gyuri-szing added a comment to T900: SPM: remove early SP code from memory after the SP is loaded.

Blocked by https://developer.trustedfirmware.org/T901

Mar 22 2021, 5:44 PM · Trusted Services
gyuri-szing created T901: SPM: follow up image loading issues.
Mar 22 2021, 5:43 PM · Trusted Services
gyuri-szing added a comment to T900: SPM: remove early SP code from memory after the SP is loaded.

After the initial investigation I found two possible approaches to the task:

Mar 22 2021, 5:24 PM · Trusted Services
gyuri-szing created T900: SPM: remove early SP code from memory after the SP is loaded.
Mar 22 2021, 5:22 PM · Trusted Services
qwandor added a comment to T898: Hafnium fails to build on arm64 hosts.

Yes, we include a prebuilt toolchain so that the builds are reproducible. It's a copy of the Android prebuilt toolchain (from https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86/), which I'm afraid doesn't seem to include aarch64 binaries at the moment.

Mar 22 2021, 5:19 PM · Hafnium
rossburton updated the task description for T898: Hafnium fails to build on arm64 hosts.
Mar 22 2021, 5:14 PM · Hafnium
gyuri-szing triaged T899: protobuf is missing from nanapob python dependencies. as Normal priority.
Mar 22 2021, 4:53 PM · Trusted Services
rossburton updated the task description for T898: Hafnium fails to build on arm64 hosts.
Mar 22 2021, 4:51 PM · Hafnium
rossburton created T898: Hafnium fails to build on arm64 hosts.
Mar 22 2021, 4:05 PM · Hafnium
odeprez added a comment to T897: Implement retrieving of memory region by specifying address ranges.

In particular this is about specifying the offset field in the endpoint memory access descriptor.

Mar 22 2021, 3:29 PM · Hafnium
odeprez added a comment to T896: Implement FFA_RXTX_UNMAP_32 interface.

The possible envisioned scenario is related to booting TF-A+UEFI and support for authenticated variables.

Mar 22 2021, 2:54 PM · Hafnium
jaypit02 created T897: Implement retrieving of memory region by specifying address ranges.
Mar 22 2021, 12:54 PM · Hafnium
jaypit02 created T896: Implement FFA_RXTX_UNMAP_32 interface.
Mar 22 2021, 12:52 PM · Hafnium
Karl updated subscribers of T895: Musca B1/S1 : build faill by load region overlaps for PSA FF Debug type.

Revert patch:
https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/9142

Mar 22 2021, 6:37 AM
Karl added a comment to T895: Musca B1/S1 : build faill by load region overlaps for PSA FF Debug type.

Workaround from CI to skip the Clang + FF + Debug for Musca B1:
https://review.trustedfirmware.org/c/ci/tf-m-ci-scripts/+/9286

Mar 22 2021, 6:30 AM
Karl updated subscribers of T895: Musca B1/S1 : build faill by load region overlaps for PSA FF Debug type.
Mar 22 2021, 6:25 AM
Karl triaged T895: Musca B1/S1 : build faill by load region overlaps for PSA FF Debug type as Low priority.
Mar 22 2021, 6:23 AM

Mar 17 2021

adeaarm closed T408: Refactor UART stdio retargeting as Wontfix.
Mar 17 2021, 11:51 AM · Trusted Firmware M