svn commit: r284946 - head/share/misc

2015-06-30 Thread Maxim Konovalov
Author: maxim
Date: Tue Jun 30 07:46:06 2015
New Revision: 284946
URL: https://svnweb.freebsd.org/changeset/base/284946

Log:
  o DragonFly 4.2.0 added.

Modified:
  head/share/misc/bsd-family-tree

Modified: head/share/misc/bsd-family-tree
==
--- head/share/misc/bsd-family-tree Tue Jun 30 06:02:42 2015
(r284945)
+++ head/share/misc/bsd-family-tree Tue Jun 30 07:46:06 2015
(r284946)
@@ -330,7 +330,7 @@ FreeBSD 5.2   |  |  
  ||  | |   DragonFly 4.0.5
  ||  | |   |
  ||  |OpenBSD 5.7  |
- ||  | |   |
+ ||  | |   DragonFly 4.2.0
  ||  | |   |
 FreeBSD 11 -current   |  NetBSD -current  OpenBSD -current DragonFly 
-current
  ||  | |   |
@@ -672,6 +672,7 @@ DragonFly 4.0.3 2015-01-21 [DFB]
 DragonFly 4.0.42015-03-09 [DFB]
 DragonFly 4.0.52015-03-23 [DFB]
 OpenBSD 5.72015-05-01 [OBD]
+DragonFly 4.2.02015-06-29 [DFB]
 
 Bibliography
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r284942 - in head/release: . scripts

2015-06-30 Thread Ian Lepore
On Tue, 2015-06-30 at 01:11 +, Glen Barber wrote:
> On Mon, Jun 29, 2015 at 09:09:13PM -0400, Philip M. Gollucci wrote:
> > On Mon, Jun 29, 2015 at 5:26 PM, Brad Davis  wrote:
> > 
> > > +   env ASSUME_ALWAYS_YES=yes pkg install -y curl
> > >
> > 
> > why do we have both the env and the -y switch?
> > 
> 
> Because if pkg is not bootstrapped (pkg(7) versus pkg(8)), the former
> (/usr/sbin/pkg) does not recognize '-y'.
> 
> Glen
> 

Is there any reason we shouldn't just fix that?

-- Ian


___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r284942 - in head/release: . scripts

2015-06-30 Thread Baptiste Daroussin
On Mon, Jun 29, 2015 at 09:09:13PM -0400, Philip M. Gollucci wrote:
> On Mon, Jun 29, 2015 at 5:26 PM, Brad Davis  wrote:
> 
> > +   env ASSUME_ALWAYS_YES=yes pkg install -y curl
> >
> 
> why do we have both the env and the -y switch?
> 
-y is not needed in this case

Best regards,
Bapt


pgpr3VmICt6_P.pgp
Description: PGP signature


svn commit: r284956 - head/sys/kern

2015-06-30 Thread Konstantin Belousov
Author: kib
Date: Tue Jun 30 15:22:47 2015
New Revision: 284956
URL: https://svnweb.freebsd.org/changeset/base/284956

Log:
  Do not calculate the stack's bottom address twice.
  
  Submitted by: Olivц╘r Pintц╘r
  Review:   https://reviews.freebsd.org/D2953
  MFC after:1 week

Modified:
  head/sys/kern/kern_exec.c

Modified: head/sys/kern/kern_exec.c
==
--- head/sys/kern/kern_exec.c   Tue Jun 30 15:21:18 2015(r284955)
+++ head/sys/kern/kern_exec.c   Tue Jun 30 15:22:47 2015(r284956)
@@ -1096,7 +1096,7 @@ exec_new_vmspace(imgp, sv)
 * are still used to enforce the stack rlimit on the process stack.
 */
vmspace->vm_ssize = sgrowsiz >> PAGE_SHIFT;
-   vmspace->vm_maxsaddr = (char *)sv->sv_usrstack - ssiz;
+   vmspace->vm_maxsaddr = (char *)stack_addr;
 
return (0);
 }
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r284959 - in head: . share/man/man4 share/man/man9 sys/conf sys/dev/glxsb sys/dev/hifn sys/dev/random sys/dev/rndtest sys/dev/safe sys/dev/syscons sys/dev/ubsec sys/dev/virtio/random sy...

2015-06-30 Thread Mark Murray
/man4/random.4
  head/share/man/man9/random.9
  head/share/man/man9/random_harvest.9
  head/sys/conf/files
  head/sys/conf/options
  head/sys/dev/glxsb/glxsb.c
  head/sys/dev/hifn/hifn7751.c
  head/sys/dev/random/build.sh
  head/sys/dev/random/fortuna.c
  head/sys/dev/random/fortuna.h
  head/sys/dev/random/hash.c
  head/sys/dev/random/hash.h
  head/sys/dev/random/ivy.c
  head/sys/dev/random/nehemiah.c
  head/sys/dev/random/random_harvestq.c
  head/sys/dev/random/random_harvestq.h
  head/sys/dev/random/randomdev.c
  head/sys/dev/random/randomdev.h
  head/sys/dev/random/uint128.h
  head/sys/dev/random/unit_test.c
  head/sys/dev/random/unit_test.h
  head/sys/dev/random/yarrow.c
  head/sys/dev/random/yarrow.h
  head/sys/dev/rndtest/rndtest.c
  head/sys/dev/safe/safe.c
  head/sys/dev/syscons/scmouse.c
  head/sys/dev/syscons/syscons.c
  head/sys/dev/ubsec/ubsec.c
  head/sys/dev/virtio/random/virtio_random.c
  head/sys/dev/vt/vt_core.c
  head/sys/dev/vt/vt_sysmouse.c
  head/sys/fs/tmpfs/tmpfs_subr.c
  head/sys/kern/kern_intr.c
  head/sys/kern/kern_mib.c
  head/sys/kern/subr_bus.c
  head/sys/libkern/arc4random.c
  head/sys/libkern/random.c
  head/sys/mips/cavium/octeon_rnd.c
  head/sys/mips/conf/AR71XX_BASE
  head/sys/mips/conf/AR724X_BASE
  head/sys/mips/conf/AR91XX_BASE
  head/sys/mips/conf/AR933X_BASE
  head/sys/mips/conf/AR934X_BASE
  head/sys/mips/conf/PB92
  head/sys/mips/conf/QCA955X_BASE
  head/sys/mips/conf/RT305X
  head/sys/modules/Makefile
  head/sys/modules/crypto/Makefile
  head/sys/net/if_ethersubr.c
  head/sys/net/if_tun.c
  head/sys/netgraph/ng_iface.c
  head/sys/sys/kernel.h
  head/sys/sys/random.h
  head/sys/ufs/ffs/ffs_inode.c
  head/sys/vm/uma_core.c

Modified: head/UPDATING
==
--- head/UPDATING   Tue Jun 30 16:26:13 2015(r284958)
+++ head/UPDATING   Tue Jun 30 17:00:45 2015(r284959)
@@ -31,6 +31,41 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 11
disable the most expensive debugging functionality run
"ln -s 'abort:false,junk:false' /etc/malloc.conf".)
 
+20150630:
+   The default kernel entropy-processing algorithm is now
+   Fortuna, replacing Yarrow.
+
+   Assuming you have 'device random' in your kernel config
+   file, the configurations allow a kernel option to override
+   this default. You may choose *ONE* of:
+
+   options RANDOM_YARROW   # Legacy /dev/random algorithm.
+   options RANDOM_DUMMY# Blocking-only driver.
+
+   If you have neither, you get Fortuna.  For most people,
+   read no further, Fortuna will give a /dev/random that works
+   like it always used to, and the difference will be irrelevant.
+
+   If you remove 'device random', you get *NO* kernel-processed
+   entopy at all. This may be acceptable to folks building
+   embedded systems, but has complications. Carry on reading,
+   and it is assumed you know what you need.
+
+   *PLEASE* read random(4) and random(9) if you are in the
+   habit of tweeking kernel configs, and/or if you are a member
+   of the embedded community, wanting specific and not-usual
+   behaviour from your security subsystems.
+
+   NOTE!! If you use RANDOM_DUMMY and/or have no 'device
+   random', you will NOT have a functioning /dev/random, and
+   many cryptographic features will not work, including SSH.
+   You may also find strange behaviour from the random(3) set
+   of library functions, in particular sranddev(3), srandomdev(3)
+   and arc4random(3). The reason for this is that the KERN_ARND
+   sysctl only returns entropy if it thinks it has some to
+   share, and with RANDOM_DUMMY or no 'device random' this
+   will never happen.
+
 20150623:
An additional fix for the issue described in the 20150614 sendmail
entry below has been been committed in revision 284717.

Modified: head/share/man/man4/random.4
==
--- head/share/man/man4/random.4Tue Jun 30 16:26:13 2015
(r284958)
+++ head/share/man/man4/random.4Tue Jun 30 17:00:45 2015
(r284959)
@@ -1,4 +1,4 @@
-.\" Copyright (c) 2001-2013Mark R V Murray.  All rights reserved.
+.\" Copyright (c) 2001-2015Mark R V Murray.  All rights reserved.
 .\"
 .\" Redistribution and use in source and binary forms, with or without
 .\" modification, are permitted provided that the following conditions
@@ -23,7 +23,7 @@
 .\"
 .\" $FreeBSD$
 .\"
-.Dd October 12, 2013
+.Dd June 30, 2015
 .Dt RANDOM 4
 .Os
 .Sh NAME
@@ -37,31 +37,32 @@ The
 device
 returns an endless supply of random bytes when read.
 It also accepts and reads data
-as any ordinary (and willing) file,
-but discards data written to it.
-The device will probe for
-certain hardware entropy sources,
-and

svn commit: r284960 - in head: etc/defaults etc/rc.d share/man/man5 share/man/man9 sys/boot/forth

2015-06-30 Thread Mark Murray
Author: markm
Date: Tue Jun 30 17:09:41 2015
New Revision: 284960
URL: https://svnweb.freebsd.org/changeset/base/284960

Log:
  Updated random(4) boot/shutdown scripting.
  Fix the man pages as well.
  
  Differential Revision: https://reviews.freebsd.org/D2924
  Approved by: so (delphij)

Modified:
  head/etc/defaults/rc.conf
  head/etc/rc.d/random
  head/share/man/man5/rc.conf.5
  head/share/man/man9/random.9
  head/sys/boot/forth/loader.conf
  head/sys/boot/forth/loader.conf.5

