Skip to content
Commit 7b869f26 authored by Harman Kalra's avatar Harman Kalra Committed by Ruiqiang Hao
Browse files

crypto: marvell: add synchronization between mailbox accesses



commit 15839ff7e4b74544a653a598394c1e6ca9f35774 from
git@git.assembla.com:cavium/WindRiver.linux.git

Since there are two workqueues implemented in CPTPF driver - one
for handling mailbox requests from VFs and another for handling FLR.
In both cases PF driver will forward the request to AF driver by
writing to mailbox memory. A race condition may arise if two
simultaneous requests are written to mailbox memory. Introducing
locking mechanism to maintain synchronization between multiple
mailbox accesses.

Change-Id: Icb3fc929e30e2f119d35f59582b53b7d9359d71b
Signed-off-by: default avatarHarman Kalra <hkalra@marvell.com>
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/70522
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Reviewed-by: default avatarJerin Jacob Kollanukkaran <jerinj@marvell.com>
Tested-by: default avatarsa_ip-sw-jenkins <sa_ip-sw-jenkins@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent ce93221d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment