------------------------------------------------------------------------ r367116 | kib | 2020-10-28 14:02:43 -0700 (Wed, 28 Oct 2020) | 3 lines MFC r366918: mmap(2): Document guard size for MAP_STACK and related EINVAL. ------------------------------------------------------------------------ r367124 | mav | 2020-10-28 17:30:38 -0700 (Wed, 28 Oct 2020) | 7 lines MFC r366733: Drop unsolicited responses to the still attaching CODECs. It is reported to fix kernel panics when early unsolicited responses delivered to the CODEC device not having driver attached yet. PR: 250248 ------------------------------------------------------------------------ r367128 | kib | 2020-10-29 04:09:48 -0700 (Thu, 29 Oct 2020) | 5 lines MFC r366932: sysv_sem: semusz depends on semume. PR: 250361 ------------------------------------------------------------------------ r367140 | brooks | 2020-10-29 11:29:22 -0700 (Thu, 29 Oct 2020) | 18 lines MFC r366911: vmapbuf: don't smuggle address or length in buf Instead, add arguments to vmapbuf. Since this argument is always a pointer use a type of void * and cast to vm_offset_t in vmapbuf. (In CheriBSD we've altered vm_fault_quick_hold_pages to take a pointer and check its bounds.) In no other situtation does b_data contain a user pointer and vmapbuf replaces b_data with the actual mapping. Suggested by: jhb Reviewed by: imp, jhb Obtained from: CheriBSD Sponsored by: DARPA Differential Revision: https://reviews.freebsd.org/D26784 ------------------------------------------------------------------------ r367154 | cy | 2020-10-29 17:32:14 -0700 (Thu, 29 Oct 2020) | 5 lines MFC r367069: Continued ipfilter #ifdef cleanup. The r343701 log entry contains a complete description. ------------------------------------------------------------------------ r367155 | cy | 2020-10-29 17:34:40 -0700 (Thu, 29 Oct 2020) | 8 lines MFC r367070: Remove a random equal sign from the example. It should not be there. It's a syntax error. PR: 210303 Reported by: leventelist at gmail.com ------------------------------------------------------------------------ r367157 | hselasky | 2020-10-30 01:05:47 -0700 (Fri, 30 Oct 2020) | 8 lines MFC r366961: Fix for loading cuse.ko via rc.d . Make sure we declare the cuse(3) module by name and not only by the version information, so that "kldstat -q -m cuse" works. Found by: Goran Mekic Sponsored by: Mellanox Technologies // NVIDIA Networking ------------------------------------------------------------------------ r367168 | markj | 2020-10-30 07:37:51 -0700 (Fri, 30 Oct 2020) | 3 lines MFC r366972: rtsold: Remove an incorrect __unused annotation ------------------------------------------------------------------------ r367169 | markj | 2020-10-30 07:38:17 -0700 (Fri, 30 Oct 2020) | 3 lines MFC r366968: ntb: Fix an assertion to permit >= 32 doorbells ------------------------------------------------------------------------ r367170 | markj | 2020-10-30 07:40:48 -0700 (Fri, 30 Oct 2020) | 3 lines MFC r366970: Add some missing nv(9) MLINKS ------------------------------------------------------------------------ r367171 | markj | 2020-10-30 07:41:19 -0700 (Fri, 30 Oct 2020) | 5 lines MFC r366577: col(1): Fix a couple of bugs PR: 249308 ------------------------------------------------------------------------ r367197 | gbe | 2020-10-31 04:56:13 -0700 (Sat, 31 Oct 2020) | 15 lines MFC r358891, r358894, r359454, r359513, r359550 and r359556 elf(5) Updates: - start documenting ELF note sections - Remove extra Sy from table header - table markup fixes - add definitions of FreeBSD notes - minor update to FreeBSD ELF note descriptions - correct and expand NT_FREEBSD_NOINIT_TAG description - expand on NT_FREEBSD_FEATURE_CTL bit definitions Reviewed by: emaste Approved by: emaste ------------------------------------------------------------------------ r367198 | gbe | 2020-10-31 05:05:00 -0700 (Sat, 31 Oct 2020) | 7 lines MFC r359608, r359611 elf(5) Updates - expand on NT_FREEBSD_FEATURE_CTL bit definitions - remove commented out leftovers ------------------------------------------------------------------------ r367200 | gbe | 2020-10-31 05:36:08 -0700 (Sat, 31 Oct 2020) | 2 lines MFC r359731: Add a basic manpage for smbfs(5) ------------------------------------------------------------------------ r367201 | gbe | 2020-10-31 05:37:26 -0700 (Sat, 31 Oct 2020) | 2 lines MFC r367091: Use my FreeBSD.org mail address in man pages I have written ------------------------------------------------------------------------ r367202 | gbe | 2020-10-31 05:39:22 -0700 (Sat, 31 Oct 2020) | 2 lines MFC r366946: socket(9): Remove duplicate word 'is is' ------------------------------------------------------------------------ r367205 | mmel | 2020-10-31 07:56:16 -0700 (Sat, 31 Oct 2020) | 11 lines MFC r353773: Update Armada 8k drivers to cover newly imported DT and latest changes in simple multifunction driver. - follow interrupt changes in DT. Split old ICU driver to function oriented parts and add drivers for newly defined parts (system error interrupts). - Many drivers are children of simple multifunction driver. But after r349596 simple MF driver doesn't longer exports memory resources, and all children must use syscon interface to access their registers. Adapt affected drivers to this fact. ------------------------------------------------------------------------ r367206 | mmel | 2020-10-31 07:59:39 -0700 (Sat, 31 Oct 2020) | 3 lines MFC r353774: Add driver for DesignWare PCIE core, and its Armada 8K specific attachement. ------------------------------------------------------------------------ r367208 | mmel | 2020-10-31 08:25:41 -0700 (Sat, 31 Oct 2020) | 16 lines MFC r355755,r358807: r355755: Add driver for Rockchip PCIe root complex found in RK3399 SOC. Unfortunately, there are some limitations: - memory aperture of his controller is only 16MiB, so it is nearly unusable for graphic cards - every attempt to generate type 1 config cycle always causes trap. These config cycles are disabled now and we don't support cards with PCIe switch. - in some cases, attempt to do config cycle to (probably) not-yet ready card also causes trap. This cannot be detected at runtime, but it seems like very rare issue. r358807: Add the missing brackets to the logical expression. ------------------------------------------------------------------------ r367210 | mmel | 2020-10-31 08:28:21 -0700 (Sat, 31 Oct 2020) | 19 lines MFC r360293,r360461: r360293: Reorder initialization steps for given pin. If pin is switched from fixed function to GPIO, it should have prepared direction, pull-up/down and default value before function gets switched. Otherwise we may produce unwanted glitch on output pin. Right order of drive strength settings is questionable, but I think that is slightly safer to do it also before function switch. r360461: Multiple fixes for rockchip iodomain driver: - always initialize selector of voltage signaling standard. Various versions of U-boot leaves voltage signaling standard settings for PMUIO2 domain in different state. Always initialize it into expected state. - start the driver as early as possible, the IO domains should be initialized before other drivers are attached. - rename RK3399 register to its name founds in TRM. ------------------------------------------------------------------------ r367211 | mmel | 2020-10-31 08:30:27 -0700 (Sat, 31 Oct 2020) | 4 lines MFC r360462: Don't try to re-initialize already preseted regulator. ------------------------------------------------------------------------ r367212 | mmel | 2020-10-31 08:36:41 -0700 (Sat, 31 Oct 2020) | 10 lines MFC r360463,r360469: r360463: Don't allow to use FPU inside of rtld library. Clang10 may use FPU instructions for optimizing operations with memory blocks. But we don't want to do lengthy save/restore of all FPU registers across each rtld_start() call. r360469: Move ARM specific flags to arm/Makefile.inc ------------------------------------------------------------------------ r367213 | mmel | 2020-10-31 08:38:41 -0700 (Sat, 31 Oct 2020) | 4 lines MFC r360464: Don't try to set frequendcy for enumerated but never started CPUs. ------------------------------------------------------------------------ r367214 | mmel | 2020-10-31 08:40:52 -0700 (Sat, 31 Oct 2020) | 6 lines MFC r360466: Export tracing facility of GIC500 ITS block. Possibility of tracing of processing message based interrupts is very useful for debugging of PCIe driver, mainly for its MSI part. ------------------------------------------------------------------------ r367215 | mmel | 2020-10-31 08:58:05 -0700 (Sat, 31 Oct 2020) | 6 lines MFC r362053: Fix grabbing of tegra uart. An attempt to write to FCR register may corrupt transmit FIFO, so we should wait for the FIFO to be empty before we can modify it. ------------------------------------------------------------------------ r367216 | mmel | 2020-10-31 09:03:35 -0700 (Sat, 31 Oct 2020) | 16 lines MFC r362384,r362385,r362386,r362392: r362384: Add DTB files for ARMADA 8040 based boards. r362385: Add specialized gpio driver for ARMADA 8k SoC. Older marvell gpio blocks are to different for reusing/enhancing existing frivers. r362386: Add specific stub for ARMADA 8k SoC to Marvell RTC driver. The AXI bridge is different between ARMADA 38x and 8K, and both platforms needs specific setup to mitigate HW issues with accessing RTC registers. r362392: Adapt ARMADA8k PCIe driver to newly imported 5.7 DT. - temporarily disable handling with phy, we don't have driver for it yet - always clear cause for administartive interrupt. While I'm in, fix style(9) (mainly whitespace). ------------------------------------------------------------------------ r367217 | mmel | 2020-10-31 09:05:24 -0700 (Sat, 31 Oct 2020) | 5 lines MFC r362388: Use native-sized accesses when accessing memory from kdb. Not all MMIO mapped devices supports byte access. ------------------------------------------------------------------------ r367218 | mmel | 2020-10-31 09:15:19 -0700 (Sat, 31 Oct 2020) | 5 lines MFC r363121: Fix the module name for some arm drivers. Module name (unlike of the of driver name) must be system wide unique. ------------------------------------------------------------------------ r367219 | mmel | 2020-10-31 09:18:55 -0700 (Sat, 31 Oct 2020) | 9 lines MFC r362387: Improve DesignWare PCIe driver: - only normal memory window is mandatory, prefetchable memory and I/O windows should be optional - full PCIe configuration space is supported - remove duplicated check from function for accessing configuration space. It is already contained in pci_dw_check_dev() ------------------------------------------------------------------------ r367220 | mmel | 2020-10-31 09:24:11 -0700 (Sat, 31 Oct 2020) | 13 lines MFC r363123,r363510: r363123: Reverse the processing order of assigned clocks property. Linux processes these clocks in reverse order and some DT relies on this fact. For example, the frequency setting for a given PLL is the last in the list, preceded by the frequency setting of its following divider or so... r363510: Revert r363123. As Emanuel poited me the Linux processes these clock assignments in forward order, not in reversed. I misread the original code. Tha problem with wrong order for assigned clocks found in tegra (and some imx) DT should be reanalyzed and solved by different way. ------------------------------------------------------------------------ r367222 | mmel | 2020-10-31 09:51:19 -0700 (Sat, 31 Oct 2020) | 5 lines MFC r365929: Adjust DMA alignment for USB stack. It should be at least as large as the maximum value of caheline size for currently known CPUs. ------------------------------------------------------------------------ r367223 | mmel | 2020-10-31 10:07:43 -0700 (Sat, 31 Oct 2020) | 9 lines MFC r342008,r363799,r366146: r342008: fdt: Add support for simple-mfd bus r363799: Allow child classes of simplebus to call attach directly r366146: Make simplebus friendlier for subclassing. ------------------------------------------------------------------------ r367224 | mmel | 2020-10-31 10:09:25 -0700 (Sat, 31 Oct 2020) | 10 lines MFC r366156: Correctly handle nodes compatible with "syscon", "simple-bus". Syscon can also have child nodes that share a registration file with it. To do this correctly, follow these steps: - subclass syscon from simplebus and expose it if the node is also "simple-bus" compatible. - block simplebus probe for this compatible string, so it's priority (bus pass) doesn't colide with syscon driver. ------------------------------------------------------------------------ r367225 | mmel | 2020-10-31 10:10:55 -0700 (Sat, 31 Oct 2020) | 9 lines MFC r366161: Refine locking inside of syscon driver. In some cases, the syscon driver may be used by consumer requiring better control about locking (ie. it may be used as registe file provider for clock driver which needs locked access to multiple registers). Add fine locking protocol methods together with bunch of helper functions in syscon driver and implement this functionality in syscon_generic driver. ------------------------------------------------------------------------ r367226 | mmel | 2020-10-31 10:18:18 -0700 (Sat, 31 Oct 2020) | 5 lines MFC r366312: Fix the inverted condition in mtx_asserts. Mutex should be owned in affected functions. ------------------------------------------------------------------------ r367227 | mmel | 2020-10-31 10:26:56 -0700 (Sat, 31 Oct 2020) | 7 lines MFC r366197: Don't send a signal with uninitialized 'sig' and 'code' fields. We have a few shortcuts in the arm trap code to speed up obvious "must fail" cases. In these situations, make sure that we fill in the "sig" and "code" fields of the generated signal. ------------------------------------------------------------------------ r367228 | dim | 2020-10-31 11:42:03 -0700 (Sat, 31 Oct 2020) | 71 lines MFC r364480: Merge commit 1ce07cd614be from llvm git (by me): Instantiate Error in Target::GetEntryPointAddress() only when necessary When Target::GetEntryPointAddress() calls exe_module->GetObjectFile()->GetEntryPointAddress(), and the returned entry_addr is valid, it can immediately be returned. However, just before that, an llvm::Error value has been setup, but in this case it is not consumed before returning, like is done further below in the function. In https://bugs.freebsd.org/248745 we got a bug report for this, where a very simple test case aborts and dumps core: * thread #1, name = 'testcase', stop reason = breakpoint 1.1 frame #0: 0x00000000002018d4 testcase`main(argc=1, argv=0x00007fffffffea18) at testcase.c:3:5 1 int main(int argc, char *argv[]) 2 { -> 3 return 0; 4 } (lldb) p argc Program aborted due to an unhandled Error: Error value was Success. (Note: Success values must still be checked prior to being destroyed). Thread 1 received signal SIGABRT, Aborted. thr_kill () at thr_kill.S:3 3 thr_kill.S: No such file or directory. (gdb) bt #0 thr_kill () at thr_kill.S:3 #1 0x00000008049a0004 in __raise (s=6) at /usr/src/lib/libc/gen/raise.c:52 #2 0x0000000804916229 in abort () at /usr/src/lib/libc/stdlib/abort.c:67 #3 0x000000000451b5f5 in fatalUncheckedError () at /usr/src/contrib/llvm-project/llvm/lib/Support/Error.cpp:112 #4 0x00000000019cf008 in GetEntryPointAddress () at /usr/src/contrib/llvm-project/llvm/include/llvm/Support/Error.h:267 #5 0x0000000001bccbd8 in ConstructorSetup () at /usr/src/contrib/llvm-project/lldb/source/Target/ThreadPlanCallFunction.cpp:67 #6 0x0000000001bcd2c0 in ThreadPlanCallFunction () at /usr/src/contrib/llvm-project/lldb/source/Target/ThreadPlanCallFunction.cpp:114 #7 0x00000000020076d4 in InferiorCallMmap () at /usr/src/contrib/llvm-project/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.cpp:97 #8 0x0000000001f4be33 in DoAllocateMemory () at /usr/src/contrib/llvm-project/lldb/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp:604 #9 0x0000000001fe51b9 in AllocatePage () at /usr/src/contrib/llvm-project/lldb/source/Target/Memory.cpp:347 #10 0x0000000001fe5385 in AllocateMemory () at /usr/src/contrib/llvm-project/lldb/source/Target/Memory.cpp:383 #11 0x0000000001974da2 in AllocateMemory () at /usr/src/contrib/llvm-project/lldb/source/Target/Process.cpp:2301 #12 CanJIT () at /usr/src/contrib/llvm-project/lldb/source/Target/Process.cpp:2331 #13 0x0000000001a1bf3d in Evaluate () at /usr/src/contrib/llvm-project/lldb/source/Expression/UserExpression.cpp:190 #14 0x00000000019ce7a2 in EvaluateExpression () at /usr/src/contrib/llvm-project/lldb/source/Target/Target.cpp:2372 #15 0x0000000001ad784c in EvaluateExpression () at /usr/src/contrib/llvm-project/lldb/source/Commands/CommandObjectExpression.cpp:414 #16 0x0000000001ad86ae in DoExecute () at /usr/src/contrib/llvm-project/lldb/source/Commands/CommandObjectExpression.cpp:646 #17 0x0000000001a5e3ed in Execute () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandObject.cpp:1003 #18 0x0000000001a6c4a3 in HandleCommand () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandInterpreter.cpp:1762 #19 0x0000000001a6f98c in IOHandlerInputComplete () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandInterpreter.cpp:2760 #20 0x0000000001a90b08 in Run () at /usr/src/contrib/llvm-project/lldb/source/Core/IOHandler.cpp:548 #21 0x00000000019a6c6a in ExecuteIOHandlers () at /usr/src/contrib/llvm-project/lldb/source/Core/Debugger.cpp:903 #22 0x0000000001a70337 in RunCommandInterpreter () at /usr/src/contrib/llvm-project/lldb/source/Interpreter/CommandInterpreter.cpp:2946 #23 0x0000000001d9d812 in RunCommandInterpreter () at /usr/src/contrib/llvm-project/lldb/source/API/SBDebugger.cpp:1169 #24 0x0000000001918be8 in MainLoop () at /usr/src/contrib/llvm-project/lldb/tools/driver/Driver.cpp:675 #25 0x000000000191a114 in main () at /usr/src/contrib/llvm-project/lldb/tools/driver/Driver.cpp:890 Fix the incorrect error catch by only instantiating an Error object if it is necessary. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D86355 This should fix lldb aborting as described in the scenario above. Reported by: dmgk PR: 248745 ------------------------------------------------------------------------ r367246 | 0mp | 2020-11-01 03:09:11 -0800 (Sun, 01 Nov 2020) | 10 lines MFC r367039: ifconfig.8: Remove spurious commas Correct misuse of commas/parentheses in an enumeration that makes the number of actual parameters more important than expected. PR: 250526 Submitted by: Samy Mahmoudi ------------------------------------------------------------------------ r367260 | emaste | 2020-11-01 16:45:40 -0800 (Sun, 01 Nov 2020) | 2 lines MFC r366861: build vmware modules on arm64 ------------------------------------------------------------------------ r367263 | lwhsu | 2020-11-01 17:29:50 -0800 (Sun, 01 Nov 2020) | 7 lines MFC r367134: Remove superfluous `this` in comment PR: 250721 Submitted by: Hiroya EBINE ------------------------------------------------------------------------ r367265 | lwhsu | 2020-11-01 17:34:43 -0800 (Sun, 01 Nov 2020) | 4 lines MFC r367136: Whitespace cleanup ------------------------------------------------------------------------ r367270 | markj | 2020-11-02 06:00:25 -0800 (Mon, 02 Nov 2020) | 3 lines MFC r366834: vmx: Implement pmap (de)activation in C ------------------------------------------------------------------------ r367271 | markj | 2020-11-02 06:01:33 -0800 (Mon, 02 Nov 2020) | 3 lines MFC r366837: vmem: Simplify bt_fill() callers a bit ------------------------------------------------------------------------ r367272 | markj | 2020-11-02 06:30:55 -0800 (Mon, 02 Nov 2020) | 3 lines MFC r366838: vmem: Allocate btags before looping in vmem_xalloc() ------------------------------------------------------------------------ r367283 | freqlabs | 2020-11-02 12:00:50 -0800 (Mon, 02 Nov 2020) | 7 lines MFC r366465, r367003, r367006, r367009 Enable iterating all sysctls, even ones with CTLFLAG_SKIP kern_sysctl: Misc code cleanup sysctl: Misc code cleanup sysctl+kern_sysctl: Honor SKIP for descendant nodes ------------------------------------------------------------------------ r367289 | emaste | 2020-11-02 17:38:16 -0800 (Mon, 02 Nov 2020) | 8 lines MFC r366902: arm64: add uhci to GENERIC uhci is (or, can be) used by VMware ESXi-Arm. PR: 250308 Reported by: Vincent Milum Jr Sponsored by: The FreeBSD Foundation ------------------------------------------------------------------------ r367297 | markj | 2020-11-03 06:41:49 -0800 (Tue, 03 Nov 2020) | 3 lines MFC r367081: arm64: Remove a racy KASSERT from pmap_remove_pages() ------------------------------------------------------------------------ r367305 | jhb | 2020-11-03 12:43:01 -0800 (Tue, 03 Nov 2020) | 12 lines MFC 358556,360167: Add support for the TFTP windowsize option. 358556: Add support for the TFTP windowsize option described in RFC 7440. The windowsize option permits multiple blocks to be transmitted before the receiver sends an ACK improving throughput for larger files. 360167: Abort transfer if fseeko() fails. ------------------------------------------------------------------------ r367312 | brooks | 2020-11-03 15:26:26 -0800 (Tue, 03 Nov 2020) | 14 lines MFC r367063: Key decleration of union semun on src version __FreeBSD__ is defined by the compiler derived from the triple. When building FreeBSD 11 on a FreeBSD 12 with a CROSS_TOOLCHAIN=llvm10, __FreeBSD__ was set to 12 when building lib32 (for some reason no triple is being passed which seems to mean that we're taking default values from the build system). This in turn meant we end up with a double decleration of union semun which is a build error. Reviewed by: gshapiro, dim Differential Revision: https://reviews.freebsd.org/D26902 ------------------------------------------------------------------------ r367314 | brooks | 2020-11-03 15:29:07 -0800 (Tue, 03 Nov 2020) | 12 lines MFC r367121: Disable ssp raw test without ASAN r366981 disabled ASAN when it might not be reliable (with an external compiler), but this test is broken without ASAN so disable it completely in that case. PR: 250706 Reviewed by: emaste, lwhsu Differential Revision: https://reviews.freebsd.org/D26982 ------------------------------------------------------------------------ r367316 | 0mp | 2020-11-03 23:51:59 -0800 (Tue, 03 Nov 2020) | 4 lines MFC r367259: ifconfig.8: Improve formatting of -f in synopsis ------------------------------------------------------------------------ r367318 | 0mp | 2020-11-03 23:53:24 -0800 (Tue, 03 Nov 2020) | 4 lines MFC r367258: Remove Tn macros from ifconfig.8 ------------------------------------------------------------------------ r367329 | mav | 2020-11-04 06:12:29 -0800 (Wed, 04 Nov 2020) | 5 lines MFC r367109, r367113: Print NVMe controller capabilities in verbose dmesg. Those values are not reported in controller identification, while sometimes interesting for development and debugging. ------------------------------------------------------------------------ r367330 | mav | 2020-11-04 06:13:29 -0800 (Wed, 04 Nov 2020) | 6 lines MFC r367112: Use proper variable for device path. It seems *-passthru commands were broken from the day one, since the device path is fetched into opt.dev variable and not left in argv[optind]. The other three wrong argv[optind] instances are just in error messages. ------------------------------------------------------------------------ r367336 | jhb | 2020-11-04 09:22:12 -0800 (Wed, 04 Nov 2020) | 7 lines MFC 359263: Use the newer EINTEGRITY error when authentication fails. GELI used to fail with EINVAL when a read request spanned a disk sector whose contents did not match the sector's authentication tag. The recently-added EINTEGRITY more closely matches to the error in this case. ------------------------------------------------------------------------