Hi Anton, Feder,

 

I posted this in the Phabricator : https://developer.trustedfirmware.org/T921

 

Best,

Ioannis

 

From: Feder Liang <Feder.Liang@arm.com>
Sent: Friday, April 23, 2021 4:02 PM
To: Glaropoulos, Ioannis <Ioannis.Glaropoulos@nordicsemi.no>
Cc: tf-m@lists.trustedfirmware.org; nd <nd@arm.com>
Subject: RE: [TF-M] Supporting integrated Non-Secure RTOS applications that use the FPU

 

Hi, Ioannis

 

Sorry for late response. I am out of office these two days.

 

Thank you very much for sharing your problem here.

 

As Keven mentioned, could you please report your problem on phabricator first with more details?

This will be very helpful for us to analyze the problem you mentioned.

  1. Which cortex-m core?
  2. TF-M changeset you are using and compiler version.
  3. Please list all changes you did for TF-M while integrated to your project.
  4. More information about the crash:
    1. IPC mode, right? Which isolation level?
    2. Detail sequences of actions between NS and S when crash.
    3. Lzay FP enabled? Crash when FPCCR_NS.LSPACT = 1 or something else?
    4. Which PSA calls causes the crash, or all PSA calls?
    5. How about the occurrence of crash? Always crash or sometimes?
    6. Which fault entered? Value of registers and stack frame in memory at crash time are very useful for analysis.
    7. ……., Other information if possible.

 

The more information the better, please try to attached them in phabricator. Thank you.

 

Best Regards

Feder

 

 

From: TF-M <tf-m-bounces@lists.trustedfirmware.org> On Behalf Of Glaropoulos, Ioannis via TF-M
Sent: Thursday, April 22, 2021 3:24 PM
To: Kevin Townsend (kevin.townsend@linaro.org) <kevin.townsend@linaro.org>; tf-m@lists.trustedfirmware.org
Subject: Re: [TF-M] Supporting integrated Non-Secure RTOS applications that use the FPU

 

Hi Kevin,

Thanks for the link to the presentation 😊

 

I guess, then, Feder Liang, as the author of the presentation, should be able to provide some feedback on the questions I raised?

 

Once more, I am stressing that our questions concern the usage of FPU in Non-Secure applications that integrate with TF-M today; it is not about future improvements for FPU support inside TF-M, which was (I guess) the main point of this presentation.

 

Best,

Ioannis

 

 

From: Kevin Townsend <kevin.townsend@linaro.org>
Sent: Wednesday, April 21, 2021 8:03 PM
To: Glaropoulos, Ioannis <Ioannis.Glaropoulos@nordicsemi.no>
Cc: tf-m@lists.trustedfirmware.org
Subject: Re: [TF-M] Supporting integrated Non-Secure RTOS applications that use the FPU

 

On Wed, 21 Apr 2021 at 18:56, Glaropoulos, Ioannis via TF-M <tf-m@lists.trustedfirmware.org> wrote:

I would like to ask the community whether these issues have been raised in the past – and if so, please, inform me what the conclusions have been. Are there current activities that attempt to address the problems raised above? Not been able to fully utilize the FP context stacking in Non-Secure Zephyr applications that integrate with TF-M removes value of our TF-M based solutions.

 

Thanks! I am looking forward to hearing the thoughts of the community.

 

Hi Ioannis,

 

The previous technical forum call did discuss FP usage ... I don't think you were on the call at the time, but the presentation and video can be viewed here, and should point to the people to follow up with here on the mailing list of on phabricator, etc.

 

Presentation: https://www.trustedfirmware.org/docs/FP-support-in-TF-M.pdf

 

Video link(s) available here: https://www.trustedfirmware.org/meetings/tf-m-technical-forum/

 

Best rehards,

Kevin