Modified: head/etc/defaults/rc.conf
==
--- head/etc/defaults/rc.conf   Tue Jun 30 17:00:45 2015(r284959)
+++ head/etc/defaults/rc.conf   Tue Jun 30 17:09:41 2015(r284960)
@@ -630,15 +630,16 @@ kern_securelevel="-1" # range: -1..3 ; `
# in the system booting with securelevel set to 1, as
# init(8) will raise the level when rc(8) completes.
 update_motd="YES"  # update version info in /etc/motd (or NO)
-entropy_file="/entropy"# Set to NO to disable caching entropy through 
reboots.
+entropy_boot_file="/boot/entropy"  # Set to NO to disable very early
+   # (used at early boot time) entropy caching through 
reboots.
+entropy_file="/entropy"# Set to NO to disable late (used when going 
multi-user)
+   # entropy through reboots.
# /var/db/entropy-file is preferred if / is not avail.
 entropy_dir="/var/db/entropy" # Set to NO to disable caching entropy via cron.
 entropy_save_sz="4096" # Size of the entropy cache files.
 entropy_save_num="8"   # Number of entropy cache files to save.
-harvest_interrupt="YES"# Entropy device harvests interrupt randomness
-harvest_ethernet="YES" # Entropy device harvests ethernet randomness
-harvest_p_to_p="YES"   # Entropy device harvests point-to-point randomness
-harvest_swi="YES"  # Entropy device harvests internal SWI randomness
+harvest_mask="511" # Entropy device harvests all but the very invasive 
sources.
+   # (See 'sysctl kern.random.harvest' and random(4))
 dmesg_enable="YES" # Save dmesg(8) to /var/run/dmesg.boot
 watchdogd_enable="NO"  # Start the software watchdog daemon
 watchdogd_flags="" # Flags to watchdogd (if enabled)

Modified: head/etc/rc.d/random
==
--- head/etc/rc.d/randomTue Jun 30 17:00:45 2015(r284959)
+++ head/etc/rc.d/randomTue Jun 30 17:09:41 2015(r284960)
@@ -41,6 +41,13 @@ feed_dev_random()
 
 random_start()
 {
+
+   if [ ${harvest_mask} -gt 0 ]; then
+   echo -n 'Setting up harvesting:'
+   ${SYSCTL} kern.random.harvest.mask=${harvest_mask} > /dev/null
+   ${SYSCTL_N} kern.random.harvest.mask_symbolic
+   fi
+
echo -n 'Feeding entropy:'
 
if [ ! -w /dev/random ] ; then
@@ -68,6 +75,14 @@ random_start()
;;
esac
 
+   case ${entropy_boot_file:=/boot/entropy} in
+   [Nn][Oo] | '')
+   ;;
+   *)
+   save_dev_random "${entropy_boot_file}"
+   ;;
+   esac
+
echo '.'
 }
 
@@ -100,7 +115,33 @@ random_stop()
;;
*)
dd if=/dev/random of=${entropy_file_confirmed} \
-  bs=4096 count=1 2> /dev/null
+   bs=4096 count=1 2> /dev/null ||
+   warn 'write failed (unwriteable file or full fs?)'
+   echo '.'
+   ;;
+   esac
+   umask ${oumask}
+   ;;
+   esac
+   case ${entropy_boot_file:=/boot/entropy} in
+   [Nn][Oo] | '')
+   ;;
+   *)
+   echo -n 'Writing early boot entropy file:'
+   rm -f ${entropy_boot_file} 2> /dev/null
+   oumask=`umask`
+   umask 077
+   if touch ${entropy_boot_file} 2> /dev/null; then
+   entropy_boot_file_confirmed="${entropy_boot_file}"
+   fi
+   case ${entropy_boot_file_confirmed} in
+   '')
+   warn 'write failed (read-only fs?)'
+   ;;
+   *)
+   dd if=/dev/random of=${entropy_boot_file_confirmed} \
+   bs=4096 count=1 2> /dev/null ||
+   warn 'write failed (unwriteable file or full fs?)'
echo '.'
;;
esac

Modified: head/share/man/man5/rc.conf.5
==
--- head/share/man/man5/rc.conf.5   Tue Jun 30 17:00:45 2015
(r284959)
+++ head/share/man/man5/rc.conf.5   Tue Jun 30 17:09:41 2015
(r284960)
@@ -3995,27 +3995,11 @@ se

svn commit: r284961 - in head/sys: kern netinet sys

2015-06-30 Thread Navdeep Parhar
Author: np
Date: Tue Jun 30 17:19:58 2015
New Revision: 284961
URL: https://svnweb.freebsd.org/changeset/base/284961

Log:
  Fix leak in tcp_lro_rx.  Simply clearing M_PKTHDR isn't enough, any tags
  hanging off the header need to be freed too.
  
  Differential Revision:https://reviews.freebsd.org/D2708
  Reviewed by:  ae@, hiren@

Modified:
  head/sys/kern/uipc_mbuf.c
  head/sys/netinet/tcp_lro.c
  head/sys/sys/mbuf.h

