Re: [PATCH] firmware: qcom_scm: Mark get_wq_ctx() as atomic call

From: Konrad Dybcio
Date: Thu Jun 13 2024 - 03:39:31 EST




On 6/11/24 20:27, Unnathi Chalicheemala via B4 Relay wrote:
From: Murali Nalajala <quic_mnalajal@xxxxxxxxxxx>

Currently get_wq_ctx() is wrongly configured as a standard call.
Here get_wq_ctx() must be an atomic call and can't be a standard
SMC call because get_wq_ctx() should not sleep again. This
situation lead to a deadlock. Hence mark get_wq_ctx() as
atomic call.

That's quite a word salad.. could you try to make it clearer what
you're trying to achieve?

Konrad