DragonFlyBSD/src 6e0aed1sys/sys param.h

<sys/param.h>: Bump __DragonFly_version for F_MAXFD and O_CLOFORK
DeltaFile
+2-1sys/sys/param.h
+2-11 files

DragonFlyBSD/src 46e0544sys/kern kern_descrip.c, sys/sys filedesc.h

kernel - Minor adjustment to set_flags cast

* filedesc flags are a char.  Avoid potential future issues by typing
  it and cast the int argument from fsetfdflags() to clean the
  implementation up a bit.  Leave the argument as an int for now.
DeltaFile
+3-1sys/sys/filedesc.h
+2-2sys/kern/kern_descrip.c
+5-32 files

DragonFlyBSD/src a7d91f8lib/libc/gen dup3.3, lib/libc/sys fcntl.2 open.2

Update manpages for O_CLOFORK flag and others
DeltaFile
+61-18lib/libc/sys/fcntl.2
+16-2lib/libc/gen/dup3.3
+16-1lib/libc/sys/open.2
+15-1lib/libc/sys/accept.2
+11-1lib/libc/sys/fork.2
+10-1lib/libc/sys/pipe.2
+129-244 files not shown
+148-3010 files

DragonFlyBSD/src 5a3b3b9test/illumos/oclo oclo.c ocloexec_verify.c

tests: Adapt Illumos oclo tests to DragonflyBSD
DeltaFile
+60-31test/illumos/oclo/oclo.c
+23-21test/illumos/oclo/ocloexec_verify.c
+17-8test/illumos/oclo/oclo_errors.c
+18-0test/illumos/oclo/Makefile
+118-604 files

DragonFlyBSD/src 1905ae5test/illumos/oclo oclo.c oclo_errors.c

tests: Add Illumos oclo tests for O_CLOEXEC & O_CLOFORK

Taken from last commit b3ff81dc6673bee7f291d9d66a832cb3e1004f49 from
https://github.com/illumos/illumos-gate/tree/master/usr/src/test/os-tests/tests/oclo
DeltaFile
+1,310-0test/illumos/oclo/oclo.c
+193-0test/illumos/oclo/oclo_errors.c
+137-0test/illumos/oclo/ocloexec_verify.c
+1,640-03 files

DragonFlyBSD/src d61c4f1lib/libc/gen opendir.c, lib/libc/stdio freopen.c fdopen.c

lib: Fix calls that naively set F_SETFD
DeltaFile
+5-3lib/libc/stdio/freopen.c
+5-2lib/libfetch/common.c
+4-1lib/libc/gen/opendir.c
+3-2lib/libc/stdio/fdopen.c
+1-1lib/libc/stdio/mktemp.c
+18-95 files

DragonFlyBSD/src 35b35eatest/bsd/dup_test dup_test.c Makefile

test: Add bsd/dup_test
DeltaFile
+480-0test/bsd/dup_test/dup_test.c
+7-0test/bsd/dup_test/Makefile
+487-02 files

DragonFlyBSD/src dcc509clib/libc/gen dup3.c, sys/kern kern_descrip.c uipc_syscalls.c

kern: Add support for POSIX O_CLOFORK flag
DeltaFile
+86-17sys/kern/kern_descrip.c
+17-1sys/kern/uipc_syscalls.c
+10-2sys/sys/fcntl.h
+5-4lib/libc/gen/dup3.c
+5-2sys/sys/filedesc.h
+5-1sys/kern/sys_pipe.c
+128-275 files not shown
+141-3011 files

DragonFlyBSD/src d724c3bsys/kern kern_descrip.c, sys/sys fcntl.h

kern: Introduce F_MAXFD from NetBSD
DeltaFile
+9-0sys/kern/kern_descrip.c
+1-0sys/sys/fcntl.h
+10-02 files

DragonFlyBSD/src 025a0b0sys/kern sys_pipe.c

kern: pipe2() should return EINVAL on invalid flags
DeltaFile
+2-0sys/kern/sys_pipe.c
+2-01 files

