Displaying 1 50 of 33,135 commits (0.075s)

DragonFlyBSD — lib/libc/sys utimensat.2 Makefile.inc, sys/kern vfs_syscalls.c syscalls.master

kernel - Add utimensat() support

* Brings in utimensat() from FreeBSD, adjusted for DragonFly system
  call mechanics.

Submitted-by: stateless #2818
Delta File
+252 -0 lib/libc/sys/utimensat.2
+84 -0 sys/kern/vfs_syscalls.c
+10 -0 sys/sys/sysproto.h
+6 -0 sys/sys/stat.h
+2 -1 sys/sys/syscall.h
+2 -1 sys/sys/syscall.mk
+7 -1 6 files not shown
+363 -3 12 files

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

drm/i915: Fix a __raw_i915_read32() definition

We don't have pci_iomap() yet so registers can't be properly mapped
in the Linux way.
Delta File
+1 -1 sys/dev/drm/i915/i915_irq.c
+1 -1 1 file

DragonFlyBSD — sys/dev/drm drm_irq.c, sys/dev/drm/include/linux kernel.h

drm: Put abs64 definition in the right place

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

drm/linux: Add a few smp_mb_xxx_atomic_inc() functions

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

linux/i2c.h: Properly define struct device
Delta File
+3 -0 sys/dev/drm/include/linux/i2c.h
+3 -0 1 file

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

drm/linux: Add TASK_COMM_LEN
Delta File
+2 -0 sys/dev/drm/include/linux/sched.h
+2 -0 1 file

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

drm/linux: Add mod_timer_pinned()
Delta File
+3 -1 sys/dev/drm/include/linux/timer.h
+3 -1 1 file

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

drm/linux: define destroy_timer_on_stack()
Delta File
+2 -0 sys/dev/drm/include/linux/timer.h
+2 -0 1 file

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

drm/linux: define ETIME
Delta File
+1 -0 sys/dev/drm/include/linux/errno.h
+1 -0 1 file

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

drm/linux: Implement DEFINE_MUTEX()
Delta File
+4 -0 sys/dev/drm/include/linux/mutex.h
+4 -0 1 file

DragonFlyBSD — sys/dev/drm/include/asm cacheflush.h, sys/dev/drm/include/linux highmem.h

drm/linux: Add set_pages_uc()

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

kernel - Change cpu_idle_hlt default

* Set cpu_idle_hlt default to 1 for Intel Haswell or later cpus.  These
  cpus do major power management in the HLT instruction.

  Leave cpu_idle_hlt default at 2 for AMD cpus or older Intel cpus.
  These cpus do not do major management in the HLT instruction and ACPI
  entry is required to reduce idle power consumption.
Delta File
+22 -2 sys/platform/pc64/x86_64/machdep.c
+22 -2 1 file

DragonFlyBSD — gnu/usr.bin/cc50/support-libs/libbacktrace Makefile

WORLD_CCVER: Fix buildworld with clangXX

The backtrace library requires unwind.h to build.  This file was never
created, so the base GCC's would fall back to the version in /usr/libdata.
Clang compilers from ports don't have unwind.h so they were failing on the
world build (building gcc50).  This modification makes unwind.h available
for backtrace.c and allows the build to complete with WORLD_CCVER=clang36

DragonFlyBSD — sys/vfs/hammer2 hammer2_cluster.c

hammer2 - Fix hammer2_cluster_load_async() issue

* Fix a hammer2_cluster_load_async() issue. Old code hardwired the cluster
  index to 0, but this might not be a validated chain.  Use cluster->focus
  instead.
Delta File
+2 -14 sys/vfs/hammer2/hammer2_cluster.c
+2 -14 1 file

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

drm: Improve mutex_lock_interruptible() again

It should really be interruptible by signals

Spotted-by: dillon
Delta File
+1 -1 sys/dev/drm/include/linux/mutex.h
+1 -1 1 file

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

drm/linux: Improve the implementation of mutex_lock_interruptible()
Delta File
+8 -1 sys/dev/drm/include/linux/mutex.h
+8 -1 1 file

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

drm/linux: Add get_page()
Delta File
+6 -0 sys/dev/drm/include/linux/mm.h
+6 -0 1 file

DragonFlyBSD — sbin/ipfw3 ipfw3.8

ipfw3.8: Some cleanup.
Delta File
+87 -60 sbin/ipfw3/ipfw3.8
+87 -60 1 file

DragonFlyBSD — sys/kern vfs_bio.c vfs_sync.c

kernel - Change bundirty() location in I/O sequence

* When doing a write BIO, do not bundirty() the buffer prior to issuing
  the vn_strategy().  Instead, bundirty() the buffer when the I/O
  is complete, primarily in bpdone().

  The I/O's data buffer is protected during the operation by vfs_busy_pages(),
  so related VM pages cannot be modified while the write is running.  And,
  of course, the buffer itself is locked exclusively for the duration of the
  opeartion.  Thus this change should NOT introduce any redirtying races.

* This change ensures that vp->v_rbdirty_tree remains non-empty until all
  related write I/Os have completed, removing a race condition for code
  which checks vp->v_rbdirty_tree to determine e.g. if a file requires
  synchronization or not.

  This race could cause problems because the system buffer flusher might
  be in the midst of flushing a buffer just as a filesystem decides to
  sync and starts checking vp->v_rbdirty_tree.

* This should theoretically fix a long-standing but difficult-to-reproduce
  bug in HAMMER1 where a backend flush occurs at an inopportune time.

DragonFlyBSD — sys/vfs/hammer2 hammer2_vfsops.c hammer2_flush.c

hammer2 - Per-PFS transaction management

* Replace the global transaction manager with a per-mount transaction
  manager.

* Each media volume's spmp (super-root pfs) also gets its own transaction
  manager.

* The Filesystem sync now flushes each PFS associated with the mount,
  and then flushes the super-root for the related physical volumes.

  When flushing the super-root, the flush stops at the PFS transition.

* Interactions on one mount point no longer stall other mount points on
  the same media.  This also means that freemap updates related to
  other mount points may occur while a flush is occuring on one of them.
  (might have broken recovery here, will fix in another pass).

* For now keep the syncer interlock vs new modifying operations to ensure
  a stable snapshot.

DragonFlyBSD — sys/vfs/hammer2 hammer2_syncthr.c hammer2_vfsops.c

hammer2 - per-node sync threads

* Change the per-pfs sync threads into per-node sync threads.  Each sync
  thread is responsible for synchronizing its particular node to the
  pfs-based cluster when its particular node is out-of-sync.

* Significant work to the cluster iteration code to fix numerous deadlocks.

* Call vclrisdirty() conditionally at end of flush.

* Do not call vclrisdirty() unconditionally in hammer2_vop_fsync().

* Misc cleanups.

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

drm/linux: Add seq_puts()

DragonFlyBSD — sys/vfs/hammer hammer_ondisk.c hammer_vfsops.c

hammer - limit certain diagnostics to 1/sec.

* Limit certain diagnostics that can degenerately print in huge volumes
  to the console to one per second.

DragonFlyBSD — lib/libc/sys pipe.2 Makefile.inc

pipe2 - Adjust manual page

* Add a description of pipe2 to the pipe manual page.

Taken-from: FreeBSD
Delta File
+40 -2 lib/libc/sys/pipe.2
+1 -0 lib/libc/sys/Makefile.inc
+41 -2 2 files

DragonFlyBSD — sys/kern vfs_syscalls.c

kernel - fix O_CLOEXEC race in open() and fhopen()

* Fix an O_CLOEXEC race where a fork/exec can race an
  open(...O_CLOEXEC) and improperly inherit the descriptor.
Delta File
+8 -8 sys/kern/vfs_syscalls.c
+8 -8 1 file

DragonFlyBSD — include unistd.h, lib/libc/sys Symbol.map

kernel, libc - add pipe2()

* Add the pipe2() system call.
Delta File
+10 -82 sys/kern/kern_descrip.c
+58 -0 lib/libc/x86_64/sys/pipe2.S
+25 -2 sys/kern/sys_pipe.c
+8 -0 sys/sys/sysproto.h
+5 -0 sys/sys/kern_syscall.h
+2 -1 sys/sys/syscall.mk
+13 -3 9 files not shown
+121 -88 15 files

DragonFlyBSD — sbin/usched usched.8

sbin/usched: Fix man usched(8)

- Add description on when cpumask has multiple bits set.

- e.g. When cpumask is 15 (0xF) then usched(8) first does
  usched_set(getpid(), USCHED_SET_CPU, 1, ...) for cpu#0 and then
  usched_set(getpid(), USCHED_ADD_CPU, x, ...) for cpu#1,2,3.

  # usched -d dfly:15 true
  DEBUG: USCHED_SET_SCHEDULER: scheduler: dfly
  DEBUG: USCHED_SET_CPU: cpuid: 0
  DEBUG: USCHED_ADD_CPU: cpuid: 1
  DEBUG: USCHED_ADD_CPU: cpuid: 2
  DEBUG: USCHED_ADD_CPU: cpuid: 3
Delta File
+10 -0 sbin/usched/usched.8
+10 -0 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

May 13, 2015 snapshot from http://pciids.sourceforge.net/
Delta File
+114 -23 share/misc/pci_vendors
+114 -23 1 file

DragonFlyBSD — sys/dev/drm/include/linux fb.h, sys/dev/drm/include/uapi_linux fb.h

drm/linux: Add uapi/linux/fb.h

DragonFlyBSD — sys/dev/misc/ecc ecc_e5.c

ecc/e5: Log error for critical ECC errors
Delta File
+3 -0 sys/dev/misc/ecc/ecc_e5.c
+3 -0 1 file

DragonFlyBSD — sys/dev/misc/ecc ecc_e5.c

ecc/e5: Remove unused fields
Delta File
+1 -6 sys/dev/misc/ecc/ecc_e5.c
+1 -6 1 file

DragonFlyBSD — sys/kern lwkt_thread.c, sys/platform/pc64/apic apic_vector.s

kernel - Fix cpu lockup on resume after entering the debugger

* Xcpustop was not testing ipending on resume.  Since Xcpustop STIs
  it is possible for it to receive further interrupts while stopped
  which can cause ipending to be set.

* Use doreti instead of doreti_iret.   doreti will test ipending,
  fpending, the per-cpu flags.

* Change the semantics to work more similarly to normal interrupt vectors.

* Note that dumping is still problematic.

DragonFlyBSD — sys/vfs/hammer2 hammer2_syncthr.c hammer2_cluster.c

hammer2 - slave sync work

* Break hammer2_cluster_resolve() into three passes, do a better job
  validating the elements of a cluster.

* Fix miscellaneous focus issues in the hammer2_cluster_*() API.

* Acquire required spinlock when doing certain base block array updates.

* Fix miscellaneous recursion bugs in the slave sync thread.

* Fix a panic case when writing embedded data in an inode.

DragonFlyBSD — sys/dev/agp agp_i810.c

drm - Add chip=161E8086

* Add chip for broadwell  m-5y70
Delta File
+1 -0 sys/dev/agp/agp_i810.c
+1 -0 1 file

DragonFlyBSD — sys/dev/drm/include/linux list.h swap.h

drm/linux: Add list_for_each_entry_continue()

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

drm: Update linux/list.h

Obtained-from: FreeBSD/OFED
Delta File
+72 -12 sys/dev/drm/include/linux/list.h
+72 -12 1 file

DragonFlyBSD — sbin/usched usched.c

sbin/usched: Make perror show pid/cpu#/scheduler

- Note that the caller's pid (or 0) is the only choice for pid currently.
Delta File
+14 -8 sbin/usched/usched.c
+14 -8 1 file

DragonFlyBSD — sbin/usched usched.c

sbin/usched: Use uint64_t for cpu#

- Use uint64_t for 64 cpus(mask) instead of unsigned long.
Delta File
+2 -2 sbin/usched/usched.c
+2 -2 1 file

DragonFlyBSD — lib/libc/sys usched_set.2

usched: Fix man usched_set(2)

- pid 0 is also allowed according to the current implementation.

- EINVAL is returned if
  'if (uap->pid != 0 && uap->pid != curthread->td_proc->p_pid)'.
Delta File
+9 -3 lib/libc/sys/usched_set.2
+9 -3 1 file

DragonFlyBSD — sbin/swapon swapon.c swapon.8

swapon - Implement encrypted swap

Implement crypting of the swap device.  When enabled in this manner
/dev/urandom is used to generate a 256-bit random key and the base device
is automatically cryptsetup and mapped, making crypted swap trivial.

