DragonFlyBSD/src c59a5c4sys/dev/drm/amd/include/asic_reg/bif bif_5_1_sh_mask.h, sys/dev/drm/amd/include/asic_reg/dce dce_11_0_sh_mask.h dce_10_0_sh_mask.h

drm/radeon: Update to Linux 4.4.180

* Bugfixes and workaround for hardware issues, including
  quirks for various R7 370 and R9 270 models

* VT switching fixes from dillon@

* Fan management improvements

* Improved support for 120+ Hz monitors

DragonFlyBSD/src d33ae0asys/dev/drm drm_dp_iic_helper.c drm_edid.c, sys/dev/drm/drm Makefile

drm: Remove no longer required iic code and dependencies

DragonFlyBSD/src f792f2bsys/dev/drm/include/linux pci.h

drm: Improve linux/pci.h

DragonFlyBSD/src 28ef73fusr.bin/kcollect kcollect.c

kcollect - Add hostname to .db file (2)

* Remove debugging printf().

DragonFlyBSD/src f8220a2usr.bin/kcollect kcollect.c

kcollect - Add hostname to .db file

* Use HEADER2 to indicate the hostname.

* Parse 8 HEADER%d fields generically.

* Automatically update missing or changed header fields in the database.
DeltaFile
+197-117usr.bin/kcollect/kcollect.c
+197-1171 files

DragonFlyBSD/src a0c341cshare/misc pci_vendors

Update the pciconf(8) database.

June 30, 2019 snapshot from https://pci-ids.ucw.cz

DragonFlyBSD/src f089ea9usr.bin/kcollect kcollect.c kcollect.8

usr.bin/kcollect - Add O flag

- The O flag will allow to specify the output format for the
  kcollect data entries.
- Introduce a new output format: InfluxDB. This will try to
  output the statistics in a influxdb line protocol compatible
  format. Please note that this is experimental and subject to
  change in the future.

DragonFlyBSD/src 2d585b4sys/vfs/hammer2 hammer2_disk.h

sys/vfs/hammer2: Drop obsolete comments on attr_tid/dirent_tid

Removed in 7fece146f268d677c46bde997079860f4cf553d0 in 2016.

DragonFlyBSD/src e77251blibexec/telnetd telnetd.c

telnetd(8): Little followup fix to 0ba3ecdcefa6c94daf.

DragonFlyBSD/src e72784elib/libc/gen getlogin.c, lib/libutil logoutx.c loginx.c

Remove a few unneeded inclusions of <utmp.h>.

DragonFlyBSD/src 0ba3ecdlibexec/telnetd sys_term.c telnetd.c

telnetd(8): Add wtmpx support and clean up a bit.

DragonFlyBSD/src 791d0c2bin/date date.c Makefile

date(1): Log to wtmpx too.

As described in the wtmpx(5) manual page. Also add SUPPORT_UTMP{,X}
checks in preparation for us eventually moving to {u,w}tmpx only.

DragonFlyBSD/src 83e186eusr.bin/last last.c

last(1): Fix typo in an error msg.

DragonFlyBSD/src 0177a9d. Makefile_upgrade.inc, sbin Makefile

i386 removal, part 73/x: Remove the ancient nextboot(8) command.

See FreeBSD's r97957.

Reported-by: aly

DragonFlyBSD/src b90e348sys/netgraph7/netgraph ng_parse.c

kernel/netgraph7: Fix build.

DragonFlyBSD/src cc30c1csys/platform/pc64/x86_64 mp_machdep.c

kernel - Zen 2 - Make sure %fs's selector is loaded in AP bootstrap

* Issue load_fs() in the AP bootstrap.  It appears that Zen 2 handles
  %fs in a weird way when the selector isn't loaded, causing the first
  wrmsr(MSR_FSBASE) to quietly fail, and possibly others too.

* For good measure, also issue load_ds() and load_es().

* Fixes DragonFlyBSD's boot on Zen 2.

DragonFlyBSD/src 1a92344sys/platform/pc64/x86_64 mp_machdep.c

kernel - Zen 2 - Make sure %fs's selector is loaded in AP bootstrap

* Issue load_fs() in the AP bootstrap.  It appears that Zen 2 handles
  %fs in a weird way when the selector isn't loaded, causing the first
  wrmsr(MSR_FSBASE) to quietly fail, and possibly others too.

* For good measure, also issue load_ds() and load_es().

* Fixes DragonFlyBSD's boot on Zen 2.

DragonFlyBSD/src b960c7csys/netgraph7 dragonfly.h

kernel/netgraph7: Remove unneeded __va_*() definitions.

DragonFlyBSD/src ae009absys/vfs/hammer2/zlib hammer2_zlib_zconf.h

kernel/hammer2: Use <sys/stdarg.h> in the kernel, not <stdarg.h>.

DragonFlyBSD/src 332f271sys/contrib/dev/acpica/source/include/platform acdragonfly.h acgcc.h

ACPICA: Remove unneeded __va_*() definitions, include <sys/stdarg.h>.

DragonFlyBSD/src 9286b91sys/dev/drm drm_crtc.c drm_dragonfly.c, sys/dev/drm/i915 intel_ddi.c i915_dma.c

kernel/drm: Use va_*() instead of __va_*(), just like upstream.

DragonFlyBSD/src 98fdc2cusr.sbin/pfctl Makefile

pfctl(8): -DPFDEBUG can be used too now for pfctl(8).

Adding <sys/stdarg.h> fixed compilation with it and as far as I can see
there are a few places where it should give debug info from pfctl(8)
too.

DragonFlyBSD/src 60db860include stdarg.h, sys/sys stdarg.h

Make va_*() macros available to the kernel in <sys/stdarg.h>.

Previously, the kernel was restricted to __va_*() only but I can't see
any real reason to do that and it also forces stuff like ACPICA and
drm to use workarounds. Those will be cleaned up in subsequent commits.

For now, I've used <sys/stdarg.h>, because everything resolves to
__builtin_va*() in the end. If we ever need more machine specific
definitions, it has to be moved to <machine/stdarg.h>.

DragonFlyBSD/src 7622fe5sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/source/compiler aslload.c

Sync ACPICA with Intel's version 20190703.

* Remove legacy module-level support code.

* Clear status of GPEs on first direct enable.

* Various improvements to iasl(8).

For detailed list, please see sys/contrib/dev/acpica/changes.txt.

DragonFlyBSD/src 4aa9193usr.bin/kcollect kcollect.8

kcollect(8) - Fix mandoc -Tlint

DragonFlyBSD/src 1a5888dusr.bin/kcollect kcollect.c kcollect.8

usr.bin/kcollect - Add F flag

- '-F' option works like '-f' option but it does not show the whole
  kcollect buffer, just the last entries before starting to print a new
  entry every 10 seconds

DragonFlyBSD/src 9d10bfctest/test test123

test (2)
DeltaFile
+1-1test/test/test123
+1-11 files

DragonFlyBSD/src 8b1a35dusr.bin/last last.1

last.1: Fix .Dd

DragonFlyBSD/src 786bbeausr.bin/last last.1 last.c

last(1): Switch the default to /var/log/wtmpx.

While here, sync usage() with getopt(), remove a few void casts, and
clean up the manual page a bit too.

Reported-by: Diederik de Groot <info at talon.nl>

DragonFlyBSD/src 7d061d0sys/dev/drm linux_i2c.c, sys/dev/drm/include/linux i2c.h

drm/linux: Add struct i2c_board_info and i2c_new_device()

DragonFlyBSD/src 70727bdlib/libutil logwtmpx.c

libutil/logwtmpx: Remove unneeded #include <utmp.h>.

DragonFlyBSD/src 4b54472sbin/reboot reboot.c Makefile

reboot(8): Log to wtmpx too.

