Displaying 1 50 of 37,802 commits (0.018s)

DragonFlyBSD — sys/boot/efi/boot1 boot1.c, sys/dev/netif/age if_age.c

kernel - Fix improper parens

* Fix improper parens.  The code paths luckily worked correctly
  even with the mistakes, for the most part.

* Fix bug in netgraph (netgraph is not used much in DragonFly).

Reported-by: dcb / bugs #2989, 2990, 2991, 2992

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

kernel/identcpu: Add string for MONITORX/MWAITX support to AMD Features2.

Taken-from: FreeBSD

DragonFlyBSD — sys/dev/drm drm_edid.c, sys/dev/drm/i915 intel_lvds.c

drm: Enable commented-out vga_switcheroo code

With-input-from: peeter0007 and ivadasz

DragonFlyBSD — sys/dev/sound/pci/hda hdac.h hdac.c

sound/hda: Sync device ID table with FreeBSD

Obtained-from: FreeBSD

DragonFlyBSD — sys/dev/sound/pci/hda hdac.h hdac.c

sound/hda: Sync device ID table with FreeBSD

Obtained-from: FreeBSD

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

kernel - Add a BIOS quirks for AMD

* BIOS may fail to set InitApicIdCpuIdLo.  Set it if no VMM capability.

* BIOS may configure Family 10h processors to convert WC+ to CD,
  fixup if the BIOS did this.

Taken-From: FreeBSD
Delta File
+30 -0 sys/platform/pc64/x86_64/initcpu.c
+30 -0 1 file

DragonFlyBSD — sys/platform/pc64/x86_64 global.s genassym.c

kernel - Add GD_IRESERVED access to assembly

* Useful for debugging.  No use-cases committed.

DragonFlyBSD — sys/platform/pc64/apic ioapic_abi.c, sys/platform/pc64/include intr_machdep.h

kernel - Spread IPIs out to more priority levels

* Due to the brandamaged way the LAPIC queues received IPIs, each
  priority level (the top 4 bits of the 8 bit vector) has a 2-entry
  FIFO.  Bring in comments from FreeBSD on how this works.

* Change our IPI vectors which previously used 2 priority levels to now
  use 3 priority levels.  Each source is generally limited by an atomic
  op to avoid multi-queueing and hopefully that means the above LAPIC hw
  queue will never refuse to accept an IPI.

  IPIQ and TIMER use group 1

  INVLTLB (and INVLPG) uses group 2

  SNIFF, CPUSTOP, and SPURIOUSINT use group 3

* Reduces the number of vectors available per cpu by 16, but shouldn't
  present that big a problem.

DragonFlyBSD — sys/cpu/x86_64/include cpufunc.h, sys/kern kern_clock.c lwkt_ipiq.c

kernel - Enhance the sniff code, refactor interrupt disablement for IPIs

* Add kern.sniff_enable, default to 1.  Allows the sysop to disable the
  feature if desired.

* Add kern.sniff_target, allows sniff IPIs to be targetted to all cpus
  (-1), or to a particular cpu (0...N).  This feature allows the sysop
  to test IPI delivery to particular CPUs (typically monitoring with
  systat -pv 0.1) to determine that delivery is working properly.

* Bring in some additional AMD-specific setup from FreeBSD, beginnings
  of support for the APIC Extended space.  For now just make sure the
  extended entries are masked.

* Change interrupt disablement expectations.  The caller of apic_ipi(),
  selected_apic_ipi(), and related macros is now required to hard-disable
  interrupts rather than these functions doing so.  This allows the caller
  to run certain operational sequences atomically.

* Use the TSC to detect IPI send stalls instead of a hard-coded loop count.

* Also set the APIC_LEVEL_ASSERT bit when issuing a directed IPI, though
  the spec says this is unnecessary.  Do it anyway.

* Remove unnecessary critical section in selected_apic_ipi().  We are in

    [9 lines not shown]

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

kernel - Use the TSC as the cpu clock on AMD Ryzen or later

* The TSC is usable as the cpu clock on AMD Ryzen or later, adjust
  the code for this.

