summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | kyua: Only install examples if requestedEmmanuel Vadot2020-12-171-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: brooks Differential Revision: https://reviews.freebsd.org/D27638 Notes: svn path=/head/; revision=368722
* | | Drop EFI_STAGING_SIZE back down to 64MWarner Losh2020-12-171-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vmware can't cope with anything larger than 64MB. Drop this back to 64MB everywhere but arm. PR: 251866 MFC After: 1 week Notes: svn path=/head/; revision=368721
* | | [bhyve] virtio-net: Do not allow receiving packets until features have been ↵Aleksandr Fedorov2020-12-171-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | negotiated. Enforce the requirement that the RX callback cannot be called after a reset until the features have been negotiated. This fixes a race condition where the receive callback is called during a device reset. Reviewed by: vmaffione, grehan Approved by: vmaffione (mentor) Sponsored by: vstack.com Differential Revision: https://reviews.freebsd.org/D27381 Notes: svn path=/head/; revision=368720
* | | bsdinstall: remove VTOC8 partition scheme optionMitchell Horne2020-12-171-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that sparc64 has been removed, there are no kernels built with support for the VTOC8 partitioning scheme by default. Remove the option from the installer, as it is unsupported on all installer images produced by re@. Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D27641 Notes: svn path=/head/; revision=368719
* | | Make non-debug kernels installable.Nathan Whitehorn2020-12-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | Setting DEBUG_FLAGS results in make installkernel trying to install debug information that doesn't exist if the kernel was built without it. Notes: svn path=/head/; revision=368718
* | | strerror.3: Add an example for perror()Mateusz Piotrowski2020-12-171-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a nice and quick reference. Reviewed by: jilles, yuripv MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D27623 Notes: svn path=/head/; revision=368714
* | | freebsd-update: unconditionally regenerate passwd/login.conf filesKyle Evans2020-12-171-11/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The existing logic is nice in theory, but in practice freebsd-update will not preserve the timestamps on these files. When doing a major upgrade, e.g. from 12.1-RELEASE -> 12.2-RELEASE, pwd.mkdb et al. appear in the INDEX and we clobber the timestamp several times in the process of packaging up the existing system into /var/db/freebsd-update/files and extracting for comparisons. This leads to these files not getting regenerated when they're most likely to be needed. Measures could be taken to preserve timestamps, but it's unclear whether the complexity and overhead of doing so is really outweighed by the marginal benefit. I observed this issue when pkg subsequently failed to install a package that wanted to add a user, claiming that the user was removed in the process. bapt@ pointed to this pre-existing bug with freebsd-update as the cause. PR: 234014, 232921 Reviewed by: bapt, emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D27635 Notes: svn path=/head/; revision=368713
* | | /etc/services: attempt to bring the database to this century 2/2.Pedro F. Giffuni2020-12-172-236/+204
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is the final half of splitting r358153 in two, in order to avoid a build system bugs and being able to merge an earlier change to previous releases. Add a note to UPDATING to avoid people building from very old systems from having issues with mergemaster MFC after: 3 days (only 12-stable) Differential Revision: https://reviews.freebsd.org/D23621 Notes: svn path=/head/; revision=368712
* | | nl_langinfo(3): document recognized item namesYuri Pankov2020-12-171-8/+94
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While here, remove .Tn macro usage (prompted by mandoc lint). PR: 251468 Reviewed by: bapt Differential Revision: https://reviews.freebsd.org/D27606 Notes: svn path=/head/; revision=368711
* | | Make mountcritremote dependent upon nfscbd.Rick Macklem2020-12-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Although it is not often needed, the nfscbd(8) should be running when NFSv4 mounts are done if callback functionality is required. Callback functionality is required for the NFSv4 server to issue delegations or pNFS layouts. This patch adds nfscbd to the mountcritremote's REQUIRED line to ensure it is started before NFS mounts specified in /etc/fstab are done. Reviewed by: 0mp Differential Revision: https://reviews.freebsd.org/D27506 Notes: svn path=/head/; revision=368710
* | | newvers.sh: Speed up git_tree_modifiedBrooks Davis2020-12-171-23/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We're looking for file content differences, so ask the question of git more directly. This helps a lot, saving tens of thousands of fork()s, when the builder and editor see different stat() results (e.g., UIDs), as they might with containers. Submitted by: Nathaniel Wesley Filardo <nwf20@cl.cam.ac.uk> Reviewed by: bdrewery, emaste, imp Obtained from: CheriBSD MFC after: 3 days Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27646 Notes: svn path=/head/; revision=368709
* | | riscv: increase GENERICSD gapMitchell Horne2020-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | Leave more room for bootloaders at the beginning of the image. In particular, the u-boot files for the HiFive Unleashed are ~5MB in size. Notes: svn path=/head/; revision=368705
* | | Append the branch commit count to _SNAP_SUFFIX for developmentGlen Barber2020-12-162-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | snapshot builds. Sponsored by: Rubicon Communications, LLC (netgate.com) Notes: svn path=/head/; revision=368704
* | | fd: remove redundant saturation check from fget_unlocked_seqMateusz Guzik2020-12-161-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | refcount_acquire_if_not_zero returns true on saturation. The case of 0 is handled by looping again, after which the originally found pointer will no longer be there. Noted by: kib Notes: svn path=/head/; revision=368703
* | | Complete steps 5 and 9 from Committer's guideJuraj Lutter2020-12-162-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: osa (mentor) Approved by: osa (mentor) Differential Revision: https://reviews.freebsd.org/D27632 Notes: svn path=/head/; revision=368701
* | | Fix whitespace in r368698Jessica Clarke2020-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | MFC with: r368698 Notes: svn path=/head/; revision=368700
* | | Fix whitespace in comment modified by r368697Jessica Clarke2020-12-161-1/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=368699
* | | Use the standard method for localizing of MSI-X table bar.Michal Meloun2020-12-162-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Current way, hardcoded value plus heuristic is not conform to the PCI(e) specification and it fails on systems where MSI-X bar is not initialized by BIOS/ACPI (many arm or arm64 systems for example). Instead, use the standard PCI(e) capability for determining of MSIX table bar address. MFC after: 3 weeks Differential Revision: https://reviews.freebsd.org/D27265 Notes: svn path=/head/; revision=368698
* | | Allocate right number of pages for the bounced buffers crossing the page.Michal Meloun2020-12-161-5/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the disadvantages of our current busdma code is the fact that we process the bounced buffer in a page-by-page manner. This means that the short (subpage) buffer allocated across page boundaries is bounced to 2 separate pages. This suboptimal behavior is consistent across all platforms and can be related to (probably unimplementable or incompatible with bouncing) BUS_DMA_KEEP_PG_OFFSET flag. Therefore, allocate one additional page to be fully comply with this requirement. Discused with: markj PR: 251018 Notes: svn path=/head/; revision=368697
* | | Remove contrib/binutils, unused after r368667Ed Maste2020-12-161082-1110883/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=368696
* | | src.conf.5: regen after r368667, GDB retirementEd Maste2020-12-161-6/+1
| | | | | | | | | | | | Notes: svn path=/head/; revision=368695
* | | Implement strerror_l().Konstantin Belousov2020-12-167-22/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only for the arches that provide user-mode TLS. PR: 251651 Requested by: yuri Discussed with: emaste, jilles, tijl Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D27495 MFC after: 2 weeks Notes: svn path=/head/; revision=368692
* | | Use more standard types for manipulating pointers.John Baldwin2020-12-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Use a uintptr_t cast to get the virtual address of a pointer in USB_P2U() instead of a ptrdiff_t. - Add offsets to a char * pointer directly without roundtripping the pointer through a ptrdiff_t in USB_ADD_BYTES(). Reviewed by: imp, hselasky Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27581 Notes: svn path=/head/; revision=368688
* | | Use uintptr_t instead of unsigned long for integers holding pointers.John Baldwin2020-12-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: imp, gallatin Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27580 Notes: svn path=/head/; revision=368687
* | | Use uintptr_t instead of unsigned long for pointers.John Baldwin2020-12-161-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sense_ptr thing is quite broken. As near as I can tell, the driver tries to copyout to a physical address rather than whatever user address the sense buffer should be copied to. It is not immediately obvious what user address the sense buffer should be copied to. Reviewed by: imp Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27578 Notes: svn path=/head/; revision=368686
* | | Use the 't' modifier to print a ptrdiff_t.John Baldwin2020-12-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reviewed by: imp Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27576 Notes: svn path=/head/; revision=368685
* | | loader: allow loader to accept zfs feature com.delphix:bookmark_writtenToomas Soome2020-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We do not need to actually read bookmarks, just whitelist this feature. Reported by: mjg Notes: svn path=/head/; revision=368684
* | | loader: allow loader to accept zfs feature com.datto:bookmark_v2Toomas Soome2020-12-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | We do not need to actually read bookmarks, just whitelist this feature Reported by: jpaetzel Notes: svn path=/head/; revision=368677
* | | Bugfix to not hide jailparam flags, which for example changes the outputJamie Gritton2020-12-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "vnet=2" to the less opaque "vnet=inherit" Reported by: kevans MFC after: 5 days Notes: svn path=/head/; revision=368676
* | | Revert r368523 which fixed contig allocs waiting forever.Bryan Drewery2020-12-151-16/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This needs to account for empty NUMA domains or domains which do not satisfy the requested range. Discussed with: markj Notes: svn path=/head/; revision=368673
* | | hme(4): remove stray directoriesBrooks Davis2020-12-150-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D27526 Notes: svn path=/head/; revision=368671
* | | Remove Doxyfiles for removed driversBrooks Davis2020-12-1525-525/+0
| | | | | | | | | | | | | | | | | | | | | Reported by: emaste Notes: svn path=/head/; revision=368670
* | | Remove additional GDB leftovers missed in r368667Ed Maste2020-12-153-9/+2
| | | | | | | | | | | | Notes: svn path=/head/; revision=368669
* | | Add relnote for r368667, GDB 6.1.1 removalEd Maste2020-12-151-0/+4
| | | | | | | | | | | | Notes: svn path=/head/; revision=368668
* | | Retire obsolete GDB 6.1.1Ed Maste2020-12-15101-22013/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | GDB 6.1.1 was released in June 2004 and is long obsolete. It does not support all of the architectures that FreeBSD does, and imposes limitations on the FreeBSD kernel build, such as the continued use of DWARF2 debugging information. It was kept (in /usr/libexec/) only for use by crashinfo(8), which extracts some basic information from a kernel core dump after a crash. Crashinfo already prefers gdb from port/package if installed. Future work may add kernel debug support to LLDB or find another path for crashinfo's needs, but in any case we do not want to ship the excessively outdated GDB in FreeBSD 13. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D27610 Notes: svn path=/head/; revision=368667
* | | Improve handling of alternate settings in the USB stack.Hans Petter Selasky2020-12-151-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move initialization of num_altsetting under USB_CFG_INIT, else there will be a page fault when enumerating USB devices. PR: 251856 MFC after: 1 week Submitted by: Ma, Horse <Shichun.Ma@dell.com> Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=368664
* | | release: Rename arm64/RPI3.conf to arm64/RPI.confEmmanuel Vadot2020-12-151-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We now have a u-boot port and config.txt for booting on all 64bits variant of the RPI boards (RPI2v1.1, RPI3* and RPI4*) so use the new u-boot-rpi-arm64 and the config_arm64.txt files. Discussed with: karels, kevans Notes: svn path=/head/; revision=368662
* | | Improve handling of alternate settings in the USB stack.Hans Petter Selasky2020-12-155-10/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Allow setting the alternate interface number to fail when there is only one alternate setting present, to comply with the USB specification. Refactor how iface->num_altsetting is computed. Bump the __FreeBSD_version due to change of core USB structure. PR: 251856 MFC after: 1 week Submitted by: Ma, Horse <Shichun.Ma@dell.com> Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=368659
* | | Improve handling of alternate settings in the USB stack.Hans Petter Selasky2020-12-151-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Limit the number of alternate settings to 256. Else the alternate index variable may wrap around. PR: 251856 MFC after: 1 week Submitted by: Ma, Horse <Shichun.Ma@dell.com> Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=368658
* | | When receiving a file having a length, which is a mulitple of the blocksize,Michael Tuexen2020-12-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | close the file once it is received. Reported by: Timo Voelker MFC after: 1 week Notes: svn path=/head/; revision=368657
* | | Remove more cx,ctau leftoversEd Maste2020-12-152-42/+0
| | | | | | | | | | | | | | | | | | | | | Missed in r359178 Notes: svn path=/head/; revision=368652
* | | Fix LINT-NOINET6 build after r368571.Alexander V. Chernikov2020-12-141-3/+11
| | | | | | | | | | | | | | | | | | | | | Reported by: mjg Notes: svn path=/head/; revision=368651
* | | amd64 pmap: fix PCID mode invalidationsKonstantin Belousov2020-12-142-159/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When r362031 moved local TLB invalidation after shootdown IPI send, it moved too much. In particular, PCID-mode clearing of the pm_gen generation counters must occur before IPIs are send, which is in fact described by the comment before seq_cst fence in the invalidation functions. Fix it by extracting pm_gen clearing into new helper pmap_invalidate_preipi(), which is executed before a call to smp_masked_tlb_shootdown(). Rest of the local invalidation callbacks is simplified as result, and become very similar to the remote shootdown handlers (to be merged in some future). Move pin of the thread to pmap_invalidate_preipi(), and do unpin in smp_masked_tlb_shootdown(). Reported and tested by: mjg (previous version) Reviewed by: alc, cem (previous version), markj Sponsored by: The FreeBSD Foundation Differential revision: https://reviews.freebsd.org/D227588 Notes: svn path=/head/; revision=368649
* | | Enable ROUTE_MPATH support in GENERIC kernels.Alexander V. Chernikov2020-12-145-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ability to load-balance traffic over multiple path is a must-have thing for routers. It may be used by the servers to balance outgoing traffic over multiple default gateways. The previous implementation, RADIX_MPATH stayed in the shadow for too long. It was not well maintained, which lead us to a vicious circle - people were using non-contiguous mask or firewalls to achieve similar goals. As a result, some routing daemons implementation still don't have multipath support enabled for FreeBSD. Turning on ROUTE_MPATH by default would fix it. It will allow to reduce networking feature gap to other operating systems. Linux and OpenBSD enabled similar support at least 5 years ago. ROUTE_MPATH does not consume memory unless actually used. It enables around ~1k LOC. It does not bring any behaviour changes for userland. Additionally, feature is (temporarily) turned off by the net.route.multipath sysctl defaulting to 0. Differential Revision: https://reviews.freebsd.org/D27428 Notes: svn path=/head/; revision=368648
* | | Improve the counting of blocks used to transfer a file from theMichael Tuexen2020-12-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | server to the client in case of not using an OACK: Don't miss the first block in case of it is not also the last one. MFC after: 1 week Notes: svn path=/head/; revision=368647
* | | Remove unused functions and variables in cpufunc.[ch].Michal Meloun2020-12-144-125/+3
| | | | | | | | | | | | Notes: svn path=/head/; revision=368635
* | | Finish implementation of ARM PMU interrupts.Michal Meloun2020-12-141-35/+171
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ARM PMU may use single per-core interrupt or may use multiple generic interrupts, one per core. In this case, special attention must be paid to the correct identification of the physical location of the core, its order in the external database (FDT) and the associated cpuid. Also keep in mind that a SoC can have multiple different PMUs (usually one per cluster) Notes: svn path=/head/; revision=368634
* | | Verify (and fix) the context_id argument passed to the mpentry () by PSCI.Michal Meloun2020-12-141-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some older PSCI implementations corrupt (or do not pass) the context_id argument to newly started secondary cores. Although the ideal solution to this problem is u-boot update, we can find the correct value for the argument (cpuid) by comparing of real core mpidr register with the value stored in pcu->mpidr. MFC after: 2 weeks Notes: svn path=/head/; revision=368633
* | | Be bug compatible with other operating systems by allowing non-sequentialHans Petter Selasky2020-12-141-8/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | interface numbering for USB descriptors in userspace. Else certain USB control requests using the interface number, won't be recognized by the USB firmware. Refer to section 9.2.3 in the USB 2.0 specification: Interfaces are numbered from zero to one less than the number of concurrent interfaces supported by the configuration. PR: 251784 MFC after: 1 week Sponsored by: Mellanox Technologies // NVIDIA Networking Notes: svn path=/head/; revision=368632
* | | loader: Ignore the .interp section on RISC-VJessica Clarke2020-12-141-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this we risk having the .interp section be placed earlier in the file and mess with section offsets; in particular it has been seen to be placed at the start of the file and cause the PE/COFF header to not be at address 0. This is the same fix as was done for arm64 in r365578. Reviewed by: mhorne, imp Approved by: mhorne, imp Differential Revision: https://reviews.freebsd.org/D27603 Notes: svn path=/head/; revision=368626