Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2019 00:56:55 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 238730] r349985 on ppc64 IBM 970MP PowerMac G5 possible panic in bus_generic_new_pass
Message-ID:  <bug-238730-227-7hEuLXIOuz@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-238730-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-238730-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D238730

--- Comment #22 from Dennis Clarke <dclarke@blastwave.org> ---
(In reply to Andriy Gapon from comment #16)

With a small change :

hydra# diff -u sys/dev/bge/if_bge.c.orig sys/dev/bge/if_bge.c
--- sys/dev/bge/if_bge.c.orig   2019-07-15 19:02:10.169287000 +0000
+++ sys/dev/bge/if_bge.c        2019-07-15 23:10:50.382654000 +0000
@@ -3276,6 +3276,8 @@
                bus =3D device_get_parent(dev);
                if (device_get_devclass(dev) !=3D pcib)
                        break;
+               if (device_get_devclass(bus) !=3D pci)
+                       break;
                for (i =3D 0; i < nitems(mbox_reorder_lists); i++) {
                        if (pci_get_vendor(dev) =3D=3D
                            mbox_reorder_lists[i].vendor &&
@@ -3287,8 +3289,6 @@
                                return (1);
                        }
                }
-               if (device_get_devclass(bus) !=3D pci)
-                       break;
        }
        return (0);
 }
hydra#=20

.
.
.
--------------------------------------------------------------
>>> Installing kernel GENERIC64 completed on Tue Jul 16 00:37:19 GMT 2019
--------------------------------------------------------------
real 5065.02
user 2645.07
sys 2252.04
hydra#

Reboot and tell the boot loader :=20

    set kern.smp.disabled=3D1=20

All boots fine.  No ethernet re-order seen either which is excellent.


hydra#=20
hydra# uname -a=20
FreeBSD hydra 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r350018M: Mon Jul 15
23:32:27 GMT 2019=20=20=20=20
root@hydra:/usr/obj/usr/src/r350018/powerpc.powerpc64/sys/GENERIC64  powerpc
hydra# sysctl -a | grep 'smp'
kern.smp.maxid: 3
kern.smp.maxcpus: 256
kern.smp.active: 0
kern.smp.disabled: 1
kern.smp.cpus: 1
kern.smp.threads_per_core: 1
kern.smp.cores: 1
kern.smp.topology: 0
kern.smp.forward_signal_enabled: 1
"devfs","crossmp"
hydra#=20

I will try a boot wherein I say nothing to the boot loader.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-238730-227-7hEuLXIOuz>