DragonFlyBSD/src ddc3026sys/dev/drm drm_drv.c, sys/dev/drm/include/drm drmP.h

drm: Fix debug messages issues introduced by the Linux 4.9 update

DragonFly's kprintf() doesn't understand %pV

DragonFlyBSD/src 600b876include nl_types.h langinfo.h

<langinfo.h>/<nl_types.h>: Clean up the POSIX namespace.

* <langinfo.h>: <sys/types.h> isn't needed at all in this header. Also
    put the ALTMON_* definitions into __BSD_VISIBLE.

* <nl_types.h>: <sys/types.h> isn't needed here either. For some
    internal structures, __int*_t from <machine/stdint.h> is
    sufficient.

Thanks for testing with a dports bulk build to zrj.

DragonFlyBSD/src 9baa033sys/vfs/hammer2 hammer2_vnops.c

hammer2 - Finally fix the 'file winds up with some zeros' bug

* Fix this bug, which has been reported several times this year
  but until nikita's hands-on I couldn't find it.

* The bug occurs when H2 must transition from the 512 bytes of
  file data directly embedded in the inode to a block table as
  a file grows past 512 bytes.

  Basically what happens is that the buffer cache buffer holding
  the data in-transition can get lost.

  The result is that the first write() that overlaps seek offset
  512 in a small file can sometimes cause the prior data at the
  start of the file to be lost.

* To solve the problem the buffer is now held across the transition
  and explicitly dirtied to force it to be flushed to the now-
  realized block table.

Reported-by: nikita and several others this year

DragonFlyBSD/src 75a42a5sys/vfs/hammer2 hammer2_vnops.c

hammer2 - Finally fix the 'file winds up with some zeros' bug

* Fix this bug, which has been reported several times this year
  but until nikita's hands-on I couldn't find it.

* The bug occurs when H2 must transition from the 512 bytes of
  file data directly embedded in the inode to a block table as
  a file grows past 512 bytes.

  Basically what happens is that the buffer cache buffer holding
  the data in-transition can get lost.

  The result is that the first write() that overlaps seek offset
  512 in a small file can sometimes cause the prior data at the
  start of the file to be lost.

* To solve the problem the buffer is now held across the transition
  and explicitly dirtied to force it to be flushed to the now-
  realized block table.

Reported-by: nikita and several others this year

DragonFlyBSD/src 39bca54sys/bus/smbus/ichiic ig4_pci.c ig4_iic.c

ig4 - Relabel as generic Designware I2c, add IDs

* This controller is actually third-party IP, not Intel-specific,
  and is apparently also used on AMD SOCs.

* Bring in PCI ids and ACPI ids from FreeBSD.

* Bring in a few bug fixes from FreeBSD as well.

* Now attaches on Lenovo ideapad 14 AMD-version (untested).

DragonFlyBSD/src 3776dcfsys/dev/drm/include/asm io.h

drm/linux: Add arch_io_reserve_memtype_wc and arch_io_free_memtype_wc()

DragonFlyBSD/src 1587986sys/dev/misc/amdsbwd amdsbwd.c amd_chipset.h, sys/dev/powermng/intpm intpm.c

kernel - Update AMD chipset drivers for watchdog and smbus

* Update the AMD chipset drivers for amdsbwd (watchdog) and
  intpm (smbus for power management and other things).

* Now detects the smbus and watchdog on the 3500U laptop APU.

Taken-from: FreeBSD

DragonFlyBSD/src a6e2b8asys/dev/drm/radeon cik.c

drm/radeon: Use an amdgpu firmware file name with cik hardware

Some Radeon firmwares like this particular one have only been packaged
in sysutils/devfw-amdgpu and not sysutils/devfw-radeon.

Submitted-by: zrj

DragonFlyBSD/src 4192c95sys/vfs/msdosfs msdosfs_lookup.c

sys/vfs/msdosfs: Fix ->de_fndcnt calculation on lookup

from freebsd/freebsd at eba490783823f36f4f8ec62014ac22c7deae8fbd

DragonFlyBSD/src b0a9540share/man/man4 dm_target_delay.4 dm_target_flakey.4, sys/dev/disk/dm/delay dm_target_delay.c

sys/dev/disk/dm: Change email address (sync with autofs/FUSE and others)

DragonFlyBSD/src e8de9e9sys/dev/drm/radeon si.c

drm/radeon: Disable acceleration on si

This prevents xfce 4.14 hangs/black screens

DragonFlyBSD/src 1dedbd3sys/dev/drm drm_crtc.c drm_connector.c, sys/dev/drm/include/drm drm_crtc.h

drm: Update generic, ttm and radeon code to Linux 4.9

* Generally cleanup non driver-specific code and increase its
  robustness

* DisplayPort support improvements

* Atomic modesetting improvements

* Radeon performance and stability improvements

* drm/i915 stays based on Linux 4.7.10 with Linux 4.19 changes
  for now

Reviewed-by: Romick

DragonFlyBSD/src f1c466flib/libc/citrus citrus_iconv_local.h

