Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Mar 2018 03:43:49 +0000 (UTC)
From:      Kyle Evans <kevans@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r330903 - stable/11/sys/dev/ofw
Message-ID:  <201803140343.w2E3hnxg051171@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803140343.w2E3hnxg051171>