NetBSD/src kqDkHiVsbin/swapctl swaplist.c

   swapctl(8): do not assume PGSHIFT is available

   PGSHIFT might not be available in userland. eg. sparc
   use sysconf(_SC_PAGESIZE) to query the kernel instead.
VersionDeltaFile
1.25+2-1sbin/swapctl/swaplist.c
+2-11 files

NetBSD/src tMmYJRcsys/arch/m68k/include cpu.h, sys/arch/m68k/m68k mmu_subr.s

   Re-do the way the news1700's external cache vs. 68030 cache burst mode
   issue is dealt with.

   Rather than completely re-defining the high-level cache operation macros
   to exclude the *_BE bits (which actually penalized systems without an EC
   because the *_BE bits set in the CACR initiallly would be lost on the first
   cache operation), instead we provide a "platform has dynamic CACR values"
   hook.

   For NEWS, the values default to the with-*_BE variant, but if an external
   cache is discovered, the values are patched up with the non-*_BE variants.
   Only one shared assembly language routine needs to be adjusted for this,
   the rest of the scenarios where these values are used are handled by the
   compiler via constraints.

   For all other platforms that don't define __HAVE_M68K_DYNAMIC_CACR,
   the values remain compile-time constants, as before.
VersionDeltaFile
1.111+22-6sys/arch/news68k/news68k/locore.s
1.43+10-10sys/arch/news68k/news68k/genassym.cf
1.30+17-2sys/arch/m68k/include/cpu.h
1.59+1-14sys/arch/news68k/include/cpu.h
1.5+5-1sys/arch/m68k/m68k/mmu_subr.s
1.17+2-1sys/arch/news68k/include/types.h
+57-346 files

NetBSD/src bF4WAmydoc CHANGES

   doc: almost a month of changes
VersionDeltaFile
1.3241+19-1doc/CHANGES
+19-11 files

NetBSD/src 2DmywOhsys/arch/m68k/include cpu.h, sys/arch/news68k/include cpu.h

   Group 68020/68030 CACR bits into "the actual bits that do stuff" and
   "higher level operations", along with some helper macros that compute
   the latter in terms of the former.

   NFCI, but sets the stage for some future cleanup in this area.
VersionDeltaFile
1.29+10-4sys/arch/m68k/include/cpu.h
1.58+5-8sys/arch/news68k/include/cpu.h
1.42+2-3sys/arch/news68k/news68k/genassym.cf
1.110+2-2sys/arch/news68k/news68k/locore.s
+19-174 files

NetBSD/src TftVCT5sys/kern subr_autoconf.c

   Revert "config_attach_pseudo/config_attach_pseudo: assert kernel lock"

   it turned out that we have too many drivers which would trigger
   these assertions. although my impression is that they are actually
   not mpsafe, let's revert the assertions for now.

   PR/60123
   https://gnats.netbsd.org/60123
VersionDeltaFile
1.320+0-3sys/kern/subr_autoconf.c
+0-31 files

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

   zfs: fix deadlock with GOP_MARKUPDATE

   because genfs_putpages calls GOP_MARKUPDATE with v_interlock held,
   it isn't safe to wait for txg or other i/o. this is a regression
   caused by a recent change.
   ("zfs_netbsd_gop_markupdate: actually update file timestamp")

   this commit fixes it by simply dropping GOP_MARKUPDATE for zfs.
   as mentioned in the commit message of the change in question,
   it's redundant for putpages as we update the timestamps in
   GOP_WRITE as well.

   for spec/fifo, call the timestamp update logic directly,
   not via GOP_MARKUPDATE.

   the problem was pointed out by J. Hannken-Illjes.
   he also tested this patch.
VersionDeltaFile
1.96+5-6external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+5-61 files

NetBSD/src D5EzKbKsys/arch/macppc/dev ki2c.c, sys/arch/macppc/include intr.h

   - move logic to find a device's interrupt controller out of ki2c
   - make interrupt numbers in OF, dmesg and systat/vmstat match
   - include interrupt controller's name when reporting
VersionDeltaFile
1.12+64-2sys/arch/macppc/macppc/interrupts.c
1.45+12-51sys/arch/macppc/dev/ki2c.c
1.33+2-1sys/arch/macppc/include/intr.h
+78-543 files

NetBSD/src 3u4JwPNsys/dev/pci if_rge.c

   Pass the correct handle pointer to pci_intr_setattr
VersionDeltaFile
1.53+3-3sys/dev/pci/if_rge.c
+3-31 files

NetBSD/src 5OSKWGmsys/arch/amiga/amiga machdep.c, sys/arch/atari/atari machdep.c atari_init.c

   Use <m68k/pcr.h>, not magic numbers.
VersionDeltaFile
1.261+12-6sys/arch/amiga/amiga/machdep.c
1.197+6-3sys/arch/atari/atari/machdep.c
1.118+4-3sys/arch/atari/atari/atari_init.c
+22-123 files

NetBSD/src CpUE2ZVsys/arch/m68k/include pcr.h cpu.h, sys/arch/m68k/m68k lock_stubs.s

   Extract this m68k cpu.h commit:

   revision 1.26
   date: 2025-12-05 05:27:03 -0800;  author: thorpej;  state: Exp;  lines: +21 -4;
    commitid: jviu62VSzYhPRdlG;
   Define the fields in the 68060 Processor Configuration Register.

   ...into a new file, pcr.h, and adjust things that need the stuff.
VersionDeltaFile
1.1+50-0sys/arch/m68k/include/pcr.h
1.28+1-18sys/arch/m68k/include/cpu.h
1.13+6-1sys/arch/m68k/m68k/lock_stubs.s
1.51+3-1sys/arch/mvme68k/mvme68k/genassym.cf
1.7+3-1sys/arch/virt68k/virt68k/genassym.cf
+63-215 files

NetBSD/src YiRYd26sys/arch/alpha/tlsb tlsbreg.h

   Define some device offsets relative to the GBUS base.
VersionDeltaFile
1.9+19-2sys/arch/alpha/tlsb/tlsbreg.h
+19-21 files

NetBSD/src Om5QH0psys/arch/hp300/dev dma.c, sys/arch/hp300/hp300 machdep.c

   CACHE_HAVE_PAC -> M68K_EC_PAC
   CACHE_HAVE_VAC -> M68K_EC_VAC

   NFCI
VersionDeltaFile
1.103+25-25sys/arch/m68k/m68k/pmap_motorola.c
1.49+8-8sys/arch/hp300/dev/dma.c
1.17+4-4sys/arch/m68k/m68k/sys_machdep.c
1.255+3-3sys/arch/hp300/hp300/machdep.c
1.52+2-2sys/arch/m68k/include/pmap_motorola.h
+42-425 files

NetBSD/src TZe7FiEsys/uvm uvm_pager.c

   uvm_aio_aiodone_pages: add a comment
VersionDeltaFile
1.134+11-1sys/uvm/uvm_pager.c
+11-11 files

NetBSD/src FoCe5Xlsys/kern subr_autoconf.c

   config_attach_pseudo/config_attach_pseudo: assert kernel lock

   as commented in the code, whese functions are inherently
   mp-unsafe and only usable with the kernel lock held.
VersionDeltaFile
1.319+5-2sys/kern/subr_autoconf.c
+5-21 files

NetBSD/src joFI2XUsys/arch/atari/atari locore.s, sys/arch/luna68k/luna68k locore.s

   G/C empty (and unneeded) ecacheon() and ecacheoff() functions.
VersionDeltaFile
1.140+1-7sys/arch/atari/atari/locore.s
1.109+1-7sys/arch/luna68k/luna68k/locore.s
1.205+1-7sys/arch/mac68k/mac68k/locore.s
1.162+1-7sys/arch/mvme68k/mvme68k/locore.s
1.87+1-7sys/arch/sun3/sun3x/locore.s
1.45+1-7sys/arch/virt68k/virt68k/locore.s
+6-423 files not shown
+10-589 files