DragonFlyBSD/src a9d812fsys/vfs/hammer2 hammer2_vnops.c hammer2_inode.c

sys/vfs/hammer2: Remove hardlink related obsolete comments

These "real inode" comments are from old hardlink design
(e.g. e12ae3a59f03333cd0ce1dc645dd4719c32592b1 in 2015).
Most have been removed, so remove remaining ones.

Also remove "isopen" comments for hammer2_inode_unlink_finisher().
isopen was removed in bb16050ede5e81262312893fc8aaa54959cf993b
in 2022.
DeltaFile
+0-15sys/vfs/hammer2/hammer2_vnops.c
+0-9sys/vfs/hammer2/hammer2_inode.c
+1-3sys/vfs/hammer2/hammer2_xops.c
+1-273 files

DragonFlyBSD/src af18334sys/vfs/hammer2 hammer2_inode.c hammer2_vnops.c

sys/vfs/hammer2: Add missing ctime updates

This fixes many errors in pjdfstest.

The inode in question is already "modified" for either mtime or nlinks,
so no extra chain flushing only to update ctime.
DeltaFile
+8-3sys/vfs/hammer2/hammer2_inode.c
+7-0sys/vfs/hammer2/hammer2_vnops.c
+15-32 files

DragonFlyBSD/src 5324815usr.bin/timeout timeout.c

timeout(1): Print error info of failed kill()/procctl()

Obtained-from: FreeBSD
DeltaFile
+2-2usr.bin/timeout/timeout.c
+2-21 files

DragonFlyBSD/src b8c642esys/sys param.h

<sys/param.h>: Supplement 500706 with RTM_VERSION and _CMSG_ALIGN changes

There were RTM_VERSION bump (from 6 to 7) and _CMSG_ALIGN() changes
(alignment raised from 4 to 8) prior to the revision 500706, but those
changes themselves didn't bump the __DragonFly_version.  So supplement
the 500706 revision notes with such changes.

See also the commits of those changes:

* Commit b3aa44a1fb12417a3c45a78a0620e126ae6b624d
  Roy Marples <roy at marples.name>
  Wed, 11 Sep 2019 19:25:11 +0000 (20:25 +0100)
  build: Adjust _CMSG_ALIGN() for portability

* Commit 43a373152df2d405c9940983e584e6a25e76632d
  Roy Marples <roy at marples.name>
  Thu, 12 Sep 2019 08:13:30 +0000 (09:13 +0100)
  route(4): Add ifam_pid and ifam_addrflags to ifa_msghdr
DeltaFile
+1-0sys/sys/param.h
+1-01 files

DragonFlyBSD/src ee8496atest/debug fdpassing.c

Debug - Fixing fdpassing.c test program

* Use proper alignment macros.  This test program must be really
  old, from a time when sizeof(long) used to be 4 but now is 8.
DeltaFile
+9-7test/debug/fdpassing.c
+9-71 files

DragonFlyBSD/src fb68763usr.sbin/makefs/hammer2 hammer2_xops.c hammer2_strategy.c

usr.sbin/makefs: Sync with sys/vfs/hammer2

Sync with following sys/vfs/hammer2 commits.

$ git log --pretty="%h %s" 55066b18244fe9350bb96f93d65807d82b5cd98b.. -- sys/vfs/hammer2/
4f646c6893 sys/vfs/hammer2: Use HAMMER2_LOOKUP_ALWAYS in xop_readdir
6d68a182a9 sys/vfs/hammer2: Add missing error handling in hammer2_remount()
34ad347f7f sys/vfs/hammer2: Fix "Properly set ronly flag for PFS"
9a5c949af7 sys/vfs/hammer2: Properly set ronly flag for PFS
0c9702fdbe sys/vfs/hammer2: Remove duplicate spmp->pfs_hmps[0] initialization
8860585752 sys/vfs/hammer2: Ignore unused return value from hammer2_xop_feed()
bd41e746e6 sys/vfs/hammer2: Add SEEK_HOLE / SEEK_DATA support
DeltaFile
+61-4usr.sbin/makefs/hammer2/hammer2_xops.c
+38-1usr.sbin/makefs/hammer2/hammer2_strategy.c
+14-2usr.sbin/makefs/hammer2/hammer2_vfsops.c
+11-0usr.sbin/makefs/hammer2/hammer2.h
+5-0usr.sbin/makefs/hammer2/hammer2_ioctl.c
+1-0usr.sbin/makefs/hammer2/hammer2_admin.c
+130-71 files not shown
+131-77 files