Modified: head/sys/kern/uipc_mbuf.c
==
--- head/sys/kern/uipc_mbuf.c   Tue Jun 30 17:09:41 2015(r284960)
+++ head/sys/kern/uipc_mbuf.c   Tue Jun 30 17:19:58 2015(r284961)
@@ -420,6 +420,17 @@ mb_dupcl(struct mbuf *n, struct mbuf *m)
n->m_flags |= m->m_flags & M_RDONLY;
 }
 
+void
+m_demote_pkthdr(struct mbuf *m)
+{
+
+   M_ASSERTPKTHDR(m);
+
+   m_tag_delete_chain(m, NULL);
+   m->m_flags &= ~M_PKTHDR;
+   bzero(&m->m_pkthdr, sizeof(struct pkthdr));
+}
+
 /*
  * Clean up mbuf (chain) from any tags and packet headers.
  * If "all" is set then the first mbuf in the chain will be
@@ -433,11 +444,8 @@ m_demote(struct mbuf *m0, int all, int f
for (m = all ? m0 : m0->m_next; m != NULL; m = m->m_next) {
KASSERT(m->m_nextpkt == NULL, ("%s: m_nextpkt in m %p, m0 %p",
__func__, m, m0));
-   if (m->m_flags & M_PKTHDR) {
-   m_tag_delete_chain(m, NULL);
-   m->m_flags &= ~M_PKTHDR;
-   bzero(&m->m_pkthdr, sizeof(struct pkthdr));
-   }
+   if (m->m_flags & M_PKTHDR)
+   m_demote_pkthdr(m);
m->m_flags = m->m_flags & (M_EXT | M_RDONLY | M_NOFREE | flags);
}
 }

Modified: head/sys/netinet/tcp_lro.c
==
--- head/sys/netinet/tcp_lro.c  Tue Jun 30 17:09:41 2015(r284960)
+++ head/sys/netinet/tcp_lro.c  Tue Jun 30 17:19:58 2015(r284961)
@@ -550,7 +550,7 @@ tcp_lro_rx(struct lro_ctrl *lc, struct m
 * append new segment to existing mbuf chain.
 */
m_adj(m, m->m_pkthdr.len - tcp_data_len);
-   m->m_flags &= ~M_PKTHDR;
+   m_demote_pkthdr(m);
 
le->m_tail->m_next = m;
le->m_tail = m_last(m);

