Skip to content
Commit 12c023d7 authored by Sanjay R Mehta's avatar Sanjay R Mehta Committed by Jon Mason
Browse files

NTB: ntb_perf: Clear stale values in doorbell and command SPAD register



when ntb_perf is unloaded, the command scratchpad register still
retains the last initialized value of PERF_CMD_INVAL. When ntb_perf
is re-loaded and reads peer command scratchpad register and it mis
interprets the peer state as initialized.

To avoid this, clearing the local side command scratchpad register
in perf_disable_service

Signed-off-by: default avatarSanjay R Mehta <sanju.mehta@amd.com>
Acked-by: default avatarAllen Hubbe <allenbh@gmail.com>
Acked-by: default avatarLogan Gunthorpe <logang@deltatee.com>
Acked-by: default avatarSerge Semin <fancer.lancer@gmail.com>
Signed-off-by: default avatarJon Mason <jdmason@kudzu.us>
parent b1ee5998
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment