dragonfly.git
5 years agoVOP_FSYNC.9: Missing comma
Sascha Wildner [Fri, 10 Oct 2014 14:53:31 +0000 (16:53 +0200)]
VOP_FSYNC.9: Missing comma

5 years agomanpages: Fix a couple things left behind on the previous commit
Antonio Huete Jimenez [Fri, 10 Oct 2014 10:15:05 +0000 (12:15 +0200)]
manpages: Fix a couple things left behind on the previous commit

5 years agotools - Fix backup file permissions for hammer-backup.sh
Antonio Huete Jimenez [Fri, 10 Oct 2014 09:45:21 +0000 (11:45 +0200)]
tools - Fix backup file permissions for hammer-backup.sh

- Make sure backup files are only readable by root
- Fix typo in a comment
- Set /usr/sbin as the default installation directory

5 years agomanpages - Bring VOP_ACCESS(9) up to date
Antonio Huete Jimenez [Wed, 8 Oct 2014 20:36:24 +0000 (22:36 +0200)]
manpages - Bring VOP_ACCESS(9) up to date

5 years agomanpages - Bring VOP_FSYNC(9) up to date
Antonio Huete Jimenez [Wed, 8 Oct 2014 20:27:47 +0000 (22:27 +0200)]
manpages - Bring VOP_FSYNC(9) up to date

5 years agoSync snapshots tools with pkgbox64's current.
Sascha Wildner [Fri, 10 Oct 2014 07:44:46 +0000 (09:44 +0200)]
Sync snapshots tools with pkgbox64's current.

5 years agoImprove frequency scaling-related manual pages
Matteo Cypriani [Wed, 8 Oct 2014 21:01:58 +0000 (17:01 -0400)]
Improve frequency scaling-related manual pages

Cross-reference powerd(8), est(4) and powernow(4); state that powerd
should be the preferred option.
Enforce the "new sentence on a new line" rule.

5 years agokernel/acpica: Stop being prepared for using ACPICA's local cache.
Sascha Wildner [Thu, 9 Oct 2014 11:19:37 +0000 (13:19 +0200)]
kernel/acpica: Stop being prepared for using ACPICA's local cache.

We provide our own objcache(9) based one for some time now.

5 years agokernel/acpica: Don't use ACPICA's own versions of various POSIX functions.
Sascha Wildner [Thu, 9 Oct 2014 08:29:44 +0000 (10:29 +0200)]
kernel/acpica: Don't use ACPICA's own versions of various POSIX functions.

This removes the need to compile utclib.c into the kernel, so remove it
from the list.

5 years agokernel/libkern: Add strncat() to libkern.
Sascha Wildner [Thu, 9 Oct 2014 10:24:10 +0000 (12:24 +0200)]
kernel/libkern: Add strncat() to libkern.

In preparation for switching ACPI over to using various of our
kernel functions instead of its own versions.

Taken from libc.

5 years agosys/conf/files: Sort ACPI alphabetically.
Sascha Wildner [Thu, 9 Oct 2014 07:55:21 +0000 (09:55 +0200)]
sys/conf/files: Sort ACPI alphabetically.

5 years agoinstaller: Create an initial initrd unconditionally.
Sascha Wildner [Thu, 9 Oct 2014 06:42:10 +0000 (08:42 +0200)]
installer: Create an initial initrd unconditionally.

Now that the mkinitrd has been detached from installworld, the rescue
image is no longer part of the ISOs/IMGs, so we have to always create
one during installation, not just for encrypted setup.

5 years agoinstaller: Save the installation log as the last step.
Sascha Wildner [Thu, 9 Oct 2014 06:34:57 +0000 (08:34 +0200)]
installer: Save the installation log as the last step.

5 years agotools: Add some missing includes.
Sascha Wildner [Thu, 9 Oct 2014 06:32:30 +0000 (08:32 +0200)]
tools: Add some missing includes.

5 years agosed(1): add -r option for compatibility with GNU sed.
Robin Hahling [Tue, 7 Oct 2014 20:00:43 +0000 (22:00 +0200)]
sed(1): add -r option for compatibility with GNU sed.

-r option is exactly the same option as -E

5 years agokernel/smbfs: Tabify a few lines.
Sascha Wildner [Sun, 5 Oct 2014 11:58:01 +0000 (13:58 +0200)]
kernel/smbfs: Tabify a few lines.

5 years agokernel: Remove some dead code.
Sascha Wildner [Sun, 5 Oct 2014 11:55:45 +0000 (13:55 +0200)]
kernel: Remove some dead code.

While here, also remove an unnecessary NULL check in smbfs (M_WAITOK is used)
and use M_ZERO instead of an explicit bzero().

Submitted-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
5 years agokernel/slaballoc: Remove redundant if().
Sascha Wildner [Sat, 4 Oct 2014 11:18:49 +0000 (13:18 +0200)]
kernel/slaballoc: Remove redundant if().

Found-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
5 years agodrm: Add Linux PCI headers
François Tigeot [Sat, 4 Oct 2014 07:45:33 +0000 (09:45 +0200)]
drm: Add Linux PCI headers

5 years agoudp: Add assertion for preconditions for direct detach
Sepherosa Ziehau [Fri, 3 Oct 2014 14:08:08 +0000 (22:08 +0800)]
udp: Add assertion for preconditions for direct detach

5 years agoudp: Add NOTINHASH assertion to udp_inswildcardhash()
Sepherosa Ziehau [Fri, 3 Oct 2014 12:44:12 +0000 (20:44 +0800)]
udp: Add NOTINHASH assertion to udp_inswildcardhash()

So that we could catch programming bugs earlier.

5 years agoinpcb: Factor out ASSERT_INP_NOTINHASH
Sepherosa Ziehau [Fri, 3 Oct 2014 12:42:02 +0000 (20:42 +0800)]
inpcb: Factor out ASSERT_INP_NOTINHASH

5 years agoudp: Use ncpus2 instead of ncpus, since udp uses ncpus2 netisrs
Sepherosa Ziehau [Fri, 3 Oct 2014 12:29:52 +0000 (20:29 +0800)]
udp: Use ncpus2 instead of ncpus, since udp uses ncpus2 netisrs

There is actually no functional change.

5 years agoinpcb: Factor out in_pcbresetroute()
Sepherosa Ziehau [Fri, 3 Oct 2014 12:24:28 +0000 (20:24 +0800)]
inpcb: Factor out in_pcbresetroute()

5 years agodrm/i915: Simplify the flush code
François Tigeot [Fri, 3 Oct 2014 09:20:58 +0000 (11:20 +0200)]
drm/i915: Simplify the flush code

Reduce differences with Linux 3.8.13

5 years agonet: some LINTing after if_lagg import
Markus Pfeiffer [Tue, 30 Sep 2014 09:17:14 +0000 (09:17 +0000)]
net: some LINTing after if_lagg import

* remove duplicate from include/Makefile
* sort mtree alphabetically
* update ifmedia(4) manpage to reflect updates to if_media.h

Reported-By: Sascha Wildner <swildner@online.de>
5 years agoBump __DragonFly_version for i915 hw context support
François Tigeot [Tue, 30 Sep 2014 06:50:45 +0000 (08:50 +0200)]
Bump __DragonFly_version for i915 hw context support

5 years agoudp: Optimize detach path
Sepherosa Ziehau [Mon, 29 Sep 2014 12:18:46 +0000 (20:18 +0800)]
udp: Optimize detach path

If the inpcb was never put onto wildcard hash and the multicast options
were never accessed nor modified, we could directly dispose the inpcb
on detach path instead of going through all netisrs to make sure that
it is no longer being accessed.

After this commit 'kq_connect_client -u' gives ~180Kconns/s instead of
~160Kconns/s (~12% improvement).

5 years agoinpcb: Define INP_WASBOUND_NOTANY as protocol specific flag
Sepherosa Ziehau [Mon, 29 Sep 2014 12:16:56 +0000 (20:16 +0800)]
inpcb: Define INP_WASBOUND_NOTANY as protocol specific flag

5 years agoinpcb: Revoke INP_WILDCARD_MP, which serves no purpose now
Sepherosa Ziehau [Mon, 29 Sep 2014 12:15:50 +0000 (20:15 +0800)]
inpcb: Revoke INP_WILDCARD_MP, which serves no purpose now

While I'm here, use ncpus2 instead of ncpus for TCP, which only uses
ncpus2 netisrs.

5 years agotcp: Check multicast sopt name after sopt level is checked
Sepherosa Ziehau [Mon, 29 Sep 2014 12:14:39 +0000 (20:14 +0800)]
tcp: Check multicast sopt name after sopt level is checked

5 years agonet: add version numbers to lagg sourcefiles, adapt manpage
Markus Pfeiffer [Sun, 28 Sep 2014 22:32:19 +0000 (22:32 +0000)]
net: add version numbers to lagg sourcefiles, adapt manpage

5 years agonet: import FreeBSD's if_lagg
Markus Pfeiffer [Fri, 22 Nov 2013 22:19:07 +0000 (22:19 +0000)]
net: import FreeBSD's if_lagg

5 years agotools/netrate: Get socket's cpu hint and bind cpu accordingly
Sepherosa Ziehau [Sun, 28 Sep 2014 11:43:20 +0000 (19:43 +0800)]
tools/netrate: Get socket's cpu hint and bind cpu accordingly

5 years agosocket: Provide socket owner cpuid hint
Sepherosa Ziehau [Thu, 25 Sep 2014 13:51:14 +0000 (21:51 +0800)]
socket: Provide socket owner cpuid hint

If the cpuid hint could not be provided or the cpuid hint does not make
sense, -1 will be returned as cpuid hint, e.g. TCP listen sockets w/o
SO_REUSEPORT.

This helps avoiding unnecessary IPIs and contention on receiving sockbuf
token.

5 years agoudp: Redistribute SO_REUSEPORT socket based on local group index
Sepherosa Ziehau [Mon, 22 Sep 2014 14:26:40 +0000 (22:26 +0800)]
udp: Redistribute SO_REUSEPORT socket based on local group index

This improves the request/response transation rate a lot for UDP sockets
which set SO_REUSEPORT, by cpu localizing the request and response
processing.

tools/netrate/udpecho 64B request/response transation rate is raised from
1.24Mtrans/s to 1.39Mtrans/s (~12% improvement).

5 years agoinpcb: Add in_pcb{link,unlink}_flags() to bypass INP_WILDCARD check
Sepherosa Ziehau [Mon, 22 Sep 2014 11:27:07 +0000 (19:27 +0800)]
inpcb: Add in_pcb{link,unlink}_flags() to bypass INP_WILDCARD check

It is safe to change the inpcb's pcblist while the it is still referenced
by the wildcard hash.

5 years agoinpcb: Save local group index
Sepherosa Ziehau [Sun, 21 Sep 2014 13:00:32 +0000 (21:00 +0800)]
inpcb: Save local group index

So that the caller, e.g. UDP protocol, could redistribute the inpcb
accordingly.

We keep the local group sorted by the inpcb local group index in
ascending order.  This eases the multi-process userland application
which uses SO_REUSEPORT sockets and binds process to the owner cpu
of the SO_REUSEPORT socket:
If we didn't sort the local group by the inpcb local group index and
one of the process owning an inpcb in this local group restarted, e.g.
crashed and restarted by watchdog, other processes owning a inpcb in
this local group would have to detect that event, refetch its socket's
owner cpu, and re-bind.

5 years agohammer - Disallow creation of a file/subdir/etc in a deleted directory
Matthew Dillon [Sat, 27 Sep 2014 04:41:23 +0000 (21:41 -0700)]
hammer - Disallow creation of a file/subdir/etc in a deleted directory

* Disallow the creation of inodes within deleted directories.  This
  possibility occurs if a program is CD'd into an empty directory which
  is then rmdir'd, and the program then tries to create something
  in the now-destroyed directory.

Reported-by: varialus
5 years agotest/udp: Add SO_REUSEPORT test
Sepherosa Ziehau [Tue, 23 Sep 2014 12:51:14 +0000 (20:51 +0800)]
test/udp: Add SO_REUSEPORT test

