CVS commit: src/sys/arch/x86/x86

2020-07-14 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Tue Jul 14 15:59:21 UTC 2020

Modified Files:
src/sys/arch/x86/x86: idt.c

Log Message:
mark diagused variable as such

fixing non DIAGNOSTIC builds


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/x86/idt.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/x86/x86/idt.c
diff -u src/sys/arch/x86/x86/idt.c:1.13 src/sys/arch/x86/x86/idt.c:1.14
--- src/sys/arch/x86/x86/idt.c:1.13	Tue Jul 14 00:45:53 2020
+++ src/sys/arch/x86/x86/idt.c	Tue Jul 14 15:59:21 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: idt.c,v 1.13 2020/07/14 00:45:53 yamaguchi Exp $	*/
+/*	$NetBSD: idt.c,v 1.14 2020/07/14 15:59:21 para Exp $	*/
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 2000, 2009 The NetBSD Foundation, Inc.
@@ -65,7 +65,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.13 2020/07/14 00:45:53 yamaguchi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: idt.c,v 1.14 2020/07/14 15:59:21 para Exp $");
 
 #include "opt_pcpu_idt.h"
 
@@ -198,7 +198,7 @@ void
 idt_vec_set(struct idt_vec *iv, int vec, void (*function)(void))
 {
 	idt_descriptor_t *idt;
-	char *idt_allocmap = iv->iv_allocmap;
+	char *idt_allocmap __diagused = iv->iv_allocmap;
 
 	KASSERT(idt_allocmap[vec] == 1);
 	idt = iv->iv_idt;



CVS commit: src/sys/arch/x86/x86

2020-07-14 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Tue Jul 14 15:59:21 UTC 2020

Modified Files:
src/sys/arch/x86/x86: idt.c

Log Message:
mark diagused variable as such

fixing non DIAGNOSTIC builds


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/sys/arch/x86/x86/idt.c

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



CVS commit: src/common/lib/libc/gen

2020-01-12 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Sun Jan 12 20:00:41 UTC 2020

Modified Files:
src/common/lib/libc/gen: radixtree.c

Log Message:
initialize radix_tree_node_cache with PR_LARGECACHE

this increases the cache groups from 15 to 63 items in order
to reduce traffic between pool cache layers
this is the same as for other highly frequented pool caches as the pvpool and 
anonpool


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/common/lib/libc/gen/radixtree.c

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

Modified files:

Index: src/common/lib/libc/gen/radixtree.c
diff -u src/common/lib/libc/gen/radixtree.c:1.20 src/common/lib/libc/gen/radixtree.c:1.21
--- src/common/lib/libc/gen/radixtree.c:1.20	Thu Dec  5 19:03:39 2019
+++ src/common/lib/libc/gen/radixtree.c	Sun Jan 12 20:00:41 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $	*/
+/*	$NetBSD: radixtree.c,v 1.21 2020/01/12 20:00:41 para Exp $	*/
 
 /*-
  * Copyright (c)2011,2012,2013 YAMAMOTO Takashi,
@@ -112,7 +112,7 @@
 #include 
 
 #if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: radixtree.c,v 1.21 2020/01/12 20:00:41 para Exp $");
 #include 
 #include 
 #include 
@@ -122,7 +122,7 @@ __KERNEL_RCSID(0, "$NetBSD: radixtree.c,
 #include 
 #endif /* defined(_STANDALONE) */
 #else /* defined(_KERNEL) || defined(_STANDALONE) */
-__RCSID("$NetBSD: radixtree.c,v 1.20 2019/12/05 19:03:39 ad Exp $");
+__RCSID("$NetBSD: radixtree.c,v 1.21 2020/01/12 20:00:41 para Exp $");
 #include 
 #include 
 #include 
@@ -345,7 +345,7 @@ radix_tree_init(void)
 {
 
 	radix_tree_node_cache = pool_cache_init(sizeof(struct radix_tree_node),
-	coherency_unit, 0, 0, "radixnode", NULL, IPL_NONE,
+	coherency_unit, 0, PR_LARGECACHE, "radixnode", NULL, IPL_NONE,
 	radix_tree_node_ctor, NULL, NULL);
 	KASSERT(radix_tree_node_cache != NULL);
 }



CVS commit: src/common/lib/libc/gen

2020-01-12 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Sun Jan 12 20:00:41 UTC 2020

Modified Files:
src/common/lib/libc/gen: radixtree.c

Log Message:
initialize radix_tree_node_cache with PR_LARGECACHE

this increases the cache groups from 15 to 63 items in order
to reduce traffic between pool cache layers
this is the same as for other highly frequented pool caches as the pvpool and 
anonpool


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/common/lib/libc/gen/radixtree.c

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



CVS commit: src/sys

2020-01-05 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Sun Jan  5 15:57:15 UTC 2020

Modified Files:
src/sys/rump/librump/rumpkern: vm.c
src/sys/uvm: uvm_map.c uvm_map.h

Log Message:
remove unused predicate function

likely unused since kmem changes


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/rump/librump/rumpkern/vm.c
cvs rdiff -u -r1.369 -r1.370 src/sys/uvm/uvm_map.c
cvs rdiff -u -r1.75 -r1.76 src/sys/uvm/uvm_map.h

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

Modified files:

Index: src/sys/rump/librump/rumpkern/vm.c
diff -u src/sys/rump/librump/rumpkern/vm.c:1.181 src/sys/rump/librump/rumpkern/vm.c:1.182
--- src/sys/rump/librump/rumpkern/vm.c:1.181	Thu Jan  2 16:56:58 2020
+++ src/sys/rump/librump/rumpkern/vm.c	Sun Jan  5 15:57:15 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: vm.c,v 1.181 2020/01/02 16:56:58 ad Exp $	*/
+/*	$NetBSD: vm.c,v 1.182 2020/01/05 15:57:15 para Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -41,7 +41,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.181 2020/01/02 16:56:58 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vm.c,v 1.182 2020/01/05 15:57:15 para Exp $");
 
 #include 
 #include 
@@ -684,16 +684,6 @@ uvm_estimatepageable(int *active, int *i
 	*inactive = 1024;
 }
 
-bool
-vm_map_starved_p(struct vm_map *map)
-{
-
-	if (map->flags & VM_MAP_WANTVA)
-		return true;
-
-	return false;
-}
-
 int
 uvm_loan(struct vm_map *map, vaddr_t start, vsize_t len, void *v, int flags)
 {

Index: src/sys/uvm/uvm_map.c
diff -u src/sys/uvm/uvm_map.c:1.369 src/sys/uvm/uvm_map.c:1.370
--- src/sys/uvm/uvm_map.c:1.369	Tue Dec 31 22:42:51 2019
+++ src/sys/uvm/uvm_map.c	Sun Jan  5 15:57:15 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.c,v 1.369 2019/12/31 22:42:51 ad Exp $	*/
+/*	$NetBSD: uvm_map.c,v 1.370 2020/01/05 15:57:15 para Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -66,7 +66,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.369 2019/12/31 22:42:51 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_map.c,v 1.370 2020/01/05 15:57:15 para Exp $");
 
 #include "opt_ddb.h"
 #include "opt_pax.h"
@@ -4788,20 +4788,6 @@ uvm_map_reference(struct vm_map *map)
 	mutex_exit(>misc_lock);
 }
 
-bool
-vm_map_starved_p(struct vm_map *map)
-{
-
-	if ((map->flags & VM_MAP_WANTVA) != 0) {
-		return true;
-	}
-	/* XXX */
-	if ((vm_map_max(map) - vm_map_min(map)) / 16 * 15 < map->size) {
-		return true;
-	}
-	return false;
-}
-
 void
 uvm_map_lock_entry(struct vm_map_entry *entry)
 {

Index: src/sys/uvm/uvm_map.h
diff -u src/sys/uvm/uvm_map.h:1.75 src/sys/uvm/uvm_map.h:1.76
--- src/sys/uvm/uvm_map.h:1.75	Thu Aug  1 02:28:55 2019
+++ src/sys/uvm/uvm_map.h	Sun Jan  5 15:57:15 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: uvm_map.h,v 1.75 2019/08/01 02:28:55 riastradh Exp $	*/
+/*	$NetBSD: uvm_map.h,v 1.76 2020/01/05 15:57:15 para Exp $	*/
 
 /*
  * Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -316,8 +316,6 @@ int		uvm_mapent_trymerge(struct vm_map *
 		struct vm_map_entry *, int);
 #define	UVM_MERGE_COPYING	1
 
-bool		vm_map_starved_p(struct vm_map *);
-
 /*
  * VM map locking operations.
  */



CVS commit: src/sys

2020-01-05 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Sun Jan  5 15:57:15 UTC 2020

Modified Files:
src/sys/rump/librump/rumpkern: vm.c
src/sys/uvm: uvm_map.c uvm_map.h

Log Message:
remove unused predicate function

likely unused since kmem changes


To generate a diff of this commit:
cvs rdiff -u -r1.181 -r1.182 src/sys/rump/librump/rumpkern/vm.c
cvs rdiff -u -r1.369 -r1.370 src/sys/uvm/uvm_map.c
cvs rdiff -u -r1.75 -r1.76 src/sys/uvm/uvm_map.h

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



CVS commit: src/external/bsd/blacklist/bin

2019-11-06 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Nov  6 20:33:30 UTC 2019

Modified Files:
src/external/bsd/blacklist/bin: blacklistd.conf.5

Log Message:
fix stupid typo...


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/blacklist/bin/blacklistd.conf.5

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



CVS commit: src/external/bsd/blacklist/bin

2019-11-06 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Nov  6 20:33:30 UTC 2019

Modified Files:
src/external/bsd/blacklist/bin: blacklistd.conf.5

Log Message:
fix stupid typo...


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/external/bsd/blacklist/bin/blacklistd.conf.5

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

Modified files:

Index: src/external/bsd/blacklist/bin/blacklistd.conf.5
diff -u src/external/bsd/blacklist/bin/blacklistd.conf.5:1.8 src/external/bsd/blacklist/bin/blacklistd.conf.5:1.9
--- src/external/bsd/blacklist/bin/blacklistd.conf.5:1.8	Wed Nov  6 20:29:41 2019
+++ src/external/bsd/blacklist/bin/blacklistd.conf.5	Wed Nov  6 20:33:30 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: blacklistd.conf.5,v 1.8 2019/11/06 20:29:41 para Exp $
+.\" $NetBSD: blacklistd.conf.5,v 1.9 2019/11/06 20:33:30 para Exp $
 .\"
 .\" Copyright (c) 2015 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -36,7 +36,7 @@
 .Sh DESCRIPTION
 The
 .Nm
-files contain configuration entries for
+file contains configuration entries for
 .Xr blacklistd 8
 in a fashion similar to
 .Xr inetd.conf 5 .



CVS commit: src/external/bsd/blacklist/bin

2019-11-06 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Nov  6 20:29:42 UTC 2019

Modified Files:
src/external/bsd/blacklist/bin: blacklistd.conf.5

Log Message:
blacklistd.conf.5: pluralization fix

(as currently comitted in FreeBSD)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/blacklist/bin/blacklistd.conf.5

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



CVS commit: src/external/bsd/blacklist/bin

2019-11-06 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Nov  6 20:29:42 UTC 2019

Modified Files:
src/external/bsd/blacklist/bin: blacklistd.conf.5

Log Message:
blacklistd.conf.5: pluralization fix

(as currently comitted in FreeBSD)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/external/bsd/blacklist/bin/blacklistd.conf.5

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

Modified files:

Index: src/external/bsd/blacklist/bin/blacklistd.conf.5
diff -u src/external/bsd/blacklist/bin/blacklistd.conf.5:1.7 src/external/bsd/blacklist/bin/blacklistd.conf.5:1.8
--- src/external/bsd/blacklist/bin/blacklistd.conf.5:1.7	Wed Jun  7 13:50:57 2017
+++ src/external/bsd/blacklist/bin/blacklistd.conf.5	Wed Nov  6 20:29:41 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: blacklistd.conf.5,v 1.7 2017/06/07 13:50:57 wiz Exp $
+.\" $NetBSD: blacklistd.conf.5,v 1.8 2019/11/06 20:29:41 para Exp $
 .\"
 .\" Copyright (c) 2015 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -36,7 +36,7 @@
 .Sh DESCRIPTION
 The
 .Nm
-files contains configuration entries for
+files contain configuration entries for
 .Xr blacklistd 8
 in a fashion similar to
 .Xr inetd.conf 5 .



CVS commit: src/common/lib/libc/hash/murmurhash

2019-08-20 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Tue Aug 20 15:17:02 UTC 2019

Modified Files:
src/common/lib/libc/hash/murmurhash: murmurhash.c

Log Message:
add now required includes for memcpy prototypes analogue to other hash functions

(fix the build)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libc/hash/murmurhash/murmurhash.c

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



CVS commit: src/common/lib/libc/hash/murmurhash

2019-08-20 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Tue Aug 20 15:17:02 UTC 2019

Modified Files:
src/common/lib/libc/hash/murmurhash: murmurhash.c

Log Message:
add now required includes for memcpy prototypes analogue to other hash functions

(fix the build)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/common/lib/libc/hash/murmurhash/murmurhash.c

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

Modified files:

Index: src/common/lib/libc/hash/murmurhash/murmurhash.c
diff -u src/common/lib/libc/hash/murmurhash/murmurhash.c:1.7 src/common/lib/libc/hash/murmurhash/murmurhash.c:1.8
--- src/common/lib/libc/hash/murmurhash/murmurhash.c:1.7	Tue Aug 20 12:33:26 2019
+++ src/common/lib/libc/hash/murmurhash/murmurhash.c	Tue Aug 20 15:17:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: murmurhash.c,v 1.7 2019/08/20 12:33:26 riastradh Exp $	*/
+/*	$NetBSD: murmurhash.c,v 1.8 2019/08/20 15:17:02 para Exp $	*/
 
 /*
  * MurmurHash2 -- from the original code:
@@ -14,15 +14,19 @@
 #include 
 
 #if defined(_KERNEL) || defined(_STANDALONE)
-__KERNEL_RCSID(0, "$NetBSD: murmurhash.c,v 1.7 2019/08/20 12:33:26 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: murmurhash.c,v 1.8 2019/08/20 15:17:02 para Exp $");
+
+#include 
 
 #else
 
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: murmurhash.c,v 1.7 2019/08/20 12:33:26 riastradh Exp $");
+__RCSID("$NetBSD: murmurhash.c,v 1.8 2019/08/20 15:17:02 para Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include "namespace.h"
+#include 
+
 #endif
 
 #include 



CVS commit: src/distrib/sets/lists/base

2018-09-12 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Sep 12 19:55:39 UTC 2018

Modified Files:
src/distrib/sets/lists/base: mi

Log Message:
add new dir to lists


To generate a diff of this commit:
cvs rdiff -u -r1.1186 -r1.1187 src/distrib/sets/lists/base/mi

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

Modified files:

Index: src/distrib/sets/lists/base/mi
diff -u src/distrib/sets/lists/base/mi:1.1186 src/distrib/sets/lists/base/mi:1.1187
--- src/distrib/sets/lists/base/mi:1.1186	Fri Sep  7 20:44:04 2018
+++ src/distrib/sets/lists/base/mi	Wed Sep 12 19:55:39 2018
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1186 2018/09/07 20:44:04 para Exp $
+# $NetBSD: mi,v 1.1187 2018/09/12 19:55:39 para Exp $
 #
 # Note:	Don't delete entries from here - mark them as "obsolete" instead,
 #	unless otherwise stated below.
@@ -5970,6 +5970,7 @@
 ./var/chroot/named/etc/namedb			base-bind-root
 ./var/chroot/named/etc/namedb/cache		base-bind-root
 ./var/chroot/named/etc/namedb/keys		base-bind-root
+./var/chroot/named/etc/namedb/nta		base-bind-root
 ./var/chroot/named/usrbase-bind-root
 ./var/chroot/named/usr/libexec			base-bind-root
 ./var/chroot/named/varbase-bind-root



CVS commit: src/distrib/sets/lists/base

2018-09-12 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Sep 12 19:55:39 UTC 2018

Modified Files:
src/distrib/sets/lists/base: mi

Log Message:
add new dir to lists


To generate a diff of this commit:
cvs rdiff -u -r1.1186 -r1.1187 src/distrib/sets/lists/base/mi

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



CVS commit: src/distrib/sets/lists/base

2018-09-07 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Fri Sep  7 20:44:04 UTC 2018

Modified Files:
src/distrib/sets/lists/base: mi

Log Message:
fix the build

add mssing directory to sets list


To generate a diff of this commit:
cvs rdiff -u -r1.1185 -r1.1186 src/distrib/sets/lists/base/mi

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



CVS commit: src/distrib/sets/lists/base

2018-09-07 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Fri Sep  7 20:44:04 UTC 2018

Modified Files:
src/distrib/sets/lists/base: mi

Log Message:
fix the build

add mssing directory to sets list


To generate a diff of this commit:
cvs rdiff -u -r1.1185 -r1.1186 src/distrib/sets/lists/base/mi

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

Modified files:

Index: src/distrib/sets/lists/base/mi
diff -u src/distrib/sets/lists/base/mi:1.1185 src/distrib/sets/lists/base/mi:1.1186
--- src/distrib/sets/lists/base/mi:1.1185	Thu Sep  6 19:19:44 2018
+++ src/distrib/sets/lists/base/mi	Fri Sep  7 20:44:04 2018
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1185 2018/09/06 19:19:44 maxv Exp $
+# $NetBSD: mi,v 1.1186 2018/09/07 20:44:04 para Exp $
 #
 # Note:	Don't delete entries from here - mark them as "obsolete" instead,
 #	unless otherwise stated below.
@@ -5983,6 +5983,7 @@
 ./var/chroot/nsd/varbase-sys-root
 ./var/chroot/nsd/var/dbbase-sys-root
 ./var/chroot/nsd/var/db/nsd			base-sys-root
+./var/chroot/nsd/var/run			base-sys-root
 ./var/chroot/ntpdbase-ntp-root
 ./var/chroot/ntpd/devbase-ntp-root
 ./var/chroot/ntpd/etcbase-ntp-root



CVS commit: src/sys/arch/x86/pci

2018-07-25 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Jul 25 19:10:41 UTC 2018

Modified Files:
src/sys/arch/x86/pci: amdzentemp.c

Log Message:
adjust for possible 49K offset

presence of this offset is indicated by a set 19th bit which is shifted away
this brings the temperature to "normal" levels on my ryzen 2700
(I assumed the same 49K offset as the k10temp project)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x86/pci/amdzentemp.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/x86/pci/amdzentemp.c
diff -u src/sys/arch/x86/pci/amdzentemp.c:1.7 src/sys/arch/x86/pci/amdzentemp.c:1.8
--- src/sys/arch/x86/pci/amdzentemp.c:1.7	Fri Jan 26 23:01:44 2018
+++ src/sys/arch/x86/pci/amdzentemp.c	Wed Jul 25 19:10:41 2018
@@ -1,4 +1,4 @@
-/*  $NetBSD: amdzentemp.c,v 1.7 2018/01/26 23:01:44 pgoyette Exp $ */
+/*  $NetBSD: amdzentemp.c,v 1.8 2018/07/25 19:10:41 para Exp $ */
 /*  $OpenBSD: kate.c,v 1.2 2008/03/27 04:52:03 cnst Exp $   */
 
 /*
@@ -50,7 +50,7 @@
 
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: amdzentemp.c,v 1.7 2018/01/26 23:01:44 pgoyette Exp $ ");
+__KERNEL_RCSID(0, "$NetBSD: amdzentemp.c,v 1.8 2018/07/25 19:10:41 para Exp $ ");
 
 #include 
 #include 
@@ -219,6 +219,9 @@ amdzentemp_family17_refresh(struct sysmo
 	edata->state = ENVSYS_SVALID;
 	/* From C to uK. */  
 	edata->value_cur = ((temp >> 21) * 125000) + 27315;
+	/* adjust for possible offset of 49K */
+	if (temp & 0x8) 
+		edata->value_cur -= 4900;
 }
 
 MODULE(MODULE_CLASS_DRIVER, amdzentemp, "sysmon_envsys,amdsmn");



CVS commit: src/sys/arch/x86/pci

2018-07-25 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed Jul 25 19:10:41 UTC 2018

Modified Files:
src/sys/arch/x86/pci: amdzentemp.c

Log Message:
adjust for possible 49K offset

presence of this offset is indicated by a set 19th bit which is shifted away
this brings the temperature to "normal" levels on my ryzen 2700
(I assumed the same 49K offset as the k10temp project)


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x86/pci/amdzentemp.c

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



CVS commit: src/distrib/sets/lists/comp

2018-05-23 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed May 23 07:33:55 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
fix build

obsolete HMAC from cat3 as it was renamed to openssl_HMAC


To generate a diff of this commit:
cvs rdiff -u -r1.2194 -r1.2195 src/distrib/sets/lists/comp/mi

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



CVS commit: src/distrib/sets/lists/comp

2018-05-23 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Wed May 23 07:33:55 UTC 2018

Modified Files:
src/distrib/sets/lists/comp: mi

Log Message:
fix build

obsolete HMAC from cat3 as it was renamed to openssl_HMAC


To generate a diff of this commit:
cvs rdiff -u -r1.2194 -r1.2195 src/distrib/sets/lists/comp/mi

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

Modified files:

Index: src/distrib/sets/lists/comp/mi
diff -u src/distrib/sets/lists/comp/mi:1.2194 src/distrib/sets/lists/comp/mi:1.2195
--- src/distrib/sets/lists/comp/mi:1.2194	Wed May 23 02:06:03 2018
+++ src/distrib/sets/lists/comp/mi	Wed May 23 07:33:55 2018
@@ -1,4 +1,4 @@
-#	$NetBSD: mi,v 1.2194 2018/05/23 02:06:03 christos Exp $
+#	$NetBSD: mi,v 1.2195 2018/05/23 07:33:55 para Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 ./etc/mtree/set.compcomp-sys-root
@@ -4699,7 +4699,7 @@
 ./usr/share/man/cat3/GCQ_INIT.0			comp-sys-catman		.cat
 ./usr/share/man/cat3/GCQ_INIT_HEAD.0		comp-sys-catman		.cat
 ./usr/share/man/cat3/GCQ_ITEM.0			comp-sys-catman		.cat
