[Bug 174849] [bxe] bxe driver can hang kernel when reset

[email protected] Thu, 28 May 2026 15:52:10 +0000
Newsgroups gmane.os.freebsd.devel.net
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=174849

--- Comment #7 from Benjamin Jacobs <[email protected]> ---
I cannot reproduce the original hang. CURRENT/GENERIC survives looping on
`ifconfig bxe2 down; ifconfig bxe2 up` while generating some small http
requests on the interface.

The card is a 4 ports bcm57800 (netXtreme II).

bxe0@pci0:7:0:0:        class=0x020000 rev=0x10 hdr=0x00 vendor=0x14e4
device=0x168a subvendor=0x1014 subdevice=0x0493
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'NetXtreme II BCM57800 1/10 Gigabit Ethernet'
    class      = network
    subclass   = ethernet
bxe1@pci0:7:0:1:        class=0x020000 rev=0x10 hdr=0x00 vendor=0x14e4
device=0x168a subvendor=0x1014 subdevice=0x0493
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'NetXtreme II BCM57800 1/10 Gigabit Ethernet'
    class      = network
    subclass   = ethernet
bxe2@pci0:7:0:2:        class=0x020000 rev=0x10 hdr=0x00 vendor=0x14e4
device=0x168a subvendor=0x1014 subdevice=0x0494
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'NetXtreme II BCM57800 1/10 Gigabit Ethernet'
    class      = network
    subclass   = ethernet
bxe3@pci0:7:0:3:        class=0x020000 rev=0x10 hdr=0x00 vendor=0x14e4
device=0x168a subvendor=0x1014 subdevice=0x0494
    vendor     = 'Broadcom Inc. and subsidiaries'
    device     = 'NetXtreme II BCM57800 1/10 Gigabit Ethernet'
    class      = network
    subclass   = ethernet


There is however a bug introduced by the ilog2 refactoring
(b0056b31e90029553894d17c441cbb2c06d31412 "libkern: add ilog2 macro"). It works
by accident on non-INVARIANT kernel and on amd64. The fix is trivial. I'd like
to create another PR for that.

-- 
You are receiving this mail because:
You are the assignee for the bug.