5 years agokernel/lockf: Add include for LOCKF_DEBUG and fix printf warnings.
Sascha Wildner [Tue, 23 Sep 2014 08:29:55 +0000 (10:29 +0200)]
kernel/lockf: Add include for LOCKF_DEBUG and fix printf warnings.

5 years agokernel/i915: Add missing opt_acpi.h to SRCS.
Sascha Wildner [Mon, 22 Sep 2014 11:33:25 +0000 (13:33 +0200)]
kernel/i915: Add missing opt_acpi.h to SRCS.

5 years agokernel/drm: Add back #include "opt_drm.h" to drmP.h so that DRM_DEBUG works.
Sascha Wildner [Mon, 22 Sep 2014 11:14:01 +0000 (13:14 +0200)]
kernel/drm: Add back #include "opt_drm.h" to drmP.h so that DRM_DEBUG works.

5 years agoudp: Factor out function to reset inpcb route cache
Sepherosa Ziehau [Sun, 21 Sep 2014 14:00:40 +0000 (22:00 +0800)]
udp: Factor out function to reset inpcb route cache

5 years agokernel/acpi: Sync acpi_resource with FreeBSD.
Sascha Wildner [Sun, 21 Sep 2014 09:21:27 +0000 (11:21 +0200)]
kernel/acpi: Sync acpi_resource with FreeBSD.

* Use AcpiWalkResources() for parsing _CRS result.

* Add support for 64-bit address range resources.

* Add workaround for BIOSes that specify edge-sensitive but active low
  settings for ACPI-enumerated serial ports (such as the one found on
  an Intel D2500CCE mobo).

* Minor fixes/cleanup.

5 years agonetrate/pktgen: Unbreak building
Sepherosa Ziehau [Sun, 21 Sep 2014 08:09:15 +0000 (16:09 +0800)]
netrate/pktgen: Unbreak building

5 years agoinpcb: Remove the code that does hash-threshold wildcard sockets selection
Sepherosa Ziehau [Sun, 21 Sep 2014 08:03:11 +0000 (16:03 +0800)]
inpcb: Remove the code that does hash-threshold wildcard sockets selection

We always use modulo-N here.

5 years agoudp: Prepare for re-redispatching for SO_REUSEPORT sockets
Sepherosa Ziehau [Sun, 21 Sep 2014 07:29:41 +0000 (15:29 +0800)]
udp: Prepare for re-redispatching for SO_REUSEPORT sockets

5 years agokernel/acpi: Use ACPI_FAILURE() and also remove unneeded variables.
Sascha Wildner [Sat, 20 Sep 2014 15:05:26 +0000 (17:05 +0200)]
kernel/acpi: Use ACPI_FAILURE() and also remove unneeded variables.

5 years agodrm: Fix a randr bug
François Tigeot [Thu, 18 Sep 2014 18:15:24 +0000 (20:15 +0200)]
drm: Fix a randr bug

* Sync drm_linux_list_sort.c with FreeBSD, fixing a qsort_r() bug

* Array elements were not properly sorted, resulting in infinite
  loops in KDE

* FreeBSD revision: 258549

Pointed-out-by: dumbbell
5 years agorip: All processing should only happens in netisr0
Sepherosa Ziehau [Thu, 18 Sep 2014 12:31:57 +0000 (20:31 +0800)]
rip: All processing should only happens in netisr0

Add assertions about it and remove unnecessary token.

5 years agodivert: Don't call abort method in disconnect method
Sepherosa Ziehau [Thu, 18 Sep 2014 12:29:49 +0000 (20:29 +0800)]
divert: Don't call abort method in disconnect method

Use soisdisconnected() is enough; divert's abort method should never
be called.

5 years agoUpdate the pciconf(8) database.
Sascha Wildner [Wed, 17 Sep 2014 19:21:14 +0000 (21:21 +0200)]
Update the pciconf(8) database.

September 13, 2014 snapshot from http://pciids.sourceforge.net/

5 years agokernel/ale: Fix typo in a comment.
Sascha Wildner [Wed, 17 Sep 2014 18:46:04 +0000 (20:46 +0200)]
kernel/ale: Fix typo in a comment.

5 years agokernel/acpi: Add our copyright to two files.
Sascha Wildner [Wed, 17 Sep 2014 17:11:25 +0000 (19:11 +0200)]
kernel/acpi: Add our copyright to two files.

5 years agokernel/acpi: Fix typo, i must be <count.
Sascha Wildner [Tue, 16 Sep 2014 13:57:34 +0000 (15:57 +0200)]
kernel/acpi: Fix typo, i must be <count.

5 years agokernel/acpi: Add acpi_eval_osc() as a general function for running _OSCs.
Sascha Wildner [Tue, 16 Sep 2014 13:20:37 +0000 (15:20 +0200)]
kernel/acpi: Add acpi_eval_osc() as a general function for running _OSCs.

This is a hopefully true-to-the-spec implementation, as described in
chapter "6.2.11 _OSC (Operating System Capabilities)" of the 5.1 spec.
Handling of the query support flag could be better (i.e., we could
pass the returned buffer back to the caller), but we don't need that
yet.

This also fixes bugs in the the error handling which in our acpi_cpu
specific previous implementation didn't work at all, due to my mistakes.

In-discussion-with: sephe

5 years agotest - Testing the bot 1
Antonio Huete Jimenez [Mon, 15 Sep 2014 22:00:40 +0000 (15:00 -0700)]
test - Testing the bot 1

5 years agosys/dev/drm/i915: Activate ACPI
Markus Pfeiffer [Mon, 8 Sep 2014 20:48:03 +0000 (21:48 +0100)]
sys/dev/drm/i915: Activate ACPI

While I am here, do some whitespace cleanup as well.

5 years agoRevert "sys/dev/drm/i915: Activate ACPI"
Markus Pfeiffer [Mon, 15 Sep 2014 21:19:56 +0000 (21:19 +0000)]
Revert "sys/dev/drm/i915: Activate ACPI"

This reverts commit 813bcdd292df9531f0d499d8cd9202238f51c961.

5 years agotest - Testing the bot
Antonio Huete Jimenez [Mon, 15 Sep 2014 21:38:29 +0000 (14:38 -0700)]
test - Testing the bot

5 years agosys/dev/drm/i915: Activate ACPI
Markus Pfeiffer [Mon, 8 Sep 2014 20:48:03 +0000 (21:48 +0100)]
sys/dev/drm/i915: Activate ACPI

5 years agousb4bsd: Fix race condition in usb_dev
Markus Pfeiffer [Sun, 14 Sep 2014 21:34:00 +0000 (21:34 +0000)]
usb4bsd: Fix race condition in usb_dev

The usb_filter_detach was racing the read fifo wakeup notification.

5 years agousb4bsd: fix ehci_device_resume panic
Markus Pfeiffer [Sun, 14 Sep 2014 21:05:27 +0000 (21:05 +0000)]
usb4bsd: fix ehci_device_resume panic

The onhwqueue flag wasn't reset on suspend which lead to a panic
on resume

5 years agokernel/acpi_battery: Add quirk for DSDTs which report a negative 16-bit rate.
Sascha Wildner [Sat, 13 Sep 2014 23:13:00 +0000 (01:13 +0200)]
kernel/acpi_battery: Add quirk for DSDTs which report a negative 16-bit rate.

Discovered on a Packard Bell ENTF71BM laptop.

Fix found in Linux.

5 years agodrm/i915: i915_gem_object_pin() takes 4 arguments
François Tigeot [Sat, 13 Sep 2014 07:13:09 +0000 (09:13 +0200)]
drm/i915: i915_gem_object_pin() takes 4 arguments

Obtained-from: Linux 3.8.13

5 years agoacpiconf(8): Sync with FreeBSD.
Sascha Wildner [Fri, 12 Sep 2014 23:04:17 +0000 (01:04 +0200)]
acpiconf(8): Sync with FreeBSD.

