Re: svn commit: r340413 - in head/sys: kern net sys

2018-11-15 Thread Hans Petter Selasky
On 11/15/18 2:15 AM, Gleb Smirnoff wrote: I wish to do that, but struct thread is exposed to userland, and all epoch structures are not. There is another way to solve this problem which doesn't involve "struct thread" and is more safe and guards against recursive use of these functions! Can

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

2018-11-15 Thread Alan Somers
Author: asomers Date: Thu Nov 15 16:13:25 2018 New Revision: 340455 URL: https://svnweb.freebsd.org/changeset/base/340455 Log: fcntl.2: document an additional error condition MFC after:2 weeks Modified: head/lib/libc/sys/fcntl.2 Modified: head/lib/libc/sys/fcntl.2

svn commit: r340451 - head/sys/kern

2018-11-15 Thread Warner Losh
Author: imp Date: Thu Nov 15 16:02:24 2018 New Revision: 340451 URL: https://svnweb.freebsd.org/changeset/base/340451 Log: Do proper conversion to/from sbt. Doh! sbttoX and Xtosbt were backwards. While they ran, they produced bogus results. Pointy hat to: imp@ Modified:

svn commit: r340458 - head/sys/arm/mv

2018-11-15 Thread Luiz Otavio O Souza
Author: loos Date: Thu Nov 15 17:05:02 2018 New Revision: 340458 URL: https://svnweb.freebsd.org/changeset/base/340458 Log: Set the SPI clock speed and polarity on each transfer to catch up with recent changes in spibus and allow the use of different SPI modes on the same bus. Reported

svn commit: r340456 - head/sys/arm/conf

2018-11-15 Thread Luiz Otavio O Souza
Author: loos Date: Thu Nov 15 16:29:27 2018 New Revision: 340456 URL: https://svnweb.freebsd.org/changeset/base/340456 Log: Comment MD_ROOT and remove 'device re' which is not part of the system and can be loaded as module. Modified: head/sys/arm/conf/ARMADA38X Modified:

svn commit: r340453 - head/sys/cam

2018-11-15 Thread Warner Losh
Author: imp Date: Thu Nov 15 16:02:45 2018 New Revision: 340453 URL: https://svnweb.freebsd.org/changeset/base/340453 Log: Add cam_iosched_set_latfcn to set a latency callback for high latency. It's often useful to have a callback when an I/O takes more than a threshold amount of time.

svn commit: r340452 - head/sys/cam/scsi

2018-11-15 Thread Warner Losh
Author: imp Date: Thu Nov 15 16:02:34 2018 New Revision: 340452 URL: https://svnweb.freebsd.org/changeset/base/340452 Log: Introduce scsi_ata_setfeatures() as a convenient way to make a passthru ATA SETFEATURES command. Sponsored by: Netflix, Inc Modified: head/sys/cam/scsi/scsi_all.c

svn commit: r340450 - head/sys/sys

2018-11-15 Thread Warner Losh
Author: imp Date: Thu Nov 15 16:02:13 2018 New Revision: 340450 URL: https://svnweb.freebsd.org/changeset/base/340450 Log: When converting ns,us,ms to sbt, return the ceil() of the result rather than the floor(). Returning the floor means that sbttoX(Xtosbt(y)) != y for almost all values of

svn commit: r340463 - head/lib/libc/amd64/string

2018-11-15 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 15 20:20:39 2018 New Revision: 340463 URL: https://svnweb.freebsd.org/changeset/base/340463 Log: amd64: convert libc bzero to a C func to avoid future bloat Reviewed by: kib (previous version) Sponsored by: The FreeBSD Foundation Differential Revision:

svn commit: r340464 - head/lib/libc/amd64/string

2018-11-15 Thread Mateusz Guzik
Author: mjg Date: Thu Nov 15 20:28:35 2018 New Revision: 340464 URL: https://svnweb.freebsd.org/changeset/base/340464 Log: amd64: sync up libc memset with the kernel version - tidy up memset to have rax set earlier for small sizes - finish the tail in memset with an overlapping store -

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

2018-11-15 Thread John Baldwin
Author: jhb Date: Thu Nov 15 22:47:47 2018 New Revision: 340465 URL: https://svnweb.freebsd.org/changeset/base/340465 Log: Use sbsndptr_adv() instead of sbsndptr() for TOE TLS. For TOE TLS, we just want to advance the send pointer to skip over the record just sent to the TOE. The

svn commit: r340466 - in head/sys/dev/cxgbe: . tom

2018-11-15 Thread John Baldwin
Author: jhb Date: Thu Nov 15 23:00:30 2018 New Revision: 340466 URL: https://svnweb.freebsd.org/changeset/base/340466 Log: Move the TLS key map into the adapter softc so non-TOE code can use it. Sponsored by: Chelsio Communications Modified: head/sys/dev/cxgbe/adapter.h

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

2018-11-15 Thread John Baldwin
Author: jhb Date: Thu Nov 15 23:10:46 2018 New Revision: 340468 URL: https://svnweb.freebsd.org/changeset/base/340468 Log: Change the quantum for TLS key addresses to 32 bytes. The addresses passed when reading and writing keys are always shifted right by 5 as the memory locations are

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

2018-11-15 Thread John Baldwin
Author: jhb Date: Thu Nov 15 23:31:04 2018 New Revision: 340469 URL: https://svnweb.freebsd.org/changeset/base/340469 Log: Remove bogus roundup2() of the key programming work request header. The key context is always placed immediately after the work request header. The total work

svn commit: r340467 - head/sys/kern

2018-11-15 Thread Mark Johnston
Author: markj Date: Thu Nov 15 23:02:59 2018 New Revision: 340467 URL: https://svnweb.freebsd.org/changeset/base/340467 Log: Remove mostly-useless proc provider probes. For some reason the proc UMA zone's ctor, dtor and init functions are instrumented, but these functions are always

svn commit: r340472 - in head: lib/libc/amd64/string sys/amd64/amd64

2018-11-15 Thread Mateusz Guzik
Author: mjg Date: Fri Nov 16 00:44:22 2018 New Revision: 340472 URL: https://svnweb.freebsd.org/changeset/base/340472 Log: amd64: handle small memset buffers with overlapping stores Instead of jumping to locations which store the exact number of bytes, use displacement to move the

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

2018-11-15 Thread John Baldwin
Author: jhb Date: Fri Nov 16 01:27:24 2018 New Revision: 340473 URL: https://svnweb.freebsd.org/changeset/base/340473 Log: Restore the header to fix build of cxgbe(4) TOM. vmem's are not just used for TLS memory in TOM and the #include actually predates the TLS code so should not have

svn commit: r340474 - head/sys/net/altq

2018-11-15 Thread Mike Karels
Author: karels Date: Fri Nov 16 03:42:29 2018 New Revision: 340474 URL: https://svnweb.freebsd.org/changeset/base/340474 Log: Fix flags collision causing inability to enable CBQ in ALTQ The CBQ BORROW flag conflicts with the RMCF_CODEL flag; the two sets of definitions actually define

svn commit: r340460 - in head/sys/x86: include x86 xen

2018-11-15 Thread John Baldwin
Author: jhb Date: Thu Nov 15 18:37:41 2018 New Revision: 340460 URL: https://svnweb.freebsd.org/changeset/base/340460 Log: Convert the number of MSI IRQs on x86 from a constant to a tunable. The number of MSI IRQs still defaults to 512, but it can now be changed at boot time via the