aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Mark padlock(4) and cryptocteon(4) as software drivers.John Baldwin2020-06-092-2/+2
| | | | | | | | | | | Both already return the accelerated software priority from cryptodev_probesession. Sponsored by: Chelsio Communications Differential Revision: https://reviews.freebsd.org/D25125 Notes: svn path=/head/; revision=361990
* powerpc/pmap: Fix wired memory leak in booke64 page directoriesJustin Hibbits2020-06-091-18/+24
| | | | | | | | | | | | Properly handle reference counts in the 64-bit pmap page directories. Otherwise all page table pages would leak due to over-referencing. This would cause a quick enter to swap on a desktop system (AmigaOne X5000) when quitting and rerunning applications, or just building world. Add an INVARIANTS check to validate no leakage at pmap release time. Notes: svn path=/head/; revision=361988
* Prevent TCP Cubic to abruptly increase cwnd after slow-startRichard Scheffenegger2020-06-091-9/+19
| | | | | | | | | | | | | | | | | | Introducing flags to track the initial Wmax dragging and exit from slow-start in TCP Cubic. This prevents sudden jumps in the caluclated cwnd by cubic, especially when the flow is application limited during slow start (cwnd can not grow as fast as expected). The downside is that cubic may remain slightly longer in the concave region before starting the convex region beyond Wmax again. Reviewed by: chengc_netapp.com, tuexen (mentor) Approved by: tuexen (mentor), rgrimes (mentor, blanket) MFC after: 3 weeks Sponsored by: NetApp, Inc. Differential Revision: https://reviews.freebsd.org/D23655 Notes: svn path=/head/; revision=361987
* Merge bmake-20200606Simon J. Gerraty2020-06-0919-117/+394
|\ | | | | | | | | | | | | | | | | | | Relevant items from ChangeLog: o dir.c: cached_stats - don't confuse stat and lstat results. o var.c: add :Or for reverse sort. Notes: svn path=/head/; revision=361986
| * Import bmake-20200606vendor/NetBSD/bmake/20200606Simon J. Gerraty2020-06-0916-112/+389
| | | | | | | | | | | | | | | | | | | | | | Relevant items from ChangeLog: o dir.c: cached_stats - don't confuse stat and lstat results. o var.c: add :Or for reverse sort. Notes: svn path=/vendor/NetBSD/bmake/dist/; revision=361954 svn path=/vendor/NetBSD/bmake/20200606/; revision=361955; tag=vendor/NetBSD/bmake/20200606
* | Fix boot of wandquad after DTS updateAndreas Tobler2020-06-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | In the recent dts sync the name of the aips-bus@ changed to bus@. Reflect this change and add an additional OF_finddevice in fix_fdt_interrupt_data() and in fix_fdt_iomuxc_data() with bus@ only. Iow, keep the old naming for compatibility. Discussed with: ian@ Notes: svn path=/head/; revision=361985
* | To reduce the size of an rb_node, drop the color field. Set the leastDoug Moore2020-06-092-143/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | significant bit in the pointer to the node from its parent to indicate that the node is red. Have the tree rotation macros leave the old-parent/new-child node red and the new-parent/old-child node black. This change makes RB_LEFT and RB_RIGHT no longer assignable, and RB_COLOR no longer defined. Any code that modifies the tree or examines a node color would have to be modified after this change. Reviewed by: markj Tested by: pho Differential Revision: https://reviews.freebsd.org/D25105 Notes: svn path=/head/; revision=361984
* | iflib: netmap: honor netmap_irx_irq return valuesVincenzo Maffione2020-06-091-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the receive interrupt routine, always call netmap_rx_irq(). The latter function will return != NM_IRQ_PASS if netmap is not active on that specific receive queue, so that the driver can go on with iflib_rxeof(). Note that netmap supports partial opening, where only a subset of the RX or TX rings can be open in netmap mode. Checking the IFCAP_NETMAP flag is not enough to make sure that the queue is indeed in netmap mode. Moreover, in case netmap_rx_irq() returns NM_IRQ_RESCHED, it means that netmap expects the driver to call netmap_rx_irq() again as soon as possible. Currently, this may happen when the device is attached to a VALE switch. Reviewed by: gallatin MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25167 Notes: svn path=/head/; revision=361982
* | release: amd64 efi boot name is bootx64Emmanuel Vadot2020-06-091-1/+1
| | | | | | | | | | | | | | | | | | | | efi_boot_name is just used for arm image so no harm done. Reported by: gonzo MFC after: 3 days Notes: svn path=/head/; revision=361980
* | libusb: improve compatibilityKyle Evans2020-06-094-1/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Specifically, add LIBUSB_CLASS_PHYSICAL and the libusb_has_capability API. Descriptions and functionality for these derived from the documentation at [0]. The current set of capabilities are all supported by libusb. These were detected as missing after updating net/freerdp to 2.1.1, which attempted to use both. [0] http://libusb.sourceforge.net/api-1.0/group__libusb__misc.html Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25194 Notes: svn path=/head/; revision=361977
* | Similar to UART on ThunderX2, the ARM Coresight (ETM component)Ruslan Bukin2020-06-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | set ResourceProducer on memory resources: ignore it. Tested on ARM N1SDP board. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=361976
* | Refactor ptrace() ABI compatibility.John Baldwin2020-06-098-231/+252
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a freebsd32_ptrace() and move as many freebsd32 shims as possible to freebsd32_ptrace(). Aside from register sets, freebsd32 passes pointers to native structures to kern_ptrace() and converts to/from native/32-bit structure formats in freebsd32_ptrace() outside of kern_ptrace(). Reviewed by: kib Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D25195 Notes: svn path=/head/; revision=361975
* | ARM Embedded Trace Macrocell v4.x driver:Ruslan Bukin2020-06-095-38/+171
| | | | | | | | | | | | | | | | | | | | o Split-out FDT attachment to a separate file; o Add ACPI attachment. Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=361974
* | Fix style: wrap long lines.Ruslan Bukin2020-06-091-8/+11
| | | | | | | | | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=361969
* | Rename coresight drivers: use underscores in filenames.Ruslan Bukin2020-06-0910-9/+9
| | | | | | | | | | | | | | Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=361968
* | Assert on pg_jobc state.Mateusz Guzik2020-06-091-2/+4
| | | | | | | | | | | | | | Stolen from NetBSD. Notes: svn path=/head/; revision=361967
* | vm: rework swap_pager_status to execute in constant timeMateusz Guzik2020-06-091-9/+3
| | | | | | | | | | | | | | | | | | | | The lock-protected iteration is trivially avoidable. This removes a serialisation point from Linux binaries (which end up calling here from the sysinfo syscall). Notes: svn path=/head/; revision=361965
* | coufreq_dt: Rename DEBUG to DPRINTFEmmanuel Vadot2020-06-091-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | DEBUG is a kernel configuration flag and if used cpufreq_dt.c will fail the build of kernel. PR: 246867 Submitted by: Oskar Holmund (oskar.holmlund@ohdata.se) MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D25080 Notes: svn path=/head/; revision=361964
* | ps: remove xo_no_setlocale() callYuri Pankov2020-06-091-1/+0
| | | | | | | | | | | | | | | | | | | | Apparently libxo was fixed to do the right thing on FreeBSD, and calling xo_no_setlocale() is no longer needed. Reported by: phil Notes: svn path=/head/; revision=361962
* | Post CVE-2020-12695 cleanup patch:Cy Schubert2020-06-091-0/+4
| | | | | | | | | | | | | | | | | | | | Resolve a Linuxism to fix the build. MFC after: 3 days X-MFC with: r361957, r361958, r361959 Notes: svn path=/head/; revision=361960
* | MFV r361938:Cy Schubert2020-06-091-2/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream commit message: [PATCH 3/3] WPS UPnP: Handle HTTP initiation failures for events more properly While it is appropriate to try to retransmit the event to another callback URL on a failure to initiate the HTTP client connection, there is no point in trying the exact same operation multiple times in a row. Replve the event_retry() calls with event_addr_failure() for these cases to avoid busy loops trying to repeat the same failing operation. These potential busy loops would go through eloop callbacks, so the process is not completely stuck on handling them, but unnecessary CPU would be used to process the continues retries that will keep failing for the same reason. Obtained from: https://w1.fi/security/2020-1/\ 0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch MFC after: 3 days Security: VU#339275 and CVE-2020-12695 Notes: svn path=/head/; revision=361959
| * | Upstream commit message:Cy Schubert2020-06-081-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [PATCH 3/3] WPS UPnP: Handle HTTP initiation failures for events more properly While it is appropriate to try to retransmit the event to another callback URL on a failure to initiate the HTTP client connection, there is no point in trying the exact same operation multiple times in a row. Replve the event_retry() calls with event_addr_failure() for these cases to avoid busy loops trying to repeat the same failing operation. These potential busy loops would go through eloop callbacks, so the process is not completely stuck on handling them, but unnecessary CPU would be used to process the continues retries that will keep failing for the same reason. Obtained from: https://w1.fi/security/2020-1/\ 0003-WPS-UPnP-Handle-HTTP-initiation-failures-for-events-.patch Security: VU#339275 and CVE-2020-12695 Notes: svn path=/vendor/wpa/dist/; revision=361938
* | | MFV r361937:Cy Schubert2020-06-092-3/+9
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream commit message: [PATCH 2/3] WPS UPnP: Fix event message generation using a long URL path More than about 700 character URL ended up overflowing the wpabuf used for building the event notification and this resulted in the wpabuf buffer overflow checks terminating the hostapd process. Fix this by allocating the buffer to be large enough to contain the full URL path. However, since that around 700 character limit has been the practical limit for more than ten years, start explicitly enforcing that as the limit or the callback URLs since any longer ones had not worked before and there is no need to enable them now either. Obtained from: https://w1.fi/security/2020-1/\ 0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch MFC after: 3 days Security: VU#339275 and CVE-2020-12695 Notes: svn path=/head/; revision=361958
| * | Upstream commit message:Cy Schubert2020-06-082-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [PATCH 2/3] WPS UPnP: Fix event message generation using a long URL path More than about 700 character URL ended up overflowing the wpabuf used for building the event notification and this resulted in the wpabuf buffer overflow checks terminating the hostapd process. Fix this by allocating the buffer to be large enough to contain the full URL path. However, since that around 700 character limit has been the practical limit for more than ten years, start explicitly enforcing that as the limit or the callback URLs since any longer ones had not worked before and there is no need to enable them now either. Obtained from: https://w1.fi/security/2020-1/\ 0002-WPS-UPnP-Fix-event-message-generation-using-a-long-U.patch Security: VU#339275 and CVE-2020-12695 Notes: svn path=/vendor/wpa/dist/; revision=361937
* | | MFV r361936:Cy Schubert2020-06-093-4/+39
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Upstream commit message: [PATCH 1/3] WPS UPnP: Do not allow event subscriptions with URLs to other networks The UPnP Device Architecture 2.0 specification errata ("UDA errata 16-04-2020.docx") addresses a problem with notifications being allowed to go out to other domains by disallowing such cases. Do such filtering for the notification callback URLs to avoid undesired connections to external networks based on subscriptions that any device in the local network could request when WPS support for external registrars is enabled (the upnp_iface parameter in hostapd configuration). Obtained from: https://w1.fi/security/2020-1/\ 0001-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs-.patch MFC after: 3 days Security: VU#339275 and CVE-2020-12695 Notes: svn path=/head/; revision=361957
| * | Upstream commit message:Cy Schubert2020-06-083-4/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [PATCH 1/3] WPS UPnP: Do not allow event subscriptions with URLs to other networks The UPnP Device Architecture 2.0 specification errata ("UDA errata 16-04-2020.docx") addresses a problem with notifications being allowed to go out to other domains by disallowing such cases. Do such filtering for the notification callback URLs to avoid undesired connections to external networks based on subscriptions that any device in the local network could request when WPS support for external registrars is enabled (the upnp_iface parameter in hostapd configuration). Obtained from: https://w1.fi/security/2020-1/\ 0001-WPS-UPnP-Do-not-allow-event-subscriptions-with-URLs-.patch MFC after: 1 week Security: VU#339275 and CVE-2020-12695 Notes: svn path=/vendor/wpa/dist/; revision=361936
* | | Fix a bug where XU_NGROUPS + 1 groups might be copied.Rick Macklem2020-06-091-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r361780 fixed the code so that it would only remove the duplicate when it actually existed. However, that might have resulted in XU_NGROUPS + 1 groups being copied, running off the end of the array. This patch fixes the problem. Spotted during code inspection for other mountd changes. MFC after: 2 weeks Notes: svn path=/head/; revision=361956
* | | Stop computing a "sharedram" value when emulating Linux sysinfo(2).Mark Johnston2020-06-081-9/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The previous code was computing an incorrect value in a very expensive manner. "sharedram" is supposed to be the amount of memory used by named swap objects, which on FreeBSD basically corresponds to memory usage by shared memory objects (including, for example, GEM objects) and tmpfs. We currently have no cheap way to count such pages. The previous code tried to determine the number of copy-on-write pages shared between processes. Just replace the computed value with 0. illumos reportedly does the same thing. Linux itself did not populate this field until a 2014 commit, "mm: export NR_SHMEM via sysinfo(2) / si_meminfo() interfaces". Reported by: mjg MFC after: 1 week Notes: svn path=/head/; revision=361945
* | | virtio: Support non-legacy network device and queueJessica Clarke2020-06-084-8/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The non-legacy interface always defines num_buffers in the header, regardless of whether VIRTIO_NET_F_MRG_RXBUF, just leaving it unused. We also need to ensure our virtqueue doesn't filter out VIRTIO_F_VERSION_1 during negotiation, as it supports non-legacy transports just fine. This fixes network packet transmission on TinyEMU. Reviewed by: br, brooks (mentor), jhb (mentor) Approved by: br, brooks (mentor), jhb (mentor) Differential Revision: https://reviews.freebsd.org/D25132 Notes: svn path=/head/; revision=361944
* | | virtio_mmio: Negotiate the upper half of the feature bits tooJessica Clarke2020-06-081-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The feature bits are exposed as a 32-bit register with 2 banks, so we should negotiate both halves. Notably, VIRTIO_F_VERSION_1 is in the upper half, and will be used in an upcoming commit. The PCI bus driver also has this bug, but the legacy BAR layout did not include selector registers and is rather different from the modern layout, so it remains solely as legacy. Reviewed by: br, brooks (mentor), jhb (mentor) Approved by: br, brooks (mentor), jhb (mentor) Differential Revision: https://reviews.freebsd.org/D25131 Notes: svn path=/head/; revision=361943
* | | Use Fl instead of Ar for long flagsMateusz Piotrowski2020-06-081-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Also, bump date after r361935. MFC after: 1 week Notes: svn path=/head/; revision=361940
* | | Implement zero-copy iSCSI target transmission/read.Alexander Motin2020-06-087-44/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ICL_NOCOPY flag to icl_pdu_append_data(), specifying that the method can just reference the data buffer instead of immediately copying it. Extend the offload KPI with optional PDU queue method, allowing to specify completion callback, called when all the data referenced by above has been transferred and won't be accessed any more (the buffers can be freed). Implement the above functionality in software iSCSI driver using mbufs with external storage and reference counter. Note that some NICs (ixl(4)) may keep the mbuf in TX queue for a long time, so CTL has to be ready. Add optional method to struct ctl_scsiio for buffer reference counting. Implement it for CTL block backend, allowing to delay free of the struct ctl_be_block_io and memory it references as needed. In first reincarnation of the patch I tried to delay whole I/O as it is done for FibreChannel, that was cleaner, but due to the above callback delays I had to rewrite it this way to not leave LUN referenced potentially for hours or more. All together on sequential read from ZFS ARC this saves about 30% of CPU time and memory bandwidth by avoiding one of 3 memory copies (the other two are from ZFS ARC to DMU cache and then from DMU cache to CTL buffers). On tests with 2x Xeon Silver 4114 this allows to reach full line rate of 100GigE NIC. Tests with Gold CPUs and two 100GigE NICs are stil TBD, but expectations to saturate them are pretty high. ;) Discussed with: Chelsio Sponsored by: iXsystems, Inc. Notes: svn path=/head/; revision=361939
* | | Add VHDX support to mkimg(1)Oleksandr Tymoshenko2020-06-0828-1/+2510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | VHDX is the successor of Microsoft's VHD file format. It increases maximum capacity of the virtual drive to 64TB and introduces features to better handle power/system failures. VHDX is the required format for 2nd generation Hyper-V VMs. Reviewed by: marcel MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D25184 Notes: svn path=/head/; revision=361935
* | | Whitespace cleanups and removal of a stale comment.Michael Tuexen2020-06-083-4/+0
| | | | | | | | | | | | | | | | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=361934
* | | loader: install allow for more complete device spec in urlSimon J. Gerraty2020-06-081-19/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Rework to simplify and impose sane url syntax. That is we allow for file://[devname[:fstype]]/package Reviewed by: stevek MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org//D25134 Notes: svn path=/head/; revision=361933
* | | riscv: Use SBI shutdown call to implement RB_POWEROFFJessica Clarke2020-06-081-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently we only call sbi_shutdown in cpu_reset, which means we reach "Please press any key to reboot." even when RB_POWEROFF is set, and only once the user presses a key do we then shutdown. Instead, register a shutdown_final event handler and make an SBI shutdown call if RB_POWEROFF is set. Reviewed by: br, jhb (mentor), kp Approved by: br, jhb (mentor), kp Differential Revision: https://reviews.freebsd.org/D25183 Notes: svn path=/head/; revision=361932
* | | Move MPASS() macros to systm.h. They are widely used all overGleb Smirnoff2020-06-082-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the kernel and aren't contained only to the locking code. Reviewed by: kib, mjg Differential Revision: https://reviews.freebsd.org/D23656 Notes: svn path=/head/; revision=361931
* | | crashinfo: stop looking for gdb in /usr/bin/gdbEd Maste2020-06-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | As of r359457 we removed the GDB_LIBEXEC option, always installing in-tree gdb into /usr/libexec/. Thus, there is now no need for crashinfo to include /usr/bin/gdb in the list of pathnames to check when looking for gdb. Notes: svn path=/head/; revision=361930
* | | An important statistic in determining if a server process (or client) is ↵Randall Stewart2020-06-087-2/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | being delayed is to know the time to first byte in and time to first byte out. Currently we have no way to know these all we have is t_starttime. That (t_starttime) tells us what time the 3 way handshake completed. We don't know when the first request came in or how quickly we responded. Nor from a client perspective do we know how long from when we sent out the first byte before the server responded. This small change adds the ability to track the TTFB's. This will show up in BB logging which then can be pulled for later analysis. Note that currently the tracking is via the ticks variable of all three variables. This provides a very rough estimate (hz=1000 its 1ms). A follow-on set of work will be to change all three of these values into something with a much finer resolution (either microseconds or nanoseconds), though we may want to make the resolution configurable so that on lower powered machines we could still use the much cheaper ticks variable. Sponsored by: Netflix Inc. Differential Revision: https://reviews.freebsd.org/D24902 Notes: svn path=/head/; revision=361926
* | | Document that /lib is always in the list of shared library pathsMateusz Piotrowski2020-06-081-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | /lib was added to the list in r119011. MFC after: 1 week Notes: svn path=/head/; revision=361920
* | | RISC-V: Check that the DTB doesn't overlap with kernelAlex Richardson2020-06-084-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This can happen with very large kernels (e.g. ones embedding a root filesystem). The DTB written by OpenSBI/BBL is quite small so this is unlikely to hit important data, but if it does this can result in very confusing and hard-to-debug crashes. Add a KASSERT() and a verbose print to catch this problem with debug kernels. While this will not print any output by default if it fails (that would depend on EARLY_PRINTF), at least the kernel now halts reliably instead of randomly crashing. Reviewed By: mhorne Differential Revision: https://reviews.freebsd.org/D25153 Notes: svn path=/head/; revision=361905
* | | sys/riscv: Remove debug printfsAlex Richardson2020-06-081-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | They are only visible with EARLY_PRINTF so don't show up by default. Reviewed By: mhorne Differential Revision: https://reviews.freebsd.org/D25152 Notes: svn path=/head/; revision=361904
* | | RISC-V: handle DTB aligned to less than 2MBAlex Richardson2020-06-081-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default OpenSBI and BBL will pass the DTB at a 2MB-aligned address. However, by default there are no 2MB aligned regions between the SBI and the kernel, so we have to choose a 2MB aligned region after the kernel. OpenSBI defaults to placing the DTB 32MB after the start of the kernel but this is not sufficient for a kernel with a large MFS embedded. We could increase this offset to a larger number (e.g. 64/128/256) but that imposes restrictions on the minimum RAM size. Another solution would be to place the DTB between OpenSBI and the kernel at 1MB alignment, but current locore.S code assumes 2MB alignment. With this change I can now boot on QEMU with an OpenSBI configured to store the DTB at an offset of 1MB. See also https://github.com/riscv/opensbi/issues/169 Reviewed By: mhorne Differential Revision: https://reviews.freebsd.org/D25151 Notes: svn path=/head/; revision=361903
* | | RELNOTES: Post-portem note about sed(1) \x supportKyle Evans2020-06-081-0/+5
| | | | | | | | | | | | | | | | | | | | | Requested by: Oliver Pinter Notes: svn path=/head/; revision=361902
* | | powerpc/powernv: Don't configure disabled CPUsJustin Hibbits2020-06-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If the POWER firmware detects a bad CPU core, it will "GUARD" it out, marking it disabled. Any attempt to spin up a bad CPU will trigger a panic later on when waiting for threads on said core to wake up. Support limping along on fewer cores instead. Notes: svn path=/head/; revision=361901
* | | x86 boot.8: Remove obsolescent non-loader x86 boot documentationConrad Meyer2020-06-081-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | x86 boot uses loader(8) and the boot2-direct-to-kernel process is not supported. Remove the documentation, which doesn't document a working process and leads to confusion. PR: 247074 Reported by: Alex K. Notes: svn path=/head/; revision=361900
* | | services: Add SSDP to service databasePedro F. Giffuni2020-06-071-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is used for UPnP and is registered in the IANA database. MFC after: 2 weeks PR: 241573 Notes: svn path=/head/; revision=361898
* | | Retire SCTP_SO_LOCK_TESTING.Michael Tuexen2020-06-0712-666/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was intended to test the locking used in the MacOS X kernel on a FreeBSD system, to make use of WITNESS and other debugging infrastructure. This hasn't been used for ages, to take it out to reduce the #ifdef complexity. MFC after: 1 week Notes: svn path=/head/; revision=361895
* | | Remove now-unused GNU as build infrastructureEd Maste2020-06-0716-1570/+0
| | | | | | | | | | | | Notes: svn path=/head/; revision=361894
* | | bridge tests: Re-enable STP testKristof Provost2020-06-071-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This test should no longer provoke large amounts of traffic, which can overwhelm single-core systems, preventing them from making progress in the tests. The test can now be re-enabled. PR: 246448 Notes: svn path=/head/; revision=361893