-./usr/share/man/cat3/HMAC.0			comp-openssl		openssl
+./usr/share/man/cat3/HMAC.0			comp-obsolete		obsolete
 ./usr/share/man/cat3/IFTODT.0			comp-c-catman		.cat
 ./usr/share/man/cat3/LIST.0			comp-c-catman		.cat
 ./usr/share/man/cat3/LIST_EMPTY.0		comp-c-catman		.cat



CVS commit: src/sys/kern

2018-01-12 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Fri Jan 12 18:54:37 UTC 2018

Modified Files:
src/sys/kern: subr_pool.c

Log Message:
fix comment

pool stats are listed 'vmstat -m' not 'vmstat -i'


To generate a diff of this commit:
cvs rdiff -u -r1.220 -r1.221 src/sys/kern/subr_pool.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/kern/subr_pool.c
diff -u src/sys/kern/subr_pool.c:1.220 src/sys/kern/subr_pool.c:1.221
--- src/sys/kern/subr_pool.c:1.220	Fri Dec 29 16:13:26 2017
+++ src/sys/kern/subr_pool.c	Fri Jan 12 18:54:37 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_pool.c,v 1.220 2017/12/29 16:13:26 christos Exp $	*/
+/*	$NetBSD: subr_pool.c,v 1.221 2018/01/12 18:54:37 para Exp $	*/
 
 /*-
  * Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015
@@ -33,7 +33,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.220 2017/12/29 16:13:26 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.221 2018/01/12 18:54:37 para Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ddb.h"
@@ -71,7 +71,7 @@ __KERNEL_RCSID(0, "$NetBSD: subr_pool.c,
  * an internal pool of page headers (`phpool').
  */
 
