aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Raise the watchdog timer interval to 2 ticks, there by guaranteeingDavid C Somayajulu2017-07-194-5/+14
| | | | | | | | | | | that it fires between 1ms and 2ms. ` Treat two consecutive occurrences of Heartbeat failures as a legitimate Heartbeat failure MFC after:3 days Notes: svn path=/head/; revision=321233
* Disable stack growth when accessed by AIO daemons.Konstantin Belousov2017-07-191-1/+8
| | | | | | | | | | | | | | | Commit message for r321173 incorrectly stated that the change disables automatic stack growth from the AIO daemons contexts, with explanation that this is currently prevents applying wrong resource limits. Fix this by actually disabling the growth. Noted by: alc Reviewed by: alc, jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=321230
* Allow matches of truncated version strings.Mark Johnston2017-07-191-3/+5
| | | | | | | | | | | | Long objdir paths make it easy to hit the version string length limit in kernel dump headers. The build number and timestamp are unlikely to be truncated and ought to be sufficient to protect against false positives. Discussed with: jhb MFC after: 1 week Notes: svn path=/head/; revision=321228
* Use more flexible expression for replacing t_diff inEnji Cooper2017-07-191-1/+1
| | | | | | | | | | | contrib/netbsd-tests/usr.bin/diff/t_diff.sh with the name of the script via `basename $0`. This was a change I forgot to port over from ^/head/gnu/usr.bin/diff/tests/Makefile@r272787. Notes: svn path=/head/; revision=321227
* bsdinstall: improve checksum mismatch error for snapshotsEd Maste2017-07-191-2/+10
| | | | | | | | | | | | | | | The usual case of a mismatched checksum for installer snapshots (e.g., -CURRENT, -ALPHA*) is that a newer snapshot has been built and the old install sets have been replaced. Provide a specific error message for checksum mismatches there that suggests looking for a newer snapshot. Submitted by: Guangyuan Yang <yzgyyang@outlook.com> Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D11641 Notes: svn path=/head/; revision=321226
* zfs: Fix a typo in the delay_min_dirty_percent sysctl descriptionEd Maste2017-07-191-1/+1
| | | | | | | | | | | | | The description is FreeBSD-specific and was added in r266497 to fix PR189865. PR: 220825 Submitted by: Fabian Keil Obtained from: ElectroBSD MFC after: 1 week Notes: svn path=/head/; revision=321218
* Remove unused function swap_pager_isswapped().Konstantin Belousov2017-07-192-38/+0
| | | | | | | | | Noted by: alc Sponsored by: The FreeBSD Foundation MFC after: 1 week Notes: svn path=/head/; revision=321217
* Update targets/pseudo/tests/Makefile.depend after recent additions/subtractionsEnji Cooper2017-07-191-1/+15
| | | | | | | | | | from the FreeBSD test suite. MFC after: 3 days MFC with: r316603 Notes: svn path=/head/; revision=321214
* Clean up :coredump_phnumEnji Cooper2017-07-191-15/+11
| | | | | | | | | | | | | - Use "atf_check -x 'cmd1 | cmd2'" instead of "cmd1 | atf_check cmd2". The two forms are idiomatically similar, but subtly different in the sense of what program invokes the other, and there could be unwanted side effects of the latter idiom dealing with forking, pipes, etc. - Remove chmod and instead source coredump_phnum_restore_state.sh directly. This avoids the need to check the result of the chmod call. - Fix indentation in an if-block (4 column space indentation -> hard tab). Notes: svn path=/head/; revision=321211
* Remove expected failure for :coredump_phnumEnji Cooper2017-07-191-2/+0
| | | | | | | | | | | | | | | The testcase no longer fails on ^/head because readelf has established parity with binutils' copy of readelf. This issue is not seen on Jenkins because `test_suites.FreeBSD.allow_sysctl_side_effects` isn't set in kyua.conf on the CI host, i.e., the test is skipped. PR: 215019 Tested with: binutils (amd64-binutils-2.28,1); elftoolchain (r3561M) Notes: svn path=/head/; revision=321210
* Fix spurious timeouts on commands sent to mps(4) and mpr(4) controllers.Kenneth D. Merry2017-07-192-8/+30
| | | | | | | | | | | | | | | | | mps_wait_command() and mpr_wait_command() were using getmicrotime() to determine elapsed time when checking for a timeout in polled mode. getmicrotime() isn't guaranteed to monotonically increase, and that caused spurious timeouts occasionally. Switch to using getmicrouptime(), which does increase monotonically. This fixes the spurious timeouts in my test case. Reviewed by: slm, scottl MFC after: 3 days Sponsored by: Spectra Logic Notes: svn path=/head/; revision=321207
* Remove dead code that was killed by r320975Alan Somers2017-07-191-9/+4
| | | | | | | | | | | Reported by: Coverity CID: 1377977 MFC after: 15 days X-MFC-With: 320975 Sponsored by: Spectra Logic Corp Notes: svn path=/head/; revision=321206
* Avoid shadowed variables.Michael Tuexen2017-07-191-4/+4
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=321205
* Use memset/memcpy instead of bzero/bcopy.Michael Tuexen2017-07-197-59/+59
| | | | | | | | | | Just use one variant instead of both. Use the memset/memcpy ones since they cause less problems in crossplatform deployment. MFC after: 1 week Notes: svn path=/head/; revision=321204
* Add HPE FlexFabric 10Gb 4-port 536FLR-T device id to the bxe(4) driver.Andrey V. Elsukov2017-07-192-0/+7
| | | | | | | | | Tested by: David Miguel Almas <dmalmas gmail com> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D11478 Notes: svn path=/head/; revision=321203
* enable pidfile tests on arm64Ed Maste2017-07-191-2/+0
| | | | | | | | | | | Pidfile tests were disabled on arm64 (in r286863) because they hung. They have been fixed (r306098) and so can be enabled now. PR: 202304 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=321201
* Fix the accounting and add code to detect errors in accounting.Michael Tuexen2017-07-194-140/+292
| | | | | | | | Joint work with rrs@ MFC after: 1 week Notes: svn path=/head/; revision=321197
* Rename vfs.nfsd.enable_uidtostring to vfs.nfs.enable_uidtostring.Edward Tomasz Napierala2017-07-192-6/+7
| | | | | | | | | | | | | It applies to both NFS client and NFS server, and is useful for both. This is different from vfs.nfsd.enable_stringtouid, which is specific to server side. Reviewed by: rmacklem@ MFC after: 2 weeks Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=321196
* cxgbe/t4_tom: Log more details about the newly ESTABLISHED tid to theNavdeep Parhar2017-07-191-2/+2
| | | | | | | | | trace buffer. MFC after: 3 days Notes: svn path=/head/; revision=321179
* bsdinstall: remove EOL whitespaceEd Maste2017-07-187-9/+9
| | | | Notes: svn path=/head/; revision=321178
* Remove special handling for 'disk*.h'John Baldwin2017-07-181-3/+1
| | | | | | | | | | | This was originally added so that only one of diskmbr.h or diskpc98.h was chosen and is no longer needed after PC98's removal. However, the special handling was also broken as it effectively prevented the decoding of ioctls declared in other headers such as <sys/disk.h> or <sys/disklabel.h>. Notes: svn path=/head/; revision=321176
* Convert assertion that only vmspace owner grows the stack, into aKonstantin Belousov2017-07-181-1/+2
| | | | | | | | | | | | | | | | | | | | | check blocking grow from other processes accesses. Debugger may access stack grow area with ptrace(2). In this case, real state of the process is to not have the stack grown, which provides more accurate inspection. Technical reason to avoid the grow is to avoid applying wrong process (debugger) stack limit. This change also has a consequence of making aio workers accesses past the bottom of stacks into EFAULT, arguably the situation is a programmers mistake. Reported by: jhb Discussed with: alc, jhb Sponsored by: The FreeBSD Foundation MFC after: 3 days Notes: svn path=/head/; revision=321173
* Allwinner EHCI: Do not fail if we cannot get a phyEmmanuel Vadot2017-07-181-13/+6
| | | | | | | | | | | | If we cannot get a phy, do not detach the driver, some boards have phy always enabled and not exposed. While here do not release the clocks if we fails as we release them in a10_ehci_detach. Tested-on: OrangePi-One Notes: svn path=/head/; revision=321172
* sh: Remove broken #ifdef NOHACK code (related to sh -c).Jilles Tjoelker2017-07-181-7/+2
| | | | | | | | | | | Apart from the fact that subtle syntactic changes make a poor compile-time option, the NOHACK case has been obviously broken since it was added, because it uses q uninitialized if (*p != '\0'). No functional change is intended. Notes: svn path=/head/; revision=321171
* Remove unnecessary make logic added in r319339Enji Cooper2017-07-181-4/+0
| | | | | | | | | This makes the change cleaner and easier to backport to ^/stable/10. MFC after: now Notes: svn path=/head/; revision=321138
* Add support for passing FPU_KERN_NOCTX to fpu_kern_enter on arm64. ThisAndrew Turner2017-07-183-12/+45
| | | | | | | | | will be used to call into UEFI from the kernel. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=321131
* ipfw_netflow: Add support for FIBEmmanuel Vadot2017-07-182-5/+10
| | | | | | | | | | | If ipfw_netflow_fib, the ipfw rule will only match packets in that FIB. While here correct some value in rc.conf(5) to be int and not str. Sponsored by: Gandi.net Notes: svn path=/head/; revision=321128
* fix a regression in r320452, ZFS ABD importAndriy Gapon2017-07-181-0/+8
| | | | | | | | | | | | | | | | | | I overlooked the fact that vdev_op_io_done hook is called even if the actual I/O is skipped, for example, in the case of a missing vdev. Arguably, this could be considered an issue in the zio pipeline engine, but for now I am adding defensive code to check for io_bp being NULL along with assertions that that happens only when it can be really expected. PR: 220691 Reported by: peter, cy Tested by: cy MFC after: 1 week X-MFC with: r320156, r320452 Notes: svn path=/head/; revision=321111
* Fix whitespace regression accidentally checked in via ^/head@r280149Enji Cooper2017-07-181-1/+1
| | | | | | | MFC after: now Notes: svn path=/head/; revision=321109
* qlnx: gcc build errorsRyan Libby2017-07-185-16/+8
| | | | | | | | | | | | | | Propagate warning flags from kern.opts.mk and then fix minor -Werror issues when building with gcc from -Wredundant-decls, -Wnested-externs, -Wuninitialized. Reviewed by: davidcs Approved by: markj (mentor) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D11413 Notes: svn path=/head/; revision=321106
* cxgbetool(8): Add loadboot and loadboot-cfg subcommands to install orNavdeep Parhar2017-07-181-0/+109
| | | | | | | | | | remove bootrom and boot config. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=321105
* Make ZFS not crash on mount on 32-bit systemsJustin Hibbits2017-07-181-1/+1
| | | | | | | | | | ZPL_VERSION is unsigned long long, not an int. With this change, a zpool can be created on a 32-bit system (tested on powerpcspe) and mounted correctly. Reviewed by: allanjude Notes: svn path=/head/; revision=321104
* cxgbe(4): New ioctls to flash bootrom and boot config to the card.Navdeep Parhar2017-07-182-0/+100
| | | | | | | | MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=321103
* Tidy up before making another round of functional changes: Remove end-Alan Cox2017-07-171-103/+50
| | | | | | | | | | | | of-line whitespace, remove excessive whitespace and blank lines, remove dead code, follow our standard style for function definitions, and correct grammatical and factual errors in some of the comments. Submitted by: Doug Moore <dougm@rice.edu> MFC after: 1 week Notes: svn path=/head/; revision=321102
* [iwm] actually use the new rxon function now.Adrian Chadd2017-07-171-6/+1
| | | | | | | | | | It turns out the /next/ dragonflybsd git actually uses the scan channel list, so just kick this along to make the next commit easier. Obtained from: dragonflybsd.git 53a009d6f66108b40d622ed90ea95eba5c0e5432 Notes: svn path=/head/; revision=321101
* [iwm] if_iwm - Factor out and improve iwm_mvm_scan_rxon_flags() in ↵Adrian Chadd2017-07-171-6/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | if_iwm_scan.c. From the original commit: == * Actually look at the first channel in the list. If it's a 2.4GHz channel, set IWM_PHY_BAND_24 flag. The IWM_PHY_BAND_5 flag is 0 anyway, so we don't need to look further. * While there factor out the iwm_mvm_rrm_scan_needed() tlv capability check. Taken-From: Linux iwlwifi == However, this only really does the latter. The sc_ic channel list isn't the scan channel list, it's the /whole list/ for the set of active channels, so I don't know what the right thing to do is here. So I'll commit this as an intermediary commit and we'll have to revisit whether to finish the refactor as-is. Tested: * Intel 7260, STA mode Obtained from: dragonflybsd.git 53a009d6f66108b40d622ed90ea95eba5c0e5432 Notes: svn path=/head/; revision=321100
* Add regression tests for bugs 220459 and 220398Alan Somers2017-07-172-0/+148
| | | | | | | | | | | | | | | Bug 220398 - lio_listio(2) never sends asynchronous notification if nent==0 Bug 220459 - lio_listio(2) doesn't support SIGEV_THREAD PR: 220459 PR: 220398 Reviewed by: cem, jhb MFC after: 3 weeks Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D11470 Notes: svn path=/head/; revision=321082
* Sort the tests alphabetically before adding them to the KyuafilesEnji Cooper2017-07-171-0/+4
| | | | | | | | | | This is being done to aid in debugging test runs, in the event the output shifts due to refactored Makefiles, added tests, etc. MFC after: 1 month Notes: svn path=/head/; revision=321081
* Expose the ILP32/LP64 programming environments based onEnji Cooper2017-07-171-2/+2
| | | | | | | | | | | | | | | | | | | __ILP32__/__LP64__ instead of by architecture. The list was incomplete (previous commits purged invalid architectures, like __alpha__, but failed to add new ones). It's best to base the symbol presence on whether or not the architecture is ILP32 / LP64 capable, per the compiler. This fixes the ILP32/LP64 program environments on some architectures like arm64, and by proxy fixes the tests on those architectures. MFC after: 1 month Reviewed by: no one (timed out on feedback from imp) Differential Revision: D10787 Notes: svn path=/head/; revision=321080
* Add tests that exercise -q, like -rq and add tests that test -q like -NrqEnji Cooper2017-07-171-2/+15
| | | | | | | | MFC after: 2 months MFC with: r321076, r321077, r321078 Notes: svn path=/head/; revision=321079
* Fix exit status with -rq when there is a file in one directory but not another,Enji Cooper2017-07-171-2/+6
| | | | | | | | | | | | | | | | | | i.e., when print_only is called. Prior to this change, -rq was always returning 0. After this change it will return 1 if there is a difference between two directories. This fixes compatibility with GNU diff and unbreaks backwards compatibility expectations. Found when trying to extend diff_test:brief_format_test. MFC after: 2 months MFC with: r321076, r321077 Notes: svn path=/head/; revision=321078
* Add some tests for brief (--brief/-q) formatEnji Cooper2017-07-171-0/+19
| | | | | | | | MFC after: 2 months MFC with: r321076 Notes: svn path=/head/; revision=321077
* Don't emit "diff: diff <options> arguments" when diffing files ifEnji Cooper2017-07-171-1/+1
| | | | | | | | | | | | | | -q is specified. This improves compatibility with GNU diff. Found by accident with `diff -Nrq /usr/tests /usr/tests.new | grep Kyuafile`. MFC after: 2 months Relnotes: yes Notes: svn path=/head/; revision=321076
* Set the current vnet pointer in the socket buffer AIO handler.John Baldwin2017-07-171-0/+2
| | | | | | | | | | | This fixes panics when using AIO under VIMAGE. Reported by: kp MFC after: 3 days Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=321075
* ipfw_netflow: add +ipfw_netflow_enable="NO" to defaults/rc.conf and documentEmmanuel Vadot2017-07-172-0/+34
| | | | | | | | | | usage in rc.conf(5) Reported by: markj Sponsored by: Gandi.net Notes: svn path=/head/; revision=321072
* cxgbe(4): Various link/media related improvements.Navdeep Parhar2017-07-174-196/+276
| | | | | | | | | | | | | | | | | | | | | | | | - Deal with changes to port_type, and not just port_mod when a transceiver is changed. This fixes hot swapping of transceivers of different types (QSFP+ or QSA or QSFP28 in a QSFP28 port, SFP+ or SFP28 in a SFP28 port, etc.). - Always refresh media information for ifconfig if the port is down. The firmware does not generate tranceiver-change interrupts unless at least one VI is enabled on the physical port. Before this change ifconfig diplayed potentially stale information for ports that were administratively down. - Always recalculate and reapply L1 config on a transceiver change. - Display PAUSE settings in ifconfig. The driver sysctls for this continue to work as well. MFC after: 2 weeks Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=321063
* Minor optimization: instead of converting between days and years using loopsIan Lepore2017-07-161-4/+23
| | | | | | | | | | | | | | | | | that start in 1970, assume most conversions are going to be for recent dates and use a precomputed number of days through the end of 2016. This is a do-over of r320997, hopefully this time with 100% more workiness. The first attempt had an off-by-one error, but instead of just adding another mysterious +1 adjustment, this rearranges the relationship between recent_base_year and recent_base_days so that the latter is the number of days that occurred before the start of the associated year (instead of the count thru the end of that year). This makes the recent_base stuff work more like the original loop logic that didn't need any +1 adjustments. Notes: svn path=/head/; revision=321048
* readelf: correct printing of DT_FILTER and DT_AUXILIARY valuesEd Maste2017-07-161-11/+12
| | | | | | | | | | | | Previously these were shown only for MIPS objects. Obtained from: ELF Tool Chain r3564 MFC after: 1 week MFC with: r321045 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=321046
* readelf: fix printing of DT_FILTER and some other DT_* valuesEd Maste2017-07-161-78/+76
| | | | | | | | | | | Some non-processor-specific DT_* values overlap the range DT_LOPROC to DT_HIPROC. Handle common ones first, then the processor-specific ones. Obtained from: ELF Tool Chain r3563 Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=321045
* Remove write-only variable.Konstantin Belousov2017-07-161-3/+0
| | | | | | | | Tested by: pho Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=321041