aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Eliminate unnecessary differences between i386's pmap_enter() and amd64's.Alan Cox2018-07-101-99/+108
| | | | | | | | | | | | For example, fully construct the new PTE before entering the critical section. This change is a stepping stone to psind == 1 support on i386. Reviewed by: kib, markj Tested by: pho Differential Revision: https://reviews.freebsd.org/D16188 Notes: svn path=/head/; revision=336175
* Fix thread state summary line display after r334918.Mark Johnston2018-07-101-4/+4
| | | | Notes: svn path=/head/; revision=336174
* Correct the identifier for the Unifi Security GatewayJustin Hibbits2018-07-102-5/+5
| | | | | | | The USG is really E120, not E110. Notes: svn path=/head/; revision=336173
* Regen after r336171.Brooks Davis2018-07-109-134/+12
| | | | Notes: svn path=/head/; revision=336172
* Get rid of netbsd_lchown and netbsd_msync syscall entries.Brooks Davis2018-07-105-16/+62
| | | | | | | | | | | | | | | No valid FreeBSD binary very called them (they would call lchown and msync directly) and we haven't supported NetBSD binaries in ages. This is a respin of r335983 with a workaround for the ancient BFD linker in the libc stubs. Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D16193 Notes: svn path=/head/; revision=336171
* Use uintptr_t alone when assigning to kvaddr_t variables.Brooks Davis2018-07-108-19/+17
| | | | | | | Suggested by: jhb Notes: svn path=/head/; revision=336170
* A direct call to echo was intruduced in r333407, which made messagesRenato Botelho2018-07-101-1/+1
| | | | | | | | | | | | to be displayed when make is called with -s. Replace it by ${ECHO}. Reviewed by: brd, bdrewery Approved by: brd, bdrewery Sponsored by: Rubicon Communications, LLC (Netgate) Differential Revision: https://reviews.freebsd.org/D16195 Notes: svn path=/head/; revision=336169
* Add support for printing the TCP FO client-side cookie cache via theMichael Tuexen2018-07-101-0/+88
| | | | | | | | | | | sysctl interface. This is similar to the TCP host cache. Reviewed by: pkelsey@, kbowling@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D14554 Notes: svn path=/head/; revision=336168
* Use appropriate MSS value when populating the TCP FO client cookie cacheMichael Tuexen2018-07-103-12/+48
| | | | | | | | | | | | | | When a client receives a SYN-ACK segment with a TFP fast open cookie, but without an MSS option, an MSS value from uninitialised stack memory is used. This patch ensures that in case no MSS option is included in the SYN-ACK, the appropriate value as given in RFC 7413 is used. Reviewed by: kbowling@ Sponsored by: Netflix, Inc. Differential Revision: https://reviews.freebsd.org/D16175 Notes: svn path=/head/; revision=336167
* Fix build broken by r336130Wojciech Macek2018-07-101-0/+13
| | | | | | | Add ifdef's to compile parts of pci_host_generic only on armv8 Notes: svn path=/head/; revision=336166
* Removed pointless NULL checkSteven Hartland2018-07-101-2/+0
| | | | | | | | | | Removed pointless NULL check after malloc with M_WAITOK which can never return NULL. Sponsored by: Multiplay Notes: svn path=/head/; revision=336165
* Fix vertical whitespace nit in cxgbe.Navdeep Parhar2018-07-101-1/+0
| | | | Notes: svn path=/head/; revision=336163
* Fix style(9) space and tab.Marcelo Araujo2018-07-101-5/+5
| | | | Notes: svn path=/head/; revision=336162
* top(1): rollback r335836Daichi GOTO2018-07-105-113/+15
| | | | | | | | | | | | Encoding-specific processing introduced in r335836 is not recommended. And doing getenv("LANG") and assuming an encoding based on it is a very bad practice to internationalize software. Submitted by: hrs Differential Revision: https://reviews.freebsd.org/D16203 Notes: svn path=/head/; revision=336160
* cxgbe(4): Add a sysctl to report the chip's microprocessor's loadNavdeep Parhar2018-07-101-0/+44
| | | | | | | | | | | | | averages. This works with debug or custom firmwares only. sysctl dev.<nexus>.<instance>.loadavg sysctl dev.t6nex.0.loadavg MFC after: 1 month Sponsored by: Chelsio Communications Notes: svn path=/head/; revision=336159
* kern_environment: bool'itize dynamic_kenv; fix small style(9) nitKyle Evans2018-07-102-6/+5
| | | | Notes: svn path=/head/; revision=336157
* Use endian.h le32dec() instead of rolling our own.Xin LI2018-07-101-17/+6
| | | | | | | | | | Suggested by: phk Reviewed by: imp, pfg MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D16192 Notes: svn path=/head/; revision=336156
* subr_hints: Skip static_env and static_hints if they don't contain hintsKyle Evans2018-07-101-4/+10
| | | | | | | | | | This is possible because, well, they're static. Both the dynamic environment and the MD-environment (generally loader(8) environment) can potentially have room for new variables to be set, and thus do not receive this treatment. Notes: svn path=/head/; revision=336154
* subr_hints: Convert some bool-like ints to boolsKyle Evans2018-07-101-5/+6
| | | | Notes: svn path=/head/; revision=336153
* subr_hints: Use goto/label instead of series of conditionalsKyle Evans2018-07-101-26/+22
| | | | Notes: svn path=/head/; revision=336152
* Remove redundant space.Cy Schubert2018-07-101-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=336151
* top(1): Fix the prompt bug and core dump problem in o / p mode that occurred ↵Daichi GOTO2018-07-101-4/+11
| | | | | | | | | | | by r336028 Reviewed by: cy Approved by: gnn (mentor) Differential Revision: https://reviews.freebsd.org/D16174 Notes: svn path=/head/; revision=336150
* Fix pre-SI_SUB_CPU initialization of per-CPU counters.Mark Johnston2018-07-102-22/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | r336020 introduced pcpu_page_alloc(), replacing page_alloc() as the backend allocator for PCPU UMA zones. Unlike page_alloc(), it does not honour malloc(9) flags such as M_ZERO or M_NODUMP, so fix that. r336020 also changed counter(9) to initialize each counter using a CPU_FOREACH() loop instead of an SMP rendezvous. Before SI_SUB_CPU, smp_rendezvous() will only execute the callback on the current CPU (i.e., CPU 0), so only one counter gets zeroed. The rest are zeroed by virtue of the fact that UMA gratuitously zeroes slabs when importing them into a zone. Prior to SI_SUB_CPU, all_cpus is clear, so with r336020 we weren't zeroing vm_cnt counters during boot: the CPU_FOREACH() loop had no effect, and pcpu_page_alloc() didn't honour M_ZERO. Fix this by iterating over the full range of CPU IDs when zeroing counters, ignoring whether the corresponding bits in all_cpus are set. Reported and tested by: pho (previous version) Reviewed by: kib (previous version) Differential Revision: https://reviews.freebsd.org/D16190 Notes: svn path=/head/; revision=336149
* Tweak documentation to RB_ constants to reflect current useWarner Losh2018-07-102-21/+9
| | | | | | | | | | | | | | | | | RB_ASKNAME is no longer instructions to the boot loader to request a prompt for which kernel to boot. Instead, it asks for what the root file system to use. RB_INITNAME is unused, and never has been in FreeBSD as far as I can tell. Remove it from the documentation and fix comment. RB_SELFTEST and RB_MINIROOT likewise (though they were completely undocumented). These last three constants can likely just be deleted as nothing references them (even to set useless bits). RB_ASKNAME doesn't actually survive reboot, however, so needs to be communicated to the bootloader via other means. If the bootloader sets it, though, it will be honored. Notes: svn path=/head/; revision=336148
* localedef(1): remove duplicated includes.Pedro F. Giffuni2018-07-092-2/+0
| | | | | | | Hinted by: DragonFlyBSD Notes: svn path=/head/; revision=336145
* powerpc/powernv: Make opal_i2c driver work with attached i2c driversJustin Hibbits2018-07-091-15/+11
| | | | | | | | | | | | | | | | | * FreeBSD stores addresses in 8 bit format, but the OPAL API requires the 7-bit address, and encodes the direction elsewhere. Behave like other i2c drivers, and shift accordingly. * The OPAL API can already handle multiple requests in flight. Change the async token to be private to the thread, so as not to stomp across i2c accesses, remove the limitation error message, and use the correct message index to transfer all messages in the list. * Micro-optimize the async handler to not continuously call pmap_kextract() when spin-waiting for the operation to complete. This has been tested by hexdumping an EEPROM attached via the icee(4) driver. Notes: svn path=/head/; revision=336144
* sed(1): Suppress implicit-fallthrough.Pedro F. Giffuni2018-07-091-0/+2
| | | | | | | | | | | | Apparently some tools are not able to determine if all the cases of a switch are covered. Make use of the attribute for cases like this. Hinted by: DragonFlyBSD GGC8 (but fixed differently) CID: 976552 Notes: svn path=/head/; revision=336143
* ig4(4): add devmatch(8) PNP infoOleksandr Tymoshenko2018-07-091-3/+4
| | | | | | | | Now that we have all devices ids in a table add MODULE_PNP_INFO macro to let devmatch autoload module Notes: svn path=/head/; revision=336142
* Add support for a "forced" pnfsdskill to the pNFS server kernel code.Rick Macklem2018-07-094-12/+21
| | | | | | | | | | | | The pnfsdskill(8) command will normally fail if there is no valid mirror for the DS to be disabled. However, a system administrator may need to disable a DS which does not have a valid mirror so that the nfsd threads can be terminated. This patch adds the kernel code needed by pnfsdskill(8) to implement this "forced" case of disabling a DS. This patch only affects the pNFS server. Notes: svn path=/head/; revision=336141
* truncate: Add support for -s % and /Emmanuel Vadot2018-07-093-9/+110
| | | | | | | | | % round up to the multiple size and / round down This is compatible with gnu truncate. Add tests and document in the man page. Notes: svn path=/head/; revision=336140
* truncate: style(9) some partsEmmanuel Vadot2018-07-091-10/+10
| | | | Notes: svn path=/head/; revision=336139
* Add pnp info to the imx_spi driver.Ian Lepore2018-07-091-0/+1
| | | | Notes: svn path=/head/; revision=336138
* Add a manpage for the imx_spi driver.Ian Lepore2018-07-091-0/+90
| | | | Notes: svn path=/head/; revision=336137
* Remove gateworks nanobsd support.Warner Losh2018-07-0912-911/+0
| | | | | | | | | | | A quick test of this shows multiple problems. Rather than fix the problems, just retire this board's support. It's for a 12 year old board that's been out of production for at least 7 years and generally lacks the memory to run even a stripped down NanoBSD image well. It's not really relevant anymore. Notes: svn path=/head/; revision=336136
* Remove armeb from the list of architectures we build for the bootWarner Losh2018-07-091-2/+2
| | | | | | | | laoder testing scripts. It just adds to the build time, and will be retired soon anyway, per discussions in freebsd-arch@ last month. Notes: svn path=/head/; revision=336135
* Add missing generated header file.Ian Lepore2018-07-091-1/+1
| | | | | | | Reported by: Julian H. Stacey <jhs@berklix.com> Notes: svn path=/head/; revision=336134
* Add "record-state", "set-limit" and "defer-action" rule options to ipfw.Andrey V. Elsukov2018-07-096-27/+193
| | | | | | | | | | | | | | | | | | "record-state" is similar to "keep-state", but it doesn't produce implicit O_PROBE_STATE opcode in a rule. "set-limit" is like "limit", but it has the same feature as "record-state", it is single opcode without implicit O_PROBE_STATE opcode. "defer-action" is targeted to be used with dynamic states. When rule with this opcode is matched, the rule's action will not be executed, instead dynamic state will be created. And when this state will be matched by "check-state", then rule action will be executed. This allows create a more complicated rulesets. Submitted by: lev MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D1776 Notes: svn path=/head/; revision=336132
* Deduplicate the code.Andrey V. Elsukov2018-07-095-100/+48
| | | | | | | | | | | Add generic function if_tunnel_check_nesting() that does check for allowed nesting level for tunneling interfaces and also does loop detection. Use it in gif(4), gre(4) and me(4) interfaces. Differential Revision: https://reviews.freebsd.org/D16162 Notes: svn path=/head/; revision=336131
* ARM64: Add quirk mechanism to pci_host_generic_acpiWojciech Macek2018-07-091-0/+86
| | | | | | | | | | | | Add few quirks which are necessary to use AHCI on ThX2 Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Cavium Differential revision: https://reviews.freebsd.org/D15929 Notes: svn path=/head/; revision=336130
* ARM64: Add support for ThunderX2 PCIeWojciech Macek2018-07-093-23/+90
| | | | | | | | | | Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Cavium Differential revision: https://reviews.freebsd.org/D15141 Notes: svn path=/head/; revision=336129
* ARM64: Add ThunderX2 CPU revision macro. Add ThunderX2 name in identcpu.cWojciech Macek2018-07-092-0/+3
| | | | | | | | | Submitted by: Patryk Duda <pdk@semihalf.com> Obtained from: Semihalf Sponsored by: Cavium Notes: svn path=/head/; revision=336128
* gzip(1): Don't shadow global 'err'Conrad Meyer2018-07-091-4/+4
| | | | | | | | | Unbreak work build on ppc due to -Werror=shadow. Introduced in r336121. X-MFC-With: r336121 Notes: svn path=/head/; revision=336127
* Integrate SHA2-224 with userspace componentsConrad Meyer2018-07-097-62/+96
| | | | | | | | | | | | | The double compilation of the kernel sources in libmd and libcrypt is baffling, but add yet another define hack to prevent duplicate symbols. Add documentation and SHA2-224 test cases to libmd. Integrate with the md5(1) command, document, and add more test cases; self-tests pass. Notes: svn path=/head/; revision=336126
* OCF: Add plain hash modesConrad Meyer2018-07-097-10/+274
| | | | | | | | | | | | | | | | | | | | | | | | | | | In part, to support OpenSSL's use of cryptodev, which puts the HMAC pieces in software and only offloads the raw hash primitive. The following cryptodev identifiers are added: * CRYPTO_RIPEMD160 (not hooked up) * CRYPTO_SHA2_224 * CRYPTO_SHA2_256 * CRYPTO_SHA2_384 * CRYPTO_SHA2_512 The plain SHA1 and 2 hashes are plumbed through cryptodev (feels like there is a lot of redundancy here...) and cryptosoft. This adds new auth_hash implementations for the plain hashes, as well as SHA1 (which had a cryptodev.h identifier, but no implementation). Add plain SHA 1 and 2 hash tests to the cryptocheck tool. Motivation stems from John Baldwin's earlier OCF email, https://lists.freebsd.org/pipermail/freebsd-arch/2018-January/018835.html . Notes: svn path=/head/; revision=336125
* OCF: Add CRYPTO_SHA2_224_HMAC modeConrad Meyer2018-07-096-1/+39
| | | | | | | | | Round out the complete set of basic SHA2 HMAC modes with SHA2-224. Support is added to the cryptocheck test tool. Notes: svn path=/head/; revision=336124
* Implement SHA2-224 submode of SHA2-256Conrad Meyer2018-07-092-0/+154
| | | | | | | | Like SHA2-384:SHA2-512, SHA2-224 is simply a truncated SHA2-256 with a different initial vector. Add to round out the complete basic SHA2 family. Notes: svn path=/head/; revision=336123
* Remove "HMAC" from <HASH>_HMAC_BLOCK_LEN macro namesConrad Meyer2018-07-0911-42/+43
| | | | | | | | | | The block size is a property of the underlying hash algorithm, and has nothing to do with the HMAC construction. No functional change. Notes: svn path=/head/; revision=336122
* Don't delete outfile unconditionally.Xin LI2018-07-091-4/+12
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=336121
* Remove dirs that git svn should have removed but didn't.Warner Losh2018-07-090-0/+0
| | | | Notes: svn path=/head/; revision=336118
* libiconv: correct undefined behavior.Pedro F. Giffuni2018-07-081-2/+2
| | | | | | | | | | | | | Detected on NetBSD: # nm /usr/lib/libc.so|grep sanit /public/src.git/lib/libc/citrus/modules/citrus_mapper_std.c:173:8: runtime error: left shift of 1 by 31 places cannot be represented in type 'int' Obtained from: NetBSD (CVS Rev. 1.11) MFC after: 1 week Notes: svn path=/head/; revision=336115