DragonFlyBSD/src a2b1d49sys/conf kern.pre.mk

kern.pre.mk: Add back some Makefile code to fix VKERNEL64 (2)

* Conditionalize the last commit so it only occurs
  for vkernel64 builds.

DragonFlyBSD/src a9358b2sys/conf kern.pre.mk

kern.pre.mk: Add back some Makefile code to fix VKERNEL64.

I removed this by mistake in c47c81dbc5495f8c4fa01a238784813eb56a239e.

Seems this is still needed, even though we inherited it from FreeBSD
before we had the vkernel.

Reported-by: tuxillo

DragonFlyBSD/src d5fff9csys/sys types.h

<sys/types.h>: Add some *_T_DECLARED guards for upcoming work.

These will be used when we clean up <sys/stat.h> and <dirent.h> in the
near future.
DeltaFile
+12-0sys/sys/types.h
+12-01 files

DragonFlyBSD/src a79eea4sys/dev/drm/include/linux io-mapping.h

drm/linux: Fix io_mapping() functions

These functions were mostly stubs and did not properly set memory
cache attributes causing some operations like framebuffer access
to be excessively slow.

Use ioremap() variants internally to fix that.

Spotted-by: peeter, dillon

DragonFlyBSD/src e8b1691sys/kern kern_mutex.c kern_spinlock.c, sys/platform/vkernel64/x86_64 exception.c

kernel - Test pending ints in more crit_exit*() paths

* A number of crit_exit*() paths, primarily in the mutex and
  spinlock code, were not testing for interrupts made pending
  on the last unwind of the critical section.

  This was originally intended to improve performance, but it
  can lead to non-deterministic latencies for processing interrupts.

* Process these pending events in such cases.  We will see if it
  affects performance but I don't think it will be noticeable.

DragonFlyBSD/src c2ec341sys/platform/pc64/include pmap.h, sys/platform/pc64/vmm ept.c

kernel - Improve pmap_change_attr() when used on the DMAP

* When used on the DMAP's 1GB or 2MB pages pmap_change_attr()
  basically didn't work because it tries to access terminal PTEs
  (and there aren't any), instead accidently accessing the
  underlying physical memory and causing corruption.

* Fix this by (1) Forcing the DMAP to use 2MB pages and
  (2) special-casing DMAP addresses in pmap_change_attr()
  to act on the PDEs.

* This is not a complete fix because the granularity for
  any DMAP VAs will still be ~2MB and not 4K.  Its use by
  the DRM subsystem requires more investigation.  But the
  changes should improve some of the reported GPU corruption
  issues.

Reported-by: peeter
Testing-by: multiple

DragonFlyBSD/src c47c81dsys/conf kern.post.mk kern.pre.mk

kern.{post,pre}.mk: Clean up a bit.

kern.post.mk:
-------------
* eddep is not used in kernel context.

* linterrs and the lint target should have been removed when I removed
  xlint back in 84f800532904979799aaeb8123487026f76a6640.

* setdef[01].c and setdefs.h should have been removed when gensetdefs
  was removed in 5e0107f67f7c659007103f791401be27957081cf.

kern.pre.mk:
------------
* Remove some old FreeBSD inherited code that we don't need to build
  a kernel without /usr/src.

* While here, Remove unneeded quotation marks around two include
  directories.

DragonFlyBSD/src f3f7b64games/phantasia/phantasia Makefile

phantasia(6): Fix monters file permissions.

 Allow games group to write too.

Reported-by: zach

DragonFlyBSD/src 8411378sys/conf kmod.mk kern.post.mk, sys/kern/firmware Makefile

kernel: Remove various (mostly commented out) references to vnode_if.[ch].

DragonFlyBSD/src ceb653esys/dev/drm/i915 i915_drv.c

drm/i915: Fix VGA_SWITCHEROO option handling

Reported-by: Peeter Must

DragonFlyBSD/src 19541c3usr.bin/du du.c du.1

du - Add an option to generate results based on file size

* By default du generates results based on st_blkcnt, the actual
  number of blocks used on-media.  This value might be smaller than
  the file size due to filesystem-level compression, or possibly
  larger due to the filesystem also counting overhead for indirect
  blocks.

* Add the -t option.  This option generates results based simply
  on the file size (st_size), and assumes a 512-byte media
  granularity.

  This option gives you an idea of the transmittable bytes if you
  were to copy the file elsewhere.

DragonFlyBSD/src 01cf145sys/dev/serial/sio sio.c

sio - Refactor some of the sio code

* Refactor some of the sio serial port code to reduce the amount of
  time the com_lock() is held and to allow the siointr*() receive
  buffer in the softc to pipeline.
DeltaFile
+59-79sys/dev/serial/sio/sio.c
+59-791 files

DragonFlyBSD/src 17f399fshare/man/man5 rc.conf.5, usr.sbin/powerd powerd.8

docs - Add note about powerd and serial port operation

* Serial port operation at high baud rates such as 115200 may
  lose characters if powerd is allowed to reduce the CPU
  frequency below 1500 MHz.

* Document this fact and include a suggestion for powerd_flags
  if this is not desired.

DragonFlyBSD/src 7f2422cusr.bin/dsynth repo.c

dsynth - Improve compatibility with newer pkg's

* pkg is going through a bit of an evolution in its support for
  suffixes other than .txz, causing some issues with the generation
  of the database and meta file that 'pkg install' fetches.

* In versions before 1.12 pkg always generated .txz database and
  meta files, but pkg install looked for the suffix specified in
  meta.txz for the database files.

  In this case the database files have to be recompressed to
  the requested suffix.

* In versions >= 1.12 (up until the next fix), pkg generates
  the requested suffix, but unfortunately also for the meta file
  too whereas pkg install still looks for 'meta.txz'.

  In this case the meta.<suffix> file has to be recompressed
  using xz to a .txz.

* At some future point pkg repo and pkg install will match up,
  and dsynth may need another commit then.

  In this case no recompression will be needed to make pkg repo
  and pkg install play nicely with each other.
DeltaFile
+45-17usr.bin/dsynth/repo.c
+45-171 files

DragonFlyBSD/src f192cedsys/dev/misc/psm psm.c

psm - Add Elantech touchpad IC type 15 found on Thinkpad L480 laptops

* Add support for thinkpad L480 laptops.

Suggested-by: aly
Taken-from: FreeBSD

DragonFlyBSD/src 46bed26sys/dev/acpica acpi.c

kernel/acpi: Fix debug.acpi.allow_method_calls functionality.

Adding SMAP (Supervisor Mode Access Protection) support back in May
(see 48c77f2b85f9ed807532e99b7187e6f5b5aa2975) caused it to (correctly)
panic on certain machines, such as the Dell XPS 9560, due to trying to
use a userspace pointer from the kernel.

FreeBSD has since fixed this in their sysutils/acpi_call port. This
commit pulls in these changes.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230993 for the
FreeBSD PR.

Submitted-by: Khamba Staring <qdk at quickdekay.net>
DeltaFile
+132-37sys/dev/acpica/acpi.c
+132-371 files

DragonFlyBSD/src 529b045sys/dev/acpica acpi.c

kernel/acpi: Fix debug.acpi.allow_method_calls functionality.

Adding SMAP (Supervisor Mode Access Protection) support back in May
(see 48c77f2b85f9ed807532e99b7187e6f5b5aa2975) caused it to (correctly)
panic on certain machines, such as the Dell XPS 9560, due to trying to
use a userspace pointer from the kernel.

FreeBSD has since fixed this in their sysutils/acpi_call port. This
commit pulls in these changes.

See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230993 for the
FreeBSD PR.

Submitted-by: Khamba Staring <qdk at quickdekay.net>
DeltaFile
+132-37sys/dev/acpica/acpi.c
+132-371 files

DragonFlyBSD/src 0ce3268sys/dev/drm/i915 i915_params.c

drm/i915: Revert unintended changes in i915_params.c

They were introduced in 1487f78699db6b645ec307a207e4611f50a7cc53

DragonFlyBSD/src 3066122sys/dev/misc/psm psm.c

psm - Add Elantech touchpad IC type 15 found on Thinkpad L480 laptops

* Add support for thinkpad L480 laptops.

Suggested-by: aly
Taken-from: FreeBSD

DragonFlyBSD/src 2f9f168usr.sbin/fstyp hammer2.c hammer.c

usr.sbin/fstyp: Add device name to HAMMER2 label for autofs -media mount

This helps autofs -media mount support multiple HAMMER2 mounts
if not perfect solution. The format may change in future.

Add minor fix to HAMMER1 label algorithm to sync with this commit.

DragonFlyBSD/src fc0abc3sys/dev/drm/i915 i915_pci.c, sys/dev/drm/include/drm i915_pciids.h

drm/i915: Update PCI IDs from Linux 5.4

This brings in support for previously unknown models of Skylake,
Coffelake, Amber Lake, Whiskey Lake and Comet Lake GPUs.

DragonFlyBSD/src 1487f78sys/dev/drm/i915 i915_drv.c intel_display.c

drm/i915: Update to Linux commit 1f15b76f1ec973d1eb5d21b6d98b21aebb9025f1

"Separate GPU hang waitqueue from advance"

DragonFlyBSD/src bb916eesys/dev/drm drm_fops.c drm_drv.c, sys/dev/drm/i915 i915_drv.c

drm: Stop using an embedded struct drm_device in driver softcs

* All drm drivers use a struct drm_device record but are free to
  allocate it by themselves in different ways or let the generic
  drm subsystem code do it.

* This drm_device record can even be part of another data structure,
  dynamically or statically allocated.

* We cannot just assume the length of a drm_device structure in the
  softc memory block will be enough to store all driver private data.

* Make the drm softc the equivalent of a void* pointer and let the
  upstream code behave as expected on Linux

DragonFlyBSD/src ae7a310usr.sbin/fstyp hammer.c

usr.sbin/fstyp: Add device name to HAMMER1 label for autofs -media mount

This helps autofs -media mount support multiple HAMMER1 mounts
if not perfect solution. The format may change in future.

Note that this doesn't support HAMMER1 with multiple devices.

DragonFlyBSD/src 055596bsys/dev/drm/include/linux device.h

drm/linux: Stop using driver softcs for dev_set/get_drvdata()

DragonFlyBSD/dports 4ff2968devel/hs-spago Makefile

Tweak devel/hs-spago version 0.9.0.0

DragonFlyBSD/dports b132827textproc/R-cran-rmarkdown distinfo Makefile

Update textproc/R-cran-rmarkdown to version 1.18

DragonFlyBSD/dports 76bbccfdevel/allegro-devel Makefile, devel/allegro-devel/files speed.in cosmic_protector.in

Tweak devel/allegro-devel version 5.0.9_7

DragonFlyBSD/dports 6596947x11/hs-xmobar Makefile

Tweak x11/hs-xmobar version 0.29.5_1

DragonFlyBSD/dports a104ec3x11-fonts/iosevka distinfo Makefile

Update x11-fonts/iosevka to version 2.3.3

DragonFlyBSD/dports cbf9b0csecurity/i2p Makefile, security/i2p/files i2p.in wrapper.sh.in

Tweak security/i2p version 0.9.40

DragonFlyBSD/dports ba165dedevel/llvm-cheri/files mips-cheri-clang.mk.in llvm-wrapper.sh.in

Tweak devel/llvm-cheri version 10.0.d20191009_1

DragonFlyBSD/dports 3cb706ax11-fonts/google-fonts pkg-plist distinfo, x11-fonts/google-fonts/files pkg-message.in

Update x11-fonts/google-fonts to version 0.0.0.20191031

DragonFlyBSD/dports d1d8afex11-wm/sway Makefile

Tweak x11-wm/sway version 1.2_3

DragonFlyBSD/dports 61b68e1x11-wm/afterstep-stable Makefile

Tweak x11-wm/afterstep-stable version 2.2.12_5

DragonFlyBSD/dports 7076e90security/softether-devel distinfo Makefile

Update security/softether-devel to version 4.31.9727.b

DragonFlyBSD/dports 679f19dgraphics/photoflow distinfo Makefile, graphics/photoflow/files patch-src_external_rawspeed_src_librawspeed_common_Mutex.h patch-src_CMakeLists.txt

Update graphics/photoflow to version 0.2.8.1398

DragonFlyBSD/dports 9fb2debgames/urbanterror-data Makefile

Tweak games/urbanterror-data version 4.2.023

DragonFlyBSD/dports e1fb638x11-fm/xfe Makefile

Tweak x11-fm/xfe version 1.43.2

DragonFlyBSD/dports 61e9c60x11-fonts/fira Makefile

Tweak x11-fonts/fira version 4.301_1

DragonFlyBSD/dports 4488952x11-drivers/xf86-video-openchrome Makefile

Tweak x11-drivers/xf86-video-openchrome version 0.6.0_3

DragonFlyBSD/dports 2b811e6www/colly Makefile distinfo

Update www/colly to version 2.0.0

DragonFlyBSD/dports a24c2d2x11-clocks/rclock Makefile

Tweak x11-clocks/rclock version 2.7.10_3

DragonFlyBSD/dports c5de8c9textproc/stardict-dictd_mova Makefile distinfo

Update textproc/stardict-dictd_mova to version 2.4.2_9

DragonFlyBSD/dports af06c4dx11-drivers/xf86-video-qxl Makefile

Tweak x11-drivers/xf86-video-qxl version 0.1.5_3

DragonFlyBSD/dports f792557x11-fonts/firacode Makefile

Tweak x11-fonts/firacode version 1.207

DragonFlyBSD/dports 76731ffwww/py-dj21-django-mptt Makefile

Tweak www/py-dj21-django-mptt version 0.9.1

DragonFlyBSD/dports 33d9919x11/xtrlock Makefile

Tweak x11/xtrlock version 2.8

DragonFlyBSD/dports a115224x11-clocks/xalarm Makefile

Tweak x11-clocks/xalarm version 3.06

DragonFlyBSD/dports c62b724x11-fonts/plex-ttf pkg-plist distinfo

Update x11-fonts/plex-ttf to version 4.0.1