Displaying 1 50 of 31,099 commits (0.006s)

DragonFlyBSD — sys/netinet tcp_output.c

kernel - Add feature to allow sendbuf_auto to decrease the buffer size

* sysctl net.inet.tcp.sendbuf_auto (defaults to 1) is now able to
  decrease the tcp buffer size as well as increase it.

* Inflight bwnd data is used to determine how much to decrease the
  buffer.  Inflight is enabled by default.  If you disable it
  with (net.inet.tcp.inflight_enable=0), sendbuf_auto will not
  be able to adjust buffer sizes down.

* Set net.inet.tcp.sendbuf_min (default 32768) to set the floor for
  any downward adjustment.

* Set net.inet.tcp.sendbuf_auto=2 to disable the decrease feature.
Delta File
+40 -16 sys/netinet/tcp_output.c
+40 -16 1 file

DragonFlyBSD — sys/kern uipc_socket.c uipc_sockbuf.c, sys/netinet tcp_subr.c

kernel - Improve TCP socket handling at high speeds

* Add M_SOLOCKED to mbuf->m_flags.  This flag prevents sbcompress()
  from collapsing more data into a mbuf.

* Rewrite sorecvtcp() (NOTE: soreceive() could use similar treatment).
  Use M_SOLOCKED to freeze mbufs in the sockbuf with the rcvtok held,
  then do the uiomove() loop WITHOUT the rcvtok held, then finalize
  the disposal of the mbufs with rcvtok held.

  This greatly reduces contention on rcvtok against the netisr threads
  when reading large amounts of data at once and reduces cpu overhead
  for netisr and user network threads.

* Change the default transmit ssb_lowat from ssb_hiwat / 2 to ssb_hiwat / 4.
  The (previous) default maximum socket buffer size was 256KB.  The default
  lowat reduced the effective TCP transmit window to ~100KB.  This can cause
  severe buffering issues on GiGE links when multiple TCP streams are being
  routed to the same cpu.

  With this change the default max send buffer is ~180KB or so.

* Change the default kern.ipc.maxsockbuf from 256KB to 512KB.  This
  primarily effects auto-sizing of tcp buffers which in turn effects
  most TCP connections.

    [4 lines not shown]

DragonFlyBSD — sys/dev/drm/i915 intel_ringbuffer.c i915_gem.c

drm/i915: Sync ringbuffer code with Linux 3.8.13

* Split hardware initialization and irq management to model-specific

* Various little fixes and workarounds to compensate for hardware
  bugs and irregular behavior

* Enable parity error interrupts

* Simplify flushing and request tracking

DragonFlyBSD — sys/dev/drm drm_irq.c

drm: Fix locking issues in drm_irq.c

* Some functions expected the drm lock to be used differently than what
  gpu drivers really did, leading to crashes

* Sync them with Linux 3.8.13

Reported-by: Johannes Hofmann
Delta File
+83 -39 sys/dev/drm/drm_irq.c
+83 -39 1 file

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

kernel - Add safety for Intel SYSRET issue

* First, insofar as we can tell DragonFly was *NOT* vulnerable to the
  Intel SYSRET issue.  We have a RQF_QUICKRET flag that determines if SYSRET
  can be used.  Any heavy weight process switch, signal delivery, signal
  return, or set_regs() call clears this flag and forces the system call to
  return via IRET.

* However, the ptrace() path is a bit convoluted.  Insofar as I can tell
  it just won't allow %rip to be changed unless the target process is in
  a SSTOPped state, meaning that a heavy weight context switch must occur
  before the new %rip is used which means we should be safe.

  Still, we are adding a safety to ptrace_set_pc() to cannonicalize the
  %rip anyway, to ensure that this bug cannot bite us indirectly in the
Delta File
+10 -1 sys/platform/pc64/x86_64/machdep.c
+10 -1 1 file

DragonFlyBSD — sys/dev/drm drm_irq.c

drm: Reorder functions in drm_irq.c

* Reducing differences with Linux 3.8.13

* No functional change
Delta File
+111 -111 sys/dev/drm/drm_irq.c
+111 -111 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

July 14, 2014 snapshot from http://pciids.sourceforge.net/
Delta File
+114 -83 share/misc/pci_vendors
+114 -83 1 file

DragonFlyBSD — sys/sys protosw.h

<sys/protosw.h>: Use netmsg_t.
Delta File
+2 -3 sys/sys/protosw.h
+2 -3 1 file

DragonFlyBSD — sys/netgraph7 ng_fec.c dragonfly.h, sys/netgraph7/bluetooth/drivers/bt3c ng_bt3c_pccard.c

kernel/netgraph7: Use kprintf etc. directly instead of defining printf.

While here, remove some commented out code from dragonfly.h

In-discussion-with: nant

DragonFlyBSD — sys/netgraph/tty ng_tty.c, sys/netgraph7/tty ng_tty.c

kernel/netgraph: Don't grab the tty_token around ldisc_{,de}register().

The functions already grab it themselves.

Pointed-out-by: nant

DragonFlyBSD — sys/netgraph7/bluetooth/drivers/bt3c Makefile, sys/netgraph7/bluetooth/drivers/ubt Makefile

kernel/netgraph7: Remove unneeded CFLAGS.

DragonFlyBSD — sys/netgraph7/bluetooth/include ng_bt3c.h

kernel/netgraph7: Adjust SVN ID.

DragonFlyBSD — sys/netgraph7 netgraph2.h netgraph.h, sys/netgraph7/netgraph ng_base.c

netgraph7: Factor out and inline item reference counting code.

* Netgraph7 assumes that nodes synchronously consume the items passed to them,
  i.e. either 1) immediatly drop the item or 2) immediatly pass the item to the
  next node.

  The previous assumption is not true for nodes that have their own internal
  item queues and defer the processing of the item.  Such nodes can use these
  routines to prevent the items from being freed too early.

* Move the apply callback check into the item reference release code.

DragonFlyBSD — share/man/man4 km.4, sys/dev/powermng/km km.c

km(4): Also supports sensors in AMD Family 12h CPUs. Update manpage.

* AMD Family 12h CPUs use the same PCI device ID as Family 14h CPUs.
Delta File
+7 -1 share/man/man4/km.4
+7 -1 sys/dev/powermng/km/km.c
+14 -2 2 files

DragonFlyBSD — sys/netgraph7/bluetooth/drivers/bt3c ng_bt3c_pccard.c Makefile

kernel/netgraph7: Sync ng_bt3c with current FreeBSD and port it over.

I can't test this hardware unfortunately since I don't own it.

DragonFlyBSD — usr.sbin/powerd powerd.c

powerd - Set to max performance if killed

* If the powerd daemon is killed it now sets the system to maximum
  performance before exiting for consistency, instead of leaving it
  in a potentially low-power state.
Delta File
+17 -0 usr.sbin/powerd/powerd.c
+17 -0 1 file

DragonFlyBSD — share/man/man4 tcp.4, share/man/man7 tuning.7

kernel - Fix stability issue with net.inet.tcp.inflight*

* net.inet.tcp.inflight_enable is (already) turned on by default.  This
  is necessary for network stability and to reduce excessive packet buffering
  to make PF and other routing protocols on the network work better.

* There is a bug at very high bandwidths where the 'bw' calculation is
  unstable and can lead to positive feedback instead of the desired negative
  feedback, preventing the tcp buffer size from ramping up properly.
  GigE links could sometimes run a tcp stream as slow as 7 MBytes/sec due
  to the bug due to bwnd limiting the tcp buffer to ~30-50KB.

* Fix the bug by increasing the minimum delta ticks for calculating (bw)
  from 1 to 2 and changing the stab parameter to scale bw instead of adding a
  fixed number of tcp maxsegs to bwnd.  This handles the high-speed issue.
  Low speed stability issues are handled by also adding 2*maxseg to bwnd.

  With this fix, GigE links stabilize better at the ~400-450KB needed to run
  the stream at full speed.