* Implement the 'crypt' fstab option, so swapon -a and swapoff -a work
  as expected for crypted swap.  Again, the base device (e.g. /dev/da0s1b)
  should be specified.  The option will automatically map it with cryptsetup
  and swap on the mapping.

  Also implement -c to crypt manual swapon/swapoff commands.  If used for
  swapon it must also be used for swapoff.  Again, specify the base device
  (e.g. /dev/da0s1b), not the /dev/mapper device, for both cases.

* Implement the 'trim' fstab option, allow trim to be specified in the fstab
  instead of requiring a rc.conf option.

* The trim option no longer exits with an error if the device does not
  support TRIM or TRIM is not enabled.
Delta File
+130 -26 sbin/swapon/swapon.c
+32 -4 sbin/swapon/swapon.8
+162 -30 2 files

DragonFlyBSD — share/man/man9 sysctl_add_oid.9

sysctl_add_oid.9: Document the "IK" sysctl oid format.
Delta File
+3 -1 share/man/man9/sysctl_add_oid.9
+3 -1 1 file

DragonFlyBSD — share/man/man4 acpi_thermal.4, sys/dev/acpica acpi_thermal.c

kernel/acpi_thermal: Improve hw.acpi.thermal.polling_rate sysctl behaviour

* No longer allow setting hw.acpi.thermal.polling_rate to negative or to
  meaninglessly large values of more than 3600s.

* Wake up the acpi_tz_thread after changing hw.acpi.thermal.polling_rate,
  to wake it up when hw.acpi.thermal.polling_rate was set to 0 (i.e.
  disabled polling) or a very large value before.

DragonFlyBSD — sys/platform/pc64/acpica acpi_fadt.c

kernel/acpi_fadt: Allow FADT revision 6.

DragonFlyBSD — sys/contrib/dev/acpica changes.txt, sys/contrib/dev/acpica/generate/unix Makefile.config

Sync ACPICA with Intel's version 20150515.

General changes:

* Runtime argument checking and return value checking for all new
  ACPI 6.0 predefined names.

iasl(8) and other tools specific changes:

* Added support for all new ACPI 6.0 predefined names and tables and
  for changes to existing tables (FADT, MADT).

* Added a new directive to enable inclusion of binary objects into
  ASL code, #includebinary.

* Add support for all new ACPI 6.0 predefined names to acpihelp(8).

* Add new options -d (display iASL preprocessor directives) and
  -t (display all known/supported ACPI tables) to acpihelp(8).

For a more detailed list, please see sys/contrib/dev/acpica/changes.txt.

DragonFlyBSD — lib/libm/src e_log.c

libm: Add a missing closing comment (fixes -Wcomment).
Delta File
+1 -1 lib/libm/src/e_log.c
+1 -1 1 file

DragonFlyBSD — lib/libc/net Makefile.inc

libc: Make generation of nslexer.c more robust.

Quoting FreeBSD's r268620 commit msg:

Ensure that lex errors fail the build instead of being silently ignored
due to the piped call.  Also postpone the update of the nslexer.c file
until we are sure we have generated it properly.

[...]

In DragonFly, this issue was causing a buildworld to stall if certain
-W... warning options were added.

Taken-from: FreeBSD
Delta File
+5 -3 lib/libc/net/Makefile.inc
+5 -3 1 file

DragonFlyBSD — lib/libc/net Makefile.inc

libc: Make generation of nslexer.c more robust.

Quoting FreeBSD's r268620 commit msg:

Ensure that lex errors fail the build instead of being silently ignored
due to the piped call.  Also postpone the update of the nslexer.c file
until we are sure we have generated it properly.

[...]

In DragonFly, this issue was causing a buildworld to stall if certain
-W... warning options were added.

Taken-from: FreeBSD
Delta File
+5 -3 lib/libc/net/Makefile.inc
+5 -3 1 file

DragonFlyBSD — sys/kern kern_usched.c

usched: Add comments
Delta File
+3 -1 sys/kern/kern_usched.c
+3 -1 1 file

DragonFlyBSD — sys/dev/misc/ecc ecc_e3.c

ecc/e3: Hook up error correction counting into sensors framework.
Delta File
+241 -69 sys/dev/misc/ecc/ecc_e3.c
+241 -69 1 file

DragonFlyBSD — sys/dev/misc/dimm dimm.c dimm.h

dimm: Allow increasing internal ECC error counter, instead of setting