Displaying 1 50 of 40,585 commits (0.009s)

DragonFlyBSD — sys/conf files

kernel/drm: Actually enable -Werror.

When using compile-with, we have to specify this manually using the
${WERROR} variable which reacts to the NO_WERROR option.
Delta File
+242 -242 sys/conf/files
+242 -242 1 file

DragonFlyBSD — sys/platform/pc64/x86_64 exception.S

kernel: Remove some obsolete commented out code.
Delta File
+0 -10 sys/platform/pc64/x86_64/exception.S
+0 -10 1 file

DragonFlyBSD — share/mk sys.mk

kernel - Temporarily change WORLD_ALTCOMPILER default in master

* Temporarily change to 'all' to ensure that gcc50 gets built.
  Some ports appear to need libraries in /usr/lib/gcc50.

* Will be changed back to 'gcc47' once the ports issue is resolved.
Delta File
+8 -1 share/mk/sys.mk
+8 -1 1 file

DragonFlyBSD — include stdlib.h netdb.h, lib/libc/tre-regex regex.h

In several standard headers, harmonize checks for legacy defines etc.

When something goes away in a certain issue of the standard, always
check with < $standard, not <= $previous_standard. Also, uniformly
check for __XSI_VISIBLE or __POSIX_VISIBLE being > 0 in these cases.

While here, fix a small nit in <sys/wait.h>: wait3() was removed
from Issue 6, but the requirement to define the rusage structure was
removed from Issue 7.
Delta File
+4 -2 include/stdlib.h
+3 -3 include/netdb.h
+2 -2 include/unistd.h
+2 -2 include/stdio.h
+2 -2 include/strings.h
+3 -1 sys/sys/wait.h
+8 -8 8 files not shown
+24 -20 14 files

DragonFlyBSD — include glob.h

<glob.h>: GLOB_NOSYS was removed from Issue 7 of the standard.
Delta File
+4 -1 include/glob.h
+4 -1 1 file

DragonFlyBSD — . Makefile_upgrade.inc

Makefile_upgrade.inc: Handle some recently added files better.

<bus/pccard/cardinfo.h> is one of 4 headers that were removed in
3aef805084f3d031ffbf02b8a00333a755c4677c so add them all.

<linux/linux_input.h> was never in our tree, so it is outside of
Makefile_upgrade.inc's scope.
Delta File
+4 -6 Makefile_upgrade.inc
+4 -6 1 file

DragonFlyBSD — sys/sys endian.h

<sys/endian.h>: Use basic integer types.

We might at some point stop including <sys/types.h> too, in favor of
<machine/stdint.h>, but I first need to test which ports assume that
<sys/types.h> comes in with <sys/endian.h>.
Delta File
+38 -38 sys/sys/endian.h
+38 -38 1 file

DragonFlyBSD — include fnmatch.h

<fnmatch.h>: FNM_NOSYS was removed from Issue 7 of the standard.
Delta File
+1 -2 include/fnmatch.h
+1 -2 1 file

DragonFlyBSD — sys/kern kern_intr.c

kernel - Fix early boot interrupt race

* Fix a null pointer dereference panic due to an interrupt
  race during early boot.  Interrupts are enabled before
  intr_block is allocated, so intr_block can be NULL.

* Refactor the kmalloc() for intr_block to only allocate the
  space needed for ncpus.
Delta File
+7 -3 sys/kern/kern_intr.c
+7 -3 1 file

DragonFlyBSD — sys/conf files, sys/dev/drm drm_sysfs.c

drm/ttm: Use Linux kobjects

* Reducing differences with Linux

* Changes based on Linux commit ecff665f5e3f1c6909353e00b9420e45ae23d995
  "drm/ttm: make ttm reservation calls behave like reservation calls"

DragonFlyBSD — sys/conf files, sys/dev/drm linux_kobject.c

drm/linux: Implement more kobject parts

DragonFlyBSD — sys/kern uipc_usrreq.c

kernel - Bump sysctl default limits for unix domain sockets

* Bump all default limits for unix domain sockets to 65536.
  In particular, this increases limits for datagrams from absurdly
  small values (2048 byte packet size limit).

* Fixes wpa_supplicant (reported by ivadasz).

* Requires further testing.
Delta File
+6 -3 sys/kern/uipc_usrreq.c
+6 -3 1 file

DragonFlyBSD — sys/kern uipc_usrreq.c

kernel - Introduce separate sysctls for seqpacket limits

* Add net.local.seqpacket.maxseqpacket, previously used the same
  default as net.local.stream.sendspace.

* Add net.local.seqpacket.recvspace, previously used the same
  default as net.local.stream.recvspace.

* Default is 57344 bytes (unchanged from before)

Taken-from: FreeBSD
Delta File
+19 -9 sys/kern/uipc_usrreq.c
+19 -9 1 file

DragonFlyBSD — sys/dev/serial/sio sio.c

kernel - Fix sio lockup

* Fix crit-v-com_lock order.  Critical sections must be entered before
  com_lock, and exited after com_unlock.  This fixes an issue where
  crit_exit() was executing complex code with com_lock still held,
  potentially deadlocking against sio when processing pending interrupts.
Delta File
+7 -6 sys/dev/serial/sio/sio.c
+7 -6 1 file

DragonFlyBSD — sys/dev/drm/ttm ttm_bo_util.c ttm_page_alloc.c

drm/ttm: Use Linux memory management functions

Reducing differences with the Linux code base.

DragonFlyBSD — sys/sys semaphore.h

<sys/semaphore.h>: Move the include guard check below the copyright.
Delta File
+5 -5 sys/sys/semaphore.h
+5 -5 1 file

DragonFlyBSD — share/misc pci_vendors

Update the pciconf(8) database.

September 12, 2018 snapshot from https://pci-ids.ucw.cz
Delta File
+120 -17 share/misc/pci_vendors
+120 -17 1 file

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

drm/linux: Increase coverage of the page protection APIs

DragonFlyBSD — sys/dev/drm linux_vmalloc.c, sys/dev/drm/include/asm page.h

drm/linux: use pgprot_t

DragonFlyBSD — . COPYRIGHT

build - Remove cvs tags from COPYRIGHT

* Remove cvs tags from COPYRIGHT.  An manual install will print the
  content of the COPYRIGHT file during boot, there's no need to display
  an old $FreeBSD tag.
Delta File
+0 -3 COPYRIGHT
+0 -3 1 file

DragonFlyBSD — etc newsyslog.conf

newsyslog.conf: Fix an age old typo that caused weekly.log to rotate wrongly.

weekly.log's rotation isn't triggered by size.
Delta File
+1 -1 etc/newsyslog.conf
+1 -1 1 file

DragonFlyBSD — etc newsyslog.conf

newsyslog.conf: Fix an age old typo that caused weekly.log to rotate wrongly.

weekly.log's rotation isn't triggered by size.
Delta File
+1 -1 etc/newsyslog.conf
+1 -1 1 file

DragonFlyBSD — sys/dev/raid/mpr mpr_sas.c, sys/kern kern_kthread.c

kernel: Add some missing __printflike()s.

DragonFlyBSD — sys/netinet in.c

kernel: More adjustments to fix -Wint-in-bool-context warnings.
Delta File
+5 -5 sys/netinet/in.c
+5 -5 1 file

DragonFlyBSD — sys/dev/drm drm_bufs.c drm_scatter.c, sys/dev/drm/i915 i915_gem.c

drm: Sync drm/drmP.h with Linux 4.7.10

Remove most generic kernel includes, in order to avoid Linux/DragonFly
keyword clashes as much as possible in the future.

DragonFlyBSD — sys/dev/drm/include/asm pgalloc.h, sys/dev/drm/include/linux file.h major.h

drm: Add more Linux include files

DragonFlyBSD — sys/conf files, sys/dev/drm kconfig.h

drm: Use a dedicated .h file for configuration options

With-advice-from: swildner

DragonFlyBSD — share/misc bsd-family-tree

bsd-family-tree: add NetBSD 7.2

Also correct the origin of NetBSD 8.0, which was not derived from 7.x.

Obtained from:        NetBSD
Delta File
+5 -3 share/misc/bsd-family-tree
+5 -3 1 file

