Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1401653 > unrolled thread
| Started by | Tudor-Dan Ambarus <tudor-dan.ambarus@nxp.com> |
|---|---|
| First post | 2016-05-16 19:30 +0200 |
| Last post | 2016-05-16 19:30 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
RE: [PATCH v2 6/8] crypto: caam - handle core endianness != caam endianness Tudor-Dan Ambarus <tudor-dan.ambarus@nxp.com> - 2016-05-16 19:30 +0200
| From | Tudor-Dan Ambarus <tudor-dan.ambarus@nxp.com> |
|---|---|
| Date | 2016-05-16 19:30 +0200 |
| Subject | RE: [PATCH v2 6/8] crypto: caam - handle core endianness != caam endianness |
| Message-ID | <rzuvd-1tB-15@gated-at.bofh.it> |
> There are SoCs like LS1043A where CAAM endianness (BE) does not match
> the default endianness of the core (LE).
> Moreover, there are requirements for the driver to handle cases like
> CPU_BIG_ENDIAN=y on ARM-based SoCs.
> This requires for a complete rewrite of the I/O accessors.
>
> PPC-specific accessors - {in,out}_{le,be}XX - are replaced with
> generic ones - io{read,write}[be]XX.
>
> Endianness is detected dynamically (at runtime) to allow for
> multiplatform kernels, for e.g. running the same kernel image
> on LS1043A (BE CAAM) and LS2080A (LE CAAM) armv8-based SoCs.
>
> While here: debugfs entries need to take into consideration the
> endianness of the core when displaying data. Add the necessary
> glue code so the entries remain the same, but they are properly
> read, regardless of the core and/or SEC endianness.
>
> Note: pdb.h fixes only what is currently being used (IPsec).
>
> Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
> Signed-off-by: Alex Porosanu <alexandru.porosanu@nxp.com>
> ---
> drivers/crypto/caam/Kconfig | 4 -
> drivers/crypto/caam/caamhash.c | 5 +-
> drivers/crypto/caam/ctrl.c | 125 +++++++++++++++++++------------
> drivers/crypto/caam/desc.h | 7 +-
> drivers/crypto/caam/desc_constr.h | 44 +++++++----
> drivers/crypto/caam/jr.c | 22 +++---
> drivers/crypto/caam/pdb.h | 137 ++++++++++++++++++++++++++--------
> drivers/crypto/caam/regs.h | 151 +++++++++++++++++++++++++---------
> ----
> drivers/crypto/caam/sg_sw_sec4.h | 11 +--
> 9 files changed, 340 insertions(+), 166 deletions(-)
Reviewed-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Back to top | Article view | linux.kernel
csiph-web