* Recode hw.tsc_cputimer_force to still run the TSC test, but then
  force use of the TSC for the cpu clock whether the test succeeds
  or fails.

Suggested-by: Sephe
Delta File
+22 -7 sys/platform/pc64/isa/clock.c
+22 -7 1 file

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

kernel - Enhance machdep.cpu_idle_hlt

* Enhance machdep.cpu_idle_hlt.  It was not operating as advertised for
  settings 0 or 3+.  Add mode 5.

  0 - Now spins as documented (wasn't, before)
  1 - Uses MONITOR/MWAIT if supported, HLT otherwise
  2 - Uses mode (1) up to a point, then uses mode (3)
  3 - Always use the ACPI halt code.
  4 - Always use HLT (do not use MONITOR/MWAIT even if supported)
  5 - Always spin

* Recode the default setting for AMD cpus (but no functional changes).
  Default setting is 3 for AMD.
Delta File
+28 -14 sys/platform/pc64/x86_64/machdep.c
+28 -14 1 file

DragonFlyBSD — sys/vm vm_pageout.c

kernel - Enhanced reporting by process killer

* Issue a kprintf() when trying to kill a process so we know when
  the attempt is made.  The 'killed' message we already have only
  prints when the attempt succeeds.

* Additional metrics when reporting 'low on memory+swap' now available
  with bootverbose.
Delta File
+10 -0 sys/vm/vm_pageout.c
+10 -0 1 file

DragonFlyBSD — sys/platform/pc64/x86_64 sigtramp.s

Kernel - quick workaround for Ryzen

* Quick workaround for a Ryzen issue that we can release with.

DragonFlyBSD — sys/platform/pc64/x86_64 sigtramp.s

Kernel - quick workaround for Ryzen

* Quick workaround for a Ryzen issue that we can release with.

DragonFlyBSD — lib/libc/gen arc4random.c, sys/libkern arc4random.c

kernel - Stir longer in arc4random

* Stir longer in arc4random

Taken-from: FreeBSD
Reported-by: jaykishan mutkawoa

DragonFlyBSD — lib/libc/gen arc4random.c, sys/libkern arc4random.c

kernel - Stir longer in arc4random

* Stir longer in arc4random

Taken-from: FreeBSD
Reported-by: jaykishan mutkawoa

DragonFlyBSD — sys/conf files, sys/dev/agp Makefile

drm/i915: Update to Linux 4.7.10

* Various bugfixes, including GPU-specific ones on Ironlake and more
  recent hardware.
  Runtime power management and atomic modesetting have been specially
  improved.

* Fix Hardware hangs on Ironlake, Sandybridge, Ivybridge, Skylake and
  Kabylake GPUs

* Fix various display flickering issues, including PSR, Broadwell and
  Display-port specific ones

* Kabylake support is no longer considered experimental

* Color management has been added for Broadwell, Skylake, Kabylake as
  well as Cherryview and Broxton GPUs. The intent is to obtain more
  accurate color representation on various types of panel.
Delta File
+1,806 -1,753 sys/dev/drm/i915/intel_display.c
+1,003 -911 sys/dev/drm/i915/intel_ringbuffer.c
+1,787 -0 sys/dev/drm/i915/intel_dpll_mgr.c
+285 -1,207 sys/dev/drm/i915/intel_ddi.c
+679 -675 sys/dev/drm/i915/intel_lrc.c
+450 -420 sys/dev/drm/i915/i915_irq.c
+10,135 -5,357 113 files not shown
+16,145 -10,323 119 files

DragonFlyBSD — sys/sys unistd.h

<sys/unistd.h>: Add missing _PC_TIMESTAMP_RESOLUTION.

We don't handle it yet though.
Delta File
+1 -0 sys/sys/unistd.h
+1 -0 1 file

DragonFlyBSD — sys/conf files, sys/dev/video Makefile

kernel: Add a port of the Linux 4.8 vga_switcheroo module

Submitted-by: Peeter Must <karu.pruun at gmail.com>

DragonFlyBSD — usr.sbin Makefile, usr.sbin/efisetup efisetup.sh efisetup.8

build - Add the 'efisetup' script

* Add the 'efisetup' script to /usr/sbin.  This script is capable of
  creating a pristine UEFI bootable DragonFlyBSD installation on the
  target drive.  The target drive will be wiped.

  Note that this script does only a basic installation... literally once
  it sets up the partitions it just does an installworld, make distribution,
  and installkernel, and then some minor adjustments to create the initial
  /etc/rc.conf, /etc/fstab, and /boot/loader.conf.

* Requires that you previously did a buildworld and buildkernel
  before running the script.

DragonFlyBSD — usr.sbin Makefile, usr.sbin/efisetup efisetup.sh efisetup.8

build - Add the 'efisetup' script

* Add the 'efisetup' script to /usr/sbin.  This script is capable of
  creating a pristine UEFI bootable DragonFlyBSD installation on the
  target drive.  The target drive will be wiped.

  Note that this script does only a basic installation... literally once
  it sets up the partitions it just does an installworld, make distribution,
  and installkernel, and then some minor adjustments to create the initial
  /etc/rc.conf, /etc/fstab, and /boot/loader.conf.

* Requires that you previously did a buildworld and buildkernel
  before running the script.

DragonFlyBSD — sys/platform/pc64/x86_64 pmap.c, sys/platform/vkernel64/platform pmap.c

kernel - Fix panic in zget() during heavy paging

* Fix a panic that can occur in zget() when a large number of swap info
  blocks are needed from the swap_zone.

  Fix by reformulation how new items are added to the zone.  This is a
  non-critical code path, but we make it a bit more SMP friendly anyway.

* Use the opportunity to get rid of the VM object ZONE_INTERRUPT uses.
  The two that are left are never destroyed, so there's no need to track
  the pages in an object.

Reported-by: tkusumi

DragonFlyBSD — sys/platform/pc64/x86_64 pmap.c, sys/platform/vkernel64/platform pmap.c

kernel - Fix panic in zget() during heavy paging

* Fix a panic that can occur in zget() when a large number of swap info
  blocks are needed from the swap_zone.

  Fix by reformulation how new items are added to the zone.  This is a
  non-critical code path, but we make it a bit more SMP friendly anyway.

* Use the opportunity to get rid of the VM object ZONE_INTERRUPT uses.
  The two that are left are never destroyed, so there's no need to track
  the pages in an object.

Reported-by: tkusumi

DragonFlyBSD — include time.h

<time.h>: Shuffle some prototypes around (no functional change).
Delta File
+14 -17 include/time.h
+14 -17 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

March 16, 2017 snapshot from http://pciids.sourceforge.net/
Delta File
+83 -14 share/misc/pci_vendors
+83 -14 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

March 16, 2017 snapshot from http://pciids.sourceforge.net/
Delta File
+83 -14 share/misc/pci_vendors
+83 -14 1 file

DragonFlyBSD — share/misc bsd-family-tree

bsd-family-tree: Sync with FreeBSD.
Delta File
+20 -17 share/misc/bsd-family-tree
+20 -17 1 file

DragonFlyBSD — share/misc bsd-family-tree

bsd-family-tree: Sync with FreeBSD.
Delta File
+20 -17 share/misc/bsd-family-tree
+20 -17 1 file

DragonFlyBSD — share/zoneinfo NEWS northamerica

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

Haiti resumed observance of DST in 2017.  (Thanks to Steffen Thorsen.)

DragonFlyBSD — share/zoneinfo NEWS northamerica

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

Haiti resumed observance of DST in 2017.  (Thanks to Steffen Thorsen.)

DragonFlyBSD — share/zoneinfo NEWS northamerica

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

Haiti resumed observance of DST in 2017.  (Thanks to Steffen Thorsen.)

DragonFlyBSD — test/sysperf randread.c

test - Flesh out randread statistics reporting

* Cleanup the output.  Report the aggregate IOPS, average latency,
  aggregate bandwidth, low and high latencies, and the standard
  deviation for the test on a per-second basis.

* Standard deviation notes:

  68%            Of the samples are within 1 standard deviation, so if the
            reported stddev is 7uS, then 68% of the samples are +/- 7uS
            of the average reported value.

  95.45%    Of the samples are within 2 standard deviations.  +/- 14uS
            in the example.

  99.73%    Of the samples are within 3 standard deviations.  +/- 21uS
            in the example.
Delta File
+115 -16 test/sysperf/randread.c
+115 -16 1 file

DragonFlyBSD — test/sysperf randread.c

test - Flesh out randread statistics reporting

* Cleanup the output.  Report the aggregate IOPS, average latency,
  aggregate bandwidth, low and high latencies, and the standard
  deviation for the test on a per-second basis.

* Standard deviation notes:

  68%            Of the samples are within 1 standard deviation, so if the
            reported stddev is 7uS, then 68% of the samples are +/- 7uS
            of the average reported value.

  95.45%    Of the samples are within 2 standard deviations.  +/- 14uS
            in the example.

  99.73%    Of the samples are within 3 standard deviations.  +/- 21uS
            in the example.
Delta File
+115 -16 test/sysperf/randread.c
+115 -16 1 file

DragonFlyBSD — sys/dev/virtual/virtio/net if_vtnet.c if_vtnetvar.h

if_vtnet - Allocate struct vtnet_tx_header entries from a queue.

* The existing code was sequentially allocating from an array of
  struct vtnet_tx_header, using an appropriately sized area.
  But this scheme turns out to be a very bad idea when we get out-of-order
  completions in the virtqueue.

* Instead allocate struct vtnet_tx_header entries from an SLIST.

* This should avoid crashes from memory-corruption or use-after-free in
  if_vtnet(9), when running in KVM on Linux, using Linux's vhost-net
  in-kernel virtqueue accelerator.

DragonFlyBSD — etc/mtree BSD.usr.dist, share/examples/uefisign uefikeys

Bring in uefisign(8) example script.

It was forgotten in bb7548fd68273597588b57868a739b2d3a8a8d94.

Taken-from: FreeBSD

DragonFlyBSD — etc/mtree BSD.usr.dist, share/examples/uefisign uefikeys

Bring in uefisign(8) example script.

It was forgotten in bb7548fd68273597588b57868a739b2d3a8a8d94.

Taken-from: FreeBSD

DragonFlyBSD — etc Makefile, nrelease Makefile

installer: Fix the "missing /var/run/sem" issues better.

* Add -C to the tmpfs mount of /var/run on the USB image. This
  ensures that the USB image itself keeps the ppp/, sem/, and
  wpa_supplicant/ dirs under /var/run.

* Since we do not cpdup /var/run explicitly during installation
  it ends up empty on the installed system. Ensure that it has
  the subdirectories it needs by running mtree on /var.

* It looks like the 1e5a476188185cf1161f4fe3ffc060465562ef0d
  change could be reverted because the issue never was that
  /var/run/sem wasn't existing _after_ make upgrade. The mtree
  in the preceding installworld takes care of it. It doesn't
  hurt either, so just shuffle the commands a bit downwards.

DragonFlyBSD — etc Makefile, nrelease Makefile

installer: Fix the "missing /var/run/sem" issues better.

* Add -C to the tmpfs mount of /var/run on the USB image. This
  ensures that the USB image itself keeps the ppp/, sem/, and
  wpa_supplicant/ dirs under /var/run.

* Since we do not cpdup /var/run explicitly during installation
  it ends up empty on the installed system. Ensure that it has
  the subdirectories it needs by running mtree on /var.

* It looks like the 1e5a476188185cf1161f4fe3ffc060465562ef0d
  change could be reverted because the issue never was that
  /var/run/sem wasn't existing _after_ make upgrade. The mtree
  in the preceding installworld takes care of it. It doesn't
  hurt either, so just shuffle the commands a bit downwards.

DragonFlyBSD — sys/dev/disk/mmcsd mmcsd.c

kernel/mmcsd: Add some dummy values for d_nheads and d_secpertrack.

Values taken from nvme(4). newfs_msdos(8) uses these, and the way
we call it from the installer (not specifying them explicitly) broke
installing to an SD card.

Reported-by: Pontus Lundkvist <p at article.se>
Delta File
+4 -0 sys/dev/disk/mmcsd/mmcsd.c
+4 -0 1 file

DragonFlyBSD — sys/dev/disk/mmcsd mmcsd.c

kernel/mmcsd: Add some dummy values for d_nheads and d_secpertrack.

Values taken from nvme(4). newfs_msdos(8) uses these, and the way
we call it from the installer (not specifying them explicitly) broke
installing to an SD card.

Reported-by: Pontus Lundkvist <p at article.se>
Delta File
+4 -0 sys/dev/disk/mmcsd/mmcsd.c
+4 -0 1 file

DragonFlyBSD — usr.sbin/sshd Makefile.etc sshd_config_expect

build - Validate sshd_config

* Make sure the default sshd_config contains certain lines
  that we require.  At the moment, this adjustment makes sure
  that the sshd_config file has the correct PasswordAuthentication
  directive.

* Intended to catch snafus when openssh is updated from the vendor.

DragonFlyBSD — usr.sbin/sshd Makefile.etc sshd_config_expect

build - Validate sshd_config

* Make sure the default sshd_config contains certain lines
  that we require.  At the moment, this adjustment makes sure
  that the sshd_config file has the correct PasswordAuthentication
  directive.

* Intended to catch snafus when openssh is updated from the vendor.

DragonFlyBSD — crypto/openssh readconf.c servconf.c

sshd - Fix default password authentication (2)

* Oops, last commit had to change it in servconf.c, not readconf.c

DragonFlyBSD — crypto/openssh readconf.c servconf.c

sshd - Fix default password authentication (2)

* Oops, last commit had to change it in servconf.c, not readconf.c

DragonFlyBSD — crypto/openssh sshd_config readconf.c

sshd - Fix default password authentication

* The default for PasswordAuthentication somehow got reverted to
  being enabled.

* Disable PasswordAuthentication by default.

* Uncomment PasswordAuthentication in the default sshd_config,
  defaulting to 'no', and always overriding sshd's own defaults.

DragonFlyBSD — crypto/openssh sshd_config readconf.c

sshd - Fix default password authentication

* The default for PasswordAuthentication somehow got reverted to
  being enabled.

* Disable PasswordAuthentication by default.

* Uncomment PasswordAuthentication in the default sshd_config,
  defaulting to 'no', and always overriding sshd's own defaults.

DragonFlyBSD — sys/platform/pc64/conf options

kernel/options: EFIRT can go to opt_dontuse.h. No need for opt_efirt.h.

The EFIRT option only enables compilation of whole files.
Delta File
+1 -1 sys/platform/pc64/conf/options
+1 -1 1 file

DragonFlyBSD — sys/config VKERNEL64 X86_64_GENERIC, sys/net/ppp if_ppp.c

kernel - Remove if_sl, if_ppp, and if_faith from the kernel build

* Remove if_sl, if_ppp, and if_faith from the kernel build.  These
  interfaces may be loaded as modules.

* Add missing MODULE_VERSION for if_sl and if_ppp.  This allows these
  modules to be specified in /boot/loader.conf without crashing the
  kernel if the kernel already happens to build them in, for forwards
  and backwards run-time compatibility.

DragonFlyBSD — sbin/hammer cmd_show.c ondisk.c, sbin/newfs_hammer newfs_hammer.c

hammer - HAMMER Version 7

* Add support for version 7 which changes the CRC mechanic from the
  old slow CRC code to the faster ISCSI CRC code.  We don't use the CRC
  instruction yet but ths base ISCSI CRC from FreeBSD is 6x faster than
  the CRC code we were using before.

* Change newfs_hammer default to version 7 (for master).

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

hammer2 - Fix cluster synchronization bug (2+ nodes)

* Fix a bug where hammer2_cluster_check() can end up in an infinite
  loop.

* Look for pfs_names[] in all PFSs associated with a cluster.

* Add missing xop retirement in pfs-delete.

* Skip the directory empty check in pfs-delete.

* Preliminary code to deallocate an element of a live PFS