Page MenuHomePhabricator

ioannisg (Ioannis Glaropoulos)
User

Projects

User Details

User Since
Oct 8 2020, 1:38 PM (219 w, 2 d)

Recent Activity

Jul 30 2021

ioannisg added a comment to T950: NS interrupt masking prevents from executing PSA calls.

i will try to revert the patch that is mentioned above and report here.

Jul 30 2021, 10:43 AM

Jul 28 2021

ioannisg added a comment to T950: NS interrupt masking prevents from executing PSA calls.

Hi Kevin.

Jul 28 2021, 1:42 PM

Jul 16 2021

ioannisg updated the task description for T951: TFM regressions tests seem to hang on QEMU for mps2_an521.
Jul 16 2021, 1:14 PM · Restricted Project
ioannisg updated subscribers of T951: TFM regressions tests seem to hang on QEMU for mps2_an521.
Jul 16 2021, 1:09 PM · Restricted Project
ioannisg updated the task description for T951: TFM regressions tests seem to hang on QEMU for mps2_an521.
Jul 16 2021, 1:09 PM · Restricted Project
ioannisg triaged T951: TFM regressions tests seem to hang on QEMU for mps2_an521 as High priority.
Jul 16 2021, 1:07 PM · Restricted Project
ioannisg updated the task description for T950: NS interrupt masking prevents from executing PSA calls.
Jul 16 2021, 12:06 PM
ioannisg updated the task description for T950: NS interrupt masking prevents from executing PSA calls.
Jul 16 2021, 11:55 AM
ioannisg triaged T950: NS interrupt masking prevents from executing PSA calls as High priority.
Jul 16 2021, 11:53 AM

Jun 3 2021

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

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

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

May 26 2021

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

May 18 2021

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 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
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

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 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 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