[SRU][J/N:linux-bluefield][PATCH v1 0/1] platform/mellanox: mlxbf-pka: fix the PKA shim mutex initialization issue
Ron Li
xiangrongl at nvidia.com
Thu Oct 9 17:56:49 UTC 2025
BugLink: https://bugs.launchpad.net/bugs/2127200
SRU Justification:
[Impact]
In the existing PKA driver implementation, in function pka_dev_init_shim, the shim->mutex is first used in the pka_dev_trng_read function. However, the mutex is initialized after the pka_dev_trng_read function. This causes runtime kernel lock warning.
[Fix]
* Move the mutex initialization before the TRNG related function calls.
[Test Case]
* Verify the PKA devices can be successfully probed during kernel boot.
[Other]
* This code is likely to change depending on feedback we received from maintainers.
Ron Li (1):
UBUNTU: SAUCE: platform/mellanox: fix the PKA shim mutex
initialization issue
drivers/platform/mellanox/mlxbf_pka/mlxbf_pka_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--
2.43.2
More information about the kernel-team
mailing list