summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC of 328304 and 328382.mckusick2018-02-062-2/+19
| | | | Do not dedup egid (group entry 0)
* MFC r308774: loader: beri_sdcard_disk_print() needs to return int.kevans2018-02-061-1/+1
| | | | | r308434 did change the return type for dv_print callbacks, but the return type for beri_sdcard_disk_print() was left unchanged, causing compile errors.
* MFC r325116,r325515: Stop masking errors during buildenvkevans2018-02-061-2/+9
| | | | | | | | | | | | MFC r325116(imp): Return proper status from buildenv. make buildenv BUILDENV_SHELL=<some command> more useful. Remove '|| true' from the command line so that errors are properly returned. There appears to be no reason for it, and it dates back to the original commit by ru@. MFC r325515 (imp): Note interactive shell errors for make buildenv and add a warning for people tempted to add back the || true to get rid of them.
* MFC r328273 (kevlo): Document how to load nmdm(4) from a kernel module.delphij2018-02-061-1/+13
|
* MFC r342882,r324979,r325115: sys/boot test scriptskevans2018-02-051-0/+65
| | | | | | | | | | | | [Note: arm/armv7 has been removed in the interest of not having a failing architecture from the start] MFC r342882: Create a shell script to build sys/boot on all the architectures. MFC r324979: Do a chdir to SRCTOP/sys/boot before starting the run. MFC r325115: Fix parallel build issues and add MK_ZFS=no case
* MFC r328552vangyzen2018-02-051-2/+3
| | | | | | | | | | | | | | | | | | | | ND6: Set the correct state for new neighbor cache entries Restore state 6. Many of the UNH tests end up exercising this state, where we have a new neighbor cache entry and a new link-layer entry is being created for it. The link-layer address is currently unknown so the initial state of the "llentry" should remain initialized to ND6_LLINFO_NOSTATE so that the ND code will send a solicitation. Setting this to ND6_LLINFO_STALE implies that the link-level entry is valid and can be used (but needs to be refreshed via the Neighbor Unreachability state machine). https://forums.freebsd.org/threads/64287/ Submitted by: Farrell Woods <Farrell_Woods@Dell.com> Reviewed by: mjoras, dab, ae Sponsored by: Dell EMC Differential Revision: https://reviews.freebsd.org/D14059
* MFC r308434, 308827kevans2018-02-0529-164/+344
| | | | | | MFC r308434: Loader paged/pageable data is not always paged. MFC r308827: lsdev device name section headers should be printed by dv_print callback.
* Merge r327951n_hibma2018-02-052-2/+7
| | | | | | Add IDs for Quectel EC25. Submitted by: Samuel Crookes
* MFC r328567:pfg2018-02-051-11/+13
| | | | | | | | | | libedit: sort the Makefile in line with NetBSD's version. NetBSD's libedit has been been cleaned-up considerably so the non-widecharacter version is no longer an option. Re-sorting the Makefile should make it easier for some brave soul trying to update it. No functional change intended.
* MFC r328773:kib2018-02-051-0/+2
| | | | | | | On pageout, in vnode generic pager, for partially dirty page, only clear dirty bits for completely invalid blocks. PR: 225586
* MFC r328770:ae2018-02-051-1/+1
| | | | | | | | | Merge r1.120 from NetBSD: Fix a pretty simple, yet pretty tragic typo: we should return IPPROTO_DONE, not IPPROTO_NONE. With IPPROTO_NONE we will keep parsing the header chain on an mbuf that was already freed. Reported by: Maxime Villard <max at m00nbsd dot net>
* MFC r323683:eadler2018-02-05146-1848/+3231
| | | | MFV r323678: file 5.32
* MFC r304321,304753,304754,306751,316077,316110:kevans2018-02-0520-125/+668
| | | | | | | | | | | SHA512, skein, large block support for loader zfs MFC r304321: Add SHA512, skein, large blocks support for loader zfs. MFC r304753: loader: zio_checksum_verify() must test spa for NULL pointer MFC r304754: r304321 broken bhyve zvol VM bhyveload hang 100% WCPU MFC r306751: Disable loop unrolling in skein for sys/boot MFC r316077: Unbreak compilation with gcc 4.2.1 MFC r316110: Use `-Wno-missing-declarations` with CWARNFLAGS for skein.c
* MFC r328126: correct read-ahead calculations in vfs_bio_getpagesavg2018-02-041-1/+8
|
* MFC r327775: amdsbwd: fix handling of timeout values beyond the supported rangeavg2018-02-041-13/+22
|
* MFC r327726: vmm/svm: contigmalloc of the whole svm_softc is excessiveavg2018-02-042-8/+21
|
* MFC r327911:jhibbits2018-02-041-1/+2
| | | | Replace the PMC class struct copy with an explicit memcpy()
* Remove now-unused variable after r328809emaste2018-02-041-1/+0
|
* MFH r328332:mm2018-02-0331-94/+232
| | | | | | | | | | | | | Sync libarchive with vendor. Relevant vendor changes: PR #893: delete dead ppmd7 alloc callbacks PR #904: Fix archive freeing bug in bsdcat PR #961: Fix ZIP format names PR #962: Don't modify attributes for existing directories when ARCHIVE_EXTRACT_NO_OVERWRITE is set PR #964: Fix -Werror=implicit-fallthrough= for GCC 7 PR #970: zip: Allow backslash as path separator
* MFC r328641: dtc(1): Revert WARNS change from r328173kevans2018-02-031-0/+2
| | | | WARNS > 3 breaks xtoolchain builds to varying degrees. Revert it.
* MFC r328491: MFV r328490: Update libfdt to github:f1879e1kevans2018-02-034-16/+143
| | | | | Pulls in a patch, now upstreamed, from nwhitehorn to add limited read-only support for older (v2 and v3) FDT blobs.
* MFC r303468 (by imp):mav2018-02-025-50/+217
| | | | | | | | | Move protocol specific stuff into a linker set object that's per-protocol. This reduces the number scsi symbols references by cam_xpt significantly, and eliminates all ata / nvme symbols. There's still some NVME / ATA specific code for dealing with XPT_NVME_IO and XPT_ATA_IO respectively, and a bunch of scsi-specific code, but this is progress.
* MFC r303467 (by imp):mav2018-02-025-52/+80
| | | | | | | | Switch to linker sets to find the xport callback object. This eliminates the need to special case everything in cam_xpt for new transports. It is now a failure to not have a transport object when registering the bus as well. You can still, however, create a transport that's unspecified (XPT_)
* MFC geli test suite changesasomers2018-02-0228-1626/+1379
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | MFC r306188, r306395, r327346-r327347, r327352-r327353, r327662, r327666, r327682-r327683, r327685 r306188 by br: Use bsdlabel as we don't have hardlink disklabel -> bsdlabel on some platforms. Reviewed by: ngie Sponsored by: DARPA, AFRL Sponsored by: HEIF5 Differential Revision: https://reviews.freebsd.org/D7968 r306395 by br: Increase timeouts for geli tests. It takes 2-3x more time to proceed the tests on MIPS64EB in QEMU. Sponsored by: DARPA, AFRL Sponsored by: HEIF5 r327346: Fix potential TOCTTOU bug in the geli tests This change mostly reverts r293436, which introduced the bug due to a belief that geli(8) would allocate md(4) devices by itself. However, that belief is incorrect. Instead of using linear probing to find available md(4) numbers, it's best to use the existing attach_md function. Reviewed by: ngie Sponsored by: Spectra Logic Corp Differential Revision: https://reviews.freebsd.org/D13666 r327347: geli: factor out some common code in the geli tests No functional change. Sponsored by: Spectra Logic Corp r327352: Fix a harmless typo from r310786 I copy/pasted a reference to an undefined shell variable. r327353: geli: fix the resize test on arm64 The resize test used bsdlabel(8), which is not available on all architectures. Change it to use gpart(8) instead, which should be available everywhere. PR: 221763 Reported by: andrew r327662: geli: convert most tests from TAP to ATF I'm leaving readonly_test and nokey_test alone for now. In a future commit they should be broken up into several smaller test cases and distributed between multiple files. Reviewed by: ngie Differential Revision: https://reviews.freebsd.org/D13717 r327666: geli: fix parallel execution of tests The trick is not to destroy an md(4) device during a test. That can create a "double-free" situation, because we also destroy md devices during test cleanup. r327682: Fix typo from r327666 X-MFC-With: 327666 r327683: geli: convert remaining TAP tests to ATF r327685: geli: optimize tests Reduce the geli tests' runtime by about a third: * In integrity_test:copy, use a file-backed md(4) device instead of a malloc'd one. That way we can corrupt the underlying storage without needing to detach and reattach the geli device. * In integrity_test:{copy, hmac, data} and onetime_test:{onetime, onetime_a}, move reads of /dev/random out of the loop.
* MFC r328504: stand/fdt: Consolidate overlay handling a little furtherkevans2018-02-024-20/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | [This is effectively a direct commit to stable/11 due to path restructuring in HEAD. The diff against HEAD has simply been applied to the old path] This should have been done as part of r327350, but due to lack of foresight it came later. In the different places we apply overlays, we duplicate the bits that check for fdt_overlays in the environment and supplement that with any other places we need to check for overlays to load. These "other places" will be loader specific and are not candidates for consolidation. Provide an fdt_load_dtb_overlays to capture the common logic, allow passing in an additional list of overlays to be loaded. This additional list of overlays is used in practice for ubldr to pull in any fdt_overlays passed to it from U-Boot environment, but it can be used for any other source of overlays. These additional overlays supplement loader.conf(5) fdt_overlays, rather than replace, so that we're not restricted to specifying overlays in only one place. This is a change from previous behavior where loader.conf(5) supplied fdt_overlays would cause us to ignore U-Boot environment, and this seems nonsensical- user should have sufficient control over both of these aspects, or lack of control for good reasons. A knob could be considered in the future to ignore U-Boot supplied overlays, but the supplemental treatment seems like a good start.
* MFC r322894:bdrewery2018-02-021-31/+19
| | | | | | Replace makefs' hand-rolled unescaping with strunvis Sponsored by: Dell EMC
* MFC r312293,312305,312434,312698,312759,312760,312814,312815,322672:mav2018-02-022-28/+36
| | | | | | Synchronize gtaskqueue vs SMP initialization order with head. This should fix panics on boot, caused by recent Linux KPI merges.
* Partial MFC of r312205 (by sbruno): Skip smp check if we're running UPmav2018-02-021-5/+5
|
* Partial MFC of r311039 (by sbruno):mav2018-02-021-0/+15
| | | | - add INVARIANTS debugging hooks to gtaskqueue enqueue (mmacy)
* MFC r307657 (by sbruno): Resolve whitespace diff to NextBSD.mav2018-02-021-5/+7
| | | | | Check to see that the taskqueue thread count requires us to acutally iterate over the thread count to bind to cpus.
* MFC r307567 (by sbruno): Assert that we're assigning a non-null taskqueue.mav2018-02-021-3/+14
| | | | | | | | | | | ref: https://github.com/NextBSD/NextBSD/commit/535865d02c162e415d7436899cd6db5000a0cc7b Fix cpu assignment by assuring stride is non-zero, assert that all tasks have a valid taskqueue. ref: https://github.com/NextBSD/NextBSD/commit/db398176234fe3ce9f8e8b671f56000f8276feba Start cpu assignment from zero. ref: https://github.com/NextBSD/NextBSD/commit/d99d39b6b6c5dfac1eb440c41e36ebf4c897198e
* MFC r307566 (by sbruno):mav2018-02-021-43/+85
| | | | | | | Ensure that tasks with a specific cpu set prior to smp starting get re-attached to a thread running on that cpu. ref: https://github.com/NextBSD/NextBSD/commit/fcc20e306bc93ebbbe51f3775d1afb527970a2e9
* MFC r307561 (by sbruno): Tell gtask to what we've been bound.mav2018-02-021-0/+1
| | | | ref: https://github.com/NextBSD/NextBSD/commit/54414984cfebb920bbc40aadeb601bdce448d8d7
* MFC r307041 (by sbruno):mav2018-02-021-3/+3
| | | | | Fix bug where malloc(.., M_NOWAIT) return value is not checked, Change to M_WAITOK and move outside the mutex
* MFC r328584: stand/fdt: Remove unused write-only new_fdtp, correct commentkevans2018-02-021-3/+1
| | | | | This is effectively a direct commit to stable/11 due to path restructuring in HEAD. The diff against HEAD has simply been applied to the old path.
* MFC r328161:ae2018-02-023-5/+19
| | | | | | | | | | | Add UDPLite support to ipfw(4). Now it is possible to use UDPLite's port numbers in rules, create dynamic states for UDPLite packets and see "UDPLite" for matched packets in log. Obtained from: Yandex LLC Sponsored by: Yandex LLC
* MFC r328160:ae2018-02-026-36/+116
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add to bsnmpd(1) ability to specify multiple community strings with different access rights. By default there are two community strings with index 1 and 2, one for read-only access and second for read-write access: begemotSnmpdCommunityString.0.1 = $(read) begemotSnmpdCommunityString.0.2 = $(write) Now it is possible to define additional community strings using different indexes: begemotSnmpdCommunityString.0.3 = "SomeString1" begemotSnmpdCommunityPermission.0.3 = 1 begemotSnmpdCommunityString.0.4 = "SomeString2" begemotSnmpdCommunityPermission.0.4 = 2 begemotSnmpdCommunityString.0.5 = "SomeString3" begemotSnmpdCommunityString.0.6 = "SomeString4" New attribute begemotSnmpdCommunityPermission can be used to specify access rights: 1 means "read-only" access, 2 means "read-write" access. If attribute is not specified for some index this means "read-only" rights. Community strings must be unique, i.e. must not be the same for different indexes. Obtained from: Yandex LLC Sponsored by: Yandex LLC Differential Revision: https://reviews.freebsd.org/D13785 MFC r328171: Rename "index" variable to "idx" since gcc complains that it shadows index(3) function declaration.
* MFC of 328444.mckusick2018-02-021-6/+17
| | | | Eliminate "fsync: giving up on dirty" messages.
* MFC small part of r325794 to fix the build.mav2018-02-011-0/+3
|
* MFC r327034 (by imp):mav2018-02-012-1/+12
| | | | | Return domain, bus, slot, and function for the transport settings in PATH_INQ requests for nvme.
* MFC r326937, r326940 (by imp):mav2018-02-013-18/+67
| | | | | | | | | | | | | | | | | When we're disabling the nvme device, some drives have a controller bug that requires 'hands off' for a period of time (2.3s) before we check the RDY bit. Sicne this is a very odd quirk for a very limited selection of drives, do this as a quirk. This prevented a successful reset of the card when the card wedged. Also, make sure that we comply with the advice from section 3.1.5 of the 1.3 spec says that transitioning CC.EN from 0 to 1 when CSTS.RDY is 1 or transitioning CC.EN from 1 to 0 when CSTS.RDY is 0 "has undefined results". Short circuit when EN == RDY == desired state. Finally, fail the reset if the disable fails. This will lead to a failed device, which is what we want. (note: nda device needs work for coping with a failed device).
* MFC r324978: Report only the valid slots in the firmware log page.mav2018-02-011-2/+7
| | | | | | | Printing the entire log page is causing confusion over available slots. Report only those slots that are valid. In the case where the firmware download isn't supported, assume that only the first slot is valid (I have no hardware to test this assumption though)
* MFC r324977 (by imp):mav2018-02-011-15/+23
| | | | | | | Add nvme_controller_data argument to all print functions. It's desirable to access controler data to inform printing log pages (such as limiting the printing to valid ranges).
* MFC r324630 (by imp): Update comment to reflect actual default timeout.mav2018-02-011-4/+4
|
* MFC r323625 (by imp): Allow multiple TRIMs to be done for ndamav2018-02-011-2/+11
| | | | | | Don't call cam_iosched_trim_done or cam_iosched_submit_trim for nda since its hardware can handle almost an arbitrary number of TRIMs and we don't have to be careful to only ever do one.
* MFC r322999 (by imp): Fix NVMe's use of XPT_GDEV_TYPEmav2018-02-016-26/+54
| | | | | | | | | | | | This patch changes the way XPT_GDEV_TYPE works for NVMe. The current ccb_getdev structure includes pointers to the NVMe Identify Controller and Namespace structures, but these are kernel virtual addresses which are not accessible from user space. As an alternative, the patch changes the pointers into padding in ccb_getdev and adds two new types to ccb_dev_advinfo to retrieve the Identify Controller (CDAI_TYPE_NVME_CNTRL) and Namespace (CDAI_TYPE_NVME_NS) data structures.
* MFC r322992 (by imp): Print the controller's ID in identify.mav2018-02-011-1/+2
|
* MFC r320522 (by imp):mav2018-02-011-2/+2
| | | | | | Fix sign of resid and add a mostly useless cast to cope with signed vs unsigned check warnings from traditional unix code construsts bogusly flagged as potentially unsafe.
* MFC r320483 (by imp): Improve wdc error log pulling.mav2018-02-011-175/+29
| | | | | | | | After review by the WDC engineers, improve how we pull down the so-called 'e6' logs. The 'c6' logs are obsolete and support for them has been removed because FreeBSD needed to pull them in chunks, which is incompatible with the 0xc6 opcode implementation. Rather than leave the code in place that produces bad log pulls, remove it.
* MFC r320425 (by imp):mav2018-02-011-2/+15
| | | | | Report some aspects of namespaces and namespace support in identify command.
OpenPOWER on IntegriCloud