DragonFlyBSD — sys/dev/netif/ix ixgbe_api.c ixgbe_api.h, sys/netinet in.c

kernel: Fix some -Wint-in-bool-context warnings.

I.e., stop treating integers like booleans. In ix(4) I commented out
a problematic function that returns bool but tries to return -1 if
there was an error.

DragonFlyBSD — sys/vfs/nfs nfs_srvcache.c nfs_node.c

nfs - Avoid memory leakage when unloading the nfs module.

* This adds some missing objcache_destroy and hashdestroy calls in the nfs
  module unload codepath.

DragonFlyBSD — sys/conf kern.pre.mk kmod.mk

kernel/gcc80: Add -Werror to the kernel and module builds.
Delta File
+1 -1 sys/conf/kern.pre.mk
+1 -1 sys/conf/kmod.mk
+2 -2 2 files

DragonFlyBSD — sys/kern kern_clock.c

kernel - Avoid a race between dfly_schedulerclock and usched_dfly_cpu_init.

* This race was repeatedly occuring during startup, running with multiple
  virtual cpu cores in qemu (using TCG emulation on a DragonFly host).
Delta File
+25 -3 sys/kern/kern_clock.c
+25 -3 1 file

DragonFlyBSD — nrelease Makefile

nrelease/Makefile: Use net/isc-dhcp44-server
Delta File
+1 -1 nrelease/Makefile
+1 -1 1 file

DragonFlyBSD — gnu/usr.bin Makefile.cco

gcc80: Fix manual page links for the primary compiler.

Taken-from: zrj
Delta File
+1 -1 gnu/usr.bin/Makefile.cco
+1 -1 1 file

DragonFlyBSD — gnu/lib Makefile, gnu/usr.bin Makefile

gcc80: Clean up two Makefiles a bit (no functional change).

Based-on: zrj's work
Delta File
+3 -10 gnu/usr.bin/Makefile
+1 -10 gnu/lib/Makefile
+4 -20 2 files

DragonFlyBSD — etc/defaults compilers.conf make.conf, gnu/usr.bin/cc80/drivers/c++ Makefile

More gcc80 adjustments.

Nothing spectacular.

Taken-from: zrj

DragonFlyBSD — sys/kern vfs_vm.c

kernel: unbreak buildkernel
Delta File
+1 -1 sys/kern/vfs_vm.c
+1 -1 1 file

DragonFlyBSD — sys/kern vfs_vm.c

kernel: unbreak buildkernel
Delta File
+1 -1 sys/kern/vfs_vm.c
+1 -1 1 file

DragonFlyBSD — lib/libpam/libpam Makefile, share/mk bsd.sys.mk

gcc80: Enable -Werror for gcc80. Temporarily lower libpam's WARNS to 2.

The Resedacea upgrade introduced a warning which I'll fix later.

DragonFlyBSD — sys/kern vfs_vm.c

kernel - Fix missing brelse() in error path

* Fix missing brelse() in nvtruncbuf() in error path

Reported-by: myu
Delta File
+5 -0 sys/kern/vfs_vm.c
+5 -0 1 file

DragonFlyBSD — sys/kern vfs_vm.c

kernel - Fix missing brelse() in error path

* Fix missing brelse() in nvtruncbuf() in error path

Reported-by: myu
Delta File
+5 -0 sys/kern/vfs_vm.c
+5 -0 1 file

DragonFlyBSD — . Makefile.inc1, gnu/lib Makefile

World - Change default compiler from gcc-5 to gcc-8

* Change the default compiler from gcc-5 to gcc-8.
  gcc-5 will no longer be built by default.  Setting
  WORLD_ALTCOMPILER=all will build all three as before.

* Create CC hardlink for gcc80 so dports picks it up.
  gcc80 is now the default for dports instead of 50.

* Adjust the Makefile's to make things easier the next time,
  though they could still use more work.

DragonFlyBSD — usr.bin/dfregress userland.c

dfregress(8): Use mkostemp() instead of mktemp() to fix some warnings.
Delta File
+6 -25 usr.bin/dfregress/userland.c
+6 -25 1 file

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

drm/linux: Rewrite READ_ONCE() and WRITE_ONCE()

These macros were broken when used with some complex types like
pointers to pointers.
Delta File
+78 -14 sys/dev/drm/include/linux/compiler.h
+78 -14 1 file

DragonFlyBSD — sys/net/tun if_tun.c

if_tun: Disallow to destroy an opened device

When a tun device (created via 'ifconfig') is opened, disallow to destroy
it (e.g., ifconfig destroy).  Otherwise, a panic occurs when the caller
closes the device, since it has been already destroyed.

Following the previous fix to if_tap.
Delta File
+8 -2 sys/net/tun/if_tun.c
+8 -2 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Disallow to destroy an opened device

When a tap device (created via 'ifconfig') is opened, disallow to destroy
it (e.g., ifconfig destroy).  Otherwise, a panic occurs when the caller
closes the device, since it has been already destroyed.

Test case:
[A]% ifconfig tap0 create
[B]% # run a program that opens '/dev/tap0' and keep it running
[A]% ifconfig tap0 destroy
[B]% # exit the program which will then close '/dev/tap0'
=> panic!

In addition:
* Add an assertion to tapclose() to assert the device must exist.
* Return EINVAL instead of ENOIX when try to destroy an manually created
  tap device.
Delta File
+9 -3 sys/net/tap/if_tap.c
+9 -3 1 file

DragonFlyBSD — sys/net/tap if_tap.c

if_tap: Disallow to destroy an opened device

When a tap device (created via 'ifconfig') is opened, disallow to destroy
it (e.g., ifconfig destroy).  Otherwise, a panic occurs when the caller
closes the device, since it has been already destroyed.

Test case:
[A]% ifconfig tap0 create
[B]% # run a program that opens '/dev/tap0' and keep it running
[A]% ifconfig tap0 destroy
[B]% # exit the program which will then close '/dev/tap0'
=> panic!

In addition:
* Add an assertion to tapclose() to assert the device must exist.
* Return EINVAL instead of ENOIX when try to destroy an manually created
  tap device.
* Improve the function description a bit.
Delta File
+14 -19 sys/net/tap/if_tap.c
+14 -19 1 file

DragonFlyBSD — sys/kern kern_lock.c

kernel - Fix a third missing wakeup() in kern_lock.c

* Fix a case where an lockmgr LK_EXCLUSIVE call with a
  timeout blocks due to existing shared locks.  If the
  timeout occurs, the exclusive lock request is backed out.

  However, if any new shared locks are attempted while
  the EXREQ was pending (due to the exclusive priority
  mechanism), those threads will block.  The backout code
  was not waking the blocked threads up for this situation.

* Fixed by issuing the wakeup() unconditionally for this
  case.  This is not a heavily traveled code path as locks
  with timeouts rarely reach the actual timeout.
Delta File
+6 -2 sys/kern/kern_lock.c
+6 -2 1 file

DragonFlyBSD — sys/platform/vkernel64/include smp.h

vkernel64 - Fix build

* Add missing CPUID_TO_APICID() macro which vm_page.c now needs.

Reminded-by: swildner

DragonFlyBSD — sys/gnu/dev/misc/apple_gmux apple-gmux.c

kernel/apple_gmux: Unbreak loading i915.

* Commit 183e2373896e4ea605435a6bd8f943e8273bf8cd broke loading i915
  on Apple MacBookPro laptops with dual GPUs and the gmux chip. The
  reason is that whereas formely drm_init_pdev() and drm_fill_pdev()
  where mere bookkeeping routines, the above commit relocates
  assignment of irq from drm_drv.c:drm_attach() to drm_fill_pdev().
  Since apple_gmux is loaded before i915, and apple_gmux initializes
  a pdev structure including an irq for the graphics pci device, the
  i915 which is loaded afterwards will get zero for an irq and hence
  fails to attach.

* The temporary fix is to disable apple_gmux initializing a pci_dev
  structure for bookkeeping purposes. This is not needed at the
  moment since the primary purpose of apple_gmux is to switch to iGPU
  so the user is not left with a frozen screen after loading i915. We
  do not support switching between GPUs yet.

* When and if the initialization of graphics pci devices becomes
  independent from the drm subsystem, we can make apple_gmux aware of
  the various GPUs in the system.