svn commit: r330903 - stable/11/sys/dev/ofw
Kyle Evans
kevans at FreeBSD.org
Wed Mar 14 03:43:50 UTC 2018
Author: kevans
Date: Wed Mar 14 03:43:49 2018
New Revision: 330903
URL: https://svnweb.freebsd.org/changeset/base/330903
Log:
MFC r326204: Do not bind to CPUs with SMT
Do not bind to CPUs with SMT, which use a different CPU numbering convention
that does not play well with this driver.
Modified:
stable/11/sys/dev/ofw/ofw_cpu.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/dev/ofw/ofw_cpu.c
==============================================================================
--- stable/11/sys/dev/ofw/ofw_cpu.c Wed Mar 14 03:41:07 2018 (r330902)
+++ stable/11/sys/dev/ofw/ofw_cpu.c Wed Mar 14 03:43:49 2018 (r330903)
@@ -191,6 +191,10 @@ ofw_cpu_probe(device_t dev)
if (type == NULL || strcmp(type, "cpu") != 0)
return (ENXIO);
+ /* Skip SMT CPUs, which we can't reasonably represent with this code */
+ if (OF_hasprop(ofw_bus_get_node(dev), "ibm,ppc-interrupt-server#s"))
+ return (ENXIO);
+
device_set_desc(dev, "Open Firmware CPU");
return (0);
}
More information about the svn-src-stable-11
mailing list