Commit cbc22b06 authored by Herbert Xu's avatar Herbert Xu

Revert "crypto: caam/jr - Remove extra memory barrier during job ring dequeue"

This reverts commit bbfcac5f.

It caused a crash regression on powerpc:

https://lore.kernel.org/linux-crypto/87pnp2aflz.fsf@concordia.ellerman.id.au/Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 8c65d354
...@@ -213,7 +213,7 @@ static void caam_jr_dequeue(unsigned long devarg) ...@@ -213,7 +213,7 @@ static void caam_jr_dequeue(unsigned long devarg)
mb(); mb();
/* set done */ /* set done */
wr_reg32_relaxed(&jrp->rregs->outring_rmvd, 1); wr_reg32(&jrp->rregs->outring_rmvd, 1);
jrp->out_ring_read_index = (jrp->out_ring_read_index + 1) & jrp->out_ring_read_index = (jrp->out_ring_read_index + 1) &
(JOBR_DEPTH - 1); (JOBR_DEPTH - 1);
......
...@@ -96,14 +96,6 @@ cpu_to_caam(16) ...@@ -96,14 +96,6 @@ cpu_to_caam(16)
cpu_to_caam(32) cpu_to_caam(32)
cpu_to_caam(64) cpu_to_caam(64)
static inline void wr_reg32_relaxed(void __iomem *reg, u32 data)
{
if (caam_little_end)
writel_relaxed(data, reg);
else
writel_relaxed(cpu_to_be32(data), reg);
}
static inline void wr_reg32(void __iomem *reg, u32 data) static inline void wr_reg32(void __iomem *reg, u32 data)
{ {
if (caam_little_end) if (caam_little_end)
......
Markdown is supported
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