DragonFlyBSD/src e337742share/man/man9 efirt.9

efirt.9: Comment out a non-existant function.

DragonFlyBSD/src da43775sys/dev/drm drm_gem.c

drm: Fix excessive wired memory usage

* This is a partial revert of 7ca4ece0a85bea451332580015344d3f12333419:
  "drm: Rename struct drm_gem_object.vm_obj to filp".

* That commit caused wired memory usage to become excessive over time.
DeltaFile
+14-7sys/dev/drm/drm_gem.c
+14-71 files

DragonFlyBSD/src ab5862fsys/dev/drm drm_gem.c, sys/dev/drm/include/drm drm_gem.h

drm/gem: de-inline the ref/unref functions

Reducing differences with Linux 4.7.10

DragonFlyBSD/src 341b570sys/dev/drm/include/linux workqueue.h

drm/linux/workqueue: the internal function is named func

Some driver code expects to be able to access it.

DragonFlyBSD/src 1f119bclib/libc/stdio fgetln.3

fgetln.3: Add the CAVEATS section with an example

Add the CAVEATS section to warn about the behavior of fgetln().  An
example is included to demonstrate how to properly use it.

Obtained-from: NetBSD, with the ferror() check from OpenBSD

DragonFlyBSD/src d9c542flib/libc/stdio fgetln.3

fgetln.3: Recommend to use the safer POSIX getline()

Obtained-from: OpenBSD

DragonFlyBSD/src 45e55a3lib/libc/stdio getline.3

getline.3: Note to distinguish between error and EoF

Note that the getline() and getdelim() functions do not distinguish
between end-of-file and error, so the callers must use feof() or
ferror() to determine which occurred.

Update the example to check the error.

Obtained-from: OpenBSD

DragonFlyBSD/src d883c47sys/vfs/tmpfs tmpfs_vnops.c

tmpfs - Fix periodic syncer cpu-bound stalls w/tmpfs on big-mem boxes

* A bug in tmpfs leaves dirty tmpfs vnodes (which is basically all
  of them) on the syncer list, causing the syncer to scan the entire
  list every few seconds.  When a large number of vnodes are involved,
  this can lead to noticable cpu-bound stalls on the cpu the syncer is
  running on.

* Generally speaking this should significantly improve applications
  which use tmpfs a lot, such as synth runs, but was probably not noticed
  on machines with less than 32GB of ram due to the lower kern.maxvnodes
  default.

* Solved by unconditionally removing the vnode from the syncer list
  in tmpfs_fsync(), but otherwise leaving the vnode marked VISDIRTY and
  usually also VOBJDIRTY.  Tmpfs's reclaim code properly handles the
  disconnect regardless of the syncer state of the vnode.

  Removing the vnode ensures that only one syncer pass is performed on
  it, instead of repeated passes every few seconds.

DragonFlyBSD/src 86ab453share/misc pci_vendors

Update the pciconf(8) database.

January 9, 2019 snapshot from https://pci-ids.ucw.cz
DeltaFile
+92-18share/misc/pci_vendors
+92-181 files

DragonFlyBSD/src 4ef1e33sys/conf options, sys/config LINT64

kernel: Hide the sysctl.debug sysctl in the SYSCTL_DEBUG kernel option.

The output is quite excessive and was previously too easily triggered,
like with "sysctl name=value" (instead of just "name=value") in
/etc/sysctl.conf.

Taken-from: FreeBSD

DragonFlyBSD/src ee3ebeelib/libpuffs dispatcher.c framebuf.c, lib/librefuse refuse.c

kernel: Remove puffs(4), putter(9) and associated libs and utilities.

All of these were originally pushed and hooked into the build in non-
working condition so that they would not go stale break building. The
hope was that someone would pick up the work and fix the remaining
issues, which never materialized.

This has led to more harm than good, with people occasionally assuming
that this code is functional. Also, the existence of /usr/include/fuse.h
might lead configure checks into believing that we have a working
implementation.

