Hi Kalyani,
There is tf-a-tests\tftf\tests\extensions\pauth\test_pauth.c which tests that PAuth keys were preserved and restored correctly when switching to/from Secure World. You can also take a look at test configurations I referenced and work out what BP_OPTION options should be set for your tegra platform and use TFTF for testing.
Regards.
Alexei
________________________________ From: Kalyani Chidambaram Vaidyanathan kalyanic@nvidia.com Sent: 18 September 2020 19:20 To: Alexei Fedorov Alexei.Fedorov@arm.com Cc: tf-a@lists.trustedfirmware.org tf-a@lists.trustedfirmware.org; Varun Wadekar vwadekar@nvidia.com Subject: RE: [TF-A] Tests to verify BP_OPTION
Hi Alexei,
We are trying to test this on the tegra platforms. The patches you share seem to be for fvp.
Is there any tftf test for this? Or Any guidance on porting the test?
Thanks,
kalyani
From: Alexei Fedorov Alexei.Fedorov@arm.com Sent: Friday, September 18, 2020 3:23 AM To: Kalyani Chidambaram Vaidyanathan kalyanic@nvidia.com; tf-a@lists.trustedfirmware.org; Varun Wadekar vwadekar@nvidia.com Subject: Re: [TF-A] Tests to verify BP_OPTION
External email: Use caution opening links or attachments
Hi,
Yes, there are
fvp-pauth-pac-ret-leaf-sdei,fvp-pauth-standard:fvp-tftf-fip.tftf-aemv8a.8_5-debug
fvp-pauth-pac-ret-leaf-tsp-sdei,fvp-pauth-standard:fvp-tftf-fip.tftf-aemv8a.8_5-debug
configs in platform-ci/group/tftf-l2-fvp introduced by
https://review.trustedfirmware.org/c/ci/tf-a-ci-scripts/+/5393
Alexei
________________________________
From: TF-A <tf-a-bounces@lists.trustedfirmware.orgmailto:tf-a-bounces@lists.trustedfirmware.org> on behalf of Varun Wadekar via TF-A <tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org> Sent: 17 September 2020 19:18 To: Kalyani Chidambaram Vaidyanathan <kalyanic@nvidia.commailto:kalyanic@nvidia.com>; tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org <tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org> Subject: Re: [TF-A] Tests to verify BP_OPTION
<Bump to get this email through>
From: Kalyani Chidambaram Vaidyanathan <kalyanic@nvidia.commailto:kalyanic@nvidia.com> Sent: Wednesday, September 16, 2020 11:54 AM To: tf-a@lists.trustedfirmware.orgmailto:tf-a@lists.trustedfirmware.org Cc: Varun Wadekar <vwadekar@nvidia.commailto:vwadekar@nvidia.com> Subject: Tests to verify BP_OPTION
Hi,
Is there any test to verify the BP_OPTION feature set to “pac-ret+leaf” ?
When BRANCH_PROTECTION is set to “3”, BP_OPTION is set to “pac-ret+leaf”.
Reference code - https://github.com/ARM-software/arm-trusted-firmware/blob/master/Makefile
Thanks,
Kalyani