Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Mar 2, 2015
  1. dma(8): Sync with upstream (22 SEP 2014)

    John Marino authored
    There is only one substantial change: improving mail input format error
    message.  The remain changes are email address, copyright years, etc.
    While here, document which files have local modifications by adding a
  2. ifnet: Make blocking operation in if_addrheads iteration MPSAFE

    Sepherosa Ziehau authored
    Two methods are used:
    - Dispatch blocking operation in if_addrheads iteration to netisr0
      to run for functions which do not copy data into user space.
    - Use ifaddr marker to make sure that the ifaddr list is not broken
      if the ifaddr list is changed during the blocking operation.  And
      reference the ifaddr being used so it will not be destroyed during
      the blocking operation.
  3. dmesg - Add -n dumpnr option

    Matthew Dillon authored
    * Add the -n option to specify a kernel core dump number, similar to
      how kgdb works, as a convenience so you don't have to write out the
      long -M and -N options.
Commits on Mar 1, 2015
  1. hammer2 - Fix DIO_INPROG race.

    Matthew Dillon authored
    * It is possible when a chained DIO_INPROG is present for the DIO to become
      GOOD and for the dio->refs ref to be release, but not yet have finished
      its INPROG processing due to the chaining.
      In this situation, a temporary user of the DIO will get/put it and hit
      an important sanity assertion in putblk.
    * Fix by disallowing the DIO_GOOD shortcut in hammer2_io_getblk() if the
      DIO is still DIO_INPROG.
  2. xdisk - Flesh out support

    Matthew Dillon authored
    * Add libdevstat support so 'xa' devices can report meaningful
      data in systat -vm.
    * Add sysctls to track active requests.
  3. kernel - work on dmsg disk exports

    Matthew Dillon authored
    * Refactor and clean up the kdmsg thread cleanup code.
    * Add a workaround for a possible tx/rx race which can occur due to the
      transmit side not retiring the kdmsg until after writing it.  This can
      potentially block and allow a received response to be processed before the
      related transmitted kdmsg is cleaned up.
    * Add sysctls to track operations in progress.
    * Code documentation.
  4. libdevstat - add "xa"

    Matthew Dillon authored
    * Add a match line for "xa" (xdisk) devices.
  5. libdmsg - Fix incomplete write bug

    Matthew Dillon authored
    * Fix a bug where a partial non-blocking write of encrypted data does not
      properly set the WREQ flag if the related dmsg has been disposed of.
      This could cause random stalls of the link.
    * Fix an errno-handling bug.
    * Cleanup and debugging.
  6. Revert "drm/i915: Sync i915_gem_pwrite_ioctl() with Linux 3.11"

    François Tigeot authored
    This reverts commit 005b6ef.
    It breaks Ironlake.
  7. libedit: Add bapt patches to improve unicode

    John Marino authored
    On Jan 9, bapt synced FreeBSD-current with the latest libedit from NetBSD.
    After that, he added local patches to fix line reading in a unicode
    environment.  Specifically it allowed sh(1) to work in UTF-8 environment.
    I appreciate that bapt took the time to identify those patches for the
    benefit of DragonFly.  Thanks!
  8. kernel/radeon: Remove an unused GPLv2 only file.

    Sascha Wildner authored
    Its contents are not used by our current radeon code (the functions
    end up being defined as empty inlines in radeon_drv.c) and seems to
    be the only file in Linux' radeon driver that is not MIT licensed.
    So remove it.
    In-discussion-with: ftigeot
  9. drm/i915: Sync i915_gem_pwrite_ioctl() with Linux 3.11

    François Tigeot authored
  10. drm/i915: i915_gem_pager_fault() is i915_gem_fault()

    François Tigeot authored
  11. drm: Implement linux/io-mapping.h

    François Tigeot authored
