diff options
author | Horia Geant? <horia.geanta@freescale.com> | 2015-08-21 18:53:20 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-08-24 17:07:38 +0300 |
commit | 9f587fa29f7e8ed6b8885cff51a51ace3ad85152 (patch) | |
tree | aa4db25708fc827a2159d9f7c4e8e8dd2ed691c3 /drivers/xen/swiotlb-xen.c | |
parent | d4421c54c45f643731c92daa8e268ce74dcdf5a2 (diff) | |
download | linux-9f587fa29f7e8ed6b8885cff51a51ace3ad85152.tar.xz |
crypto: caam - fix writing to JQCR_MS when using service interface
Most significant part of JQCR (Job Queue Control Register) contains
bits that control endianness: ILE - Immediate Little Endian,
DWS - Double Word Swap.
The bits are automatically set by the Job Queue Controller HW.
Unfortunately these bits are cleared in SW when submitting descriptors
via the register-based service interface.
>From LS1021A:
JQCR_MS = 08080100 - before writing: ILE | DWS | SRC (JR0)
JQCR_MS = 30000100 - after writing: WHL | FOUR | SRC (JR0)
This would cause problems on little endian caam for descriptors
containing immediata data or double-word pointers.
Currently there is no problem since the only descriptors ran through
this interface are the ones that (un)instantiate RNG.
Signed-off-by: Horia Geant? <horia.geanta@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/xen/swiotlb-xen.c')
0 files changed, 0 insertions, 0 deletions