Modified: head/sys/sys/mbuf.h
==
--- head/sys/sys/mbuf.h Tue Jun 30 17:09:41 2015(r284960)
+++ head/sys/sys/mbuf.h Tue Jun 30 17:19:58 2015(r284961)
@@ -959,6 +959,7 @@ struct mbuf *m_copypacket(struct mbuf *,
 voidm_copy_pkthdr(struct mbuf *, struct mbuf *);
 struct mbuf*m_copyup(struct mbuf *, int, int);
 struct mbuf*m_defrag(struct mbuf *, int);
+voidm_demote_pkthdr(struct mbuf *);
 voidm_demote(struct mbuf *, int, int);
 struct mbuf*m_devget(char *, int, int, struct ifnet *,
void (*)(char *, caddr_t, u_int));
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r284964 - head/share/dtrace

2015-06-30 Thread Hiren Panchasara
Author: hiren
Date: Tue Jun 30 18:23:08 2015
New Revision: 284964
URL: https://svnweb.freebsd.org/changeset/base/284964

Log:
  Add missing DTrace scripts that exist in the source tree to the Makefile for
  install.
  While here, sort the list.
  
  Differential Revision:D2950
  Submitted by: Jason Wolfe 
  Reviewed by:  gnn, markj, hiren
  Sponsored by: Limelight Networks

Modified:
  head/share/dtrace/Makefile

Modified: head/share/dtrace/Makefile
==
--- head/share/dtrace/Makefile  Tue Jun 30 17:59:14 2015(r284963)
+++ head/share/dtrace/Makefile  Tue Jun 30 18:23:08 2015(r284964)
@@ -15,11 +15,13 @@ _toolkit=   toolkit
 SCRIPTS=   disklatency \
disklatencycmd \
hotopen \
+   nfsattrstats \
nfsclienttime \
-   udptrack \
+   siftr \
+   tcpconn \
tcpstate \
tcptrack \
-   tcpconn 
+   udptrack
 
 SCRIPTSDIR= ${SHAREDIR}/dtrace
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


Re: svn commit: r284965 - head/lib/libc/sys

2015-06-30 Thread Justin Hibbits
On Tue, Jun 30, 2015 at 11:53 AM, Konstantin Belousov  wrote:
> Author: kib
> Date: Tue Jun 30 18:53:42 2015
> New Revision: 284965
> URL: https://svnweb.freebsd.org/changeset/base/284965
>
> Log:
>   Document x86 machine-specific ptrace(2) requests.  Provide list of the
>   ppc requests.
>
>   Reviewed by:  brueffer, emaste, gjb (previous version)
>   Sponsored by: The FreeBSD Foundation
>   Review:   https://reviews.freebsd.org/D2962
>   MFC after:2 weeks
>
> Modified:
>   head/lib/libc/sys/ptrace.2
>
...
> +.Sh PowerPC MACHINE-SPECIFIC REQUESTS
> +.Bl -tag -width "Dv PT_SETVRREGS"
> +.It Dv PT_GETVRREGS
> +Returns the
> +.Dv ALTIVEC
> +machine state for the thread into the buffer pointed to by
> +the argument
> +.Fa addr .
> +.Pp
> +The
> +.Fa data
> +argument is ignored.
> +.It Dv PT_SETVRREGS
> +Set the
> +.Dv ALTIVEC
> +machine state for the thread from the buffer pointed to by
> +the argument
> +.Fa addr .
> +.Pp
> +The
> +.Fa data
> +argument is ignored.
> +.El
> +.Pp

Thanks for documenting these.  I'm way too lazy for my own good when
it comes to documentation.

- Justin
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r284965 - head/lib/libc/sys

2015-06-30 Thread Konstantin Belousov
Author: kib
Date: Tue Jun 30 18:53:42 2015
New Revision: 284965
URL: https://svnweb.freebsd.org/changeset/base/284965

Log:
  Document x86 machine-specific ptrace(2) requests.  Provide list of the
  ppc requests.
  
  Reviewed by:  brueffer, emaste, gjb (previous version)
  Sponsored by: The FreeBSD Foundation
  Review:   https://reviews.freebsd.org/D2962
  MFC after:2 weeks

Modified:
  head/lib/libc/sys/ptrace.2

Modified: head/lib/libc/sys/ptrace.2
==
--- head/lib/libc/sys/ptrace.2  Tue Jun 30 18:23:08 2015(r284964)
+++ head/lib/libc/sys/ptrace.2  Tue Jun 30 18:53:42 2015(r284965)
@@ -2,7 +2,7 @@
 .\"$NetBSD: ptrace.2,v 1.2 1995/02/27 12:35:37 cgd Exp $
 .\"
 .\" This file is in the public domain.
-.Dd July 22, 2013
+.Dd June 30, 2015
 .Dt PTRACE 2
 .Os
 .Sh NAME
@@ -503,8 +503,161 @@ The
 .Fa data
 argument is ignored.
 .El
+.Sh x86 MACHINE-SPECIFIC REQUESTS
+.Bl -tag -width "Dv PT_GETXSTATE_INFO"
+.It Dv PT_GETXMMREGS
+Copies out the XMM FPU state into the buffer pointed to by the
+argument
+.Fa addr .
+The buffer has the same layout as the 32bit save buffer for the
+machine instruction
+.Dv FXSAVE .
+.Pp
+This request is only valid for i386 programs, both on native 32bit
+systems and on amd64 kernels.
+For 64bit amd64 programs, the XMM state is reported as part of
+the FPU state returned by the
+.Dv PT_GETFPREGS
+request.
+.Pp
+The
+.Fa data
+argument is ignored.
+.It Dv PT_SETXMMREGS
+Loads the XMM FPU state for the thread from the buffer pointed to
+by the argument
+.Fa addr .
+The buffer has the same layout as the 32bit load buffer for the
+machine instruction
+.Dv FXRSTOR .
+.Pp
+As with
+.Dv PT_GETXMMREGS,
+this request is only valid for i386 programs.
+.Pp
+The
+.Fa data
+argument is ignored.
+.It Dv PT_GETXSTATE_INFO
+Returns the information about the enablement state of the XSAVE FPU
+extensions supported by the CPU and allowed by the OS for use by userspace
+programs.
+The
+.Fa addr
+argument must point to the variable of type
+.Vt struct ptrace_xstate_info ,
+which contains the information on the request return.
+The
+.Vt struct ptrace_xstate_info
+is defined as follows:
+.Bd -literal
+struct ptrace_xstate_info {
+   uint64_txsave_mask;
+   uint32_txsave_len;
+};
+.Ed
+The
+.Dv xsave_mask
+field is the bitmask of the currently enabled extensions.
+The meaning of the bits is defined by the Intel and AMD
+processor documentation.
+The
+.Dv xsave_len
+field reports the length of the XSAVE area for storing the hardware
+state for currently enabled extensions in the format defined by the x86
+.Dv XSAVE
+machine instruction.
+.Pp
+The
+.Fa data
+argument value must be equal to the size of the
+.Vt struct ptrace_xstate_info .
+.It Dv PT_GETXSTATE
+Returns the content of the XSAVE area for the thread.
+The
+.Fa addr
+argument points to the buffer where the content is copied, the
+.Fa data
+argument specifies the size of the buffer.
+The kernel copies out as much content as allowed by the buffer size.
+The buffer layout is specified by the layout of the save area for the
+.Dv XSAVE
+machine instruction.
+.It Dv PT_SETXSTATE
+Load the XSAVE state for the thread from the buffer specified by the
+.Fa addr
+pointer.
+The buffer size is passed in the
+.Fa data
+argument.
+The buffer must be at least as large to allow the x87 FPU and XMM state,
+but not large than the XSAVE state length, as reported by the
+.Dv xsave_len
+field from the
+.Vt struct ptrace_xstate_info
+of the
+.Dv PT_GETXSTATE_INFO
+request.
+Layout of the buffer is identical to the layout of the load area for the
+.Dv XRSTOR
+machine instruction.
+.It Dv PT_GETFSBASE
+The request returns the value of base used when doing segmented
+memory addressing using the %fs segment register.
+The
+.Fa addr
+argument points to the
+.Vt unsigned long
+variable which gets the base value.
+.Pp
+The
+.Fa data
+argument is ignored.
+.It Dv PT_GETGSBASE
+Same as the
+.Dv PT_GETFSBASE
+request, but returns the base for the %gs segment register.
+.It Dv PT_SETFSBASE
+Sets the base for the %fs segment register to the value pointed
+by the
+.Fa addr
+argument, which must point to the
+.Vt unsigned long
+variable containing the new base.
 .Pp
-Additionally, machine-specific requests can exist.
+The
+.Fa data
+argument is ignored.
+.It Dv PT_SETGSBASE
+Same as the
+.Dv PT_SETFSBASE
+request, but allows setting the base for the %gs segment register.
+.El
+.Sh PowerPC MACHINE-SPECIFIC REQUESTS
+.Bl -tag -width "Dv PT_SETVRREGS"
+.It Dv PT_GETVRREGS
+Returns the
+.Dv ALTIVEC
+machine state for the thread into the buffer pointed to by
+the argument
+.Fa addr .
+.Pp
+The
+.Fa data
+argument is ignored.
+.It Dv PT_SETVRREGS
+Set the
+.Dv ALTIVEC
+machine state for the thread from the buffer pointed to by
+the argument
+.Fa addr .
+.Pp
+The
+.Fa data
+argument is ignored.
+.El
+.Pp
+Additionally, other machine-specific requests can exist.
 .Sh

svn commit: r284967 - head/share/man/man9

2015-06-30 Thread John-Mark Gurney
Author: jmg
Date: Tue Jun 30 19:06:14 2015
New Revision: 284967
URL: https://svnweb.freebsd.org/changeset/base/284967

Log:
  add units to the length and count so that it's clear what they
  are measured in...  Gems like: "len is the length of the buffer."
  aren't useful in man pages.

Modified:
  head/share/man/man9/hash.9

Modified: head/share/man/man9/hash.9
==
--- head/share/man/man9/hash.9  Tue Jun 30 18:58:33 2015(r284966)
+++ head/share/man/man9/hash.9  Tue Jun 30 19:06:14 2015(r284967)
@@ -26,7 +26,7 @@
 .\" $OpenBSD: hash.9,v 1.5 2003/04/17 05:08:39 jmc Exp $
 .\" $FreeBSD$
 .\"
-.Dd October 18, 2014
+.Dd June 30, 2015
 .Dt HASH 9
 .Os
 .Sh NAME
@@ -72,6 +72,13 @@ These functions can be used to hash
 .Dv NUL
 terminated strings, as well as blocks of memory.
 .Pp
+A
+.Fa len
+argument is the length of the buffer in bytes.
+A
+.Fa count
+argument is the length of the buffer in 32-bit words.
+.Pp
 The
 .Fn hash32_buf
 function is used as a general buffer hashing function.
@@ -79,7 +86,7 @@ The argument
 .Fa buf
 is used to pass in the location, and
 .Fa len
-is the length of the buffer.
+is the length of the buffer in bytes.
 The argument
 .Fa hash
 is used to extend an existing hash, or is passed the initial value
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r284968 - head/release

2015-06-30 Thread Glen Barber
Author: gjb
Date: Tue Jun 30 19:18:08 2015
New Revision: 284968
URL: https://svnweb.freebsd.org/changeset/base/284968

Log:
  Default the VAGRANT_VERSION to ${REVISION}-${BRANCH} if
  not set, which expands to '11.0-CURRENT', for example.
  
  If the branch is -CURRENT, -STABLE, or -PRERELEASE, suffix
  the VAGRANT_VERSION with the snapshot date.
  
  MFC after:3 days
  X-MFC-Needs:  r284893, r284895, r284896, r284897, r284942
  Tested with:  head@r284961 (patched)
  Sponsored by: The FreeBSD Foundation

Modified:
  head/release/Makefile.vagrant

Modified: head/release/Makefile.vagrant
==
--- head/release/Makefile.vagrant   Tue Jun 30 19:06:14 2015
(r284967)
+++ head/release/Makefile.vagrant   Tue Jun 30 19:18:08 2015
(r284968)
@@ -11,7 +11,7 @@ VAGRANT_UPLOAD_TGTS=  vagrant-check-depen
 CLEANFILES+=   ${VAGRANT_UPLOAD_TGTS}
 
 .if defined(VAGRANT_UPLOAD_CONF) && !empty(VAGRANT_UPLOAD_CONF)
-. for VAR in _KEY _USERNAME _VERSION
+. for VAR in _KEY _USERNAME
 VAGRANT${VAR}!=grep -E ^VAGRANT${VAR} ${VAGRANT_UPLOAD_CONF} | 
awk -F' ' '{print $$2}'
 ATLAS${VAR}:=  ${VAGRANT${VAR}}
 . endfor
@@ -21,6 +21,8 @@ ATLAS${VAR}:= ${VAGRANT${VAR}}
 SNAPSHOT_DATE!=date +-%Y-%m-%d-%H-%M
 .endif
 
+VAGRANT_VERSION?=  ${REVISION}-${BRANCH}${SNAPSHOT_DATE}
+
 VAGRANT_TARGET:=   ${OSRELEASE}${SNAPSHOT_DATE}.box
 VAGRANT_PROVIDERS?=vmware_desktop
 #VAGRANT_PROVIDERS+=   virtualbox
@@ -54,7 +56,7 @@ vagrant-do-package-vmware: vagrant-creat
 
 atlas-do-upload: vagrant-do-package-vmware
 .for PROVIDER in ${VAGRANT_PROVIDERS}
-   ${.CURDIR}/scripts/atlas-upload.sh -b FreeBSD-${REVISION}-${BRANCH} -f 
${VAGRANT_TARGET} -p ${PROVIDER} -k ${VAGRANT_KEY} -u ${VAGRANT_USERNAME} -v 0.1
+   ${.CURDIR}/scripts/atlas-upload.sh -b FreeBSD-${REVISION}-${BRANCH} -f 
${VAGRANT_TARGET} -p ${PROVIDER} -k ${VAGRANT_KEY} -u ${VAGRANT_USERNAME} -v 
${VAGRANT_VERSION}
 .endfor
touch ${.OBJDIR}/${.TARGET}
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r284969 - head/sys/modules/hyperv/netvsc

2015-06-30 Thread Li-Wen Hsu
Author: lwhsu (ports committer)
Date: Tue Jun 30 19:35:14 2015
New Revision: 284969
URL: https://svnweb.freebsd.org/changeset/base/284969

Log:
  - Fix `make depend` in sys/modules
  
  Differential Revision:https://reviews.freebsd.org/D2951
  Approved by:  delphij

Modified:
  head/sys/modules/hyperv/netvsc/Makefile

Modified: head/sys/modules/hyperv/netvsc/Makefile
==
--- head/sys/modules/hyperv/netvsc/Makefile Tue Jun 30 19:18:08 2015
(r284968)
+++ head/sys/modules/hyperv/netvsc/Makefile Tue Jun 30 19:35:14 2015
(r284969)
@@ -6,7 +6,7 @@ KMOD=   hv_netvsc
 SRCS=  hv_net_vsc.c \
hv_netvsc_drv_freebsd.c \
hv_rndis_filter.c
-SRCS+= bus_if.h device_if.h
+SRCS+= bus_if.h device_if.h opt_inet.h opt_inet6.h
 
 CFLAGS+= -I${.CURDIR}/../../../dev/hyperv/netvsc
 
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"


svn commit: r284984 - head/tools/tools/cxgbetool

2015-06-30 Thread Navdeep Parhar
Author: np
Date: Tue Jun 30 22:30:21 2015
New Revision: 284984
URL: https://svnweb.freebsd.org/changeset/base/284984

Log:
  cxgbetool: fix code that decodes T5 SGE contexts.  Some of the fields
  that changed between T4 and T5 were not displayed correctly.
  
  Obtained from:Chelsio
  MFC after:3 days
  Differential Revision:

Modified:
  head/tools/tools/cxgbetool/cxgbetool.c

Modified: head/tools/tools/cxgbetool/cxgbetool.c
==
--- head/tools/tools/cxgbetool/cxgbetool.c  Tue Jun 30 21:19:27 2015
(r284983)
+++ head/tools/tools/cxgbetool/cxgbetool.c  Tue Jun 30 22:30:21 2015
(r284984)
@@ -1245,9 +1245,159 @@ show_struct(const uint32_t *words, int n
 #define FIELD1(name, start) FIELD(name, start, start)
 
 static void
-show_sge_context(const struct t4_sge_context *p)
+show_t5_ctxt(const struct t4_sge_context *p)
 {
-   static struct field_desc egress[] = {
+   static struct field_desc egress_t5[] = {
+   FIELD("DCA_ST:", 181, 191),
+   FIELD1("StatusPgNS:", 180),
+   FIELD1("StatusPgRO:", 179),
+   FIELD1("FetchNS:", 178),
+   FIELD1("FetchRO:", 177),
+   FIELD1("Valid:", 176),
+   FIELD("PCIeDataChannel:", 174, 175),
+   FIELD1("StatusPgTPHintEn:", 173),
+   FIELD("StatusPgTPHint:", 171, 172),
+   FIELD1("FetchTPHintEn:", 170),
+   FIELD("FetchTPHint:", 168, 169),
+   FIELD1("FCThreshOverride:", 167),
+   { "WRLength:", 162, 166, 9, 0, 1 },
+   FIELD1("WRLengthKnown:", 161),
+   FIELD1("ReschedulePending:", 160),
+   FIELD1("OnChipQueue:", 159),
+   FIELD1("FetchSizeMode:", 158),
+   { "FetchBurstMin:", 156, 157, 4, 0, 1 },
+   FIELD1("FLMPacking:", 155),
+   FIELD("FetchBurstMax:", 153, 154),
+   FIELD("uPToken:", 133, 152),
+   FIELD1("uPTokenEn:", 132),
+   FIELD1("UserModeIO:", 131),
+   FIELD("uPFLCredits:", 123, 130),
+   FIELD1("uPFLCreditEn:", 122),
+   FIELD("FID:", 111, 121),
+   FIELD("HostFCMode:", 109, 110),
+   FIELD1("HostFCOwner:", 108),
+   { "CIDXFlushThresh:", 105, 107, 0, 0, 1 },
+   FIELD("CIDX:", 89, 104),
+   FIELD("PIDX:", 73, 88),
+   { "BaseAddress:", 18, 72, 9, 1 },
+   FIELD("QueueSize:", 2, 17),
+   FIELD1("QueueType:", 1),
+   FIELD1("CachePriority:", 0),
+   { NULL }
+   };
+   static struct field_desc fl_t5[] = {
+   FIELD("DCA_ST:", 181, 191),
+   FIELD1("StatusPgNS:", 180),
+   FIELD1("StatusPgRO:", 179),
+   FIELD1("FetchNS:", 178),
+   FIELD1("FetchRO:", 177),
+   FIELD1("Valid:", 176),
+   FIELD("PCIeDataChannel:", 174, 175),
+   FIELD1("StatusPgTPHintEn:", 173),
+   FIELD("StatusPgTPHint:", 171, 172),
+   FIELD1("FetchTPHintEn:", 170),
+   FIELD("FetchTPHint:", 168, 169),
+   FIELD1("FCThreshOverride:", 167),
+   FIELD1("ReschedulePending:", 160),
+   FIELD1("OnChipQueue:", 159),
+   FIELD1("FetchSizeMode:", 158),
+   { "FetchBurstMin:", 156, 157, 4, 0, 1 },
+   FIELD1("FLMPacking:", 155),
+   FIELD("FetchBurstMax:", 153, 154),
+   FIELD1("FLMcongMode:", 152),
+   FIELD("MaxuPFLCredits:", 144, 151),
+   FIELD("FLMcontextID:", 133, 143),
+   FIELD1("uPTokenEn:", 132),
+   FIELD1("UserModeIO:", 131),
+   FIELD("uPFLCredits:", 123, 130),
+   FIELD1("uPFLCreditEn:", 122),
+   FIELD("FID:", 111, 121),
+   FIELD("HostFCMode:", 109, 110),
+   FIELD1("HostFCOwner:", 108),
+   { "CIDXFlushThresh:", 105, 107, 0, 0, 1 },
+   FIELD("CIDX:", 89, 104),
+   FIELD("PIDX:", 73, 88),
+   { "BaseAddress:", 18, 72, 9, 1 },
+   FIELD("QueueSize:", 2, 17),
+   FIELD1("QueueType:", 1),
+   FIELD1("CachePriority:", 0),
+   { NULL }
+   };
+   static struct field_desc ingress_t5[] = {
+   FIELD("DCA_ST:", 143, 153),
+   FIELD1("ISCSICoalescing:", 142),
+   FIELD1("Queue_Valid:", 141),
+   FIELD1("TimerPending:", 140),
+   FIELD1("DropRSS:", 139),
+   FIELD("PCIeChannel:", 137, 138),
+   FIELD1("SEInterruptArmed:", 136),
+   FIELD1("CongestionMgtEnable:", 135),
+   FIELD1("NoSnoop:", 134),
+   FIELD1("RelaxedOrdering:", 133),
+   FIELD1("GTSmode:", 132),
+   FIELD1("TPHint

svn commit: r284988 - head/sys/dev/cxgbe

2015-06-30 Thread Navdeep Parhar
Author: np
Date: Wed Jul  1 00:34:14 2015
New Revision: 284988
URL: https://svnweb.freebsd.org/changeset/base/284988

Log:
  cxgbe(4): request an automatic tx update when a netmap tx queue idles.
  The NIC tx queues already do this.
  
  MFC after:1 week
  Differential Revision:

Modified:
  head/sys/dev/cxgbe/t4_netmap.c

Modified: head/sys/dev/cxgbe/t4_netmap.c
==
--- head/sys/dev/cxgbe/t4_netmap.c  Tue Jun 30 23:21:59 2015
(r284987)
+++ head/sys/dev/cxgbe/t4_netmap.c  Wed Jul  1 00:34:14 2015
(r284988)
@@ -405,8 +405,8 @@ alloc_nm_txq_hwq(struct port_info *pi, s
V_FW_EQ_ETH_CMD_VFN(0));
c.alloc_to_len16 = htobe32(F_FW_EQ_ETH_CMD_ALLOC |
F_FW_EQ_ETH_CMD_EQSTART | FW_LEN16(c));
-   c.autoequiqe_to_viid = htobe32(F_FW_EQ_ETH_CMD_AUTOEQUEQE |
-   V_FW_EQ_ETH_CMD_VIID(pi->nm_viid));
+   c.autoequiqe_to_viid = htobe32(F_FW_EQ_ETH_CMD_AUTOEQUIQE |
+   F_FW_EQ_ETH_CMD_AUTOEQUEQE | V_FW_EQ_ETH_CMD_VIID(pi->nm_viid));
c.fetchszm_to_iqid =
htobe32(V_FW_EQ_ETH_CMD_HOSTFCMODE(X_HOSTFCMODE_NONE) |
V_FW_EQ_ETH_CMD_PCIECHN(pi->tx_chan) | F_FW_EQ_ETH_CMD_FETCHRO |
___
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"