Running partition index isn't update for IPC
Open, Needs TriagePublic

Description

As part of contributing IPC service to Attestation an issue has been raised:

S interface tests suite of Initial Attestation Service (TFM_ATTEST_TEST_2XXX) are falling:
While Initial Attestation Service is calling ‘psa_hash_setup()’ API (which is part of the library mode) the partition index is 0 and ‘tfm_start_partition()’ returns error.
The global ‘g_spm_partition_db.running_partition_idx’ isn’t update to attestation partition index while library mode (the secure test suite) is calling IPC mode (Attestation Service) that calling library mode (Crypto).

Related PR: https://review.trustedfirmware.org/c/trusted-firmware-m/+/789