Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plat-k3: drivers: Track current_sequence in secure proxy
Currently ti_sci_do_xfer layer and ti_sci_setup_xfer both use the same shared resource message_sequence. However, If ti_sci_setup_xfer and ti_sci_do_xfer are in different critical sections and the value of message_sequence can change between both of them causing the message validation to fail with following. "Message with Sequence ID <> not expected". The proper way to handle this would be a queuing model or putting both of them in single critical section but that would require some major refactor or require modifying every ti_sci call. Tracking the message that is being sent over the secure proxy separately is something that is also doable and would avoid the race condition without a queuing model. Extract the message_sequence from the current message being sent over secure proxy and check that against the receiving response. Signed-off-by: Manorit Chawdhry <m-chawdhry@ti.com>
- Loading branch information