NetBSD/src qdgRFXbsys/arch/macppc/macppc machdep.c

   macppc: Have dumpsys() call oea_dumpsys()

   oea_dumpsys() recently grew support for writing crash dumps, so let's
   call this directly. Hopefully fixes PR 11854.
VersionDeltaFile
1.179+3-3sys/arch/macppc/macppc/machdep.c
+3-31 files

NetBSD/src UxqRuLisys/arch/powerpc/include cpu.h, sys/arch/powerpc/oea oea_machdep.c

   powerpc: Add OEA crash dump support.

   Currently restricted to what I can test, so no OEA64 / OEA64_BRIDGE.
VersionDeltaFile
1.87+187-3sys/arch/powerpc/oea/oea_machdep.c
1.88+64-19sys/arch/powerpc/powerpc/powerpc_machdep.c
1.127+3-1sys/arch/powerpc/include/cpu.h
+254-233 files

NetBSD/src C4r4R6Gsys/arch/evbppc/nintendo machdep.c

   nintendo: Make cpu_reboot look more like the x86 one
VersionDeltaFile
1.6+35-15sys/arch/evbppc/nintendo/machdep.c
+35-151 files

NetBSD/src 9XHfyolsys/arch/evbppc/nintendo/dev ahcisata_ahb.c

   wiiu: Don't try to service AHCI port interrupts when panic'd
VersionDeltaFile
1.3+5-3sys/arch/evbppc/nintendo/dev/ahcisata_ahb.c
+5-31 files

NetBSD/src TL116rwlib/libkvm kvm_powerpc.c

   libkvm: Add IBM Espresso support
VersionDeltaFile
1.16+3-2lib/libkvm/kvm_powerpc.c
+3-21 files

NetBSD/src jua6Kmpsys/net if_spppsubr.c

   PPP: drop SPPP lock before calling rt_ifmsg

   rt_ifmsg will lock SPPP itself, so ensure it's unlocked before calling.
   Add a comment to explain why this should be safe.

   Thanks to @riastradh for review and commentary.

   Fixes PR kern/59963.
VersionDeltaFile
1.274+27-20sys/net/if_spppsubr.c
+27-201 files

NetBSD/src WZZ5V6Vsys/arch/vax/vax db_machdep.c

   properly mask the "number of arguments" word to avoid invalid output.

   i had a system soft-hang with cc1plus waiting for memory, but there
   is enough memory free now, but when i tried to "bt/a <cc1plus addr>"
   i was getting an extremely large output (several megabytes before i
   killed simh).

   we fetch the argument count from a 32-bit space in the stack frame,
   but it's only the bottom byte that matters, the other bytes should
   always be zero for netbsd, as they're used by VMS.

   mask the high bytes of this value before consuming it.

   also, since we don't expect to see them, simply give up when we find
   a "callg" instruction.  i did attempt to handle this, but since they
   should not be present, and seeing one would indicate that an unexpected
   stack write to that bit, handling it just leads to more faults as they
   vax_ap pointer does not point to valid memory and triggers crash (ie,
   back to db> prompt.)
VersionDeltaFile
1.62+9-3sys/arch/vax/vax/db_machdep.c
+9-31 files

NetBSD/src XUDwslGsys/arch/vax/vax db_machdep.c

   revert previously - was meant for current.
VersionDeltaFile
1.61.2.2+1-7sys/arch/vax/vax/db_machdep.c
+1-71 files

NetBSD/src SoGMC4Esys/arch/vax/vax db_machdep.c

   properly mask the "number of arguments" word to avoid invalid output.

   i had a system soft-hang with cc1plus waiting for memory, but there
   is enough memory free now, but when i tried to "bt/a <cc1plus addr>"
   i was getting an extremely large output (several megabytes before i
   killed simh).

   we fetch the argument count from a 32-bit space in the stack frame,
   but it's only the bottom byte that matters, the other bytes should
   always be zero for netbsd, as they're used by VMS.

   mask the high bytes of this value before consuming it.

   also, since we don't expect to see them, simply give up when we find
   a "callg" instruction.  i did attempt to handle this, but since they
   should not be present, and seeing one would indicate that an unexpected
   stack write to that bit, handling it just leads to more faults as they
   vax_ap pointer does not point to valid memory and triggers crash (ie,
   back to db> prompt.)
VersionDeltaFile
1.61.2.1+9-3sys/arch/vax/vax/db_machdep.c
+9-31 files

NetBSD/src utfn40tsys/arch/ews4800mips/conf GENERIC, sys/dev/marvell ehci_mv.c

   fix various typos in comments.
VersionDeltaFile
1.69+3-3sys/arch/ews4800mips/conf/GENERIC
1.11+3-3sys/dev/marvell/ehci_mv.c
1.103+3-3sys/dev/usb/umass_quirks.c
1.44+3-3sys/ufs/lfs/lfs_rfw.c
1.3+2-2tests/bin/sh/t_input.sh
+14-145 files

NetBSD/src nAJfNzcsys/dev/pci gffb.c

   fix gffb_putchar_mono():
   - don't use the glyph cache - it doesn't buy us anything when drawing mono
     characters and it can't deal with WSATTR_HILIT
   - gffb_sync() before drawing characters - turns out we can overrun the command
     buffer with this, which leads to occasional lockups. No measurable loss of
     speed.
VersionDeltaFile
1.33+6-11sys/dev/pci/gffb.c
+6-111 files

NetBSD/src w30ihdesbin/ccdconfig ccdconfig.c

   Appease clang not liking ","+len:

   error: adding 'size_t' (aka 'unsigned long') to a string does not append
       to the string [-Werror,-Wstring-plus-int]
   note: use array indexing to silence this warning
VersionDeltaFile
1.61+3-3sbin/ccdconfig/ccdconfig.c
+3-31 files

NetBSD/src VE6CyBmsys/arch/amd64/amd64 machdep.c

   amd64: Fix locking around uvm_map_checkprot in mm_md_kernacc.

   This call was originally introduced in sys/arch/amd64/amd64/mem.c
   rev. 1.11 back in 2003 by fvdl@ with the commit message:

   > Proper checks for kmem reads beyond _end

   https://mail-index.netbsd.org/source-changes/2003/10/14/msg135803.html

   At some point, SOMEBODY added an assertion in uvm that made it stop
   working:

   > uvm_map(9): Sprinkle assertions and interface contract comments.
   >
   > No functional change intended.

   https://mail-index.netbsd.org/source-changes/2024/08/13/msg152763.html

   (Really, this assertion revealed that this path was broken all along.)

    [38 lines not shown]
VersionDeltaFile
1.379+7-3sys/arch/amd64/amd64/machdep.c
+7-31 files

NetBSD/src JWYnCXpexternal/mit/xorg/lib libmesa.mk

   define HAVE_NOATEXIT here, syncing with how pkgsrc MesaLib builds.

   second and final part to fix PR#60025.

   XXX: pullup-*
VersionDeltaFile
1.16+3-2external/mit/xorg/lib/libmesa.mk
+3-21 files

NetBSD/src O3s1fbesys/arch/macppc/conf POWERMAC_G5

   Enable the standard set of USB devices from usbdevices.config in
   macppc/conf/POWERMAC_G5, like they are in macppc/conf/GENERIC.
   Discussed on port-macppc.
VersionDeltaFile
1.62+5-8sys/arch/macppc/conf/POWERMAC_G5
+5-81 files

NetBSD/src I0obCVEsbin/ccdconfig ccdconfig.8

   ccdconfig(8): g/c stray trailing whitespace in previous
VersionDeltaFile
1.30+2-2sbin/ccdconfig/ccdconfig.8
+2-21 files

NetBSD/src 96uVGjusbin/ccdconfig ccdconfig.8

   ccdconfig(8): brush up markup
VersionDeltaFile
1.29+66-48sbin/ccdconfig/ccdconfig.8
+66-481 files

NetBSD/src esTEw0Rsbin/ccdconfig ccd.conf.5

   ccd.conf(5): brush up markup

   .Ar produces "file ..." so make "dev ..." here follow the same pattern
   using the right font too.
VersionDeltaFile
1.7+11-15sbin/ccdconfig/ccd.conf.5
+11-151 files

NetBSD/src kvBkKSdsbin/ccdconfig ccdconfig.c ccdconfig.8

   bin/59861 fix ccdconfig -g (and much more)

   This change is (roughly) based upon the patch provided in the PR by
   ssszcmawo at gmail, but with many changes, and additions.

   First, make ccdconfig -g not include the ccd size in its output.

   It is supposed to produce the format defined for the config file,
   so a ccd can be manually configured, and then the entry for it
   added to /etc/ccd.conf later so it will be configured again at
   each reboot.   The size is computed based upon the devices,
   it is not an input parameter, and hence does not belong in the output.

   Nevertheless, being able to observe the size is useful for understanding
   the ccd, so add a new -p option which does include the size in its output.

   While here, add an option (-h) allow the size to be output in the form
   generated by humanize_number(3) for better human comprehension.


    [41 lines not shown]
VersionDeltaFile
1.60+293-66sbin/ccdconfig/ccdconfig.c
1.28+165-17sbin/ccdconfig/ccdconfig.8
1.6+3-4sbin/ccdconfig/ccd.conf.5
+461-873 files

