Displaying 1 50 of 40,695 commits (0.008s)

DragonFlyBSD — sys/kern tty_tty.c, sys/vfs/tmpfs tmpfs_subr.c

kernel - Remove two debug messages

* Remove the debug messages for two cases which have been validated
  to occur under synth loads, thus these code paths have been tested.

DragonFlyBSD — nrelease Makefile

nrelease - Use built boot blocks instead of system boot blocks

* Adjust the nrelease Makefile to install the boot blocks from
  the nrelease build into the image instead of the boot blocks
  from the running system.

Submitted-by: NI33 (irc)
Delta File
+3 -2 nrelease/Makefile
+3 -2 1 file

DragonFlyBSD — contrib/openresolv resolvconf.in resolvconf.conf.5.in

Merge branch 'vendor/OPENRESOLV'
∈ Aaron LI - 8382a10e - 2018-10-18 17:00:16
Version: 3.9.0
Date: 2016-Dec-30
Homepage: https://roy.marples.name/projects/openresolv

DragonFlyBSD — etc Makefile, etc/mtree BSD.usr.dist BSD.var.dist

openresolv: Bind to system as resolvconf(8)

The resolvconf(8) will be used by dhcpcd(8), which will be imported
later to provide out-of-box IPv6 DHCP support, replacing the IPv4-only
dhclient(8) in base and the rtsold(8).

Thanks to swildner for reviewing and providing suggestions.


openresolv: Add READMEs

DragonFlyBSD — contrib/openresolv resolvconf.in resolvconf.conf.5.in

Version: 3.9.0
Date: 2016-Dec-30
Homepage: https://roy.marples.name/projects/openresolv

DragonFlyBSD — sys/dev/drm/include/linux ww_mutex.h

drm/linux: Fix potential ww mutex induced panics

ww mutex locking functions can be called with a NULL ctx and were
happily setting both lock->acquired to non-zero and lock->ctx to
NULL, a combination which other parts of our ww mutex implementation
assume is not possible.

Obtained-from: OpenBSD

DragonFlyBSD — sys/kern subr_cpu_topology.c, sys/platform/pc64/acpica acpi_srat.c

kernel - Fix NUMA contention due to assymetric memory

* Fix NUMA contention in situations where memory is associated
  with CPU cores assymetrically.  In particular, with the 2990WX,
  half the cores will have no memory associated with them.

* This was forcing DFly to allocate memory from queues belonging to
  other nearby cores, causing unnecessary SMP contention, as well
  as burn extra time iterating queues.

* Fix by calculating the average number of free pages per-core,
  and then adjust any VM page queue with pages less than the average
  by stealing pages from queues with greater than the average.
  We use a simple iterator to steal pages, so the CPUs with less
  (or zero) direct-attached memory will operate more UMA-like
  (just on 4K boundaries instead of 256-1024 byte boundaries).

* Tested with a 64-thread concurrent compile test.  systat -pv 1
  showed all remaining contention disappear.  Literally, *ZERO*
  contention when we run the test with each thread in its own jail
  with no shared resources.

* NOTE!  This fix is specific to asymetric NUMA configurations
  which are fairly rare in the wild and will not speed up more
  conventional systems.

    [16 lines not shown]

DragonFlyBSD — sys/dev/drm/radeon radeon_object.c

drm/radeon: add missing ttm_eu_backoff_reservation to radeon_bo_list_validate

DragonFlyBSD — sys/dev/drm/radeon radeon_irq_kms.c radeon_pm.c

drm/radeon: Finish replacing task queues by Linux work queues

DragonFlyBSD — sys/dev/drm/radeon radeon_drv.h sumo_dpm.h

drm/radeon: Reduce differences with Linux 3.18

No functional changes

DragonFlyBSD — sys/kern syscalls.master init_sysent.c, sys/sys sysproto.h syscall.h

kernel: Clean up syscalls.master a bit more.

All this and also f29ea48f7a62b011be75119d46acd81bee2dd8ee could have
been cleaned up in d6e8ab2d2508bde32ad7b7daaf86d44ec7330986.

While here, also remove some obsolete comments.

DragonFlyBSD — sys/vm vm_extern.h

<vm/vm_extern.h>: Remove some dead code.
Delta File
+0 -14 sys/vm/vm_extern.h
+0 -14 1 file

DragonFlyBSD — sys/kern init_sysent.c syscalls.c, sys/sys syscall.h

syscalls.master: Remove a leftover semicolon.

DragonFlyBSD — . Makefile_upgrade.inc, include signal.h

kernel/libc: Remove sigstack() remains.

