Displaying 1 50 of 32,557 commits (0.056s)

DragonFlyBSD — libexec/dma README.DRAGONFLY mail.c

dma(8): Sync with upstream (22 SEP 2014)

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

DragonFlyBSD — sbin/dmesg dmesg.c dmesg.8

dmesg - Add -n dumpnr option

* 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.
Delta File
+7 -1 sbin/dmesg/dmesg.c
+3 -0 sbin/dmesg/dmesg.8
+10 -1 2 files

DragonFlyBSD — sys/vfs/hammer2 hammer2_io.c

hammer2 - Fix DIO_INPROG race.

* 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.
Delta File
+11 -1 sys/vfs/hammer2/hammer2_io.c
+11 -1 1 file

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

xdisk - Flesh out support

* Add libdevstat support so 'xa' devices can report meaningful
  data in systat -vm.

* Add sysctls to track active requests.
Delta File
+45 -7 sys/dev/disk/xdisk/xdisk.c
+45 -7 1 file

DragonFlyBSD — sys/kern kern_dmsg.c subr_diskiocom.c, sys/sys dmsg.h

kernel - work on dmsg disk exports

* 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.
Delta File
+137 -98 sys/kern/kern_dmsg.c
+13 -4 sys/kern/subr_diskiocom.c
+3 -1 sys/sys/dmsg.h
+153 -103 3 files

DragonFlyBSD — lib/libdevstat devstat.c

libdevstat - add "xa"

* Add a match line for "xa" (xdisk) devices.
Delta File
+1 -0 lib/libdevstat/devstat.c
+1 -0 1 file

DragonFlyBSD — lib/libdmsg msg.c

libdmsg - Fix incomplete write bug

* 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.
Delta File
+118 -12 lib/libdmsg/msg.c
+118 -12 1 file

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

Revert "drm/i915: Sync i915_gem_pwrite_ioctl() with Linux 3.11"

This reverts commit 005b6ef6b6adc0554079d13443c56f48766e8afc.

It breaks Ironlake.
Delta File
+64 -48 sys/dev/drm/i915/i915_gem.c
+64 -48 1 file

DragonFlyBSD — contrib/libedit README.DRAGONFLY, contrib/libedit/src eln.c el.c

libedit: Add bapt patches to improve unicode

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!

DragonFlyBSD — sys/conf files, sys/dev/drm/radeon radeon_atpx_handler.c Makefile

kernel/radeon: Remove an unused GPLv2 only file.

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

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c i915_trace.h

drm/i915: Sync i915_gem_pwrite_ioctl() with Linux 3.11

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

drm/i915: i915_gem_pager_fault() is i915_gem_fault()

DragonFlyBSD — sys/dev/drm/i915 i915_drv.h, sys/dev/drm/include/linux io-mapping.h

drm: Implement linux/io-mapping.h

DragonFlyBSD — sys/sys signalvar.h systm.h

kernel: Mark sigexit() and cpu_halt() as not returning.
Delta File
+1 -1 sys/sys/signalvar.h
+1 -1 sys/sys/systm.h
+2 -2 2 files

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

    sbin/hammer: Don't show FLAG_BADMIRRORTID for root node in certain corner case 
    - 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 
                     tids 0000000100000001:0000000000000000
    B-----M        ELM  1 R lo=00000002 obj=0000000000000001 rt=15 key=0000000000000000 
                     tids 0000000100000001:0000000000000000

    [2 lines not shown]

DragonFlyBSD — sys/netinet6 pim6_var.h ip6_mroute.h

kernel/netinet6: Remove some bogus checks for KERNEL (use just _KERNEL).

DragonFlyBSD — sys/bus/cam/scsi scsi_all.c

kernel/scsi: Fix sense information printing in bootverbose.
Delta File
+1 -1 sys/bus/cam/scsi/scsi_all.c
+1 -1 1 file

DragonFlyBSD — sys/bus/cam/scsi scsi_all.c

kernel/scsi: Fix sense information printing in bootverbose.
Delta File
+1 -1 sys/bus/cam/scsi/scsi_all.c
+1 -1 1 file

DragonFlyBSD — sbin/hammer2 main.c

hammer2 - Add extra debugging

* Enable DMsgDebugOpt if -d is specified twice.
Delta File
+2 -0 sbin/hammer2/main.c
+2 -0 1 file

DragonFlyBSD — lib/libdmsg msg.c

libdmsg - Fix memory leak

* 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.
Delta File
+22 -6 lib/libdmsg/msg.c
+22 -6 1 file

DragonFlyBSD — sys/kern kern_dmsg.c subr_diskiocom.c, sys/sys dmsg.h

hammer2 / kern_dmsg - Fix bugs

* 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.

DragonFlyBSD — lib/libdmsg msg.c crypto.c

libdmsg - Fix buffer indexing bug in crypted path

* Fix a buffering index bug in the crypted path which causes a buffer
  overrun and/or implodes the connection on a protocol error.
Delta File
+14 -5 lib/libdmsg/msg.c
+7 -2 lib/libdmsg/crypto.c
+21 -7 2 files

DragonFlyBSD — . Makefile_upgrade.inc, sys/kern kern_synch.c

kernel: Remove unused xwait headers.

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: <https://bugs.dragonflybsd.org/issues/2786>

DragonFlyBSD — sys/kern kern_synch.c, sys/sys proc.h

kernel: Remove unused hogticks global from kern_synch.c.

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: <https://bugs.dragonflybsd.org/issues/2787>
Delta File
+0 -4 sys/kern/kern_synch.c
+0 -1 sys/sys/proc.h
+0 -5 2 files

DragonFlyBSD — sys/dev/drm/i915 i915_gem.c i915_trace.h

drm/i915: Sync i915_gem.c with Linux 3.11

* 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

DragonFlyBSD — sys/dev/drm/include/asm uaccess.h

drm: Add asm/uaccess.h functions

* __copy_to_user() and __copy_from_user(), obtained from OpenBSD

* __copy_to_user_inatomic() and __copy_from_user_inatomic_nocache(),
  obtained from FreeBSD
Delta File
+36 -0 sys/dev/drm/include/asm/uaccess.h
+36 -0 1 file

DragonFlyBSD — sys/dev/drm/include/drm drm_memory.h drmP.h

drm: Import drm_memory.h from Linux 3.11

DragonFlyBSD — sys/dev/drm drm_cache.c, sys/dev/drm/drm Makefile

drm: Add drm_clflush_virt_range()

Obtained-from: Linux 3.11

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

drm: linux/mm.h: Add offset_in_page()

Obtained-from: OpenBSD
Delta File
+2 -0 sys/dev/drm/include/linux/mm.h
+2 -0 1 file

DragonFlyBSD — sys/dev/disk/xdisk xdisk.c, sys/kern subr_diskiocom.c

xdisk - disk_setdiskinfo() must be assynchronous

* 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.

DragonFlyBSD — lib/libdmsg crypto.c

libdmsg - add safeties

* Preinitialize return counters to 0 as a safety.  Not required for proper
Delta File
+2 -0 lib/libdmsg/crypto.c
+2 -0 1 file

DragonFlyBSD — lib/libdmsg msg.c

libdmsg - Fix buffer overrun

* 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.
Delta File
+17 -6 lib/libdmsg/msg.c
+17 -6 1 file

DragonFlyBSD — sys/dev/acpica/acpi_video acpi_video.c

acpi_video(4): Fix detach panic.

* 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.

DragonFlyBSD — sbin/hammer cmd_show.c

sbin/hammer: Rename static function print_elm_flags() to get_elm_flags()

- print_elm_flags() doesn't print anything.
Delta File
+4 -4 sbin/hammer/cmd_show.c
+4 -4 1 file

DragonFlyBSD — contrib/gcc-5.0 LAST_UPDATED, contrib/gcc-5.0/gcc ipa-icf.c lto-streamer-in.c

Merge branch 'vendor/GCC50'
∈ John Marino - 224ceb26 - 2015-02-27 08:01:52
Update gcc-50 to SVN version 221044

Last Changed Date: 2015-02-27 09:37:51 +0100 (Fri, 27 Feb 2015)

DragonFlyBSD — contrib/gcc-5.0 README.DRAGONFLY, gnu/usr.bin/cc50 Makefile.version

gcc50: Update to 27 Feb 2015 snapshot (SVN 221044)

DragonFlyBSD — sys/net/lagg if_lagg.c

net/if_lagg: Fix double-free issue
Delta File
+3 -3 sys/net/lagg/if_lagg.c
+3 -3 1 file

DragonFlyBSD — . Makefile_upgrade.inc, etc/mtree BSD.usr.dist

Nuke /usr/share/examples/cvsup.

Now that i386 is no longer supported we can't even run an old FreeBSD
cvsup binary anymore, so all this has become completely pointless.

FreeBSD has since switched to SVN, NetBSD's repository can be
rsync'ed, about OpenBSD I am not sure though. There are git repos
of various BSDs too.

DragonFlyBSD — sys/net/lagg if_lagg.c

netif/if_lagg: Fix panic on MOD_UNLOAD

Remove one instance of if_clone_detach being called.

Reported-By: bycn82 <bycn82 at gmail.com>
Delta File
+0 -1 sys/net/lagg/if_lagg.c
+0 -1 1 file

DragonFlyBSD — sys/dev/acpica acpi_cpu_pstate.c

acpi/pstate: Allow user to force package level P-state domain

