diff options
author | Cristian Marussi <[email protected]> | 2022-02-17 13:12:27 +0000 |
---|---|---|
committer | Sudeep Holla <[email protected]> | 2022-02-21 10:36:48 +0000 |
commit | 42e90eb53bf3f6fc43c667dd377779e3ebeb748a (patch) | |
tree | 08c77122a75508f58ba921618180416e653dc5c7 /lib/xarray.c | |
parent | cdf157faaafe36c0823148587a78147200898e87 (diff) |
firmware: arm_scmi: Add a virtio channel refcount
Currently SCMI VirtIO channels are marked with a ready flag and related
lock to track channel lifetime and support proper synchronization at
shutdown when virtqueues have to be stopped.
This leads to some extended spinlocked sections with IRQs off on the RX
path to keep hold of the ready flag and does not scale well especially when
SCMI VirtIO polling mode will be introduced.
Add an SCMI VirtIO channel dedicated refcount to track active users on both
the TX and the RX path and properly enforce synchronization and cleanup at
shutdown, inhibiting further usage of the channel once freed.
Link: https://lore.kernel.org/r/[email protected]
Cc: "Michael S. Tsirkin" <[email protected]>
Cc: Igor Skalkin <[email protected]>
Cc: Peter Hilber <[email protected]>
Cc: [email protected]
Signed-off-by: Cristian Marussi <[email protected]>
Signed-off-by: Sudeep Holla <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions