Displaying 1 50 of 37,682 commits (0.014s)

DragonFlyBSD — . UPDATING Makefile_upgrade.inc, etc devd.conf

Clean up a bit after the recent ahc/ahd/aic removal.
Delta File
+0 -444 share/man/man4/ahc.4
+0 -184 share/man/man4/ahd.4
+0 -52 share/man/man4/aic.4
+8 -8 share/man/man4/scsi.4
+5 -4 UPDATING
+1 -8 share/man/man4/targ.4
+12 -11 8 files not shown
+26 -711 14 files

DragonFlyBSD — sys/dev/raid/mrsas mrsas_cam.c

mrsas - release devq before freeing the sim.

* Release the devq before freeing the sim.
Delta File
+2 -2 sys/dev/raid/mrsas/mrsas_cam.c
+2 -2 1 file

DragonFlyBSD — sys/bus/cam cam_periph.c

kernel - Add missing bus lock to CAM

* cam_periph_alloc() was missing a bus lock / unlock sequence around
  a list operation.
Delta File
+4 -0 sys/bus/cam/cam_periph.c
+4 -0 1 file

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

kernel - Improve exec performance

* Improves non-shared 32-way-concurrent exec performance for a small
  static binary on the xeon from 92KE/s (92000 execs/sec) to 136KE/s.

* Improves single-threaded test performance from ~4.5KE/s to ~6.5KE/s.
  And for reasons I don't entirely understand, sometimes up to ~8KE/s.

* Several changes here, but the only one that matters for the test is
  that the pv_placemarker_wakeup() code removes a spin_lock/spin_unlock
  pair on the pmap.  I adjusted the code so the pmap spinlock is not
  required for placemarker wakeup operations.

  What I think might have happened here is that this removal also got
  rid of a spin-lock shared/exclusive ping-pong.  Still, the huge
  improvement in performance was not expected.  Even with the removal
  there is still an atomic_swap_long() in the code path.

  My guess is that multiple atomic ops degrade the instruction pipeline
  more than one would otherwise expect due to the multiple memory
  fences.
Delta File
+39 -15 sys/platform/pc64/x86_64/pmap.c
+39 -15 1 file

DragonFlyBSD — sys/dev/netif/re re.c re.h

re: Update to Realtek 1.93

Tested-by: me, Tim Darby
Delta File
+391 -54 sys/dev/netif/re/re.c
+4 -0 sys/dev/netif/re/re.h
+395 -54 2 files

DragonFlyBSD — sys/platform/pc64/include globaldata.h, sys/platform/pc64/x86_64 pmap.c

kernel - Slightly reduce extra spinlock ops in _pv_alloc()

* Pre-stage pnew (new pv_entry) using a pcpu cache, avoiding an
  unnecessary spin_unlock/spin_lock sequence in _pv_alloc().

* No real performance improvement measured, but the code is cleaner so
  use it.

DragonFlyBSD — sys/cpu/x86_64/include atomic.h

kernel - Add atomic ops features

* Add <atomicop>_xacquire() and <atomicop>_xrelease() to a bunch of
  atomic ops.  Using this API will elide the operation using Intel's
  TSX extensions (the elides are backwards compatible to cpus that do
  not support TSX).

* Note however that preliminary testing using this API in the spin_lock*()
  and pv_*() interfaces has only led to a reduction of performance and not
  to any improvement, so at the moment we do not intend to use it.  But I
  did the work to add the API calls and I don't want to lose it.
Delta File
+130 -3 sys/cpu/x86_64/include/atomic.h
+130 -3 1 file

DragonFlyBSD — sys/dev/drm/include/drm drm_os_linux.h, sys/dev/drm/include/linux interrupt.h spinlock.h

drm/linux: Implement tasklets

Even though this initial implementation is pretty naive and runs
tasklets synchronously, it appears to nevertheless work fine with
the drm/i915 driver version from Linux 4.7.

DragonFlyBSD — sys/config LINT64

kernel: fix LINT64 build after old SCSI drivers removal
Delta File
+0 -1 sys/config/LINT64
+0 -1 1 file

DragonFlyBSD — sys/vm vm_map.c

kernel - Disallow remote growstack from procfs

* Do not allow procfs operations to grow the stack of a remote process,
  at least for now, because we are not passing in the struct vmspace *
  pointer, for now.

* Fixes trivial panic caused by ps -e due to the recent addition of
  an assertion to test the condition that failed (the assertion is
  correct).
Delta File
+9 -1 sys/vm/vm_map.c
+9 -1 1 file

DragonFlyBSD — . Makefile.inc1

build - Fix nativekernel build

* Fix issue with aic removal, forgot to remove something from the
  nativekernel build target.
Delta File
+0 -3 Makefile.inc1
+0 -3 1 file

DragonFlyBSD — sys/dev/netif/re re.c

kernel/re: Fix hw.re.phy_mdix_mode tunable.
Delta File
+1 -1 sys/dev/netif/re/re.c
+1 -1 1 file

DragonFlyBSD — sys/boot/common interp_backslash.c load_elf.c

boot - Fix insufficient malloc()s

* Fix two places where not enough buffer space is malloc()d.

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

kernel - Remove old SCSI drivers - aic, aic7xxx, ahc, ahd

* Remove these drivers.  They were pinnacles of their time, requiring
  incredibly complex state machines for sequencing old-style SCSI busses.
  CAM was created to support these babies.  But alas, they became obsolete
  many years ago.

* They were from the 32-bit ISA and PCI (not PCIe) PC era.  DragonFlyBSD
  doesn't even boot on those old machines any more, being 64-bit only.

* Also deals with some -j races in the aic sub-build.

DragonFlyBSD — games/phantasia Makefile, usr.bin/tic Makefile

build - Allow release to be built on master

* Make a few adjustments so the release branch can be built on master.

Reported-by: tuxillo

DragonFlyBSD — sys/kern usched_dfly.c

kernel - Expand p_nice effect more, fix %cpu calculation bug

* Expand the p_nice effect even more.

* Fix a %cpu calculation bug which could improperly cause the
  lwp->lwp_priority to be reset to its base level, potentially giving
  a cpu-bound process more cpu than intended.
Delta File
+2 -2 sys/kern/usched_dfly.c
+2 -2 1 file

DragonFlyBSD — sys/dev/drm/include/linux workqueue.h, sys/dev/drm/radeon radeon_device.c

drm - Fix major stalls by fixing an improper taskqueue priority

* drm was creating task queues with a LWKT priority of 0, which is
  lower than the priority of a running user thread.

* Fix all cases where improper priorities are passed to
  taskqueue_start_threads().  This fixes major video stalls and glitches
  that occur when other things might be running on the system cpu-bound.

* taskqueue_start_threads() now asserts if the priority passed to it is
  illegal.

DragonFlyBSD — sys/kern kern_physio.c

kernel - Fix bug in physio()

* Fix an integer overflow in physio() when attempting to dd a block size
  >= 2G.  An int was being used instead of size_t.

Reported-by: tpchin
Bug: 2981
Delta File
+2 -2 sys/kern/kern_physio.c
+2 -2 1 file

DragonFlyBSD — sys/kern kern_physio.c

kernel - Fix bug in physio()

* Fix an integer overflow in physio() when attempting to dd a block size
  >= 2G.  An int was being used instead of size_t.

Reported-by: tpchin
Bug: 2981
Delta File
+2 -2 sys/kern/kern_physio.c
+2 -2 1 file

DragonFlyBSD — sys/kern subr_bus.c

kernel - Support FreeBSD style loader.conf hints for resources

* DragonFly uses <device><unit>.<resname>.

* Also support FreeBSD hints which use hint.<device>.<unit>.<resname>.

* Makes it easier for users coming from FreeBSD to bring in sound quirks
  and such.

Reported-by: Damien
Delta File
+25 -0 sys/kern/subr_bus.c
+25 -0 1 file

DragonFlyBSD — sys/kern subr_bus.c

kernel - Support FreeBSD style loader.conf hints for resources

* DragonFly uses <device><unit>.<resname>.

* Also support FreeBSD hints which use hint.<device>.<unit>.<resname>.

* Makes it easier for users coming from FreeBSD to bring in sound quirks
  and such.

Reported-by: Damien
Delta File
+25 -0 sys/kern/subr_bus.c
+25 -0 1 file

DragonFlyBSD — sys/kern usched_dfly.c

kernel - Fix estcpu calculation

* No longer use uload to try to correct estcpu.  It winds up inflating the
  cpu use of other processes that use cpu but are not cpu-bound, creating
  the same estcpu compression problem.  The problem is less pronounced
  without it.

* Remove the uload global.  No longer useful and saves an unnecessary
  cache line ping-pong.

* Refactor how p_nice affects p_priority.  This causes nice levels to have
  a greater effect.

* Make the forkbias programmable with a sysctl and set the default to 1,
  which is a good, safe, all-around default.
Delta File
+108 -30 sys/kern/usched_dfly.c
+108 -30 1 file

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

drm/radeon: Replace some spinlocks by lockmgr locks

The original Linux code uses struct mutexes instead of spinlocks for
gem.mutex, gpu_clock_mutex and srbm_mutex.

DragonFlyBSD — sys/kern usched_dfly.c

Revert "kernel - Reduce priority range from dynamic priority"

This reverts commit abc0cda7b4a0a92afab15645d5adfac57af02866.

The change improved how nice ranging works but completely blew up
fork priority reduction, causing parent process dispatches via
fork/exec (such as done by a service or by make) to not immediately
move the child proces to another cpu when the parent has more work
to do.

This caused the kernel build to regress from 3:12 to 3:21 on the
test box, and for the world build to only show minor improvements
instead of more significant improvements.

So revert it for now.  We will improve nice priorities another way.
Delta File
+5 -6 sys/kern/usched_dfly.c
+5 -6 1 file

DragonFlyBSD — sys/bus/cam cam_periph.h cam_periph.c, sys/dev/raid/vinum vinumioctl.c

kernel: MFC the recent -Wswitch fixes.

From master:

1647c7bd435093709089283aa68ef831b34caef9
2c995f40849b20e79621e20576e89e785a0d92a7
f46681358e7500a0505796f5744110299cdc99d8

DragonFlyBSD — sys/bus/u4b usbdevs, sys/bus/u4b/quirk usb_quirk.c

kernel/usb4bsd: Add a quirk for the Corsair STRAFE Gaming keyboard.

Taken-from: FreeBSD

DragonFlyBSD — sys/bus/u4b usbdevs, sys/bus/u4b/quirk usb_quirk.c

kernel/usb4bsd: Add a quirk for the Corsair STRAFE Gaming keyboard.

Taken-from: FreeBSD

DragonFlyBSD — usr.bin/sdpquery Makefile

sdpquery(1): Remove an unneeded explicit -Wno-unused-but-set-variable.

-Wunused-but-set-variable comes in at WARNS==4 only.
Delta File
+0 -2 usr.bin/sdpquery/Makefile
+0 -2 1 file

DragonFlyBSD — lib/libc/stdlib nmalloc.c

libc/nmalloc: Remove some kernel code remains.
Delta File
+1 -133 lib/libc/stdlib/nmalloc.c
+1 -133 1 file

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

kernel - Fix machdep.pmap_mmu_optimize bug

* Fix bug introduced by the recent pv_entry rewrite when MMU segment
  optimization is enabled.

Reported-by: sephe
Delta File
+4 -3 sys/platform/pc64/x86_64/pmap.c
+4 -3 1 file

DragonFlyBSD — sys/conf files, sys/platform/pc64/conf files

Unbreak vkernel build.

Move some hyperv specific but "standard" files into the pc64 specific
'files' file.

Reported-by: tuxillo
Delta File
+0 -2 sys/conf/files
+2 -0 sys/platform/pc64/conf/files
+2 -2 2 files

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

February 8, 2017 snapshot from http://pciids.sourceforge.net/
Delta File
+85 -31 share/misc/pci_vendors
+85 -31 1 file

DragonFlyBSD — sys/kern kern_slaballoc.c

kernel/slaballoc: Separate some parts better that need INVARIANTS.
Delta File
+8 -1 sys/kern/kern_slaballoc.c
+8 -1 1 file

DragonFlyBSD — sys/kern subr_diskiocom.c, sys/net/ip_mroute ip_mroute.h

Unbreak kernel building

DragonFlyBSD — sys/dev/raid/vinum vinumioctl.c

kernel/vinum: Fix the position of VINUM_LABEL ioctl handling.

This was touched in ca6d9fb71787f9d013cb789ad2f41d6fc33fb38e back in
2007, but slightly wrong, because the case was moved into the outer
switch() which doesn't actually handle ioctls, so this case was never
hit there.

