Skip to content
Commit 5c4d84cc authored by Horia Geantă's avatar Horia Geantă Committed by Xiaolei Wang
Browse files

MLK-24912-1 crypto: caam/jr - update jr_list during suspend/resume

commit cca4e670e718dee4da3f3a6a2afe445a1a5c7379 from
https://source.codeaurora.org/external/imx/linux-imx



The global driver_data.jr_list contains the list of active job rings
at a given moment.

Picking a JR is done using caam_jr_alloc(), which goes through this list
and chooses the JR with the least number of users ("tfm_count").

During the JR suspend/resume, this list must be updated to reflect that
the JR is no longer available - otherwise caam_jr_alloc() could return
a JR that has been suspended.

While this is rather a theoretical issue (i.e. was not met in practice),
it is a prerequisite for fixing the RNG failure met during suspend/resume.

Signed-off-by: default avatarHoria Geantă <horia.geanta@nxp.com>
Tested-by: default avatarIuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: default avatarXiaolei Wang <xiaolei.wang@windriver.com>
parent 37968701
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment