CVS commit: src/sys/dev/pci/ixgbe

2017-09-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Sep 13 04:50:50 UTC 2017

Modified Files:
src/sys/dev/pci/ixgbe: ixv.c

Log Message:
- Print driver feature capabilities and enable bits when verbose boot as
  ixgbe.c rev. 1.99.
- Whitespace fix.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/pci/ixgbe/ixv.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/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.62 src/sys/dev/pci/ixgbe/ixv.c:1.63
--- src/sys/dev/pci/ixgbe/ixv.c:1.62	Wed Sep 13 04:48:40 2017
+++ src/sys/dev/pci/ixgbe/ixv.c	Wed Sep 13 04:50:50 2017
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.62 2017/09/13 04:48:40 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.63 2017/09/13 04:50:50 msaitoh Exp $*/
 
 /**
 
@@ -291,6 +291,8 @@ ixv_attach(device_t parent, device_t dev
 	ixgbe_vendor_info_t *ent;
 	const struct pci_attach_args *pa = aux;
 	const char *apivstr;
+	char buf[256];
+
 	INIT_DEBUGOUT("ixv_attach: begin");
 
 	/*
@@ -408,7 +410,7 @@ ixv_attach(device_t parent, device_t dev
 		error = EIO;
 		goto err_out;
 	}
-	
+
 	/* Negotiate mailbox API version */
 	error = ixv_negotiate_api(adapter);
 	if (error)
