Re: net/realtek-re-kmod panics with debug kernel

From: Thomas Mueller <mueller6722_at_twc.com>
Date: Tue, 08 Jun 2021 10:46:07 UTC
> I've got a 12.2/amd64 desktop pc with the following on the motherboard:
> > re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe000-0xe0ff mem 0xf7404000-0xf7404fff,0xf7400000-0xf7403fff irq 33 at device 0.0 on pci4
X-CMAE-Envelope: MS4xfI3JetPKe+rXxs5wSzrdeBuaH0KZ79U/puwYX+seY/Buje1azNZvOEG3Z0BVGiFjZltB7DNnh/U0zPILHHa2NXUrIgGv2nh+2Ny9zjNGjR/6TPeOPKkT
 DpuwWO4h339PWoa55x+KvatoeBzR2/HhA+1mR+iG+b+N8QZsYhMBkn7GBHkiT1tlXxgAzsJL7AyHCQ==

> Unfortunately it's not easy to plug a new PCI NIC into it, and since re0 tends
> to hang on load, I'm using the driver from ports.
> (See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208205)

> Yesterday I compiled a kernel with all debug features in order to analyze some
> (probably unrelated) deadlock. Alas, with such features enabled, the machine
> panics at boot with:
> > _mtx_lock_sleep: recursed on non-recursive mutex re0 0 if_re.c:7085

> I don't have full data now, but I can reproduce and try to get it, if it's useful.

> Is it worth opening a bug report?

>  bye & Thanks
>       av.

I just installed, updated to FreeBSD-current amd64, and still have the problem that kept me away from FreeBSD 12.x.

I would like to try this port, install on two computers.

Both have problematic (with FreeBSD, not NetBSD, OpenBSD or Linux) re Ethernet; one more severe than the other.

I'd like to compile on the less severely affected computer, perhaps install there and surely install on the more severely affected computer.

Would I just copy the module to the second computer, which would be running NetBSD, using NFS?

Tom