Displaying 1 50 of 31,727 commits (0.065s)

DragonFlyBSD — sys/netinet tcp_subr.c in_pcb.h, sys/netinet6 in6_pcb.h in6_pcb.c

inpcb: Define inp_notify_t

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

drm/ttm: glob->lru_lock locking from Linux 3.9.11
Delta File
+4 -7 sys/dev/drm/ttm/ttm_bo.c
+4 -7 1 file

DragonFlyBSD — sys/dev/virtual/virtio/pci virtio_pci.c

virtio_pci: Use device_probe_and_attach(), instead of DEVICE_ATTACH().

* By directly calling DEVICE_ATTACH(), we didn't get automatically created
  sysctl nodes (added in 8e4d13764bdfc916c23fb22158c65e486dce631c), and
  we didn't get automatic dmesg messages on child driver attachement
  (e.g. "vtblk0: <VirtIO Block Adapter> on virtio_pci1") .

* Since we have no direct equivalent to FreeBSD's device_attach(), use
  device_probe_and_attach(). This means we do a vtpci_set_status() cycle
  even if no matching driver is found.

DragonFlyBSD — sys/kern kern_lock.c kern_sysctl.c, sys/sys lock.h

kernel - Add lock canceling features

* The current (typically exclusive) lock holder can enable cancel mode
  by executing lockmgr(lk, LK_CANCEL_BEG, 0).  This call always succeeds.
  The lock state is not otherwise affected.

  Any current threads blocked on the lock or any future thread which
  attempts to gain the lock, who also specify the LK_CANCELABLE flag,
  will be canceled as long as cancel mode is active and their operation
  will return ENOLCK.

  NOTE! Threads which do not specify LK_CANCELABLE are not affected by
        cancel mode and their blocking locks will block normally.

  WARNING!  Cancel mode is not stackable.  The system will panic if you
  enable cancel mode on a lock where it is already enabled.

* The current (typically exclusive) lock holder can terminate cancel mode
  by executing lockmgr(lk, LK_CANCEL_END, 0).  This call always succeeds.
  Once canceled, any other threads that would block on the lock and specify
  the LK_CANCELABLE flag will block normally and not be canceled.

  The current lock holder can also terminate cancel mode by simply releasing
  the last lock with LK_RELEASE.  That is, a release where the lock count
  returns to 0.

    [3 lines not shown]
Delta File
+113 -6 sys/kern/kern_lock.c
+61 -29 sys/sys/lock.h
+1 -1 sys/kern/kern_sysctl.c
+175 -36 3 files

DragonFlyBSD — sys/platform/pc64/include vmparam.h, sys/platform/vkernel64/include vmparam.h

kernel - Increase default MAXTSIZ from 128M to 256M

* Increase the default max text size from 128m to 256m.  Note that this
  value can also be overridden in /boot/loader.conf via kern.maxtsiz.

* Currently only chrome compiled w/ full debugging has a text size
  which exceeds 128M.  The normally compiled chrome is hitting 93MB
  though so we might as well up the limit now.

DragonFlyBSD — usr.sbin/installer/test libinstaller_test.c Makefile

installer: Add an initial testing tool.

- It forks the backend and runs the frontend on the parent
  process so all runs in one go.
- The idea is to be able to test certain functions from the
  installer without the need to run the whole thing.
- This is just the initial stuff!

DragonFlyBSD — sbin/dhclient dispatch.c

dhclient: Fix a busy loop

The ifi->linkstat variable seemed to be not updated after the poll
returns in dispatch.c. This might only be a hack, but it makes the
busylooping go away.
Delta File
+8 -0 sbin/dhclient/dispatch.c
+8 -0 1 file

DragonFlyBSD — sbin/dhclient dispatch.c

dhclient: Fix a busy loop

The ifi->linkstat variable seemed to be not updated after the poll
returns in dispatch.c. This might only be a hack, but it makes the
busylooping go away.
Delta File
+8 -0 sbin/dhclient/dispatch.c
+8 -0 1 file

DragonFlyBSD — share/man/man4 msk.4

msk.4: Document that MSI is turned off by default.
Delta File
+5 -3 share/man/man4/msk.4
+5 -3 1 file

DragonFlyBSD — sys/dev/sound/pcm channel.c

sound/pcm - Attempt to fix 'play interrupt timeout, channel dead' error

* Fix the timeout calculation to properly calculate the buffering
  timeout.

* Adjusted code taken from bug 2067 submission.

PR: 2067
Delta File
+18 -4 sys/dev/sound/pcm/channel.c
+18 -4 1 file

DragonFlyBSD — sys/dev/sound/pcm channel.c

sound/pcm - Attempt to fix 'play interrupt timeout, channel dead' error

* Fix the timeout calculation to properly calculate the buffering
  timeout.

* Adjusted code taken from bug 2067 submission.

PR: 2067
Delta File
+18 -4 sys/dev/sound/pcm/channel.c
+18 -4 1 file

DragonFlyBSD — sys/netinet ip_carp.c

carp: ctlinput method only processes PRC_IFDOWN and PRC_IFUP
Delta File
+5 -1 sys/netinet/ip_carp.c
+5 -1 1 file

DragonFlyBSD — sys/kern kern_slaballoc.c, sys/sys slaballoc.h

kernel - Improve slab cleanup performance

* Convert ZoneAry[], FreeZones, and FreeOVZones from singly linked lists
  to doubly linked LISTs.  SLZone structure changes size but globaldata
  should stay the same.

* Primarily affects slab_cleanup() which appears to be able to eat
  an excessive amount of cpu on monster (systems with large amounts
  of memory), and may fix a spin lock timeout panic.

* We may need some more work to moderate the amount of time slab_cleanup()
  takes.
Delta File
+29 -39 sys/kern/kern_slaballoc.c
+7 -3 sys/sys/slaballoc.h
+36 -42 2 files

DragonFlyBSD — tools/tools/hammer-backup hammer-backup.sh

tools - A bunch of bugfixes for hammer-backup.sh

  - Fix a problem when trying to backup / PFS
  - Return errors on checksum failure. This can be used by other
    scripts to verify the files are not corrupt.
  - Force absolute paths to specify which PFS to backup
  - Fix a problem with incremental non-compressed backups
  - Set a memory limit to xz to avoid massive memory usage

DragonFlyBSD — usr.bin/top m_dragonfly.c

top: fix per status process count reporting
Delta File
+5 -4 usr.bin/top/m_dragonfly.c
+5 -4 1 file

DragonFlyBSD — share/man/man4 rgephy.4 Makefile

FWIW, bring in FreeBSD's rgephy(4) manual page.

flag0 support has been commented out since I could not find it in our
code.

DragonFlyBSD — sbin/svc svc.8

svc.8: Fix a number of references to other manual pages.
Delta File
+3 -3 sbin/svc/svc.8
+3 -3 1 file

DragonFlyBSD — share/man/man9 usbdi.9

usbdi.9: Some small fixes.
Delta File
+2 -1 share/man/man9/usbdi.9
+2 -1 1 file

DragonFlyBSD — share/man/man4 cpuctl.4

cpuctl.4: Some small fixes.
Delta File
+9 -9 share/man/man4/cpuctl.4
+9 -9 1 file

DragonFlyBSD — share/man/man9 vn_lock.9

vn_lock.9: Capitalize .Dt
Delta File
+1 -1 share/man/man9/vn_lock.9
+1 -1 1 file

DragonFlyBSD — sys/conf files

cpuctl: Fix path in 'files'.
Delta File
+1 -1 sys/conf/files
+1 -1 1 file

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/dev/drm/include/linux completion.h wait.h

drm: Use lockmgr locks with Linux wait queues

* On Linux, it is possible to grab a second spinlock in an already
  spinlock-protected code section.

* The wait_event() macro is used in such a situation in the i915 driver.
  One of the event checks itself tries to grab a second lock. What's more,
  this second lock is a lockmgr lock in the DragonFly kernel. This results
  in the following situation:

    spinlock
    lockmgr LK_EXCLUSIVE
    spinunlock

