aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Remove -I flag for include path that doesn't existAlex Richardson2020-09-1011-11/+0
| | | | | | | | | | Found this while trying to get macOS bootstrap to work again after OpenZFS merge. Reviewed By: #zfs, freqlabs Differential Revision: https://reviews.freebsd.org/D26192 Notes: svn path=/head/; revision=365580
* Move the pl061 acpi attachment earlierAndrew Turner2020-09-102-2/+4
| | | | | | | | | | | | | As the pl061 driver can be an interrupt controller attach it earlier in the boot so other drivers can use it. Use a new GPIO xref to not conflict with the existing root interrupt controller. Sponsored by: Innovate UK Notes: svn path=/head/; revision=365579
* Ignore the .interp section in the arm64 EFI loaderAndrew Turner2020-09-101-0/+1
| | | | | | | | | | | | When building the loader an unneeded .interp section may be added. Move this to the unused section region so offsets of used sections don't change. Obtained from: CheriBSD Sponsored by: Innovate UK Notes: svn path=/head/; revision=365578
* Move the rid variable to the generic iommu context.Ruslan Bukin2020-09-103-8/+9
| | | | | | | | | | | It could be used in various IOMMU platforms, not only DMAR. Reviewed by: kib Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D26373 Notes: svn path=/head/; revision=365577
* Set AlignTrailingComments in the clang-format configAlex Richardson2020-09-101-1/+1
| | | | | | | | | | | | This seems to be fairly common in existing code and often looks better when adding trailing comments to e.g. enumerators or array initializers. See D26340 for more context. Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D26391 Notes: svn path=/head/; revision=365576
* Use the correct config names for some .clang-format entriesAlex Richardson2020-09-101-2/+2
| | | | | | | | | Those values are enum entries and should use "Never" instead of "false". clang-format currently accepts false, but it's better to use the correct syntax in case that changes in the future. Notes: svn path=/head/; revision=365575
* Add author entity for rhurlin, part 2Rainer Hurling2020-09-101-0/+4
| | | | | | | | | | | Forgot to submit step 5 from procedure 1 in Chap. 6 of the Committers Guide: Update Mentor and Mentee Information Reviewed by: arrowd (mentor), tcberner (mentor) Approved by: arrowd (mentor), tcberner (mentor) Notes: svn path=/head/; revision=365574
* Switch the name of the pl061 driver to gpioAndrew Turner2020-09-102-2/+2
| | | | | | | | | We need it to be named gpio for gpiobus to work. Sponsored by: Innovate UK Notes: svn path=/head/; revision=365559
* Only manage ofw gpio providers on ofw systemsAndrew Turner2020-09-101-2/+4
| | | | | | | | | | | On arm64 we may boot via ACPI. In this case we will still try to manage the gpio providers as if we are using FDT. Fix this by checking if the FDT node is valid before registering a cross reference. Sponsored by: Innovate UK Notes: svn path=/head/; revision=365558
* Use the correct variable to check which interrupt mode to useAndrew Turner2020-09-101-5/+5
| | | | | | | | | | In the PL061 driver we incorrectly used the mask rather than mode to find how to configure the interrupt. Sponsored by: Innovate UK Notes: svn path=/head/; revision=365557
* Fix RADIX_MPATH build broken by r365521.Alexander V. Chernikov2020-09-101-3/+5
| | | | | | | Reported by: jenkins, Hartmann, O. <ohartmann at walstatt.org> Notes: svn path=/head/; revision=365554
* Remove vm_map_create(9) KPI's manpage according to r364302Li-Wen Hsu2020-09-104-68/+3
| | | | | | | | | | Submitted by: Ka Ho Ng <khng300@gmail.com> Reviewed by: markj Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D26372 Notes: svn path=/head/; revision=365553
* ice_ddp: Fix 1.3.16.0 packageEric Joyner2020-09-101-0/+0
| | | | | | | | | | | The version uploaded in the previous commit was far too small. This one should be the right size. MFC after: 1 day Sponsored by: Intel Corporation Notes: svn path=/head/; revision=365550
* cp: use copy_file_range(2)Alan Somers2020-09-101-21/+10
| | | | | | | | | | | | | | | | | This has three advantages over write(2)/read(2): * Fewer context switches and data copies * Mostly preserves a file's sparseness * On some file systems (currently NFS 4.2) the file system will perform the copy in an especially efficient way. Reviewed by: rmacklem MFC after: 2 weeks Sponsored by: Axcient Differential Revision: https://reviews.freebsd.org/D26377 Notes: svn path=/head/; revision=365549
* [PowerPC] Fix setting of time in OPALBrandon Bergren2020-09-101-8/+9
| | | | | | | | | | | | | | | | | | | There were multiple bugs in the OPAL RTC code which had never been discovered, as the default configuration of OPAL machines is to have the BMC / FSP control the RTC. * Fix calling convention for setting the time -- the variables are passed directly in CPU registers, not via memory. * Fix bug in the bcd encoding routines. (from jhibbits) Tested on POWER9 Talos II (BE) and POWER9 Blackbird (LE). Reviewed by: jhibbits (in irc) Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=365548
* Add -z "TOS" option to ping6, to test DSCP/ECN valuesRichard Scheffenegger2020-09-102-2/+22
| | | | | | | | | | | | | | | | ping has the option to add the (deprecated) TOS byte using the -z option. Adding the same option, with the same (deprecated) Traffic Class Byte (nowadays actually DSCP and ECN fields) to ping6 to validate proper QoS processing in network switches. Reviewed by: tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26384 Notes: svn path=/head/; revision=365547
* cc_mod: remove unused CCF_DELACK definitionRichard Scheffenegger2020-09-101-1/+1
| | | | | | | | | | | | | | | | | During the DCTCP improvements, use of CCF_DELACK was removed. This change is just to rename the unused flag bit to prevent use of it, without also re-implementing the tcp_input and tcp_output interfaces. No functional change. Reviewed by: chengc_netapp.com, tuexen MFC after: 2 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D26181 Notes: svn path=/head/; revision=365546
* Add posixshmcontrol(1) support for largepage shm objects.Konstantin Belousov2020-09-091-10/+64
| | | | | | | | | | | | | | Create op with -l <largepage> option can create it, stat displays configured page size. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365525
* Add shm_create_largepage(3) helper for creation and configuration ofKonstantin Belousov2020-09-092-8/+109
| | | | | | | | | | | | | | | | largepage shm objects. And since we can, add memfd_create(MFD_HUGETLB) support, hopefully close enough to the Linux feature. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365524
* Fix compilation of libsysdecode after r365522, should have been part of it.Konstantin Belousov2020-09-091-0/+1
| | | | | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365523
* Support for userspace non-transparent superpages (largepages).Konstantin Belousov2020-09-096-28/+509
| | | | | | | | | | | | | | | | | | | Created with shm_open2(SHM_LARGEPAGE) and then configured with FIOSSHMLPGCNF ioctl, largepages posix shared memory objects guarantee that all userspace mappings of it are served by superpage non-managed mappings. Only amd64 for now, both 2M and 1G superpages can be requested, the later requires CPU feature. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365522
* Update nexthop handling for route addition/deletion in preparation for mpath.Alexander V. Chernikov2020-09-092-112/+244
| | | | | | | | | | | | | | | Currently kernel requests deletion for the certain routes with specified gateway, but this gateway is not actually checked. With multipath routes, internal gateway checking becomes mandatory. Add the logic performing this check. Generalise RTF_PINNED routes to the generic route priorities, simplifying the logic. Add lookup_prefix() function to perform exact match search based on data in @info. Differential Revision: https://reviews.freebsd.org/D26356 Notes: svn path=/head/; revision=365521
* vm_map: Add a map entry kind that can only be clipped at specific boundary.Konstantin Belousov2020-09-092-61/+188
| | | | | | | | | | | | | | | | | | | The entries and their clip boundaries must be aligned on supported superpages sizes from pagesizes[]. vm_map operations return Mach error KERN_INVALID_ARGUMENT, which is usually translated to EINVAL, if it would require clip not at the boundary. In other words, entries force preserving virtual addresses superpage properties. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365520
* Add pmap_enter(9) PMAP_ENTER_LARGEPAGE flag and implement it on amd64.Konstantin Belousov2020-09-092-0/+121
| | | | | | | | | | | | | | | | | | The flag requests entry of non-managed superpage mapping of size pagesizes[psind] into the page table. Pmap supports fake wiring of the largepage mappings. Only attributes of the largepage mapping can be changed by calling pmap_enter(9) over existing mapping, physical address of the page must be unchanged. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365518
* Retain marking net.fibs sysctl as a tunable.Alexander V. Chernikov2020-09-091-2/+2
| | | | | | | Suggested by: avg Notes: svn path=/head/; revision=365517
* Add vm_map_find_aligned(9).Konstantin Belousov2020-09-092-0/+15
| | | | | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365516
* Move MAP_32BIT_MAX_ADDR definition to sys/mman.h.Konstantin Belousov2020-09-092-2/+3
| | | | | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365515
* Fix assert.Konstantin Belousov2020-09-091-1/+1
| | | | | | | | Noted by: alc MFC after: 1 week Notes: svn path=/head/; revision=365514
* Prepare to handle non-trivial errors from vm_map_delete().Konstantin Belousov2020-09-093-8/+14
| | | | | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365513
* amd64 pmap: teach functions walking user page tables about PG_PS bit in PDPE.Konstantin Belousov2020-09-091-40/+130
| | | | | | | | | | | | | Only unmanaged 1G superpages are handled. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365512
* amd64: report support for 1G superpages in getpagesizes(2).Konstantin Belousov2020-09-091-0/+5
| | | | | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365511
* uipc_shm.c: Move comment where it belongs.Konstantin Belousov2020-09-091-5/+5
| | | | | | | | | | | Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D24652 Notes: svn path=/head/; revision=365510
* Follow-up r364753 by enabling compiler-rt's atomic implementation onlyDimitry Andric2020-09-091-1/+6
| | | | | | | | | | | | | for clang, as it uses clang specific builtins, and does not compile correctly with gcc. Note that gcc packages usually come with their own libatomic, providing these primitives. PR: 230888 MFC after: 3 days X-MFC-With: r364753 Notes: svn path=/head/; revision=365509
* periodic.conf(5): don't truncate interface names reported by 420.status-network.Robert Wing2020-09-092-3/+3
| | | | | | | | | | | | | | | | | | | | The daily periodic script, 420.status-network uses netstat(1) to report interface status. By default, netstat(1) truncates interface names. Add the '-W' flag (avoid truncating interface names) as the default for 'daily_status_network_netstat_flags' in periodic.conf(5). The default 420.status-network command is now 'netstat -i -d -W -n'. PR: 163572 Reported by: kes-kes@yandex.ru Reviewed by: allanjude (mentor) bcr (manpages) Approved by: allanjude (mentor) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26023 Notes: svn path=/head/; revision=365508
* Merge commit e6bb4c8e7 from llvm git (by Craig Topper):Dimitry Andric2020-09-091-1/+1
| | | | | | | | | | | | | | | | | | | | [X86] SSE4_A should only imply SSE3 not SSSE3 in the frontend. SSE4_1 and SSE4_2 due imply SSSE3. So I guess I got confused when switching the code to being table based in D83273. Fixes PR47464 This should fix builds with -march=amdfam10 emitting SSSE3 instructions such as pshufb, which lead to programs crashing with SIGILL on such processors. Reported by: avg MFC after: 6 weeks X-MFC-With: r364284 Notes: svn path=/head/; revision=365507
* getlogin_r: fix the type of lenKyle Evans2020-09-094-5/+15
| | | | | | | | | | | | | | | | | | | | | | getlogin_r is specified by POSIX to to take a size_t len, not int. Fix our version to do the same, bump the symbol version due to ABI change and provide compat. This was reported to break compilation of Ruby 2.8. Some discussion about the necessity of the ABI compat did take place in the review. While many 64-bit platforms would likely be passing it in a 64-bit register and zero-extended and thus, not notice ABI breakage, some do sign-extend (e.g. mips). PR: 247102 Submitted by: Bertram Scharpf <software@bertram-scharpf.de> (original) Submitted by: cem (ABI compat) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26335 Notes: svn path=/head/; revision=365506
* stand/efihttp: Work around a bug in edk2 http instance reconfigurationD Scott Phillips2020-09-091-0/+16
| | | | | | | | | | | | | | | | | | | A bug in the EFI HTTP driver of TianoCore EDK2 causes memory corruption when an http instance that uses tls is reconfigured, leading to a crash. Work around this by forcing a new http instance for each request instead of reconfiguring the existing one. The upstream bug report is https://bugzilla.tianocore.org/show_bug.cgi?id=1917 Submitted by: bcran Reviewed By: imp, kevans, tsoome MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21281 Notes: svn path=/head/; revision=365505
* In r354148 the goal was to check THREAD_CAN_SLEEP() only once for theGleb Smirnoff2020-09-092-2/+2
| | | | | | | | | | | | purpose of epoch_trace() and for calling subsequent panic, but to keep code fully under INVARIANTS, so don't use bare function call to panic(). However, at the last stage of review a true value slipped in, while always false was assumed. I checked that in email archive with kib@. Noticed by: trasz Notes: svn path=/head/; revision=365504
* ggate: Fix ggated/ggatec debug print of offsets.Mark Johnston2020-09-092-13/+16
| | | | | | | | | | | | The request offset and length are always unsigned, so print them as such. Submitted by: Yoshihiro Ota <ota@j.email.ne.jp> MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D21388 Notes: svn path=/head/; revision=365502
* So it turns out that syzkaller hit another crash. It has to do with switchingRandall Stewart2020-09-092-3/+23
| | | | | | | | | | | | | | | stacks with a SENT_FIN outstanding. Both rack and bbr will only send a FIN if all data is ack'd so this must be enforced. Also if the previous stack sent the FIN we need to make sure in rack that when we manufacture the "unknown" sends that we include the proper HAS_FIN bits. Note for BBR we take a simpler approach and just refuse to switch. Sponsored by: Netflix Inc. Differential Revision: https://reviews.freebsd.org/D26269 Notes: svn path=/head/; revision=365501
* certctl: fix hashed link generation with duplicate subjectsKyle Evans2020-09-091-14/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | Currently, certctl rehash will just keep clobbering .0 rather than incrementing the suffix upon encountering a duplicate. Do this, and do it for blacklisted certs as well. This also improves the situation with the blacklist to be a little less flakey, comparing cert fingerprints for all certs with a matching subject hash in the blacklist to determine if the cert we're looking at can be installed. Future work needs to completely revamp the blacklist to align more with how it's described in PR 246614. In particular, /etc/ssl/blacklisted should go away to avoid potential confusion -- OpenSSL will not read it, it's basically certctl internal. PR: 246614 Reviewed by: Michael Osipov <michael.osipov siemens com> Tested by: Michael Osipov With suggestions from: Michael Osipov MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D26167 Notes: svn path=/head/; revision=365500
* Update nvi to 2.2.0Baptiste Daroussin2020-09-09156-1632/+1569
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Main changes: * Vim-style expandtab option * Provides Turkish translation * Backspace now deletes \ rather than being escaped * T during motion commands is now VI-compatible * Encoding related fixes, such as UTF-8 detection * Fixed a number of memory management issues MFC after: 3 weeks Notes: svn path=/head/; revision=365499
| * Import missing files from the nvi 2.2.0 previous half done importvendor/nvi/2.2.0Baptiste Daroussin2020-09-097-0/+599
| | | | | | | | | | Notes: svn path=/vendor/nvi/dist/; revision=365497 svn path=/vendor/nvi/2.2.0/; revision=365498; tag=vendor/nvi/2.2.0
| * Import nvi 2.2.0Baptiste Daroussin2020-09-09155-2150/+1493
| | | | | | | | Notes: svn path=/vendor/nvi/dist/; revision=365495
* | libc tests: dynthr_mod: fix some WARNS issuesKyle Evans2020-09-091-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This is being addressed as part of a side-patch I'm working on that builds all the things with WARNS=6, instead of relying on it being supplied in just shallow parts of the build with higher-level Makefile.inc. Provide a prototype for mod_main and annotate the thread function argument as unused. MFC after: 1 week Notes: svn path=/head/; revision=365494
* | libc/resolv: attempt to fix the test under WARNS=6Kyle Evans2020-09-091-15/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a side-change that I'm working on to start defaulting src builds to WARNS=6 where WARNS isn't otherwise specified, GCC6 (and clang, to a lesser extent) pointed out a number of issues with the resolv tests: - Global method variable that gets shadowed in run_tests() - Signed/unsigned comparison between i in run_tests() and hosts->sl_cur The shadowed variable looks like it might actually be bogus as written, as we pass it to RUN_TESTS -> run_tests, but other parts use the global method instead. This change is mainly geared towards correcting that by removing the global and plumbing the method through from run_tests -> run into the new thread. For the signed/unsigned comparison, there's no compelling reason to not just switch i/nthreads/nhosts to size_t. The review also included a change to the load() function that was better addressed by jhb in r365302. Reviewed by: ngie, pstef MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D24844 Notes: svn path=/head/; revision=365493
* | src.conf(5): regen after r365491Kyle Evans2020-09-091-7/+1
| | | | | | | | Notes: svn path=/head/; revision=365492
* | opts: FREEBSD_UPDATE no longer relies on PORTSNAPKyle Evans2020-09-091-5/+0
| | | | | | | | | | | | | | | | | | | | phttpget is no longer tied to the portsnap build as of r365490. MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D26255 Notes: svn path=/head/; revision=365491
* | phttpget: move out of portsnapKyle Evans2020-09-097-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, WITHOUT_PORTSNAP forces WITHOUT_FREEBSD_UPDATE because the latter relies on phttpget, which lives inside the portsnap build bits. Remove the dependency between these two options by moving phttpget out into ^/libexec and building/installing it if either WITH_PORTSNAP or WITH_FREEBSD_UPDATE. Future work could remove the conditional if it's decided that users will use it independently of either the current in-base consumers. Reported by: swills Reviewed by: jilles, emaste MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D26255 Notes: svn path=/head/; revision=365490
* | [PowerPC64LE] PPC64LE support for libelf.Brandon Bergren2020-09-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | Fix native detection when building on powerpc64le. I will be submitting this and r361104 upstream shortly. Sponsored by: Tag1 Consulting, Inc. Notes: svn path=/head/; revision=365489