-/* List of all pools. Non static as needed by 'vmstat -i' */
+/* List of all pools. Non static as needed by 'vmstat -m' */
 TAILQ_HEAD(, pool) pool_head = TAILQ_HEAD_INITIALIZER(pool_head);
 
 /* Private pool for page header structures */



CVS commit: src/sys/kern

2018-01-12 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Fri Jan 12 18:54:37 UTC 2018

Modified Files:
src/sys/kern: subr_pool.c

Log Message:
fix comment

pool stats are listed 'vmstat -m' not 'vmstat -i'


To generate a diff of this commit:
cvs rdiff -u -r1.220 -r1.221 src/sys/kern/subr_pool.c

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



CVS commit: src/sys

2017-07-23 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Sun Jul 23 10:55:00 UTC 2017

Modified Files:
src/sys/dev/pci: if_iwm.c
src/sys/net: if_ethersubr.c
src/sys/netinet: ip_mroute.c ip_output.c

Log Message:
kmem_intr_free kmem_intr_[z]alloced memory

the underlying pools are the same but api-wise those should match


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/dev/pci/if_iwm.c
cvs rdiff -u -r1.242 -r1.243 src/sys/net/if_ethersubr.c
cvs rdiff -u -r1.146 -r1.147 src/sys/netinet/ip_mroute.c
cvs rdiff -u -r1.282 -r1.283 src/sys/netinet/ip_output.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/dev/pci/if_iwm.c
diff -u src/sys/dev/pci/if_iwm.c:1.74 src/sys/dev/pci/if_iwm.c:1.75
--- src/sys/dev/pci/if_iwm.c:1.74	Fri Jun  9 04:48:58 2017
+++ src/sys/dev/pci/if_iwm.c	Sun Jul 23 10:55:00 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_iwm.c,v 1.74 2017/06/09 04:48:58 nonaka Exp $	*/
+/*	$NetBSD: if_iwm.c,v 1.75 2017/07/23 10:55:00 para Exp $	*/
 /*	OpenBSD: if_iwm.c,v 1.148 2016/11/19 21:07:08 stsp Exp	*/
 #define IEEE80211_NO_HT
 /*
@@ -106,7 +106,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.74 2017/06/09 04:48:58 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwm.c,v 1.75 2017/07/23 10:55:00 para Exp $");
 
 #include 
 #include 
@@ -6321,7 +6321,7 @@ iwm_newstate_cb(struct work *wk, void *v
 	int arg = iwmns->ns_arg;
 	int s;
 
-	kmem_free(iwmns, sizeof(*iwmns));
+	kmem_intr_free(iwmns, sizeof(*iwmns));
 
 	s = splnet();
 

Index: src/sys/net/if_ethersubr.c
diff -u src/sys/net/if_ethersubr.c:1.242 src/sys/net/if_ethersubr.c:1.243
--- src/sys/net/if_ethersubr.c:1.242	Thu Apr  6 03:54:59 2017
+++ src/sys/net/if_ethersubr.c	Sun Jul 23 10:55:00 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_ethersubr.c,v 1.242 2017/04/06 03:54:59 ozaki-r Exp $	*/
+/*	$NetBSD: if_ethersubr.c,v 1.243 2017/07/23 10:55:00 para Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -61,7 +61,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.242 2017/04/06 03:54:59 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ethersubr.c,v 1.243 2017/07/23 10:55:00 para Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1013,7 +1013,7 @@ ether_ifdetach(struct ifnet *ifp)
 	mutex_enter(ec->ec_lock);
 	while ((enm = LIST_FIRST(>ec_multiaddrs)) != NULL) {
 		LIST_REMOVE(enm, enm_list);
-		kmem_free(enm, sizeof(*enm));
+		kmem_intr_free(enm, sizeof(*enm));
 		ec->ec_multicnt--;
 	}
 	mutex_exit(ec->ec_lock);
@@ -1277,7 +1277,7 @@ ether_addmulti(const struct sockaddr *sa
 out:
 	mutex_exit(ec->ec_lock);
 	if (enm != NULL)
-		kmem_free(enm, sizeof(*enm));
+		kmem_intr_free(enm, sizeof(*enm));
 	return error;
 }
 
@@ -1319,7 +1319,7 @@ ether_delmulti(const struct sockaddr *sa
 	ec->ec_multicnt--;
 	mutex_exit(ec->ec_lock);
 
-	kmem_free(enm, sizeof(*enm));
+	kmem_intr_free(enm, sizeof(*enm));
 	/*
 	 * Return ENETRESET to inform the driver that the list has changed
 	 * and its reception filter should be adjusted accordingly.

Index: src/sys/netinet/ip_mroute.c
diff -u src/sys/netinet/ip_mroute.c:1.146 src/sys/netinet/ip_mroute.c:1.147
--- src/sys/netinet/ip_mroute.c:1.146	Tue Jan 24 07:09:24 2017
+++ src/sys/netinet/ip_mroute.c	Sun Jul 23 10:55:00 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_mroute.c,v 1.146 2017/01/24 07:09:24 ozaki-r Exp $	*/
+/*	$NetBSD: ip_mroute.c,v 1.147 2017/07/23 10:55:00 para Exp $	*/
 
 /*
  * Copyright (c) 1992, 1993
@@ -93,7 +93,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.146 2017/01/24 07:09:24 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ip_mroute.c,v 1.147 2017/07/23 10:55:00 para Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -1586,7 +1586,7 @@ expire_upcalls(void *v)
 struct bw_meter *x = rt->mfc_bw_meter;
 
 rt->mfc_bw_meter = x->bm_mfc_next;
-kmem_free(x, sizeof(*x));
+kmem_intr_free(x, sizeof(*x));
 			}
 
 			++mrtstat.mrts_cache_cleanups;
@@ -2530,7 +2530,7 @@ free_bw_list(struct bw_meter *list)
 
 	list = list->bm_mfc_next;
 	unschedule_bw_meter(x);
-	kmem_free(x, sizeof(*x));
+	kmem_intr_free(x, sizeof(*x));
 }
 }
 
@@ -2589,7 +2589,7 @@ del_bw_upcall(struct bw_upcall *req)
 	unschedule_bw_meter(x);
 	splx(s);
 	/* Free the bw_meter entry */
