APPLIED: [SRU][J:linux-bluefield][PATCH v1 0/1] platform/mellanox: mlxbf-pka: fix the PKA shim mutex initialization issue
Alessio Faina
alessio.faina at canonical.com
Mon Oct 20 07:37:47 UTC 2025
On Thu, Oct 09, 2025 at 01:56:49PM -0400, Ron Li wrote:
> 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
>
>
> --
> kernel-team mailing list
> kernel-team at lists.ubuntu.com
> https://lists.ubuntu.com/mailman/listinfo/kernel-team
Applied to jammy:linux-bluefield
Thanks!
- Alessio Faina
More information about the kernel-team
mailing list