linux/drivers/ntb/hw
Joey Zhang a944ccc3b0 ntb_hw_switchtec: Fix setup MW with failure bug
Switchtec does not support setting multiple MWs simultaneously. The
driver takes a hardware lock to ensure that two peers are not doing this
simultaneously and it fails if someone else takes the lock. In most
cases, this is fine as clients only setup the MWs once on one side of
the link.

However, there's a race condition when a re-initialization is caused by
a link event. The driver will re-setup the shared memory window
asynchronously and this races with the client setting up it's memory
windows on the link up event.

To fix this we ensure do the entire initialization in a work queue and
signal the client once it's done.

Signed-off-by: Joey Zhang <joey.zhang@microchip.com>
Signed-off-by: Wesley Sheng <wesley.sheng@microchip.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
2019-06-13 08:59:31 -04:00
..
amd NTB: amd: Silence shift wrapping warning in amd_ntb_db_vector_mask() 2019-06-13 08:59:18 -04:00
idt drivers: Remove explicit invocations of mmiowb() 2019-04-08 12:01:02 +01:00
intel ntb: intel: Make intel_ntb3_peer_db_addr static 2019-06-13 08:53:19 -04:00
mscc ntb_hw_switchtec: Fix setup MW with failure bug 2019-06-13 08:59:31 -04:00
Kconfig NTB: switchtec_ntb: Introduce initial NTB driver 2017-11-18 20:37:12 -05:00
Makefile NTB: switchtec_ntb: Introduce initial NTB driver 2017-11-18 20:37:12 -05:00