Michael Chan df3e654818 [TG3]: Add recovery logic when MMIOs are re-ordered
Add recovery logic when we suspect that the system is re-ordering
MMIOs. Re-ordered MMIOs to the send mailbox can cause bogus tx
completions and hit BUG_ON() in the tx completion path.

tg3 already has logic to handle re-ordered MMIOs by flushing the MMIOs
that must be strictly ordered (such as the send mailbox).  Determining
when to enable the flush is currently a manual process of adding known
chipsets to a list.

The new code replaces the BUG_ON() in the tx completion path with the
call to tg3_tx_recover(). It will set the TG3_FLAG_MBOX_WRITE_REORDER
flag and reset the chip later in the workqueue to recover and start
flushing MMIOs to the mailbox.

A message to report the problem will be printed. We will then decide
whether or not to add the host bridge to the list of chipsets that do
re-ordering.

We may add some additional code later to print the host bridge's ID so
that the user can report it more easily.

The assumption that re-ordering can only happen on x86 systems is also
removed.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-06-17 21:26:26 -07:00
..
2006-06-10 11:02:05 -07:00
2006-06-17 10:44:26 -07:00
2006-06-17 21:25:58 -07:00
2006-05-03 20:05:41 -07:00
2006-05-21 12:59:18 -07:00
2006-04-11 06:18:43 -07:00
2006-06-05 12:29:17 -07:00
2006-05-03 20:05:41 -07:00
2006-03-23 07:38:16 -08:00
2006-03-24 18:23:14 +01:00
2006-06-17 21:18:43 -07:00
2006-06-17 21:18:43 -07:00