CVS commit: [netbsd-7] src/external/bsd/kyua-testers

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:14:01 UTC 2016

Modified Files:
src/external/bsd/kyua-testers/libexec/kyua-atf-tester [netbsd-7]:
Makefile
src/external/bsd/kyua-testers/libexec/kyua-plain-tester [netbsd-7]:
Makefile
src/external/bsd/kyua-testers/tests/kyua-testers [netbsd-7]: Makefile

Log Message:
Pull up following revision(s) (requested by dholland in ticket #1249):
external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile: revision 
1.2, 1.3
external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile: revision 
1.2, 1.3
external/bsd/kyua-testers/tests/kyua-testers/Makefile: revision 1.2, 1.3
Fix wrong objdir-finding logic. PR 51389.
--
Fix previous. (Sigh.) PR 51389 again.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.14.1 \
src/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile
cvs rdiff -u -r1.1 -r1.1.14.1 \
src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile
cvs rdiff -u -r1.1 -r1.1.14.1 \
src/external/bsd/kyua-testers/tests/kyua-testers/Makefile

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/kyua-testers/libexec/kyua-atf-tester/Makefile
diff -u src/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile:1.1 src/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile:1.1.14.1
--- src/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile:1.1	Tue Feb 19 06:04:43 2013
+++ src/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile	Sun Sep 18 06:14:00 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:43 jmmv Exp $
+# $NetBSD: Makefile,v 1.1.14.1 2016/09/18 06:14:00 snj Exp $
 
 .include 
 
@@ -11,11 +11,12 @@ SRCS=		atf_main.c
 MAN=		kyua-atf-tester.1
 MAN+=		kyua-atf-interface.7
 
-PRIVATELIBDIR!=	cd ${.CURDIR}/../../lib; ${PRINTOBJDIR}
-LDADD+=		${PRIVATELIBDIR}/libatf_tester/libatf_tester.a
-DPADD+=		${PRIVATELIBDIR}/libatf_tester/libatf_tester.a
-LDADD+=		${PRIVATELIBDIR}/libtester/libtester.a
-DPADD+=		${PRIVATELIBDIR}/libtester/libtester.a
+ATFTESTER_LIBDIR!=	cd ${.CURDIR}/../../lib/libatf_tester; ${PRINTOBJDIR}
+TESTER_LIBDIR!=		cd ${.CURDIR}/../../lib/libtester; ${PRINTOBJDIR}
+LDADD+=		${ATFTESTER_LIBDIR}/libatf_tester.a
+DPADD+=		${ATFTESTER_LIBDIR}/libatf_tester.a
+LDADD+=		${TESTER_LIBDIR}/libtester.a
+DPADD+=		${TESTER_LIBDIR}/libtester.a
 
 CPPFLAGS+=	-DHAVE_CONFIG_H
 CPPFLAGS+=	-I${.CURDIR}/../../lib/libtester

Index: src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile
diff -u src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile:1.1 src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile:1.1.14.1
--- src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile:1.1	Tue Feb 19 06:04:43 2013
+++ src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile	Sun Sep 18 06:14:01 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:43 jmmv Exp $
+# $NetBSD: Makefile,v 1.1.14.1 2016/09/18 06:14:01 snj Exp $
 
 .include 
 
@@ -11,9 +11,9 @@ SRCS=		plain_main.c
 MAN=		kyua-plain-tester.1
 MAN+=		kyua-plain-interface.7
 
-PRIVATELIBDIR!=	cd ${.CURDIR}/../../lib; ${PRINTOBJDIR}
-LDADD+=		${PRIVATELIBDIR}/libtester/libtester.a
-DPADD+=		${PRIVATELIBDIR}/libtester/libtester.a
+TESTER_LIBDIR!=		cd ${.CURDIR}/../../lib/libtester; ${PRINTOBJDIR}
+LDADD+=		${TESTER_LIBDIR}/libtester.a
+DPADD+=		${TESTER_LIBDIR}/libtester.a
 
 CPPFLAGS+=	-DHAVE_CONFIG_H
 CPPFLAGS+=	-I${.CURDIR}/../../lib/libtester

Index: src/external/bsd/kyua-testers/tests/kyua-testers/Makefile
diff -u src/external/bsd/kyua-testers/tests/kyua-testers/Makefile:1.1 src/external/bsd/kyua-testers/tests/kyua-testers/Makefile:1.1.14.1
--- src/external/bsd/kyua-testers/tests/kyua-testers/Makefile:1.1	Tue Feb 19 06:04:44 2013
+++ src/external/bsd/kyua-testers/tests/kyua-testers/Makefile	Sun Sep 18 06:14:01 2016
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2013/02/19 06:04:44 jmmv Exp $
+# $NetBSD: Makefile,v 1.1.14.1 2016/09/18 06:14:01 snj Exp $
 
 .include 
 
@@ -12,11 +12,12 @@ CPPFLAGS+=	-DTESTERSDIR=\"/usr/libexec\"
 CPPFLAGS+=	-I${.CURDIR}/../../lib/libtester
 CPPFLAGS+=	-I${SRCDIR}
 
-PRIVATELIBDIR!=	cd ${.CURDIR}/../../lib; ${PRINTOBJDIR}
-.for lib in atf_tester tester
-LDADD+=		${PRIVATELIBDIR}/lib${lib}/lib${lib}.a
-DPADD+=		${PRIVATELIBDIR}/lib${lib}/lib${lib}.a
-.endfor
+ATFTESTER_LIBDIR!=	cd ${.CURDIR}/../../lib/libatf_tester; ${PRINTOBJDIR}
+TESTER_LIBDIR!=		cd ${.CURDIR}/../../lib/libtester; ${PRINTOBJDIR}
+LDADD+=		${ATFTESTER_LIBDIR}/libatf_tester.a
+DPADD+=		${ATFTESTER_LIBDIR}/libatf_tester.a
+LDADD+=		${TESTER_LIBDIR}/libtester.a
+DPADD+=		${TESTER_LIBDIR}/libtester.a
 
 TESTS_C=	atf_list_test
 TESTS_C+=	atf_result_test



CVS commit: [netbsd-7] src/external/bsd/kyua-testers

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:14:01 UTC 2016

Modified Files:
src/external/bsd/kyua-testers/libexec/kyua-atf-tester [netbsd-7]:
Makefile
src/external/bsd/kyua-testers/libexec/kyua-plain-tester [netbsd-7]:
Makefile
src/external/bsd/kyua-testers/tests/kyua-testers [netbsd-7]: Makefile

Log Message:
Pull up following revision(s) (requested by dholland in ticket #1249):
external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile: revision 
1.2, 1.3
external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile: revision 
1.2, 1.3
external/bsd/kyua-testers/tests/kyua-testers/Makefile: revision 1.2, 1.3
Fix wrong objdir-finding logic. PR 51389.
--
Fix previous. (Sigh.) PR 51389 again.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.1.14.1 \
src/external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile
cvs rdiff -u -r1.1 -r1.1.14.1 \
src/external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile
cvs rdiff -u -r1.1 -r1.1.14.1 \
src/external/bsd/kyua-testers/tests/kyua-testers/Makefile

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



CVS commit: src/sys/dev/pci

2016-09-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 18 11:58:35 UTC 2016

Modified Files:
src/sys/dev/pci: nvme_pci.c

Log Message:
attach also the nvme_cdevsw when loaded as module, so /dev/nvme* works


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/nvme_pci.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/nvme_pci.c
diff -u src/sys/dev/pci/nvme_pci.c:1.12 src/sys/dev/pci/nvme_pci.c:1.13
--- src/sys/dev/pci/nvme_pci.c:1.12	Sat Sep 17 20:15:09 2016
+++ src/sys/dev/pci/nvme_pci.c	Sun Sep 18 11:58:35 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: nvme_pci.c,v 1.12 2016/09/17 20:15:09 jdolecek Exp $	*/
+/*	$NetBSD: nvme_pci.c,v 1.13 2016/09/18 11:58:35 jdolecek Exp $	*/
 /*	$OpenBSD: nvme_pci.c,v 1.3 2016/04/14 11:18:32 dlg Exp $ */
 
 /*
@@ -43,7 +43,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: nvme_pci.c,v 1.12 2016/09/17 20:15:09 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nvme_pci.c,v 1.13 2016/09/18 11:58:35 jdolecek Exp $");
 
 #include 
 #include 
@@ -469,9 +469,6 @@ MODULE(MODULE_CLASS_DRIVER, nvme, "pci,d
 
 #ifdef _MODULE
 #include "ioconf.c"
-
-extern const struct bdevsw ld_bdevsw;
-extern const struct cdevsw ld_cdevsw;
 #endif
 
 static int
@@ -479,6 +476,9 @@ nvme_modcmd(modcmd_t cmd, void *opaque)
 {
 #ifdef _MODULE
 	devmajor_t cmajor, bmajor;
+	extern const struct bdevsw ld_bdevsw;
+	extern const struct cdevsw ld_cdevsw;
+	extern const struct cdevsw nvme_cdevsw;
 #endif
 	int error = 0;
 
@@ -502,10 +502,20 @@ nvme_modcmd(modcmd_t cmd, void *opaque)
 		if (error)
 			return error;
 
+		bmajor = cmajor = NODEVMAJOR;
+		error = devsw_attach(nvme_cd.cd_name, NULL, ,
+		_cdevsw, );
+		if (error) {
+			aprint_error("%s: unable to register devsw\n",
+			nvme_cd.cd_name);
+			/* do not abort, just /dev/nvme* will not work */
+		}
 #endif
 		return error;
 	case MODULE_CMD_FINI:
 #ifdef _MODULE
+		devsw_detach(NULL, _cdevsw);
+
 		error = config_fini_component(cfdriver_ioconf_nvme_pci,
 		cfattach_ioconf_nvme_pci, cfdata_ioconf_nvme_pci);
 		if (error)



CVS commit: src/sys/dev/pci

2016-09-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 18 11:58:35 UTC 2016

Modified Files:
src/sys/dev/pci: nvme_pci.c

Log Message:
attach also the nvme_cdevsw when loaded as module, so /dev/nvme* works


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/pci/nvme_pci.c

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



Re: CVS commit: src/distrib/atari/floppies

2016-09-18 Thread Izumi Tsutsui
> Module Name:  src
> Committed By: christos
> Date: Sun Sep 18 16:36:02 UTC 2016
> 
> Modified Files:
>   src/distrib/atari/floppies/install: list
>   src/distrib/atari/floppies/prepare: list
> 
> Log Message:
> remove more stuff.

src/distrib/atari/floppies/prepare/install.sh requires expr and pwd.

---
Izumi Tsutsui


CVS commit: src/distrib/atari/floppies/prepare

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 18:24:00 UTC 2016

Modified Files:
src/distrib/atari/floppies/prepare: install.sh

Log Message:
Kill expr, modernize


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/atari/floppies/prepare/install.sh

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

Modified files:

Index: src/distrib/atari/floppies/prepare/install.sh
diff -u src/distrib/atari/floppies/prepare/install.sh:1.2 src/distrib/atari/floppies/prepare/install.sh:1.3
--- src/distrib/atari/floppies/prepare/install.sh:1.2	Wed Apr 30 09:10:48 2008
+++ src/distrib/atari/floppies/prepare/install.sh	Sun Sep 18 14:24:00 2016
@@ -1,5 +1,5 @@
 #!/bin/sh
-#	$NetBSD: install.sh,v 1.2 2008/04/30 13:10:48 martin Exp $
+#	$NetBSD: install.sh,v 1.3 2016/09/18 18:24:00 christos Exp $
 #
 # Copyright (c) 1996 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -44,25 +44,28 @@ MODE="install"
 #	md_makerootwritable()	- make root writable (at least /tmp)
 
 # we need to make sure .'s below work if this directory is not in $PATH
-# dirname may not be available but expr is
-Mydir=`expr $0 : '^\(.*\)/[^/]*$'`
-Mydir=`cd ${Mydir:-.}; pwd`
+case $0 in
+*/*)	Mydir=${0%/*};;
+*)	Mydir=.;;
+esac
+Mydir=$(cd "${Mydir}" && pwd)
 
 #
 # Sub-parts
 #
 getresp() {
 	read resp
-	if [ "X$resp" = "X" ]; then
+	if [ -z "$resp" ]; then
 		resp=$1
 	fi
 }
 
 isin() {
 # test the first argument against the remaining ones, return succes on a match
-	_a=$1; shift
+	local a=$1
+	shift
 	while [ $# != 0 ]; do
-		if [ "$_a" = "$1" ]; then return 0; fi
+		if [ "$a" = "$1" ]; then return 0; fi
 		shift
 	done
 	return 1



CVS commit: src/distrib/atari/floppies/prepare

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 18:24:00 UTC 2016

Modified Files:
src/distrib/atari/floppies/prepare: install.sh

Log Message:
Kill expr, modernize


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/distrib/atari/floppies/prepare/install.sh

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



Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread David Brownlee
On 18 September 2016 at 18:52, Christos Zoulas  wrote:
> On Sep 19,  1:29am, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
> -- Subject: Re: CVS commit: src/distrib/dreamcast/ramdisk
>
> | christos@ wrote:
> |
> | > Module Name:src
> | > Committed By:   christos
> | > Date:   Sun Sep 18 15:38:05 UTC 2016
> | >
> | > Modified Files:
> | > src/distrib/dreamcast/ramdisk: list
> | >
> | > Log Message:
> | > kill some useless programs (it is not like the dreamcast has a tape drive)
> |
> | - dmesg(8) is so useful for everyone
> | - why drop swapctl(8) but keep disklabel(8)?
> |   (both are useful for me for wd support though)
>
> Don't we have kernfs and cat /kern/msgbuf?
> I thought that disklabel is more useful that swapctl. Perhaps swapctl will
> fit.

Last I checked dmesg was smaller than options KERNFS (that would have
been on an m68k port tho' :)


CVS commit: src/external/bsd/dhcpcd

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 15:37:23 UTC 2016

Modified Files:
src/external/bsd/dhcpcd/dist: dhcp.c dhcp6.c
src/external/bsd/dhcpcd/sbin/dhcpcd: Makefile

Log Message:
provide a NO_AUTH option to strip auth for boot media; saves around 40K.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/bsd/dhcpcd/dist/dhcp.c
cvs rdiff -u -r1.24 -r1.25 src/external/bsd/dhcpcd/dist/dhcp6.c
cvs rdiff -u -r1.31 -r1.32 src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile

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/dhcpcd/dist/dhcp.c
diff -u src/external/bsd/dhcpcd/dist/dhcp.c:1.45 src/external/bsd/dhcpcd/dist/dhcp.c:1.46
--- src/external/bsd/dhcpcd/dist/dhcp.c:1.45	Mon Aug 15 07:04:53 2016
+++ src/external/bsd/dhcpcd/dist/dhcp.c	Sun Sep 18 11:37:23 2016
@@ -1,5 +1,5 @@
 #include 
- __RCSID("$NetBSD: dhcp.c,v 1.45 2016/08/15 11:04:53 roy Exp $");
+ __RCSID("$NetBSD: dhcp.c,v 1.46 2016/09/18 15:37:23 christos Exp $");
 
 /*
  * dhcpcd - DHCP client daemon
@@ -729,8 +729,8 @@ static ssize_t
 make_message(struct bootp **bootpm, const struct interface *ifp, uint8_t type)
 {
 	struct bootp *bootp;
-	uint8_t *lp, *p, *e, *auth;
-	uint8_t *n_params = NULL, auth_len;
+	uint8_t *lp, *p, *e;
+	uint8_t *n_params = NULL;
 	uint32_t ul;
 	uint16_t sz;
 	size_t len, i;
@@ -742,6 +742,9 @@ make_message(struct bootp **bootpm, cons
 	const char *hostname;
 	const struct vivco *vivco;
 	int mtu;
+#ifndef NO_AUTH
+	uint8_t *auth, auth_len;
+#endif
 
 	if ((mtu = if_getmtu(ifp)) == -1)
 		logger(ifp->ctx, LOG_ERR,
@@ -1056,6 +1059,7 @@ make_message(struct bootp **bootpm, cons
 		*n_params = (uint8_t)(p - n_params - 1);
 	}
 
+#ifndef NO_AUTH
 	/* silence GCC */
 	auth_len = 0;
 	auth = NULL;
@@ -1080,7 +1084,7 @@ make_message(struct bootp **bootpm, cons
 			p += auth_len;
 		}
 	}
-
+#endif
 	*p++ = DHO_END;
 	len = (size_t)(p - (uint8_t *)bootp);
 
@@ -1093,10 +1097,11 @@ make_message(struct bootp **bootpm, cons
 		*p++ = DHO_PAD;
 		len++;
 	}
-
+#ifndef NO_AUTH
 	if (ifo->auth.options & DHCPCD_AUTH_SEND && auth_len != 0)
 		dhcp_auth_encode(>auth, state->auth.token,
 		(uint8_t *)bootp, len, 4, type, auth, auth_len);
+#endif
 
 	return (ssize_t)len;
 
@@ -1132,9 +1137,11 @@ read_lease(struct interface *ifp, struct
 	struct dhcp_state *state = D_STATE(ifp);
 	uint8_t *lease;
 	size_t bytes;
-	const uint8_t *auth;
 	uint8_t type;
+#ifndef NO_AUTH
 	size_t auth_len;
+	const uint8_t *auth;
+#endif
 
 	/* Safety */
 	*bootp = NULL;
@@ -1187,6 +1194,7 @@ read_lease(struct interface *ifp, struct
 	DHO_MESSAGETYPE) == -1)
 		type = 0;
 
+#ifndef NO_AUTH
 	/* Authenticate the message */
 	auth = get_option(ifp->ctx, (struct bootp *)lease, bytes,
 	DHO_AUTHENTICATION, _len);
@@ -1214,7 +1222,7 @@ read_lease(struct interface *ifp, struct
 		free(lease);
 		return 0;
 	}
-
+#endif
 out:
 	*bootp = (struct bootp *)lease;
 	return bytes;
@@ -2563,7 +2571,9 @@ dhcp_drop(struct interface *ifp, const c
 	}
 
 	eloop_timeout_delete(ifp->ctx->eloop, NULL, ifp);
+#ifndef NO_AUTH
 	dhcp_auth_reset(>auth);
+#endif
 	dhcp_close(ifp);
 
 	free(state->offer);