DragonFlyBSD/src 4f646c6sys/vfs/hammer2 hammer2_xops.c

sys/vfs/hammer2: Use HAMMER2_LOOKUP_ALWAYS in xop_readdir

hammer2_xop_readdir() should explicitly use HAMMER2_LOOKUP_ALWAYS
for chain lookup, as hammer2_vop_readdir() can access chain data
for (a long enough) dirent name. Note that chain data is loaded
with or without ALWAYS in this case.
DeltaFile
+9-3sys/vfs/hammer2/hammer2_xops.c
+9-31 files

DragonFlyBSD/src 6d68a18sys/vfs/hammer2 hammer2_vfsops.c

sys/vfs/hammer2: Add missing error handling in hammer2_remount()
DeltaFile
+4-1sys/vfs/hammer2/hammer2_vfsops.c
+4-11 files

DragonFlyBSD/src acc0986sys/dev/drm/include/linux completion.h

drm/linux - More closely match linux wait-for-completion

Linux wait-for-completion functions decrement `done` counter if a
completion did not signaled with complete_all. Do the same on DragonFly.

Proposed-By: dillon
DeltaFile
+2-0sys/dev/drm/include/linux/completion.h
+2-01 files

DragonFlyBSD/src 7097cb2sys/dev/drm/radeon radeon_i2c.c

drm/radeon - Fix panic when launching Xorg server on Radeon Xpress 1100/1150 GPU

I2C adapter lock_ops were not initialized on certain radeon hardware.
Add explicit call to i2c_add_adapter which initializes lock_ops.

Fixes #3374.

Reported-by: hjckr
DeltaFile
+4-0sys/dev/drm/radeon/radeon_i2c.c
+4-01 files

DragonFlyBSD/src 24ca31bsys/dev/drm/amd/include/asic_reg/nbio nbio_7_4_sh_mask.h nbio_7_4_offset.h, sys/dev/drm/amd/include/asic_reg/sdma0 sdma0_4_2_sh_mask.h

drm - Update to Linux 4.20.17

  core:
    * Implement basic DMA-BUF support
  amdgpu:
    * Add support for Picasso, Raven2, and Vega20
  i915:
    * Add support up to Ice Lake
    * Fix hardware acceleration
DeltaFile
+48,436-0sys/dev/drm/amd/include/asic_reg/nbio/nbio_7_4_sh_mask.h
+3,512-2,179sys/dev/drm/i915/i915_reg.h
+4,627-0sys/dev/drm/amd/include/asic_reg/nbio/nbio_7_4_offset.h
+3,608-0sys/dev/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
+2,265-1,339sys/dev/drm/i915/intel_display.c
+2,992-0sys/dev/drm/amd/include/asic_reg/sdma0/sdma0_4_2_sh_mask.h
+65,440-3,518719 files not shown
+146,886-43,366725 files

DragonFlyBSD/src 34ad347sys/vfs/hammer2 hammer2_vfsops.c

sys/vfs/hammer2: Fix "Properly set ronly flag for PFS"

hammer2_remount() is update once only for hmp->ronly,
so pmp->ronly needed to be updated first independently,
otherwise causes problems with mount update after boot.
DeltaFile
+8-1sys/vfs/hammer2/hammer2_vfsops.c
+8-11 files

DragonFlyBSD/src 9a5c949sys/vfs/hammer2 hammer2_vfsops.c

sys/vfs/hammer2: Properly set ronly flag for PFS

Redo reverted b18a59622759a0617ee06c73b282dfc317ae70bf.

