Displaying 1 50 of 40,526 commits (0.009s)

DragonFlyBSD — sys/bus/smbus/ichiic ig4_iic.c

ig4 - Stop I2C controller after checking that it's kind of functional.
Delta File
+6 -1 sys/bus/smbus/ichiic/ig4_iic.c
+6 -1 1 file

DragonFlyBSD — sys/bus/smbus/ichiic ig4_iic.c

ig4 - We actually need to set the Rx threshold register one smaller.

* Setting the IG4_REG_RX_TL register to 1 was actually generating an
  interrupt after 2 bytes were available in the Rx fifo. We need to set the
  register to 0 to get an interrupt for 1 byte already.
Delta File
+1 -1 sys/bus/smbus/ichiic/ig4_iic.c
+1 -1 1 file

DragonFlyBSD — sys/bus/smbus/ichiic ig4_iic.c ig4_var.h

ig4 - Only enable interrupts when we want them. Otherwise keep mask at 0.

* This avoids possible interrupt storms, depending on the state of the I2C
  controller before the driver attached.

* During attaching this clears the interrupt mask.

DragonFlyBSD — sys/bus/smbus/ichiic ig4_iic.c ig4_acpi.c

ig4 - Use serializer instead of lockmgr lock.

* This allows us to use lwkt_serialize_handler_disable when stopping the
  interrupt, which should be safer in case of detaching during an interrupt
  storm.

DragonFlyBSD — sys/vfs/hammer2 hammer2_io.c hammer2_vfsops.c

hammer2 - Add the vfs.hammer2.cluster_write sysctl back in

* Value may be 0 or 1, defaults to 0 (disabled).  Was previously
  enabled.

* By default H2 no longer sets B_CLUSTEROK on dirty buffers being
  written.  Theoretically this shouldn't be a problem because H2
  already uses a large 64KB buffer size.

* Should improve I/O throughput on high-performance SSDs by removing
  kernel overhead and should also work better with vfsync's dirty
  buffer scan which is already sorted.

DragonFlyBSD — sys/kern vfs_subr.c

kernel - remove BUF_TIMELOCK use in fast flush pass

* Remove the BUF_TIMELOCK call in the fast flush pass.  This call can
  cause unnecessary flush stalls due to clustered writes getting ahead
  of the vfsync scan.

* Significantly improves filesystem flush performance to SSDs.
Delta File
+13 -4 sys/kern/vfs_subr.c
+13 -4 1 file

DragonFlyBSD — sys/platform/pc64/isa clock.c

kernel - Refactor the TSC MP synchronization test

* Refactor the TSC MP synchronization test.  Do not use cpusync.
  Using cpusync results in O(N x N) worth of overhead instead of
  O(N) worth of overhead.

  Instead, have the per-cpu threads run the test simultaneously using
  each other's data.

* We synchronize to the last TSC element that was saved on each cpu.
  This probably needs a bit of work to ensure determinism, but at
  the moment its good in that it synchronizes all cores off of a
  single cache mastership change, instead of having them all compete
  for cache mastership.

* Probably needs some fine tuning, at the moment I allow a slop of
  10uS which is almost certainly too much.  Note, however, that
  SMP interactions can create ~1uS latencies on particular memory
  accesses.

* Solves serious issues with the old test on 64 cpu threads.
  These issues may also have been related to the ipiq fifo size
  being too small.
Delta File
+102 -48 sys/platform/pc64/isa/clock.c
+102 -48 1 file

DragonFlyBSD — sys/sys thread.h

kernel - Increase MAXCPUFIFO from 32 to 256

* Increase to 256, ensures that no deadlocks can occur on systems
  with more than 32 cpu threads.
Delta File
+1 -1 sys/sys/thread.h
+1 -1 1 file

DragonFlyBSD — share/zoneinfo backzone pacificnew

Revert "[zoneinfo] Add some missing zoneinfo files"

This reverts commit e6c3cf619df176c8ebd2391f8f731dfefbc48fcd.

We do not need those files and they were left out intentionally.

Also, adding them broke installworld because we would have needed
new directories in /usr/share/zoneinfo via mtree.

DragonFlyBSD — share/zoneinfo backzone pacificnew

[zoneinfo] Add some missing zoneinfo files

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

August 12, 2018 snapshot from https://pci-ids.ucw.cz
Delta File
+306 -183 share/misc/pci_vendors
+306 -183 1 file

DragonFlyBSD — share/misc bsd-family-tree

bsd-family-tree: Small sync with FreeBSD.
Delta File
+2 -2 share/misc/bsd-family-tree
+2 -2 1 file

