DragonFlyBSD/src d41d1a0share/man/man4 ahci.4, sys/dev/disk/ahci ahci.c ahci_dragonfly.c

ahci - Properly check and set SATA capabilities and features for ALPM.

- This should now only enable device-initiated and/or host-initiated link
  power-management when it is supported by both controller and disk device.

- Also this now allows for device-initiated power-management to be enabled
  with AHCI controllers that don't support automatic host-initiated
  power-management.

- In addition, this adds support for automatic promotion of "partial" state
  to "slumber" state (i.e. without needing to go through "active" state).

- The kernel console output now explicitly tells when it's enabling DIPM
  (device-initiated power management) and HIPM (host-initiated power
  management) respectively.
DeltaFile
+100-19sys/dev/disk/ahci/ahci.c
+5-8sys/dev/disk/ahci/ahci_dragonfly.c
+9-1share/man/man4/ahci.4
+8-2sys/dev/disk/ahci/atascsi.h
+122-304 files

DragonFlyBSD/src fe14ae5sys/netproto/802_11/wlan ieee80211_ratectl_none.c

wlan - Remove NULL free in fallback "none" ratectl code.

This avoids a kernel panic when detaching a wlan interface that was created
with the "none" ratectl code (i.e. when the wlan_amrr module wasn't loaded).
DeltaFile
+0-1sys/netproto/802_11/wlan/ieee80211_ratectl_none.c
+0-11 files

DragonFlyBSD/src 5f49e87sys/vfs/hammer2 hammer2_chain.c

hammer2 - Add debugging

* Debug situations where the CRC fails.  Print enough information
  for us to poke around and compare the in-kernel buffer against
  the disk buffer.

  All instances to date where hammer2 has detected CRC corruption
  has been due to in-memory corruption, source as yet undetermined.

* Usually hammer2 refuses to operate on the file/directory in
  question until the buffer cache buffer with the in-memory error
  is recycled or the machine is rebooted, avoiding corruption.
  But it is possible that hammer2 might miss an in-memory
  corruption event in some instances (occurring after the CRC
  check, for example).
DeltaFile
+24-3sys/vfs/hammer2/hammer2_chain.c
+24-31 files

DragonFlyBSD/src abe564fsys/kern vfs_bio.c vfs_vm.c, sys/vfs/ext2fs ext2_vnops.c

kernel - Minor Syntax cleanup

* Minor syntax cleanup
DeltaFile
+3-3sys/kern/vfs_bio.c
+4-2sys/vfs/ufs/ffs_vfsops.c
+2-2sys/vfs/ext2fs/ext2_vnops.c
+2-2sys/kern/vfs_vm.c
+2-1sys/vfs/hammer2/hammer2_vnops.c
+2-1sys/vfs/hammer/hammer_ondisk.c
+15-115 files not shown
+25-1511 files

DragonFlyBSD/src c3f20a5sys/kern vfs_subr.c, sys/vfs/nfs nfs_vnops.c

kernel - Handle race in vfsync_bp() and nfs_flush_bp()

* The RB_SCAN callback code on the clean/dirty buffer trees
  must bump b_refs temporarily when issuing a blocking lock
  to prevent the buffer from being ripped out from under the
  call, as the vnode token will be lost during the blocking
  operation.

* vfsync_bp() and vfs_flush_bp() omitted the required refs.

* Code cleanup.
DeltaFile
+13-5sys/kern/vfs_subr.c
+2-0sys/vfs/nfs/nfs_vnops.c
+15-52 files

DragonFlyBSD/src 4748425sys/kern vfs_subr.c

kernel - Fix race in brelvp() and reassignbuf()

* brelvp() can be called with just the buffer (bp) locked.  The
  vnode might not be locked or referenced at the time brelvp()
  is called, or might be locked by some other entity at the time.

* brelvp() obtains the vnode token but this is not sufficient.
  There is a race where, once the bp is removed from the vnode lists,
  the related vnode might be retired out from under brelvp() if the
  vp token is temporarily lost.

  The token can, in fact, be temporarily lost during the syncer list
  manipulation at the end of the routine.  Fix with a vhold()/vdrop()
  around the related code.

* In addition, set bp->b_vp to NULL before the syncer_list manipulation
  instead of after, ensuring that it is NULL'd out while the vnode token
  is still atomically held.  It was theoretically ok before since the
  bp should be locked, but the lost vnode token atomicy was concerning

    [3 lines not shown]
DeltaFile
+23-10sys/kern/vfs_subr.c
+23-101 files

DragonFlyBSD/src ab7d624tools/tools/crypto cryptotest.c cryptokeytest.c

tools: Remove tools/crypto
DeltaFile
+0-622tools/tools/crypto/cryptotest.c
+0-287tools/tools/crypto/cryptokeytest.c
+0-105tools/tools/crypto/cryptostats.c
+0-50tools/tools/crypto/Makefile
+0-45tools/tools/crypto/README
+0-1,1095 files

DragonFlyBSD/src b84e7dc. Makefile_upgrade.inc, sys/config X86_64_GENERIC

crypo: Cleanup from last two patches

Suggested-by: aly
DeltaFile
+9-5sys/crypto/crypto.c
+0-10Makefile_upgrade.inc
+0-1sys/config/X86_64_GENERIC
+9-163 files

DragonFlyBSD/src 056e2ccshare/man/man9 crypto.9, sys/dev/crypto/aesni aesni.c

opencrypto - remove in-kernel crypto(9) framework

The opencrypto crypto(9) API was quite complex (8k LoC), slow and not
used by any other kernel subsystem within DragonFly anymore. It allowed
for chaining various operations, crypto ops and compression, but AFAIK
this was never really used and rather complicated.  For a much simpler,
synchronous API see sys/src/crypto/cryptoapi. For a nice writeup on the
problems of crypto(9) in the context of FreeBSD, please see [1].

The opencrypto API was asynchronous by design. This was good back in the
days when dedicated hardware crypto devices did exist to help offload
the CPU. But the world has now changed towards synchronous CPU
instructions like AESNI. These dedicated CPU instructions are best
called synchronously, which removes the need for book-keeping of
asynchronous requests, often greatly simplifying the caller as well as
the API and "backend" implementation.

Furthermore, those dedicated crypto CPU instructions are not limited to
the kernel, they can be directly used by userland applications as well.

    [15 lines not shown]
DeltaFile
+0-1,651sys/opencrypto/crypto.c
+0-1,433sys/opencrypto/cryptosoft.c
+0-1,099sys/opencrypto/xform.c
+0-672share/man/man9/crypto.9
+0-545sys/opencrypto/castsb.h
+0-516sys/dev/crypto/aesni/aesni.c
+0-5,91635 files not shown
+112-8,04341 files

DragonFlyBSD/src c1ba328. UPDATING, lib/libtcplay crypto-dev.c

cryptodev: remove /dev/crypto pseudo-device

Remove the /dev/crypto pseudo-device. OpenBSD, which invented this API,
did this step back in release 5.7 (2015).

Note that this commit only removes the userland-facing /dev/crypto
device while still keeping the in-kernel crypto(9) API as-is. The plan
is to finally remove crypto(9) in a future commit.

The only applications within DragonFly that ever made use of /dev/crypto
were tcplay(8), cryptsetup(8) and cryptdisks(8) via libtcplay. But this
dependency on /dev/crypto was dropped in commit
ede102cd94449fe52fa9da25631d9f15af6d62ef as of April 21, 2025 in favor
of doing the crypto operations directly in userland without any help
from the kernel via /dev/crypto.

Userland libraries or applications like OpenSSH and OpenSSL do not use
/dev/crypto, mainly for performance reasons (and portability).
DeltaFile
+0-930sys/opencrypto/cryptodev.c
+0-165lib/libtcplay/crypto-dev.c
+0-131share/man/man4/crypto.4
+0-124test/crypto/cryptoapi/crypto-dev.c
+18-0UPDATING
+2-5share/man/man9/crypto.9
+20-1,35513 files not shown
+34-1,38219 files

DragonFlyBSD/src fcabea4sys/dev/virtual/virtio/block virtio_blk.c

virtio_blk - Compare old/write-cache setting in vtblk_write_cache_sysctl.
DeltaFile
+5-2sys/dev/virtual/virtio/block/virtio_blk.c
+5-21 files

DragonFlyBSD/src c12552bsys/dev/virtual/virtio/block virtio_blk.c

virtio_blk - Move sysctl setup to the end of attachement.
DeltaFile
+1-2sys/dev/virtual/virtio/block/virtio_blk.c
+1-21 files

DragonFlyBSD/src ae06013sys/dev/disk/mmcsd mmcsd.c, sys/dev/virtual/virtio/block virtio_blk.c

kernel - Do readonly check in .d_open method in mmcsd(4) and virtio_blk(4).

* Makes read-write open fail properly for read-only storage in mmcsd(4) and
  virtio_blk(4), instead of only resulting in transfer errors for the
  disk writes.
DeltaFile
+3-13sys/dev/virtual/virtio/block/virtio_blk.c
+6-8sys/dev/disk/mmcsd/mmcsd.c
+9-212 files

DragonFlyBSD/src 7550650sys/dev/misc/syscons sckmsrndr.c syscons.c

syscons - Add 16bit rendering code for UEFI and KMS driver framebuffers.

This fixes syscons rendering with KMS graphics drivers, when the driver
hands us a 16bit console framebuffer.
DeltaFile
+179-70sys/dev/misc/syscons/sckmsrndr.c
+4-2sys/dev/misc/syscons/syscons.c
+183-722 files

DragonFlyBSD/src d6d89dfsys/dev/virtual/virtio/block virtio_blk.c

virtio_blk - Enable D_KVABIO API.

This should avoid some unnecessary page invalidations.
This driver already was compliant, since it never accesses any of the data
in the bio buffer.
DeltaFile
+5-1sys/dev/virtual/virtio/block/virtio_blk.c
+5-11 files

DragonFlyBSD/src 17f49b3sys/vfs/isofs/cd9660 cd9660_node.c

cd9660 - Fixup typo from fb62a9282b1, to apply *upper* limit to hash table size.
DeltaFile
+1-1sys/vfs/isofs/cd9660/cd9660_node.c
+1-11 files

DragonFlyBSD/dports a2794ebeditors/kakoune-lsp distinfo Makefile.crates, editors/kakoune-lsp/files pkg-message.in

Import editors/kakoune-lsp version 18.1.3
DeltaFile
+559-0editors/kakoune-lsp/distinfo
+278-0editors/kakoune-lsp/Makefile.crates
+30-0editors/kakoune-lsp/Makefile
+15-0editors/kakoune-lsp/files/pkg-message.in
+7-0editors/kakoune-lsp/pkg-descr
+889-05 files

DragonFlyBSD/dports e810cf9x11-wm/xfce4 Makefile

Update x11-wm/xfce4 to version 4.20
DeltaFile
+1-2x11-wm/xfce4/Makefile
+1-21 files

DragonFlyBSD/dports e153cabftp/yafc Makefile

Tweak ftp/yafc version 1.3.7_2
DeltaFile
+1-4ftp/yafc/Makefile
+1-41 files

DragonFlyBSD/dports c61d750security/hydra Makefile

Tweak security/hydra version 9.5_2
DeltaFile
+1-1security/hydra/Makefile
+1-11 files

DragonFlyBSD/dports 8dc3ba7net-mgmt/routers2-extensions Makefile

Tweak net-mgmt/routers2-extensions version 2.23
DeltaFile
+1-1net-mgmt/routers2-extensions/Makefile
+1-11 files

DragonFlyBSD/dports ce2ddbfnet-mgmt/routers2 Makefile

Tweak net-mgmt/routers2 version 2.23
DeltaFile
+1-1net-mgmt/routers2/Makefile
+1-11 files

DragonFlyBSD/dports d492998net-mgmt/routers2-extras Makefile

Tweak net-mgmt/routers2-extras version 2.23
DeltaFile
+1-1net-mgmt/routers2-extras/Makefile
+1-11 files

DragonFlyBSD/dports 9ea0a4asysutils/screen49 Makefile, sysutils/screen49/dragonfly patch-configure.ac patch-misc.c

Import sysutils/screen49 version 4.9.1_5
DeltaFile
+156-0sysutils/screen49/files/patch-utmp.c
+123-0sysutils/screen49/Makefile
+84-0sysutils/screen49/files/patch-socket.c
+75-0sysutils/screen49/files/patch-configure.ac
+38-0sysutils/screen49/dragonfly/patch-configure.ac
+35-0sysutils/screen49/dragonfly/patch-misc.c
+511-018 files not shown
+804-024 files

DragonFlyBSD/dports 2a34692editors/kakoune Makefile Makefile.DragonFly, editors/kakoune/dragonfly patch-Makefile

Update editors/kakoune to version 2024.05.18_1
DeltaFile
+6-12editors/kakoune/Makefile
+11-0editors/kakoune/dragonfly/patch-Makefile
+1-1editors/kakoune/Makefile.DragonFly
+18-133 files

DragonFlyBSD/dports 3d3fdb7sysutils/screen Makefile, sysutils/screen/dragonfly patch-configure.ac patch-misc.c

Tweak sysutils/screen version 4.9.1_5
DeltaFile
+0-156sysutils/screen/files/patch-utmp.c
+4-117sysutils/screen/Makefile
+0-84sysutils/screen/files/patch-socket.c
+0-75sysutils/screen/files/patch-configure.ac
+0-38sysutils/screen/dragonfly/patch-configure.ac
+0-35sysutils/screen/dragonfly/patch-misc.c
+4-50517 files not shown
+4-78623 files

DragonFlyBSD/dports 8689eb2x11/xfce4-terminal Makefile distinfo, x11/xfce4-terminal/dragonfly patch-meson.build

Update x11/xfce4-terminal to version 1.1.5
DeltaFile
+18-12x11/xfce4-terminal/Makefile
+18-0x11/xfce4-terminal/files/patch-terminal_terminal-util.c
+11-0x11/xfce4-terminal/dragonfly/patch-meson.build
+3-3x11/xfce4-terminal/distinfo
+1-1x11/xfce4-terminal/Makefile.DragonFly
+51-165 files

DragonFlyBSD/dports 86ff520graphics/darktable pkg-plist Makefile.DragonFly, graphics/darktable/dragonfly patch-src_develop_openmp__maths.h patch-src_iop_rawdenoise.c

Update graphics/darktable to version 5.0.1
DeltaFile
+526-3graphics/darktable/pkg-plist
+73-0graphics/darktable/dragonfly/patch-src_develop_openmp__maths.h
+2-23graphics/darktable/Makefile.DragonFly
+6-6graphics/darktable/files/patch-src_CMakeLists.txt
+11-0graphics/darktable/dragonfly/patch-src_iop_rawdenoise.c
+3-7graphics/darktable/Makefile
+621-395 files not shown
+635-5311 files

DragonFlyBSD/dports 79ef090net-mgmt/mrtg Makefile, net-mgmt/mrtg/files patch-cfgmaker patch-Makefile.in

Update net-mgmt/mrtg to version 2.17.10_3,1
DeltaFile
+38-0net-mgmt/mrtg/files/patch-cfgmaker
+32-0net-mgmt/mrtg/files/patch-Makefile.in
+9-8net-mgmt/mrtg/Makefile
+14-0net-mgmt/mrtg/files/patch-rateup.c
+10-3net-mgmt/mrtg/files/patch-configure
+11-0net-mgmt/mrtg/files/patch-Mrtg_nsi
+114-111 files not shown
+114-227 files

DragonFlyBSD/dports 41c1c0csecurity/libssh Makefile distinfo, security/libssh/files patch-src_libcrypto-compat.h

Update security/libssh to version 0.11.2
DeltaFile
+32-19security/libssh/Makefile
+0-11security/libssh/files/patch-src_libcrypto-compat.h
+3-3security/libssh/distinfo
+3-2security/libssh/pkg-plist
+1-1security/libssh/Makefile.DragonFly
+39-365 files