[Bug 277849] [bge] panic when attaching if_bge on Supermicro H13SSL-N

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 31 Oct 2024 10:04:39 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277849

--- Comment #5 from Zhenlei Huang <zlei@FreeBSD.org> ---
(In reply to Martin Matuska from comment #2)
> with unpopulated ifm:
> ifm->ifm_mask = 0
> ifm->ifm_media = 0
> ifm->ifm_cur = 0x0
> ifm->ifm_change = 0x0
> ifm->ifm_status = 0x0

That looks weird.

From line 3821 to 3842, either TBI mode or not the ifmedia data is initialized
correctly.

For if_bge, the ifp->if_ioctl should be bge_ioctl(). Can you get that frame (
if possible ), and examine `sc->bge_flags`, `sc->bge_ifmedia` and
`sc->bge_miibus->softc->mii_media` ? sc == ifp->if_softc .

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