svn commit: r328036 - head

2018-01-15 Thread John Baldwin
Author: jhb Date: Tue Jan 16 01:05:04 2018 New Revision: 328036 URL: https://svnweb.freebsd.org/changeset/base/328036 Log: Check for GCC first rather than clang in the MIPS lib32 rules. This works around a bug with X_COMPILER_TYPE and permits mips64 to build again with in-tree gcc as well

svn commit: r328037 - head/usr.bin/truss

2018-01-15 Thread John Baldwin
Author: jhb Date: Tue Jan 16 01:21:07 2018 New Revision: 328037 URL: https://svnweb.freebsd.org/changeset/base/328037 Log: Rename 'recv' to 'receive' to appease shadow warnings from GCC. Modified: head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscalls.c =

svn commit: r328057 - head/sys/opencrypto

2018-01-16 Thread John Baldwin
Author: jhb Date: Tue Jan 16 19:41:18 2018 New Revision: 328057 URL: https://svnweb.freebsd.org/changeset/base/328057 Log: Split crp_buf into a union. This adds explicit crp_mbuf and crp_uio pointers of the right type to replace casts of crp_buf. This does not sweep through changing exis

svn commit: r328099 - in head/sys: fs/fdescfs fs/nfs fs/nfsserver fs/smbfs fs/tmpfs i386/ibcs2 kern sys

2018-01-17 Thread John Baldwin
Author: jhb Date: Wed Jan 17 22:36:58 2018 New Revision: 328099 URL: https://svnweb.freebsd.org/changeset/base/328099 Log: Use long for the last argument to VOP_PATHCONF rather than a register_t. pathconf(2) and fpathconf(2) both return a long. The kern_[f]pathconf() functions now accept

svn commit: r328101 - in head: stand/common sys/kern

2018-01-17 Thread John Baldwin
Author: jhb Date: Wed Jan 17 22:51:59 2018 New Revision: 328101 URL: https://svnweb.freebsd.org/changeset/base/328101 Log: Require the SHF_ALLOC flag for program sections from kernel object modules. ELF object files can contain program sections which are not supposed to be loaded into mem

svn commit: r328102 - in head: sys/amd64/include sys/amd64/vmm/amd sys/amd64/vmm/intel usr.sbin/bhyvectl

2018-01-17 Thread John Baldwin
Author: jhb Date: Wed Jan 17 23:11:25 2018 New Revision: 328102 URL: https://svnweb.freebsd.org/changeset/base/328102 Log: Save and restore guest debug registers. Currently most of the debug registers are not saved and restored during VM transitions allowing guest and host debug register

svn commit: r328103 - head/usr.sbin/kldxref

2018-01-17 Thread John Baldwin
Author: jhb Date: Thu Jan 18 00:23:11 2018 New Revision: 328103 URL: https://svnweb.freebsd.org/changeset/base/328103 Log: Tidy some whitespace. Modified: head/usr.sbin/kldxref/ef_powerpc.c Modified: head/usr.sbin/kldxref/ef_powerpc.c =

svn commit: r328104 - head/usr.sbin/kldxref

2018-01-17 Thread John Baldwin
Author: jhb Date: Thu Jan 18 00:24:05 2018 New Revision: 328104 URL: https://svnweb.freebsd.org/changeset/base/328104 Log: Adjust format string to fix build. Modified: head/usr.sbin/kldxref/ef_powerpc.c Modified: head/usr.sbin/kldxref/ef_powerpc.c

svn commit: r328134 - in head: sys/sys usr.bin/vmstat

2018-01-18 Thread John Baldwin
Author: jhb Date: Thu Jan 18 19:43:02 2018 New Revision: 328134 URL: https://svnweb.freebsd.org/changeset/base/328134 Log: Update various statements in vmstat(8) to match reality. - The process stats are actually thread counts rather than process counts. - Simplify various description

svn commit: r328135 - head/sys/amd64/amd64

2018-01-18 Thread John Baldwin
Author: jhb Date: Thu Jan 18 20:12:12 2018 New Revision: 328135 URL: https://svnweb.freebsd.org/changeset/base/328135 Log: Adjust branch target in NMI handler for the !PTI case. In the !PTI case the NMI handler jumped past the instructions that set %rdi to point to the current PCB, but th

svn commit: r328153 - head/sys/amd64/amd64

2018-01-18 Thread John Baldwin
Author: jhb Date: Thu Jan 18 22:13:53 2018 New Revision: 328153 URL: https://svnweb.freebsd.org/changeset/base/328153 Log: Remove two no-longer-used labels from the NMI interrupt handler. Reviewed by: kib Modified: head/sys/amd64/amd64/exception.S Modified: head/sys/amd64/amd64/excepti

svn commit: r328157 - in head/sys/amd64: amd64 include

2018-01-18 Thread John Baldwin
Author: jhb Date: Thu Jan 18 23:50:21 2018 New Revision: 328157 URL: https://svnweb.freebsd.org/changeset/base/328157 Log: Use a dedicated per-CPU stack for machine check exceptions. Similar to NMIs, machine check exceptions can fire at any time and are not masked by IF. This means that