NetBSD/src jEsS20Ssbin/ccdconfig ccdconfig.c

   Make the optional flags for ccdconfig truly optional.

   The usage message, and the man page synopsis, has always
   said:

        usage: ccdconfig [-cv] ccd ileave [flags] dev [...]

   (plus the other variants not material here).   That is, the "flags"
   can be omitted.

   And they could, as implemented, but only when there are (not counting
   the -c/-v options) exactly 3 args.

   That is:

        ccdconfig ccd0 32 dev

   would work, with dev being the (sole) device, rather than treated
   as flags.   In any other case (like, more than one dev, which is

    [23 lines not shown]
VersionDeltaFile
1.59+12-12sbin/ccdconfig/ccdconfig.c
+12-121 files

NetBSD/src DoLg9Gusys/dev/ic bwfm.c

   bwfm: fix ifconfig media display on devices with sta_info version 3

   From OpenBSD.
VersionDeltaFile
1.37+2-2sys/dev/ic/bwfm.c
+2-21 files

NetBSD/src JqJeCGXdoc CHANGES

   doc: Two weeks of changes.
VersionDeltaFile
1.3231+15-2doc/CHANGES
+15-21 files

NetBSD/src b1qIvrqexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_vnops.c

   zfs_netbsd_putpages: do not make the pagedaemon block on the range lock

   blocking here can end up with a deadlock because ordinary
   vnops can wait for memory holding the range lock.

   fixes PR/60004
   https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=60004
VersionDeltaFile
1.82+13-2external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+13-21 files

NetBSD/src 2za5IFsexternal/cddl/osnet/dist/uts/common/fs/zfs zfs_rlock.c, external/cddl/osnet/dist/uts/common/fs/zfs/sys zfs_rlock.h

   zfs: add zfs_range_lock_try

   i plan to use this to fix pgdaemon deadlock issue. (PR/60004)
   (thus i didn't bother to implement RL_READER.)

   note: recent openzfs has a similar function. (zfs_rangelock_tryenter)
   this commit ought to be reverted when/if we switch to it.

   https://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=60004
VersionDeltaFile
1.7+28-7external/cddl/osnet/dist/uts/common/fs/zfs/zfs_rlock.c
1.4+1-0external/cddl/osnet/dist/uts/common/fs/zfs/sys/zfs_rlock.h
+29-72 files

NetBSD/src WMJsLEjsys/dev/acpi apei_hest.c

   apei_hest: fix a zero-sized kmem_zalloc issue

   zero-sized kmem_zalloc is illigal.

   this fixes a crash seen on HP Z4 G4.

   when installing netbsd 10.1 on the machine, i had to
   work this around by "userconf disable apei" and
   ```
   userconf=disable apei*
   ```
   in boot.cfg.

   "acpidump -dt" on the machine said:
   ```
   Error Source Count=0
   ```
   under the "HEST:" section.


    [13 lines not shown]
VersionDeltaFile
1.8+6-4sys/dev/acpi/apei_hest.c
+6-41 files

NetBSD/src FTyHYcbshare/man/man4 pchtemp.4, sys/arch/amd64/conf XEN3_DOM0

   pchtemp: add a simple driver for intel pch thermal sensor

   tested on PCI_PRODUCT_INTEL_2HS_THERM, which was found on HP Z4 G4.
   although other variants look compatible, i have not actually tested them.
   (no hardware)

   dmesg:
   ```
   [   512.596379] pchtemp0 at pci0 dev 20 function 2: Intel PCH Temperature Sensor
   ```

   envstat:
   ```
   [pchtemp0]
     pchtemp0 temperature:    41.500                                      degC
   ```

   enable in kernel configs where amdtemp is enabled.

   the man page is mostly copy-and-paste from amdtemp.4.
VersionDeltaFile
1.1+254-0sys/arch/x86/pci/pchtemp.c
1.1+62-0share/man/man4/pchtemp.4
1.1+11-0sys/modules/pchtemp/Makefile
1.1+11-0sys/modules/pchtemp/pchtemp.ioconf
1.28+6-1sys/arch/x86/pci/files.pci
1.208+4-2sys/arch/amd64/conf/XEN3_DOM0
+348-314 files not shown
+390-2220 files

NetBSD/src 76IdvMyetc/etc.evbarm Makefile.inc

   IMX23_OLINUXINO is dead.
VersionDeltaFile
1.138+1-2etc/etc.evbarm/Makefile.inc
+1-21 files

NetBSD/src T38Iz4Usys/kern vfs_vnode.c

   vcache_reclaim: whitespace

   no functional changes
VersionDeltaFile
1.157+3-3sys/kern/vfs_vnode.c
+3-31 files

NetBSD/src QluHIEllib/libc/string strtok.3

   Added restrict to SYNOPSIS for strtok_r(), and fix broken example.

   strtok_r() (and strtok() which already had it here) gained "restrict"
   for their params in ISO C 99 (and then in Posix 2001).

   The example code worked for the particular example given (the input
   data actually used) but was hopelessly broken in general.   As part
   of that (but not the actual breakage), if something defines MAXTOKENS
   then allow that many tokens, not one less ... add an extra slot for
   the terminating NULL.

   While here, update the STANDARDS section a little.
VersionDeltaFile
1.24+22-7lib/libc/string/strtok.3
+22-71 files

NetBSD/src RY83Q7winclude string.h

   Added "restrict" to args in declaration of strtok_r()

   The "restrict" was included in strtok_r() in C99 and POSIX Issue 6 (2001).
   (The same time it was added to strtok()).

   strtok_r() actually dates from Posix I5 (1995), not I6 (2001) as the
   guard on its definition states, but after all this time, clearly no-one
   cares about that.
VersionDeltaFile
1.59+2-2include/string.h
+2-21 files