NetBSD/src E44kESy — tools/gmp Makefile

   Fix compiler core dumps on MacOS on Apple Silicon (PR toolchain/60904),
   by disabling the use of the broken arm64 asm that comes with the present
   version of GMP (we can re-enable it when we upgrade).
VersionDeltaFile
1.7+10-1tools/gmp/Makefile
+10-11 files

NetBSD/src CdileI8 — sys/dev/i2c dbcool.c

   PR kern/60902

   change nom type from int to int64_t to avoid overflowing for 8 of the nominal voltage values:
VersionDeltaFile
1.71+4-4sys/dev/i2c/dbcool.c
+4-41 files

NetBSD/src bwGFlGU — sys/kern subr_pcu.c

   KNF
VersionDeltaFile
1.30+3-3sys/kern/subr_pcu.c
+3-31 files

NetBSD/src RAxsY3j — sys/arch/arm/ti ti_gate_clock.c

   beaglebone: fix sysctl hw.clk crashing the kernel

   The clock gate driver on the beaglebone black did not provide a clock rate function, but a clock rate function is mandatory. This caused a null pointer dereference when running "sysctl hw.clk".
VersionDeltaFile
1.2+26-2sys/arch/arm/ti/ti_gate_clock.c
+26-21 files

NetBSD/src 9ifxSfE — sys/arch/sparc64/include cpu.h, sys/arch/sparc64/sparc64 genassym.cf locore.s

   sun4v: Introduce a SAVE_WINREGS macro for future debugging.

   To be used for tracing stability issues in the kernel.

   The SAVE_WINREGS macro can be called from relevant places
   in the locore.s file to dump the contents of all the register windows.

   Function for printing out the contents of the debug area will be
   added later.
VersionDeltaFile
1.440+222-1sys/arch/sparc64/sparc64/locore.s
1.86+28-1sys/arch/sparc64/sparc64/genassym.cf
1.137+24-1sys/arch/sparc64/include/cpu.h
+274-33 files

NetBSD/src KUf37K8 — distrib/sets/lists/modules mi, sys/dev DEVNAMES

   Import rsu(4), a driver for Realtek's 802.11n FullMAC USB Wi-Fi adapters.

   This is a port of the OpenBSD/FreeBSD driver by Damien Bergamini.

   The hardware is less common as a discrete adapter than urtwn(4),
   perhaps due to being more expensive, or being targeted at embedded
   systems with slow CPUs. Adapters pop up on eBay now and then from
   manufacturers like Sitecom. I have two such devices from scouring
   eBay.

   It is a work-in-progress - the device attaches and detaches but is
   not yet usable, so not enabled yet. Committing mostly for easier
   review and collaboration.
VersionDeltaFile
1.1+2,259-0sys/dev/usb/if_rsu.c
1.1+748-0sys/dev/usb/if_rsureg.h
1.167+3-1distrib/sets/lists/modules/mi
1.302+2-1sys/modules/Makefile
1.48+2-1sys/dev/usb/usbdevices.config
1.333+2-1sys/dev/DEVNAMES
+3,016-46 files

NetBSD/src hY4qBzt — sys/dev/pci pcidevs.h pcidevs_data.h

   Regen
VersionDeltaFile
1.1526+4-2sys/dev/pci/pcidevs_data.h
1.1527+2-1sys/dev/pci/pcidevs.h
+6-32 files

NetBSD/src dwzMGs0 — sys/kern exec_elf.c, sys/sys exec_elf.h

   exec_elf: Ignore freedesktop.org dlopen ELF notes.

   PR kern/60901: Unknown elf note type 1081871370
VersionDeltaFile
1.187+22-2sys/sys/exec_elf.h
1.108+3-2sys/kern/exec_elf.c
+25-42 files

NetBSD/src HupWLfM — sys/dev/pci pcidevs

   Add Texas Instruments TUSB73x0 SuperSpeed USB 3.0 xHCI Host Controller
VersionDeltaFile
1.1548+2-1sys/dev/pci/pcidevs
+2-11 files

NetBSD/src ge8qAYz — sys/dev/usb usbdevs.h usbdevs_data.h

   regen
VersionDeltaFile
1.819+569-566sys/dev/usb/usbdevs_data.h
1.819+1-0sys/dev/usb/usbdevs.h
+570-5662 files

NetBSD/src D5NEjga — sys/dev/usb usbdevs

   add sitecom RTL8188S
VersionDeltaFile
1.828+2-1sys/dev/usb/usbdevs
+2-11 files

NetBSD/src 0KlKDHw — sbin/raidctl raidctl.c rf_configure.c, sys/dev/raidframe rf_diskqueue.h raidframevar.h

   Fix PR kern/60896 queue-length bugs in RAIDframe configuration.

   Support queue lengths up to 255 (256 could technically be supported
   but this could cause trouble if a user boots an old kernel with a new RAID
   set, so we clamp at 255).

   Correctly update in-core and on-disk queue lengths when they are changed
   via raidctl for an existing set.  Don't treat a mismatched queue length
   in the on-disk label as an error, avoiding breaking RAID sets in some
   reconstruction-to-spare cases.

   Fix raidctl create to use the documented default queue length of 100
   instead of 1.
VersionDeltaFile
1.38+12-8sbin/raidctl/rf_configure.c
1.420+12-4sys/dev/raidframe/rf_netbsdkintf.c
1.66+5-7sys/dev/raidframe/rf_diskqueue.c
1.24+5-4sys/dev/raidframe/raidframevar.h
1.90+3-3sbin/raidctl/raidctl.c
1.32+1-3sys/dev/raidframe/rf_diskqueue.h
+38-296 files

NetBSD/src cnNgZT1 — sys/arch/arm/ti ti_edma.c am18xx_sdmmc.c

   am335x, am18xx: make the sdmmc drivers get along with each other

   The am18xx and the am335x share a DMA controller used by the sdmmc controller. However, the am335x starts a transfer, then the DMA while the am18xx starts the DMA, then the transfer.

   Currently, the DMA driver resets DMA events when starting a transfer, which breaks the am335x because it start the DMA after the transfer, so events can already accumulate. This commit rolls back the change that resets DMA events when starting a transfer.

   However, this is now an issue on the am18xx, where due to a hardware quirk, it is possible for DMA events to accumulate on transfers that don't use the DMA. The fix is to always reset the DMA events on transfers with and without DMA.
VersionDeltaFile
1.2+10-8sys/arch/arm/ti/am18xx_sdmmc.c
1.11+2-5sys/arch/arm/ti/ti_edma.c
+12-132 files

NetBSD/src xUlX4Eg — lib/libc/gen Makefile.inc

   libc/gen/Makefile.inc Avoid building while cleaning

   Don't try and build the user version info for sysctl while
   cleaning, the needed tools probably don't exist yet.
VersionDeltaFile
1.233+3-1lib/libc/gen/Makefile.inc
+3-11 files

NetBSD/src suN21bl — sys/dev/raidframe rf_map.c rf_diskqueue.c

   Eliminate very low concurrency limit in RAIDframe, improving write throughput as much as 25%.

   RAIDframe maintains a per-set freelist of "emergency buffers" to ensure it can perform I/O
   under heavy memory pressure.  The freelist size was 10, and each I/O request can require
   up to 2 buffers in some recovery conditions, so raidPtr->openings was limited to RAIDOUTSTANDING,
   which was set to 6 (this was a bug; it should have been 5).

   There is no need at all for this limit for RAID 0 or RAID 1 sets; they do not buffer I/O in
   the relevant way.  Eliminate the allocation entirely in this case; openings is set as the
   configured queue length for the RAID set.

   For parity RAID sets, we dynamically size two freelists of pre-allocated buffers and the
   openings value so that we consume no more than 1% of system RAM per set:
        openings = MIN(maxQueueDepth, MAX(RAIDOUTSTANDING, (1% of physmem), bytes_per_opening))
        stripe buffers: 2 * openings
        I/O buffers: openings * max_stripes_per_bp * numCol

        RAIDOUTSTANDING (now used as a floor) remains 6.


    [16 lines not shown]
VersionDeltaFile
1.145+79-35sys/dev/raidframe/rf_driver.c
1.59+44-43sys/dev/raidframe/rf_dagutils.c
1.54+15-3sys/dev/raidframe/rf_states.c
1.419+6-11sys/dev/raidframe/rf_netbsdkintf.c
1.65+10-6sys/dev/raidframe/rf_diskqueue.c
1.52+6-6sys/dev/raidframe/rf_map.c
+160-1044 files not shown
+174-11310 files

NetBSD/src TBE6rTP — share/man/man9 cnmagic.9

   cnmagic(9): minor tweaks

   Call it a "magic sequence" (not "magic key sequence") - there are no
   "keys" in the serial input and wscons(4) does not even use cnmagic(9),
   so.  Mention that latter fact in CAVEATS.

   Document CNC_BREAK.
VersionDeltaFile
1.18+32-24share/man/man9/cnmagic.9
+32-241 files

NetBSD/src iYbpL8h — sys/dev/fdt cpufreq_dt.c

   cpufreq_dt: communicate full voltage range to regulators

   In the last commit, fdtbus_regulator_set_voltage got changed to accept the voltage as a target, min, max triple from a min, max pair. This commit switched the cpufreq code over to sending the full voltage triple to regulators if it is available in the device tree.

   This fixes PR 60671
VersionDeltaFile
1.21+39-18sys/dev/fdt/cpufreq_dt.c
+39-181 files

NetBSD/src 933V6ZB — sys/dev/fdt fdt_regulator.h fdt_regulator.c

   fdtbus_regulator_set_voltage_triple: support target/min/max

   Some dt-bindings specify voltages as target/min/max, while the NetBSD fdt subsystem only supported min/max.

   This PR introduces fdtbus_regulator_set_voltage_triple that tries to set the voltage to an optimal value before falling back to the full range.

   See PR 60671
VersionDeltaFile
1.10+15-2sys/dev/fdt/fdt_regulator.c
1.2+3-1sys/dev/fdt/fdt_regulator.h
+18-32 files

NetBSD/src rVgU78D — usr.bin/calendar/calendars calendar.computer

   calendar.computer: Add the year the first FORTRAN manual was released.

   via Martin Neitzel in PR bin/60894
VersionDeltaFile
1.19+1-1usr.bin/calendar/calendars/calendar.computer
+1-11 files

NetBSD/src fjVA0lp — sys/dev/sun cgsixreg.h

   s/GX_DRAW_SOFTAWRE/GX_DRAW_SOFTWARE/ in constant definition (unused).
VersionDeltaFile
1.11+2-2sys/dev/sun/cgsixreg.h
+2-21 files

NetBSD/src YB6K2H2 — sys/netinet dccp_tfrc.h dccp_tcplike.h

   s/wheter/whether/ in comments.
VersionDeltaFile
1.6+3-3sys/netinet/dccp_tcplike.c
1.4+2-2sys/netinet/dccp_tfrc.h
1.4+2-2sys/netinet/dccp_tcplike.h
+7-73 files

NetBSD/src cTXgX1p — sys/compat/linux/common linux_socket.c

   linux_sys_recvfrom: translate message flags.
VersionDeltaFile
1.164+11-3sys/compat/linux/common/linux_socket.c
+11-31 files

NetBSD/src EJQvezk — sys/arch/sparc64/sparc64 autoconf.c intr.c

   sun4v: Try to use the hypervisor interrupt api version 2 if version 3 fails.

   Version 3 systems are working ok - trying to fix the setup when a version 2
   system is used.

   Not tested on yet.
VersionDeltaFile
1.76+7-7sys/arch/sparc64/sparc64/intr.c
1.256+7-2sys/arch/sparc64/sparc64/autoconf.c
+14-92 files

NetBSD/src Sccsrxh — share/mk bsd.own.mk

   now we have enough hacks, move alpha and m68k to GCC 14.

   thanks to rin@ for making this not a regression.
VersionDeltaFile
1.1490+1-7share/mk/bsd.own.mk
+1-71 files

NetBSD/src EiKNGMQ — external/gpl2/xcvs/dist/src acl.c

   cvs(1): Fix acl/racl argument parsing.

   PR bin/60892: cvs acl/racl argument parsing is busted
VersionDeltaFile
1.7+2-2external/gpl2/xcvs/dist/src/acl.c
+2-21 files

NetBSD/src f9qkK3Z — sys/arch/riscv/include netbsd32_machdep.h, sys/arch/riscv/riscv netbsd32_machdep.c

   riscv: Make comapt32 compile.

   Note: I doubt it will work -- cpu_getmcontext32 and cpu_setmcontext32
   appear to be missing save/restore of most registers, so signal
   delivery will probably trash them.  Also not sure whether to use
   l->l_private or tf->tf_reg[_REG_TP] here (or _X_TP).  TBD!

   PR port-riscv/60889: riscv64: compat_netbsd32 is busticated
VersionDeltaFile
1.6+23-4sys/arch/riscv/riscv/netbsd32_machdep.c
1.3+3-1sys/arch/riscv/include/netbsd32_machdep.h
+26-52 files

NetBSD/src 2Hb4bSK — sys/conf files

   sys/conf/files: riscv has no EXEC_AOUT either even for compat32.

   Do the same ifdef dance as for mips and arm.

   Fixes:

   > /home/riastradh/netbsd/current/src/sys/compat/netbsd32/netbsd32_exec_aout.c: In function 'exec_netbsd32_makecmds':
   > /home/riastradh/netbsd/current/src/sys/compat/netbsd32/netbsd32_exec_aout.c:119:15: error: 'NETBSD32_MID_MACHINE' undeclared (first use in this function)
   >   119 |         case (NETBSD32_MID_MACHINE << 16) | ZMAGIC:
   >       |               ^~~~~~~~~~~~~~~~~~~~

   PR port-riscv/60889: riscv64: compat_netbsd32 is busticated
VersionDeltaFile
1.1325+5-3sys/conf/files
+5-31 files

NetBSD/src GvyaAZg — lib/libc/stdio printf.3

   printf(3): try to improve description of positional arguments

   Don't use "field" to refer to positional argument specification in
   `%n$`, as the term is already used for the output field (as in "field
   width", etc).

   Reword the `*n$` paragraph that first refers to `n` as "one or more
   decimal digits" and contrasts it with the "digit string" that actually
   refers to an explicitly specified width or precision far away on the
   previous page/screen (!).  This is very unobvious, especially when you
   read the page out of order, as one often does.

   The result of this (intentionally) localized edits is still pretty
   poor overall, but at least it fixes, hopefully, the two most glaring
   problems.  Further editorial help is welcome.
VersionDeltaFile
1.76+28-16lib/libc/stdio/printf.3
+28-161 files

NetBSD/src oP3auRE — sys/external/bsd/drm2/include/linux mm.h

   drm: Nix `highmem' memory accounting.

   This led to confusing dmesg output when the kernel map size was
   enlarged between 9 and 10, probably by this commit:

   > Module Name:    src
   > Committed By:   chs
   > Date:           Wed Aug  3 01:52:11 UTC 2022
   >
   > Modified Files:
   >         src/sys/uvm: uvm_km.c
   >
   > Log Message:
   > for platforms which define NKMEMPAGES_MAX_UNLIMITED, set nkmempages
   > high enough to allow the kernel to map all of RAM into kmem,
   > so that free physical pages rather than kernel virtual space is
   > the limiting factor in allocating kernel memory.  this gives ZFS
   > more flexibility in tuning how much memory to use for its ARC cache.
   >

    [13 lines not shown]
VersionDeltaFile
1.25+2-2sys/external/bsd/drm2/include/linux/mm.h
+2-21 files

NetBSD/src nz1VvFt — sys/dev/i2c mpl115areg.h mpl115a.c

   Make mpl115a2 return correct values.

   Do not byteswap calibration coefficients - apparently, this was always
   wrong. Properly wait before reading. Calculate in 64-bit arithmetic.
   Use ENVSYS_PRESSURE.
VersionDeltaFile
1.5+12-24sys/dev/i2c/mpl115a.c
1.2+3-1sys/dev/i2c/mpl115areg.h
+15-252 files