* net.inet.tcp.inflight_stab now scales bw in 1/10% increments instead
  of adding N*tcp_maxseg/10.  The default value of 50 increases the 'bw'
  calculation used to derive bwnd by 5%.  This appears to be sufficient.

Reported-by: alexh, rob__

DragonFlyBSD — etc/defaults rc.conf, etc/rc.d random

rc.d/random: bring back rc.conf defaults, minor fixes

 * Saving the entropy across reboots is good practice to
   avoid having a lack of entropy after restarting the
   machine. For some reason, it has been disabled by default
   for ages now.

 * This commit brings back the defaults in rc.conf to enable
   saving entropy across reboots.

 * Minor fixes to rc.d/random, such as not assuming
   /var/db/entropy is a good place to put the entropy file,
   last but not least because:
    - that location is not checked on the start part of the script,
      so it won't ever be used.
    - /var/db/entropy is most of the time a directory, for the
      cron-based entropy collection.
Delta File
+7 -11 etc/rc.d/random
+10 -0 share/man/man5/rc.conf.5
+2 -0 etc/defaults/rc.conf
+19 -11 3 files

DragonFlyBSD — share/man/man4 random.4

random.4 - update for new CSPRNG status
Delta File
+16 -16 share/man/man4/random.4
+16 -16 1 file

DragonFlyBSD — sys/dev/netif/igb if_igb.c if_igb.h

igb: enable MSI-X for i354 on C2550 SoC

DragonFlyBSD — sys/dev/crypto/glxsb glxsb.c, sys/dev/crypto/hifn hifn7751.c

