Re: svn commit: r313322 - in head/sys: conf dev/iwm modules/iwm

2017-02-05 Thread Ed Schouten
Hi Adrian, 2017-02-06 6:27 GMT+01:00 Adrian Chadd : > Modified: head/sys/conf/files > == > --- head/sys/conf/files Mon Feb 6 05:27:05 2017(r313321) > +++ head/sys/conf/files Mon Feb 6

svn commit: r313327 - head/usr.bin/gzip

2017-02-05 Thread Xin LI
Author: delphij Date: Mon Feb 6 07:02:17 2017 New Revision: 313327 URL: https://svnweb.freebsd.org/changeset/base/313327 Log: Reflect actual NetBSD revision we already have. MFC after:3 days Modified: head/usr.bin/gzip/unxz.c Modified: head/usr.bin/gzip/unxz.c

svn commit: r313326 - head/tools/tools/nanobsd/embedded

2017-02-05 Thread Warner Losh
Author: imp Date: Mon Feb 6 06:15:38 2017 New Revision: 313326 URL: https://svnweb.freebsd.org/changeset/base/313326 Log: o Add mkimg to the cross tools, and use the TMPPATH as PATH to pick up mkimg for building on systems like FreeBSD 11.0 that don't have my -a changes. o Set

svn commit: r313325 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 05:35:11 2017 New Revision: 313325 URL: https://svnweb.freebsd.org/changeset/base/313325 Log: [iwm] Use notification wait API to wait for calibration to complete. Tested: * 7260, STA mode (2g, 5g) Obtained from:DragonflyBSD commit

svn commit: r313322 - in head/sys: conf dev/iwm modules/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 05:27:07 2017 New Revision: 313322 URL: https://svnweb.freebsd.org/changeset/base/313322 Log: [iwm] Add implementation of the notification wait api from iwlwifi. Obtained from:Linux iwlwifi Obtained from:DragonflyBSD commit

svn commit: r313318 - in head: share/man/man4 sys/dev/cxgbe

2017-02-05 Thread Navdeep Parhar
Author: np Date: Mon Feb 6 05:19:29 2017 New Revision: 313318 URL: https://svnweb.freebsd.org/changeset/base/313318 Log: cxgbe(4): Allow tunables that control the number of queues to be set to '-n' to tell the driver to create _up to_ 'n' queues if enough cores are available. For

svn commit: r313317 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 05:09:42 2017 New Revision: 313317 URL: https://svnweb.freebsd.org/changeset/base/313317 Log: [iwm] Change 2nd arg of iwm_phy_db_set_section() to struct iwm_rx_packet. * This matches the function declaration in Linux's iwlwifi. Obtained from:

svn commit: r313316 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 05:08:21 2017 New Revision: 313316 URL: https://svnweb.freebsd.org/changeset/base/313316 Log: [iwm] Store paging_mem_size field in firmware image information struct. Obtained from:DragonflyBSD commit a8524cc6c440e5ce9490ba2b0507c99ff6777c6d

svn commit: r313315 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 05:07:15 2017 New Revision: 313315 URL: https://svnweb.freebsd.org/changeset/base/313315 Log: [iwm] Get rid of some gratuitous constant renaming wrt. Linux iwlwifi. * IWM_UCODE_SECT_MAX -> IWM_UCODE_SECTION_MAX * IWM_UCODE_TYPE_* -> IWM_UCODE_* (except

svn commit: r313314 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 05:03:41 2017 New Revision: 313314 URL: https://svnweb.freebsd.org/changeset/base/313314 Log: [iwm] Sync valid_tx_ant and valid_rx_ant mask handling with iwlwifi. * This fixes the phy_cfg field sent in the iwm_send_phy_cfg_cmd() command, which wasn't

svn commit: r313312 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 03:29:50 2017 New Revision: 313312 URL: https://svnweb.freebsd.org/changeset/base/313312 Log: [iwm] Use chipset configuration structs like iwlwifi does. * This makes it a bit easier to factor out common parts for e.g. the 7000 chipset family. * Add

svn commit: r313311 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 03:06:11 2017 New Revision: 313311 URL: https://svnweb.freebsd.org/changeset/base/313311 Log: [iwm] Sync nvm parsing code with Linux iwlwifi. * sc->sc_nvm becomes sc->nvm_data and is now a pointer instead of an inlined struct. * Add sc->eeprom_size

svn commit: r313310 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 02:20:05 2017 New Revision: 313310 URL: https://svnweb.freebsd.org/changeset/base/313310 Log: [iwm] make sure we call iwm_detach_local() only once. Obtained from:DragonflyBSD git ebd4ceab76a6f161362029cbfd08efaedaab0519 Modified:

svn commit: r313309 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 02:14:34 2017 New Revision: 313309 URL: https://svnweb.freebsd.org/changeset/base/313309 Log: [iwm] Sync if_iwm_phy_db code with Linux iwlwifi. Obtained from:Dragonflybsd commit c1019b6bfff36c856f7b4fccbdf3bb13ac27750c Modified:

svn commit: r313308 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 02:01:22 2017 New Revision: 313308 URL: https://svnweb.freebsd.org/changeset/base/313308 Log: [iwm] The HW Revision stepping constants should be in if_iwmreg.h. Obtained from:dragonflybsd 84292f0c38594c462c719c0e59da5908b93aba5f Modified:

svn commit: r313307 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 01:57:59 2017 New Revision: 313307 URL: https://svnweb.freebsd.org/changeset/base/313307 Log: [iwm] TODO for QOS support. Modified: head/sys/dev/iwm/if_iwm_mac_ctxt.c Modified: head/sys/dev/iwm/if_iwm_mac_ctxt.c

svn commit: r313306 - head/sys/dev/iwm

2017-02-05 Thread Adrian Chadd
Author: adrian Date: Mon Feb 6 01:57:41 2017 New Revision: 313306 URL: https://svnweb.freebsd.org/changeset/base/313306 Log: [iwm] free node reference if rxparams addition fails. Modified: head/sys/dev/iwm/if_iwm.c Modified: head/sys/dev/iwm/if_iwm.c

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-05 Thread Andreas Tobler
On 05.02.17 19:59, Jason Harmening wrote: Actually attaching the patch this time ( gmail client) On Sun, Feb 5, 2017 at 10:58 AM, Jason Harmening > wrote: Hmm, it's a good idea to consider the possibility of a barrier

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-05 Thread Jason Harmening
Actually attaching the patch this time ( gmail client) On Sun, Feb 5, 2017 at 10:58 AM, Jason Harmening wrote: > Hmm, it's a good idea to consider the possibility of a barrier issue. It > wouldn't be the first time we've had such a problem on a weakly-ordered >

Re: svn commit: r313037 - in head/sys: amd64/include kern mips/include net powerpc/include sparc64/include

2017-02-05 Thread Jason Harmening
Hmm, it's a good idea to consider the possibility of a barrier issue. It wouldn't be the first time we've had such a problem on a weakly-ordered architecture. That said, I don't see a problem in this case. smp_rendezvous_cpus() takes a spinlock and then issues atomic_store_rel_int() to ensure

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