DragonFlyBSD — . Makefile_upgrade.inc Makefile.inc1

Build - for /rescue transition must make upgrade

* Must make upgrade before make rescue when transitioning to the new
  /rescue topology.

* Must ensure certain header files are not present.  make rescue
  currently improperly uses /usr/include which can have all sorts of
  cruft in it.

* This is a quick hack, will be fixed by a later cleanup of the
  make rescue target to properly split it into buildworld (to build)
  and installworld (to install).
Delta File
+6 -0 Makefile_upgrade.inc
+4 -0 Makefile.inc1
+10 -0 2 files

DragonFlyBSD — sys/vfs/autofs autofs.c autofs.h

sys/vfs/autofs: Change u_xxx -> unsigned xxx

(ap->a_cmd and refcount apis are of u_xxx)

DragonFlyBSD — sys/conf options, sys/config LINT64 X86_64_GENERIC

kernel/drm: Remove CONFIG_PCI as a kernel option.

The code does not link in the absence of it and neither do we expect
systems without PCI support configured, nor does it make sense for
DRM specific stuff in particular, so just set it unconditionally.

If anything, it could be tied to NPCI being >0 (to check if
"device pci" is in the kernel), but for that it would have to
actually build/link without CONFIG_PCI in the first place.

DragonFlyBSD — sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/source/components/debugger dbxface.c dbinput.c

Sync ACPICA with Intel's version 20180810:

* Attempt to continue initially loading ACPI tables regardless of
  malformed AML.

* Enhance acpiexec(8)'s -fi option and plug a memory leak in it.

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

DragonFlyBSD — sys/dev/drm drm_pci.c drm_drv.c, sys/dev/drm/i915 i915_drv.c

drm: Sync drm_pci.c with Linux 4.7.10

DragonFlyBSD — sys/conf options, sys/config LINT64 X86_64_GENERIC

drm: Add CONFIG_PCI

DragonFlyBSD — sys/dev/drm drm_dragonfly.c, sys/dev/drm/include/linux pci.h

drm/linux: Add field devfn to struct pci_dev

DragonFlyBSD — lib/libc/gen Makefile.inc, lib/libm Makefile

Move fpclassify.3 from libc to libm where it belongs.
Delta File
+8 -1 lib/libm/Makefile
+1 -1 lib/libc/gen/Makefile.inc
+9 -2 2 files

DragonFlyBSD — lib/libm Makefile, lib/libm/man signbit.3

Add back a signbit.3 manpage that was killed w/o providing a substitute.
Delta File
+57 -0 lib/libm/man/signbit.3
+5 -0 lib/libm/Makefile
+62 -0 2 files

DragonFlyBSD — share/man/man3 fpgetround.3

fpgetround.3: Replace references to the former fenv.3 manual page.

OpenBSD's libm has 4 separate manual pages for these.
Delta File
+8 -3 share/man/man3/fpgetround.3
+8 -3 1 file

DragonFlyBSD — share/man/man4 ath.4 wi.4

Remove two references (one commented) to a non-existant manpage.
Delta File
+0 -1 share/man/man4/ath.4
+0 -1 share/man/man4/wi.4
+0 -2 2 files

DragonFlyBSD — . Makefile_upgrade.inc, share/man/man3 fpgetround.3 Makefile

Remove some documentation of the i386 specific fpresetsticky().

DragonFlyBSD — sys/net/pf pf_ioctl.c pf_if.c, usr.sbin/pfctl pfctl_qstats.c pfctl_altq.c

Revert "pf: Allow disappearing or not yet existing interfaces for ALTQ"

This reverts commit 0a887f91f9633448c99b9a5b7c6116a0a22d25d6.

1. It's incorrect to change the ifnet_unlock().  The original protection
   range is used to make sure that the ifp does not get ripped out behind
   our back.

2. We don't suffer from the issue that that commit was intended to fix.

Thanks-to: sephe

DragonFlyBSD — sys/netgraph7/bridge ng_bridge.c, sys/vfs/nfs bootp_subr.c

Fix up more files for the <net/if.h> / <net/if_var.h> split (fixes LINT64).

DragonFlyBSD — share/man/man7 development.7

development.7: Update repo creation command

Reported-by: resolution (on IRC)
Delta File
+4 -5 share/man/man7/development.7
+4 -5 1 file

DragonFlyBSD — sys/net if_clone.c

if_clone: Refactor out if_clone_createif() function

The new if_clone_createif() function will create a clone interface
with the given cloner and unit.
Delta File
+35 -17 sys/net/if_clone.c
+35 -17 1 file