Once ->ronly becomes 0, it never becomes non-zero again.
(Update to ro still works as MNT_RDONLY is set in sys_mount().)
DeltaFile
+3-0sys/vfs/hammer2/hammer2_vfsops.c
+3-01 files

DragonFlyBSD/src 0c9702fsys/vfs/hammer2 hammer2_vfsops.c

sys/vfs/hammer2: Remove duplicate spmp->pfs_hmps[0] initialization

It's already initialized in this function.
DeltaFile
+0-1sys/vfs/hammer2/hammer2_vfsops.c
+0-11 files

DragonFlyBSD/src 8860585sys/vfs/hammer2 hammer2_strategy.c hammer2_xops.c

sys/vfs/hammer2: Ignore unused return value from hammer2_xop_feed()

hammer2_xop_feed callers that never use the return value
(except for these two) simply ignore it.
DeltaFile
+1-1sys/vfs/hammer2/hammer2_strategy.c
+1-1sys/vfs/hammer2/hammer2_xops.c
+2-22 files

DragonFlyBSD/src bd41e74sys/kern vfs_vnops.c, sys/sys buf.h

sys/vfs/hammer2: Add SEEK_HOLE / SEEK_DATA support

Similar to ext2 and ufs using VOP_BMAP based vn_bmap_seekhole().

- Add xop_bmap which corresponds to .vop_bmap.
- Add BUF_CMD_SEEK to prevent xop_bmap from being used for other
 purposes e.g. cluster read / write. Note that vop_bmap_args::a_cmd
 is only used in here and HAMMER1 (supports BUF_CMD_READ only,
 and SEEK_XXX is unsupported).
DeltaFile
+51-0sys/vfs/hammer2/hammer2_xops.c
+37-0sys/vfs/hammer2/hammer2_strategy.c
+11-0sys/vfs/hammer2/hammer2.h
+6-0sys/vfs/hammer2/hammer2_ioctl.c
+2-1sys/sys/buf.h
+1-1sys/kern/vfs_vnops.c
+108-21 files not shown
+109-27 files

DragonFlyBSD/src f0dd2afsys/dev/misc/kbd atkbd.c

atkbd: Fix first keystroke force reset

Some i8042 falsely return KBD_ACK for ECHO command which cause the
keyboard echo test to fail.
Without passing echo test, the keyboard is considered as unconfigured.

Although this is incorrect behavior, we still consider it correct to
prevent the forced reset (a step to configure a keyboard) of the entire
keyboard when the first key interrupt is reached.

This should fix keyboard probing at least for Framework Laptop [1].

Taken-from: FreeBSD [2] (minus typos)

[1]: https://reviews.freebsd.org/D50498
[2]: https://github.com/freebsd/freebsd-src/commit/cba5d7ab32fd0b4e9c4312cc967baf137377f812
DeltaFile
+13-1sys/dev/misc/kbd/atkbd.c
+13-11 files

DragonFlyBSD/src 930ae25sys/dev/misc/atkbdc_layer atkbdc_isa.c

atkbd: print out message if AT keyboard controller not found

Taken-from: FreeBSD
DeltaFile
+2-0sys/dev/misc/atkbdc_layer/atkbdc_isa.c
+2-01 files

DragonFlyBSD/src e8a55a7sys/dev/misc/kbd atkbdc.c atkbdcreg.h

atkbd: remove unused code that measures inb() duration

We are not using the retry count as FreeBSD does.

Instead, we are using TOTALDELAY / CHECKTIMEOUT, which measures the
actual execution time after each loop iteration and breaks out of the
loop when the total time (70ms or 200ms in most cases) has expired.
DeltaFile
+0-25sys/dev/misc/kbd/atkbdc.c
+0-1sys/dev/misc/kbd/atkbdcreg.h
+0-262 files

DragonFlyBSD/src 91c130dsys/dev/misc/kbd atkbdc.c

atkbd: fix style

Use struct initializer syntax. No functional change.
DeltaFile
+5-5sys/dev/misc/kbd/atkbdc.c
+5-51 files