[PATCH] firmware: arm_scmi: Add lock for mailbox do_xfer

Sudeep Holla sudeep.holla at arm.com
Mon Oct 23 01:58:19 PDT 2023


Hi Xinglong,

Cristian has already given reason why this change is wrong.

I wanted to let you know that you need to still fix your email.

On Sun, Oct 22, 2023 at 08:15:17PM +0800, sean yang wrote:
> The function do_xfer may cause multithreading send message at almost the
> same time.
>
> send_message will write the message in the shared memory, This causes the
> second write
>
> to overwrite the first write, resulting in the loss of the first write.
>
> Add lock to avoid this situation. Release lock when the message has
> responded.
>

This looks like either copy-pasted or some wrong format(html?).
Use git send-email if you are not already to send any patch on the list.
This is definitely wrong format and no one can apply this patch.

--
Regards,
Sudeep



More information about the linux-arm-kernel mailing list