-	kmem_free(x, sizeof(*x));
+	kmem_intr_free(x, sizeof(*x));
 	return 0;
 	} else {
 	splx(s);

Index: src/sys/netinet/ip_output.c
diff -u src/sys/netinet/ip_output.c:1.282 src/sys/netinet/ip_output.c:1.283
--- src/sys/netinet/ip_output.c:1.282	Tue Jul  4 10:25:45 2017
+++ src/sys/netinet/ip_output.c	Sun Jul 23 10:55:00 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ip_output.c,v 1.282 2017/07/04 10:25:45 roy Exp $	*/
+/*	$NetBSD: ip_output.c,v 1.283 2017/07/23 10:55:00 para Exp $	*/
 
 /*
  * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -91,7 +91,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: 

CVS commit: src/sys

2017-07-23 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Sun Jul 23 10:55:00 UTC 2017

Modified Files:
src/sys/dev/pci: if_iwm.c
src/sys/net: if_ethersubr.c
src/sys/netinet: ip_mroute.c ip_output.c

Log Message:
kmem_intr_free kmem_intr_[z]alloced memory

the underlying pools are the same but api-wise those should match


To generate a diff of this commit:
cvs rdiff -u -r1.74 -r1.75 src/sys/dev/pci/if_iwm.c
cvs rdiff -u -r1.242 -r1.243 src/sys/net/if_ethersubr.c
cvs rdiff -u -r1.146 -r1.147 src/sys/netinet/ip_mroute.c
cvs rdiff -u -r1.282 -r1.283 src/sys/netinet/ip_output.c

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



CVS commit: src/sys/netinet

2017-06-02 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Fri Jun  2 19:10:19 UTC 2017

Modified Files:
src/sys/netinet: wqinput.c

Log Message:
pool_init does not copy its name argument
therefore don't pass in a stack allocated buffer

vmstat -mv shows pool(s) with broken name(s)

use the name argument passed into wqinput_create directly
which is a static string in all 4 callee cases

(workqueue_create/workqueue_init copies the name argument)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/wqinput.c

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



CVS commit: src/sys/netinet

2017-06-02 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Fri Jun  2 19:10:19 UTC 2017

Modified Files:
src/sys/netinet: wqinput.c

Log Message:
pool_init does not copy its name argument
therefore don't pass in a stack allocated buffer

vmstat -mv shows pool(s) with broken name(s)

use the name argument passed into wqinput_create directly
which is a static string in all 4 callee cases

(workqueue_create/workqueue_init copies the name argument)


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/sys/netinet/wqinput.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/netinet/wqinput.c
diff -u src/sys/netinet/wqinput.c:1.2 src/sys/netinet/wqinput.c:1.3
--- src/sys/netinet/wqinput.c:1.2	Sun May 21 08:36:22 2017
+++ src/sys/netinet/wqinput.c	Fri Jun  2 19:10:19 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: wqinput.c,v 1.2 2017/05/21 08:36:22 ozaki-r Exp $	*/
+/*	$NetBSD: wqinput.c,v 1.3 2017/06/02 19:10:19 para Exp $	*/
 
 /*-
  * Copyright (c) 2017 Internet Initiative Japan Inc.
@@ -160,7 +160,7 @@ wqinput_create(const char *name, void (*
 	if (error != 0)
 		panic("%s: workqueue_create failed (%d)\n", __func__, error);
 	pool_init(>wqi_work_pool, sizeof(struct wqinput_work), 0, 0, 0,
-	namebuf, NULL, IPL_SOFTNET);
+	name, NULL, IPL_SOFTNET);
 	wqi->wqi_worklists = percpu_alloc(sizeof(struct wqinput_worklist));
 	wqi->wqi_input = func;
 



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

2017-05-24 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Thu May 25 05:54:29 UTC 2017

Modified Files:
src/sys/arch/amd64/conf: ALL GENERIC

Log Message:
follow u3ginit driver rename to umodeswitch


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.457 -r1.458 src/sys/arch/amd64/conf/GENERIC

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



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

2017-05-24 Thread Lars Reichardt
Module Name:src
Committed By:   para
Date:   Thu May 25 05:54:29 UTC 2017

Modified Files:
src/sys/arch/amd64/conf: ALL GENERIC

Log Message:
follow u3ginit driver rename to umodeswitch


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/sys/arch/amd64/conf/ALL
cvs rdiff -u -r1.457 -r1.458 src/sys/arch/amd64/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/amd64/conf/ALL
diff -u src/sys/arch/amd64/conf/ALL:1.57 src/sys/arch/amd64/conf/ALL:1.58
--- src/sys/arch/amd64/conf/ALL:1.57	Wed Apr 26 18:20:01 2017
+++ src/sys/arch/amd64/conf/ALL	Thu May 25 05:54:29 2017
@@ -1,4 +1,4 @@
-# $NetBSD: ALL,v 1.57 2017/04/26 18:20:01 christos Exp $
+# $NetBSD: ALL,v 1.58 2017/05/25 05:54:29 para Exp $
 # From NetBSD: GENERIC,v 1.787 2006/10/01 18:37:54 bouyer Exp
 #
 # ALL machine description file
@@ -17,7 +17,7 @@ include 	"arch/amd64/conf/std.amd64"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident		"ALL-$Revision: 1.57 $"
+#ident		"ALL-$Revision: 1.58 $"
 
 maxusers	64		# estimated number of users
 
@@ -1313,7 +1313,7 @@ radio*	at udsbr?
 ugen*	at uhub? port ?
 
 # USB 3G datacards
-u3ginit* at uhub? port ?
+umodeswitch* at uhub? port ?
 u3g*	at uhub? port ?
 ucom*	at u3g?
 

Index: src/sys/arch/amd64/conf/GENERIC
diff -u src/sys/arch/amd64/conf/GENERIC:1.457 src/sys/arch/amd64/conf/GENERIC:1.458
--- src/sys/arch/amd64/conf/GENERIC:1.457	Tue Apr 18 19:09:12 2017
+++ src/sys/arch/amd64/conf/GENERIC	Thu May 25 05:54:29 2017
@@ -1,4 +1,4 @@
-# $NetBSD: GENERIC,v 1.457 2017/04/18 19:09:12 riastradh Exp $
+# $NetBSD: GENERIC,v 1.458 2017/05/25 05:54:29 para Exp $
 #
 # GENERIC machine description file
 #
@@ -22,7 +22,7 @@ include 	"arch/amd64/conf/std.amd64"
 
 options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident		"GENERIC-$Revision: 1.457 $"
+#ident		"GENERIC-$Revision: 1.458 $"
 
 maxusers	64		# estimated number of users
 
@@ -1052,7 +1052,7 @@ radio*	at udsbr?
 ugen*	at uhub? port ?
 
 # USB 3G datacards
-u3ginit* at uhub? port ?
+umodeswitch* at uhub? port ?
 u3g*	at uhub? port ?
 ucom*	at u3g?