f0f7c557f3
'dev_gen' is a variable to trigger all cores to flush their local caches once the global MR cache has been rebuilt. This is due to MR cache's R/W lock can maintain synchronization between threads: 1. dev_gen and global cache updating ordering inside the lock protected section does not matter. Because other threads cannot take the lock until global cache has been updated. Thus, in out of order platform, even if other agents firstly observe updated dev_gen but global does not update, they still have to wait the lock. As a result, it is unnecessary to add a wmb between global cache rebuilding and updating the dev_gen to keep the memory store order. 2. Store-Release of unlock provides the implicit wmb at the level visible by software. This makes 'rebuilding global cache' and 'updating dev_gen' be observed before local_cache starts to be updated by other agents. Thus, wmb after 'updating dev_gen' can be removed. Suggested-by: Ruifeng Wang <ruifeng.wang@arm.com> Signed-off-by: Feifei Wang <feifei.wang2@arm.com> Reviewed-by: Ruifeng Wang <ruifeng.wang@arm.com> Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com> |
||
---|---|---|
.. | ||
meson.build | ||
mlx4_ethdev.c | ||
mlx4_flow.c | ||
mlx4_flow.h | ||
mlx4_glue.c | ||
mlx4_glue.h | ||
mlx4_intr.c | ||
mlx4_mp.c | ||
mlx4_mr.c | ||
mlx4_mr.h | ||
mlx4_prm.h | ||
mlx4_rxq.c | ||
mlx4_rxtx.c | ||
mlx4_rxtx.h | ||
mlx4_txq.c | ||
mlx4_utils.c | ||
mlx4_utils.h | ||
mlx4.c | ||
mlx4.h | ||
version.map |