DragonFlyBSD/src ae12603sys/conf options, sys/config LINT64

kernel: Hide the sysctl.debug sysctl in the SYSCTL_DEBUG kernel option.

The output is quite excessive and was previously too easily triggered,
like with "sysctl name=value" (instead of just "name=value") in
/etc/sysctl.conf.

Taken-from: FreeBSD

DragonFlyBSD/src c5122b6sbin/hammer2 cmd_snapshot.c

sbin/hammer2: Silence -Wformat-truncation= warning on Linux (gcc 7.3)

filename[HAMMER2_INODE_MAXNAME] may not be sufficient if
snprintf source pfs.name string is large enough. To silence
the warning, filename[] needs another 16 bytes.

This doesn't make difference on runtime, because bytes beyond
sizeof(pfs.name) won't be used even if strlen(pfs.name) is
large enough that filename[] contents exceeds sizeof(pfs.name).

(i.e. end result of pfs.name may be incomplete with or without
this commit)

--
cmd_snapshot.c: In function 'cmd_pfs_snapshot':
cmd_snapshot.c:84:9: warning: '%04d' directive output may be truncated writing between 4 
and 11 bytes into a region of size between 0 and 255 [-Wformat-truncation=]
     "%s.%04d%02d%02d.%02d%02d%02d",
         ^~~~