@@ -2684,15 +2694,17 @@ dhcp_handledhcp(struct interface *ifp, s
 	struct if_options *ifo = ifp->options;
 	struct dhcp_lease *lease = >lease;
 	uint8_t type, tmp;
-	const uint8_t *auth;
 	struct in_addr addr;
 	unsigned int i;
-	size_t auth_len;
 	char *msg;
 	bool bootp_copied;
 #ifdef IN_IFF_DUPLICATED
 	struct ipv4_addr *ia;
 #endif
+#ifndef NO_AUTH
+	const uint8_t *auth;
+	size_t auth_len;
+#endif
 
 #define LOGDHCP0(l, m) \
 	log_dhcp((l), (m), ifp, bootp, bootp_len, from, 0)
@@ -2730,6 +2742,7 @@ dhcp_handledhcp(struct interface *ifp, s
 	}
 
 	/* Authenticate the message */
+#ifndef NO_AUTH
 	auth = get_option(ifp->ctx, bootp, bootp_len,
 	DHO_AUTHENTICATION, _len);
 	if (auth) {
@@ -2756,7 +2769,7 @@ dhcp_handledhcp(struct interface *ifp, s
 		}
 		LOGDHCP0(LOG_WARNING, "no authentication");
 	}
-
+#endif
 	/* RFC 3203 */
 	if (type == DHCP_FORCERENEW) {
 		if (from->s_addr == INADDR_ANY ||
@@ -2765,11 +2778,13 @@ dhcp_handledhcp(struct interface *ifp, s
 			LOGDHCP(LOG_ERR, "discarding Force Renew");
 			return;
 		}
+#ifndef NO_AUTH
 		if (auth == NULL) {
 			LOGDHCP(LOG_ERR, "unauthenticated Force Renew");
 			if (ifo->auth.options & DHCPCD_AUTH_REQUIRE)
 return;
 		}
+#endif
 		if (state->state != DHS_BOUND && state->state != DHS_INFORM) {
 			LOGDHCP(LOG_DEBUG, "not bound, ignoring Force Renew");
 			return;

Index: src/external/bsd/dhcpcd/dist/dhcp6.c
diff -u src/external/bsd/dhcpcd/dist/dhcp6.c:1.24 src/external/bsd/dhcpcd/dist/dhcp6.c:1.25
--- src/external/bsd/dhcpcd/dist/dhcp6.c:1.24	Mon Aug 15 07:04:53 2016
+++ src/external/bsd/dhcpcd/dist/dhcp6.c	Sun Sep 18 11:37:23 2016
@@ -1,5 +1,5 @@
 #include 
- __RCSID("$NetBSD: dhcp6.c,v 1.24 2016/08/15 11:04:53 roy Exp $");
+ __RCSID("$NetBSD: 

CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 15:38:05 UTC 2016

Modified Files:
src/distrib/dreamcast/ramdisk: list

Log Message:
kill some useless programs (it is not like the dreamcast has a tape drive)


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/dreamcast/ramdisk/list

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

Modified files:

Index: src/distrib/dreamcast/ramdisk/list
diff -u src/distrib/dreamcast/ramdisk/list:1.15 src/distrib/dreamcast/ramdisk/list:1.16
--- src/distrib/dreamcast/ramdisk/list:1.15	Fri Mar 22 06:52:21 2013
+++ src/distrib/dreamcast/ramdisk/list	Sun Sep 18 11:38:05 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: list,v 1.15 2013/03/22 10:52:21 tsutsui Exp $
+#	$NetBSD: list,v 1.16 2016/09/18 15:38:05 christos Exp $
 
 SRCDIRS	bin sbin usr.bin usr.sbin
 
@@ -11,12 +11,9 @@ PROG	bin/ed
 PROG	bin/ln
 PROG	bin/ls
 PROG	bin/mkdir
-PROG	bin/mt
 PROG	bin/mv
 PROG	bin/pax		usr/bin/tar
 PROG	bin/pwd
-PROG	bin/rcmd
-PROG	bin/rcp
 PROG	bin/rm
 PROG	bin/sh
 PROG	bin/stty
@@ -24,7 +21,6 @@ PROG	bin/sync
 
 PROG	sbin/chown	bin/chgrp
 PROG	sbin/disklabel
-PROG	sbin/dmesg
 PROG	sbin/fsck
 PROG	sbin/fsck_ffs
 PROG	sbin/ifconfig
@@ -40,21 +36,19 @@ PROG	sbin/reboot	sbin/halt
 PROG	sbin/restore	sbin/rrestore
 PROG	sbin/route
 PROG	sbin/shutdown
-PROG	sbin/slattach
-PROG	sbin/swapctl	sbin/swapon
 PROG	sbin/umount
 
 PROG	usr/bin/ftp
 PROG	usr/bin/gzip	usr/bin/gzcat	usr/bin/gunzip
 PROG	usr/bin/more
 PROG	usr/bin/sed
-PROG	usr/bin/tset
 
 PROG	usr/sbin/chroot
 
 # init invokes the shell as -sh
 ARGVLN	sh	-sh
 
+SPECIAL	disklabel	srcdir	distrib/utils/x_disklabel
 SPECIAL	ed		srcdir	distrib/utils/x_ed
 SPECIAL	gzip		srcdir	distrib/utils/x_gzip
 SPECIAL	ifconfig	srcdir	distrib/utils/x_ifconfig



CVS commit: src/external/bsd/dhcpcd

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 15:37:23 UTC 2016

Modified Files:
src/external/bsd/dhcpcd/dist: dhcp.c dhcp6.c
src/external/bsd/dhcpcd/sbin/dhcpcd: Makefile

Log Message:
provide a NO_AUTH option to strip auth for boot media; saves around 40K.


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/external/bsd/dhcpcd/dist/dhcp.c
cvs rdiff -u -r1.24 -r1.25 src/external/bsd/dhcpcd/dist/dhcp6.c
cvs rdiff -u -r1.31 -r1.32 src/external/bsd/dhcpcd/sbin/dhcpcd/Makefile

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



CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 15:38:05 UTC 2016

Modified Files:
src/distrib/dreamcast/ramdisk: list

Log Message:
kill some useless programs (it is not like the dreamcast has a tape drive)


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/distrib/dreamcast/ramdisk/list

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



Re: CVS commit: src/distrib/atari/floppies

2016-09-18 Thread Christos Zoulas
On Sep 19,  2:03am, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
-- Subject: Re: CVS commit: src/distrib/atari/floppies

| > Module Name:src
| > Committed By:   christos
| > Date:   Sun Sep 18 16:36:02 UTC 2016
| > 
| > Modified Files:
| > src/distrib/atari/floppies/install: list
| > src/distrib/atari/floppies/prepare: list
| > 
| > Log Message:
| > remove more stuff.
| 
| src/distrib/atari/floppies/prepare/install.sh requires expr and pwd.

Ok, pwd is built-in to sh, expr I'll find a way to put back (or convert
to shell built-in arithmetic).

$ type pwd
pwd is a shell builtin

christos


Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Christos Zoulas
On Sep 18,  8:12pm, a...@absd.org (David Brownlee) wrote:
-- Subject: Re: CVS commit: src/distrib/dreamcast/ramdisk

| Last I checked dmesg was smaller than options KERNFS (that would have
| been on an m68k port tho' :)

I am not sure; this is how other ports do it. Nevertheless, perhaps there
is space to put it back now.

christos


Re: CVS commit: xsrc/external/mit/xf86-video-suncg14/dist/src

2016-09-18 Thread Christos Zoulas
In article <20160918103806.3edaed55@blackbush>,
Michael   wrote:
>Hello,
>
>Huh, I'm about 110% sure I tested that. I must be going nuts or
>something.

Perhaps it is only enabled with some particular option?

christos



CVS commit: src/sys/arch/mipsco/stand

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 14:39:15 UTC 2016

Modified Files:
src/sys/arch/mipsco/stand: Makefile.booters

Log Message:
Strip more useless for booters sections so that we fit.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mipsco/stand/Makefile.booters

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/mipsco/stand/Makefile.booters
diff -u src/sys/arch/mipsco/stand/Makefile.booters:1.22 src/sys/arch/mipsco/stand/Makefile.booters:1.23
--- src/sys/arch/mipsco/stand/Makefile.booters:1.22	Thu Sep  8 10:40:52 2016
+++ src/sys/arch/mipsco/stand/Makefile.booters	Sun Sep 18 10:39:15 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile.booters,v 1.22 2016/09/08 14:40:52 christos Exp $
+#	$NetBSD: Makefile.booters,v 1.23 2016/09/18 14:39:15 christos Exp $
 
 NOMAN=		# defined
 NOPIE=		# defined
@@ -67,7 +67,8 @@ CPPFLAGS+=	-DPRIMARY_BOOTBLOCK \
 
 CHECKSIZE_CMD?=	SIZE=${SIZE} ${HOST_SH} ${.CURDIR}/../common/checksize.sh
 
-STRIPSECTIONS?= -R .reginfo -R .mdebug.abi32 -R .comment -R .pdr
+STRIPSECTIONS?= -R .reginfo -R .mdebug.abi32 -R .comment -R .pdr \
+	-R .MIPS.abiflags  -R .gnu.attributes
 
 .elif defined(SECONDARY_PROG)
 PROG=		${SECONDARY_PROG}



CVS commit: src/sys/arch/mipsco/stand

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 14:39:15 UTC 2016

Modified Files:
src/sys/arch/mipsco/stand: Makefile.booters

Log Message:
Strip more useless for booters sections so that we fit.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/arch/mipsco/stand/Makefile.booters

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



CVS commit: src/distrib/atari/floppies

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 16:36:02 UTC 2016

Modified Files:
src/distrib/atari/floppies/install: list
src/distrib/atari/floppies/prepare: list

Log Message:
remove more stuff.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/distrib/atari/floppies/install/list
cvs rdiff -u -r1.10 -r1.11 src/distrib/atari/floppies/prepare/list

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



CVS commit: src/distrib/atari/floppies

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 16:36:02 UTC 2016

Modified Files:
src/distrib/atari/floppies/install: list
src/distrib/atari/floppies/prepare: list

Log Message:
remove more stuff.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/distrib/atari/floppies/install/list
cvs rdiff -u -r1.10 -r1.11 src/distrib/atari/floppies/prepare/list

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

Modified files:

Index: src/distrib/atari/floppies/install/list
diff -u src/distrib/atari/floppies/install/list:1.18 src/distrib/atari/floppies/install/list:1.19
--- src/distrib/atari/floppies/install/list:1.18	Sat Apr 25 17:44:34 2015
+++ src/distrib/atari/floppies/install/list	Sun Sep 18 12:36:02 2016
@@ -1,17 +1,15 @@
-#	$NetBSD: list,v 1.18 2015/04/25 21:44:34 christos Exp $
+#	$NetBSD: list,v 1.19 2016/09/18 16:36:02 christos Exp $
 
 PROG	bin/cat
 PROG	bin/chmod
-PROG	bin/cp
+#PROG	bin/cp
 PROG	bin/dd
 PROG	bin/df
-PROG	bin/expr
 PROG	bin/ln
 PROG	bin/ls
 PROG	bin/mkdir
 PROG	bin/mv
 PROG	bin/pax		usr/bin/tar
-PROG	bin/pwd
 PROG	bin/rm
 PROG	bin/sh
 PROG	bin/stty
@@ -33,8 +31,7 @@ PROG	sbin/newfs	sbin/mount_mfs
 PROG	sbin/ping
 PROG	sbin/reboot	sbin/halt
 PROG	sbin/route
-PROG	sbin/swapctl
-PROG	sbin/sysctl
+#PROG	sbin/sysctl
 PROG	sbin/umount
 
 PROG	usr/bin/ftp
@@ -50,6 +47,7 @@ PROG	usr/sbin/loadkmap
 
 SPECIAL	installboot	srcdir	sys/arch/atari/stand/installboot
 SPECIAL	gzip		srcdir	distrib/utils/x_gzip
+SPECIAL	disklabel	srcdir	distrib/utils/x_disklabel
 SPECIAL	ifconfig	srcdir	distrib/utils/x_ifconfig
 SPECIAL	ping		srcdir	distrib/utils/x_ping
 SPECIAL	route		srcdir	distrib/utils/x_route

Index: src/distrib/atari/floppies/prepare/list
diff -u src/distrib/atari/floppies/prepare/list:1.10 src/distrib/atari/floppies/prepare/list:1.11
--- src/distrib/atari/floppies/prepare/list:1.10	Fri Jan 14 05:26:30 2011
+++ src/distrib/atari/floppies/prepare/list	Sun Sep 18 12:36:02 2016
@@ -1,17 +1,14 @@
-#	$NetBSD: list,v 1.10 2011/01/14 10:26:30 tsutsui Exp $
+#	$NetBSD: list,v 1.11 2016/09/18 16:36:02 christos Exp $
 
 PROG	bin/cat
 PROG	bin/chmod
-PROG	bin/cp
 PROG	bin/dd
 PROG	bin/df
-PROG	bin/expr
 PROG	bin/ln
 PROG	bin/ls
 PROG	bin/mkdir
 PROG	bin/mv
 PROG	bin/pax		usr/bin/tar
-PROG	bin/pwd
 PROG	bin/rm
 PROG	bin/sh
 PROG	bin/stty
@@ -29,8 +26,6 @@ PROG	sbin/mount_msdos
 PROG	sbin/mount_nfs
 PROG	sbin/newfs	sbin/mount_mfs
 PROG	sbin/reboot	sbin/halt
-PROG	sbin/swapctl
-PROG	sbin/sysctl
 PROG	sbin/umount
 
 PROG	usr/bin/gzip	usr/bin/gzcat usr/bin/gunzip



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 14:20:23 UTC 2016

Modified Files:
src/sys/arch/luna68k/conf: INSTALL

Log Message:
bump


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/luna68k/conf/INSTALL

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/luna68k/conf/INSTALL
diff -u src/sys/arch/luna68k/conf/INSTALL:1.19 src/sys/arch/luna68k/conf/INSTALL:1.20
--- src/sys/arch/luna68k/conf/INSTALL:1.19	Sat Aug 23 16:26:58 2014
+++ src/sys/arch/luna68k/conf/INSTALL	Sun Sep 18 10:20:23 2016
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.19 2014/08/23 20:26:58 dholland Exp $
+# $NetBSD: INSTALL,v 1.20 2016/09/18 14:20:23 christos Exp $
 #
 # config for installation ramdisk kernel
 # 
@@ -15,7 +15,7 @@ options 	FPSP	# on m68040 to emulate som
 options 	MEMORY_DISK_HOOKS
 options 	MEMORY_DISK_IS_ROOT		# Force root on ram-disk
 options 	MEMORY_DISK_SERVER=0		# no userspace md(4) support
-options 	MEMORY_DISK_ROOT_SIZE=3600	# 1.80 Megabytes
+options 	MEMORY_DISK_ROOT_SIZE=3800	# 1.90 Megabytes
 options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
 
 # Standard system options



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 14:20:23 UTC 2016

Modified Files:
src/sys/arch/luna68k/conf: INSTALL

Log Message:
bump


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/arch/luna68k/conf/INSTALL

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



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 14:21:16 UTC 2016

Modified Files:
src/sys/arch/x68k/conf: INSTALL

Log Message:
bump


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/arch/x68k/conf/INSTALL

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/x68k/conf/INSTALL
diff -u src/sys/arch/x68k/conf/INSTALL:1.108 src/sys/arch/x68k/conf/INSTALL:1.109
--- src/sys/arch/x68k/conf/INSTALL:1.108	Wed Aug 12 03:53:58 2015
+++ src/sys/arch/x68k/conf/INSTALL	Sun Sep 18 10:21:16 2016
@@ -1,4 +1,4 @@
-#	$NetBSD: INSTALL,v 1.108 2015/08/12 07:53:58 maxv Exp $
+#	$NetBSD: INSTALL,v 1.109 2016/09/18 14:21:16 christos Exp $
 
 #
 #	INSTALL -- installation kernel.
@@ -8,7 +8,7 @@ include "arch/x68k/conf/std.x68k"
 
 #options 	INCLUDE_CONFIG_FILE	# embed config file in kernel binary
 
-#ident 		"INSTALL-$Revision: 1.108 $"
+#ident 		"INSTALL-$Revision: 1.109 $"
 
 makeoptions	COPTS="-Os"		# Optimise for space. Implies -O2
 
@@ -18,7 +18,7 @@ maxusers	4
 options 	MEMORY_DISK_HOOKS
 options 	MEMORY_DISK_IS_ROOT	# Force root on memory-disk
 options 	MEMORY_DISK_SERVER=0	# No user space hooks
-options 	MEMORY_DISK_ROOT_SIZE=3400
+options 	MEMORY_DISK_ROOT_SIZE=3600	# 1.8 Mbytes
 options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
 
 ## System kernel configuration.  See options(4) for more detail.



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 16:21:18 UTC 2016

Modified Files:
src/sys/arch/ews4800mips/conf: RAMDISK

Log Message:
grow


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/ews4800mips/conf/RAMDISK

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/ews4800mips/conf/RAMDISK
diff -u src/sys/arch/ews4800mips/conf/RAMDISK:1.17 src/sys/arch/ews4800mips/conf/RAMDISK:1.18
--- src/sys/arch/ews4800mips/conf/RAMDISK:1.17	Fri Aug 21 05:18:17 2015
+++ src/sys/arch/ews4800mips/conf/RAMDISK	Sun Sep 18 12:21:18 2016
@@ -1,4 +1,4 @@
-# 	$NetBSD: RAMDISK,v 1.17 2015/08/21 09:18:17 christos Exp $
+# 	$NetBSD: RAMDISK,v 1.18 2016/09/18 16:21:18 christos Exp $
 #
 # kernel config file with memory disk for installation
 #
@@ -11,7 +11,7 @@ makeoptions	COPTS="-Os -mmemcpy"	# optim
 options 	MEMORY_DISK_HOOKS
 options 	MEMORY_DISK_IS_ROOT	# force root on memory disk
 options 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
-options 	MEMORY_DISK_ROOT_SIZE=6144	# size of memory disk, in blocks
+options 	MEMORY_DISK_ROOT_SIZE=7268	# size of memory disk, in blocks (14)
 options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
 
 options 	PIPE_SOCKETPAIR



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 16:21:18 UTC 2016

Modified Files:
src/sys/arch/ews4800mips/conf: RAMDISK

Log Message:
grow


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/ews4800mips/conf/RAMDISK

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



CVS commit: src/sys/external/bsd/acpica/dist/include

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 17:03:12 UTC 2016

Modified Files:
src/sys/external/bsd/acpica/dist/include: acoutput.h

Log Message:
need const otherwise we get a const qual error from the opcode printing
function that returns const char *.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/acpica/dist/include/acoutput.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/external/bsd/acpica/dist/include/acoutput.h
diff -u src/sys/external/bsd/acpica/dist/include/acoutput.h:1.5 src/sys/external/bsd/acpica/dist/include/acoutput.h:1.6
--- src/sys/external/bsd/acpica/dist/include/acoutput.h:1.5	Sun Aug 14 15:03:28 2016
+++ src/sys/external/bsd/acpica/dist/include/acoutput.h	Sun Sep 18 13:03:12 2016
@@ -372,7 +372,7 @@
 ACPI_TRACE_ENTRY (Name, AcpiUtTraceU32, const UINT32, Value)
 
 #define ACPI_FUNCTION_TRACE_STR(Name, String) \
-ACPI_TRACE_ENTRY (Name, AcpiUtTraceStr, char *, String)
+ACPI_TRACE_ENTRY (Name, AcpiUtTraceStr, const char *, String)
 
 #define ACPI_FUNCTION_ENTRY() \
 AcpiUtTrackStackPtr()



CVS commit: src/sys/external/bsd/acpica/dist/include

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 17:03:12 UTC 2016

Modified Files:
src/sys/external/bsd/acpica/dist/include: acoutput.h

Log Message:
need const otherwise we get a const qual error from the opcode printing
function that returns const char *.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/sys/external/bsd/acpica/dist/include/acoutput.h

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



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Sep 18 14:21:16 UTC 2016

Modified Files:
src/sys/arch/x68k/conf: INSTALL

Log Message:
bump


To generate a diff of this commit:
cvs rdiff -u -r1.108 -r1.109 src/sys/arch/x68k/conf/INSTALL

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



Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Izumi Tsutsui
christos@ wrote:

> Module Name:  src
> Committed By: christos
> Date: Sun Sep 18 15:38:05 UTC 2016
> 
> Modified Files:
>   src/distrib/dreamcast/ramdisk: list
> 
> Log Message:
> kill some useless programs (it is not like the dreamcast has a tape drive)

- dmesg(8) is so useful for everyone
- why drop swapctl(8) but keep disklabel(8)?
  (both are useful for me for wd support though)

---
Izumi Tsutsui


Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Christos Zoulas
On Sep 19,  1:29am, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
-- Subject: Re: CVS commit: src/distrib/dreamcast/ramdisk

| christos@ wrote:
| 
| > Module Name:src
| > Committed By:   christos
| > Date:   Sun Sep 18 15:38:05 UTC 2016
| > 
| > Modified Files:
| > src/distrib/dreamcast/ramdisk: list
| > 
| > Log Message:
| > kill some useless programs (it is not like the dreamcast has a tape drive)
| 
| - dmesg(8) is so useful for everyone
| - why drop swapctl(8) but keep disklabel(8)?
|   (both are useful for me for wd support though)

Don't we have kernfs and cat /kern/msgbuf?
I thought that disklabel is more useful that swapctl. Perhaps swapctl will
fit.

christos


CVS commit: [netbsd-7] src/doc

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:20:12 UTC 2016

Modified Files:
src/doc [netbsd-7]: CHANGES-7.1

Log Message:
124[45679]


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.108 -r1.1.2.109 src/doc/CHANGES-7.1

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

Modified files:

Index: src/doc/CHANGES-7.1
diff -u src/doc/CHANGES-7.1:1.1.2.108 src/doc/CHANGES-7.1:1.1.2.109
--- src/doc/CHANGES-7.1:1.1.2.108	Sat Sep 10 06:45:45 2016
+++ src/doc/CHANGES-7.1	Sun Sep 18 06:20:12 2016
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.1,v 1.1.2.108 2016/09/10 06:45:45 snj Exp $
+# $NetBSD: CHANGES-7.1,v 1.1.2.109 2016/09/18 06:20:12 snj Exp $
 
 A complete list of changes from the NetBSD 7.0 release to the NetBSD 7.1
 release:
@@ -5265,3 +5265,34 @@ sys/arch/sparc64/sparc64/kobj_machdep.c	
 	Fixes PR kern/51436.
 	[martin, ticket #1248]
 
+sys/dev/pci/if_vioif.c1.25
+
+	Fix initializing wrong queues.  PR kern/51448.
+	[ozaki-r, ticket #1244]
+
+sys/dev/usb/if_axe.c1.73, 1.74
+sys/dev/usb/usbdevs1.716
+sys/dev/usb/usbdevs.hregen
+sys/dev/usb/usbdevs_data.h			regen
+
+	Add flxd's axe(4) variant.
+	[skrll, ticket #1245]
+
+etc/namedb/root.cache1.21
+
+	Update root.cache to 2016/8/25 version.
+	[taca, ticket #1246]
+
+lib/libc/gen/glob.c1.36
+
+	Bump the glob limits to 512KB for total string size and 64K
+	path entries.
+	[joerg, ticket #1247]
+
+external/bsd/kyua-testers/libexec/kyua-atf-tester/Makefile 1.2, 1.3
+external/bsd/kyua-testers/libexec/kyua-plain-tester/Makefile 1.2, 1.3
+external/bsd/kyua-testers/tests/kyua-testers/Makefile 1.2, 1.3
+
+	Fix wrong objdir-finding logic.  PR 51389.
+	[dholland, ticket #1249]
+



CVS commit: [netbsd-7] src/sys/dev/usb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:00:20 UTC 2016

Modified Files:
src/sys/dev/usb [netbsd-7]: if_axe.c usbdevs

Log Message:
Pull up following revision(s) (requested by skrll in ticket #1245):
sys/dev/usb/if_axe.c: revision 1.73, 1.74
sys/dev/usb/usbdevs: revision 1.716
Add flxd's axe(4)
--
flxd's axe(4) - I think.
--
Fix harmless typo


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.67.2.1 src/sys/dev/usb/if_axe.c
cvs rdiff -u -r1.680.2.4 -r1.680.2.5 src/sys/dev/usb/usbdevs

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/usb/if_axe.c
diff -u src/sys/dev/usb/if_axe.c:1.67 src/sys/dev/usb/if_axe.c:1.67.2.1
--- src/sys/dev/usb/if_axe.c:1.67	Sun Aug 10 16:44:36 2014
+++ src/sys/dev/usb/if_axe.c	Sun Sep 18 06:00:20 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_axe.c,v 1.67 2014/08/10 16:44:36 tls Exp $	*/
+/*	$NetBSD: if_axe.c,v 1.67.2.1 2016/09/18 06:00:20 snj Exp $	*/
 /*	$OpenBSD: if_axe.c,v 1.96 2010/01/09 05:33:08 jsg Exp $ */
 
 /*
@@ -89,7 +89,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.67 2014/08/10 16:44:36 tls Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_axe.c,v 1.67.2.1 2016/09/18 06:00:20 snj Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_inet.h"
@@ -155,6 +155,7 @@ static const struct axe_type axe_devs[] 
 	{ { USB_VENDOR_COREGA,		USB_PRODUCT_COREGA_FETHER_USB2_TX }, 0},
 	{ { USB_VENDOR_DLINK,		USB_PRODUCT_DLINK_DUBE100}, 0 },
 	{ { USB_VENDOR_DLINK,		USB_PRODUCT_DLINK_DUBE100B1 }, AX772 },
+	{ { USB_VENDOR_DLINK2,		USB_PRODUCT_DLINK2_DUBE100B1 }, AX772 },
 	{ { USB_VENDOR_DLINK,		USB_PRODUCT_DLINK_DUBE100C1 }, AX772 | AX772B },
 	{ { USB_VENDOR_GOODWAY,		USB_PRODUCT_GOODWAY_GWUSB2E}, 0 },
 	{ { USB_VENDOR_IODATA,		USB_PRODUCT_IODATA_ETGUS2 }, AX178 },

Index: src/sys/dev/usb/usbdevs
diff -u src/sys/dev/usb/usbdevs:1.680.2.4 src/sys/dev/usb/usbdevs:1.680.2.5
--- src/sys/dev/usb/usbdevs:1.680.2.4	Sun Oct 18 09:01:58 2015
+++ src/sys/dev/usb/usbdevs	Sun Sep 18 06:00:20 2016
@@ -1,4 +1,4 @@
-$NetBSD: usbdevs,v 1.680.2.4 2015/10/18 09:01:58 martin Exp $
+$NetBSD: usbdevs,v 1.680.2.5 2016/09/18 06:00:20 snj Exp $
 
 /*
  * Copyright (c) 1998-2004 The NetBSD Foundation, Inc.
@@ -1357,6 +1357,7 @@ product DLINK2 DWA130D1		0x3a0f	DWA-130 
 product DLINK2 AR9271		0x3a10	AR9271
 product DLINK2 DWLG122C1	0x3c03	DWL-G122 rev C1
 product DLINK2 WUA1340		0x3c04	WUA-1340
+product DLINK2 DUBE100B1	0x3c05	DUB-E100 rev B1
 product DLINK2 DWA111		0x3c06	DWA-111
 product DLINK2 DWA110		0x3c07	DWA-110
 product DLINK2 RT2870_1		0x3c09	RT2870



CVS commit: [netbsd-7] src/sys/dev/usb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:01:07 UTC 2016

Modified Files:
src/sys/dev/usb [netbsd-7]: usbdevs.h usbdevs_data.h

Log Message:
regen for ticket 1245


To generate a diff of this commit:
cvs rdiff -u -r1.672.2.4 -r1.672.2.5 src/sys/dev/usb/usbdevs.h
cvs rdiff -u -r1.673.2.4 -r1.673.2.5 src/sys/dev/usb/usbdevs_data.h

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



CVS commit: [netbsd-7] src/sys/dev/usb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:00:20 UTC 2016

Modified Files:
src/sys/dev/usb [netbsd-7]: if_axe.c usbdevs

Log Message:
Pull up following revision(s) (requested by skrll in ticket #1245):
sys/dev/usb/if_axe.c: revision 1.73, 1.74
sys/dev/usb/usbdevs: revision 1.716
Add flxd's axe(4)
--
flxd's axe(4) - I think.
--
Fix harmless typo


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.67.2.1 src/sys/dev/usb/if_axe.c
cvs rdiff -u -r1.680.2.4 -r1.680.2.5 src/sys/dev/usb/usbdevs

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



CVS commit: [netbsd-7-0] src/etc/namedb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:06:13 UTC 2016

Modified Files:
src/etc/namedb [netbsd-7-0]: root.cache

Log Message:
Pull up following revision(s) (requested by taca in ticket #1246):
etc/namedb/root.cache: revision 1.21
Update root.cache to 2016/8/25 version, l.root-servers.net has  record
now.


To generate a diff of this commit:
cvs rdiff -u -r1.18.4.2 -r1.18.4.3 src/etc/namedb/root.cache

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



CVS commit: [netbsd-7] src/etc/namedb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:05:16 UTC 2016

Modified Files:
src/etc/namedb [netbsd-7]: root.cache

Log Message:
Pull up following revision(s) (requested by taca in ticket #1246):
etc/namedb/root.cache: revision 1.21
Update root.cache to 2016/8/25 version, l.root-servers.net has  record
now.


To generate a diff of this commit:
cvs rdiff -u -r1.18.2.2 -r1.18.2.3 src/etc/namedb/root.cache

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

Modified files:

Index: src/etc/namedb/root.cache
diff -u src/etc/namedb/root.cache:1.18.2.2 src/etc/namedb/root.cache:1.18.2.3
--- src/etc/namedb/root.cache:1.18.2.2	Mon Apr 11 10:02:57 2016
+++ src/etc/namedb/root.cache	Sun Sep 18 06:05:16 2016
@@ -1,4 +1,4 @@
-;	$NetBSD: root.cache,v 1.18.2.2 2016/04/11 10:02:57 snj Exp $
+;	$NetBSD: root.cache,v 1.18.2.3 2016/09/18 06:05:16 snj Exp $
 ;   This file holds the information on root name servers needed to
 ;   initialize cache of Internet domain name servers
 ;   (e.g. reference this file in the "cache  .  "
@@ -10,8 +10,8 @@
 ;   on server   FTP.INTERNIC.NET
 ;   -OR-RS.INTERNIC.NET
 ;
-;   last update:March 23, 2016
-;   related version of root zone:   2016032301
+;   last update:August 25, 2016
+;   related version of root zone:   2016082500
 ;
 ; formerly NS.INTERNIC.NET
 ;
@@ -41,6 +41,7 @@ D.ROOT-SERVERS.NET.  360  AA
 ;
 .360  NSE.ROOT-SERVERS.NET.
 E.ROOT-SERVERS.NET.  360  A 192.203.230.10
+E.ROOT-SERVERS.NET.  360    2001:500:a8::e
 ;
 ; FORMERLY NS.ISC.ORG
 ;



CVS commit: [netbsd-7] src/etc/namedb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:05:16 UTC 2016

Modified Files:
src/etc/namedb [netbsd-7]: root.cache

Log Message:
Pull up following revision(s) (requested by taca in ticket #1246):
etc/namedb/root.cache: revision 1.21
Update root.cache to 2016/8/25 version, l.root-servers.net has  record
now.


To generate a diff of this commit:
cvs rdiff -u -r1.18.2.2 -r1.18.2.3 src/etc/namedb/root.cache

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



CVS commit: [netbsd-7-0] src/etc/namedb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:06:13 UTC 2016

Modified Files:
src/etc/namedb [netbsd-7-0]: root.cache

Log Message:
Pull up following revision(s) (requested by taca in ticket #1246):
etc/namedb/root.cache: revision 1.21
Update root.cache to 2016/8/25 version, l.root-servers.net has  record
now.


To generate a diff of this commit:
cvs rdiff -u -r1.18.4.2 -r1.18.4.3 src/etc/namedb/root.cache

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

Modified files:

Index: src/etc/namedb/root.cache
diff -u src/etc/namedb/root.cache:1.18.4.2 src/etc/namedb/root.cache:1.18.4.3
--- src/etc/namedb/root.cache:1.18.4.2	Mon Apr 11 10:03:35 2016
+++ src/etc/namedb/root.cache	Sun Sep 18 06:06:13 2016
@@ -1,4 +1,4 @@
-;	$NetBSD: root.cache,v 1.18.4.2 2016/04/11 10:03:35 snj Exp $
+;	$NetBSD: root.cache,v 1.18.4.3 2016/09/18 06:06:13 snj Exp $
 ;   This file holds the information on root name servers needed to
 ;   initialize cache of Internet domain name servers
 ;   (e.g. reference this file in the "cache  .  "
@@ -10,8 +10,8 @@
 ;   on server   FTP.INTERNIC.NET
 ;   -OR-RS.INTERNIC.NET
 ;
-;   last update:March 23, 2016
-;   related version of root zone:   2016032301
+;   last update:August 25, 2016
+;   related version of root zone:   2016082500
 ;
 ; formerly NS.INTERNIC.NET
 ;
@@ -41,6 +41,7 @@ D.ROOT-SERVERS.NET.  360  AA
 ;
 .360  NSE.ROOT-SERVERS.NET.
 E.ROOT-SERVERS.NET.  360  A 192.203.230.10
+E.ROOT-SERVERS.NET.  360    2001:500:a8::e
 ;
 ; FORMERLY NS.ISC.ORG
 ;



CVS commit: [netbsd-7] src/sys/dev/usb

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:01:07 UTC 2016

Modified Files:
src/sys/dev/usb [netbsd-7]: usbdevs.h usbdevs_data.h

Log Message:
regen for ticket 1245


To generate a diff of this commit:
cvs rdiff -u -r1.672.2.4 -r1.672.2.5 src/sys/dev/usb/usbdevs.h
cvs rdiff -u -r1.673.2.4 -r1.673.2.5 src/sys/dev/usb/usbdevs_data.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/dev/usb/usbdevs.h
diff -u src/sys/dev/usb/usbdevs.h:1.672.2.4 src/sys/dev/usb/usbdevs.h:1.672.2.5
--- src/sys/dev/usb/usbdevs.h:1.672.2.4	Sun Oct 18 09:03:22 2015
+++ src/sys/dev/usb/usbdevs.h	Sun Sep 18 06:01:05 2016
@@ -1,10 +1,10 @@
-/*	$NetBSD: usbdevs.h,v 1.672.2.4 2015/10/18 09:03:22 martin Exp $	*/
+/*	$NetBSD: usbdevs.h,v 1.672.2.5 2016/09/18 06:01:05 snj Exp $	*/
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: usbdevs,v 1.680.2.4 2015/10/18 09:01:58 martin Exp
+ *	NetBSD: usbdevs,v 1.680.2.5 2016/09/18 06:00:20 snj Exp
  */
 
 /*
@@ -1364,6 +1364,7 @@
 #define	USB_PRODUCT_DLINK2_AR9271	0x3a10		/* AR9271 */
 #define	USB_PRODUCT_DLINK2_DWLG122C1	0x3c03		/* DWL-G122 rev C1 */
 #define	USB_PRODUCT_DLINK2_WUA1340	0x3c04		/* WUA-1340 */
+#define	USB_PRODUCT_DLINK2_DUBE100B1	0x3c05		/* DUB-E100 rev B1 */
 #define	USB_PRODUCT_DLINK2_DWA111	0x3c06		/* DWA-111 */
 #define	USB_PRODUCT_DLINK2_DWA110	0x3c07		/* DWA-110 */
 #define	USB_PRODUCT_DLINK2_RT2870_1	0x3c09		/* RT2870 */

Index: src/sys/dev/usb/usbdevs_data.h
diff -u src/sys/dev/usb/usbdevs_data.h:1.673.2.4 src/sys/dev/usb/usbdevs_data.h:1.673.2.5
--- src/sys/dev/usb/usbdevs_data.h:1.673.2.4	Sun Oct 18 09:03:22 2015
+++ src/sys/dev/usb/usbdevs_data.h	Sun Sep 18 06:01:05 2016
@@ -1,10 +1,10 @@
-/*	$NetBSD: usbdevs_data.h,v 1.673.2.4 2015/10/18 09:03:22 martin Exp $	*/
+/*	$NetBSD: usbdevs_data.h,v 1.673.2.5 2016/09/18 06:01:05 snj Exp $	*/
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
  *
  * generated from:
- *	NetBSD: usbdevs,v 1.680.2.4 2015/10/18 09:01:58 martin Exp
+ *	NetBSD: usbdevs,v 1.680.2.5 2016/09/18 06:00:20 snj Exp
  */
 
 /*
@@ -4419,6 +4419,10 @@ const struct usb_product usb_products[] 
 	"WUA-1340",
 	},
 	{
+	USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DUBE100B1,
+	"DUB-E100 rev B1",
+	},
+	{
 	USB_VENDOR_DLINK2, USB_PRODUCT_DLINK2_DWA111,
 	"DWA-111",
 	},
@@ -10203,4 +10207,4 @@ const struct usb_product usb_products[] 
 	"Prestige",
 	},
 };
-const int usb_nproducts = 2010;
+const int usb_nproducts = 2011;



CVS commit: [netbsd-7-0] src/doc

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:24:11 UTC 2016

Modified Files:
src/doc [netbsd-7-0]: CHANGES-7.0.2

Log Message:
124[46]


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.11 -r1.1.2.12 src/doc/CHANGES-7.0.2

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

Modified files:

Index: src/doc/CHANGES-7.0.2
diff -u src/doc/CHANGES-7.0.2:1.1.2.11 src/doc/CHANGES-7.0.2:1.1.2.12
--- src/doc/CHANGES-7.0.2:1.1.2.11	Sat Sep 10 06:43:52 2016
+++ src/doc/CHANGES-7.0.2	Sun Sep 18 06:24:11 2016
@@ -1,4 +1,4 @@
-# $NetBSD: CHANGES-7.0.2,v 1.1.2.11 2016/09/10 06:43:52 snj Exp $
+# $NetBSD: CHANGES-7.0.2,v 1.1.2.12 2016/09/18 06:24:11 snj Exp $
 
 A complete list of changes from the NetBSD 7.0.1 release to the NetBSD 7.0.2
 release:
@@ -253,3 +253,13 @@ sys/arch/sparc64/sparc64/kobj_machdep.c	
 	Fixes PR kern/51436.
 	[martin, ticket #1248]
 
+sys/dev/pci/if_vioif.c1.25
+
+	Fix initializing wrong queues.  PR kern/51448.
+	[ozaki-r, ticket #1244]
+
+etc/namedb/root.cache1.21
+
+	Update root.cache to 2016/8/25 version.
+	[taca, ticket #1246]
+



CVS commit: [netbsd-7-0] src/doc

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:24:11 UTC 2016

Modified Files:
src/doc [netbsd-7-0]: CHANGES-7.0.2

Log Message:
124[46]


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.11 -r1.1.2.12 src/doc/CHANGES-7.0.2

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



CVS commit: [netbsd-7] src/doc

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:20:12 UTC 2016

Modified Files:
src/doc [netbsd-7]: CHANGES-7.1

Log Message:
124[45679]


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.108 -r1.1.2.109 src/doc/CHANGES-7.1

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



CVS commit: [netbsd-7] src/lib/libc/gen

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:10:31 UTC 2016

Modified Files:
src/lib/libc/gen [netbsd-7]: glob.c

Log Message:
Pull up following revision(s) (requested by joerg in ticket #1247):
lib/libc/gen/glob.c: revision 1.36
Bump the glob limits to 512KB for total string size and 64K path
entries. The old limits were too small for some important FTP use cases
like a pkgsrc repository.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.35.8.1 src/lib/libc/gen/glob.c

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



CVS commit: [netbsd-7] src/lib/libc/gen

2016-09-18 Thread Soren Jacobsen
Module Name:src
Committed By:   snj
Date:   Sun Sep 18 06:10:31 UTC 2016

Modified Files:
src/lib/libc/gen [netbsd-7]: glob.c

Log Message:
Pull up following revision(s) (requested by joerg in ticket #1247):
lib/libc/gen/glob.c: revision 1.36
Bump the glob limits to 512KB for total string size and 64K path
entries. The old limits were too small for some important FTP use cases
like a pkgsrc repository.


To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.35.8.1 src/lib/libc/gen/glob.c

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

Modified files:

Index: src/lib/libc/gen/glob.c
diff -u src/lib/libc/gen/glob.c:1.35 src/lib/libc/gen/glob.c:1.35.8.1
--- src/lib/libc/gen/glob.c:1.35	Wed Mar 20 23:44:47 2013
+++ src/lib/libc/gen/glob.c	Sun Sep 18 06:10:31 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: glob.c,v 1.35 2013/03/20 23:44:47 lukem Exp $	*/
+/*	$NetBSD: glob.c,v 1.35.8.1 2016/09/18 06:10:31 snj Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)glob.c	8.3 (Berkeley) 10/13/93";
 #else
-__RCSID("$NetBSD: glob.c,v 1.35 2013/03/20 23:44:47 lukem Exp $");
+__RCSID("$NetBSD: glob.c,v 1.35.8.1 2016/09/18 06:10:31 snj Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -87,9 +87,9 @@ __RCSID("$NetBSD: glob.c,v 1.35 2013/03/
 #define NO_GETPW_R
 #endif
 
-#define	GLOB_LIMIT_STRING	65536	/* number of readdirs */
+#define	GLOB_LIMIT_STRING	524288	/* number of readdirs */
 #define	GLOB_LIMIT_STAT		128	/* number of stat system calls */
-#define	GLOB_LIMIT_READDIR	16384	/* total buffer size of path strings */
+#define	GLOB_LIMIT_READDIR	65536	/* total buffer size of path strings */
 #define	GLOB_LIMIT_PATH		1024	/* number of path elements */
 #define GLOB_LIMIT_BRACE	128	/* Number of brace calls */
 



Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Christos Zoulas
In article <160919072419.m0213...@mirage.ceres.dti.ne.jp>,
Izumi Tsutsui   wrote:
>
>Anyway, it's much better to file PRs for tier-II ports,
>rather than put untested changes without announcements,
>as I asked you every time.

I put dmesg back...

christos



CVS commit: src/sys/dev

2016-09-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 18 21:19:39 UTC 2016

Modified Files:
src/sys/dev/ic: ld_nvme.c nvme.c nvmevar.h
src/sys/dev/pci: nvme_pci.c

Log Message:
fix several bugs, make nvme(4) MPSAFE by default and also bump default
number of ioq from 128 to 1024; tested with VirtualBox and QEMU

* remove NVME_INTMC/NVME_INTMS writes in hw intr handler as this is not MPSAFE,
  fortunately they don't seem to be necessary; shaves two register writes
* need to use full mutex_enter() in nvme_q_complete(), to avoid small
  race between one handler exiting the loop and another entering
* for MSI, handover the command result processing to softintr; unfortunately
  can't easily do that for INTx interrupts as they require doorbell write
  to deassert
* unlock/relock q->q_cq_mtx before calling ccb_done to avoid potential deadlocks
* make sure to destroy queue mutexes when destroying the queue (LOCKDEBUG)
* make ns ctx pool per-device, so that it's deallocated properly on module
  unload
* handle ctx allocation failure in ld_nvme_dobio()
* remove splbio() calls in ld_nvme_dobio() and sync, the paths are exercised
  only for dump/shutdown, and that already disables interrupts
* free the ns ctx in ld_nvme_biodone() before calling lddone() to avoid
  memory starvation, as lddone() can trigger another i/o request
* be more careful with using PR_WAITOK, the paths are called from interrupt
  context and there we can't wait


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/ld_nvme.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/nvme.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ic/nvmevar.h
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/pci/nvme_pci.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/ic/ld_nvme.c
diff -u src/sys/dev/ic/ld_nvme.c:1.3 src/sys/dev/ic/ld_nvme.c:1.4
--- src/sys/dev/ic/ld_nvme.c:1.3	Fri Sep 16 15:24:47 2016
+++ src/sys/dev/ic/ld_nvme.c	Sun Sep 18 21:19:39 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: ld_nvme.c,v 1.3 2016/09/16 15:24:47 jdolecek Exp $	*/
+/*	$NetBSD: ld_nvme.c,v 1.4 2016/09/18 21:19:39 jdolecek Exp $	*/
 
 /*-
  * Copyright (C) 2016 NONAKA Kimihiro 
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.3 2016/09/16 15:24:47 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.4 2016/09/18 21:19:39 jdolecek Exp $");
 
 #include 
 #include 
@@ -108,8 +108,8 @@ ld_nvme_attach(device_t parent, device_t
 
 	ld->sc_secsize = 1 << f->lbads;
 	ld->sc_secperunit = nsze;
-	ld->sc_maxxfer = MAXPHYS;
-	ld->sc_maxqueuecnt = naa->naa_qentries;
+	ld->sc_maxxfer = MAXPHYS; /* XXX set according to device */
+	ld->sc_maxqueuecnt = naa->naa_qentries; /* XXX set to max allowed by device, not current config */
 	ld->sc_start = ld_nvme_start;
 	ld->sc_dump = ld_nvme_dump;
 	ld->sc_flush = ld_nvme_flush;
@@ -156,9 +156,12 @@ ld_nvme_dobio(struct ld_nvme_softc *sc, 
 {
 	struct nvme_ns_context *ctx;
 	int error;
-	int s;
+	int waitok = (bp != NULL && !cpu_softintr_p() && !cpu_intr_p());
+
+	ctx = nvme_ns_get_ctx(sc, waitok ? PR_WAITOK : PR_NOWAIT);
+	if (ctx == NULL)
+		return EAGAIN;
 
-	ctx = nvme_ns_get_ctx(bp != NULL ? PR_WAITOK : PR_NOWAIT);
 	ctx->nnc_cookie = sc;
 	ctx->nnc_nsid = sc->sc_nsid;
 	ctx->nnc_done = ld_nvme_biodone;
@@ -168,14 +171,12 @@ ld_nvme_dobio(struct ld_nvme_softc *sc, 
 	ctx->nnc_secsize = sc->sc_ld.sc_secsize;
 	ctx->nnc_blkno = blkno;
 	ctx->nnc_flags = dowrite ? 0 : NVME_NS_CTX_F_READ;
-	if (bp == NULL) {
+	if (bp == NULL)
 		SET(ctx->nnc_flags, NVME_NS_CTX_F_POLL);
-		s = splbio();
-	}
+
 	error = nvme_ns_dobio(sc->sc_nvme, ctx);
-	if (bp == NULL) {
-		splx(s);
-	}
+	if (error)
+		nvme_ns_put_ctx(sc, ctx);
 
 	return error;
 }
@@ -187,6 +188,10 @@ ld_nvme_biodone(struct nvme_ns_context *
 	struct buf *bp = ctx->nnc_buf;
 	int status = NVME_CQE_SC(ctx->nnc_status);
 
+	/* free before processing to avoid starvation, lddone() could trigger
+	 * another i/o request */
+	nvme_ns_put_ctx(sc, ctx);
+
 	if (bp != NULL) {
 		if (status != NVME_CQE_SC_SUCCESS) {
 			bp->b_error = EIO;
@@ -201,7 +206,6 @@ ld_nvme_biodone(struct nvme_ns_context *
 			aprint_error_dev(sc->sc_ld.sc_dv, "I/O error\n");
 		}
 	}
-	nvme_ns_put_ctx(ctx);
 }
 
 static int
@@ -210,21 +214,23 @@ ld_nvme_flush(struct ld_softc *ld, int f
 	struct ld_nvme_softc *sc = device_private(ld->sc_dv);
 	struct nvme_ns_context *ctx;
 	int error;
-	int s;
+	int waitok = (!ISSET(flags, LDFL_POLL)
+	&& !cpu_softintr_p() && !cpu_intr_p());
+
+	ctx = nvme_ns_get_ctx(sc, waitok ? PR_WAITOK : PR_NOWAIT);
+	if (ctx == NULL)
+		return EAGAIN;
 
-	ctx = nvme_ns_get_ctx((flags & LDFL_POLL) ? PR_NOWAIT : PR_WAITOK);
 	ctx->nnc_cookie = sc;
 	ctx->nnc_nsid = sc->sc_nsid;
 	ctx->nnc_done = ld_nvme_syncdone;
 	ctx->nnc_flags = 0;
-	if (flags & LDFL_POLL) {
+	if (flags & LDFL_POLL)
 		SET(ctx->nnc_flags, NVME_NS_CTX_F_POLL);
-		s = splbio();
-	}

CVS commit: src/sys/dev

2016-09-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 18 21:19:39 UTC 2016

Modified Files:
src/sys/dev/ic: ld_nvme.c nvme.c nvmevar.h
src/sys/dev/pci: nvme_pci.c

Log Message:
fix several bugs, make nvme(4) MPSAFE by default and also bump default
number of ioq from 128 to 1024; tested with VirtualBox and QEMU

* remove NVME_INTMC/NVME_INTMS writes in hw intr handler as this is not MPSAFE,
  fortunately they don't seem to be necessary; shaves two register writes
* need to use full mutex_enter() in nvme_q_complete(), to avoid small
  race between one handler exiting the loop and another entering
* for MSI, handover the command result processing to softintr; unfortunately
  can't easily do that for INTx interrupts as they require doorbell write
  to deassert
* unlock/relock q->q_cq_mtx before calling ccb_done to avoid potential deadlocks
* make sure to destroy queue mutexes when destroying the queue (LOCKDEBUG)
* make ns ctx pool per-device, so that it's deallocated properly on module
  unload
* handle ctx allocation failure in ld_nvme_dobio()
* remove splbio() calls in ld_nvme_dobio() and sync, the paths are exercised
  only for dump/shutdown, and that already disables interrupts
* free the ns ctx in ld_nvme_biodone() before calling lddone() to avoid
  memory starvation, as lddone() can trigger another i/o request
* be more careful with using PR_WAITOK, the paths are called from interrupt
  context and there we can't wait


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/ic/ld_nvme.c
cvs rdiff -u -r1.8 -r1.9 src/sys/dev/ic/nvme.c
cvs rdiff -u -r1.2 -r1.3 src/sys/dev/ic/nvmevar.h
cvs rdiff -u -r1.13 -r1.14 src/sys/dev/pci/nvme_pci.c

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



Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Izumi Tsutsui
christos@ wrote:

> On Sep 18,  8:12pm, a...@absd.org (David Brownlee) wrote:
> -- Subject: Re: CVS commit: src/distrib/dreamcast/ramdisk
> 
> | Last I checked dmesg was smaller than options KERNFS (that would have
> | been on an m68k port tho' :)
> 
> I am not sure; this is how other ports do it.

Well, I (and other guys) have replaced most use of
KERNFS + mount_kernfs(8) with dmesg(8) >10 years ago...
(after dmesg(8) was changed to use sysctl instead of kvm)

Anyway, it's much better to file PRs for tier-II ports,
rather than put untested changes without announcements,
as I asked you every time.

---
Izumi Tsutsui


CVS commit: src/sys/dev/ic

2016-09-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 18 21:52:37 UTC 2016

Modified Files:
src/sys/dev/ic: ld_nvme.c

Log Message:
must use PR_NOWAIT also during ldattach()/dkwedge discover, our i/o is there
called with a spin lock held, which triggers LOCKDEBUG panic


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/ld_nvme.c

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



CVS commit: src/sys/dev/ic

2016-09-18 Thread Jaromir Dolecek
Module Name:src
Committed By:   jdolecek
Date:   Sun Sep 18 21:52:37 UTC 2016

Modified Files:
src/sys/dev/ic: ld_nvme.c

Log Message:
must use PR_NOWAIT also during ldattach()/dkwedge discover, our i/o is there
called with a spin lock held, which triggers LOCKDEBUG panic


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/dev/ic/ld_nvme.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/ic/ld_nvme.c
diff -u src/sys/dev/ic/ld_nvme.c:1.4 src/sys/dev/ic/ld_nvme.c:1.5
--- src/sys/dev/ic/ld_nvme.c:1.4	Sun Sep 18 21:19:39 2016
+++ src/sys/dev/ic/ld_nvme.c	Sun Sep 18 21:52:36 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: ld_nvme.c,v 1.4 2016/09/18 21:19:39 jdolecek Exp $	*/
+/*	$NetBSD: ld_nvme.c,v 1.5 2016/09/18 21:52:36 jdolecek Exp $	*/
 
 /*-
  * Copyright (C) 2016 NONAKA Kimihiro 
@@ -26,7 +26,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.4 2016/09/18 21:19:39 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_nvme.c,v 1.5 2016/09/18 21:52:36 jdolecek Exp $");
 
 #include 
 #include 
@@ -46,6 +46,7 @@ struct ld_nvme_softc {
 	struct nvme_softc	*sc_nvme;
 
 	uint16_t		sc_nsid;
+	int			sc_attaching;
 };
 
 static int	ld_nvme_match(device_t, cfdata_t, void *);
@@ -91,6 +92,7 @@ ld_nvme_attach(device_t parent, device_t
 	ld->sc_dv = self;
 	sc->sc_nvme = nsc;
 	sc->sc_nsid = naa->naa_nsid;
+	sc->sc_attaching = 1;
 
 	aprint_naive("\n");
 	aprint_normal("\n");
@@ -115,6 +117,8 @@ ld_nvme_attach(device_t parent, device_t
 	ld->sc_flush = ld_nvme_flush;
 	ld->sc_flags = LDF_ENABLED;
 	ldattach(ld, "fcfs");
+
+	sc->sc_attaching = 0;
 }
 
 static int
@@ -156,7 +160,8 @@ ld_nvme_dobio(struct ld_nvme_softc *sc, 
 {
 	struct nvme_ns_context *ctx;
 	int error;
-	int waitok = (bp != NULL && !cpu_softintr_p() && !cpu_intr_p());
+	int waitok = (bp != NULL && !cpu_softintr_p() && !cpu_intr_p()
+	&& !sc->sc_attaching);
 
 	ctx = nvme_ns_get_ctx(sc, waitok ? PR_WAITOK : PR_NOWAIT);
 	if (ctx == NULL)



Re: CVS commit: src/distrib/atari/floppies

2016-09-18 Thread Christos Zoulas
In article <20160918175429.7df3b17f...@rebar.astron.com>,
Christos Zoulas  wrote:
>On Sep 19,  2:03am, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
>-- Subject: Re: CVS commit: src/distrib/atari/floppies
>
>| > Module Name:   src
>| > Committed By:  christos
>| > Date:  Sun Sep 18 16:36:02 UTC 2016
>| > 
>| > Modified Files:
>| >src/distrib/atari/floppies/install: list
>| >src/distrib/atari/floppies/prepare: list
>| > 
>| > Log Message:
>| > remove more stuff.
>| 
>| src/distrib/atari/floppies/prepare/install.sh requires expr and pwd.
>
>Ok, pwd is built-in to sh, expr I'll find a way to put back (or convert
>to shell built-in arithmetic).

Converted to builtins.

christos



Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Izumi Tsutsui
christos@ wrote:

> | - dmesg(8) is so useful for everyone
> | - why drop swapctl(8) but keep disklabel(8)?
> |   (both are useful for me for wd support though)
> 
> Don't we have kernfs and cat /kern/msgbuf?

It won't work without mount_kernfs(8) (and /kern dir)
in root ramdisk.

Anyway, dreamcast doesn't have sysinst so simple commands
are better for new users and demonstrations.

---
Izumi Tsutsui


Re: CVS commit: src/distrib/dreamcast/ramdisk

2016-09-18 Thread Christos Zoulas
On Sep 19,  7:15am, tsut...@ceres.dti.ne.jp (Izumi Tsutsui) wrote:
-- Subject: Re: CVS commit: src/distrib/dreamcast/ramdisk

| christos@ wrote:
| 
| > | - dmesg(8) is so useful for everyone
| > | - why drop swapctl(8) but keep disklabel(8)?
| > |   (both are useful for me for wd support though)
| > 
| > Don't we have kernfs and cat /kern/msgbuf?
| 
| It won't work without mount_kernfs(8) (and /kern dir)
| in root ramdisk.
| 
| Anyway, dreamcast doesn't have sysinst so simple commands
| are better for new users and demonstrations.

I'll see what I can put back.

christos


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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 19 01:20:26 UTC 2016

Modified Files:
src/sys/arch/ews4800mips/conf: RAMDISK

Log Message:
grow more


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/ews4800mips/conf/RAMDISK

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/ews4800mips/conf/RAMDISK
diff -u src/sys/arch/ews4800mips/conf/RAMDISK:1.18 src/sys/arch/ews4800mips/conf/RAMDISK:1.19
--- src/sys/arch/ews4800mips/conf/RAMDISK:1.18	Sun Sep 18 12:21:18 2016
+++ src/sys/arch/ews4800mips/conf/RAMDISK	Sun Sep 18 21:20:26 2016
@@ -1,4 +1,4 @@
-# 	$NetBSD: RAMDISK,v 1.18 2016/09/18 16:21:18 christos Exp $
+# 	$NetBSD: RAMDISK,v 1.19 2016/09/19 01:20:26 christos Exp $
 #
 # kernel config file with memory disk for installation
 #
@@ -11,7 +11,7 @@ makeoptions	COPTS="-Os -mmemcpy"	# optim
 options 	MEMORY_DISK_HOOKS
 options 	MEMORY_DISK_IS_ROOT	# force root on memory disk
 options 	MEMORY_DISK_SERVER=0	# no userspace memory disk support
-options 	MEMORY_DISK_ROOT_SIZE=7268	# size of memory disk, in blocks (14)
+options 	MEMORY_DISK_ROOT_SIZE=7680	# size of memory disk, in blocks (15)
 options 	MEMORY_DISK_RBFLAGS=RB_SINGLE	# boot in single-user mode
 
 options 	PIPE_SOCKETPAIR



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

2016-09-18 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Sep 19 01:20:26 UTC 2016

Modified Files:
src/sys/arch/ews4800mips/conf: RAMDISK

Log Message:
grow more


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sys/arch/ews4800mips/conf/RAMDISK

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



Re: CVS commit: src/sys/dev/mii

2016-09-18 Thread Ryo ONODERA
Hi,

With this change, the following wm(4) device links in 10BASE-T when it
is connected to 100BASE or 1000BASE hub.


From: "SAITOH Masanobu" , Date: Fri, 9 Sep 2016 06:34:10 
+

> Module Name:  src
> Committed By: msaitoh
> Date: Fri Sep  9 06:34:10 UTC 2016
> 
> Modified Files:
>   src/sys/dev/mii: inbmphyreg.h
> 
> Log Message:
>  HV_OEM_BITS is not page 0 but page 768.
> 
> 
> To generate a diff of this commit:
> cvs rdiff -u -r1.3 -r1.4 src/sys/dev/mii/inbmphyreg.h
> 
> Please note that diffs are not public domain; they are subject to the
> copyright notices on the relevant files.
> 

--
Ryo ONODERA // ryo...@yk.rim.or.jp
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Re: CVS commit: src/sys/dev/ic

2016-09-18 Thread David Holland
On Sun, Sep 18, 2016 at 09:52:37PM +, Jaromir Dolecek wrote:
 > Modified Files:
 >  src/sys/dev/ic: ld_nvme.c
 > 
 > Log Message:
 > must use PR_NOWAIT also during ldattach()/dkwedge discover, our i/o is there
 > called with a spin lock held, which triggers LOCKDEBUG panic

That sounds like it should be corrected upstream of nvme...?

-- 
David A. Holland
dholl...@netbsd.org