Skip to content
Commit 4e779fd5 authored by Ang Tien Sung's avatar Ang Tien Sung Committed by Liwei Song
Browse files

HSD #14015013554: firmware: stratix10-svc: Support up to 4 SVC clients

commit c96097ae029fd6a606ef8023cd14d70f2d712d48 from
https://github.com/altera-opensource/linux-socfpga.git

 socfpga-5.15.30-lts.

This fixes the SVC Time-out issue on Intel's firmware SVC mailbox service
when more than 1 client driver sends SMC commands concurrently. A thread
is created now per channel. Current stratix10-svc driver supports 4
channels. Thread synchronization with mutex is used to prevent more
than one thread from calling SMC command. The time-out are adjusted
to cater for multiple drivers.

In the old implementation, the respective SVC client drivers like
soc64-hwmon, intel_fcs and stratix10-soc sends a SMC command
and this triggers a single thread at the stratix10-svc driver.
Upon receiving a callback, the caller driver sends
stratix10-svc-done and it stops the thread without waiting
for the other SMC commands to complete.

Signed-off-by: default avatarAng Tien Sung <tien.sung.ang@intel.com>
Signed-off-by: default avatarLiwei Song <liwei.song@windriver.com>
parent eeb2d86e
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