| 81eb760d | 08-Sep-2021 |
Franck Lenormand <[email protected]> |
common/dpaax/caamflib: remove some inline keys
The space in descriptor buffer is scarce as it is limited to 64 words for platforms except ERA10 (which has 128).
As the descriptors are processed wit
common/dpaax/caamflib: remove some inline keys
The space in descriptor buffer is scarce as it is limited to 64 words for platforms except ERA10 (which has 128).
As the descriptors are processed with QI, it adds some words to the descriptor which is passed.
Some descriptors used for SDAP were using too much words reaching the limit.
This patch reduces the number of words used by removing the inlining of some keys (done for performance) in order to have working descriptors.
Signed-off-by: Franck Lenormand <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 8aa1a67c | 08-Sep-2021 |
Franck Lenormand <[email protected]> |
common/dpaax/caamflib: remove DPOVRD clear for SDAP
For SDAP, we are not using the protocol operation to perform 4G/LTE operation so the DPOVRD option is not used.
Removing it save some space in th
common/dpaax/caamflib: remove DPOVRD clear for SDAP
For SDAP, we are not using the protocol operation to perform 4G/LTE operation so the DPOVRD option is not used.
Removing it save some space in the descriptor buffer and execution time.
Signed-off-by: Franck Lenormand <[email protected]> Acked-by: Akhil Goyal <[email protected]>
show more ...
|
| 69cb3917 | 05-Nov-2020 |
Natanael Copa <[email protected]> |
common/dpaax/caamflib: simplify log macros
Simplify pr_debug, pr_err and pr_warn macros by adding an intermediate pr_msg macro. This way we only need to test for SUPPRESS_PRINTS once.
Signed-off-by
common/dpaax/caamflib: simplify log macros
Simplify pr_debug, pr_err and pr_warn macros by adding an intermediate pr_msg macro. This way we only need to test for SUPPRESS_PRINTS once.
Signed-off-by: Natanael Copa <[email protected]> Acked-by: Hemant Agrawal <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: David Marchand <[email protected]>
show more ...
|
| 3ba2e519 | 12-Oct-2020 |
Franck Lenormand <[email protected]> |
common/dpaax/caamflib: support PDCP-SDAP
The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.
The difficulty of implementing this protocol is because the PDCP change beha
common/dpaax/caamflib: support PDCP-SDAP
The SDAP is a protocol in the LTE stack on top of PDCP. It is dedicated to QoS.
The difficulty of implementing this protocol is because the PDCP change behavior regarding encryption and authentication of the SDU it receives. In effect PDCP shall not encrypt the SDAP SDU but must authenticate it (when encryption and authentication is enabled).
The current version of SEC does not support the SDAP and the change of behavior of PDCP prevent the use of the PDCP protocol command available.
The way to do it is to reuse the PDCP implementation but to not use the PDCP protocol and to have descriptors which performs the PDCP protocol.
It is implemented by doing small changes of code: #ifdef SDAP_SUPPORT length += SDAP_BYTE_SIZE; offset -= SDAP_BYTE_SIZE; #endif after having computed the size of the SN to read from the input data, then #ifdef SDAP_SUPPORT MATHI(p, MATH0, LSHIFT, 8, MATH1, 8, 0); MATHB(p, MATH1, AND, sn_mask, MATH1, 8, IFB | IMMED2); #else MATHB(p, MATH0, AND, sn_mask, MATH1, 8, IFB | IMMED2); #endif It will keep the SN and the SDAP header in MATH0, then shift it to remove the SDAP header and store the result in MATH1.
Signed-off-by: Franck Lenormand <[email protected]> Signed-off-by: Akhil Goyal <[email protected]>
show more ...
|
| 55a4438f | 03-Sep-2020 |
Akhil Goyal <[email protected]> |
crypto/dpaa2_sec: increase max anti-replay window size
In case of LX2160 or SEC ERA >= 10, max anti replay window size supported is 1024. For all other versions of SEC, the maximum value is capped a
crypto/dpaa2_sec: increase max anti-replay window size
In case of LX2160 or SEC ERA >= 10, max anti replay window size supported is 1024. For all other versions of SEC, the maximum value is capped at 128 even if application gives more than that.
Signed-off-by: Akhil Goyal <[email protected]> Signed-off-by: Yi Liu <[email protected]> Acked-by: Hemant Agrawal <[email protected]>
show more ...
|
| d55db369 | 10-Dec-2019 |
Akhil Goyal <[email protected]> |
common/dpaax: remove unnecessary jump for PDCP
In case of LX2160, PROTOCOL command can be used in some of the PDCP cases, in those the jump command prior to KEY command may not be required.
The iss
common/dpaax: remove unnecessary jump for PDCP
In case of LX2160, PROTOCOL command can be used in some of the PDCP cases, in those the jump command prior to KEY command may not be required.
The issue observed due to these JUMP command on LX2160 is that, the CAAM gets stuck and the processing never get completed. The system becomes unusable.
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Hemant Agrawal <[email protected]>
show more ...
|
| b86a3223 | 08-Jan-2020 |
Akhil Goyal <[email protected]> |
common/dpaax: fix 12-bit null auth case
In cases of NULL auth in PDCP, the descriptors should be based on ALGORITHM command instead of PROTOCOL command. It was done in case of encap, but was missing
common/dpaax: fix 12-bit null auth case
In cases of NULL auth in PDCP, the descriptors should be based on ALGORITHM command instead of PROTOCOL command. It was done in case of encap, but was missing in decap.
Fixes: 526cdf60f1e5 ("crypto/dpaa2_sec: update desc for PDCP 18-bit enc-auth") Cc: [email protected]
Signed-off-by: Akhil Goyal <[email protected]> Acked-by: Hemant Agrawal <[email protected]>
show more ...
|