* Unfortunately if the lockmgr lock can't be acquired, the thread is put
  to sleep and a thread sleeping with a spinlock held leads to a general
  system freeze or a kernel panic.

* For that reason, we can't use a spinlock in Linux wait queues. Change
  the internal wait_queue_head_t lock to a lockmgr lock.

Thanks go to Imre Vadász for spotting this horrible issue.

DragonFlyBSD — sys/boot/common help.common

loader: Fix XHCI description in help.common
Delta File
+4 -3 sys/boot/common/help.common
+4 -3 1 file

DragonFlyBSD — share/man/man4 cpuctl.4 Makefile, sys/conf files

Import cpuctl pseudo device from FreeBSD

The cpuctl pseudo device allows to perform cpu microcode updates.

DragonFlyBSD — sys/boot/common help.common

loader: Fix typos in help.common

- ahci(4) doesn't use .0 for disable hint
- fix slice name in example
Delta File
+3 -3 sys/boot/common/help.common
+3 -3 1 file

DragonFlyBSD — sbin/hammer cmd_pseudofs.c

hammer - Better trailing '/' handling on PFS paths

- Remove all trailing slashes from PFS paths to make sure
  there are no problems when performing operations on them.
Delta File
+26 -6 sbin/hammer/cmd_pseudofs.c
+26 -6 1 file

DragonFlyBSD — share/man/man9 VOP_OPENCLOSE.9

VOP_OPENCLOSE.9: Fix a reference.
Delta File
+1 -1 share/man/man9/VOP_OPENCLOSE.9
+1 -1 1 file

DragonFlyBSD — share/man/man9 vn_lock.9

vn_lock.9: Some small cleanup.
Delta File
+1 -2 share/man/man9/vn_lock.9
+1 -2 1 file

DragonFlyBSD — sys/netinet udp_usrreq.c

udp: Minor udp_ctlinput cleanup
Delta File
+2 -2 sys/netinet/udp_usrreq.c
+2 -2 1 file

DragonFlyBSD — sys/netinet tcp_subr.c

tcp: Minor tcp_ctlinput cleanup

- Remove unnecessary crit section
- Const-fy
Delta File
+3 -5 sys/netinet/tcp_subr.c
+3 -5 1 file

DragonFlyBSD — sys/netinet tcp_subr.c

tcp: Discard non-error cmd after PRC_IS_REDIRECT(cmd) test

Original code actually ignores all ICMP redirects.
Delta File
+2 -4 sys/netinet/tcp_subr.c
+2 -4 1 file

DragonFlyBSD — share/man/man9 Makefile

man9: Fix Makefile sorting.
Delta File
+2 -2 share/man/man9/Makefile
+2 -2 1 file

DragonFlyBSD — share/man/man9 Makefile

manpages: Forgot to hook vn_lock.9 into the build.
Delta File
+1 -0 share/man/man9/Makefile
+1 -0 1 file

DragonFlyBSD — share/man/man9 vn_lock.9

manpages: Add an updated version of vn_lock.9
Delta File
+96 -0 share/man/man9/vn_lock.9
+96 -0 1 file

DragonFlyBSD — sbin/rcrun rcrun.sh rcrun.8

rcrun(8): Add rcstatus command to show the status of a rc script

* Add rcrun status, and its shortcut rcstatus, to show the status of a
  rc script.
* Update rcrun(8) manual page entry to reflect the change.
Delta File
+15 -1 sbin/rcrun/rcrun.sh
+6 -1 sbin/rcrun/rcrun.8
+2 -0 sbin/rcrun/Makefile
+23 -2 3 files

DragonFlyBSD — sbin/camcontrol camcontrol.c

camcontrol(8): update usage() for the new 'devlist -b' flag
Delta File
+1 -1 sbin/camcontrol/camcontrol.c
+1 -1 1 file

DragonFlyBSD — sys/netinet ip_icmp.c

icmp: Don't convert saved ip header's length into host byte order

No kernel code depends on this and it actually whacks the icmp header
passed to userland through SOCK_RAW socket.  ICMP redirect processing
does not need fix (it does not do the convertion).
Delta File
+0 -1 sys/netinet/ip_icmp.c
+0 -1 1 file