5 years agokernel/acpi: Sync acpi_battery and acpi_cmbat with FreeBSD.
Sascha Wildner [Fri, 12 Sep 2014 22:42:14 +0000 (00:42 +0200)]
kernel/acpi: Sync acpi_battery and acpi_cmbat with FreeBSD.

5 years agorc.d/localdaemons: Redirect rcorder's stderr output rather than tr's.
Sascha Wildner [Fri, 12 Sep 2014 22:18:17 +0000 (00:18 +0200)]
rc.d/localdaemons: Redirect rcorder's stderr output rather than tr's.

This silences the warnings it outputs about unknown BEFOREs and
REQUIREs.

5 years agodivert: All processing should only happens in netisr0
Sepherosa Ziehau [Thu, 11 Sep 2014 13:29:26 +0000 (21:29 +0800)]
divert: All processing should only happens in netisr0

Add assertions about it and remove unnecessary token.

5 years agobmake(1): Add missing DPADD.
Sascha Wildner [Wed, 10 Sep 2014 19:35:32 +0000 (21:35 +0200)]
bmake(1): Add missing DPADD.

5 years agodfregress(8): Fix typos in DPADDs.
Sascha Wildner [Wed, 10 Sep 2014 19:34:57 +0000 (21:34 +0200)]
dfregress(8): Fix typos in DPADDs.

5 years agosplit(1): Remove wrong semicolon in the Makefile.
Sascha Wildner [Wed, 10 Sep 2014 19:27:48 +0000 (21:27 +0200)]
split(1): Remove wrong semicolon in the Makefile.

5 years agodrm/i915: Add the I915_REG_READ IOCTL
François Tigeot [Tue, 9 Sep 2014 13:45:37 +0000 (15:45 +0200)]
drm/i915: Add the I915_REG_READ IOCTL

This driver now supports the same set of ioctls as its Linux 3.8.13
version.

5 years agoicmp6.4: Fix typo.
Sascha Wildner [Wed, 10 Sep 2014 12:23:23 +0000 (14:23 +0200)]
icmp6.4: Fix typo.

5 years agonetrate/accept_connect: Switch to err(3)
Sepherosa Ziehau [Tue, 9 Sep 2014 14:40:39 +0000 (22:40 +0800)]
netrate/accept_connect: Switch to err(3)

5 years agoroute/inet: Dispatch in_rtqdrain to netisrs to run
Sepherosa Ziehau [Tue, 9 Sep 2014 13:38:42 +0000 (21:38 +0800)]
route/inet: Dispatch in_rtqdrain to netisrs to run

5 years agosyncache: Remove syncache_null_rport; use netisr_adone_rport instead
Sepherosa Ziehau [Tue, 9 Sep 2014 13:12:48 +0000 (21:12 +0800)]
syncache: Remove syncache_null_rport; use netisr_adone_rport instead

5 years agosys/dev/disk/sdhci: Adapt manpage
Markus Pfeiffer [Tue, 9 Sep 2014 22:03:09 +0000 (22:03 +0000)]
sys/dev/disk/sdhci: Adapt manpage

5 years agosys/dev/disk/sdhci: Make it possible to build as a module
Markus Pfeiffer [Tue, 9 Sep 2014 19:55:10 +0000 (19:55 +0000)]
sys/dev/disk/sdhci: Make it possible to build as a module

5 years agosys/dev/disk/sdhci: update to FreeBSD r270885
Markus Pfeiffer [Tue, 9 Sep 2014 19:08:42 +0000 (20:08 +0100)]
sys/dev/disk/sdhci: update to FreeBSD r270885

5 years agolibc/nmalloc: fix a mistake in previous commit
Joris Giovannangeli [Tue, 9 Sep 2014 13:15:20 +0000 (15:15 +0200)]
libc/nmalloc: fix a mistake in previous commit

5 years agosyncache: Prioritize timeout netmsgs
Sepherosa Ziehau [Mon, 8 Sep 2014 12:36:55 +0000 (20:36 +0800)]
syncache: Prioritize timeout netmsgs

5 years agoarp: Prioritize timeout netmsgs
Sepherosa Ziehau [Mon, 8 Sep 2014 12:30:48 +0000 (20:30 +0800)]
arp: Prioritize timeout netmsgs

