crypto/dpaa2_sec: disable write-safe for PDCP
authorVakul Garg <vakul.garg@nxp.com>
Mon, 30 Sep 2019 14:40:50 +0000 (20:10 +0530)
committerAkhil Goyal <akhil.goyal@nxp.com>
Wed, 9 Oct 2019 09:50:12 +0000 (11:50 +0200)
commit2dc8b4aa31a79ec5c69a5fc654839c2cc07cd101
treed44126e4d092d4813d654f7d73f66772ed691098
parentaf61f0750948f344ec4ed80bbcd03f5cad083285
crypto/dpaa2_sec: disable write-safe for PDCP

PDCP descriptors in some cases internally use commands which overwrite
memory with extra '0s' if write-safe is kept enabled. This breaks
correct functional behavior of PDCP apis and they in many cases give
incorrect crypto output. There we disable 'write-safe' bit in FLC for
PDCP cases. If there is a performance drop, then write-safe would be
enabled selectively through a separate patch.

Signed-off-by: Vakul Garg <vakul.garg@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c