Some CPUs only have package P-states, but some BIOSes put each
hyperthread to its own P-state domain; allow user to override.
It is not enabled by default.
Delta File
+53 -1 sys/dev/acpica/acpi_cpu_pstate.c
+53 -1 1 file

DragonFlyBSD — sbin/newfs_hammer newfs_hammer.c

sbin/newfs_hammer: Properly set ondisk localization value

- Make hammer_newfs properly set ondisk localization for the first
  two elements (for root inode and PFS) of the root node.

- HAMMER does cursor lookup using sum of onmemory ip(inode) localization
  and localization type, so in this case hammer_newfs needs to write
  ondisk bits using (HAMMER_DEF_LOCALIZATION + type) instead of just
  a type (see hammer_get_inode() and hammer_load_pseudofs() for details).

- It makes no binary difference since HAMMER_DEF_LOCALIZATION is 0,
  however it should be fixed for the consistency (e.g. if the macro
  happens to be defined differently, although it is not likely as it
  forces ondisk layout change).
Delta File
+4 -2 sbin/newfs_hammer/newfs_hammer.c
+4 -2 1 file

DragonFlyBSD — sys/vfs/hammer hammer_inode.c hammer_btree.h

sys/vfs/hammer: Fix and add comments on root inode

- hunk1 - The root inode uses HAMMER_DEF_LOCALIZATION for its
  onmemory ip(inode) localization, however the purpose of this macro
  is not documented anywhere. Make it clear by adding this comment.

- hunk2 - Show HAMMER_OBJID_ROOT is the root inode # for both real
  root inode and PFS root inodes.

- hunk3-4 - Change "stored in the root inode" to "associated with
  the root inode". PFS records are not embedded within the ondisk
  inode structure, but associated with the root inode by id.
  Commit ea434b6f uses "associated with" in its commit message.

DragonFlyBSD — sbin/devd Makefile, share/mk sys.mk

    devd(8): Add -Wno-unused-local-typedefs to CFLAGS for now.
    The issue is that with -Wunused-local-typedefs, our GCC 5.0 warns about
    unused local typedefs in its own headers, in this case stl_algo.h which
    comes in via <algorithm>, which devd(8) includes.
    c++ [...] -Werror -Wall [...] -c devd.cc
    In file included from /usr/include/c++/5.0/bits/stl_algo.h:61:0,
                     from /usr/include/c++/5.0/algorithm:62,
                     from devd.cc:93:
    /usr/include/c++/5.0/bits/stl_heap.h: In function 'void std::pop_heap(_RAIter, 
    /usr/include/c++/5.0/bits/stl_heap.h:266:2: error: typedef '_ValueType' locally 
defined but not used [-Werror=unused-local-typedefs]
    More typedefs are warned about, _InputValueType, _OutputValueType, and
Delta File
+6 -0 sbin/devd/Makefile
+0 -6 share/mk/sys.mk
+6 -6 2 files

DragonFlyBSD — contrib/bmake bmake.1

bmake.1: Add missing newline.
Delta File
+2 -1 contrib/bmake/bmake.1
+2 -1 1 file

DragonFlyBSD — share/mk sys.mk

Fix 'make upgrade'.

Seems sys.mk is pulled in for 'make upgrade' too and CCVER isn't defined
at this point.

Reported-by: Robin Hahling <robin.hahling at gw-computing.net>
Delta File
+1 -1 share/mk/sys.mk
+1 -1 1 file

DragonFlyBSD — sys/dev/powermng/coretemp coretemp.c

coretemp(4): Add MODULE_VERSION.

DragonFlyBSD — sys/vfs/hammer hammer_ioctl.h

sys/vfs/hammer: conform to style(9)

- Remove #include <sys/types.h>

- Kernel include files (i.e. sys/*.h) come first;
  normally, include <sys/types.h> OR <sys/param.h>, but not both.

- Spotted-by: sephe
Delta File
+1 -2 sys/vfs/hammer/hammer_ioctl.h
+1 -2 1 file

DragonFlyBSD — sbin/devd Makefile

devd(8): Raise WARNS back to 5.
Delta File
+1 -1 sbin/devd/Makefile
+1 -1 1 file

DragonFlyBSD — share/mk sys.mk

gcc50: Exclude -Wunused-local-typedefs from C++ flags for now.

At least GCC 5.0 is warning on its own C++ includes (stl_algo.h,
via <algorithm>) if -Wextra is set, breaking the build of programs
which do nothing wrong themselves (such as devd(8)).

When this gets fixed, we can revert this commit again.

Note that I didn't check with GCC 4.8 or 4.9.
Delta File
+6 -0 share/mk/sys.mk
+6 -0 1 file

DragonFlyBSD — sys/netinet udp_usrreq.c

udp: Disable direct detach only if multicast options are to be set.
Delta File
+1 -1 sys/netinet/udp_usrreq.c
+1 -1 1 file