5 years agoroute/inet: Prioritize timeout netmsgs
Sepherosa Ziehau [Mon, 8 Sep 2014 12:26:47 +0000 (20:26 +0800)]
route/inet: Prioritize timeout netmsgs

5 years agoigmp: Prioritize fast and slow timeout netmsgs
Sepherosa Ziehau [Mon, 8 Sep 2014 12:11:22 +0000 (20:11 +0800)]
igmp: Prioritize fast and slow timeout netmsgs

5 years agoipflow: Prioritize timeout netmsgs
Sepherosa Ziehau [Mon, 8 Sep 2014 12:07:11 +0000 (20:07 +0800)]
ipflow: Prioritize timeout netmsgs

5 years agoip: Prioritize drain and timeout netmsgs
Sepherosa Ziehau [Mon, 8 Sep 2014 12:01:54 +0000 (20:01 +0800)]
ip: Prioritize drain and timeout netmsgs

5 years agotcp: Dispatch tcp_drain to netisrs to run
Sepherosa Ziehau [Mon, 8 Sep 2014 11:46:28 +0000 (19:46 +0800)]
tcp: Dispatch tcp_drain to netisrs to run

- Avoid two extra M_WAITOK mallocs
- Simplify drain logic, since inpcb marker is no longer needed

5 years agolibc/nmalloc: add an integer overflow check to calloc
Joris Giovannangeli [Sun, 7 Sep 2014 22:24:18 +0000 (00:24 +0200)]
libc/nmalloc: add an integer overflow check to calloc

5 years agokernel/i386: In the RAM driver, don't include regions above 4GB.
Sascha Wildner [Sun, 7 Sep 2014 21:46:49 +0000 (23:46 +0200)]
kernel/i386: In the RAM driver, don't include regions above 4GB.

Taken-from: FreeBSD

5 years agokernel/i386: Add RAM driver for i386.
Sascha Wildner [Sun, 7 Sep 2014 18:11:05 +0000 (20:11 +0200)]
kernel/i386: Add RAM driver for i386.

5 years agonexus/x86_64: Add a description to the RAM driver but quiet it.
Sascha Wildner [Sun, 7 Sep 2014 18:09:45 +0000 (20:09 +0200)]
nexus/x86_64: Add a description to the RAM driver but quiet it.

Also, some more whitespace cleanup.

Patch-by: profmakx
5 years agokernel/nexus: Tabify the RAM driver.
Sascha Wildner [Sun, 7 Sep 2014 18:00:20 +0000 (20:00 +0200)]
kernel/nexus: Tabify the RAM driver.

5 years agokernel/i386: Add SMAP type constants.
Sascha Wildner [Sun, 7 Sep 2014 18:47:36 +0000 (20:47 +0200)]
kernel/i386: Add SMAP type constants.

5 years agokernel/nexus: Use __func__.
Sascha Wildner [Sun, 7 Sep 2014 17:52:58 +0000 (19:52 +0200)]
kernel/nexus: Use __func__.

5 years agokernel: Use NULL for pointers in DRIVER_MODULE().
Sascha Wildner [Sun, 7 Sep 2014 17:23:07 +0000 (19:23 +0200)]
kernel: Use NULL for pointers in DRIVER_MODULE().

5 years agokernel: Remove some lonely tabs.
Sascha Wildner [Sun, 7 Sep 2014 17:07:03 +0000 (19:07 +0200)]
kernel: Remove some lonely tabs.

5 years agodrm/i915: Add hardware context support
François Tigeot [Sun, 7 Sep 2014 15:52:40 +0000 (17:52 +0200)]
drm/i915: Add hardware context support

This feature is required by Mesa 9.2+

Inspired-by: Jean-Sébastien Pédron's FreeBSD HW context patch
5 years agodrm: Add WARN_ON_ONCE()
François Tigeot [Sun, 7 Sep 2014 15:23:42 +0000 (17:23 +0200)]
drm: Add WARN_ON_ONCE()

Obtained-from: OpenBSD