There is no sigstack() syscall anymore in DragonFly, besides being
obsolete, so remove some remains like the manual page and prototype,
and do some related cleanup.
Delta File
+0 -51 lib/libc/sys/sigstack.2
+0 -10 sys/sys/signal.h
+0 -8 sys/sys/sysproto.h
+0 -3 include/signal.h
+1 -2 sys/kern/syscalls.master
+1 -1 sys/kern/init_sysent.c
+5 -4 5 files not shown
+7 -79 11 files

DragonFlyBSD — sys/dev/drm/include/linux interval_tree.h

drm: Add linux/interval_tree.h

DragonFlyBSD — sys/dev/drm/include/linux rcupdate.h

drm/linux: Add rcu_dereference_protected()

DragonFlyBSD — sbin/sysctl sysctl.c, share/man/man9 sysctl.9 sysctl_add_oid.9

kernel: Add further support for fixed-width integer type sysctls.

U32 support was added in c48b2bac286ed1aaa6b974adfbc844e82bc65f38.

QUAD and UQUAD are now aliases of S64 and U64.

Taken-from: FreeBSD

DragonFlyBSD — sys/kern tty.c

kernel - Refactor tty clist code (2)

* Fix initialization of high water mark, the last commit accidently
  removed it.

* Fixes issue with slow console output (emacs, alt-x "shell", then
  'ls' or whatever).

Reported-by: tuxillo
Delta File
+33 -11 sys/kern/tty.c
+33 -11 1 file

DragonFlyBSD — . Makefile_upgrade.inc

Remove <sys/clist.h> via 'make upgrade'.
Delta File
+1 -0 Makefile_upgrade.inc
+1 -0 1 file

DragonFlyBSD — sys/kern kern_exit.c

kernel - Fix missing tokens in killalllwps()

* There appears to be at least one code path where killalllwps()
  is being called without the necessary tokens held.

* Just have the routine itself obtain the necessary tokens.

* Might be responsible for extremely rare core-dump stop/wait
Delta File
+8 -3 sys/kern/kern_exit.c
+8 -3 1 file

DragonFlyBSD — sys/bus/u4b/serial usb_serial.c, sys/dev/misc/syscons syscons.c

kernel - Refactor tty clist code

* Remove all the old cruft, completely rewrite the clist code to use
  a single linear buffer and a FIFO mechanism.

* The linear buffer just uses 16-bit elements in order to record
  TTY_QUOTE along with the character.

* Fixes bug in last commit (lack of global locks around global clist
  caches) by removing the cache entirely.
Delta File
+187 -618 sys/kern/tty_subr.c
+0 -66 sys/sys/clist.h
+30 -25 sys/kern/tty.c
+20 -21 sys/sys/tty.h
+10 -25 sys/net/sl/if_sl.c
+5 -6 sys/netgraph7/tty/ng_tty.c
+23 -26 7 files not shown
+275 -787 13 files

DragonFlyBSD — sys/dev/misc/ichwd ichwd.h

ichwd - Fix typo in TCO2_CNT register #define.

* The TCO2_CNT isn't actually used in the driver at the moment.
Delta File
+1 -1 sys/dev/misc/ichwd/ichwd.h
+1 -1 1 file

DragonFlyBSD — sys/bus/isa vga_isa.c, sys/bus/u4b/serial usb_serial.c

kernel - Refactor tty_token, fix SMP performance issues

* Remove most uses of tty_token in favor of per-tty tp->t_token.
  This is particularly important for removing bottlenecks related to PTYs,
  which are used all over the place.  tty_token remains in a few places
  managing overall registration and global list manipulation.

* tty structures are now required to be persistent.  Implement a sepearate
  ttyinit() function.  Continue to allow ttyregister() and ttyunregister()
  calls, but these no longer presume destruction of the structure.

* Refactor ttymalloc() to take a **tty pointer and interlock allocations.
  Allocations are intended to be one-time.  ttymalloc() only requires the
  tty_token for initial allocations.

* Remove all critical section use that was combined with tty_token and
  tp->t_token.  Leave only the tokens.  The critical sections were
  hold-overs going all the way back to pre-SMP days.

* syscons now gets its own token, vga_token.  The ISA VGA code and
  the framebuffer code also now use this token instead of tty_token.

* The keyboard subsystem now uses kbd_token instead of tty_token.

* A few remaining serial-like devices (snp, nmdm) also get their own

    [6 lines not shown]
Delta File
+190 -214 sys/kern/tty.c
+193 -170 sys/dev/misc/syscons/syscons.c
+218 -130 sys/kern/tty_pty.c
+119 -164 sys/dev/misc/kbd/kbd.c
+79 -80 sys/dev/misc/syscons/scvidctl.c
+70 -61 sys/dev/misc/snp/snp.c
+412 -513 24 files not shown
+1,281 -1,332 30 files

DragonFlyBSD — share/man/man9 ioctl.9

ioctl.9: nwfs(4) is no longer in our tree.

It was removed in 6f25d5554e6df42aa5235bf7e3e8e1cc9da25eec.
Delta File
+1 -3 share/man/man9/ioctl.9
+1 -3 1 file

DragonFlyBSD — . Makefile_upgrade.inc UPDATING, share/man/man4 digi.4 rp.4

kernel: Remove some old serial drivers.

Namely digi(4), rp(4) and si(4) (the latter along with its userland
utility sicontrol(8)). It is unlikely that these work properly any

In preparation for the upcoming tty_token work by dillon.

Requested-by: dillon

DragonFlyBSD — sys/kern lwkt_token.c

kernel/lwkt_token: Fix indent.
Delta File
+19 -19 sys/kern/lwkt_token.c
+19 -19 1 file

DragonFlyBSD — sys/kern lwkt_token.c

kernel - Change pool token hash

* Change the pool token hash to something less stupid.

* Improve lwkt.tokens_debug_output to also output the address of
  the actual token instead of just its name.  This will help us
  track down pool token collisions a bit better.
Delta File
+20 -14 sys/kern/lwkt_token.c
+20 -14 1 file

DragonFlyBSD — sys/bus/smbus/ichsmb ichsmb_pci.c

ichsmb - Add additional PCI IDs to ichsmb.

* This moves from a long switch statement to a lookup table.

Taken-From: FreeBSD
Delta File
+92 -98 sys/bus/smbus/ichsmb/ichsmb_pci.c
+92 -98 1 file

DragonFlyBSD — sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/source/compiler asltransform.c aslmessages.c

Sync ACPICA with Intel's version 20181003:

* Fix a regression that could cause the compiler to fault.

* New remark for excessively long Sleep()s.

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

DragonFlyBSD — sys/bus/pci pcivar.h, sys/vfs/ufs ffs_alloc.c

kernel - Remove duplicate TRIM, only trim with the 'trim' mount opt

* ffs_blkfree_cg() was improperly issuing a synchronous
  VOP_FREEBLKS() on the underlying device.  This issues a
  BUF_CMD_FREEBLKS stategy op to the underlying device,
  which is executed unconditionally.  This basically runs
  an unconditional TRIM whether the 'trim' mount flag is
  specified or not.

  Remove the VOP_FREEBLKS() call.

* For softupdates operation, ffs_blkfree() handles the
  'trim' mount flag by issuing a BUF_CMD_FREEBLKS and
  sequencing the call to ffs_blkfree_cg() when it completes.

  When 'trim' was enabled, *two* TRIM operations were being
  executed on the underlying device, and prior to our fix,
  if 'trim' was not enabled, *one* TRIM operation would
  still be executed instead of zero.

* In many situations... possibly even most situations,
  trim operations seriously reduce performance due to
  being serialized by AHCI or by the target device.  It
  is not as useful as people often think it should be
  on normal filesystems.

    [8 lines not shown]

DragonFlyBSD — lib/libc/stdlib nmalloc.c

nmalloc - Try bigcache in posix_memalign() for big PAGE_SIZE aligned allocs.

* This improves performance (by reducing the amount of mmap() calls required
  and avoiding some amount of page faults) for applications which frequently
  call posix_memalign() with a 4096 byte alignment for allocations bigger
  than 8KB. Allocations of 8KB and smaller are efficiently handled by the
  SLAB allocator already.
Delta File
+21 -0 lib/libc/stdlib/nmalloc.c
+21 -0 1 file

DragonFlyBSD — lib/libc/stdlib nmalloc.c

nmalloc - Cache 4K and 8K allocations in posix_memalign()

* Adjust posix_memalign() to use the slab allocator for 4K and 8K
  allocations same as malloc() does, to improve performance for
  programs using posix_memalign().
Delta File
+24 -3 lib/libc/stdlib/nmalloc.c
+24 -3 1 file

DragonFlyBSD — sys/bus/pci pcireg.h pci_pci.c, usr.sbin/pciconf pciconf.c cap.c

pciconf - Enhance output

* Add more registers defs from FreeBSD to pcireg.h

* Bring expanded pciconf code in form FreeBSD.  This code
  displays more configuration data for bridges and control
  registers, and fixes a broken bus error reporting conditional.

* Also normalize SLT -> SLOT naming in pcireg.h
Delta File
+206 -5 usr.sbin/pciconf/pciconf.c
+172 -12 usr.sbin/pciconf/cap.c
+170 -0 usr.sbin/pciconf/err.c
+98 -24 sys/bus/pci/pcireg.h
+3 -3 sys/bus/pci/pci_pci.c
+3 -0 usr.sbin/pciconf/pciconf.h
+2 -2 2 files not shown
+654 -46 8 files

