DragonFlyBSD/src 8689714share/man/man9 idr.9

idr.9: Add "SEE ALSO" referring to unr(9) and a "FILES" section
DeltaFile
+5-0share/man/man9/idr.9
+5-01 files

DragonFlyBSD/src fa446a1share/man/man9 unr.9 Makefile

man: Add unr(9) manpage for the kernel unit number allocator

Obtained from FreeBSD but modified to match our code status.

Added 'SEE ALSO' section to refer to idr(9).
DeltaFile
+104-0share/man/man9/unr.9
+6-0share/man/man9/Makefile
+110-02 files

DragonFlyBSD/src 2678e1eshare/man/man9 Makefile

man/man9: Add missing link for idr_alloc()
DeltaFile
+2-1share/man/man9/Makefile
+2-11 files

DragonFlyBSD/src bd3a3dfshare/man/man9 idr.9

idr.9: Explain the NULL return for idr_find()

Referred to Linux documentation:
https://www.kernel.org/doc/html/v4.20/core-api/idr.html#c.idr_find
DeltaFile
+7-0share/man/man9/idr.9
+7-01 files

DragonFlyBSD/src c733890share/man/man9 idr.9

idr.9: Reorder the idr_alloc() description to read more logical

Move the idr_alloc() description to between idr_destroy() and idr_find()
so the whole description reads more logic.

Noted-by: mneumann
DeltaFile
+13-13share/man/man9/idr.9
+13-131 files

DragonFlyBSD/src ee47ed7. COPYRIGHT, sys/sys copyright.h

Bump copyright year
DeltaFile
+1-1COPYRIGHT
+1-1sys/sys/copyright.h
+2-22 files

DragonFlyBSD/src 08a3a1fshare/man/man9 idr.9

idr.9: Document idr_alloc()

Referred to Linux documentation:
https://www.kernel.org/doc/html/v4.20/core-api/idr.html#c.idr_alloc
DeltaFile
+25-1share/man/man9/idr.9
+25-11 files

DragonFlyBSD/src a252d4eshare/man/man4 igb.4

igb.4: Tweak the style of features listing
DeltaFile
+2-2share/man/man4/igb.4
+2-21 files

DragonFlyBSD/src 8cc3317share/man/man4 em.4

em.4: Tweak "i219" to "I219" for consistency
DeltaFile
+1-1share/man/man4/em.4
+1-11 files

DragonFlyBSD/src ca51c49share/man/man5 make.conf.5

make.conf.5: See also build(7) but remove lpd(8)
DeltaFile
+2-2share/man/man5/make.conf.5
+2-21 files

DragonFlyBSD/src 5781d45share/man/man9 idr.9

idr.9: Add brief introduction, history, authors, and style tweaks
DeltaFile
+34-4share/man/man9/idr.9
+34-41 files

DragonFlyBSD/src 408f016share/man/man5 make.conf.5

make.conf.5: Add markup for initrd(7) and flag 'schg'
DeltaFile
+5-2share/man/man5/make.conf.5
+5-21 files

DragonFlyBSD/src 2fd2de7share/man/man9 sbuf.9

sbuf.9: Fix the style of 'sbuf_drain_func' typedef
DeltaFile
+2-1share/man/man9/sbuf.9
+2-11 files

DragonFlyBSD/src 57fb7efusr.sbin/config config.8

config.8: Tweak styles
DeltaFile
+4-5usr.sbin/config/config.8
+4-51 files

DragonFlyBSD/src fac1028usr.bin/dsynth dsynth.1

dsynth.1: Various style tweaks
DeltaFile
+191-108usr.bin/dsynth/dsynth.1
+191-1081 files

DragonFlyBSD/src a5daa50usr.sbin/config config.8

config.8: Tweak the wording and remove the now wrong 60MB number

At this point, the debug info of kernel and modules takes ~550MB of disk
space.  Tweak the wording and no longer mention the exact used space.
DeltaFile
+1-1usr.sbin/config/config.8
+1-11 files

DragonFlyBSD/src 75fd20dsbin/shutdown shutdown.8

shutdown.8: Fix one punctuation mistake
DeltaFile
+1-1sbin/shutdown/shutdown.8
+1-11 files

DragonFlyBSD/src 6656943sys/dev/drm/amd/amdgpu ci_dpm.c gfx_v7_0.c

amdgpu - Build in optional support for "CIK" architecture GPUs.

This builds in support for the KAVERI, BONAIRE, HAWAII, KABINI, and MULLINS,
GPU versions.

The newly added source files were taken from Linux 4.20.17 to match the
rest of the amdgpu driver's current state.

By default, amdgpu(4) is not going to match these models.
In order to make amdgpu(4) match and attach to these GPUs, you have to set
the drm.amdgpu.cik_support=1 tunable in /boot/loader.conf.

Until we have 8bit colormapped mode support in syscons(4), you may also
need to force the driver to setup the console framebuffer in 16bpp or 32bpp
mode, using the `drm.video.<connector>' tunable documented in drm(4).
DeltaFile
+6,844-0sys/dev/drm/amd/amdgpu/ci_dpm.c
+5,264-0sys/dev/drm/amd/amdgpu/gfx_v7_0.c
+3,537-0sys/dev/drm/amd/amdgpu/dce_v8_0.c
+3,383-0sys/dev/drm/amd/amdgpu/kv_dpm.c
+1,406-0sys/dev/drm/amd/amdgpu/cik_sdma.c
+793-0sys/dev/drm/amd/amdgpu/uvd_v4_2.c
+21,227-021 files not shown
+23,704-2627 files

DragonFlyBSD/src e86d832sys/dev/drm/amd/powerplay/hwmgr smu8_hwmgr.c

amdgpu - Avoid spamming with powersaving log messages in regular use.

Unfortunately all the log messages going through the dev_printk() linux
API at the moment get printed without regards to the specified log level.

Hence turning these regular benign logs to use the DRM_DEBUG_DRIVER()
call, which can be optionally turned on via the `hw.drm.debug' sysctl.
DeltaFile
+3-3sys/dev/drm/amd/powerplay/hwmgr/smu8_hwmgr.c
+3-31 files

DragonFlyBSD/src f76e8b9sys/dev/misc/syscons syscons.c

syscons - Use vtophys() for mmap-ing the framebuffer.

With this change, the xf86-video-scrb Xorg/XLibre driver works reliably
on machines using the amdgpu(4) KMS driver.

With amdgpu(4), the framebuffer may be allocated from GTT memory (managed
by TTM and accessed by the GPU through its own IOMMU), and hence is not
contiguous in physical memory.
Using vtophys() in the .d_mmap handler effectively determines the correct
physical address one-by-one for each page of the framebuffer, based on the
kernel's virtual memory mapping.

More optimally, we would call into the correct drm/ttm function to handle
these mmap requests in a more efficient way, however that will require some
more changes to how we pass the framebuffer information on to syscons.
Or alternatively we figure out how to tell amdgpu(4) to always use VRAM for
the framebuffer.
DeltaFile
+4-1sys/dev/misc/syscons/syscons.c
+4-11 files

DragonFlyBSD/src 610965dusr.sbin/makefs/hammer2 hammer2_vnops.c hammer2_chain.c

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

Sync with following sys/vfs/hammer2 commits.

$ git log --pretty="%h %s" fb6876367e661ff6b883baafc4e204432813da9b.. -- sys/vfs/hammer2/
d21046eeda Fix various typos
5f49e876b9 hammer2 - Add debugging
abe564f10e kernel - Minor Syntax cleanup
0d0182bdb4 hammer2 - disable FIOSEEKHOLE
a9d812fe50 sys/vfs/hammer2: Remove hardlink related obsolete comments
af1833426b sys/vfs/hammer2: Add missing ctime updates
DeltaFile
+10-17usr.sbin/makefs/hammer2/hammer2_vnops.c
+24-3usr.sbin/makefs/hammer2/hammer2_chain.c
+8-12usr.sbin/makefs/hammer2/hammer2_inode.c
+3-2usr.sbin/makefs/hammer2/hammer2_vfsops.c
+5-0usr.sbin/makefs/hammer2/hammer2_ioctl.c
+1-3usr.sbin/makefs/hammer2/hammer2_xops.c
+51-376 files

DragonFlyBSD/src b08bfb7sys/kern kern_proc.c

KERN_PROC - Fix KERN_PROC_ARGS and KERN_PROC_CWD to return length if oldptr==NULL.

Sysctl handlers still have to compute the full output, even when
oldptr == NULL. This is necessary to implement the behavior documented in
sysctl(3), that it will return the required buffer length in "oldlenp", if
"oldptr" is NULL and "oldlenp" is not NULL.
DeltaFile
+46-48sys/kern/kern_proc.c
+46-481 files

DragonFlyBSD/src d21046eshare/man/man8 swapcache.8, sys/kern vfs_bio.c

Fix various typos
DeltaFile
+2-2sys/vm/vm_zone.c
+2-2share/man/man8/swapcache.8
+1-1sys/vfs/hammer2/hammer2_vnops.c
+1-1sys/kern/vfs_bio.c
+1-1sys/sys/spinlock.h
+1-1sys/sys/vnode.h
+8-81 files not shown
+9-97 files

DragonFlyBSD/src ea2c254sys/vfs/procfs procfs_status.c procfs_regs.c

procfs - Don't reset fd offset when reading regs, fpregs, or dbregs files.

* For repeated reads, we can simply use pread(2). And this way, we allow for
  normal shell tooling to work correctly on these procfs files.

* This also matches the behavior on NetBSD.
DeltaFile
+1-1sys/vfs/procfs/procfs_status.c
+0-1sys/vfs/procfs/procfs_regs.c
+0-1sys/vfs/procfs/procfs_dbregs.c
+0-1sys/vfs/procfs/procfs_fpregs.c
+1-44 files

DragonFlyBSD/src 7380d6asys/dev/drm/amd/display/amdgpu_dm amdgpu_dm.c, sys/dev/drm/amd/display/dc/dce110 dce110_hw_sequencer.c

amdgpu - Expose amdgpu support for RGB565 mode.

Taken-from: Linux 1352c779cb74d427f4150cbe779a2f7886f70cae (hw_sequencer)
            Linux 46dd9ff7246fd21cc4228a4e7e1d40c30f210dec (rgb_formats)
DeltaFile
+3-0sys/dev/drm/amd/display/dc/dce110/dce110_hw_sequencer.c
+1-0sys/dev/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+4-02 files

DragonFlyBSD/src a7d1eb3sys/dev/drm drm_sysctl.c drm_vblank.c

drm - Revive hw.dri.vblank_offdelay and hw.dri.timestamp_precision sysctls.

* The hw.dri.vblank_offdelay sysctl can be useful to prevent the vblank IRQ
  from constantly firing in some scenarios. Also adjusting this may still be
  beneficial in combination with PSR (Panel self refresh) on i915(4).
DeltaFile
+3-2sys/dev/drm/drm_sysctl.c
+2-2sys/dev/drm/drm_vblank.c
+5-42 files

DragonFlyBSD/src 5b3343eshare/man/man4 syscons.4

syscons.4 - kern.kms_console tunable is gone, it's no longer experimental.
DeltaFile
+1-13share/man/man4/syscons.4
+1-131 files

DragonFlyBSD/src f940d57usr.bin/truss setup.c main.c

truss - Various small code cleanups.

* Remove accidentally committed ktrace.out file.

* Simplify some code, e.g. malloc+bzero -> calloc, and fprintf+exit -> errx.

* Use runtime variable sys_nsig, instead of compile-time NSIG for the
  range-check in the sys_signame[] lookup.

* We don't even have a "break" syscall in DragonFly, rename entry to "sbrk".
DeltaFile
+3-6usr.bin/truss/setup.c
+3-5usr.bin/truss/main.c
+3-4usr.bin/truss/syscalls.c
+0-0usr.bin/truss/ktrace.out
+9-154 files

DragonFlyBSD/src b67e205usr.bin/truss main.c ktrace.out

truss - Fail properly, if we suddenly are missing permissions.

* This avoids infinitely retrying the ioctl in a loop. If we are missing
  permissions, it's reasonable to just give up.

* This happens for example, when you try to run truss on a setuid executable
  like ping(8).
DeltaFile
+6-3usr.bin/truss/main.c
+0-0usr.bin/truss/ktrace.out
+6-32 files

DragonFlyBSD/src 6201675usr.bin/truss syscalls.c x86_64-fbsd.c

truss - Use pread(2) instead of seek+read for reading the process' memory.

* Also drastically simplifies get_string() by setting an absolute maximum
  on the length of the string at MAXPATHLEN. That makes it easy to just use
  a pread() to read the memory, and then we can simply extract the string
  using strndup().
DeltaFile
+29-55usr.bin/truss/syscalls.c
+4-6usr.bin/truss/x86_64-fbsd.c
+1-1usr.bin/truss/syscall.h
+34-623 files