opnsense-src/sys/dev/re
Jérémie Jourdin 035809c46f re(4): harden re_watchdog() recovery and log controller state
Distinguish the two failure classes from the PR in a single log line
(ring indices, ISR/IMR, TXCFG, interrupt mode): lost interrupt vs
genuine DMA stall.

Bail out instead of re-initializing when the controller reads back
all-ones (fallen off the bus; reinit cannot help).

Re-assert the driver's existing ASPM-disabled policy before reinit,
since firmware/power transitions re-arming L0s/L1 is a documented
stall trigger.

Diagnostics-only on the recovered path; no fast-path change.

* Field diagnostics running on an RTL8168H production fleet; the log
  format distinguishes lost-doorbell / DMA-stall / dead-controller
  without a debug build.

Reviewed by:	adrian
Differential Revision:	https://reviews.freebsd.org/D58279
PR: kern/166724

(cherry picked from commit 42f3088bd980a469dbbc3e6b568edb7ce0ab2bc3)
2026-11-09 22:08:42 +01:00
..
if_re.c re(4): harden re_watchdog() recovery and log controller state 2026-11-09 22:08:42 +01:00