@@ -480,7 +482,7 @@ ixv_attach(device_t parent, device_t dev
 		adapter->num_rx_desc = ixv_rxd;
 
 	/* Setup MSI-X */
-	error = ixv_configure_interrupts(adapter); 
+	error = ixv_configure_interrupts(adapter);
 	if (error)
 		goto err_out;
 
@@ -511,6 +513,11 @@ ixv_attach(device_t parent, device_t dev
 	if (adapter->feat_en & IXGBE_FEATURE_NETMAP)
 		ixgbe_netmap_attach(adapter);
 
+	snprintb(buf, sizeof(buf), IXGBE_FEATURE_FLAGS, adapter->feat_cap);
+	aprint_verbose_dev(dev, "feature cap %s\n", buf);
+	snprintb(buf, sizeof(buf), IXGBE_FEATURE_FLAGS, adapter->feat_en);
+	aprint_verbose_dev(dev, "feature ena %s\n", buf);
+
 	INIT_DEBUGOUT("ixv_attach: end");
 	adapter->osdep.attached = true;
 
@@ -673,7 +680,7 @@ ixv_init_locked(struct adapter *adapter)
 	KASSERT(mutex_owned(&adapter->core_mtx));
 	hw->adapter_stopped = FALSE;
 	hw->mac.ops.stop_adapter(hw);
-callout_stop(&adapter->timer);
+	callout_stop(&adapter->timer);
 
 	/* reprogram the RAR[0] in case user changed it. */
 	hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV);
@@ -838,7 +845,7 @@ ixv_msix_que(void *arg)
 	 *  - Calculate based on average size over
 	 *the last interval.
 	 */
-if (que->eitr_setting)
+	if (que->eitr_setting)
 		IXGBE_WRITE_REG(&adapter->hw, IXGBE_VTEITR(que->msix),
 		que->eitr_setting);
 
@@ -916,7 +923,7 @@ ixv_msix_mbx(void *arg)
  *   the interface using ifconfig.
  /
 static void
-ixv_media_status(struct ifnet * ifp, struct ifmediareq * ifmr)
+ixv_media_status(struct ifnet *ifp, struct ifmediareq *ifmr)
 {
 	struct adapter *adapter = ifp->if_softc;
 
@@ -1190,7 +1197,7 @@ ixv_update_link_status(struct adapter *a
 	bpsmsg = "unknown speed";
 	break;
 }
-device_printf(dev,"Link is up %s %s \n",
+device_printf(dev, "Link is up %s %s \n",
 bpsmsg, "Full Duplex");
 			}
 			adapter->link_active = TRUE;
@@ -1199,7 +1206,7 @@ ixv_update_link_status(struct adapter *a
 	} else { /* Link down */
 		if (adapter->link_active == TRUE) {
 			if (bootverbose)
-device_printf(dev,"Link is Down\n");
+device_printf(dev, "Link is Down\n");
 			if_link_state_change(ifp, LINK_STATE_DOWN);
 			adapter->link_active = FALSE;
 		}
@@ -1897,7 +1904,7 @@ ixv_configure_ivars(struct adapter *adap
 		/* ... and the TX */
 		ixv_set_ivar(adapter, i, que->msix, 1);
 		/* Set an initial value in EITR */
-IXGBE_WRITE_REG(&adapter->hw, IXGBE_VTEITR(que->msix),
+		IXGBE_WRITE_REG(&adapter->hw, IXGBE_VTEITR(que->msix),
 		IXGBE_EITR_DEFAULT);
 	}
 
@@ -1932,7 +1939,7 @@ ixv_save_stats(struct adapter *adapter)
 		stats->vfmprc.ev_count - stats->base_vfmprc;
 	}
 } /* ixv_save_stats */
- 
+
 /
  * ixv_init_stats
  /
@@ -1988,7 +1995,7 @@ ixv_init_stats(struct adapter *adapter)
 void
 ixv_update_stats(struct adapter *adapter)
 {
-struct ixgbe_hw *hw = &adapter->hw;
+	struct ixgbe_hw *hw = &adapter->hw;
 	struct ixgbevf_hw_stats *stats = &adapter->stats.vf;
 
 UPDATE_STAT_32(IXGBE_VFGPRC, stats->last_vfgprc, stats->vfgprc);
@@ -2273,7 +2280,7 @@ ixv_print_debug_info(struct adapter *ada
 struct lro_ctrl *lro;
 #endif /* LRO */
 
-	device_printf(dev,"Error Byte Count = %u \n",
+	device_printf(dev, "Error Byte Count = %u \n",
 	IXGBE_READ_REG(hw, IXGBE_ERRBC));
 
 	for (int i = 0; i < adapter->num_queues; i++, que++) {
@@ -2282,21 +2289,21 @@ ixv_print_debug_info(struct adapter *ada
 #ifdef LRO
 		lro = &rx

CVS commit: src/sys/dev/pci/ixgbe

2017-09-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Wed Sep 13 04:48:41 UTC 2017

Modified Files:
src/sys/dev/pci/ixgbe: ixv.c

Log Message:
 Set get_link_status to true in ixv_init_locked() to get the first link status
correctly.


To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/dev/pci/ixgbe/ixv.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/ixgbe/ixv.c
diff -u src/sys/dev/pci/ixgbe/ixv.c:1.61 src/sys/dev/pci/ixgbe/ixv.c:1.62
--- src/sys/dev/pci/ixgbe/ixv.c:1.61	Tue Sep 12 05:28:31 2017
+++ src/sys/dev/pci/ixgbe/ixv.c	Wed Sep 13 04:48:40 2017
@@ -1,4 +1,4 @@
-/*$NetBSD: ixv.c,v 1.61 2017/09/12 05:28:31 msaitoh Exp $*/
+/*$NetBSD: ixv.c,v 1.62 2017/09/13 04:48:40 msaitoh Exp $*/
 
 /**
 
@@ -750,6 +750,7 @@ ixv_init_locked(struct adapter *adapter)
 	ixv_init_stats(adapter);
 
 	/* Config/Enable Link */
+	hw->mac.get_link_status = TRUE;
 	hw->mac.ops.check_link(hw, &adapter->link_speed, &adapter->link_up,
 	FALSE);
 



CVS commit: src/share/man/man4

2017-09-12 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Wed Sep 13 00:34:48 UTC 2017

Modified Files:
src/share/man/man4: options.4

Log Message:
note that COMPAT_XX netbsd options enable all forward support as well.
eg, COMPAT_60 enables COMPAT_70 and higher.
document the changes in compat for 4, 5, 6, and 7.
bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.470 -r1.471 src/share/man/man4/options.4

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

Modified files:

Index: src/share/man/man4/options.4
diff -u src/share/man/man4/options.4:1.470 src/share/man/man4/options.4:1.471
--- src/share/man/man4/options.4:1.470	Sat Aug 12 08:03:57 2017
+++ src/share/man/man4/options.4	Wed Sep 13 00:34:48 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: options.4,v 1.470 2017/08/12 08:03:57 maxv Exp $
+.\"	$NetBSD: options.4,v 1.471 2017/09/13 00:34:48 mrg Exp $
 .\"
 .\" Copyright (c) 1996
 .\" 	Perry E. Metzger.  All rights reserved.
@@ -30,7 +30,7 @@
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
 .\"
-.Dd August 12, 2017
+.Dd September 12, 2017
 .Dt OPTIONS 4
 .Os
 .Sh NAME
@@ -173,6 +173,19 @@ Some pseudo-devices can have multiple or
 instances.
 .El
 .Ss Compatibility Options
+Note that compatibility options for older
+.Nx
+releases includes on the support for newer releases as well.
+This means that typically only one of these is necessary, with the
+.Cd COMPAT_09
+option enabling all
+.Nx
+compatibility.
+This does not include the
+.Cd COMPAT_43
+or
+.Cd COMPAT_44
+options.
 .Bl -ohang
 .It Cd options COMPAT_09
 Enable binary compatibility with
@@ -323,6 +336,13 @@ release.
 .It Cd options COMPAT_40
 Enable binary compatibility with
 .Nx 4.0 .
+This allows the use of old
+.Xr ptrace 2
+calls for the SH3 platform.
+It also enables old
+.Xr mount 2
+system call that did not include the data length parameter.
+The power_event_t structure's pev_switch is filled in.
 .It Cd options COMPAT_43
 Enables compatibility with
 .Bx 4.3 .
@@ -354,12 +374,32 @@ socket calls.
 .It Cd options COMPAT_50
 Enable binary compatibility with
 .Nx 5.0 .
+This enables support for the old
+.Ft time_t
+and
+.Ft dev_t
+types as 32 bit, and all the associated kernel interface changes.
+It also enables old
+.Xr gpio 4
+and 
+.Xr rnd 4
+interfaces.
 .It Cd options COMPAT_60
 Enable binary compatibility with
 .Nx 6.0 .
+This provides old
+.Xr ccd 4
+interfaces, enables support for old
+.Xr cpuctl 8
+microcode interfaces, and support for the old
+.Ft ptmget
+structure.
 .It Cd options COMPAT_70
 Enable binary compatibility with
 .Nx 7.0 .
+This provides support for old
+.Xr route 4
+interfaces.
 .It Cd options COMPAT_BSDPTY
 This option is currently on by default and enables the pty multiplexer
 .Xr ptm 4



CVS commit: src

2017-09-12 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Sep 12 14:52:02 UTC 2017

Modified Files:
src/distrib/sets/lists/man: mi
src/share/man/man4: Makefile
Removed Files:
src/share/man/man4: scc.4

Log Message:
Remove scc(4), driver was replaced by zs(4).

Fixes PR 52539 by Miod Vallat.


To generate a diff of this commit:
cvs rdiff -u -r1.1559 -r1.1560 src/distrib/sets/lists/man/mi
cvs rdiff -u -r1.641 -r1.642 src/share/man/man4/Makefile
cvs rdiff -u -r1.9 -r0 src/share/man/man4/scc.4

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/man/mi
diff -u src/distrib/sets/lists/man/mi:1.1559 src/distrib/sets/lists/man/mi:1.1560
--- src/distrib/sets/lists/man/mi:1.1559	Fri Jun 16 22:39:34 2017
+++ src/distrib/sets/lists/man/mi	Tue Sep 12 14:52:02 2017
@@ -1,4 +1,4 @@
-# $NetBSD: mi,v 1.1559 2017/06/16 22:39:34 pgoyette Exp $
+# $NetBSD: mi,v 1.1560 2017/09/12 14:52:02 wiz Exp $
 #
 # Note: don't delete entries from here - mark them as "obsolete" instead.
 #
@@ -1624,7 +1624,7 @@
 ./usr/share/man/cat4/sbt.0			man-sys-catman		.cat
 ./usr/share/man/cat4/sbus.0			man-sys-catman		.cat
 ./usr/share/man/cat4/sc.0			man-sys-catman		.cat
-./usr/share/man/cat4/scc.0			man-sys-catman		.cat
+./usr/share/man/cat4/scc.0			man-obsolete		obsolete
 ./usr/share/man/cat4/schide.0			man-sys-catman		.cat
 ./usr/share/man/cat4/scsi.0			man-sys-catman		.cat
 ./usr/share/man/cat4/scsibus.0			man-sys-catman		.cat
@@ -4674,7 +4674,7 @@
 ./usr/share/man/html4/sbt.html			man-sys-htmlman		html
 ./usr/share/man/html4/sbus.html			man-sys-htmlman		html
 ./usr/share/man/html4/sc.html			man-sys-htmlman		html
-./usr/share/man/html4/scc.html			man-sys-htmlman		html
+./usr/share/man/html4/scc.html			man-obsolete		obsolete
 ./usr/share/man/html4/schide.html		man-sys-htmlman		html
 ./usr/share/man/html4/scsi.html			man-sys-htmlman		html
 ./usr/share/man/html4/scsibus.html		man-sys-htmlman		html
@@ -7630,7 +7630,7 @@
 ./usr/share/man/man4/sbt.4			man-sys-man		.man
 ./usr/share/man/man4/sbus.4			man-sys-man		.man
 ./usr/share/man/man4/sc.4			man-sys-man		.man
-./usr/share/man/man4/scc.4			man-sys-man		.man
+./usr/share/man/man4/scc.4			man-obsolete		obsolete
 ./usr/share/man/man4/schide.4			man-sys-man		.man
 ./usr/share/man/man4/scsi.4			man-sys-man		.man
 ./usr/share/man/man4/scsibus.4			man-sys-man		.man

Index: src/share/man/man4/Makefile
diff -u src/share/man/man4/Makefile:1.641 src/share/man/man4/Makefile:1.642
--- src/share/man/man4/Makefile:1.641	Fri Jun 16 22:39:34 2017
+++ src/share/man/man4/Makefile	Tue Sep 12 14:52:02 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.641 2017/06/16 22:39:34 pgoyette Exp $
+#	$NetBSD: Makefile,v 1.642 2017/09/12 14:52:02 wiz Exp $
 #	@(#)Makefile	8.1 (Berkeley) 6/18/93
 
 MAN=	aac.4 ac97.4 acardide.4 aceride.4 acphy.4 \
@@ -55,7 +55,7 @@ MAN=	aac.4 ac97.4 acardide.4 aceride.4 a
 	pxaip.4 pxg.4 qe.4 qec.4 qsphy.4 \
 	raid.4 ral.4 ray.4 rcons.4 rdcphy.4 re.4 rgephy.4 rlphy.4 \
 	rnd.4 route.4 rs5c372rtc.4 rtk.4 rtsx.4 rtw.4 rtwn.4 rum.4 run.4 \
-	s390rtc.4 satalink.4 sbus.4 scc.4 schide.4 \
+	s390rtc.4 satalink.4 sbus.4 schide.4 \
 	scsi.4 sd.4 se.4 seeprom.4 sem.4 \
 	ses.4 sf.4 sfb.4 sgsmix.4 shb.4 shmif.4 \
 	shpcic.4 siisata.4 siop.4 sip.4 siside.4 sk.4 sl.4 slide.4 \



CVS commit: src/share/man/man4

2017-09-12 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Sep 12 14:48:44 UTC 2017

Modified Files:
src/share/man/man4: ioasic.4

Log Message:
Remove scc(4) reference, driver was replaced by zs.  PR 52539.

New sentence, new line.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/share/man/man4/ioasic.4

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

Modified files:

Index: src/share/man/man4/ioasic.4
diff -u src/share/man/man4/ioasic.4:1.4 src/share/man/man4/ioasic.4:1.5
--- src/share/man/man4/ioasic.4:1.4	Tue May 11 22:42:47 2004
+++ src/share/man/man4/ioasic.4	Tue Sep 12 14:48:44 2017
@@ -1,4 +1,4 @@
-.\" $NetBSD: ioasic.4,v 1.4 2004/05/11 22:42:47 wiz Exp $
+.\" $NetBSD: ioasic.4,v 1.5 2017/09/12 14:48:44 wiz Exp $
 .\"
 .\" Copyright (c) 1996, 1997 Jonathan Stone.
 .\" All rights reserved.
@@ -28,7 +28,7 @@
 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd September 12, 1996
+.Dd September 12, 2007
 .Dt IOASIC 4
 .Os
 .Sh NAME
@@ -42,9 +42,9 @@ The
 .Nm
 driver provides support for the DEC proprietary IOCTL ASIC found on
 all DEC TURBOchannel machines with MIPS (DECstation 5000 series,
-excluding the 5000/200) and Alpha (3000-series) processors.  On these
-machines (including the 5000/200), all baseboard devices should be
-configured as children of the
+excluding the 5000/200) and Alpha (3000-series) processors.
+On these machines (including the 5000/200), all baseboard devices
+should be configured as children of the
 .Nm
 device.
 .Pp
@@ -58,7 +58,7 @@ SCSI device with a scatter/gather DMA ch
 an Am7930 audio device
 .Nm bba ,
 one or two
-.Nm scc
+.Nm zs
 two-port serial devices, and a AMD 7990 LANCE
 .Nm le
 Ethernet interface.
@@ -88,8 +88,8 @@ counterpart.
 .Xr intro 4 ,
 .Xr le 4 ,
 .Xr mcclock 4 ,
-.Xr scc 4 ,
-.Xr tc 4
+.Xr tc 4 ,
+.Xr zs 4
 .Sh HISTORY
 The
 .Nm



CVS commit: src/share/man/man4

2017-09-12 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Tue Sep 12 14:48:11 UTC 2017

Modified Files:
src/share/man/man4: zstty.4

Log Message:
Remove scc(4) reference, driver was replaced by this one.  PR 52539.

Remove .Tn while here.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/share/man/man4/zstty.4

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

Modified files:

Index: src/share/man/man4/zstty.4
diff -u src/share/man/man4/zstty.4:1.15 src/share/man/man4/zstty.4:1.16
--- src/share/man/man4/zstty.4:1.15	Sun Jul  9 06:37:34 2017
+++ src/share/man/man4/zstty.4	Tue Sep 12 14:48:11 2017
@@ -1,4 +1,4 @@
-.\"	$NetBSD: zstty.4,v 1.15 2017/07/09 06:37:34 tsutsui Exp $
+.\"	$NetBSD: zstty.4,v 1.16 2017/09/12 14:48:11 wiz Exp $
 .\"
 .\" Copyright (c) 1997 The NetBSD Foundation, Inc.
 .\" All rights reserved.
@@ -27,20 +27,14 @@
 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 .\" POSSIBILITY OF SUCH DAMAGE.
 .\"
-.Dd July 9, 2017
+.Dd September 12, 2017
 .Dt ZSTTY 4
 .Os
 .Sh NAME
 .Nm zstty ,
 .Nm zsc ,
 .Nm zs
-.Nd
-.Tn Zilog
-8530 Serial Communications Controller (SCC) for
-.Tn RS-232C ,
-.Tn RS-422 ,
-and
-.Tn RS-423
+.Nd Zilog 8530 Serial Communications Controller (SCC) for RS-232C, RS-422, and RS-423
 .Sh SYNOPSIS
 .Cd options PPS_SYNC
 .Cd options PPS_TRAILING_EDGE
@@ -156,13 +150,7 @@ and
 .Sh DESCRIPTION
 The
 .Nm
-driver provides
-.Tn TTY
-support for
-.Tn Zilog
-8530 Dual
-.Tn UART
-chips.
+driver provides TTY support for Zilog 8530 Dual UART chips.
 .Pp
 Input and output for each line may set to any baud rate in the
 range 50 to 38400 (and higher on some machines).
@@ -170,12 +158,7 @@ range 50 to 38400 (and higher on some ma
 The
 .Em PPS_SYNC
 option enables code to use the Data Carrier Detect (DCD) signal line for attachment
-to an external precision clock source
-.Po
-e.g.,
-.Tn GPS ,
-.Tn CDMA
-.Pc
+to an external precision clock source (e.g., GPS, CDMA)
 which generates a Pulse Per Second (PPS) signal.
 This is used by
 .Xr ntpd 8
@@ -235,7 +218,6 @@ This usually means input flow-control is
 .Xr kbd 4 ,
 .Xr ms 4 ,
 .Xr options 4 ,
-.Xr scc 4 ,
 .Xr tty 4 ,
 .Xr ntpd 8
 .Sh HISTORY
@@ -253,9 +235,7 @@ on alpha is created by
 .Xr MAKEDEV 8
 with minor number 2, so the corresponding device should be zstty2, not zstty1.
 .Sh BUGS
-The old
-.Tn Zilog
-8530 chip has a very small FIFO (3 bytes?) and
+The old Zilog 8530 chip has a very small FIFO (3 bytes?) and
 therefore has very strict latency requirements for the
 interrupt service routine.
 This limits the usable baud rates on many machines.



CVS commit: xsrc/local

2017-09-12 Thread Jonathan A. Kollasch
Module Name:xsrc
Committed By:   jakllsch
Date:   Tue Sep 12 14:16:02 UTC 2017

Removed Files:
xsrc/local: Imakefile
xsrc/local/programs: Imakefile
xsrc/local/programs/xftlsfonts: Imakefile xftlsfonts.c xftlsfonts.man
xsrc/local/programs/xsystrace: Imakefile Xsystrace.ad callbacks.c
callbacks.h interface.c interface.h main.c xsystrace.man
xsrc/local/programs/xsystrace/pixmaps: deny-always.xpm deny.xpm
logo.xpm permit-always.xpm permit.xpm skull.xpm

Log Message:
local: remove obsolete programs and infrastructure

Remove local Imakefiles, xftlsfonts, and xsystrace.

- xftlsfonts isn't currently part of base, and probably has been
  completely replaced by fc-list.

- systrace was removed from base long ago, so xsystrace has no use.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r0 xsrc/local/Imakefile
cvs rdiff -u -r1.6 -r0 xsrc/local/programs/Imakefile
cvs rdiff -u -r1.6 -r0 xsrc/local/programs/xftlsfonts/Imakefile
cvs rdiff -u -r1.2 -r0 xsrc/local/programs/xftlsfonts/xftlsfonts.c
cvs rdiff -u -r1.1 -r0 xsrc/local/programs/xftlsfonts/xftlsfonts.man
cvs rdiff -u -r1.3 -r0 xsrc/local/programs/xsystrace/Imakefile \
xsrc/local/programs/xsystrace/Xsystrace.ad
cvs rdiff -u -r1.5 -r0 xsrc/local/programs/xsystrace/callbacks.c
cvs rdiff -u -r1.2 -r0 xsrc/local/programs/xsystrace/callbacks.h \
xsrc/local/programs/xsystrace/interface.c \
xsrc/local/programs/xsystrace/interface.h \
xsrc/local/programs/xsystrace/main.c
cvs rdiff -u -r1.1 -r0 xsrc/local/programs/xsystrace/xsystrace.man
cvs rdiff -u -r1.1 -r0 xsrc/local/programs/xsystrace/pixmaps/deny-always.xpm \
xsrc/local/programs/xsystrace/pixmaps/deny.xpm \
xsrc/local/programs/xsystrace/pixmaps/logo.xpm \
xsrc/local/programs/xsystrace/pixmaps/permit-always.xpm \
xsrc/local/programs/xsystrace/pixmaps/permit.xpm \
xsrc/local/programs/xsystrace/pixmaps/skull.xpm

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



CVS commit: src/sys/arch/i386/i386

2017-09-12 Thread Andreas Gustafsson
Module Name:src
Committed By:   gson
Date:   Tue Sep 12 14:10:49 UTC 2017

Modified Files:
src/sys/arch/i386/i386: trap.c

Log Message:
Don't use a const variable as an array size, because it is not a
constant expression and will cause the array to needlessly become a
variable-size one.  Fixes "error: stack protector not protecting local
variables: variable length buffer [-Werror=stack-protector]" when
building i386 with MKDEBUG=YES -V COPTS="-g".


To generate a diff of this commit:
cvs rdiff -u -r1.289 -r1.290 src/sys/arch/i386/i386/trap.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/i386/i386/trap.c
diff -u src/sys/arch/i386/i386/trap.c:1.289 src/sys/arch/i386/i386/trap.c:1.290
--- src/sys/arch/i386/i386/trap.c:1.289	Sat Aug 12 07:07:53 2017
+++ src/sys/arch/i386/i386/trap.c	Tue Sep 12 14:10:49 2017
@@ -1,5 +1,5 @@
 
-/*	$NetBSD: trap.c,v 1.289 2017/08/12 07:07:53 maxv Exp $	*/
+/*	$NetBSD: trap.c,v 1.290 2017/09/12 14:10:49 gson Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2000, 2005, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -69,7 +69,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.289 2017/08/12 07:07:53 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: trap.c,v 1.290 2017/09/12 14:10:49 gson Exp $");
 
 #include "opt_ddb.h"
 #include "opt_kgdb.h"
@@ -421,7 +421,7 @@ kernelfault:
 	{
 		static const char lcall[7] = { 0x9a, 0, 0, 0, 0, 7, 0 };
 		const size_t sz = sizeof(lcall);
-		char tmp[sz];
+		char tmp[sizeof(lcall)];
 
 		/* Check for the osyscall lcall instruction. */
 		if (frame->tf_eip < VM_MAXUSER_ADDRESS - sz &&



CVS commit: src/sys/dev/sdmmc

2017-09-12 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Sep 12 13:43:37 UTC 2017

Modified Files:
src/sys/dev/sdmmc: sdmmc_mem.c sdmmcreg.h

Log Message:
For SD cards, send the SET_WR_BLK_ERASE_COUNT app command before a
multi-block write to improve write performance.


To generate a diff of this commit:
cvs rdiff -u -r1.62 -r1.63 src/sys/dev/sdmmc/sdmmc_mem.c
cvs rdiff -u -r1.32 -r1.33 src/sys/dev/sdmmc/sdmmcreg.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/sdmmc/sdmmc_mem.c
diff -u src/sys/dev/sdmmc/sdmmc_mem.c:1.62 src/sys/dev/sdmmc/sdmmc_mem.c:1.63
--- src/sys/dev/sdmmc/sdmmc_mem.c:1.62	Sun Aug 20 15:58:43 2017
+++ src/sys/dev/sdmmc/sdmmc_mem.c	Tue Sep 12 13:43:37 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: sdmmc_mem.c,v 1.62 2017/08/20 15:58:43 mlelstv Exp $	*/
+/*	$NetBSD: sdmmc_mem.c,v 1.63 2017/09/12 13:43:37 jmcneill Exp $	*/
 /*	$OpenBSD: sdmmc_mem.c,v 1.10 2009/01/09 10:55:22 jsg Exp $	*/
 
 /*
@@ -45,7 +45,7 @@
 /* Routines for SD/MMC memory cards. */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.62 2017/08/20 15:58:43 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.63 2017/09/12 13:43:37 jmcneill Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_sdmmc.h"
@@ -2021,6 +2021,18 @@ sdmmc_mem_write_block_subr(struct sdmmc_
 			goto out;
 	}
 
+	const int nblk = howmany(datalen, SDMMC_SECTOR_SIZE);
+	if (ISSET(sc->sc_flags, SMF_SD_MODE) && nblk > 1) {
+		/* Set the number of write blocks to be pre-erased */
+		memset(&cmd, 0, sizeof(cmd));
+		cmd.c_opcode = SD_APP_SET_WR_BLK_ERASE_COUNT;
+		cmd.c_flags = SCF_RSP_R1 | SCF_RSP_SPI_R1 | SCF_CMD_AC;
+		cmd.c_arg = nblk;
+		error = sdmmc_app_command(sc, sf, &cmd);
+		if (error)
+			goto out;
+	}
+
 	memset(&cmd, 0, sizeof(cmd));
 	cmd.c_data = data;
 	cmd.c_datalen = datalen;

Index: src/sys/dev/sdmmc/sdmmcreg.h
diff -u src/sys/dev/sdmmc/sdmmcreg.h:1.32 src/sys/dev/sdmmc/sdmmcreg.h:1.33
--- src/sys/dev/sdmmc/sdmmcreg.h:1.32	Sun Jul 16 17:11:46 2017
+++ src/sys/dev/sdmmc/sdmmcreg.h	Tue Sep 12 13:43:37 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: sdmmcreg.h,v 1.32 2017/07/16 17:11:46 jmcneill Exp $	*/
+/*	$NetBSD: sdmmcreg.h,v 1.33 2017/09/12 13:43:37 jmcneill Exp $	*/
 /*	$OpenBSD: sdmmcreg.h,v 1.4 2009/01/09 10:55:22 jsg Exp $	*/
 
 /*
@@ -67,6 +67,7 @@
 /* SD application commands */			/* response type */
 #define SD_APP_SET_BUS_WIDTH		6	/* R1 */
 #define SD_APP_SD_STATUS		13	/* R1 */
+#define SD_APP_SET_WR_BLK_ERASE_COUNT	23	/* R1 */
 #define SD_APP_OP_COND			41	/* R3 */
 #define SD_APP_SEND_SCR			51	/* R1 */
 



CVS commit: src/sys/arch/arm/sunxi

2017-09-12 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Tue Sep 12 10:46:33 UTC 2017

Modified Files:
src/sys/arch/arm/sunxi: sunxi_gpio.c

Log Message:
Fix non-MULTIPROCESSOR builds


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/arch/arm/sunxi/sunxi_gpio.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/arm/sunxi/sunxi_gpio.c
diff -u src/sys/arch/arm/sunxi/sunxi_gpio.c:1.12 src/sys/arch/arm/sunxi/sunxi_gpio.c:1.13
--- src/sys/arch/arm/sunxi/sunxi_gpio.c:1.12	Sat Aug 26 17:59:24 2017
+++ src/sys/arch/arm/sunxi/sunxi_gpio.c	Tue Sep 12 10:46:33 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_gpio.c,v 1.12 2017/08/26 17:59:24 jmcneill Exp $ */
+/* $NetBSD: sunxi_gpio.c,v 1.13 2017/09/12 10:46:33 jmcneill Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill 
@@ -29,7 +29,7 @@
 #include "opt_soc.h"
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: sunxi_gpio.c,v 1.12 2017/08/26 17:59:24 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_gpio.c,v 1.13 2017/09/12 10:46:33 jmcneill Exp $");
 
 #include 
 #include 
@@ -40,6 +40,7 @@ __KERNEL_RCSID(0, "$NetBSD: sunxi_gpio.c
 #include 
 #include 
 #include 
+#include 
 
 #include 
 #include 



CVS commit: src/doc

2017-09-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Sep 12 10:05:37 UTC 2017

Modified Files:
src/doc: CHANGES

Log Message:
 itesio(4) Add IT8628E, IT8728F and IT877[12]E support.


To generate a diff of this commit:
cvs rdiff -u -r1.2312 -r1.2313 src/doc/CHANGES

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
diff -u src/doc/CHANGES:1.2312 src/doc/CHANGES:1.2313
--- src/doc/CHANGES:1.2312	Sat Sep  9 21:34:07 2017
+++ src/doc/CHANGES	Tue Sep 12 10:05:37 2017
@@ -1,4 +1,4 @@
-# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2312 $>
+# LIST OF CHANGES FROM LAST RELEASE:			<$Revision: 1.2313 $>
 #
 #
 # [Note: This file does not mention every change made to the NetBSD source tree.
@@ -47,6 +47,7 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	lm(4): Add support for NCT5174D, NCT6775F, NCT6779D and NCT679[1235]D.
 		[msaitoh 20170711]
 	arm: Add support for NVIDIA Tegra X1 SoC. [jmcneill 20170720]
+	itesio(4): Add support IT8628E. [hauke 20170814]
 	ichsmb(4): Add support for Intel C3000. [msaitoh 20170817]
 	ismt(4): Add support for Intel C3000. [msaitoh 20170817]
 	powerpc: Bump MAXTSIZ to 128MB for OEA based systems [sevan 20170818]
@@ -56,3 +57,4 @@ Changes from NetBSD 8.0 to NetBSD 9.0:
 	file(1): Upgraded to 5.32. [christos 20170908]
 	tcpdump(8): Import 4.9.2. [christos 20170908]
 	veriexecgen(8): drop support for MD5, SHA1, RMD160. [sevan 20170909]
+	itesio(4): Add support IT8728GF and IT877[12]E [hauke 20170814]



CVS commit: src/sys/dev/isa

2017-09-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Sep 12 09:54:45 UTC 2017

Modified Files:
src/sys/dev/isa: itesio_isa.c itesio_isavar.h

Log Message:
 Add IT8728F and IT877[12]E.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/dev/isa/itesio_isa.c
cvs rdiff -u -r1.10 -r1.11 src/sys/dev/isa/itesio_isavar.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/isa/itesio_isa.c
diff -u src/sys/dev/isa/itesio_isa.c:1.26 src/sys/dev/isa/itesio_isa.c:1.27
--- src/sys/dev/isa/itesio_isa.c:1.26	Mon Aug 14 11:49:30 2017
+++ src/sys/dev/isa/itesio_isa.c	Tue Sep 12 09:54:45 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: itesio_isa.c,v 1.26 2017/08/14 11:49:30 hauke Exp $ */
+/*	$NetBSD: itesio_isa.c,v 1.27 2017/09/12 09:54:45 msaitoh Exp $ */
 /*	Derived from $OpenBSD: it.c,v 1.19 2006/04/10 00:57:54 deraadt Exp $	*/
 
 /*
@@ -34,7 +34,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: itesio_isa.c,v 1.26 2017/08/14 11:49:30 hauke Exp $");
+__KERNEL_RCSID(0, "$NetBSD: itesio_isa.c,v 1.27 2017/09/12 09:54:45 msaitoh Exp $");
 
 #include 
 #include 
@@ -144,6 +144,9 @@ itesio_isa_match(device_t parent, cfdata
 	case ITESIO_ID8720:
 	case ITESIO_ID8721:
 	case ITESIO_ID8726:
+	case ITESIO_ID8728:
+	case ITESIO_ID8771:
+	case ITESIO_ID8772:
 		ia->ia_nio = 1;
 		ia->ia_io[0].ir_size = 2;
 		ia->ia_niomem = 0;

Index: src/sys/dev/isa/itesio_isavar.h
diff -u src/sys/dev/isa/itesio_isavar.h:1.10 src/sys/dev/isa/itesio_isavar.h:1.11
--- src/sys/dev/isa/itesio_isavar.h:1.10	Mon Aug 14 11:49:30 2017
+++ src/sys/dev/isa/itesio_isavar.h	Tue Sep 12 09:54:45 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: itesio_isavar.h,v 1.10 2017/08/14 11:49:30 hauke Exp $	*/
+/*	$NetBSD: itesio_isavar.h,v 1.11 2017/09/12 09:54:45 msaitoh Exp $	*/
 /*	$OpenBSD: itvar.h,v 1.2 2003/11/05 20:57:10 grange Exp $	*/
 
 /*
@@ -65,6 +65,9 @@
 #define ITESIO_ID8720	0x8720
 #define ITESIO_ID8721	0x8721
 #define ITESIO_ID8726	0x8726
+#define ITESIO_ID8728	0x8728
+#define ITESIO_ID8771	0x8771
+#define ITESIO_ID8772	0x8772
 
 /* 
  * Control registers for the Environmental Controller, relative



CVS commit: src/external/gpl3/gcc/usr.bin/backend

2017-09-12 Thread Havard Eidnes
Module Name:src
Committed By:   he
Date:   Tue Sep 12 09:25:24 UTC 2017

Modified Files:
src/external/gpl3/gcc/usr.bin/backend: Makefile

Log Message:
Replicate fix from the old gcc.old: alpha.d needs pass-instances.def.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/external/gpl3/gcc/usr.bin/backend/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/gpl3/gcc/usr.bin/backend/Makefile
diff -u src/external/gpl3/gcc/usr.bin/backend/Makefile:1.37 src/external/gpl3/gcc/usr.bin/backend/Makefile:1.38
--- src/external/gpl3/gcc/usr.bin/backend/Makefile:1.37	Mon Jun 26 17:38:10 2017
+++ src/external/gpl3/gcc/usr.bin/backend/Makefile	Tue Sep 12 09:25:24 2017
@@ -1,4 +1,4 @@
-#	$NetBSD: Makefile,v 1.37 2017/06/26 17:38:10 joerg Exp $
+#	$NetBSD: Makefile,v 1.38 2017/09/12 09:25:24 he Exp $
 
 LIBISPRIVATE=	yes
 
@@ -445,6 +445,7 @@ final.o: target-hooks-def.h c-family/c-t
 
 .if ${GCC_MACHINE_ARCH} == "alpha"
 alpha.d alpha.o: tm-constrs.h tm_p.h insn-opinit.h target-hooks-def.h
+alpha.d: pass-instances.def
 .endif
 
 .if ${MACHINE_CPU} == "arm"



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

2017-09-12 Thread SAITOH Masanobu
Module Name:src
Committed By:   msaitoh
Date:   Tue Sep 12 07:19:36 UTC 2017

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

Log Message:
Set ci->ci_cflush_lsize correctly. This bug was added in the last commit(1.56).


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/sys/arch/x86/x86/identcpu.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/identcpu.c
diff -u src/sys/arch/x86/x86/identcpu.c:1.56 src/sys/arch/x86/x86/identcpu.c:1.57
--- src/sys/arch/x86/x86/identcpu.c:1.56	Thu Sep  7 06:40:42 2017
+++ src/sys/arch/x86/x86/identcpu.c	Tue Sep 12 07:19:36 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: identcpu.c,v 1.56 2017/09/07 06:40:42 msaitoh Exp $	*/
+/*	$NetBSD: identcpu.c,v 1.57 2017/09/12 07:19:36 msaitoh Exp $	*/
 
 /*-
  * Copyright (c) 1999, 2000, 2001, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.56 2017/09/07 06:40:42 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: identcpu.c,v 1.57 2017/09/12 07:19:36 msaitoh Exp $");
 
 #include "opt_xen.h"
 
@@ -848,7 +848,7 @@ cpu_probe(struct cpu_info *ci)
 		/* CLFLUSH line size is next 8 bits */
 		if (ci->ci_feat_val[0] & CPUID_CFLUSH)
 			ci->ci_cflush_lsize
-			= __SHIFTOUT(miscbytes, CPUID_CLFUSH_SIZE);
+			= __SHIFTOUT(miscbytes, CPUID_CLFUSH_SIZE) << 3;
 		ci->ci_initapicid = __SHIFTOUT(miscbytes, CPUID_LOCAL_APIC_ID);
 	}