On Fri, Jun 18, 2021 at 02:01:58AM -0400, Brad Smith wrote:
> On Wed, Jun 16, 2021 at 11:52:48PM -0400, Brad Smith wrote:
> > On Wed, Jun 16, 2021 at 07:46:03PM -0700, Evan Littmann wrote:
> > > I'll see if I have an adapter that works.
> > >
> > > I took a photo of the screen and ran it through an online optical
> > > character
> > > recognition site so I didn't have to fix or type much.
> > >
> > > On Mon, Jun 14, 2021, 1:29 PM Stuart Henderson <[email protected]>
> > > wrote:
> > >
> > > > On 2021/06/14 20:32, Mark Kettenis wrote:
> > > > > > From: Evan Littmann <[email protected]>
> > > > > > Date: Sun, 13 Jun 2021 17:28:50 -0700
> > > > > >
> > > > > > Hello,
> > > > > >
> > > > > > I am using OpenBSD 6.9 on an HP EliteDesk 705 G1 desktop mini and it
> > > > can't
> > > > > > boot after install due to a panic in mii_phy_setmedia related to the
> > > > bge
> > > > > > driver which might be related to this bug
> > > > > >
> > > > http://openbsd-archive.7691.n7.nabble.com/possible-bug-in-mii-physubr-c-with-Broadcom-BCM57780-td162423.html
> > > > .
> > > > > > The full hardware list of this machine is at
> > > > > > https://support.hp.com/bg-en/document/c04424260.
> > > > > >
> > > > > > It boots from a USB thumb drive and installs to disk using the
> > > > Broadcom NIC
> > > > > > to grab the sets over http, but there is an error while booting the
> > > > normal
> > > > > > kernel. I can't use ddb as the keyboard doesn't work after the
> > > > > > crash. I
> > > > > > have tried many keyboards in each of the USB ports and none of them
> > > > work.
> > > > > > It boots from bsd.rd.
> > > > > >
> > > > > > I have tried changing the BIOS network adapter settings including
> > > > changing
> > > > > > autonegotiation and nothing affects this crash.
> > > > >
> > > > > Not much we can do without a full dmesg unfortunately.
> > > >
> > > > One way to get that would be to use a USB ethernet adapter and avoid
> > > > configuring network on the bge interface when installing.
> > > >
> > > > > > This is the message:
> > > > > > pf enabled
> > > > > > starting network
> > > > > > panic: mii_phy_setmedia
> > > > > > Stopped at db_enter+0x10: popq %rbp
> > > > > > TID P UID PRFLAGS PFLAGS CPU COMMAND
> > > > > > *390667 43405 0 0x3 0 0K ifconfig
> > > > > > db_enter() at db_enter+0x10
> > > > > > panic(ffffffff81e3ccaf) at panic+0x12a
> > > > > > mii_phy_setmedia(ffff80000017e800) at mii_phy_setmedia+0x154
> > > > > > ukphy.service(ffff80000017e800,ffff800000465730,2) at
> > > > ukphy_service+0x69
> > > > > > mii_mediachg(ffff800000465730) at mii_mediachg+0x58
> > > > > > bge_stop(ffff800000465000,0) at bge_stop+0xc29
> > > > > > bge_init(ffff800000465000) at bge_init+0x2a
> > > > > > bge_ioctl(ffff800000465048,8020690c,ffff800000a91900) at
> > > > bge_ioctl+0x2d5
> > > > > > in_ifinit(ffff800000465048,ffff800000a91900,ffff800023797410,1) at
> > > > > > in_ifinit+0xf3
> > > > > > in_ioctl_change_ifaddr(8040691a,ffff800023797400,ffff800000465048,1)
> > > > > > at
> > > > > > in_ioctl_change_ifaddr+0x385
> > > > > > in_ioctl(8040691a,ffff800023797400,ffff800000465048,1) at
> > > > > > in_ioctl+0xfb
> > > > > > ifioctl(fffffd81f70c3008,8040691a,ffff800023797400,ffff8000237b6d28)
> > > > > > at
> > > > > > ifioctl+0xa2d
> > > > > > soo_ioctl(fffffd8218c77870,8040691a,ffff800023797400,ffff8000237b6d28)
> > > > at
> > > > > > soo_ioctl+0x171
> > > > > > sys_ioctl(ffff8000237b6d28,ffff800023797510,ffff800023797570) at
> > > > > > sys_ioctI+0x2d4 end trace frame: 0xffff8000237975d0, count: 0
> > > > > > https://www.openbsd.orgiddb.html describes the minimum info required
> > > > in bug
> > > > > > reports. Insufficient info makes it difficult to find and fix bugs.
> > > > > > ddb{0}>
> > > >
> > > > Thanks for sending that as text rather than just a photo :)
> >
> > I asked Evan to look at dmesg output booting from USB. He said it was
> > as shown below. I was looking for something else and ran into the thread
> > below which is the same system.
> >
> > https://marc.info/?t=153427141100002&r=1&w=2
> >
> > For a full dmesg.
> >
> > https://marc.info/?l=openbsd-bugs&m=154341077015782&q=p3
> >
> > ukphy0 at bge0 phy 1: Generic IEEE 802.3u media interface, rev. 0: OUI
> > 0x180361, model 0x0038
> >
> > The BCM5762 PHY needs to be added to miidevs and brgphy(4).
>
> Also recognize the BCM5762 rev.
>
> unknown BCM5762 (0x5762100)
thanks, committed
>
>
> Index: if_bge.c
> ===================================================================
> RCS file: /home/cvs/src/sys/dev/pci/if_bge.c,v
> retrieving revision 1.395
> diff -u -p -u -p -r1.395 if_bge.c
> --- if_bge.c 12 Jun 2021 09:26:47 -0000 1.395
> +++ if_bge.c 18 Jun 2021 05:45:37 -0000
> @@ -392,6 +392,7 @@ static const struct bge_revision {
> { BGE_CHIPID_BCM5761_A0, "BCM5761 A0" },
> { BGE_CHIPID_BCM5761_A1, "BCM5761 A1" },
> { BGE_CHIPID_BCM5762_A0, "BCM5762 A0" },
> + { BGE_CHIPID_BCM5762_B0, "BCM5762 B0" },
> { BGE_CHIPID_BCM5784_A0, "BCM5784 A0" },
> { BGE_CHIPID_BCM5784_A1, "BCM5784 A1" },
> /* the 5754 and 5787 share the same ASIC ID */
> Index: if_bgereg.h
> ===================================================================
> RCS file: /home/cvs/src/sys/dev/pci/if_bgereg.h,v
> retrieving revision 1.132
> diff -u -p -u -p -r1.132 if_bgereg.h
> --- if_bgereg.h 19 Apr 2021 17:03:49 -0000 1.132
> +++ if_bgereg.h 18 Jun 2021 05:45:18 -0000
> @@ -308,6 +308,7 @@
> #define BGE_CHIPID_BCM5719_A1 0x05719001
> #define BGE_CHIPID_BCM5720_A0 0x05720000
> #define BGE_CHIPID_BCM5762_A0 0x05762000
> +#define BGE_CHIPID_BCM5762_B0 0x05762100
> #define BGE_CHIPID_BCM57765_A0 0x57785000
> #define BGE_CHIPID_BCM57765_B0 0x57785100
> #define BGE_CHIPID_BCM57766_A0 0x57766000
>
>