As stress-ng running SEC engine on the Ubuntu OS,
we found that SEC only supports two threads each with one TFM
based on the default module parameter 'ctx_q_num'.
If running more threads, stress-ng will fail since it cannot
get more TFMs.
In order to fix this, we adjusted the default values
of the module parameters to support more TFMs.
Signed-off-by: Longfang Liu <email address hidden>
Signed-off-by: Zaibo Xu <email address hidden>
Signed-off-by: Herbert Xu <email address hidden>
proper fix hits mainline kernel
$ git show 57b1aac1b426b72 55afa195298ed69 1ffea204c6 55afa195298ed69 1ffea204c6
commit 57b1aac1b426b72
Author: Longfang Liu <email address hidden>
Date: Mon Jun 8 22:01:11 2020 +0800
crypto: hisilicon - update SEC driver module parameter
As stress-ng running SEC engine on the Ubuntu OS,
we found that SEC only supports two threads each with one TFM
based on the default module parameter 'ctx_q_num'.
If running more threads, stress-ng will fail since it cannot
get more TFMs.
In order to fix this, we adjusted the default values
of the module parameters to support more TFMs.
Signed-off-by: Longfang Liu <email address hidden>
Signed-off-by: Zaibo Xu <email address hidden>
Signed-off-by: Herbert Xu <email address hidden>