svn commit: r328158 - head/gnu/usr.bin/gdb/kgdb

2018-01-18 Thread John Baldwin
Author: jhb Date: Fri Jan 19 01:36:25 2018 New Revision: 328158 URL: https://svnweb.freebsd.org/changeset/base/328158 Log: Recognize mchk_calltrap as a trapframe generator. Should have been included in r328157. Modified: head/gnu/usr.bin/gdb/kgdb/trgt_amd64.c Modified: head/gnu/usr.bin/

Re: svn commit: r328159 - head/sys/modules

2018-01-19 Thread John Baldwin
;= the width of a type is zero, but our > compiler decides this is a warning (and thus, error). Just remove ccp(4) > from i386. You would think that. The shift instructions on x86 effectively ignore the upper bits of the count, so a 33-bit shift on i386 ends up being a 1-bit

Re: svn commit: r327447 - head/sys/sys

2018-01-19 Thread John Baldwin
On Wednesday, January 17, 2018 03:14:37 PM Gleb Smirnoff wrote: > On Tue, Jan 02, 2018 at 09:56:09AM -0800, John Baldwin wrote: > J> > this is a recurring issue. Program that want to look into the > J> > internals of files such as mount.h > J> > and define _KERNE

Re: svn commit: r319971 - in head: contrib/jemalloc contrib/jemalloc/doc contrib/jemalloc/include/jemalloc contrib/jemalloc/include/jemalloc/internal contrib/jemalloc/src include lib/libc/stdlib/jemal

2018-01-22 Thread John Baldwin
tps://bugs.freebsd.org/bugzilla/show_bug.cgi?id=220767 > > ./danfe I wonder if it is tripping over pthread_once not working in libc. The stub for pthread_once in libc is a nop and has been for a long time. I added a functioning stub (called _libc_once) to libc for it's internal use (there

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-22 Thread John Baldwin
st that you do something similar for FDT. Create the corresponding device_t but device_disable() it when there is a disabled property. A user can then use 'devctl enable ' to enable it before (or even after) loading a device driver. To make t

Re: svn commit: r328257 - in head/sys: arm/broadcom/bcm2835 dts/arm modules

2018-01-22 Thread John Baldwin
rivers support this"). There is enough of that already existing now in HEAD I think it would be better to extend it to support whatever input mode it needs to handle disabled devices as input to run through its existing matching engine. -- John Baldwin __

svn commit: r328306 - head/bin/ps

2018-01-23 Thread John Baldwin
Author: jhb Date: Tue Jan 23 22:48:06 2018 New Revision: 328306 URL: https://svnweb.freebsd.org/changeset/base/328306 Log: Remove some KSE references from ps(1). - Simplify the description of -H to assume 1:1 threading. - Drop 'process' from description of 'lwp' field and the correspondin

svn commit: r328344 - head/tests/sys/kern

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 17:46:20 2018 New Revision: 328344 URL: https://svnweb.freebsd.org/changeset/base/328344 Log: Mark the unused argument to continue_thread() as such. clang in HEAD and 11 does not warn about this, but clang in 10 does. Modified: head/tests/sys/kern/ptrace_test

svn commit: r328353 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:04:08 2018 New Revision: 328353 URL: https://svnweb.freebsd.org/changeset/base/328353 Log: Always store the IV in the immediate portion of a work request. Combined authentication-encryption and GCM requests already stored the IV in the immediate explicitly.

svn commit: r328354 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:06:02 2018 New Revision: 328354 URL: https://svnweb.freebsd.org/changeset/base/328354 Log: Always set the IV location to IV_NOP. The firmware ignores this field in the FW_CRYPTO_LOOKASIDE_WR work request. Submitted by: Harsh Jain @ Chelsio Sponsored

svn commit: r328355 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:08:10 2018 New Revision: 328355 URL: https://svnweb.freebsd.org/changeset/base/328355 Log: Reject requests with AAD and IV larger than 511 bytes. The T6 crypto engine's control messages only support a total AAD length (including the prefixed IV) of 511 byte

svn commit: r328356 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:11:00 2018 New Revision: 328356 URL: https://svnweb.freebsd.org/changeset/base/328356 Log: Don't discard AAD and IV output data for AEAD requests. The T6 can hang when processing certain AEAD requests if the request sets a flag asking the crypto engine to d

svn commit: r328357 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:12:00 2018 New Revision: 328357 URL: https://svnweb.freebsd.org/changeset/base/328357 Log: Fail crypto requests when the resulting work request is too large. Most crypto requests will not trigger this condition, but a request with a highly-fragmented data b

svn commit: r328358 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:13:07 2018 New Revision: 328358 URL: https://svnweb.freebsd.org/changeset/base/328358 Log: Clamp DSGL entries to a length of 2KB. This works around an issue in the T6 that can result in DMA engine stalls if an error occurs while processing a DSGL entry with

