You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
mailbox: tegra-hsp: Clear mailbox before using message
The Tegra RCE (Camera) driver expects the mailbox to be empty before
processing the IVC messages. On RT kernel, the threads processing the
IVC messages (which are invoked after `mbox_chan_received_data()` is
called) may be on a different CPU or running with a higher priority
than the HSP interrupt handler thread. This can cause it to act on the
message before the mailbox gets cleared in the HSP interrupt handler
resulting in a loss of IVC notification.
Fix this by clearing the mailbox data register before calling
`mbox_chan_received_data()`.
Fixes: 8f585d1 ("mailbox: tegra-hsp: Add tegra_hsp_sm_ops")
Fixes: 74c20dd ("mailbox: tegra-hsp: Add 128-bit shared mailbox support")
Cc: [email protected]
Signed-off-by: Pekka Pessi <[email protected]>
Signed-off-by: Kartik Rajput <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Signed-off-by: Jassi Brar <[email protected]>
0 commit comments