DragonFlyBSD — sys/net if_clone.c if_clone.h

if_clone: Check cloner name to avoid duplicate in if_clone_attach()

Change if_clone_attach() to check the cloner name instead of the pointer
to avoid duplicate, also to return EEXIST instead of panic.
Delta File
+5 -9 sys/net/if_clone.c
+1 -1 sys/net/if_clone.h
+6 -10 2 files

DragonFlyBSD — sys/net if_clone.c

if_clone: Refactor out if_clone_{alloc,free}_unit() functions

Refactor out if_clone_{alloc,free}_unit() functions from
if_clone_{create,destroy}() functions.
Delta File
+70 -50 sys/net/if_clone.c
+70 -50 1 file

DragonFlyBSD — sys/net if_clone.c

if_clone: Remove useless code wrongly added in 84cb91c376f

The code was inteded to obtain the created interface and add an
interface group for it, which is a work in progress.
Delta File
+0 -6 sys/net/if_clone.c
+0 -6 1 file

DragonFlyBSD — sys/dev/drm drm_fops.c

drm: Sync drm_read() with Linux 4.7.10

This should fix various issues related to multithreaded races
and make the drm subsystem more robust.
Delta File
+58 -44 sys/dev/drm/drm_fops.c
+58 -44 1 file

DragonFlyBSD — etc login.conf

etc/login.conf: Fix COPYRIGHT file path
Delta File
+1 -1 etc/login.conf
+1 -1 1 file

DragonFlyBSD — sys/platform/pc64/x86_64 initcpu.c

pc64 - If appropriate, determine TSC frequency via CPUID.

On Intel systems with Skylake and newer CPUs, and on modern Atom CPUs this
avoids the ca. 200ms TSC calibration process at the beginning of booting.

On most modern Intel CPUs the TSC frequency can be determined via CPUID
information. For the most modern generations this is quite well documented.
If the CPUID information doesn't directly specify the "crystal clock",
we use the frequency values given in Intel's "Software Developer's Manual"
for the different cpu variants.

Since the "crystal clock" seems to exactly match the HPET frequency that we
use in the calibration, this method should be at least as good as our
calibration procedure.

Setting the tunable hw.tsc_ignore_cpuid=1 forces the kernel to calibrate
the TSC if it would otherwise just use the CPUID information.
Delta File
+69 -0 sys/platform/pc64/x86_64/initcpu.c
+69 -0 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Interface type should be IFT_ETHER (2)

Ooops, forgot to include the necessary header <net/if_types.h> in the
last commit.
Delta File
+2 -1 sys/net/tap/if_tap.c
+2 -1 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Interface type should be IFT_ETHER
Delta File
+1 -0 sys/net/tap/if_tap.c
+1 -0 1 file

DragonFlyBSD — sys/net if_clone.c

if_clone: Fix if_clone_destroy() with renamed cloned interface

Since the interface can be renamed (SIOCSIFNAME), it's very wrong for
if_clone_destroy() to determine the unit number from interface name,
which has the following two serious problems:

(1) One may only change the unit number in the interface name, then
trying to destroy the interface will panic the system. e.g.,
% ifconfig tap0 create
% ifconfig tap0 name tap99999999
% ifconfig tap99999999 destroy
-> panic: if_clone_destroy: bit is already cleared

(2) The renamed interface cannot be destroyed anymore. e.g.,
% ifconfig tap0 create
% ifconfig tap0 name test
% ifconfig test destroy
-> ifconfig: SIOCIFDESTROY: Invalid argument

Fix the code to use the 'if_dunit' as the correct interface unit number.

Thanks to Jason A. Donenfeld <jason at zx2c4.com> and Brady OBrien
<brady.obrien128 at gmail.com> for pointing out the above problem (1).
Delta File
+15 -21 sys/net/if_clone.c
+15 -21 1 file

DragonFlyBSD — sys/net if_clone.c

if_clone: Fix if_clone_destroy() with renamed cloned interface

Since the interface can be renamed (SIOCSIFNAME), it's very wrong for
if_clone_destroy() to determine the unit number from interface name,
which has the following two serious problems:

(1) One may only change the unit number in the interface name, then
trying to destroy the interface will panic the system. e.g.,
% ifconfig tap0 create
% ifconfig tap0 name tap99999999
% ifconfig tap99999999 destroy
-> panic: if_clone_destroy: bit is already cleared

(2) The renamed interface cannot be destroyed anymore. e.g.,
% ifconfig tap0 create
% ifconfig tap0 name test
% ifconfig test destroy
-> ifconfig: SIOCIFDESTROY: Invalid argument