DragonFlyBSD — sys/sys param.h

Bump __DragonFly_version for adding wait6() and waitid()
Delta File
+2 -1 sys/sys/param.h
+2 -1 1 file

DragonFlyBSD — lib/libc/gen waitid.c Symbol.map, lib/libc/include namespace.h un-namespace.h

system - Add wait6(), waitid(), and si_pid/si_uid siginfo support

* Add the wait6() system call (header definitions taken from FreeBSD).
  This required rearranging kern_wait() a bit.  In particular, we now
  maintain a hold count of 1 on the process during processing instead
  of releasing the hold count early.

* Add waitid() to libc (waitid.c taken from FreeBSD).

* Adjust manual pages (taken from FreeBSD).

* Add siginfo si_pid and si_uid support.  This basically allows a process
  taking a signal to determine where the signal came from.  The fields
  already existed in siginfo but were not implemented.

  Implemented using a non-queued per-process array of signal numbers.
  The last originator sending any given signal is recorded and passed
  through to userland in the siginfo.

* Fixes the 'lightdm' X display manager.  lightdm relies on si_pid
  support.  In addition, note that avoiding long lightdm related
  latencies and timeouts require a softlink from libmozjs-52.so to
  libmozjs-52.so.0 (must be addressed in dports, not addressed in this

    [2 lines not shown]
Delta File
+439 -71 lib/libc/sys/wait.2
+217 -50 sys/kern/kern_exit.c
+68 -0 lib/libc/gen/waitid.c
+57 -4 sys/sys/wait.h
+29 -0 sys/kern/kern_sig.c
+11 -7 sys/kern/kern_proc.c
+63 -5 19 files not shown
+884 -137 25 files

DragonFlyBSD — sys/conf kmod.mk, sys/dev/virtual/virtio/random Makefile

kernel/virtio: Remove some last traces of virtio_if.m.

It was removed in b817dce2e30a257b86b253a698e63a418758d76d.

DragonFlyBSD — share/man/man4 virtio_random.4 virtio.4, sys/conf files

kernel: Bring in a port of FreeBSD's virtio_random(4) driver.

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

DragonFlyBSD — lib/libstand hammer1.c

libstand/hammer1: One more -Wundef fix.
Delta File
+1 -1 lib/libstand/hammer1.c
+1 -1 1 file

DragonFlyBSD — lib/libcrypt crypt-sha512.c crypt-sha256.c

libcrypt: Fix -Wundef (no functional change).

DragonFlyBSD — sys/dev/drm/radeon btc_dpm.c btc_dpm.h

drm/radeon: drop btc_get_max_clock_from_voltage_dependency_table

DragonFlyBSD — sys/dev/drm/radeon si_dpm.c

drm/radeon/dpm: drop clk/voltage dependency filters for SI
Delta File
+0 -24 sys/dev/drm/radeon/si_dpm.c
+0 -24 1 file

DragonFlyBSD — sys/dev/drm/radeon radeon_prime.c radeon_drv.c

drm/radeon: Pass dma-buf as argument to gem_prime_import_sg_table

DragonFlyBSD — include strings.h time.h

Fix the __BSD_VISIBLE check in a few headers.

#if must be used, not #ifdef.
Delta File
+1 -1 include/strings.h
+1 -1 include/time.h
+1 -1 include/utmpx.h
+3 -3 3 files

DragonFlyBSD — sys/kern kern_memio.c, sys/sys random.h

<sys/random.h>: Further cleanup.

* Remove inclusion of <sys/interrupt.h> which is no longer needed since
  7e071e7abb9f0b54413dda805a4239f7b0eb455e. It can now be moved to

* Remove forward declaration of struct thread which is no longer needed
  since fef8985e09e16aeee4a2014876e2e4b758656ac2.

* Fix a typo in a comment (Reported-by: aly).
Delta File
+1 -5 sys/sys/random.h
+1 -0 sys/kern/kern_memio.c
+2 -5 2 files

DragonFlyBSD — sys/sys random.h

<sys/random.h>: Clean up some unused prototypes.
Delta File
+0 -10 sys/sys/random.h
+0 -10 1 file

DragonFlyBSD — sys/dev/drm/include/linux lockdep.h

drm/linux: Implement lockdep_assert_held()

DragonFlyBSD — sys/dev/drm/i915 Makefile

kernel/i915: Fix Makefile (.o -> .c).
Delta File
+1 -1 sys/dev/drm/i915/Makefile
+1 -1 1 file

DragonFlyBSD — sys/dev/misc/ppc ppc.c

kernel/ppc: Fix -Wundef.
Delta File
+3 -0 sys/dev/misc/ppc/ppc.c
+3 -0 1 file