DragonFlyBSD — sys/netinet ip_icmp.c

icmp: Fix wrong icmp header cast

This was introduced by efa391c40c414e7071b2041f1888180deb1806b9
Delta File
+1 -1 sys/netinet/ip_icmp.c
+1 -1 1 file

DragonFlyBSD — sys/netinet ip_icmp.c

icmp: Use inet_ntop() to log ip addresses
Delta File
+10 -12 sys/netinet/ip_icmp.c
+10 -12 1 file

DragonFlyBSD — sys/kern uipc_domain.c uipc_msg.c, sys/netinet ip_icmp.c

proto: ctlinput is a pr method; not a pru method

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c, sys/dev/drm/include/drm drm_os_linux.h

drm: Use the ERESTARTSYS error code

* Linux kernel functions can return -ERESTARTSYS in some cases, a
  negative value indicating an error (typically -512)

* Howewer, ERESTARTSYS was previously as ERESTART, itself defined
  as -1 in *BSD kernels

* The -ERESTARTSYS return value thus was positive on the DragonFly
  kernel, potentially breaking various drm error checks.

* Fix this issue by defining ERESTARTSYS separately

Thanks-to: Imre Vadasz for discovering the original problem

DragonFlyBSD — sys/dev/drm/include/drm drmP.h, sys/dev/drm/include/linux mm.h

drm: Add linux/mm.h

Obtained-from: FreeBSD's OFED framework

DragonFlyBSD — sbin/camcontrol camcontrol.c camcontrol.8

camcontrol(8): Add '-b' flag to 'camcontrol devlist'

This prints only the existing buses and their parent sims, useful for
creating a sim->bus->device map.

Taken-from: FreeBSD

DragonFlyBSD — usr.bin/patch patch.1 patch.c

patch(1): Add dry-run alias for compatibility with other implementations

Other implementations of patch(1), including GNU patch, "svn patch" and
FreeBSD patch have a --dry-run option which does the same as our -C or
--check option.

Add --dry-run alias to increase compatibility.

Taken-from: FreeBSD
Delta File
+2 -2 usr.bin/patch/patch.1
+1 -0 usr.bin/patch/patch.c
+3 -2 2 files

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

drm/radeon: Replace some custom code by Linux wait queues

DragonFlyBSD — sys/dev/drm/include/drm/ttm ttm_bo_api.h, sys/dev/drm/include/linux wait.h

drm/ttm: Fix ttm_bo_wait_unreserved()

By using the wait event API and code from Linux 3.8.13

The old implementation of this function had a tendency to wrongly
go to an uninterruptible sleep state.

DragonFlyBSD — sys/kern subr_bus.c, sys/sys bus_private.h bus.h

sysctl: Give each device its own context and subtree

* Add device_get_sysctl_ctx() and device_get_sysctl_tree() functions

* All devices now have an associated sysctl tree under the "dev" root

Obtained-from: FreeBSD
Delta File
+155 -0 sys/kern/subr_bus.c
+8 -0 sys/sys/bus_private.h
+2 -0 sys/sys/bus.h
+165 -0 3 files

DragonFlyBSD — usr.sbin/newsyslog newsyslog.c

newsyslog(8): use the size of the file instead of the blocks...

... it takes on disk, as advertised in newsyslog.conf(5).

Taken-from: FreeBSD
Delta File
+1 -1 usr.sbin/newsyslog/newsyslog.c
+1 -1 1 file

DragonFlyBSD — usr.sbin/newsyslog newsyslog.c

newsyslog(8): use the size of the file instead of the blocks...

... it takes on disk, as advertised in newsyslog.conf(5).

Taken-from: FreeBSD
Delta File
+1 -1 usr.sbin/newsyslog/newsyslog.c
+1 -1 1 file

DragonFlyBSD — sys/netinet ip_icmp.c

icmp: Use inet_ntop() instead of inet_ntoa()
Delta File
+18 -10 sys/netinet/ip_icmp.c
+18 -10 1 file