Skip to content
Commit 90ae2814 authored by Lukas Auer's avatar Lukas Auer Committed by Andes
Browse files

riscv: add option to wait for ack from secondary harts in smp functions



Add a wait option to smp_call_function() to wait for the secondary harts
to acknowledge the call-function request. The request is considered to
be acknowledged once each secondary hart has cleared the corresponding
IPI.

As part of the call-function request, the secondary harts invalidate the
instruction cache after clearing the IPI. This adds a delay between
acknowledgment (clear IPI) and fulfillment (call function) of the
request. We want to use the acknowledgment to be able to judge when the
request has been completed. Remove the delay by clearing the IPI after
cache invalidation and just before calling the function from the
request.

Signed-off-by: default avatarLukas Auer <lukas.auer@aisec.fraunhofer.de>
Reviewed-by: default avatarRick Chen <rick@andestech.com>
Tested-by: default avatarRick Chen <rick@andestech.com>
Reviewed-by: default avatarAnup Patel <anup.patel@wdc.com>
parent 8b3e97ba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment