From faf0d98e4f11111bdb06efb138877360817672bb Mon Sep 17 00:00:00 2001 From: Xin LI Date: Thu, 17 Nov 2011 11:16:56 +0000 Subject: MFC r227409: Do a dummy read to flush the interrupt ACK that we just performed, ensuring that everything is really, truly consistent. This fixes certain cases where one will see various: mfi0: COMMAND 0xffffffXXXXXXXXXX TIMEOUT AFTER XX SECONDS Requested by: Vincent Hoffman --- sys/dev/mfi/mfi.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/dev') diff --git a/sys/dev/mfi/mfi.c b/sys/dev/mfi/mfi.c index e737391497a8..c15985a3bc71 100644 --- a/sys/dev/mfi/mfi.c +++ b/sys/dev/mfi/mfi.c @@ -932,6 +932,12 @@ mfi_intr(void *arg) if (sc->mfi_check_clear_intr(sc)) return; + /* + * Do a dummy read to flush the interrupt ACK that we just performed, + * ensuring that everything is really, truly consistent. + */ + (void)sc->mfi_read_fw_status(sc); + pi = sc->mfi_comms->hw_pi; ci = sc->mfi_comms->hw_ci; mtx_lock(&sc->mfi_io_lock); -- cgit v1.3