Commits on Feb 28, 2015
  1. sbin/hammer: Don't show FLAG_BADMIRRORTID for root node in certain co…

    Tomohiro Kusumi authored
    …rner case situation
    - Make hammer show command stop showwing an error flag regarding
      mirror tid that isn't actually an error.
    - newfs_hammer initializes the root node's mirror_tid with 0 along
      with its first two elements, but this mirror_tid is not updated
      till the third element is allocated (by creating a file, etc).
      Following result shows this situation.
    - In this situation the root node's node->mirror_tid (==0) being
      smaller than elm->base.create_tid or elm->base.delete_tid is not
      an error. This only happens on the root node because all the other
      nodes get updated when they split from existing ones.
         NODE 8000000020800000 cnt=02 p=0000000000000000 type=L depth=0 mirror 0000000000000000 fill=z8:65=1% {
    B-----M	ELM  0 R lo=00000001 obj=0000000000000001 rt=01 key=0000000000000000 ot=01
    	         tids 0000000100000001:0000000000000000
    B-----M	ELM  1 R lo=00000002 obj=0000000000000001 rt=15 key=0000000000000000 ot=00
    	         tids 0000000100000001:0000000000000000
  2. sbin/hammer: Rename static function print_elm_flags() to get_elm_flags()

    Tomohiro Kusumi authored
    - print_elm_flags() doesn't print anything.
  3. kernel: Mark sigexit() and cpu_halt() as not returning.

    Sascha Wildner authored
  4. drm/i915: Sync i915_gem.c with Linux 3.11

    François Tigeot authored
    * Make the GEM code more similar to Linux
    * Replace i915_gem_shmem_pread() by the OpenBSD implementation
      (i915_gem.c revision 1.85)
    * The rest of the changed code is based on Linux 3.11
  5. hammer2 - Add extra debugging

    Matthew Dillon authored
    * Enable DMsgDebugOpt if -d is specified twice.
  6. libdmsg - Fix memory leak

    Matthew Dillon authored
    * Fix a memory leak in the message relay code.  When relaying a message
      we just transfer the aux_data pointer to the relay message.  The
      allocation of the relay message was also allocate aux_data space which
      was getting thrown away and not freed.
  7. hammer2 / kern_dmsg - Fix bugs

    Matthew Dillon authored
    * Fix header size limt check.
    * Do not free the message data out from under a running I/O.
      Introduce an API for detaching aux_data from a msg.
    * Increase DMSG_AUX_MAX to 1MB to ensure that xdisk (remote disks)
      work with any filesystem.
      Theoretically we can break up READ and WRITE messages into pieces
      in order to allow DMSG_AUX_MAX to be made smaller (which is easier
      to manage in-kernel), but for now the implementation just uses a
      single message transaction.
    * Adjust some comments.
  8. libdmsg - Fix buffer indexing bug in crypted path

    Matthew Dillon authored
    * Fix a buffering index bug in the crypted path which causes a buffer
      overrun and/or implodes the connection on a protocol error.
  9. kernel: Remove unused xwait headers.

    Sascha Wildner authored
    xsleep/xwakeup were added to DragonFly in 2003 to replace asleep/awakeup
    from FreeBSD 4.x. tsleep & wakeup sleep on untyped identifiers; the sleep
    routines do not store through the identifiers and treat them as opaque.
    xsleep/xwakeup in contrast slept on explicit sleep structures,
    'struct xwait'.
    xsleep / xwakeup were never used; they were born #if-0ed out and were
    removed by 2004. This commit removes a legacy declaration and associated
    Submitted-by:  vsrinivas
    Dragonfly-bug: <>
  10. kernel: Remove unused hogticks global from kern_synch.c.

    Sascha Wildner authored
    hogticks was a global definition used in kern_synch.c:should_yield().
    A thread that had remained running for more than hogticks would
    return true for should_yield(). DragonFly has not used this global
    for a long time.
    Submitted-by:  vsrinivas
    Dragonfly-bug: <>
  11. drm: Add asm/uaccess.h functions

    François Tigeot authored
    * __copy_to_user() and __copy_from_user(), obtained from OpenBSD
    * __copy_to_user_inatomic() and __copy_from_user_inatomic_nocache(),
      obtained from FreeBSD
  12. drm: Import drm_memory.h from Linux 3.11

    François Tigeot authored
  13. drm: Add drm_clflush_virt_range()

    François Tigeot authored
    Obtained-from: Linux 3.11
  14. drm: linux/mm.h: Add offset_in_page()

    François Tigeot authored
    Obtained-from: OpenBSD
  15. xdisk - disk_setdiskinfo() must be assynchronous

    Matthew Dillon authored
    * Allow CMD_BUF_READ operations without the device having to be open.
      This allows disk probes to occur.
    * Use disk_setdiskinfo(), which is asynchronous, to avoid an I/O deadlock
      because the call is made from the rxmsg loop.  If it were to issue I/O
      synchronously we would deadlock and never process the reply.
  16. libdmsg - add safeties

    Matthew Dillon authored
    * Preinitialize return counters to 0 as a safety.  Not required for proper
  17. libdmsg - Fix buffer overrun

    Matthew Dillon authored
    * Large messages (generally large data payloads) could overrun the FIFO
      buffer.  e.g. dd if=/dev/xa<blah> of=/dev/null bs=32k
    * Fix by chunking up large payloads.
Commits on Feb 27, 2015
  1. Imre Vadász

    acpi_video(4): Fix detach panic.

    ivadasz authored
    * The "if ((adr & DOD_DEVID_MASK_FULL) == DOD_DEVID_LCD)" test from
      acpi_video_vo_init was missing in acpi_video_vo_destroy. This meant
      that on some machines we ended up calling STAILQ_REMOVE with an element
      not contained in the list, which causes a panic since STAILQ_REMOVE
      doesn't check for the end of the list.
  2. Markus Pfeiffer

    net/if_lagg: Fix double-free issue

    Markus Pfeiffer authored markuspf committed
Something went wrong with that request. Please try again.