svn commit: r328359 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:14:57 2018 New Revision: 328359 URL: https://svnweb.freebsd.org/changeset/base/328359 Log: Expand the software fallback for GCM to cover more cases. - Extend ccr_gcm_soft() to handle requests with a non-empty payload. While here, switch to allocating the

svn commit: r328360 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:15:49 2018 New Revision: 328360 URL: https://svnweb.freebsd.org/changeset/base/328360 Log: Don't read or generate an IV until all error checking is complete. In particular, this avoids edge cases where a generated IV might be written into the output buffer

svn commit: r328361 - head/sys/dev/cxgbe/crypto

2018-01-24 Thread John Baldwin
Author: jhb Date: Wed Jan 24 20:16:48 2018 New Revision: 328361 URL: https://svnweb.freebsd.org/changeset/base/328361 Log: Store IV in output buffer in GCM software fallback when requested. Properly honor the lack of the CRD_F_IV_PRESENT flag in the GCM software fallback case for encrypti

svn commit: r328453 - head/sys/opencrypto

2018-01-26 Thread John Baldwin
Author: jhb Date: Fri Jan 26 23:21:50 2018 New Revision: 328453 URL: https://svnweb.freebsd.org/changeset/base/328453 Log: Move per-operation data out of the csession structure. Create a struct cryptop_data which contains state needed for a single symmetric crypto operation and move that

svn commit: r328457 - head/lib/libc/mips/gen

2018-01-26 Thread John Baldwin
Author: jhb Date: Sat Jan 27 00:39:49 2018 New Revision: 328457 URL: https://svnweb.freebsd.org/changeset/base/328457 Log: Clarify some comments in the MIPS makecontext(). - N32 and N64 do not have a $a0-3 gap. - Use 'sp += 4' to skip over the gap for O32 rather than '+= i'. It doesn

Re: svn commit: r328511 - head/sys/dev/extres/clk

2018-01-29 Thread John Baldwin
ex: %d\n", __func__, idx); > - > + panic("%s: Invalid parent index %d for clock %s", > + __func__, idx, clknode->name); > clknode->parent_idx = idx; >} > > Modified: > head/sys/dev/extres/clk/clk.c Can you reve

Re: ps output line length (was: svn commit: r314685 - head/bin/ps)

2018-01-29 Thread John Baldwin
t;it doesn't matter if you use > less with side-to-side scrolling." fwiw, I'm sure I discussed that > code with Marc at the time. > > As was stated, scripts that want to use the full line should use -ww. > Interactive users have long been used to using -w when they

svn commit: r331324 - head/lib/libthr/thread

2018-03-21 Thread John Baldwin
Author: jhb Date: Wed Mar 21 21:13:26 2018 New Revision: 331324 URL: https://svnweb.freebsd.org/changeset/base/331324 Log: Ensure thread library is initialized in pthread_testcancel(). Call _thr_check_init() before reading curthread in pthread_testcancel(). If a constructor in a librar

Re: svn commit: r331209 - head

2018-03-23 Thread John Baldwin
On Thursday, March 22, 2018 04:39:38 AM Alexey Dokuchaev wrote: > On Wed, Mar 21, 2018 at 10:34:15PM -0600, Warner Losh wrote: > > On Wed, Mar 21, 2018 at 10:03 PM, Alexey Dokuchaev > > wrote: > > > On Mon, Mar 19, 2018 at 09:20:40AM -0700, John Baldwin wrote: > >

svn commit: r331459 - in head/sys: mips/include sys

2018-03-23 Thread John Baldwin
Author: jhb Date: Fri Mar 23 19:31:52 2018 New Revision: 331459 URL: https://svnweb.freebsd.org/changeset/base/331459 Log: Move remaining EF_MIPS_* flags to . Reviewed by: brooks Sponsored by: DARPA / AFRL Differential Revision:https://reviews.freebsd.org/D14789 Modified: he

svn commit: r331466 - head/sys/x86/x86

2018-03-23 Thread John Baldwin
Author: jhb Date: Fri Mar 23 22:36:24 2018 New Revision: 331466 URL: https://svnweb.freebsd.org/changeset/base/331466 Log: Add a workaround to the hypervisor detection for older versions of KVM. Originally KVM set %eax to 0 in the cpuid leaf 0x400 rather than to the highest supported

svn commit: r331597 - head/tools/tools/crypto