NetBSD/src MzOk4lisys/uvm uvm_swap.c

   sw_reg_strategy: stop panicking on hole

   after the recent change to uvm_aio_aiodone_pages,
   it should be ok to report errors here. the swap slots
   will be marked bad as expected.

   tested with a swap file with 50% holes:
   ```
   Device                    Size     Used      Bad    Avail Capacity  Priority
   /dev/dk1                  2.0G     1.8G       0B     190M     91%      0
   /swapfile_with_half_holes 2.0G     2.0G     1.0G     5.6M    100%      0
   Total                     4.0G     3.8G     1.0G     196M     95%
   ```
VersionDeltaFile
1.219+0-10sys/uvm/uvm_swap.c
+0-101 files

NetBSD/src rOpo2U3sys/compat/common uvm_110.c

   swapctl: report npgbad (cont.)

   i forgot to this file while porting the patch from
   my local git repo to cvs.
VersionDeltaFile
1.1+74-0sys/compat/common/uvm_110.c
+74-01 files

NetBSD/src 6jaDOCisys/uvm uvm_pager.c

   uvm_aio_aiodone_pages: do not discard user data on swap out failure

   if swap out i/o failed, maybe the swap device is broken. it's
   reasonable to mark it bad. however, there is no point to discard
   the user data on the page being swapped out. unlike file pages,
   the association to the particular swap slot is not permanent.
   next time the page is picked as a victim by the page daemon, a
   different swap slot, which is hopefully good, will be allocated.
VersionDeltaFile
1.133+17-10sys/uvm/uvm_pager.c
+17-101 files

NetBSD/src X4SzJC5sbin/swapctl swaplist.c

   swapctl: print npgbad

   eg.
   ```
   Device                    Size     Used      Bad    Avail Capacity  Priority
   /dev/dk1                  2.0G     1.8G       0B     190M     91%      0
   /swapfile_with_half_holes 2.0G     2.0G     1.0G     5.6M    100%      0
   Total                     4.0G     3.8G     1.0G     196M     95%
   ```
VersionDeltaFile
1.24+30-15sbin/swapctl/swaplist.c
+30-151 files

NetBSD/src xnKriXlsys/compat/common compat_110_mod.c compat_mod.h, sys/compat/sys uvm.h

   swapctl: report npgbad

   the current layout of swapent is like the following on amd64:
   ```
   (gdb) ptype /o struct swapent
   /* offset    |  size */  type = struct swapent {
   /*    0      |     8 */    dev_t se_dev;
   /*    8      |     4 */    int se_flags;
   /*   12      |     4 */    int se_nblks;
   /*   16      |     4 */    int se_inuse;
   /*   20      |     4 */    int se_priority;
   /*   24      |  1025 */    char se_path[1025];
   /* XXX  7-byte padding  */

                              /* total size (bytes): 1056 */
                            }
   ```
   while it's tempting to use the padding for the new member
   to avoid versioning, i guess we can't because, on some
   architectures, 64-bit value only has 32-bit alignment. (eg. i386)
VersionDeltaFile
1.3+19-1sys/compat/sys/uvm.h
1.10+8-2sys/sys/swap.h
1.10+4-2sys/uvm/uvm_swapstub.c
1.3+4-2sys/compat/common/compat_110_mod.c
1.218+6-0sys/uvm/uvm_swap.c
1.13+3-1sys/compat/common/compat_mod.h
+44-82 files not shown
+48-118 files

NetBSD/src 5GBoumpexternal/cddl/osnet/sys/sys vnode.h

   zfs: fix "slow rm" issue (cont.)

   commit a change which was lost during a porting from
   my local git repo to cvs.
   fortunately, it was harmless to miss this change though.
VersionDeltaFile
1.23+0-1external/cddl/osnet/sys/sys/vnode.h
+0-11 files

NetBSD/src 54x4rU2tests/lib/libc/setjmp t_sigstack.c

   arm is fixed.
VersionDeltaFile
1.26+4-14tests/lib/libc/setjmp/t_sigstack.c
+4-141 files

NetBSD/src w1P2nwdlib/libc/compat/arch/arm/gen compat_setjmp.S

   arm: fix PR/57946 for compat

   Make longjmp restore stack first before restoring signal mask for
   arm/compat.
VersionDeltaFile
1.7+28-15lib/libc/compat/arch/arm/gen/compat_setjmp.S
+28-151 files

