Re: accel/amdxdna: Fix incorrect command state for timed out job

From: Markus Elfring

Date: Wed Oct 29 2025 - 14:54:30 EST


>> https://elixir.bootlin.com/linux/v6.18-rc3/C/ident/amdxdna_cmd_set_state
>
> Sure. amdxdna_cmd_set_state() updates the return code to command buffer. So application which issues the command will be able to get the return code.
>
> The function return value "ret" is used by mailbox receiving kernel thread to deal with the error.

I miss a clearer answer for the indicated function call incidence.

Can it be helpful to determine the state value before it would be passed to a concrete call?

Regards,
Markus