2018-03-26 Thread John Baldwin
) @@ -1,5 +1,30 @@ /*- - * Copyright (c) 2017 John Baldwin, + * Copyright (c) 2017 Chelsio Communications, Inc. + * All rights reserved. + * Written by: John Baldwin + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following

Re: svn commit: r331602 - in head/sys/contrib/zstd: . contrib/gen_html contrib/meson contrib/seekable_format doc doc/images lib lib/common lib/compress lib/decompress lib/dictBuilder lib/legacy progra

2018-03-27 Thread John Baldwin
ere is an existing ^/vendor/zstd tree that zstd updates should probably be committed to first and then merged over. You can probably repair this by importing 1.3.4 as normal to the vendor area following the normal instructions and then doing an 'svn merge --reco

Re: svn commit: r331209 - head

2018-03-27 Thread John Baldwin
On Tuesday, March 27, 2018 05:19:12 AM Alexey Dokuchaev wrote: > On Thu, Mar 22, 2018 at 08:52:47AM -0700, John Baldwin wrote: > > On Thursday, March 22, 2018 04:39:38 AM Alexey Dokuchaev wrote: > > > > ... > > > Right, but John had mentioned extra rebo

Re: svn commit: r331209 - head

2018-03-27 Thread John Baldwin
On Tuesday, March 27, 2018 10:48:22 AM Rodney W. Grimes wrote: > [ Charset ISO-8859-1 unsupported, converting... ] > > On Tue, 2018-03-27 at 09:48 -0700, John Baldwin wrote: > > > On Tuesday, March 27, 2018 05:19:12 AM Alexey Dokuchaev wrote: > > > > > > &g

Re: svn commit: r331209 - head

2018-03-27 Thread John Baldwin
On Tuesday, March 27, 2018 11:40:22 AM Ian Lepore wrote: > On Tue, 2018-03-27 at 09:48 -0700, John Baldwin wrote: > > On Tuesday, March 27, 2018 05:19:12 AM Alexey Dokuchaev wrote: > > > > > > On Thu, Mar 22, 2018 at 08:52:47AM -0700, John Baldwin wrote: > > &

svn commit: r331649 - in head/sys/dev/cxgbe: cxgbei tom

2018-03-27 Thread John Baldwin
Author: jhb Date: Tue Mar 27 20:54:57 2018 New Revision: 331649 URL: https://svnweb.freebsd.org/changeset/base/331649 Log: Use the offload transmit queue to set flags on TLS connections. Requests to modify the state of TLS connections need to be sent on the same queue as TLS record transm

svn commit: r331650 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux amd64/linux32 cddl/contrib/opensolaris/uts/intel/dtrace cddl/dev/dtrace/amd64 cddl/dev/dtrace/i386 i386/i386 i386/linux x86/inc...

2018-03-27 Thread John Baldwin
Author: jhb Date: Tue Mar 27 20:57:51 2018 New Revision: 331650 URL: https://svnweb.freebsd.org/changeset/base/331650 Log: Remove very old and unused signal information codes. These have been supplanted by the MI signal information codes in since 7.0. The FPE_*_TRAP ones were deprecated

Re: svn commit: r331606 - in head/sys: amd64/include i386/include x86/x86 x86/xen

2018-03-28 Thread John Baldwin
that cpuset_domain[0] was initialized too late on > some systems. It depended on what kind of hardware was present and which > sysinit with SI_ORDER_ANY ran first. Hmm, does this work if you don't use EARLY_AP_STARTUP? I think all_cpus isn't set yet (or only contains the BSP)

svn commit: r331681 - in head/sys: amd64/amd64 i386/i386

2018-03-28 Thread John Baldwin
Author: jhb Date: Wed Mar 28 16:24:56 2018 New Revision: 331681 URL: https://svnweb.freebsd.org/changeset/base/331681 Log: Fix kernel builds without options DDB after r331650. Reported by: cy Modified: head/sys/amd64/amd64/machdep.c head/sys/i386/i386/machdep.c Modified: head/sys/amd

svn commit: r331686 - head

2018-03-28 Thread John Baldwin
Author: jhb Date: Wed Mar 28 16:51:05 2018 New Revision: 331686 URL: https://svnweb.freebsd.org/changeset/base/331686 Log: Expand remaining instances of 'make kernel' to buildkernel + installkernel. The 'kernel' target is a bit more obscure compared to buildkernel and installkernel. One

svn commit: r331715 - head/usr.bin/truss

2018-03-28 Thread John Baldwin
Author: jhb Date: Thu Mar 29 00:04:07 2018 New Revision: 331715 URL: https://svnweb.freebsd.org/changeset/base/331715 Log: Rename ClouduABIFDSFlags to CloudABIFDSFlags. Modified: head/usr.bin/truss/syscall.h head/usr.bin/truss/syscalls.c Modified: head/usr.bin/truss/syscall.h =

svn commit: r331716 - head/usr.bin/truss

2018-03-28 Thread John Baldwin
Author: jhb Date: Thu Mar 29 00:12:50 2018 New Revision: 331716 URL: https://svnweb.freebsd.org/changeset/base/331716 Log: Reformat the enum of syscall argument types. List enum values on separate lines to minimize diffs as new types are added. Split the enum values up into groups and us

Re: svn commit: r331686 - head

2018-03-29 Thread John Baldwin
On Wednesday, March 28, 2018 09:54:41 PM Dimitry Andric wrote: > On 28 Mar 2018, at 18:51, John Baldwin wrote: > > > > Author: jhb > > Date: Wed Mar 28 16:51:05 2018 > > New Revision: 331686 > > URL: https://svnweb.freebsd.org/changeset/base/331686 > > &

Re: svn commit: r327954 - in head/sys: amd64/conf conf dev/acpica vm x86/acpica

2018-04-06 Thread John Baldwin
that much > about this stuff. Maybe add 'nooption NUMA' to sys/powerpc/conf/NOTES? (It has several nooption and nodevice lines already) If it affects more than powerpc then I wouldn't do that, but if it's only powerpc then I think patching powerpc/conf/NOTES is most

Re: svn commit: r332090 - head/stand/i386

2018-04-06 Thread John Baldwin
if defined(LINKER_TYPE) && ${LINKER_TYPE} == "lld" > +LDFLAGS+=-Wl,--no-rosegment > +.endif Maybe we should support LDFLAGS.${LINKER_TYPE} as we do for CFLAGS, etc.? -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r332157 - in head: lib/libvmmapi sys/amd64/include sys/amd64/vmm sys/amd64/vmm/amd sys/amd64/vmm/intel

2018-04-06 Thread John Baldwin
Author: jhb Date: Fri Apr 6 22:03:43 2018 New Revision: 332157 URL: https://svnweb.freebsd.org/changeset/base/332157 Log: Add a way to temporarily suspend and resume virtual CPUs. This is used as part of implementing run control in bhyve's debug server. The hypervisor now maintains a se

Re: svn commit: r332133 - head/sys/conf

2018-04-06 Thread John Baldwin
> platforms without COMPAT_LINUX32. I wonder if it wouldn't be cleaner to just move COMPAT_LINUX32 itself to sys/conf/options? -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsub

Re: svn commit: r332090 - head/stand/i386

2018-04-09 Thread John Baldwin
On Monday, April 09, 2018 11:02:01 AM Warner Losh wrote: > On Mon, Apr 9, 2018 at 10:44 AM, Ed Maste wrote: > > > On 6 April 2018 at 13:54, John Baldwin wrote: > > > On Friday, April 06, 2018 02:57:58 AM Ed Maste wrote: > > >> Author: emaste > > >&

Re: svn commit: r332434 - head/sys/conf

2018-04-12 Thread John Baldwin
DARPA, AFRL We actually shouldn't need hf kernels anymore. HAVE_FPU has been removed and any mips kernel works fine with either hard or soft float userlands. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/

Re: svn commit: r332454 - in head/sys: amd64/amd64 amd64/ia32 amd64/linux amd64/linux32 i386/i386

2018-04-13 Thread John Baldwin
I have even some thoughts on how to fix stepping for architectures like MIPS that do software stepping by letting the debugger enable a "report a step for first signal instruction" mode while it is stepping a thread and then reporting an explicit SIGTRAP ptracestop() during sendsig

Re: svn commit: r332498 - head/sys/x86/cpufreq

2018-04-16 Thread John Baldwin
ic sizing > > PR: 227388 > Reported by:Vladimir Machulsky > Sponsored by: Dell EMC Isilon Presumably you could use nitems() on ESTprocs as well rather than a terminator? -- John Baldwin ___ svn-src-head@freebsd.org maili

svn commit: r332657 - in head: etc/mtree sys/kern sys/sys tests/sys tests/sys/capsicum

2018-04-17 Thread John Baldwin
ctls_test + +WARNS?=6 + +.include Added: head/tests/sys/capsicum/ioctls_test.c == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tests/sys/capsicum/ioctls_test.c Tue Apr 17 18:07:40 2018 (r332657) @@ -0,0 +1,127 @@ +/*- + * Copyright (c) 2018 John Bal

Re: svn commit: r332652 - in head/sys: conf dev/puc modules/puc

2018-04-17 Thread John Baldwin
ove the terminator entry and use nitems() in puc_pci_match instead. That will also remove the need for the - 1 hack in the MODULE_PNP_INFO line. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-he

svn commit: r332733 - head/sys/dev/acpica

2018-04-18 Thread John Baldwin
Author: jhb Date: Wed Apr 18 18:36:26 2018 New Revision: 332733 URL: https://svnweb.freebsd.org/changeset/base/332733 Log: Workaround fixed I/O port resources encoded as I/O port ranges in _CRS. ACPI I/O port descriptors use _MIN and _MAX fields to specify the set of allowable base (start

svn commit: r332735 - head/sys/x86/x86

2018-04-18 Thread John Baldwin
Author: jhb Date: Wed Apr 18 18:45:34 2018 New Revision: 332735 URL: https://svnweb.freebsd.org/changeset/base/332735 Log: Fix two off-by-one errors when allocating MSI and MSI-X interrupts. x86 enforces an (arbitray) limit on the number of available MSI and MSI-X interrupts to simplify c

svn commit: r332782 - in head/sys: amd64/linux amd64/linux32 compat/freebsd32 i386/linux kern sys

2018-04-19 Thread John Baldwin
Author: jhb Date: Thu Apr 19 16:00:34 2018 New Revision: 332782 URL: https://svnweb.freebsd.org/changeset/base/332782 Log: Simplify the code to allocate stack for auxv, argv[], and environment vectors. Remove auxarg_size as it was only used once right after a confusing assignment in each

Re: svn commit: r332735 - head/sys/x86/x86

2018-04-20 Thread John Baldwin
> > On Wed, Apr 18, 2018 at 11:45 AM, John Baldwin wrote: > > > Author: jhb > > Date: Wed Apr 18 18:45:34 2018 > > New Revision: 332735 > > URL: https://svnweb.freebsd.org/changeset/base/332735 > > > > Log: > > Fix two off-by-one errors when

svn commit: r332891 - head/sys/arm/include

2018-04-23 Thread John Baldwin
Author: jhb Date: Mon Apr 23 16:50:37 2018 New Revision: 332891 URL: https://svnweb.freebsd.org/changeset/base/332891 Log: Fix some harmless type mismatches in the ARM atomic_cmpset implementations. The return value of atomic_cmpset() and atomic_fcmpset() is an int (which is really a bool

svn commit: r332892 - head/sys/arm/include

2018-04-23 Thread John Baldwin
Author: jhb Date: Mon Apr 23 17:00:15 2018 New Revision: 332892 URL: https://svnweb.freebsd.org/changeset/base/332892 Log: Implement 32-bit atomic_fcmpset() in userland for armv4/v5. - Add an implementation of atomic_fcmpset_32() using RAS for armv4/v5. This fixes recent world breakage

Re: svn commit: r332874 - head/share/misc

2018-04-23 Thread John Baldwin
storical state rather than the current state so that one can see the developers "family tree" as it were and it is not unusual for a developer to have multiple mentors either. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r332860 - head/sys/kern

2018-04-23 Thread John Baldwin
that > specific mechanism.) I think this is actually a key question. In my experience to date I have not encountered a large number of post-panic assertion failures. Given that we already break all locks and disable assertions for locks I'd be curious which assertions are actually fai

svn commit: r332906 - head/tests/sys/kern

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:20:16 2018 New Revision: 332906 URL: https://svnweb.freebsd.org/changeset/base/332906 Log: Extend support for ptrace() tests using breakpoints. - Use a single list of platforms to define HAVE_BREAKPOINT for platforms that expose a functional breakpoint()

svn commit: r332907 - in head: sys/mips/include tests/sys/kern

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:26:28 2018 New Revision: 332907 URL: https://svnweb.freebsd.org/changeset/base/332907 Log: Expose breakpoint() to userland from on MIPS. Enable ptrace() tests using breakpoint on MIPS as well. Tested on:mips64 MFC after:1 month Modified: he

svn commit: r332908 - head/tests/sys/kern

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:30:05 2018 New Revision: 332908 URL: https://svnweb.freebsd.org/changeset/base/332908 Log: Add two tests for TRAP_* signal codes for SIGTRAP. - ptrace__breakpoint_siginfo tests that a SIGTRAP for a software breakpoint in userland triggers a SIGTRAP with a

svn commit: r332909 - head/sys/mips/mips

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:33:17 2018 New Revision: 332909 URL: https://svnweb.freebsd.org/changeset/base/332909 Log: Report proper signal codes for SIGTRAP traps on MIPS. - Use TRAP_TRACE for traps after stepping via PT_STEP. - Use TRAP_BRKPT for software breakpoint traps and watchp

svn commit: r332910 - head/sys/mips/mips

2018-04-23 Thread John Baldwin
Author: jhb Date: Tue Apr 24 05:42:10 2018 New Revision: 332910 URL: https://svnweb.freebsd.org/changeset/base/332910 Log: Relock PROC_LOCK before one failure case in ptrace_single_step(). The MIPS ptrace_single_step() unlocks the PROC_LOCK while reading and writing instructions from user

svn commit: r332944 - head/sys/mips/mips

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 17:22:17 2018 New Revision: 332944 URL: https://svnweb.freebsd.org/changeset/base/332944 Log: Use a cleaner test for the branch delay (BD) bit in DELAYBRANCH. Rather than casting the value of cause to int and checking for a negative value to determine if bit 3

svn commit: r332945 - head/sys/mips/mips

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 17:31:20 2018 New Revision: 332945 URL: https://svnweb.freebsd.org/changeset/base/332945 Log: Don't fetch the current instruction for faults on user "trap" instructions. The value of 'instr' was not used to handle the fault. Reported by: GCC's -Wunused-but

svn commit: r332951 - in head/sys/mips: include mips

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 17:53:16 2018 New Revision: 332951 URL: https://svnweb.freebsd.org/changeset/base/332951 Log: Fix PT_STEP single-stepping for mips. Note that GDB at least implements single stepping for MIPS using software breakpoints explicitly rather than using PT_STEP, so t

Re: svn commit: r332860 - head/sys/kern

2018-04-24 Thread John Baldwin
On Tuesday, April 24, 2018 01:24:30 PM Jonathan T. Looney wrote: > On Mon, Apr 23, 2018 at 6:04 PM, John Baldwin wrote: > > > > I think this is actually a key question. In my experience to date I have > not > > encountered a large number of post-panic assertion fail

svn commit: r332975 - head/share/man/man3

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 23:20:15 2018 New Revision: 332975 URL: https://svnweb.freebsd.org/changeset/base/332975 Log: Document the TRAP_CAP code for SIGTRAP. MFC after:3 days Modified: head/share/man/man3/siginfo.3 Modified: head/share/man/man3/siginfo.3 ===

svn commit: r332976 - head/tests/sys/kern

2018-04-24 Thread John Baldwin
Author: jhb Date: Tue Apr 24 23:22:45 2018 New Revision: 332976 URL: https://svnweb.freebsd.org/changeset/base/332976 Log: Shorten some recently-added lines that are an extra indent over 80 columns. Modified: head/tests/sys/kern/ptrace_test.c Modified: head/tests/sys/kern/ptrace_test.c =

Re: svn commit: r332959 - head/sys/kern

2018-04-25 Thread John Baldwin
by default, so you would need it to always default to false to preserve existing behavior by default. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r333068 - head/sys/dev/cxgbe/tom

2018-04-27 Thread John Baldwin
Author: jhb Date: Fri Apr 27 17:20:23 2018 New Revision: 333068 URL: https://svnweb.freebsd.org/changeset/base/333068 Log: Use the correct key address when renegotiating the transmit key. Previously, get_keyid() was returning the address of the receive key instead of the transmit key when

svn commit: r333076 - head/sys/mips/mips

2018-04-27 Thread John Baldwin
Author: jhb Date: Fri Apr 27 21:22:32 2018 New Revision: 333076 URL: https://svnweb.freebsd.org/changeset/base/333076 Log: Use %p to print uintptr_t values rather than %z in MIPS single-step code. Modified: head/sys/mips/mips/pm_machdep.c Modified: head/sys/mips/mips/pm_machdep.c ===

Re: svn commit: r333010 - head/sys/mips/mips

2018-04-27 Thread John Baldwin
me/lwhsu/src/sys/mips/mips/pm_machdep.c: In function > > 'ptrace_clear_single_step': > > /home/lwhsu/src/sys/mips/mips/pm_machdep.c:505: warning: format '%x' > > expects type 'unsigned int', but argument 5 has type 'uintptr_t' > > [-Wformat] > > *** [pm_machdep.o] Error code 1 > > > > Another way is cast arguments to uintmax_t and use %jx. Will that be > > better? > > > > Li-Wen > > > > Oh, my bad, my source was out of date. Now I see that the types are not > plain integers anymore. In that case, I think the only options are to > cast to uintmax_t and use %jx, or cast to void* and use %p. The %z does happen to work in this case since size_t == uintptr_t on MIPS, but I think %p is the best route since these really are pointers. I've build-tested a patch to use %p and will commit it in a bit. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

svn commit: r333140 - head/usr.sbin/bhyve

2018-05-01 Thread John Baldwin
Author: jhb Date: Tue May 1 15:17:46 2018 New Revision: 333140 URL: https://svnweb.freebsd.org/changeset/base/333140 Log: Initial debug server for bhyve. This commit adds a new debug server to bhyve. Unlike the existing -g option which provides an efficient connection to a debug server

Re: svn commit: r333140 - head/usr.sbin/bhyve

2018-05-01 Thread John Baldwin
On Tuesday, May 01, 2018 03:17:47 PM John Baldwin wrote: > Author: jhb > Date: Tue May 1 15:17:46 2018 > New Revision: 333140 > URL: https://svnweb.freebsd.org/changeset/base/333140 > > Log: > Initial debug server for bhyve. This is definitely "early" work and

Re: svn commit: r333242 - head/sys/kern

2018-05-04 Thread John Baldwin
On Friday, May 04, 2018 11:28:33 AM Sean Bruno wrote: > For the "official" record: > > Approved-by: sbruno > > :-) > > sean > > p.s. silly svn didn't stop this commit, I wonder why. There is no commit hook for mentor approvals. It's on

Re: svn commit: r333230 - head/sys/dev/pci

2018-05-04 Thread John Baldwin
nd whine if they aren't released and then release them. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r333242 - head/sys/kern

2018-05-04 Thread John Baldwin
if (src->fc_ioctls == NULL) > return (true); > > @@ -1512,7 +1512,7 @@ filecaps_copy(const struct filecaps *src, struct filec > > size = sizeof(src->fc_ioctls[0]) * src->fc_nioctls; > dst->fc_ioctls = malloc(size, M_FILE

Re: svn commit: r332730 - in head/sys: amd64/amd64 i386/i386 powerpc/powerpc

2018-05-07 Thread John Baldwin
_on_panic || kdb_active) arm/arm/trap-v6.c: if (debugger_on_panic || kdb_active) arm64/arm64/trap.c: if (debugger_on_panic || kdb_active) mips/mips/trap.c: if (debugger_on_panic || kdb_active) { -- John Baldwin ___

svn commit: r333414 - head/share/mk

2018-05-09 Thread John Baldwin
Author: jhb Date: Wed May 9 15:20:39 2018 New Revision: 333414 URL: https://svnweb.freebsd.org/changeset/base/333414 Log: Recognize the base/gcc compiler as GCC. The existing patterns for 'cc --version' output do not work for GCC built from the base/gcc port. Reviewed by: imp Dif

svn commit: r333416 - head/sys/sparc64/sparc64

2018-05-09 Thread John Baldwin
Author: jhb Date: Wed May 9 15:25:26 2018 New Revision: 333416 URL: https://svnweb.freebsd.org/changeset/base/333416 Log: Report TRAP_BRKPT for breakpoint traps on sparc64. Reviewed by: marius MFC after:2 weeks Differential Revision:https://reviews.freebsd.org/D15190 Modi

Re: svn commit: r333393 - head/sys/contrib/ipfilter/netinet

2018-05-09 Thread John Baldwin
URCEQUENCH : > case ICMP_REDIRECT : > case ICMP_TIMXCEED : Hmm, normal FreeBSD style here is to use /* FALLTHROUGH */, and there are three other instances of that style in ipfilter already (and none others using this comment style). -- John Baldwin __

Re: svn commit: r333393 - head/sys/contrib/ipfilter/netinet

2018-05-09 Thread John Baldwin
On Wednesday, May 09, 2018 10:02:06 AM Warner Losh wrote: > On Wed, May 9, 2018 at 8:58 AM, John Baldwin wrote: > > > On Wednesday, May 09, 2018 02:07:09 AM Cy Schubert wrote: > > > Author: cy > > > Date: Wed May 9 02:07:09 2018 > > > New Revision: 9

Re: svn commit: r333393 - head/sys/contrib/ipfilter/netinet

2018-05-09 Thread John Baldwin
On Wednesday, May 09, 2018 02:29:05 PM Warner Losh wrote: > On Wed, May 9, 2018 at 10:52 AM, John Baldwin wrote: > > > On Wednesday, May 09, 2018 10:02:06 AM Warner Losh wrote: > > > On Wed, May 9, 2018 at 8:58 AM, John Baldwin wrote: > > > > > > >

Re: svn commit: r333482 - head/usr.bin/expand

2018-05-11 Thread John Baldwin
this already from the call to exit() at the end? -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r333443 - in head/sys: conf libkern powerpc/powerpc

2018-05-11 Thread John Baldwin
werpc/powerpc/bcopy.c > Deleted: > head/sys/powerpc/powerpc/bcopy.c > Modified: Hmm, is sys/riscv/riscv/bcopy.c still in the tree? -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-sr

