HomeFreeBSD

ntb_hw_plx: Workaround read-only scratchpad registers

Description

ntb_hw_plx: Workaround read-only scratchpad registers

On several systems we've noticed that when NTB link goes down, the
Physical Layer User Test Pattern registers we use as additional
scratchpad registers (that is explicitly allowed by the chip specs)
become read-only for about 100us. I see no explanation for this in
the chip specs, neither why it was not seen before, may be a race.
Since we do need these registers, workaround it by repeating writes
until we succeed or 1ms timeout expire.

MFC after: 1 week

Details

Provenance
mavAuthored on Jan 27 2024, 9:51 PM
Parents
rG5c38ea60a041: Add libllvm and liblldb source files to enable WITH_ASAN build
Branches
Unknown
Tags
Unknown