While here, put wtmp and wtmpx logging under SUPPORT_UTMP and
SUPPORT_UTMPX, respectively.

DragonFlyBSD/src cb7663dsys/netinet tcp_usrreq.c

kernel - Change tcp keepalive options from ms to seconds (DISRUPTIVE) (2)

* Refactor the code slightly to adopt the same limits and behavior
  as linux.  Instead of capping out we return EINVAL on any out-of-
  bound value.

* Also note that my history was wrong.  Sephe actually implemented
  these options, not me, and it was in 2011 (8 years ago, not 15+).
  So much for my vague memory!  At the time other operating used wildly
  different metrics, and we chose to use milliseconds.  But in the
  intervening years it looks like the main systems have adopted a
  1-second interval.

  In changing our parameters to match, we avoid a lot of pain when
  porting third party applications that use it, particularly chrome.
  But also a few others.

  If we need sub-second parameters in the future we will implement
  new option keywords for it.
DeltaFile
+16-24sys/netinet/tcp_usrreq.c
+16-241 files

DragonFlyBSD/src 842346bsys/netinet tcp_usrreq.c

kernel - Change tcp keepalive options from ms to seconds (DISRUPTIVE)

* Change TCP_KEEPINIT, TCP_KEEPIDLE, and TCP_KEEPINTVL units from
  milliseconds to seconds, matching most other operating system
  distributions.

  This is after the Nth time we've hit problems porting applications.

* I've decided to make this change, even though it is disruptive
  (a significant API change).  It shouldn't effect most use cases
  and it fixes things like chromium without us having to continuously
  patch the chromium sources.

* Fixes numerous too-fast-a-timeout issues with chrome.
DeltaFile
+36-24sys/netinet/tcp_usrreq.c
+36-241 files

DragonFlyBSD/src 1efada7usr.sbin/sshd Makefile

sshd - Make sshd use utmpx / wtmpx

* For now adjust the Makefile for sshd to make it use utmpx and
  wtmpx.  The sshd contrib code expects UTMPX_FILE and WTMPX_FILE
  to be defined in order to use this API.

* sshd's login information is now properly using utmpx/wtmpx so
  'who' whos the full IPV6 address (etc).

Reported-by: dkgroot/NI33

DragonFlyBSD/src 0d92c45usr.bin/who utmpentry.c

who - Fix buffer termination

* Fix printing output when e.g. the utmp host field fills the whole
  buffer.  This doesn't fix the fact that the host field is too small.

Reported-by: dkgroot/NI33

DragonFlyBSD/src eb0e714sys/conf files, sys/dev/drm linux_dmi.c

drm/linux: Add dmi_match()

DragonFlyBSD/src d9d3963test/test test123

test
DeltaFile
+1-0test/test/test123
+1-01 files

DragonFlyBSD/src 59f6addshare/zoneinfo asia africa

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

* Brazil has canceled DST and will stay on standard time indefinitely.

* Predictions for Morocco now go through 2087 instead of 2037.

* Palestine's 2019 spring transition was 03-29 at 00:00, not 03-30
  at 01:00.

* Fix various past transitions for Hong Kong and Italy.

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

DragonFlyBSD/src 2115214share/zoneinfo asia africa

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

* Brazil has canceled DST and will stay on standard time indefinitely.

* Predictions for Morocco now go through 2087 instead of 2037.

* Palestine's 2019 spring transition was 03-29 at 00:00, not 03-30
  at 01:00.

* Fix various past transitions for Hong Kong and Italy.

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

DragonFlyBSD/src c2f0521sys/kern kern_fork.c

kernel - Fix lwp_tid ranging error

* We intended for lwp_tid's to range from 1..INT_MAX, but we
  had the following code in the kernel and unfortunately GCC
  optimizes out the conditional entirely.

  if (++lp->lwp_tid <= 0)
        lp->lwp_tid = 1;

* In addition, the pthreads library actually would like to use
  a few high bits for flags, so fix the limit while we are
  here to 0x3FFFFFFF.  This saves us a pthreads assertion in
  the mutex code if an application is actually able to wind
  the thread id up this high over its life.  Since the TID
  allocation mechanism is pretty simplistic, it is entirely
  possible to do this given heavy thread creation / deletion
  rates and enough time.

* Change the conditional such that GCC does not optimize it out.
  We do not want to depend on -fwrapv for the kernel code to
  compile properly, so we don't use it.

  if (lp->lwp_tid == 0 || lp->lwp_tid == 0x3FFFFFFF)
        lp->lwp_tid = 1;
  else
        ++lp->lwp_tid;

DragonFlyBSD/src 8356845lib/libthread_xu/thread thr_spec.c thr_private.h

pthreads - Use mmap() for thread->specific data

* Any application which tries to replace malloc() can wind up causing
  pthreads to implode due to its use of malloc() in the early thread
  initialization code.

* Change pthread_setspecific() to use mmap() instead of malloc()
  to allocate the per-thread keys array, allowing applications
  which replace malloc() to use pthread_setspecific() to initialize
  per-thread malloc data if so desired.

  The use of pthread_setspecific() predates TLS (per-thread) variable
  declarations, aka the __thread storage qualifier, which is the
  better way to implement per-thread data, but it is still a reasonable
  choice so make it work.

* For DragonFlyBSD this is not expected to improve chrome because
  our chrome build uses our base malloc() and does not try to replace
  it with tcmalloc().  However, this change might help a limited
  number of other applications that do.

Reported-by: sephe, tuxillo

DragonFlyBSD/src 19c984flib/libc/inet inet.3 inet_net.3, lib/libc/net inet.3 inet_net.3

libc: Build inet/, isc/, and nameser/ from their subdirectories.

Also move inet's documentation to the right place.

DragonFlyBSD/src f7fb47elib/libc/nls Makefile.inc

libc: Remove an unneeded .PATH.

DragonFlyBSD/src 330f1efsbin/init init.c Makefile

init(8): Put utmp/wtmp specific code under SUPPORT_UTMP.

DragonFlyBSD/src 6b5c163sys/dev/drm/i915 intel_pm.c i915_gem.c

drm: Start using flush_delayed_work()

DragonFlyBSD/src 0f3a2b9sys/boot/efi/loader devicename.c, sys/sys conf.h param.h

<sys/conf.h>: Move SPECNAMELEN to <sys/param.h>.

Some dports and also stuff in our tree depend on it being public, which
all compensate with local defines for now, some of them not having been
adjusted when SPECNAMELEN was bumped from 15 to 63, such as in
sysutils/{mfi,mpt}d. Patches for these ports have been submitted.

They all could have got at it by defining _KERNEL_STRUCTURES before
including <sys/conf.h> but that didn't catch up it seems.

It's public in <sys/param.h> in FreeBSD and I see no reason why we
shouldn't follow.

Reported-by: aly

DragonFlyBSD/src 4986628sys/sys signal.h

<sys/signal.h>: Adjust a number of struct member types to POSIX.

* siginfo_t's si_pid and si_uid, and stack_t's ss_size. For all of
  these, there are no changes in type sizes and signs.

* Also define the pid_t, uid_t and size_t types, as required by
  the standard.
DeltaFile
+19-4sys/sys/signal.h
+19-41 files

DragonFlyBSD/src f59a43dlib/libc/gen shm_open.3

shm_open.3: Some miscellaneous cleanup.

* Bump .Dd

* Start sentences on new lines.

* Put DragonFly specific implementation details into IMPLEMENTATION NOTES.
DeltaFile
+15-11lib/libc/gen/shm_open.3
+15-111 files

DragonFlyBSD/src 325303asbin/fsck_msdosfs fsck_msdosfs.8, share/man/man4 sio.4 dcons.4

Remove .Ud in some manual pages.