2017-02-05 Thread Steven Hartland
On 05/02/2017 15:17, Alexey Dokuchaev wrote: On Sun, Feb 05, 2017 at 04:00:06AM +0100, Mateusz Guzik wrote: For instance, plugging an unused variable, a memory leak, doing a lockless check first etc. are all pretty standard and unless there is something unusual going on (e.g. complicated

svn commit: r313287 - head/sys/dev/usb/serial

2017-02-05 Thread Ian Lepore
Author: ian Date: Sun Feb 5 15:45:31 2017 New Revision: 313287 URL: https://svnweb.freebsd.org/changeset/base/313287 Log: Add tsw_busy support to usb_serial (ucom). The tty layer uses tsw_busy to poll for busy/idle status of the transmitter hardware during close() and tcdrain(). The

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

2017-02-05 Thread Alexey Dokuchaev
On Sun, Feb 05, 2017 at 04:00:06AM +0100, Mateusz Guzik wrote: > For instance, plugging an unused variable, a memory leak, doing a > lockless check first etc. are all pretty standard and unless there is > something unusual going on (e.g. complicated circumstances leading to a > leak) there is not

svn commit: r313285 - in head/sys: amd64/linux amd64/linux32 i386/linux

2017-02-05 Thread Dmitry Chagin
Author: dchagin Date: Sun Feb 5 14:19:19 2017 New Revision: 313285 URL: https://svnweb.freebsd.org/changeset/base/313285 Log: Regen after r313284. MFC after:2 week Modified: head/sys/amd64/linux/linux_proto.h head/sys/amd64/linux/linux_syscall.h

svn commit: r313284 - in head/sys: amd64/linux amd64/linux32 compat/linux i386/linux

2017-02-05 Thread Dmitry Chagin
Author: dchagin Date: Sun Feb 5 14:17:09 2017 New Revision: 313284 URL: https://svnweb.freebsd.org/changeset/base/313284 Log: Update syscall.master to 4.10-rc6. Also fix comments, a typo, and wrong numbering for a few unimplemented syscalls. For 32-bit Linuxulator, socketcall() syscall

svn commit: r313283 - head/sys/compat/linux

2017-02-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Feb 5 14:03:25 2017 New Revision: 313283 URL: https://svnweb.freebsd.org/changeset/base/313283 Log: Fix linux_pipe() and linux_pipe2() to close file descriptors on copyout error. Reviewed by: dchagin MFC after:2 weeks Sponsored by: DARPA, AFRL

svn commit: r313282 - in head/sys: kern sys

2017-02-05 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 13:37:23 2017 New Revision: 313282 URL: https://svnweb.freebsd.org/changeset/base/313282 Log: rwlock: move lockstat handling out of inline primitives See r313275 for details. One difference here is that recursion handling was removed from the fallback

svn commit: r313281 - in head/sys: compat/freebsd32 compat/linux kern sys

2017-02-05 Thread Edward Tomasz Napierala
Author: trasz Date: Sun Feb 5 13:24:54 2017 New Revision: 313281 URL: https://svnweb.freebsd.org/changeset/base/313281 Log: Add kern_cpuset_getaffinity() and kern_cpuset_getaffinity(), and use it in compats instead of their sys_*() counterparts. Reviewed by: kib, jhb, dchagin MFC

Re: svn commit: r312910 - in head: . etc/etc.pc98 etc/rc.d lib/libsysdecode libexec release release/doc release/doc/en_US.ISO8859-1/hardware release/doc/en_US.ISO8859-1/readme release/doc/share/exampl

2017-02-05 Thread TAKAHASHI Yoshihiro
I have decided to remove pc98 support on stable/11 as well after 2 weeks to reduce conflicts between head and stable/11. In article <201701280222.v0s2mfsr022...@repo.freebsd.org> Takahashi Yoshihiro writes: > Author: nyan > Date: Sat Jan 28 02:22:15 2017 > New Revision: 312910

Re: svn commit: r313272 - in head/sys: kern sys

2017-02-05 Thread Mateusz Guzik
On Sun, Feb 05, 2017 at 05:20:29AM +, Mateusz Guzik wrote: > Author: mjg > Date: Sun Feb 5 05:20:29 2017 > New Revision: 313272 > URL: https://svnweb.freebsd.org/changeset/base/313272 > > Log: > sx: uninline slock/sunlock > > Shared locking routines explicitly read the value and test

Re: svn commit: r313275 - in head/sys: kern sys

2017-02-05 Thread Slawa Olhovchenkov
On Sun, Feb 05, 2017 at 11:01:28AM +0100, Mateusz Guzik wrote: > On Sun, Feb 05, 2017 at 01:00:11PM +0300, Slawa Olhovchenkov wrote: > > On Sun, Feb 05, 2017 at 08:04:12AM +, Mateusz Guzik wrote: > > > > > Author: mjg > > > Date: Sun Feb 5 08:04:11 2017 > > > New Revision: 313275 > > > URL:

Re: svn commit: r313275 - in head/sys: kern sys

2017-02-05 Thread Mateusz Guzik
On Sun, Feb 05, 2017 at 01:00:11PM +0300, Slawa Olhovchenkov wrote: > On Sun, Feb 05, 2017 at 08:04:12AM +, Mateusz Guzik wrote: > > > Author: mjg > > Date: Sun Feb 5 08:04:11 2017 > > New Revision: 313275 > > URL: https://svnweb.freebsd.org/changeset/base/313275 > > > > Log: > > mtx:

Re: svn commit: r313275 - in head/sys: kern sys

2017-02-05 Thread Slawa Olhovchenkov
On Sun, Feb 05, 2017 at 08:04:12AM +, Mateusz Guzik wrote: > Author: mjg > Date: Sun Feb 5 08:04:11 2017 > New Revision: 313275 > URL: https://svnweb.freebsd.org/changeset/base/313275 > > Log: > mtx: move lockstat handling out of inline primitives > > Lockstat requires checking if it

svn commit: r313280 - in head/sys: kern sys

2017-02-05 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 09:54:16 2017 New Revision: 313280 URL: https://svnweb.freebsd.org/changeset/base/313280 Log: sx: move lockstat handling out of inline primitives See r313275 for details. Modified: head/sys/kern/kern_sx.c head/sys/sys/sx.h Modified:

svn commit: r313279 - head/sys/kern

2017-02-05 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 09:53:13 2017 New Revision: 313279 URL: https://svnweb.freebsd.org/changeset/base/313279 Log: mtx: fixup r313278, the assignemnt was supposed to go inside the loop Modified: head/sys/kern/kern_mutex.c Modified: head/sys/kern/kern_mutex.c

svn commit: r313278 - head/sys/kern

2017-02-05 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 09:35:17 2017 New Revision: 313278 URL: https://svnweb.freebsd.org/changeset/base/313278 Log: mtx: fix up _mtx_obtain_lock_fetch usage in thread lock Since _mtx_obtain_lock_fetch no longer sets the argument to MTX_UNOWNED, callers have to do it on their own.

svn commit: r313277 - head/usr.bin/sed

2017-02-05 Thread Xin LI
Author: delphij Date: Sun Feb 5 08:51:41 2017 New Revision: 313277 URL: https://svnweb.freebsd.org/changeset/base/313277 Log: Restore r312404: Use S_ISREG instead of manual & (also it's better to compare the result from & and the pattern instead of just assuming it's one bit value).

svn commit: r313276 - head/etc

2017-02-05 Thread Ngie Cooper
Author: ngie Date: Sun Feb 5 08:24:37 2017 New Revision: 313276 URL: https://svnweb.freebsd.org/changeset/base/313276 Log: Use kldload -n when loading if_deqna This fixes if_deqna from being loaded by accident twice if it's already loaded in the kernel. MFC after:1 week

svn commit: r313275 - in head/sys: kern sys

2017-02-05 Thread Mateusz Guzik
Author: mjg Date: Sun Feb 5 08:04:11 2017 New Revision: 313275 URL: https://svnweb.freebsd.org/changeset/base/313275 Log: mtx: move lockstat handling out of inline primitives Lockstat requires checking if it is enabled and if so, calling a 6 argument function. Further, determining