Re: svn commit: r333449 - in head: etc/rc.d lib/libc/db/mpool lib/libc/gen lib/libc/string lib/libc/sys lib/libz share/man/man3 share/man/man5 sys/libkern usr.bin/gzip usr.bin/ident usr.sbin/fstyp usr

2018-05-11 Thread John Baldwin
Thu May 10 06:33:54 2018(r333448) > +++ head/usr.sbin/fstyp/zfs.c Thu May 10 06:41:08 2018(r333449) > @@ -1,7 +1,6 @@ > /*- > * Copyright (c) 2015 Allan Jude > * Copyright (c) 2015 Xin LI > - * All rights reserved. > * > * Redistribution and

Re: svn commit: r318250 - in head: etc etc/newsyslog.conf.d etc/syslog.d tools/build/mk

2017-05-15 Thread John Baldwin
t is that newsyslog will create a one-line file in /var/log for entries with 'C'. -- John Baldwin ___ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Re: svn commit: r318250 - in head: etc etc/newsyslog.conf.d etc/syslog.d tools/build/mk

2017-05-15 Thread John Baldwin
On Monday, May 15, 2017 11:43:21 AM Ian Lepore wrote: > On Mon, 2017-05-15 at 10:13 -0700, John Baldwin wrote: > > On Saturday, May 13, 2017 10:39:15 AM Warner Losh wrote: > > > > > > > > > > > > > > > > > - It's really easy to

Re: svn commit: r318250 - in head: etc etc/newsyslog.conf.d etc/syslog.d tools/build/mk

2017-05-15 Thread John Baldwin
On Monday, May 15, 2017 02:11:53 PM Ian Lepore wrote: > On Mon, 2017-05-15 at 12:22 -0700, John Baldwin wrote: > > Also, _you_ could just splat an empty /etc/newsyslog.conf file on > > your > > appliance and create a bunch of conf.d/foo files if that is easier > &g

<    1   2   3   4   5   6   7   8   9   10   >