svn commit: r255169 - head/etc/defaults
Author: jlh Date: Tue Sep 3 07:47:53 2013 New Revision: 255169 URL: http://svnweb.freebsd.org/changeset/base/255169 Log: Since r254974, periodic scripts' period can be configured independently. There is no reason to leave their options with the daily ones, so move them to their own section. Move periodic scripts' options into their own section. Since r254974, Modified: head/etc/defaults/periodic.conf Modified: head/etc/defaults/periodic.conf == --- head/etc/defaults/periodic.conf Tue Sep 3 05:20:42 2013 (r255168) +++ head/etc/defaults/periodic.conf Tue Sep 3 07:47:53 2013 (r255169) @@ -162,6 +162,71 @@ daily_scrub_zfs_default_threshold="35" daily_local="/etc/daily.local" # Local scripts +# Weekly options + +# These options are used by periodic(8) itself to determine what to do +# with the output of the sub-programs that are run, and where to send +# that output. $weekly_output might be set to /var/log/weekly.log if you +# wish to log the weekly output and have the files rotated by newsyslog(8) +# +weekly_output="root" # user or /file +weekly_show_success="YES" # scripts returning 0 +weekly_show_info="YES" # scripts returning 1 +weekly_show_badconfig="NO" # scripts returning 2 + +# 310.locate +weekly_locate_enable="YES" # Update locate weekly + +# 320.whatis +weekly_whatis_enable="YES" # Update whatis weekly + +# 330.catman +weekly_catman_enable="NO" # Preformat man pages + +# 340.noid +weekly_noid_enable="NO"# Find unowned files +weekly_noid_dirs="/" # Look here + +# 400.status-pkg +weekly_status_pkg_enable="NO" # Find out-of-date pkgs +pkg_version=pkg_version# Use this program +pkg_version_index=/usr/ports/INDEX-10 # Use this index file + +# 450.status-security +weekly_status_security_enable="YES"# Security check +# See also "Security options" above for more options +weekly_status_security_inline="NO" # Run inline ? +weekly_status_security_output="root" # user or /file + +# 999.local +weekly_local="/etc/weekly.local" # Local scripts + + +# Monthly options + +# These options are used by periodic(8) itself to determine what to do +# with the output of the sub-programs that are run, and where to send +# that output. $monthly_output might be set to /var/log/monthly.log if you +# wish to log the monthly output and have the files rotated by newsyslog(8) +# +monthly_output="root" # user or /file +monthly_show_success="YES" # scripts returning 0 +monthly_show_info="YES"# scripts returning 1 +monthly_show_badconfig="NO"# scripts returning 2 + +# 200.accounting +monthly_accounting_enable="YES"# Login accounting + +# 450.status-security +monthly_status_security_enable="YES" # Security check +# See also "Security options" above for more options +monthly_status_security_inline="NO"# Run inline ? +monthly_status_security_output="root" # user or /file + +# 999.local +monthly_local="/etc/monthly.local" # Local scripts + + # Security options # These options are used by the security periodic(8) scripts spawned in @@ -169,11 +234,14 @@ daily_local="/etc/daily.local" # Loca security_status_logdir="/var/log" # Directory for logs security_status_diff_flags="-b -u" # flags for diff output -# Each of the security_status_*_enable options below can have one of the +# Each of the security_status_*_period options below can have one of the # following values: -# - NO +# - NO: do not run at all # - daily: only run during the daily security status # - weekly: only run during the weekly security status +# - monthly: only run during the monthly security status +# Note that if periodic security scripts are run from crontab(5) directly, +# they will be run unless _enable or _period is set to "NO". # 100.chksetuid security_status_chksetuid_enable="YES" @@ -239,70 +307,6 @@ security_status_tcpwrap_enable="YES" security_status_tcpwrap_period="daily" -# Weekly options - -# These options are used by periodic(8) itself to determine what to do -# with the output of the sub-programs that are run, and where to send -# that output. $weekly_output might be set to /var/log/weekly.log if you -# wish to log the weekly output and have t
svn commit: r255170 - head/share/man/man5
Author: jlh Date: Tue Sep 3 07:51:06 2013 New Revision: 255170 URL: http://svnweb.freebsd.org/changeset/base/255170 Log: Since r254974, periodic scripts' period can be configured independently. There is no reason to leave their options with the daily ones, so move them to their own section. Modified: head/share/man/man5/periodic.conf.5 Modified: head/share/man/man5/periodic.conf.5 == --- head/share/man/man5/periodic.conf.5 Tue Sep 3 07:47:53 2013 (r255169) +++ head/share/man/man5/periodic.conf.5 Tue Sep 3 07:51:06 2013 (r255170) @@ -482,6 +482,242 @@ This variable behaves in the same way as .Va *_output variables above, namely it can be set either to one or more email addresses or to an absolute file name. +.It Va daily_status_mail_rejects_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to summarise mail rejections logged to +.Pa /var/log/maillog +for the previous day. +.It Va daily_status_mail_rejects_logs +.Pq Vt num +Set to the number of maillog files that should be checked +for yesterday's mail rejects. +.It Va daily_status_named_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to summarise denied zone transfers (AXFR and IXFR) +for the previous day. +.It Va daily_status_named_usedns +.Pq Vt bool +Set to +.Dq Li YES +if you want to enable reverse DNS lookups. +.It Va daily_status_ntpd +.Pq Vt bool +Set to +.Dq Li YES +if you want to enable NTP status check. +.It Va daily_queuerun_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to manually run the mail queue at least once a day. +.It Va daily_submit_queuerun +.Pq Vt bool +Set to +.Dq Li YES +if you also want to manually run the submit mail queue at least once a day +when +.Va daily_queuerun_enable +is set to +.Dq Li YES . +.It Va daily_scrub_zfs_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to run a zfs scrub periodically. +.It Va daily_scrub_zfs_pools +.Pq Vt str +A space separated list of names of zfs pools to scrub. +If the list is empty or not set, all zfs pools are scrubbed. +.It Va daily_scrub_zfs_default_threshold +.Pq Vt int +Number of days between a scrub if no pool-specific threshold is set. +If not set, the default value is 35, corresponding to 5 weeks. +.It Va daily_scrub_zfs_ Ns Ao Ar poolname Ac Ns Va _threshold +.Pq Vt int +The same as +.Va daily_scrub_zfs_default_threshold +but specific to the pool +.Ao Ar poolname Ac Ns . +.It Va daily_local +.Pq Vt str +Set to a list of extra scripts that should be run after all other +daily scripts. +All scripts must be absolute path names. +.El +.Pp +The following variables are used by the standard scripts that reside in +.Pa /etc/periodic/weekly : +.Bl -tag -offset 4n -width 2n +.It Va weekly_locate_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to run +.Pa /usr/libexec/locate.updatedb . +This script is run using +.Nm nice Fl 5 +as user +.Dq Li nobody , +and generates the table used by the +.Xr locate 1 +command. +.It Va weekly_whatis_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to run +.Pa /usr/libexec/makewhatis.local . +This script regenerates the database used by the +.Xr apropos 1 +command. +.It Va weekly_catman_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to run +.Pa /usr/libexec/catman.local . +This script processes all out of date manual pages, speeding up the +.Xr man 1 +command at the expense of disk space. +.It Va weekly_noid_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to locate orphaned files on the system. +An orphaned file is one with an invalid owner or group. +.It Va weekly_noid_dirs +.Pq Vt str +A list of directories under which orphaned files are searched for. +This would usually be set to +.Pa / . +.It Va weekly_status_security_enable +.Pq Vt bool +Weekly counterpart of +.Va daily_status_securiy_enable . +.It Va weekly_status_security_inline +.Pq Vt bool +Weekly counterpart of +.Va daily_status_securiy_inline . +.It Va weekly_status_security_output +.Pq Vt str +Weekly counterpart of +.Va daily_status_securiy_output . +.It Va weekly_status_pkg_enable +.Pq Vt bool +Set to +.Dq Li YES +if you want to use +.Xr pkg_version 1 +to list installed packages which are out of date. +.It Va pkg_version +.Pq Vt str +When +.Va weekly_status_pkg_enable +is set to +.Dq Li YES , +this variable specifies the program that is used to determine the out of +date packages. +If unset, the +.Xr pkg_version 1 +program is used. +As an example, this variable might be set to +.Dq Li portversion +if the +.Pa ports/sysutils/portupgrade +port has been installed. +.It Va pkg_version_index +.Pq Vt str +This variable specifies the +.Pa INDEX +file from +.Pa /usr/ports +that should be used by +.Xr pkg_version 1 . +Because the dependency tree may be substantially different between versions of +.Fx , +there may be more than one +.Pa INDEX +file in +.Pa /usr/ports . +.Pp +Note, if the +.Va pkg_version +variable is set to +.Dq Li portversion , +it will also be n
Re: svn commit: r255169 - head/etc/defaults
On Tue, Sep 03, 2013 at 07:47:53AM +, Jeremie Le Hen wrote: > Author: jlh > Date: Tue Sep 3 07:47:53 2013 > New Revision: 255169 > URL: http://svnweb.freebsd.org/changeset/base/255169 > > Log: > Since r254974, periodic scripts' period can be configured > independently. There is no reason to leave their options > with the daily ones, so move them to their own section. > Move periodic scripts' options into their own section. Since r254974, Sorry, the last line was meant to be removed from the commit log. -- Jeremie Le Hen Scientists say the world is made up of Protons, Neutrons and Electrons. They forgot to mention Morons. ___ 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: r255171 - head/lib/libc/gen
Author: rwatson Date: Tue Sep 3 08:19:06 2013 New Revision: 255171 URL: http://svnweb.freebsd.org/changeset/base/255171 Log: Document SIGLIBRT in signal(3); take a stab at the signal description as the original committer didn't provide one. MFC after:3 days Modified: head/lib/libc/gen/signal.3 Modified: head/lib/libc/gen/signal.3 == --- head/lib/libc/gen/signal.3 Tue Sep 3 07:51:06 2013(r255170) +++ head/lib/libc/gen/signal.3 Tue Sep 3 08:19:06 2013(r255171) @@ -132,6 +132,7 @@ is possible on a descriptor (see .It 30 Ta Dv SIGUSR1 Ta "terminate process" Ta "User defined signal 1" .It 31 Ta Dv SIGUSR2 Ta "terminate process" Ta "User defined signal 2" .It 32 Ta Dv SIGTHR Ta "terminate process" Ta "thread interrupt" +.It 33 Ta Dv SIGLIBRT Ta "terminate process" Ta "real-time library interrupt" .El .Pp The ___ 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: r255174 - in head/sys/modules: cam send
Author: uqs Date: Tue Sep 3 12:08:08 2013 New Revision: 255174 URL: http://svnweb.freebsd.org/changeset/base/255174 Log: Fix 'make depend' Modified: head/sys/modules/cam/Makefile head/sys/modules/send/Makefile Modified: head/sys/modules/cam/Makefile == --- head/sys/modules/cam/Makefile Tue Sep 3 09:36:43 2013 (r255173) +++ head/sys/modules/cam/Makefile Tue Sep 3 12:08:08 2013 (r255174) @@ -13,6 +13,7 @@ SRCS+=opt_scsi.h SRCS+= opt_cd.h SRCS+= opt_pt.h SRCS+= opt_sa.h +SRCS+= opt_ses.h SRCS+= device_if.h bus_if.h vnode_if.h SRCS+= cam.c SRCS+= cam_compat.c Modified: head/sys/modules/send/Makefile == --- head/sys/modules/send/Makefile Tue Sep 3 09:36:43 2013 (r255173) +++ head/sys/modules/send/Makefile Tue Sep 3 12:08:08 2013 (r255174) @@ -2,6 +2,6 @@ .PATH: ${.CURDIR}/../../netinet6 KMOD= send -SRCS= send.c +SRCS= send.c opt_kdtrace.h .include ___ 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: r255175 - head/lib/libexecinfo
Author: emaste Date: Tue Sep 3 13:31:43 2013 New Revision: 255175 URL: http://svnweb.freebsd.org/changeset/base/255175 Log: Don't install private libexecinfo headers Modified: head/lib/libexecinfo/Makefile Modified: head/lib/libexecinfo/Makefile == --- head/lib/libexecinfo/Makefile Tue Sep 3 12:08:08 2013 (r255174) +++ head/lib/libexecinfo/Makefile Tue Sep 3 13:31:43 2013 (r255175) @@ -7,7 +7,7 @@ SHLIB_MAJOR=1 .PATH: ${LIBEXECINFO} -INCS= execinfo.h symtab.h unwind.h +INCS= execinfo.h SRCS= backtrace.c symtab.c unwind.c DPADD= ${LIBELF} ___ 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: r255176 - head/contrib/libexecinfo
Author: emaste Date: Tue Sep 3 13:36:23 2013 New Revision: 255176 URL: http://svnweb.freebsd.org/changeset/base/255176 Log: Add $FreeBSD$ tag for user-facing header Modified: head/contrib/libexecinfo/execinfo.h Modified: head/contrib/libexecinfo/execinfo.h == --- head/contrib/libexecinfo/execinfo.h Tue Sep 3 13:31:43 2013 (r255175) +++ head/contrib/libexecinfo/execinfo.h Tue Sep 3 13:36:23 2013 (r255176) @@ -1,4 +1,5 @@ /* $NetBSD: execinfo.h,v 1.2 2012/06/09 21:22:17 christos Exp $*/ +/* $FreeBSD$ */ /*- * Copyright (c) 2012 The NetBSD Foundation, Inc. ___ 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: r255177 - head/contrib/libexecinfo
Author: emaste Date: Tue Sep 3 13:38:41 2013 New Revision: 255177 URL: http://svnweb.freebsd.org/changeset/base/255177 Log: Add svn:keywords property Modified: Directory Properties: head/contrib/libexecinfo/execinfo.h (props changed) ___ 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: r255178 - head/usr.sbin/periodic
Author: jlh Date: Tue Sep 3 13:40:24 2013 New Revision: 255178 URL: http://svnweb.freebsd.org/changeset/base/255178 Log: Include the calling context in the mail subject, if any. More concretely, periodic security scripts defaults to being called from daily ones -- daily context -- so the mail subject will now be "${HOST} daily security run output" instead of "{HOST} security run output". If you switch the period of some security checks to weekly, you will receive another email "${HOST} weekly security run output". Modified: head/usr.sbin/periodic/periodic.sh Modified: head/usr.sbin/periodic/periodic.sh == --- head/usr.sbin/periodic/periodic.sh Tue Sep 3 13:38:41 2013 (r255177) +++ head/usr.sbin/periodic/periodic.sh Tue Sep 3 13:40:24 2013 (r255178) @@ -21,7 +21,7 @@ output_pipe() case "$output" in /*) pipe="cat >>$output";; "") pipe=cat;; -*) pipe="mail -E -s '$host ${1##*/} run output' $output";; +*) pipe="mail -E -s '$host ${2}${2:+ }${1##*/} run output' $output";; esac eval $pipe } @@ -53,12 +53,13 @@ if [ $1 != "LOCKED" ]; then case $? in 0) ;; 73) #EX_CANTCREATE -echo "can't create ${lockfile}" | output_pipe $arg +echo "can't create ${lockfile}" | \ +output_pipe $arg "$PERIODIC" ret=1 ;; 75) #EX_TEMPFAIL echo "$host ${arg##*/} prior run still in progress" | \ -output_pipe $arg +output_pipe $arg "$PERIODIC" ret=1 ;; *) @@ -76,6 +77,7 @@ shift arg=$1 tmp_output=`mktemp ${TMPDIR:-/tmp}/periodic.XX` +context="$PERIODIC" export PERIODIC="$arg${PERIODIC:+ }${PERIODIC}" # Execute each executable file in the directory list. If the x bit is not @@ -136,6 +138,6 @@ esac echo "" echo "-- End of $arg output --" fi -} | output_pipe ${arg} +} | output_pipe $arg "$context" rm -f $tmp_output ___ 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: r255179 - head/sys/dev/xen/blkback
Author: gibbs Date: Tue Sep 3 13:49:00 2013 New Revision: 255179 URL: http://svnweb.freebsd.org/changeset/base/255179 Log: sys/dev/xen/blkback/blkback.c: Initialize the request id for requests in xbb_get_resources() instead of its previous location in xbb_dispatch_io(). This guarantees that all request types (e.g. BLKIF_OP_FLUSH_DISKCACHE) have the front-end specified id recorded. Submitted by: Roger Pau Monné Sponsored by: Citrix Systems R&D Modified: head/sys/dev/xen/blkback/blkback.c Modified: head/sys/dev/xen/blkback/blkback.c == --- head/sys/dev/xen/blkback/blkback.c Tue Sep 3 13:40:24 2013 (r255178) +++ head/sys/dev/xen/blkback/blkback.c Tue Sep 3 13:49:00 2013 (r255179) @@ -1239,6 +1239,7 @@ xbb_get_resources(struct xbb_softc *xbb, nreq->reqlist = *reqlist; nreq->req_ring_idx = ring_idx; + nreq->id = ring_req->id; if (xbb->abi != BLKIF_PROTOCOL_NATIVE) { bcopy(ring_req, &nreq->ring_req_storage, sizeof(*ring_req)); @@ -1608,7 +1609,6 @@ xbb_dispatch_io(struct xbb_softc *xbb, s req_ring_idx = nreq->req_ring_idx; nr_sects = 0; nseg = ring_req->nr_segments; - nreq->id = ring_req->id; nreq->nr_pages= nseg; nreq->nr_512b_sectors = 0; req_seg_idx = 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: r255185 - in head: contrib/gcc contrib/gcc/config/i386 contrib/gcc/doc gnu/usr.bin/cc/include
Author: jmg Date: Tue Sep 3 17:33:29 2013 New Revision: 255185 URL: http://svnweb.freebsd.org/changeset/base/255185 Log: add support to gcc for AES and PCLMUL intrinsics... This addes the -maes option, but not the -mpclmul option as I ran out of bits in the 32 bit flags field... You can -D__PCLMUL__ to get this, but it won't be compatible w/ clang and modern gcc... Reviewed by: -current, -toolchain Added: head/gnu/usr.bin/cc/include/__wmmintrin_aes.h (contents, props changed) head/gnu/usr.bin/cc/include/__wmmintrin_pclmul.h (contents, props changed) Modified: head/contrib/gcc/config/i386/i386.c head/contrib/gcc/config/i386/i386.h head/contrib/gcc/config/i386/i386.opt head/contrib/gcc/doc/invoke.texi head/contrib/gcc/opth-gen.awk head/gnu/usr.bin/cc/include/Makefile Modified: head/contrib/gcc/config/i386/i386.c == --- head/contrib/gcc/config/i386/i386.c Tue Sep 3 17:02:38 2013 (r255184) +++ head/contrib/gcc/config/i386/i386.c Tue Sep 3 17:33:29 2013 (r255185) @@ -1684,6 +1684,14 @@ ix86_handle_option (size_t code, const c } return true; +case OPT_maes: + if (!value) + { + target_flags &= ~MASK_AES; + target_flags_explicit |= MASK_AES; + } + return true; + default: return true; } @@ -2187,6 +2195,10 @@ override_options (void) if (TARGET_SSE3) target_flags |= MASK_SSE2; + /* Turn on SSE2 builtins for -maes. */ + if (TARGET_AES) +target_flags |= MASK_SSE2; + /* Turn on SSE builtins for -msse2. */ if (TARGET_SSE2) target_flags |= MASK_SSE; Modified: head/contrib/gcc/config/i386/i386.h == --- head/contrib/gcc/config/i386/i386.h Tue Sep 3 17:02:38 2013 (r255184) +++ head/contrib/gcc/config/i386/i386.h Tue Sep 3 17:33:29 2013 (r255185) @@ -428,6 +428,8 @@ extern const char *host_detect_local_cpu builtin_define ("__SSSE3__"); \ if (TARGET_SSE4A)\ builtin_define ("__SSE4A__"); \ + if (TARGET_AES) \ + builtin_define ("__AES__"); \ if (TARGET_SSE_MATH && TARGET_SSE) \ builtin_define ("__SSE_MATH__");\ if (TARGET_SSE_MATH && TARGET_SSE2) \ Modified: head/contrib/gcc/config/i386/i386.opt == --- head/contrib/gcc/config/i386/i386.opt Tue Sep 3 17:02:38 2013 (r255184) +++ head/contrib/gcc/config/i386/i386.opt Tue Sep 3 17:33:29 2013 (r255185) @@ -205,6 +205,10 @@ msse4a Target Report Mask(SSE4A) Support MMX, SSE, SSE2, SSE3 and SSE4A built-in functions and code generation +maes +Target Report Mask(AES) +Support AES built-in functions and code generation. + mpopcnt Target Report Mask(POPCNT) Support code generation of popcount instruction for popcount built-ins Modified: head/contrib/gcc/doc/invoke.texi == --- head/contrib/gcc/doc/invoke.texiTue Sep 3 17:02:38 2013 (r255184) +++ head/contrib/gcc/doc/invoke.texiTue Sep 3 17:33:29 2013 (r255185) @@ -513,7 +513,7 @@ in the following sections. -mno-fp-ret-in-387 -msoft-float -msvr3-shlib @gol -mno-wide-multiply -mrtd -malign-double @gol -mpreferred-stack-boundary=@var{num} @gol --mmmx -msse -msse2 -msse3 -mssse3 -msse4a -m3dnow -mpopcnt -mabm @gol +-mmmx -msse -msse2 -msse3 -mssse3 -msse4a -m3dnow -mpopcnt -mabm -maes @gol -mthreads -mno-align-stringops -minline-all-stringops @gol -mpush-args -maccumulate-outgoing-args -m128bit-long-double @gol -m96bit-long-double -mregparm=@var{num} -msseregparm @gol @@ -9367,6 +9367,8 @@ preferred alignment to @option{-mpreferr @itemx -mno-popcnt @item -mabm @itemx -mno-abm +@item -maes +@itemx -mno-aes @opindex mmmx @opindex mno-mmx @opindex msse @@ -9374,10 +9376,10 @@ preferred alignment to @option{-mpreferr @opindex m3dnow @opindex mno-3dnow These switches enable or disable the use of instructions in the MMX, -SSE, SSE2, SSE3, SSSE3, SSE4A, ABM or 3DNow! extended instruction sets. -These extensions are also available as built-in functions: see -@ref{X86 Built-in Functions}, for details of the functions enabled and -disabled by these switches. +SSE, SSE2, SSE3, SSSE3, SSE4A, ABM, AES or 3DNow! extended +instruction sets. These extensions are also available as built-in +functions: see @ref{X86 Built-in Functions}, for details of the functions +enabled and disabled by these switches. To have SSE/SSE2 instructions generated automatically from floating-point code (as opposed to 387 instruct
svn commit: r255187 - in head/sys: conf crypto/aesni modules/aesni
Author: jmg Date: Tue Sep 3 18:31:23 2013 New Revision: 255187 URL: http://svnweb.freebsd.org/changeset/base/255187 Log: Use the fact that the AES-NI instructions can be pipelined to improve performance... Use SSE2 instructions for calculating the XTS tweek factor... Let the compiler do more work and handle register allocation by using intrinsics, now only the key schedule is in assembly... Replace .byte hard coded instructions w/ the proper instructions now that both clang and gcc support them... On my machine, pulling the code to userland I saw performance go from ~150MB/sec to 2GB/sec in XTS mode. GELI on GNOP saw a more modest increase of about 3x due to other system overhead (geom and opencrypto)... These changes allow almost full disk io rate w/ geli... Reviewed by: -current, -security Thanks to:Mike Hamburg for the XTS tweek algorithm Added: head/sys/crypto/aesni/aesencdec.h (contents, props changed) Deleted: head/sys/crypto/aesni/aesencdec_amd64.S head/sys/crypto/aesni/aesencdec_i386.S Modified: head/sys/conf/files.amd64 head/sys/conf/files.i386 head/sys/crypto/aesni/aeskeys_amd64.S head/sys/crypto/aesni/aesni.c head/sys/crypto/aesni/aesni.h head/sys/crypto/aesni/aesni_wrap.c head/sys/modules/aesni/Makefile Modified: head/sys/conf/files.amd64 == --- head/sys/conf/files.amd64 Tue Sep 3 18:14:30 2013(r255186) +++ head/sys/conf/files.amd64 Tue Sep 3 18:31:23 2013(r255187) @@ -138,10 +138,13 @@ amd64/amd64/uma_machdep.c standard amd64/amd64/vm_machdep.c standard amd64/pci/pci_cfgreg.c optionalpci cddl/contrib/opensolaris/common/atomic/amd64/opensolaris_atomic.S optional zfs compile-with "${ZFS_S}" -crypto/aesni/aesencdec_amd64.S optional aesni crypto/aesni/aeskeys_amd64.S optional aesni crypto/aesni/aesni.c optional aesni -crypto/aesni/aesni_wrap.c optional aesni +aesni_wrap.o optional aesni \ + dependency "$S/crypto/aesni/aesni_wrap.c" \ + compile-with"${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} -mmmx -msse -maes ${.IMPSRC}" \ + no-implicit-rule\ + clean "aesni_wrap.o" crypto/blowfish/bf_enc.c optionalcrypto | ipsec crypto/des/des_enc.c optionalcrypto | ipsec | netsmb crypto/via/padlock.c optionalpadlock Modified: head/sys/conf/files.i386 == --- head/sys/conf/files.i386Tue Sep 3 18:14:30 2013(r255186) +++ head/sys/conf/files.i386Tue Sep 3 18:31:23 2013(r255187) @@ -124,10 +124,13 @@ bf_enc.o optional crypto | ipsec \ dependency "$S/crypto/blowfish/arch/i386/bf_enc.S $S/crypto/blowfish/arch/i386/bf_enc_586.S $S/crypto/blowfish/arch/i386/bf_enc_686.S" \ compile-with"${CC} -c -I$S/crypto/blowfish/arch/i386 ${ASM_CFLAGS} ${WERROR} ${.IMPSRC}" \ no-implicit-rule -crypto/aesni/aesencdec_i386.S optional aesni crypto/aesni/aeskeys_i386.Soptional aesni crypto/aesni/aesni.c optional aesni -crypto/aesni/aesni_wrap.c optional aesni +aesni_wrap.o optional aesni \ + dependency "$S/crypto/aesni/aesni_wrap.c" \ + compile-with"${CC} -c ${CFLAGS:C/^-O2$/-O3/:N-nostdinc} ${WERROR} ${PROF} -mmmx -msse -maes ${.IMPSRC}" \ + no-implicit-rule\ + clean "aesni_wrap.o" crypto/des/arch/i386/des_enc.S optional crypto | ipsec | netsmb crypto/via/padlock.c optional padlock crypto/via/padlock_cipher.coptional padlock Added: head/sys/crypto/aesni/aesencdec.h == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/crypto/aesni/aesencdec.h Tue Sep 3 18:31:23 2013 (r255187) @@ -0,0 +1,136 @@ +/*- + * Copyright 2013 John-Mark Gurney + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * 1. Redistributions of source code must retain the above copyright + *notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + *notice, this list of conditions and the following disclaimer in the + *documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MER
Re: svn commit: r254882 - head/sys/dev/pci
On Saturday, August 31, 2013 3:39:26 am Jean-Sébastien Pédron wrote: > Le 30/08/2013 22:44, John Baldwin a écrit : > >> However, BUS_ALLOC_RESOURCE() returns NULL in my tests. > > > > Hmm, can you get devinfo -u output? I wonder if orm0 is eating this > > resource. > > You'll find it attached. Yes, orm0 is eating it. Try this along with using RF_SHAREABLE in your call to BUS_ALLOC_RESOURCE(): Index: x86/isa/orm.c === --- orm.c (revision 255020) +++ orm.c (working copy) @@ -133,7 +133,8 @@ orm_identify(driver_t* driver, device_t parent) bus_set_resource(child, SYS_RES_MEMORY, sc->rnum, chunk, rom_size); rid = sc->rnum; - res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, 0); + res = bus_alloc_resource_any(child, SYS_RES_MEMORY, &rid, + RF_SHAREABLE); if (res == NULL) { bus_delete_resource(child, SYS_RES_MEMORY, sc->rnum); chunk += IOMEM_STEP; -- John Baldwin ___ 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: r255152 - head/sys/dev/atkbdc
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On 09/02/13 11:25, Eitan Adler wrote: > Author: eadler Date: Mon Sep 2 18:25:18 2013 New Revision: 255152 > URL: http://svnweb.freebsd.org/changeset/base/255152 > > Log: synaptics and trackpoint support are stable enough to be on by > default. > > Eventually both options should be removed. > > Reviewed by: dumbbell I think this broke my ThinkPad T530, the system appears like that the click button is "sticky" (not quite sure what's happening though, key combos like Alt+Tab won't work). After adding: hw.psm.synaptics_support=0 hw.psm.trackpoint_support=0 to /boot/loader.conf, my laptop works as usual again. Any hints on how to diagnose what's happening? (I'll test patches, etc. if there is any) Cheers, - -- Xin LI https://www.delphij.net/ FreeBSD - The Power to Serve! Live free or die -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.21 (FreeBSD) iQEcBAEBCgAGBQJSJjbqAAoJEG80Jeu8UPuz37AIAKcptlWuzEbR+lL8UlVbsCuE S/yMqQOC0hwj0gBy3iz24EbVxoPIyvkVs1lCZLePQOtMjPLMDm1n/HLg7IuxO0o+ WMDRv9JgEpbgMWx1qEoDQEFWvfMa14q7JhoZgkEND/GR5FfWhhsd7Mdd6q3Rq9PN eWwwA0Gsz8yoBDKpxtsayD6G8I3P+STMyHctBid0jlSkRWU4vjU6SYY2MVygqMFz vJje1RZhHTTAk3lpV11vLsXLS/tBIuhEdVzD1JZfe4PK1Y7ZC/RBkVVfslOE70NR 0P8xOiqGWXb+hOURlA7kiw5HdKSNowdcRaYGNBKCllPVMlLXfdkmIJ/F92HFvhM= =Fl21 -END PGP SIGNATURE- ___ 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: r255191 - in head: . gnu/usr.bin gnu/usr.bin/patch
Author: pfg Date: Tue Sep 3 20:03:10 2013 New Revision: 255191 URL: http://svnweb.freebsd.org/changeset/base/255191 Log: Remove our hacked GNU patch. The old (2.1) GNU patch has outlived its days. The major local changes have been moved into the less restrictedly licensed patch(1) we adopted in usr.bin/ . A much newer version of GNU patch is available in the ports tree (devel/patch). Disconnect from the build and remove. Deleted: head/gnu/usr.bin/patch/ Modified: head/ObsoleteFiles.inc head/gnu/usr.bin/Makefile Modified: head/ObsoleteFiles.inc == --- head/ObsoleteFiles.inc Tue Sep 3 19:31:59 2013(r255190) +++ head/ObsoleteFiles.inc Tue Sep 3 20:03:10 2013(r255191) @@ -38,6 +38,9 @@ # xargs -n1 | sort | uniq -d; # done +# 20130903: gnupatch is no more +OLD_FILES+=usr/bin/gnupatch +OLD_FILES+=usr/share/man/man1/gnupatch.1.gz # 20130829: bsdpatch is patch unconditionally OLD_FILES+=usr/bin/bsdpatch OLD_FILES+=usr/share/man/man1/bsdpatch.1.gz Modified: head/gnu/usr.bin/Makefile == --- head/gnu/usr.bin/Makefile Tue Sep 3 19:31:59 2013(r255190) +++ head/gnu/usr.bin/Makefile Tue Sep 3 20:03:10 2013(r255191) @@ -12,7 +12,6 @@ SUBDIR= ${_binutils} \ ${_gperf} \ grep \ ${_groff} \ - patch \ ${_rcs} \ sdiff \ send-pr \ ___ 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: r255175 - head/lib/libexecinfo
On 03.09.2013 17:31, Ed Maste wrote: > Author: emaste > Date: Tue Sep 3 13:31:43 2013 > New Revision: 255175 > URL: http://svnweb.freebsd.org/changeset/base/255175 > > Log: > Don't install private libexecinfo headers Perhaps it should be added to obsolete files cleanup... -- http://ache.vniz.net/ bitcoin:1G6ugdNY6e5jx1GVnAU2ntj2NEfmjKG85r ___ 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: r255190 - head/sys/netinet
Author: tuexen Date: Tue Sep 3 19:31:59 2013 New Revision: 255190 URL: http://svnweb.freebsd.org/changeset/base/255190 Log: Remove redundant field pr_sctp_on. MFC after: 1 week Modified: head/sys/netinet/sctp_indata.c head/sys/netinet/sctp_output.c head/sys/netinet/sctp_structs.h head/sys/netinet/sctp_timer.c head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctp_indata.c == --- head/sys/netinet/sctp_indata.c Tue Sep 3 19:07:01 2013 (r255189) +++ head/sys/netinet/sctp_indata.c Tue Sep 3 19:31:59 2013 (r255190) @@ -4718,7 +4718,7 @@ sctp_handle_sack(struct mbuf *m, int off } } TAILQ_REMOVE(&asoc->sent_queue, tp1, sctp_next); - if (tp1->pr_sctp_on) { + if (PR_SCTP_ENABLED(tp1->flags)) { if (asoc->pr_sctp_cnt != 0) asoc->pr_sctp_cnt--; } Modified: head/sys/netinet/sctp_output.c == --- head/sys/netinet/sctp_output.c Tue Sep 3 19:07:01 2013 (r255189) +++ head/sys/netinet/sctp_output.c Tue Sep 3 19:31:59 2013 (r255190) @@ -6067,7 +6067,6 @@ sctp_get_frag_point(struct sctp_tcb *stc static void sctp_set_prsctp_policy(struct sctp_stream_queue_pending *sp) { - sp->pr_sctp_on = 0; /* * We assume that the user wants PR_SCTP_TTL if the user provides a * positive lifetime but does not specify any PR_SCTP policy. This @@ -6077,7 +6076,6 @@ sctp_set_prsctp_policy(struct sctp_strea */ if (PR_SCTP_ENABLED(sp->sinfo_flags)) { sp->act_flags |= PR_SCTP_POLICY(sp->sinfo_flags); - sp->pr_sctp_on = 1; } else { return; } @@ -7425,13 +7423,8 @@ dont_do_it: } chk->send_size += pads; } - /* We only re-set the policy if it is on */ - if (sp->pr_sctp_on) { - sctp_set_prsctp_policy(sp); + if (PR_SCTP_ENABLED(chk->flags)) { asoc->pr_sctp_cnt++; - chk->pr_sctp_on = 1; - } else { - chk->pr_sctp_on = 0; } if (sp->msg_is_complete && (sp->length == 0) && (sp->sender_all_done)) { /* All done pull and kill the message */ Modified: head/sys/netinet/sctp_structs.h == --- head/sys/netinet/sctp_structs.h Tue Sep 3 19:07:01 2013 (r255189) +++ head/sys/netinet/sctp_structs.h Tue Sep 3 19:31:59 2013 (r255190) @@ -446,7 +446,6 @@ struct sctp_tmit_chunk { uint8_t do_rtt; uint8_t book_size_scale; uint8_t no_fr_allowed; - uint8_t pr_sctp_on; uint8_t copy_by_ref; uint8_t window_probe; }; @@ -522,7 +521,6 @@ struct sctp_stream_queue_pending { uint8_t holds_key_ref; uint8_t msg_is_complete; uint8_t some_taken; - uint8_t pr_sctp_on; uint8_t sender_all_done; uint8_t put_last_out; uint8_t discard_rest; Modified: head/sys/netinet/sctp_timer.c == --- head/sys/netinet/sctp_timer.c Tue Sep 3 19:07:01 2013 (r255189) +++ head/sys/netinet/sctp_timer.c Tue Sep 3 19:31:59 2013 (r255190) @@ -446,7 +446,7 @@ sctp_recover_sent_list(struct sctp_tcb * } } TAILQ_REMOVE(&asoc->sent_queue, chk, sctp_next); - if (chk->pr_sctp_on) { + if (PR_SCTP_ENABLED(chk->flags)) { if (asoc->pr_sctp_cnt != 0) asoc->pr_sctp_cnt--; } Modified: head/sys/netinet/sctputil.c == --- head/sys/netinet/sctputil.c Tue Sep 3 19:07:01 2013(r255189) +++ head/sys/netinet/sctputil.c Tue Sep 3 19:31:59 2013(r255190) @@ -4833,7 +4833,6 @@ sctp_release_pr_sctp_chunk(struct sctp_t atomic_add_int(&chk->whoTo->ref_count, 1); chk->rec.data.TSN_seq = atomic_fetchadd_int(&stcb->asoc.sending_seq, 1); stcb->asoc.pr_sctp_cnt++; - chk->pr_sctp_on = 1; TAILQ_INSERT_TAIL(&stcb->asoc.sent_queue, chk, sctp_next); stcb->asoc.sent_queue_cnt++; stcb->asoc.pr_sctp_cnt++; ___ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-sr
Re: svn commit: r254273 - in head: . include lib lib/libc/iconv lib/libiconv_compat lib/libkiconv share/mk sys/sys tools/build/mk
On Thu, Aug 22, 2013 at 05:58:35PM +0200, Joel Dahl wrote: > On Sun, Aug 18, 2013 at 03:51:25PM -0700, Peter Wemm wrote: > > On 8/18/13 3:42 PM, Jilles Tjoelker wrote: > > > On Sun, Aug 18, 2013 at 09:53:04PM +0200, Joel Dahl wrote: > > >> On Sun, Aug 18, 2013 at 12:34:30AM +0200, Dimitry Andric wrote: > > >>> On Aug 13, 2013, at 09:15, Peter Wemm wrote: > > Author: peter > > Date: Tue Aug 13 07:15:01 2013 > > New Revision: 254273 > > URL: http://svnweb.freebsd.org/changeset/base/254273 > > > > > Log: > > The iconv in libc did two things - implement the standard APIs, the > > GNU > > extensions and also tried to be link time compatible with ports > > libiconv. > > This splits that functionality and enables the parts that shouldn't > > interfere with the port by default. > > > > > WITH_ICONV (now on by default) - adds iconv.h, iconv_open(3) etc. > > WITH_LIBICONV_COMPAT (off by default) adds the libiconv_open etc API, > > linker > > symbols and even a stub libiconv.so.3 that are good enough to be able > > to 'pkg delete -f libiconv' on a running system and reasonably expect > > it > > to work. > > > > > I have tortured many machines over the last few days to try and reduce > > the possibilities of foot-shooting as much as I can. I've > > successfully > > recompiled to enable and disable the libiconv_compat modes, ports > > that use > > libiconv alongside system iconv etc. If you don't enable the > > WITH_LIBICONV_COMPAT switch, they don't share symbol space. > > > > > This is an extension of behavior on other system. iconv(3) is a > > standard > > libc interface and libiconv port expects to be able to run alongside > > it on > > systems that have it. > > > > > >>> Unfortunately I expect this will break many ports, when the libiconv > > >>> port is installed. A simple example is the following: > > >> > > > > > >> It also breaks installworld when /usr/src and /usr/obj are NFS exported > > >> read-only. > > > > > > I think it has to do with share/i18n/csmapper and share/i18n/esdb using > > > directories as make targets. This apparently causes these files to be > > > rebuilt at 'make installworld' time, which is always bad but is only > > > detected when /usr/obj is read-only. > > > > > > A hack that works is to enclose the four targets depending on ${SUBDIR} > > > in .if !make(install) . > > > > > > Unfortunately, the Makefiles were written to depend on the directories > > > as make targets fairly deeply, so a real fix is harder. > > > > I was looking at this yesterday, but was tied up with other things. I'll > > take a look at it today after getting a few other things done. It should be > > easy enough to replicate by changing /usr/obj to readonly on test systems. > > FWIW, this is still broken. Again, this is still broken. -- Joel ___ 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: r255180 - in head: lib share/mk sys/sys
Author: emaste Date: Tue Sep 3 15:22:04 2013 New Revision: 255180 URL: http://svnweb.freebsd.org/changeset/base/255180 Log: Connect libexecinfo to the build Sponsored by: DARPA, AFRL Modified: head/lib/Makefile head/share/mk/bsd.libnames.mk head/sys/sys/param.h Modified: head/lib/Makefile == --- head/lib/Makefile Tue Sep 3 13:49:00 2013(r255179) +++ head/lib/Makefile Tue Sep 3 15:22:04 2013(r255180) @@ -72,6 +72,7 @@ SUBDIR= ${SUBDIR_ORDERED} \ libdwarf \ libedit \ ${_libefi} \ + libexecinfo \ libexpat \ libfetch \ libgeom \ Modified: head/share/mk/bsd.libnames.mk == --- head/share/mk/bsd.libnames.mk Tue Sep 3 13:49:00 2013 (r255179) +++ head/share/mk/bsd.libnames.mk Tue Sep 3 15:22:04 2013 (r255180) @@ -51,6 +51,7 @@ LIBDTRACE?= ${DESTDIR}${LIBDIR}/libdtrac LIBDWARF?= ${DESTDIR}${LIBDIR}/libdwarf.a LIBEDIT?= ${DESTDIR}${LIBDIR}/libedit.a LIBELF?= ${DESTDIR}${LIBDIR}/libelf.a +LIBEXECINFO?= ${DESTDIR}${LIBDIR}/libexecinfo.a LIBFETCH?= ${DESTDIR}${LIBDIR}/libfetch.a LIBFL?="don't use LIBFL, use LIBL" LIBFORM?= ${DESTDIR}${LIBDIR}/libform.a Modified: head/sys/sys/param.h == --- head/sys/sys/param.hTue Sep 3 13:49:00 2013(r255179) +++ head/sys/sys/param.hTue Sep 3 15:22:04 2013(r255180) @@ -58,7 +58,7 @@ * in the range 5 to 9. */ #undef __FreeBSD_version -#define __FreeBSD_version 151 /* Master, propagated to newvers */ +#define __FreeBSD_version 152 /* Master, propagated to newvers */ /* * __FreeBSD_kernel__ indicates that this system uses the kernel of FreeBSD, ___ 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: r255152 - head/sys/dev/atkbdc
Le 03/09/2013 21:22, Xin Li a écrit : Log: synaptics and trackpoint support are stable enough to be on by default. I think this broke my ThinkPad T530, the system appears like that the click button is "sticky" (not quite sure what's happening though, key combos like Alt+Tab won't work). Hi! Could you try to instead revert r255153 and r255154 (the latter fixes the former)? It adds support for middle and extended buttons, which makes the touchpad usable on some laptops. -- Jean-Sébastien Pédron ___ 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: r255192 - in head: contrib/binutils/gas/config contrib/binutils/opcodes sys/amd64/amd64
Author: jhb Date: Tue Sep 3 21:21:47 2013 New Revision: 255192 URL: http://svnweb.freebsd.org/changeset/base/255192 Log: Add support for the 'invpcid' instruction to binutils and DDB's disassembler on amd64. MFC after:1 month Modified: head/contrib/binutils/gas/config/tc-i386.c head/contrib/binutils/opcodes/i386-dis.c head/contrib/binutils/opcodes/i386-opc.tbl head/contrib/binutils/opcodes/i386-tbl.h head/sys/amd64/amd64/db_disasm.c Modified: head/contrib/binutils/gas/config/tc-i386.c == --- head/contrib/binutils/gas/config/tc-i386.c Tue Sep 3 20:03:10 2013 (r255191) +++ head/contrib/binutils/gas/config/tc-i386.c Tue Sep 3 21:21:47 2013 (r255192) @@ -3990,7 +3990,8 @@ output_insn (void) goto check_prefix; } } - else if (i.tm.base_opcode == 0x660f3880 || i.tm.base_opcode == 0x660f3881) + else if (i.tm.base_opcode == 0x660f3880 || i.tm.base_opcode == 0x660f3881 + || i.tm.base_opcode == 0x660f3882) { /* invept and invvpid are 3 byte instructions with a mandatory prefix. */ @@ -4040,7 +4041,8 @@ output_insn (void) *p++ = (i.tm.base_opcode >> 16) & 0xff; } else if (i.tm.base_opcode == 0x660f3880 || - i.tm.base_opcode == 0x660f3881) + i.tm.base_opcode == 0x660f3881 || + i.tm.base_opcode == 0x660f3882) { p = frag_more (3); *p++ = (i.tm.base_opcode >> 16) & 0xff; Modified: head/contrib/binutils/opcodes/i386-dis.c == --- head/contrib/binutils/opcodes/i386-dis.cTue Sep 3 20:03:10 2013 (r255191) +++ head/contrib/binutils/opcodes/i386-dis.cTue Sep 3 21:21:47 2013 (r255192) @@ -550,6 +550,7 @@ fetch_data (struct disassemble_info *inf #define PREGRP104 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 104 } } #define PREGRP105 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 105 } } #define PREGRP106 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 106 } } +#define PREGRP107 NULL, { { NULL, USE_PREFIX_USER_TABLE }, { NULL, 107 } } #define X86_64_0 NULL, { { NULL, X86_64_SPECIAL }, { NULL, 0 } } @@ -2668,6 +2669,14 @@ static const struct dis386 prefix_user_t { "pclmulqdq", { XM, EXx, Ib } }, { "(bad)", { XX } }, }, + + /* PREGRP107 */ + { +{ "(bad)", { XX } }, +{ "(bad)", { XX } }, +{ "invpcid",{ Gm, Mo } }, +{ "(bad)", { XX } }, + }, }; static const struct dis386 x86_64_table[][2] = { @@ -2839,7 +2848,7 @@ static const struct dis386 three_byte_ta /* 80 */ { PREGRP98 }, { PREGRP99 }, -{ "(bad)", { XX } }, +{ PREGRP107 }, { "(bad)", { XX } }, { "(bad)", { XX } }, { "(bad)", { XX } }, Modified: head/contrib/binutils/opcodes/i386-opc.tbl == --- head/contrib/binutils/opcodes/i386-opc.tbl Tue Sep 3 20:03:10 2013 (r255191) +++ head/contrib/binutils/opcodes/i386-opc.tbl Tue Sep 3 21:21:47 2013 (r255192) @@ -1498,3 +1498,7 @@ xsetbv, 0, 0xf01, 0xd1, CpuXSAVE, No_bSu xsave, 1, 0xfae, 0x4, CpuXSAVE, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_xSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S } xsaveopt, 1, 0xfae, 0x6, CpuXSAVE, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_xSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S } xrstor, 1, 0xfae, 0x5, CpuXSAVE, Modrm|No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_xSuf, { BaseIndex|Disp8|Disp16|Disp32|Disp32S } + +// INVPCID +invpcid, 2, 0x660f3882, None, CpuNo64, Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, { BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg32 } +invpcid, 2, 0x660f3882, None, Cpu64, Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, { BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg64 } Modified: head/contrib/binutils/opcodes/i386-tbl.h == --- head/contrib/binutils/opcodes/i386-tbl.hTue Sep 3 20:03:10 2013 (r255191) +++ head/contrib/binutils/opcodes/i386-tbl.hTue Sep 3 21:21:47 2013 (r255192) @@ -3641,6 +3641,14 @@ const template i386_optab[] = Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, { BaseIndex|Disp8|Disp16|Disp32|Disp32S, Reg64 } }, + { "invpcid", 2, 0x660f3882, None, CpuNo64, +Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, +{ BaseIndex|Disp8|Disp16|Disp32|Disp32S, + Reg32 } }, + { "invpcid", 2, 0x660f3882, None, Cpu64, +Modrm|IgnoreSize|No_bSuf|No_wSuf|No_sSuf|No_qSuf|No_xSuf|NoRex64, +{ BaseIndex|Disp8|Disp16|Disp32|Disp32S, + Reg64 } }, { "vmcall", 0, 0xf01, 0xc1, CpuVMX, No_bSuf|No_wSuf|No_lSuf|No_sSuf|No_qSuf|No_xSuf|ImmExt, { 0 } }, Modified: head
svn commit: r255194 - in head/sys: mips/include powerpc/include
Author: imp Date: Tue Sep 3 22:04:55 2013 New Revision: 255194 URL: http://svnweb.freebsd.org/changeset/base/255194 Log: Newer versions of gcc define __INT64_C and __UINT64_C, so avoid redefining them if gcc provides them. Modified: head/sys/mips/include/_stdint.h head/sys/powerpc/include/_stdint.h Modified: head/sys/mips/include/_stdint.h == --- head/sys/mips/include/_stdint.h Tue Sep 3 21:30:42 2013 (r255193) +++ head/sys/mips/include/_stdint.h Tue Sep 3 22:04:55 2013 (r255194) @@ -66,6 +66,7 @@ #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) +#ifndef __INT64_C #ifdef __mips_n64 #define __INT64_C(c) (c ## L) #define __UINT64_C(c) (c ## UL) @@ -73,6 +74,7 @@ #define __INT64_C(c) (c ## LL) #define __UINT64_C(c) (c ## ULL) #endif +#endif /* * ISO/IEC 9899:1999 Modified: head/sys/powerpc/include/_stdint.h == --- head/sys/powerpc/include/_stdint.h Tue Sep 3 21:30:42 2013 (r255193) +++ head/sys/powerpc/include/_stdint.h Tue Sep 3 22:04:55 2013 (r255194) @@ -65,6 +65,7 @@ #if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS) +#ifndef __INT64_C #ifdef __LP64__ #define__INT64_C(c)(c ## L) #define__UINT64_C(c) (c ## UL) @@ -72,6 +73,7 @@ #define__INT64_C(c)(c ## LL) #define__UINT64_C(c) (c ## ULL) #endif +#endif /* * ISO/IEC 9899:1999 ___ 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: r255195 - head/sys/mips/conf
Author: sbruno Date: Tue Sep 3 22:33:06 2013 New Revision: 255195 URL: http://svnweb.freebsd.org/changeset/base/255195 Log: Add options GEOM_PART_GPT and options MSDOSFS to the DIR-825 Reviewed by: adrian@ Modified: head/sys/mips/conf/DIR-825 Modified: head/sys/mips/conf/DIR-825 == --- head/sys/mips/conf/DIR-825 Tue Sep 3 22:04:55 2013(r255194) +++ head/sys/mips/conf/DIR-825 Tue Sep 3 22:33:06 2013(r255195) @@ -54,12 +54,15 @@ options NO_SYSCTL_DESCR device geom_map# to get access to the SPI flash partitions device geom_uncompress # compressed in-memory filesystem hackery! optionsGEOM_UNCOMPRESS +optionsGEOM_PART_GPT optionsROOTDEVNAME=\"ufs:/dev/map/rootfs.uncompress\" optionsAR71XX_REALMEM=64*1024*1024 optionsAR71XX_ENV_UBOOT +optionsMSDOSFS # Read MSDOS filesystems; useful for USB/CF + # options MD_ROOT # options MD_ROOT_SIZE="6144" ___ 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: r255198 - head/sys/dev/cxgbe/tom
Author: np Date: Tue Sep 3 23:34:04 2013 New Revision: 255198 URL: http://svnweb.freebsd.org/changeset/base/255198 Log: For TOE connections, the window scale factor in CPL_PASS_ACCEPT_REQ is set to 15 to indicate that the peer did not send a window scale option with its SYN. Do not send a window scale option in the SYN|ACK reply in that case. Modified: head/sys/dev/cxgbe/tom/t4_listen.c Modified: head/sys/dev/cxgbe/tom/t4_listen.c == --- head/sys/dev/cxgbe/tom/t4_listen.c Tue Sep 3 23:20:03 2013 (r255197) +++ head/sys/dev/cxgbe/tom/t4_listen.c Tue Sep 3 23:34:04 2013 (r255198) @@ -1007,7 +1007,7 @@ calc_opt2p(struct adapter *sc, struct po opt2 |= F_TSTAMPS_EN; if (tcpopt->sack) opt2 |= F_SACK_EN; - if (tcpopt->wsf > 0) + if (tcpopt->wsf <= 14) opt2 |= F_WND_SCALE_EN; } ___ 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: r255175 - head/lib/libexecinfo
On 3 September 2013 15:54, Andrey Chernov wrote: > On 03.09.2013 17:31, Ed Maste wrote: >> Author: emaste >> Date: Tue Sep 3 13:31:43 2013 >> New Revision: 255175 >> URL: http://svnweb.freebsd.org/changeset/base/255175 >> >> Log: >> Don't install private libexecinfo headers > > Perhaps it should be added to obsolete files cleanup... Libexecinfo wasn't connected to the build prior to this fix, so I think there's no need. ___ 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: r255199 - head/sys/dev/hwpmc
Author: jhibbits Date: Wed Sep 4 04:11:38 2013 New Revision: 255199 URL: http://svnweb.freebsd.org/changeset/base/255199 Log: Fix hwpmc(4) for 32-bit PowerPC. Modified: head/sys/dev/hwpmc/hwpmc_powerpc.c head/sys/dev/hwpmc/hwpmc_powerpc.h Modified: head/sys/dev/hwpmc/hwpmc_powerpc.c == --- head/sys/dev/hwpmc/hwpmc_powerpc.c Tue Sep 3 23:34:04 2013 (r255198) +++ head/sys/dev/hwpmc/hwpmc_powerpc.c Wed Sep 4 04:11:38 2013 (r255199) @@ -36,6 +36,8 @@ __FBSDID("$FreeBSD$"); #include #include +#include +#include #include #include /* For VM_MIN_KERNEL_ADDRESS/VM_MAX_KERNEL_ADDRESS */ @@ -44,11 +46,6 @@ __FBSDID("$FreeBSD$"); #define INKERNEL(x)(((vm_offset_t)(x)) <= VM_MAX_KERNEL_ADDRESS && \ ((vm_offset_t)(x)) >= VM_MIN_KERNEL_ADDRESS) -/* - * Per-processor information. - */ -static unsigned int ppc_npmcs; - int pmc_save_kernel_callchain(uintptr_t *cc, int maxsamples, struct trapframe *tf) @@ -89,8 +86,6 @@ powerpc_describe(int cpu, int ri, struct KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), ("[powerpc,%d], illegal CPU %d", __LINE__, cpu)); - KASSERT(ri >= 0 && ri < ppc_npmcs, - ("[powerpc,%d] row-index %d out of range", __LINE__, ri)); phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri]; snprintf(powerpc_name, sizeof(powerpc_name), "POWERPC-%d", ri); Modified: head/sys/dev/hwpmc/hwpmc_powerpc.h == --- head/sys/dev/hwpmc/hwpmc_powerpc.h Tue Sep 3 23:34:04 2013 (r255198) +++ head/sys/dev/hwpmc/hwpmc_powerpc.h Wed Sep 4 04:11:38 2013 (r255199) @@ -51,7 +51,6 @@ struct powerpc_cpu { extern struct powerpc_cpu **powerpc_pcpu; extern int pmc_mpc7xxx_initialize(struct pmc_mdep *pmc_mdep); -extern int pmc_ppc970_initialize(struct pmc_mdep *pmc_mdep); extern int powerpc_describe(int cpu, int ri, struct pmc_info *pi, struct pmc **ppmc); extern int powerpc_get_config(int cpu, int ri, struct pmc **ppm); ___ 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: r255192 - in head: contrib/binutils/gas/config contrib/binutils/opcodes sys/amd64/amd64
On Tue, Sep 03, 2013 at 09:21:47PM +, John Baldwin wrote: > Author: jhb > Date: Tue Sep 3 21:21:47 2013 > New Revision: 255192 > URL: http://svnweb.freebsd.org/changeset/base/255192 > > Log: > Add support for the 'invpcid' instruction to binutils and DDB's > disassembler on amd64. > > MFC after: 1 month Nice, thank you. Do you agree with me that it is premature to start using the mnemonics in the kernel source until the changes are merged into stable/9 at least ? pgpMdRwN8cpTu.pgp Description: PGP signature