| 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 ...
|
| e9fd4b87 | 05-Nov-2020 |
Natanael Copa <[email protected]> |
bus/dpaa: fix build with musl
The header files argp.h and error.h do not exist in musl libc.
Fix build with musl libc by using err(3) instead of the GNU-specific error(3).
We could have used the i
bus/dpaa: fix build with musl
The header files argp.h and error.h do not exist in musl libc.
Fix build with musl libc by using err(3) instead of the GNU-specific error(3).
We could have used the identical errx("...: %s", strerror(ret))` but strerror(3) is not thread-safe and the strerror_r variant has two incompatible versions, one GNU specific and one XSI-compliant. Avoid the mess by letting "err" use the thread-local errno.
This also fixes error message for kzmalloc failures which previously would always have given "Unknown error -1", since that is what strerror(-1) returns. Let "err" use the proper error message from errno which is set by kzalloc.
Fixes: 9d32ef0f5d61 ("bus/dpaa: support creating dynamic HW portal") Fixes: f09ede6c8fd1 ("bus/dpaa: add BMAN driver core") Fixes: 5b22cf744689 ("bus/dpaa: introducing FMan configurations") Fixes: 39f373cf015a ("bus/dpaa: add compatibility and helper macros") Cc: [email protected]
Signed-off-by: Natanael Copa <[email protected]> Signed-off-by: Thomas Monjalon <[email protected]> Acked-by: Andrew Rybchenko <[email protected]> Acked-by: David Marchand <[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 ...
|