CVS commit: src/sys/arch/sparc/sparc

2021-05-28 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat May 29 02:58:38 UTC 2021

Modified Files:
src/sys/arch/sparc/sparc: cpu.c

Log Message:
report to the scheduler if we have different speed cpus.


To generate a diff of this commit:
cvs rdiff -u -r1.259 -r1.260 src/sys/arch/sparc/sparc/cpu.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc/sparc/cpu.c
diff -u src/sys/arch/sparc/sparc/cpu.c:1.259 src/sys/arch/sparc/sparc/cpu.c:1.260
--- src/sys/arch/sparc/sparc/cpu.c:1.259	Sun Jan 24 07:36:54 2021
+++ src/sys/arch/sparc/sparc/cpu.c	Sat May 29 02:58:37 2021
@@ -1,4 +1,4 @@
-/*	$NetBSD: cpu.c,v 1.259 2021/01/24 07:36:54 mrg Exp $ */
+/*	$NetBSD: cpu.c,v 1.260 2021/05/29 02:58:37 mrg Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -52,7 +52,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.259 2021/01/24 07:36:54 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.260 2021/05/29 02:58:37 mrg Exp $");
 
 #include "opt_multiprocessor.h"
 #include "opt_lockdebug.h"
@@ -520,6 +520,19 @@ cpu_attach(struct cpu_softc *sc, int nod
 	 */
 	if (bootmid == 0)
 		bootmid = mid;
+
+	/*
+	 * Set speeds now we've attached all CPUs.
+	 */
+	if (sparc_ncpus > 1 && sparc_ncpus == cpu_attach_count) {
+		CPU_INFO_ITERATOR n;
+		unsigned best_hz = 0;
+
+		for (CPU_INFO_FOREACH(n, cpi))
+			best_hz = MAX(cpi->hz, best_hz);
+		for (CPU_INFO_FOREACH(n, cpi))
+			cpu_topology_setspeed(cpi, cpi->hz < best_hz);
+	}
 }
 
 /*



CVS commit: src/distrib/notes

2021-05-28 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Fri May 28 13:55:25 UTC 2021

Modified Files:
src/distrib/notes/amd64: hardware
src/distrib/notes/common: sysinst

Log Message:
PR 55413: 64-bit and OK police; grammar improvements.
>From Michael Siegel.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/distrib/notes/amd64/hardware
cvs rdiff -u -r1.111 -r1.112 src/distrib/notes/common/sysinst

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/distrib/notes/amd64/hardware
diff -u src/distrib/notes/amd64/hardware:1.1 src/distrib/notes/amd64/hardware:1.2
--- src/distrib/notes/amd64/hardware:1.1	Sun Aug 21 18:35:26 2005
+++ src/distrib/notes/amd64/hardware	Fri May 28 13:55:24 2021
@@ -1,6 +1,6 @@
-.\"$NetBSD: hardware,v 1.1 2005/08/21 18:35:26 riz Exp $
+.\"$NetBSD: hardware,v 1.2 2021/05/28 13:55:24 martin Exp $
 .
 .Nx*M
-supports CPUs that implement the 64bit AMD64 architecture.
+supports CPUs that implement the 64-bit AMD64 architecture.
 These currently include AMD Opteron, AMD Athlon64, and Intel CPUs that 
 implement the EM64T extension.

Index: src/distrib/notes/common/sysinst
diff -u src/distrib/notes/common/sysinst:1.111 src/distrib/notes/common/sysinst:1.112
--- src/distrib/notes/common/sysinst:1.111	Thu May 27 15:47:42 2021
+++ src/distrib/notes/common/sysinst	Fri May 28 13:55:24 2021
@@ -1,4 +1,4 @@
-.\"	$NetBSD: sysinst,v 1.111 2021/05/27 15:47:42 martin Exp $
+.\"	$NetBSD: sysinst,v 1.112 2021/05/28 13:55:24 martin Exp $
 .\"
 .\" Copyright (c) 1999-2012 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -509,7 +509,7 @@ See the section on
 When prompted, choose
 .Me CD-ROM
 as the install medium if booted from CD-ROM.
-The default values for the path and device should be ok.
+The default values for the path and device should be OK.
 .if \n[amd64]:\n[i386] \{\
 If you booted using a USB image, choose
 .Me Local directory .
@@ -745,7 +745,7 @@ It will also include instructions for us
 .Pp
 If you do not intend to use networking during the installation,
 but you do want your machine to be configured for networking once
-it is installed, you should first go to the
+the system is installed, you should first go to the
 .Me Utility menu
 and select the
 .Me Configure network
@@ -1287,7 +1287,7 @@ the option to install a bootselector, wh
 to pick the operating system to start up when your computer
 is (re-)started.
 .Pp
-If everything is ok, you can go on to the next step,
+If everything is OK, you can go on to the next step,
 editing the
 .Nx
 disklabel.



CVS commit: src/sys/arch/alpha/conf

2021-05-28 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Fri May 28 07:33:02 UTC 2021

Modified Files:
src/sys/arch/alpha/conf: GENERIC

Log Message:
 Add ixg* (commented out). Tested with rin@'s AlphaServer DS10.


To generate a diff of this commit:
cvs rdiff -u -r1.410 -r1.411 src/sys/arch/alpha/conf/GENERIC

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/conf/GENERIC
diff -u src/sys/arch/alpha/conf/GENERIC:1.410 src/sys/arch/alpha/conf/GENERIC:1.411
--- src/sys/arch/alpha/conf/GENERIC:1.410	Mon Sep 28 03:30:47 2020
+++ src/sys/arch/alpha/conf/GENERIC	Fri May 28 07:33:02 2021
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.410 2020/09/28 03:30:47 thorpej Exp $
+# $NetBSD: GENERIC,v 1.411 2021/05/28 07:33:02 msaitoh Exp $
 #
 # This machine description file is used to generate the default NetBSD
 # kernel.
@@ -19,7 +19,7 @@ include 	"arch/alpha/conf/std.alpha"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-ident		"GENERIC-$Revision: 1.410 $"
+ident		"GENERIC-$Revision: 1.411 $"
 
 maxusers 32
 
@@ -311,6 +311,7 @@ fxp*	at	pci? dev ? function ?		# Intel E
 gsip*	at	pci? dev ? function ?		# NS DP83820 Gigabit Ethernet
 iha*	at	pci? dev ? function ?		# Initio INIC-940/950 SCSI
 isp*	at	pci? dev ? function ?		# Qlogic ISP 10x0 SCSI
+#ixg*	at	pci? dev ? function ?		# Intel 8259x 10G Ethernet
 pcn*	at	pci? dev ? function ?		# PCnet-PCI Ethernet
 sf*	at	pci? dev ? function ?		# Adaptec AIC-6915 Ethernet
 siop*	at	pci? dev ? function ?		# Symbios 53c8xx SCSI