Date: Sat, 25 Nov 2017 21:46:51 +0000 (UTC) From: Nathan Whitehorn <nwhitehorn@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r326204 - head/sys/dev/ofw Message-ID: <201711252146.vAPLkp8u051782@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: nwhitehorn Date: Sat Nov 25 21:46:51 2017 New Revision: 326204 URL: https://svnweb.freebsd.org/changeset/base/326204 Log: Do not bind to CPUs with SMT, which use a different CPU numbering convention that does not play well with this driver. MFC after: 2 weeks Modified: head/sys/dev/ofw/ofw_cpu.c Modified: head/sys/dev/ofw/ofw_cpu.c ============================================================================== --- head/sys/dev/ofw/ofw_cpu.c Sat Nov 25 21:45:51 2017 (r326203) +++ head/sys/dev/ofw/ofw_cpu.c Sat Nov 25 21:46:51 2017 (r326204) @@ -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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201711252146.vAPLkp8u051782>