aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Implement LOCKSTAT_OOL_PROFILE_ENABLEDMateusz Guzik2017-02-082-6/+9
| | | | | | | | For use in uninlined locking primitives to decide whether lockstat or profiling needs to be taken care of. Notes: svn path=/head/; revision=313453
* loader: possible NULL pointer dereference in bcache.cToomas Soome2017-02-081-6/+5
| | | | | | | | | | | | | | Coverity detected the possible NULL pointer dereference case. Also updated comment as was suggested in illumos review. CID: 1371008 Reported by: Coverity Reviewed by: allanjude Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D9496 Notes: svn path=/head/; revision=313451
* Trim trailing whitespace (mostly introduced in r313407).John Baldwin2017-02-082-3/+3
| | | | | | | Sponsored by: DARPA / AFRL Notes: svn path=/head/; revision=313449
* bsdinstall: Make sure chroot filesystems are umounted after useRenato Botelho2017-02-081-3/+4
| | | | | | | | | | | | | | | | * DISTDIR_IS_UNIONFS is set every time BSDINSTALL_DISTDIR is mounted inside BSDINSTALL_CHROOT. Use this flag to decide if it needs to be umounted * BSDINSTALL_CHROOT/dev is mounted when 'bsdinstall mount' is called, there is no need to mount it again when user goes to shell after installation Reviewed by: allanjude Obtained from: pfSense MFC after: 1 week Sponsored by: Rubicon Communications (Netgate) Differential Revision: https://reviews.freebsd.org/D8573 Notes: svn path=/head/; revision=313448
* Ensure the idle thread's loop services interrupts in a timely way whenJonathan T. Looney2017-02-082-0/+11
| | | | | | | | | | | | | | | | | | | | using the ACPI C1/mwait sleep method. Previously, the mwait instruction would return when an interrupt was pending; however, the idle loop did not actually enable interrupts when this occurred. This led to a situation where the idle loop could quickly spin through the C1/mwait sleep method a number of times when an interrupt was pending. (Eventually, the situation corrected itself when something other than an interrupt triggered the idle loop to either enable interrupts or schedule another thread.) Reviewed by: kib, imp (earlier version) Input from: jhb MFC after: 1 week Sponsored by: Netflix Notes: svn path=/head/; revision=313447
* loader: possible NULL pointer dereference in efipart.cToomas Soome2017-02-081-1/+3
| | | | | | | | | | | | | | | | | Fix bugs found by Coverity in efipart.c. The Issue is that efi_devpath_last_node() can return NULL pointer, and therefore we should check for it. In real life we really do not expect to see it to happen, so we will just error out from the test. CID: 1371004 Reported by: Coverity Reviewed by: allanjude Approved by: allanjude (mentor) Differential Revision: https://reviews.freebsd.org/D9490 Notes: svn path=/head/; revision=313442
* Merge content from ^/projects/netbsd-tests-upstream-01-2017 into ^/headEnji Cooper2017-02-08212-2177/+11264
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The primary end-goal of this drop is ease future merges with NetBSD and collaborate further with the NetBSD project. The goal was (largely, not completely as some items are still oustanding in the NetBSD GNATS system) achieved by doing the following: - Pushing as many changes required to port contrib/netbsd-tests back to NetBSD as possible, then pull the upstream applied changes back in to FreeBSD. - Diff reduce with upstream where possible by: -- Improving libnetbsd header, etc compat glue. -- Using _SED variables to modify test scripts on the fly for items that could not be upstreamed to NetBSD. As a bonus for this work, this change also introduces testcases for uniq(1). Many thanks to Christos for working with me to get many of the changes back into the NetBSD project. In collaboration with: Christos Zoulas <christos@netbsd.org> MFC after: 1 month Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313439
| * MFhead@r313433Enji Cooper2017-02-0823-87/+123463
| |\ | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313434
| * \ MFhead@r313404Enji Cooper2017-02-074-6/+6
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313406
| * | | Remove placeholder compat header for stdio.hEnji Cooper2017-02-071-35/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the end, dealing with fparseln was more bikeshed worthy than I anticipated, and polling stdio.h with libutil.h caused me more grief than necessary. Keeping the compat header around for no reason other than include_next'ing the stdio.h header in FreeBSD makes no sense. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313405
| * | | Oops... put the atf_tc_expect_fail in the testcase definition, not theEnji Cooper2017-02-071-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | test suite definition Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313402
| * | | Expect the t_precision long double checks to fail on FreeBSD/i386Enji Cooper2017-02-071-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some potential issues with the test (as brd@ has pointed out elsewhere) with precision, etc not being set before the test, but as always, more research is required. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313400
| * | | MFhead@r313398Enji Cooper2017-02-0724-211/+308
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313399
| * | | | Add #else case in run(..) to fix test on non-{amd64,arm64,mips} afterEnji Cooper2017-02-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recent refactoring to the test Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313382
| * | | | MFhead@r313380Enji Cooper2017-02-075-25/+32
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313381
| * | | | | Expect :hsearch_r_nonexistent to fail on FreeBSDEnji Cooper2017-02-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The docs and the behavior mismatch; as noted in the bug, the behavior for hsearch_r matches Linux, whereas the docs seem to match NetBSD requirements wise. PR: 216872 Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313375
| * | | | | Uncomment more of the hsearch_r testcasesEnji Cooper2017-02-071-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Call hdestroy/hdestroy_r on FreeBSD instead of hdestroy(1?)(_r). All but hdestroy_r_nonexistent pass as-is. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313372
| * | | | | MFhead@r313360Enji Cooper2017-02-07188-13611/+16966
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313361
| * \ \ \ \ \ MFhead@r313266Enji Cooper2017-02-0523-490/+600
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313267
| * \ \ \ \ \ \ Merge in changes from ^/vendor/NetBSD/tests/dist@r313245Enji Cooper2017-02-047-1057/+2399
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Diff reduce lib/libm/t_pow.c per upstream changes Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313247
| | * | | | | | | Pull in some minor updates to netbsd-tests from upstreamvendor/NetBSD/tests/02.04.2017_10.12Enji Cooper2017-02-047-1053/+2399
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/vendor/NetBSD/tests/dist/; revision=313245 svn path=/vendor/NetBSD/tests/02.04.2017_10.12/; revision=313246; tag=vendor/NetBSD/tests/02.04.2017_10.12
| * | | | | | | | MFhead@r313243Enji Cooper2017-02-042435-75270/+54611
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=313244
| * | | | | | | | | Add back #else block accidentally removed in r312145Enji Cooper2017-01-181-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the build with !(amd64|arm64|mips*) Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312376
| * | | | | | | | | Merge ^/vendor/NetBSD/tests/dist@r312370Enji Cooper2017-01-182-6/+224
| |\ \ \ \ \ \ \ \ \ | | | |/ / / / / / / | | |/| | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312372
| | * | | | | | | | More test updates from upstreamvendor/NetBSD/tests/01.17.2017_21.34Enji Cooper2017-01-182-6/+224
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nothing much to note -- this looks like a good place to stop Notes: svn path=/vendor/NetBSD/tests/dist/; revision=312370 svn path=/vendor/NetBSD/tests/01.17.2017_21.34/; revision=312371; tag=vendor/NetBSD/tests/01.17.2017_21.34
| * | | | | | | | | Reintroduce libutil.h #include for FreeBSD only for fparselnEnji Cooper2017-01-162-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312313
| * | | | | | | | | Remove util.h (libutil.h) pollution from stdio.h compat headerEnji Cooper2017-01-161-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introducing libutil.h causes grief later because hexdump(3) in FreeBSD and contrib/netbsd-tests/lib/libc/db/h_hash.c conflict. I'm working adapting h_hash.c, but for now, unbreak the build in the easiest way possible. Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312312
| * | | | | | | | | Clarify #includes for hexdump vs sbuf_hexdumpEnji Cooper2017-01-161-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312310
| * | | | | | | | | MFhead@r312305Enji Cooper2017-01-16111-582/+1620
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312306
| * | | | | | | | | | Remove explicit pthread_np.h #include, per change in libnetbsd@r312303Enji Cooper2017-01-161-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/netbsd-tests-upstream-01-2017/; revision=312304
* | | | | | | | | | | Clean up trailing and leading whitespace for variables to make itEnji Cooper2017-02-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | consistent with the rest of the file and style.Makefile(9) a bit more MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313438
* | | | | | | | | | | Create link from hexdump(3) to sbuf_hexdump(9) as the manpage describesEnji Cooper2017-02-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sbuf_hexdump(9)'s behavior MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313437
* | | | | | | | | | | Clarify #includes for hexdump(3) vs sbuf_hexdump(9)Enji Cooper2017-02-081-2/+3
| |_|_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | hexdump(3) only requires libutil.h, whereas sbuf_hexdump(9) requires sys/types.h (for ssize_t) and sys/sbuf.h MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=313436
* | | | | | | | | | [iwm] Remove 1s delay after fw loading. Can't reproduce issues on AC8260.Adrian Chadd2017-02-081-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 1s delay was added in the update to version 16 fw, where Family 8000 support was added. Obtained from: DragonflyBSD commit bb480ca679a7ea530bdca6e41082d5755e9751dc Notes: svn path=/head/; revision=313430
* | | | | | | | | | [iwm] SCAN_ABORT_UMAC response doesn't use a wide idAdrian Chadd2017-02-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Obtained from: DragonflyBSD commit cef47a9cbb0a3ce5f18369fed9403d2764884bc2 Notes: svn path=/head/; revision=313429
* | | | | | | | | | [iwm] back this out to version 16 for now.Adrian Chadd2017-02-082-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since I'm manually playing the dragonflybsd iwm/iwmfw commits forward, I'm .. well, this. This right here. Notes: svn path=/head/; revision=313428
* | | | | | | | | | [iwm] Recognize the IWM_UCODE_TLV_FW_MEM_SEG firmware section type.Adrian Chadd2017-02-082-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Will be needed for loading version 22 of 7265D firmware. Obtained from: DragonflyBSD commit 1d244c8133cf15d00d46836bc48958188cf9f510 Notes: svn path=/head/; revision=313427
* | | | | | | | | | [iwm] bump firmware to version 17.Adrian Chadd2017-02-084-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=313426
* | | | | | | | | | [iwm] add version 17 firmware.Adrian Chadd2017-02-081-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=313425
* | | | | | | | | | [iwm] add this 3 megabyte firmware image.Adrian Chadd2017-02-081-0/+53122
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=313423
* | | | | | | | | | [iwm] add version 17 firmware.Adrian Chadd2017-02-081-0/+26235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=313421
* | | | | | | | | | [iwm] add version 17 firmware.Adrian Chadd2017-02-081-0/+23322
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=313420
* | | | | | | | | | [iwm] add version 17 firmware.Adrian Chadd2017-02-081-0/+20409
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/head/; revision=313419
* | | | | | | | | | [iwm] Recognize IWM_DTS_MEASUREMENT_NOTIF_WIDE notification.Adrian Chadd2017-02-082-1/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add the command groups enum, and the iwm_phy_ops_subcmd_ids enum to if_iwmreg.h definitions. * The IWM_DTS_MEASUREMENT_NOTIF_WIDE notification will be generated by version 17 firmware. Taken-From: Linux iwlwifi Obtained from: DragonflyBSD commit 4d8d6f9def2ffb60aaf2d88f72f069a96c0b4e3f Notes: svn path=/head/; revision=313418
* | | | | | | | | | [iwm] Very basic DTS thermal sensor support (prints temp as debug msg).Adrian Chadd2017-02-083-1/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Adds IWM_DEBUG_TEMP debug message type, for printing messages related to temperature sensors and thermal/TDP infos. * The firmware regularly sends us DTS measurement notifications, so just print the temperature value as a debugging message. (Adrian's addition): * Eventually this can be used by the driver to limit transmit rate / power to try and do some thermal throttling. Obtained from: DragonflyBSD commit efb7d4eb5c3140889a8880e12fd83c7bbfd0059d Notes: svn path=/head/; revision=313417
* | | | | | | | | | [iwm] Only for family 7000 power-down busmaster DMA clocks when stopping.Adrian Chadd2017-02-081-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Taken-From: Linux iwlwifi Obtained from: DragonflyBSD commit 4c45994fcc77373ae2fb0901db15368c9731f641 Notes: svn path=/head/; revision=313416
* | | | | | | | | | [iwm] Implement apmg_wake_up_wa workaround properly for 7000 family.Adrian Chadd2017-02-085-14/+86
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add iwm_pcie_set_cmd_in_flight() and iwm_pcie_clear_cmd_in_flight() helper methods. * Use ring->queued tracking in the command queue to set/clear the cmd_hold_nic_awake bit at the right points. Taken-From: Linux iwlwifi Obtained from: DragonflyBSD commit ce43f57f5308b579ea21e8a5a29969114ba2247d Notes: svn path=/head/; revision=313415
* | | | | | | | | | [iwm] Use iwm_mvm_scan_stop_wait to properly abort scans.Adrian Chadd2017-02-082-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add IWM_FLAG_SCAN_RUNNING to sc->sc_flags to track whether the firmware is currently running a scan, in order to decide wheter iwm_scan_end needs to abort a running scan. * In iwm_scan_end, if the scan is still running, we now abort it, in order to keep the firmware scanning state in sync. * Try to make things a bit simpler, by reacting on the IWM_SCAN_OFFLOAD_COMPLETE and IWM_SCAN_COMPLETE_UMAC notifications, instead of IWM_SCAN_ITERATION_COMPLETE and IWM_SCAN_ITERATION_COMPLETE_UMAC. This should be fine since we always only tell the firmware to do a single scan iteration anyway. Obtained from: DragonflyBSD commit 1f249c981c4e89e7cde1836a75b61cac36dc7ac5 Notes: svn path=/head/; revision=313414
* | | | | | | | | | [iwm] Add scan abort functions, to properly cancel a running scan.Adrian Chadd2017-02-083-0/+87
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Uses the notification wait api to wait for the corresponding scan complete notification after sending the abort command. Taken-From: Linux iwlwifi Obtained from: DragonflyBSD commit b484d09d54301740f036ddf02008117f563960c2 Notes: svn path=/head/; revision=313413
* | | | | | | | | | [iwm] Get rid of iwm_disable_rx_dma, just use iwm_pcie_rx_stop directly.Adrian Chadd2017-02-082-25/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * This also fixes one of many small nic lock handling bugs, and matches iwlwifi's code. Obtained from: DragonflyBSD git 50787d03cd0a0366c9cc4a055bb6977e5f65c85d Notes: svn path=/head/; revision=313412