mbox series

[nanbield,0/1] arm-bsp/corstone1000: fix synchronization issue on openamp notification

Message ID 20231123174306.2174931-1-emekcan.aras@arm.com
Headers show
Series arm-bsp/corstone1000: fix synchronization issue on openamp notification | expand

Message

Emekcan Aras Nov. 23, 2023, 5:43 p.m. UTC
From: Emekcan Aras <emekcan.aras@arm.com>

This fixes a race that is observed rarely in the FVP. It occurs in FVP
when tfm sends the notication ack in openamp, and then reset the access
request which resets the mhu registers before received by the host
processor. It implements the fix both in SE and the host processor openamp
wrapper. This solution enables polling on the status register of mhu until
the notificaiton is read by the host processor. (Inspired by
signal_and_wait_for_signal function in mhu_wrapper_v2_x.c in trusted-firmware-m
https://git.trustedfirmware.org/TF-M/trusted-firmware-m.git/tree/platform/ext/target/arm/rss/common/native_drivers/mhu_wrapper_v2_x.c#n61)

Signed-off-by: Emekcan Aras <emekcan.aras@arm.com>

Emekcan Aras (1):
  arm-bsp/corstone1000: fix synchronization issue on openamp
    notification

 ...e1000-fix-synchronization-issue-on-o.patch |  50 +++++++++
 .../trusted-firmware-m-corstone1000.inc       |   1 +
 ...rstone1000-fix-synchronization-issue.patch | 105 ++++++++++++++++++
 .../trusted-services/ts-arm-platforms.inc     |   1 +
 4 files changed, 157 insertions(+)
 create mode 100644 meta-arm-bsp/recipes-bsp/trusted-firmware-m/files/corstone1000/0009-platform-corstone1000-fix-synchronization-issue-on-o.patch
 create mode 100644 meta-arm-bsp/recipes-security/trusted-services/corstone1000/0008-platform-corstone1000-fix-synchronization-issue.patch