common/octeontx2: prevent STP instruction fissure
authorJerin Jacob <jerinj@marvell.com>
Fri, 26 Jul 2019 05:24:43 +0000 (10:54 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jul 2019 20:18:41 +0000 (22:18 +0200)
commit5077d8887930e435b6c2120fa717f9fafa2d963d
treec2e0f5211393d368842207012e6291582859445f
parent9f741506f838dd25fce1cee0b904590f10f56f1e
common/octeontx2: prevent STP instruction fissure

OTX2 AP core can sometimes fissure STP instructions when it is more
optimal to send such writes into the pipeline as 2 separate
instructions. However registers should be excluded from such
optimization. This commit ensures that no CSR write is ever fissured
by introducing zero cost workaround by setting STP pre-index by zero to
make sure OTX2 AP core prevent fissure.

Fixes: 8a4f835971f5 ("common/octeontx2: add IO handling APIs")

Signed-off-by: Jerin Jacob <jerinj@marvell.com>
Acked-by: Pavan Nikhilesh <pbhagavatula@marvell.com>
drivers/common/octeontx2/otx2_io_arm64.h