Skip to content
Commit ecd71fc4 authored by Geetha sowjanya's avatar Geetha sowjanya Committed by Ruiqiang Hao
Browse files

octeontx2-pf: Use CQ_OP_STATUS register for CQE count



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

Current driver uses software cq head pointer to polls on CQE header
in memory to determine if CQE is valid. Software on Arm needs to make
sure, that the reads of the CQE do not get re-ordered so much that it
ends up with an inconsistent view of the CQE. To ensure that DMB barrier
after read to first CQE cacheline and before reading of the rest of the CQE
is needed. But this will impact the performance, instead use hardware
CQ head and tail pointers to find the valid number of CQEs.

Signed-off-by: default avatarGeetha sowjanya <gakula@marvell.com>
Change-Id: I95df0551bdc5feaffbcbbc870b2c6ed9e029e42d
Reviewed-on: https://sj1git1.cavium.com/c/IP/SW/kernel/linux/+/61487
Tested-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Reviewed-by: default avatarSunil Kovvuri Goutham <sgoutham@marvell.com>
Signed-off-by: default avatarRuiqiang Hao <Ruiqiang.Hao@windriver.com>
parent d7a1e8da
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