cmd_snapshot.c:83:3: note: 'snprintf' output between 17 and 324 bytes into a destination 
of size 256
   snprintf(filename, sizeof(filename),
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     "%s.%04d%02d%02d.%02d%02d%02d",
     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    [14 lines not shown]

DragonFlyBSD/src 2df2f91lib/librecrypto Makefile Makefile.inc

libcrypto: Switch over to libc's reallocarray().

DragonFlyBSD/src 20a7cd2lib/libc Versions.def

libc: Adjust Versions.def properly.

DragonFlyBSD/src 483114bsys/dev/crypto/aesni aesni.h, sys/dev/misc/syscons syscons.c

i386 removal, part 70/x: Remove some i386 specific bits in the kernel.

DragonFlyBSD/src afbe4b8sys/dev/netif/bge if_bge.c, sys/dev/netif/dc if_dc.c

i386 removal, part 69/x: Clean up sys/dev/netif.

According to comments from sephe.

DragonFlyBSD/src 9c10bdflib/libssh Makefile config.h, usr.bin/mandoc Makefile config.h

Make libssh and mandoc use reallocarray() from libc.

DragonFlyBSD/src 6693232lib/libc Versions.def, lib/libc/stdlib reallocarray.3 reallocarray.c

libc: Add reallocarray() from OpenBSD.

It is useful for dhcpcd, mandoc and libssh. Also some dports might pick
it up. A few other dports have workarounds which, once reallocarray() is
in release too, can be removed.

Taken-from:     OpenBSD (manual page from FreeBSD)
Pointed-out-by: aly

DragonFlyBSD/src 8b72cebsys/dev/drm/include/drm drm_mipi_dsi.h, sys/dev/drm/include/linux device.h

drm/linux: Add struct device_driver

DragonFlyBSD/src 868037eetc rc.subr

rc.subr: Fix breakage in the rcrun(8) scripts.

0e7badd402459228d38ddfb0e06224b5a3d9fdf8 added an early exit to
rc.subr to avoid sourcing it again. However, some DragonFly bits
in rc.conf are specific to the rc.d script that rc.subr is sourced
from, specifically the contents of the $provide_list variable. The
result was that the varsym variables that rcstart(8) et al. use to
track dependency states were not get set.

Put the setup of $provide_list before the early exit.
DeltaFile
+5-5etc/rc.subr
+5-51 files

DragonFlyBSD/src b353504etc rc.subr

rc.subr: Fix breakage in the rcrun(8) scripts.

0e7badd402459228d38ddfb0e06224b5a3d9fdf8 added an early exit to
rc.subr to avoid sourcing it again. However, some DragonFly bits
in rc.conf are specific to the rc.d script that rc.subr is sourced
from, specifically the contents of the $provide_list variable. The
result was that the varsym variables that rcstart(8) et al. use to
track dependency states were not get set.

Put the setup of $provide_list before the early exit.
DeltaFile
+5-5etc/rc.subr
+5-51 files

DragonFlyBSD/src c2a57f4sys/boot/common loader.8, sys/platform/pc64/x86_64 machdep.c

Add work-around for bug #3167

"UEFI boot hangs right after initializing UEFI framebuffer."
It actually boots but the system console is not shown.

I had this issue on a TUXEDO InfinityBook Pro 14v4.
This commits allows me to boot by setting loader tunable
machdep.hack_efifb_probe_early=1.

This commit is not intended to be there forever.
It's there for people who experience the same issue and want
a quick and easy way to test if this fixes their booting issue.

Discussed-with: dillon

DragonFlyBSD/src ff4021asys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/source/compiler dttemplate.h

Sync ACPICA with Intel's version 20190108.

* New acpiexec(8) option -va to dump memory leak information.

* iasl(8)'s TPM2 table template adjusted for revision 4 of the table.

* Bumped copyrights.

DragonFlyBSD/src 9ea75bb. Makefile_upgrade.inc

Makefile_upgrade.inc: Add a missing file i forgot in 5a31d992307898

DragonFlyBSD/src 5177bbcusr.bin/openssl Makefile

openssl(1): Remove a no longer existing .PATH from the Makefile.

DragonFlyBSD/src 123d597sys/dev/netif/iwn Makefile, sys/dev/raid/mly Makefile

kernel/Makefiles: Remove two empty lines I added by mistake.

DragonFlyBSD/src ba7073csys/dev/drm/i915 i915_gem.c

drm/i915/gem: Really implement i915_gem_object_invalidate()

DragonFlyBSD/src c15ebf2sys/dev/drm/include/linux fs.h types.h

drm/linux: Add invalidate_mapping_pages()

Inspired-by: FreeBSD

DragonFlyBSD/src 922e7c4sys/dev/drm/i915 i915_drv.c

drm/i915: Sync i915_drv.c a bit with Linux

DragonFlyBSD/src ffdba38sys/dev/netif/iwn Makefile, sys/dev/raid/ciss Makefile

kernel: Change CFLAGS -> KCFLAGS also in commented out Makefile lines.

DragonFlyBSD/src 372a54asbin/ipfw3 ipfw3.c ipfw3.8, sys/net/ipfw3 ip_fw3.c ip_fw3.h

ipfw3: insert the new rule in the beginning

"ipfw3 add" is still the same, while the "ipfw3 insert" is the new method
which will insert the new rule in the beginning of the rule list.

DragonFlyBSD/src 5bb7726sbin/cryptdisks cryptdisks.c, sbin/dhclient dhclient.c

Revert "Remove some dead code."

This reverts commit cbd427ca6efda3055e8e1a189941b6a84fc67aaf.

Oops, didn't mean to MFC this.

DragonFlyBSD/src cbd427csbin/cryptdisks cryptdisks.c, sbin/dhclient dhclient.c

Remove some dead code.

DragonFlyBSD/src e129008sbin/cryptdisks cryptdisks.c, sbin/dhclient dhclient.c

Remove some dead code.

DragonFlyBSD/src 565c885sys/dev/drm drm_prime.c linux_dma-buf.c, sys/dev/drm/drm Makefile

drm: Add drm_prime.c

Increase dma-buf subsystem coverage.

DragonFlyBSD/src 717ec3bsys/dev/drm/i915 i915_gem_userptr.c i915_dma.c

drm/i915: Enable the I915_GEM_USERPTR ioctl

Start building some of the associated code

DragonFlyBSD/src d7fb4e9sys/dev/drm drm_mm.c, sys/dev/drm/include/drm drm_mm.h

drm: Partially sync drm_mm.c with Linux 4.7.10

DragonFlyBSD/src ebd7ffcsys/sys kernel.h

kernel: Remove two no longer used sysinit ids.

* SI_BOOT2_BIOS was used for longrun and other i386 specific stuff only.
  The last usage was removed in c292f53669b4862993224dcf5c489355215be50d.

* SI_SUB_CLIST was removed in the recent tty clist refactoring commit,
  see 4725869b060b0e647b6c64480a0ce50f64ff23bb.
DeltaFile
+0-2sys/sys/kernel.h
+0-21 files

DragonFlyBSD/src 424fe97sys/bus/u4b/storage/umass Makefile, sys/bus/u4b/storage/usfs Makefile

kernel: Remove unused *.h files from SRCS in kernel module Makefiles. (2)

Forgot two Makefiles.

DragonFlyBSD/src 831b631sys/cpu/x86_64/include profile.h, sys/kern subr_prof.c

kernel: Remove kernel profiling bits.

It was broken on i386, is even more broken on x86_64 and isn't
worth fixing.

Discussed-with: dillon

DragonFlyBSD/src 5a31d99sys/bus/u4b/input atp.c, sys/bus/u4b/wlan if_urtw.c if_zyd.c

Clean up the USB driver directories, remove unbuilt source.

Remove old source that has not (yet) been ported. If any of these
drivers would get ported in the future, it would be from current
FreeBSD source anyway. Keeping the old source around just confuses
when grepping in /usr/src.

DragonFlyBSD/src 59ee9c3lib/libc/resolv res_sendsigned.c

lib/libc: Remove a file that is not used in libc.

DragonFlyBSD/src 0ffa96asys/bus/firewire Makefile, sys/bus/pccard Makefile

kernel: Remove unused *.h files from SRCS in kernel module Makefiles.

They were found by checking the preprocessed code of the files
in SRCS to see if the header was included at some point.

After removal, the preprocessed source of a build with the old
Makefiles was compared against one with the changes (for various
kernel configurations and when building just from /usr/src) to
verify that the commit leads to no functional change.

DragonFlyBSD/src 8665870sys/conf files, sys/dev/drm/i915 i915_gem_dmabuf.c i915_drv.h

drm/i915: Add i915_gem_dmabuf.c

This just means we now build more dma-buf code, not that the
end result is usable.

DragonFlyBSD/src 7ca4ecesys/dev/drm drm_gem.c, sys/dev/drm/i915 i915_gem.c i915_gem_shrinker.c

drm: Rename struct drm_gem_object.vm_obj to filp

Synchronize a bunch of related code with Linux

DragonFlyBSD/src a02358bsys/dev/drm/include/linux mmu_context.h

drm/linux: Add linux/mmu_context.h

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

HAPPY NEW YEAR!

DragonFlyBSD/src 3755bf2share/zoneinfo asia australasia

Sync zoneinfo database with tzdata2018i from ftp://ftp.iana.org/tz/releases

* Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.

* New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.

* Metlakatla, Alaska observes PST this winter only.

* Guess Morocco will continue to adjust clocks around Ramadan.

* Add predictions for Iran from 2038 through 2090.

* São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.

For a detailed list of changes, see share/zoneinfo/NEWS.

DragonFlyBSD/src bdceac1share/zoneinfo asia australasia

Sync zoneinfo database with tzdata2018i from ftp://ftp.iana.org/tz/releases

* Qyzylorda, Kazakhstan moved from +06 to +05 on 2018-12-21.

* New zone Asia/Qostanay because Qostanay, Kazakhstan didn't move.

* Metlakatla, Alaska observes PST this winter only.

* Guess Morocco will continue to adjust clocks around Ramadan.

* Add predictions for Iran from 2038 through 2090.

* São Tomé and Príncipe switches from +01 to +00 on 2019-01-01.

For a detailed list of changes, see share/zoneinfo/NEWS.