kern_nrandom, rnd drivers: update for new CSPRNG

 * Identify each source of entropy with an identifier, so that
   for example the Fortuna CSPRNG can manage the pool index
   for each source.

 * Add a new sysctl, kern.rand_mode, which can be used to select
   which generator is used for /dev/random; valid values are:
    - csprng (to use only the Fortuna-based CSPRNG)
    - ibaa (to use only IBAA)
    - mixed (to XOR both csprng and ibaa in the output stream
   It defaults to "mixed".

DragonFlyBSD — sys/dev/drm/ttm ttm_tt.c

drm - Fix bug with ttm_tt_swapin()

* Fix deadlock due to improper handling of the vm_page PG_BUSY in
Delta File
+5 -4 sys/dev/drm/ttm/ttm_tt.c
+5 -4 1 file

DragonFlyBSD — gnu/usr.bin/gdb/kgdb kthr.c

kgdb - Fix for new CPU_prvspace[]

* CPU_prvspace[] is now an array of pointers to struct privatespace and
  not an array of struct privatespace.
Delta File
+6 -4 gnu/usr.bin/gdb/kgdb/kthr.c
+6 -4 1 file

DragonFlyBSD — sys/netgraph7/bluetooth/drivers/ubt ng_ubt.c ng_ubt_var.h, sys/netgraph7/bluetooth/drivers/ubtbcmfw ubtbcmfw.c Makefile

kernel/netgraph7: Sync ubt and ubtbcmfw with current FreeBSD.

Also make them compile.

We need those drivers as of FreeBSD >=8 here since that's when
FreeBSD switched to usb4bsd.

DragonFlyBSD — sys/netgraph Makefile.inc, sys/netgraph7 Makefile.inc

kernel/netgraph: Remove useless Makefile.inc's.

DragonFlyBSD — etc rc.subr, etc/rc.d netif

Revert "add load_kld to rc.subr"

This reverts commit 9b9814ddce54234e4b231ecb33b1de509a0a9bd5.

We don't really need load_kld, since ifconfig loads if_vlan on its own.
Delta File
+0 -47 etc/rc.subr
+0 -4 etc/rc.d/netif
+0 -51 2 files

DragonFlyBSD — sys/platform/pc32/i386 identcpu.c, sys/platform/pc64/x86_64 identcpu.c

identcpu: Add AMD Features2 strings for bits 25 to 28

DragonFlyBSD — etc/rc.d netif, share/man/man5 rc.conf.5

rc.conf - Add support for FreeBSD-style vlan conf

Obtained-from: FreeBSD
Delta File
+42 -1 share/man/man5/rc.conf.5
+24 -0 etc/rc.d/netif
+66 -1 2 files

DragonFlyBSD — sys/bus/u4b usb_device.c, sys/bus/u4b/net if_urndis.c

kernel: Use NULL for pointers.

DragonFlyBSD — sbin/ifconfig ifconfig.c

ifconfig - use correct name after cloning

 * When running something like 'ifconfig vlan create vlandev foo vlan
   99', the vlan would be created correctly, but SIOCSETVLAN would be
   called on 'vlan' instead of the newly created vlan device.

 * Work around this by updating ifr_name from name (which is updated by
   the clone function) after doing the actual clone callback.
Delta File
+7 -0 sbin/ifconfig/ifconfig.c
+7 -0 1 file

DragonFlyBSD — sys/dev/drm/include/drm/ttm ttm_bo_driver.h, sys/dev/drm/ttm ttm_bo.c

drm/ttm: Replace FreeBSD custom code by Linux workqueues

DragonFlyBSD — etc network.subr

network.subr - use get_if_var extensively
Delta File
+6 -6 etc/network.subr
+6 -6 1 file

DragonFlyBSD — etc rc.subr

add load_kld to rc.subr

Obtained-from: FreeBSD
Delta File
+47 -0 etc/rc.subr
+47 -0 1 file

DragonFlyBSD — etc network.subr, etc/rc.d netif

network.subr - move get_if_var here
Delta File
+28 -1 etc/network.subr
+0 -27 etc/rc.d/netif
+28 -28 2 files

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

drm: Improve the BUG() macro

DragonFlyBSD — etc Makefile.usr

build - allow ABIVERS to be overridden in Makefile.usr

* Allow ABIVERS to be overridden in Makefile.usr.  (Defaults to uname -P).
Delta File
+1 -1 etc/Makefile.usr
+1 -1 1 file

DragonFlyBSD — sys/kern usched_dfly.c

kernel - More verbose boot de-spamming

* Try to fit common package siblings print lines into 80 columns.
Delta File
+4 -4 sys/kern/usched_dfly.c
+4 -4 1 file

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

kernel - Add two features to improve qemu emulation (64-bit only)

* Implement a tunable for machdep.cpu_idle_hlt, allowing it to be
  set in /boot/loader.conf.  For qemu the admin might want to set
  the value to 4 (always use HLT) instead of the default 2.

* Implement a tunable and new sysctl, machdep.pmap_fast_kernel_cpusync,
  which defaults to disabled (0).  Setting this to 1 in /boot/loader.conf
  or at anytime via sysctl tells the kernel to use a one-stage pmap
  invalidation for kernel_pmap updates.  User pmaps are not affected and
  will still use two-stage invalidations.

  One-stage pmap invalidations only have to spin on the originating cpu,
  but all other cpus will not be quiesced when updating a kernel_map pmap
  entry.  This is untested as there might be situations where the kernel
  pmap is updated without an interlock (though most should be interlocked

  This second sysctl/tunable, if enabled, greatly improves qemu performance
  particularly when the number of qemu cpus is greater than the number of
  real cpus.  It probably improves real hardware system performance as well,
  but is not recommended for production at this time.

DragonFlyBSD — sys/kern lwkt_ipiq.c, sys/sys thread.h

kernel - Add lwkt_cpusync_quick()

* Add a quick one-stage cpusync function to complement our two-stage
  interlock/deinterlock cpusync functions.

  The one-stage version doesn't have to spin the target cpus, only the
  originating cpu, but it can't quiesce the cpus either whereas the
  two-stage version can.
Delta File
+52 -22 sys/kern/lwkt_ipiq.c
+1 -0 sys/sys/thread.h
+53 -22 2 files

DragonFlyBSD — sys/kern subr_cpu_topology.c subr_prf.c, sys/sys systm.h

kernel - Reduce console spam in verbose mode when printing cpu sets

* Add helper function kprint_cpuset().

* Print cpu ranges when printing out cpu sets.

* Print cpu ranges when generating topology output for sysctl

DragonFlyBSD — . Makefile.inc1

build - MFC sleep/sync before initrd

* MFC the sleep/sync sequence to the 3.8 branch before initrd is run,
  to try to reduce the fallout from a 3.6 kernel bug that can crash
  the system when initrd is run during upgrading.
Delta File
+1 -0 Makefile.inc1
+1 -0 1 file

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

drm/i915: Fix flickering screen issues on some laptops

Reported-and-tested-by: luxh
Delta File
+1 -2 sys/dev/drm/i915/intel_display.c
+1 -2 1 file

DragonFlyBSD — sys/ddb db_ps.c, sys/platform/pc64/include globaldata.h

kernel - Fix crypto boots and rescue boots

* The kernel text+data+bss is too big, the loader's 64MB heap can't fit
  it plus modules plus the initrd image any more.  Fix by reducing the
  kernel's BSS.

* Reduce the BSS allocation for CPU_prvspace[] from 11MB (45056 x 256 cpus)
  to ~45056 for the BSP and dynamically allocate the globaldata space for
  the APs.  Also saves ~11MB of ram or so on normal systems.

* Reduce the BSS allocation for cpu_map_entry_init[].  Only the BSP needs
  MAXCPU+1 pre-cached vm_map_entry structures.  The APs can make due with
  8 or so before the VM system comes up sufficiently to dynamically allocate
  these structures.  This saves around ~6.5MB of ram on normal systems.

DragonFlyBSD — share/man/man4 km.4, sys/bus/pci pcidevs

km(4): Support for sensors in AMDs Kaveri and Kabini APUs

* Add support for Family 15h Models 30h-3Fh (Kaveri) and for
  Family 16h Models 00h-0Fh (Kabini).

DragonFlyBSD — sys/netgraph7 Makefile

netgraph7: Fix a bug in the Makefile.

* The ng_mppc node should not be built if the NO_CRYPT make
  variable is set.
Delta File
+1 -2 sys/netgraph7/Makefile
+1 -2 1 file

DragonFlyBSD — sbin/hammer hammer.8, sys/dev/disk/dm/targets/dmirror dmirror_notes.txt

Fix a couple of typos in a manpage and readme file.

DragonFlyBSD — sys/kern vfs_default.c, sys/sys mount.h vnode.h

kernel: Remove unused functions vop_panic() and vfs_std{,un}mount().

vop_panic()'s last usage was removed in 2009 (in bdc5802715465c8)
while vfs_stdmount() and vfs_stdunmount() were inherited from FreeBSD
but never used at all.
Delta File
+0 -18 sys/kern/vfs_default.c
+0 -2 sys/sys/mount.h
+0 -1 sys/sys/vnode.h
+0 -21 3 files

DragonFlyBSD — sys/net/pf pf_table.c

kernel - Fix table problem w/IPV6 matching with PF

* Zero the sin6 structure before initializing it for passing to rn_match().
  rn_match() is not structurally aware so pad space in the structure must
  be zero'd.

* Fixes IPV6 table matching problem with PF.

Reported-by: ftigeot
Testing-by: ftigeot
Delta File
+4 -0 sys/net/pf/pf_table.c
+4 -0 1 file

DragonFlyBSD — lib/libradius libradius.3

libradius.3: Add missing include file in the manual page.

It has the prototype for *vendor* functions and rad_demangle_mppe_key().
Delta File
+1 -0 lib/libradius/libradius.3
+1 -0 1 file

DragonFlyBSD — sys/netgraph7/eiface Makefile

netgraph7/eiface: Remove KMODDEPS from Makefile.
Delta File
+0 -1 sys/netgraph7/eiface/Makefile
+0 -1 1 file