Fix the code to use the 'if_dunit' as the correct interface unit number.

Thanks to Jason A. Donenfeld <jason at zx2c4.com> and Brady O'Brien
<brady.obrien128 at gmail.com> for pointing out the above problem (1).
Delta File
+12 -16 sys/net/if_clone.c
+12 -16 1 file

DragonFlyBSD — sys/net if_clone.h if_clone.c

if_clone: Remove unneeded "ifc_namelen" from "struct if_clone"

The "strlen(ifc_name)" is used instead.
Delta File
+1 -2 sys/net/if_clone.h
+1 -1 sys/net/if_clone.c
+2 -3 2 files

DragonFlyBSD — sys/net if_clone.c

if_clone: Refactor cloner lookup and unit extraction

Break down the old 'if_clone_lookup()' function into the following 3
functions:

- if_name2unit(): extract the unit number from the interface name.
  Obtained from FreeBSD and has fixes (disallow leading zeros; avoid
  unit overflow).

- if_clone_match(): check whether the cloner matches the interface name.

- new if_clone_lookup(): only lookup the cloner for the interface name.
Delta File
+73 -32 sys/net/if_clone.c
+73 -32 1 file

DragonFlyBSD — sys/cpu/x86_64/include specialreg.h, sys/dev/powermng/corepower corepower.c

corepower - Add support for Platform Energy Counter.

DragonFlyBSD — share/man/man4 tun.4

tun.4: Do not mention tunoutput() anymore

The tunoutput() function was renamed to be tunifoutput(), and it's an
internal function and doesn't provide useful information here.
Delta File
+2 -3 share/man/man4/tun.4
+2 -3 1 file

DragonFlyBSD — sys/vfs/devfs devfs_rules.c

devfs: Minor style fixes
Delta File
+13 -17 sys/vfs/devfs/devfs_rules.c
+13 -17 1 file

DragonFlyBSD — sbin/fdisk fdisk.c, sbin/gpt create.c gpt.8

fdisk, gpt - Support trim on recent kernels

* Recent kernels removed the 'trim' sysctls.  Devices now allow trim by
  default.

* Fix the fdisk -E option to no longer try to use the sysctls.

* Add trim support to gpt init (-E).

* Fix swapon -e, change option to -E to match gpt and fdisk
  (-e still supported and does the same thing).

DragonFlyBSD — sys/dev/drm drm_bufs.c, sys/dev/drm/include/drm drm_legacy.h

drm: Sync drm_bufs.c with Linux 4.7.10

DragonFlyBSD — sbin/hammer2 cmd_destroy.c main.c, sys/vfs/hammer2 hammer2_xops.c hammer2_ioctl.c

hammer2 - Add destroy-inum directive

* Add support for destroying screwed up inodes (e.g. inodes with CRC
  failures and such).

  hammer2 -s filesystem destroy-inum inode_number

  This will attempt to destroy an inode number without reading it,
  allowing the removal of dead inodes from a corrupted filesystem.

* This is similar to 'hammer2 destroy path', which destroys dead
  directory entries, but acts on the inode instead of on the
  directory entry.

DragonFlyBSD — sys/dev/drm drm_auth.c drm_fops.c, sys/dev/drm/include/drm drmP.h

drm: simplify authentication management

DragonFlyBSD — sys/net/tap if_tap.h

if_tap: Remove the unnecessary forward declaration in if_tap.h
Delta File
+0 -2 sys/net/tap/if_tap.h
+0 -2 1 file

DragonFlyBSD — share/man/man4 tun.4, sys/net/tun if_tun.c if_tun.h

if_tun: Add TUNGIFNAME ioctl to get the interface name

This ioctl helps to get the name of the network interface associated
with the tun control device via its file descriptor.  One generally
obtains such a file descriptor by opening the tun autocloner (i.e.,
/dev/tun).  While the devname(3) or fdevname(3) functions can be used
to determine the name of the actually created tun device, but there is
no easy way to get the name of the associated network interface, which
is though initially the same as the device name but can be renamed.

Bump __DragonFly_version and update tun.4 man page.

See also the relevant Linux patch that added TUNGETIFF to tun:
https://lists.linuxfoundation.org/pipermail/virtualization/2008-August/011546.html

DragonFlyBSD — sys/net/tun if_tun.c

if_tun: Clean up tunioctl()

Introduce a variable 'caddr_t data' to make code cleaner.  Also improve
the switch flow a bit.

Based on: if_tap.c
Delta File
+25 -20 sys/net/tun/if_tun.c
+25 -20 1 file