libc/citrus: Include <sys/types.h> for int*_t etc. types.

DragonFlyBSD/src d783842games/boggle/boggle extern.h

boggle(6): Include <time.h> for time_t.

DragonFlyBSD/src b80b4d4include string.h

<string.h>: Clean up the namespace.

* Stop including <sys/types.h> which was needed only for mode_t for
  the BSD specific strmode(). Define mode_t locally in __BSD_VISIBLE.

* Increase visibility of the memccpy() prototype. It is older than
  SUSv3.
DeltaFile
+7-2include/string.h
+7-21 files

DragonFlyBSD/src 6ffa693sys/vfs/msdosfs msdosfs_vnops.c

sys/vfs/msdosfs: Fix comment on locking on rename(2)

fdvp is locked too.

DragonFlyBSD/src bc5f116sys/vfs/msdosfs msdosfs_fat.c msdosfsmount.h

sys/vfs/msdosfs: Sync VFS lock assertion with FreeBSD

Same locking applies to DragonFly VFS for these.

DragonFlyBSD/src ef10c7dlib/libc/net getaddrinfo.c

libc/getaddrinfo: Accept numeric servname for AF_INET/AF_INET6

  According to RFC3493:

    If servname is null, the call shall return network-level addresses
    for the specified nodename.  If servname is not null, it is a null-
    terminated character string identifying the requested service.  This
    can be either a descriptive name or a numeric representation suitable
    for use with the address family or families.  If the specified
    address family is AF_INET, AF_INET6 or AF_UNSPEC, the service can be
    specified as a string specifying a decimal port number.

  Taken from: FreeBSD r190382

DragonFlyBSD/src 1cc249asys/vfs/msdosfs msdosfs_vfsops.c

sys/vfs/msdosfs: Unmount on update_mp() failure if !MNT_UPDATE

bits from freebsd/freebsd at 7845779267aeba1e407bd512be0720c6129bbbb1

DragonFlyBSD/src 78c205cinclude/xlocale _string.h

<xlocale/_string.h>: Mention that we are missing strerror_l().

DragonFlyBSD/src 3334604sys/sys signal.h _siginfo.h

<signal.h>/<sys/_siginfo.h>: Some fixes after my recent commits.

* In <sys/_siginfo.h>, include just <machine/stdint.h>. No more is
  needed.

* In <signal.h>, continue to use struct __siginfo in struct sigaction,
  primarily to deal with the case where __POSIX_VISIBLE is <199309,
  of which for example graphics/png is one.

Reported-by: zrj

DragonFlyBSD/src a767407sys/kern syscalls.master

syscalls.master: Remove some trailing whitespace.

DragonFlyBSD/src b01be66sys/vfs/fuse fuse_abi.h

sys/vfs/fuse: Add note to sys/vfs/fuse/fuse_abi.h

DragonFlyBSD/src 49837aesys/vfs/autofs autofs_vnops.c, usr.sbin/autofs automount.8 autounmountd.8

autofs: Change email address (sync with FUSE and others)

DragonFlyBSD/src bf95f21sys/vfs/msdosfs msdosfs_vnops.c msdosfs_denode.c

sys/vfs/msdosfs: Allow deupdat() against non root directory

bits from freebsd/freebsd at c7af094e18c4e4ca2a26a88c488a803472d330ee

Given ondisk layout of root directory in FAT12/16 and FAT32,
don't allow deupdat() or setattr() against root directory,
but allow against other directories.

DragonFlyBSD/src 3854335sys/sys wait.h

<sys/wait.h>: Provide and use siginfo_t and union sigval.

https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html
DeltaFile
+3-3sys/sys/wait.h
+3-31 files

DragonFlyBSD/src 27622b7sys/sys _siginfo.h signal.h

Add <sys/_siginfo.h> to provide the definitions of siginfo_t and sigval.

They will be shared between <signal.h> and <sys/wait.h>.
DeltaFile
+142-0sys/sys/_siginfo.h
+2-100sys/sys/signal.h
+144-1002 files

DragonFlyBSD/src 2ff60deshare/misc pci_vendors

Update the pciconf(8) database.

November 10, 2019 snapshot from https://pci-ids.ucw.cz
DeltaFile
+106-13share/misc/pci_vendors
+106-131 files

DragonFlyBSD/src 6a951e1sys/vfs/msdosfs msdosfs_vnops.c

sys/vfs/msdosfs: Correct _PC_FILESIZEBITS value

32 is enough (where did 33 come from ?).

DragonFlyBSD/src 922d931sys/sys wait.h

<sys/wait.h>: Remove duplicate include.

<machine/stdint.h> is already included at this point.
DeltaFile
+0-1sys/sys/wait.h
+0-11 files

DragonFlyBSD/src e913106sys/vfs/msdosfs msdosfs_conv.c

sys/vfs/msdosfs: Remove seemingly unneeded mbnambuf code

originally from 3435d5778808adf9c89a4f9f0e34010b4dc8888f in 2009.
Sync with what FreeBSD does.
Also sync minor styles with FreeBSD.

DragonFlyBSD/src 29b24abgames/sail dr_5.c

sail(6): Comment out a double assignment.
DeltaFile
+2-0games/sail/dr_5.c
+2-01 files

DragonFlyBSD/src 806a5edlib/libc/citrus citrus_mmap.c, lib/libc/gen sysconf.c

libc: Add more namespace.h/un-namespace.h.

DragonFlyBSD/src 78897f0lib/libc_r/uthread uthread_mutex.c pthread_private.h

Remove the old libc_r.

Nothing is using it, if it even works, and no one has been working
on it for a long time.

Approved-by: dillon

DragonFlyBSD/src 6248153test/libpthread mutex_d.c sigsuspend_d.c

test/libpthread: Clean up a bit.

DragonFlyBSD/src e5a92d3lib/libc_r/test mutex_d.c verify, test/libpthread mutex_d.c verify

Move libc_r's tests to a more generic location.

DragonFlyBSD/src 020a878lib/libc/sys sigprocmask.2, lib/libc/upmap sigblockall.3 Makefile.inc

sigblockall.3/sigprocmask.2: Various small fixes/markup improvements.

DragonFlyBSD/src 21265a8usr.bin/dsynth status.c build.c

dsynth(1): Fix a couple of typos.

While here, remove two useless externs.

DragonFlyBSD/src a474434lib/libmagic/libmagic Makefile

libmagic: Sort MAGFILES before creating /usr/share/misc/magic.

DragonFlyBSD/src 9aaa28fusr.bin/calendar calendar.h

calendar(1): Remove a useless extern.

DragonFlyBSD/src da589ccsys/vfs/msdosfs msdosfs_vfsops.c

sys/vfs/msdosfs: Assume up to 8192 bytes sector for BPB

from freebsd/freebsd at dba17f21d375effcf89349e1d86b34b2f408ad0b

DragonFlyBSD/src d0bcca4. Makefile.inc1 Makefile

build - Add build-all and install-all targets

* Add a 'smart' build-all and install-all target that spews to a
  log file instead of to the screen and.   Will automatically
  run the build stage -j N, and both targets can be specified on
  one command line.

  make build-all install-all

  build-all:    runs buildworld and buildkernel -j hw.ncpu
  install-all:  runs installkernel and installworld -j 1

* The usual warnings and cautions still apply when installing a
  new world and kernel.
DeltaFile
+30-0Makefile.inc1
+2-1Makefile
+32-12 files

DragonFlyBSD/src 7677b6fsys/vfs/msdosfs msdosfs_lookup.c

sys/vfs/msdosfs: Return EBUSY on lookup on delete/rename of MSDOSFSROOT_OFS

from freebsd/freebsd at e672feb26e335afc5801c618b8d3e24ee7d29414

DragonFlyBSD/src f66b17fsys/vfs/msdosfs direntry.h msdosfs_fat.c

sys/vfs/msdosfs: Sync minor styles with FreeBSD

DragonFlyBSD/src 78f4286usr.bin/dsynth build.c

dsynth - Go back to NO_DEPENDS, with conditions

* Remove STRICT_DEPENDS (that was just added) and go back to
  using NO_DEPENDS, but conditionalized based on the phase.  This
  is an attempt to match what synth does.

* USE_PACKAGE_DEPENDS_ONLY is still set globally, and it seems to
  be in synth as well, but there are still differences in certain
  builds such as textproc/libxslt-reference.

DragonFlyBSD/src ab67bc4sys/vfs/msdosfs msdosfs_fat.c

sys/vfs/msdosfs: Don't use MSDOSFSMNT_WAITONFAT

from freebsd/freebsd at 5e07d49c626dea51d672ea9d9bd1499e0ae8eb29

DragonFlyBSD/src 54838d5sys/vfs/msdosfs msdosfs_denode.c

sys/vfs/msdosfs: Allow B_CLUSTEROK in deupdat()

Since now that VFS clustering is supported, apply remaining bits
from freebsd/freebsd at 3bbdcb77fd843ff34a0054bea92392cee78dd0ec
that was dropped in 8480e7bcdf9ffa9f44f80f9362c6f62424ada748.

DragonFlyBSD/src 8a7fa1fsys/dev/video/vga vga_switcheroo.c

kernel/vga_switcheroo: Remove duplicate include of <sys/sysctl.h>.

DragonFlyBSD/src 15c8fbesys/sys thread.h

<sys/thread.h>: Mark several structs as kernel structures.

 This reduces pollution in userspace.  Adjust several comments.

 While there, mark "struct lwkt_cpu_msg" and lwkt_cpu_port as disabled.
DeltaFile
+17-12sys/sys/thread.h
+17-121 files

DragonFlyBSD/src eaf07fainclude/arpa inet.h, sys/cpu/x86_64/include npx.h

kernel: Stop using <stdint.h> during kernel build.

 This includes VKERNEL too.  Now it should be possible to fully build
 kernel with headers only from src/sys/ (except VKERNEL that is using
 userland headers for obvious reasons, prominently the <signal.h>).

 Now <stdint.h> separation from <sys/types.h> could begin.