NetBSD/src xIKEVrFsys/dev/pci Makefile.pcidevs

   Fix a typo in comments.

   I introduced this in my commit from ten years ago.
VersionDeltaFile
1.8+3-3sys/dev/pci/Makefile.pcidevs
+3-31 files

NetBSD/src 79U5lrntests/bin/sh t_expand.sh t_fsplit.sh

   Fix sh tests failing after the PR 60099 fix to /bin/sh

   After the fix for PR 60099 was applied to /bin/sh, 2 of the
   sh ATF tests no longer give the same output as they used to:

   In t_expand:dollar_at_empty_and_conditional

        set -- "a+a" "" "b " " c"; IFS=+; delim_argv $*"$@"

   That creates 4 positional params, (as shown), so $*"$@"
   should be the same as

        $1    $2  $3     $4"$1"  "$2"  "$3"  "$4"
        'a+a' ''  'b ' ' c'"a+a" ""    "b "  " c"

   where the single quotes are just so the values can be detected,
   double quotes indicate quoted values.

   The unquoted $* values are then field split, using IFS=+ (which only

    [55 lines not shown]
VersionDeltaFile
1.27+2-2tests/bin/sh/t_expand.sh
1.11+2-2tests/bin/sh/t_fsplit.sh
+4-42 files

NetBSD/src QDp6gyRsys/arch/hp300/conf files.hp300, sys/arch/hp300/include hp300spu.h cpu.h

   Use the new M68K_EC_VAC and M68K_EC_PAC options, based on configured
   model.

   As a transitional step, ensure that the new options are consistent with
   the legacy CACHE_HAVE_{PAC,VAC} defines.
VersionDeltaFile
1.57+11-4sys/arch/news68k/include/cpu.h
1.18+13-1sys/arch/hp300/include/hp300spu.h
1.102+7-7sys/arch/hp300/conf/files.hp300
1.80+5-4sys/arch/hp300/include/cpu.h
1.43+2-2sys/arch/news68k/conf/files.news68k
+38-185 files

NetBSD/src pcEDRr7sys/arch/m68k/conf files.m68k

   Add 3 new arch options:
   - M68K_EC -- platform has an external cache
   - M68K_EC_PAC -- platform has an external cache that's physically addressed
   - M68K_EC_VAC -- platform has an external cache that's virtually addressed

   M68K_EC_PAC and M68K_EC_VAC are to be used by individual platforms to
   indicate their cache configuration options, M68K_EC is inferred by either.
VersionDeltaFile
1.62+5-2sys/arch/m68k/conf/files.m68k
+5-21 files

NetBSD/src S7sHEVDsys/uvm uvm_pdaemon.c

   uvmpd_scan_queue: remove ENABLE_UNRELIABLE_CHECK_PR_56764 block

   while this condition is true in most of times, we can't
   assert it here because these counters are not always
   updated in-sync.

   for example, consider a removal of a large tmpfs file which is
   mostly swapped out. because uao_dropswap_range() batches swpgonly
   updates, swpgonly can be temporarily larger than swpginuse.

   the original symptom reported in PR/56764 ("uvmexp.swpgonly > 0")
   looks like a different issue though.

   https://gnats.netbsd.org/56764
VersionDeltaFile
1.138+2-7sys/uvm/uvm_pdaemon.c
+2-71 files

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

   zfs_putapage: don't try to write to zfs in the page daemon context

   basically zfs is not prepared to be called safely for page daemon.

   for now, if we found the page dirty, (thus we need to push it into zfs)
   just punt with ENOMEM. hopefully the page daemon will find some other
   pages to reclaim.

   if the system is already full of dirty pages backed by zfs, i suppose
   there is no good way to recover. for a longer term, we probably need
   some dirty-page throttling mechanism to avoid the situation in the
   first place.
VersionDeltaFile
1.95+12-0external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+12-01 files

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

   zfs: don't commit the zil for FSYNC_LAZY

   FSYNC_LAZY is meant for periodic syncer activity.
   unlike fsync() system call, it doesn't give any promises
   about data integrity to users.
VersionDeltaFile
1.94+3-1external/cddl/osnet/dist/uts/common/fs/zfs/zfs_vnops.c
+3-11 files