net: mana: Add rmb after checking owner bits
authorHaiyang Zhang <haiyangz@microsoft.com>
Sun, 11 Sep 2022 20:40:05 +0000 (13:40 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:11:44 +0000 (11:11 +0200)
commit71075d7d463281fd43cebf3a10170503a1c72995
treea10246da79566eb5b912decbceec3eb1495e0580
parent19aea370fd091eb1f2e2c03d0123bf02c9b5ccf9
net: mana: Add rmb after checking owner bits

commit 6fd2c68da55c552f86e401ebe40c4a619025ef69 upstream.

Per GDMA spec, rmb is necessary after checking owner_bits, before
reading EQ or CQ entries.

Add rmb in these two places to comply with the specs.

Cc: stable@vger.kernel.org
Fixes: ca9c54d2d6a5 ("net: mana: Add a driver for Microsoft Azure Network Adapter (MANA)")
Reported-by: Sinan Kaya <Sinan.Kaya@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Reviewed-by: Dexuan Cui <decui@microsoft.com>
Link: https://lore.kernel.org/r/1662928805-15861-1-git-send-email-haiyangz@microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/microsoft/mana/gdma_main.c