With this commit, all of clang's -Wswitch warnings in the kernel build
are fixed.
Delta File
+1 -1 sys/dev/raid/vinum/vinumioctl.c
+1 -1 1 file

DragonFlyBSD — sys/bus/cam cam_periph.h cam_periph.c, sys/kern subr_diskiocom.c

kernel: Fix the type of 'cmd' in various ioctl functions (int -> u_long).

These were all found by clang's -Wswitch option.

DragonFlyBSD — sys/dev/virtual/hyperv hyperv.c, sys/dev/virtual/hyperv/x86_64 hyperv_machdep.c

hyperv: Implement cpucounters.

DragonFlyBSD — sys/kern kern_cputimer.c, sys/platform/pc64/isa clock.c

kern: Add cpucounter which returns 64bit monotonic counter.

It will be used to:
- Simplify per-cpu raw time extraction.
- ALTQ machclk.
- Per packet timestamp for CoDel.

As of this commit, dummy cpucounter, which falls back to cputimer,
and TSC cpucounter are implemented.

DragonFlyBSD — sys/net/altq altq_subr.c

altq: Use microuptime() instead of microtime() - boottime.
Delta File
+4 -4 sys/net/altq/altq_subr.c
+4 -4 1 file

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

kernel - Fix bug in pmap_unwire()

* Fix a bug introduced in the recent pmap work.  For kernel pages,
  pmap_unwire() was not testing the V bit and would return a bogus
  vm_page_t for PTE values of 0, instead of returning NULL.

* Triggered by the mpipe code, used primarily by the crypto subsystem.
  Also used for IP fragment reassembly and by tcp_maketemplate().  A
  failed M_NOWAIT slab allocation tries to delete the partially filled
  map_entry_t, encounters 0 PTEs, and gets confused.

Reported-by: Tim Darby, Antonio Huete Jimenez
Delta File
+9 -6 sys/platform/pc64/x86_64/pmap.c
+9 -6 1 file

DragonFlyBSD — sys/kern kern_jail.c, sys/libkern inet_ntoa.c

libkern: Make inet_ntoa MPSAFE by passing string buffer to it.

DragonFlyBSD — sys/dev/drm/i915 intel_pm.c

drm/i915: Set GPU freq to idle_freq initially

Set the initial frequency to idle_freq on Skylake+/Valleyview/Cherryview
GPUs in order to not waste power.
This was already done on all other platforms.

Obtained-from: Linux 4.7, commit 5fd9f52384935dacfdc4adb5cc3531a40346d475
Delta File
+7 -7 sys/dev/drm/i915/intel_pm.c
+7 -7 1 file

DragonFlyBSD — usr.bin/sort bwstring.c coll.c

sort(1): Fix some obvious issues

Taken-from:        FreeBSD

DragonFlyBSD — sys/dev/drm drm_crtc.c, sys/dev/drm/include/drm drm_crtc.h

drm: Partial revert of "drm: Sync drm_crtc.c with Linux 4.6"

This partially reverts commit 917ec290eeeeb73fe8bfa066cfc3303a55646424.
It broke Xorg on some machines.

Reported-by: many people

DragonFlyBSD — sys/kern kern_clock.c, sys/sys param.h

kernel: Add a simple kern.cp_times sysctl.

This is like kern.cp_time, just per CPU.

It will help devel/libgtop, and by extension mate-system-monitor, perhaps
other such utilities/plugins too. Therefore, bump __DragonFly_version as
well.
Delta File
+23 -1 sys/kern/kern_clock.c
+2 -1 sys/sys/param.h
+25 -2 2 files

DragonFlyBSD — sys/net if.c if_ethersubr.c

net: Make sure that local variable is really used.
Delta File
+6 -1 sys/net/if.c
+2 -0 sys/net/if_ethersubr.c
+2 -0 sys/net/pfil.c
+10 -1 3 files

DragonFlyBSD — tools/tools/netrate/pktgen pktgen.c

pktgen: Ifnet lock is required by ifunit.

DragonFlyBSD — sys/kern kern_clock.c

kernel: Use CPUSTATES constant.
Delta File
+1 -1 sys/kern/kern_clock.c
+1 -1 1 file

DragonFlyBSD — sbin/devd Makefile

devd(8): Remove build workaround.

After previous commit change it should be no longer needed.

Spotted-by: swildner
Delta File
+0 -6 sbin/devd/Makefile
+0 -6 1 file