dragonfly.git
9 years agoalc: Fix up MSI configuration
Sepherosa Ziehau [Thu, 22 Jan 2015 07:51:54 +0000 (15:51 +0800)]
alc: Fix up MSI configuration

Tested-by: dillon@
9 years agokernel - Update if_alc
Matthew Dillon [Thu, 22 Jan 2015 04:47:07 +0000 (20:47 -0800)]
kernel - Update if_alc

* Bring in everything FreeBSD has for if_alc.  This adds a few more
  generations including the one used (for the hardport) by my new
  Gigabyte H97N-WIFI mobo.

* Update mii as well.

* Disable MSI for now, doesn't seem to work with my test box.

Taken-From: FreeBSD

9 years agodrm - Add another Haswell graphics chipid
Matthew Dillon [Thu, 22 Jan 2015 04:45:09 +0000 (20:45 -0800)]
drm - Add another Haswell graphics chipid

* Add the gpu identified by the i3-4130 (haswell)

9 years agokernel - audio Makefile needs opt_snd.h
Matthew Dillon [Thu, 22 Jan 2015 04:44:30 +0000 (20:44 -0800)]
kernel - audio Makefile needs opt_snd.h

* Audio Makefile depends on opt_snd.h.

9 years agokernel - Add more definitions to pcireg.h
Matthew Dillon [Thu, 22 Jan 2015 04:43:54 +0000 (20:43 -0800)]
kernel - Add more definitions to pcireg.h

* Add more definitions to pcireg.h

Taken-From: FreeBSD

9 years agoacpi: Don't set non-exist EXT IRQ
Sepherosa Ziehau [Thu, 22 Jan 2015 01:33:04 +0000 (09:33 +0800)]
acpi: Don't set non-exist EXT IRQ

Certain mobo, e.g. gigabyte H97N-WIFI, reports EXT IRQ 37 and 38,
which do not exist at all (max legacy IRQ is 23).  Don't set bus
resource for this kind of IRQ resources.

Tested-by: dillon@
9 years agoecc: Use identify to add ecc device for E3-1200 memory controllers
Sepherosa Ziehau [Wed, 21 Jan 2015 12:50:25 +0000 (20:50 +0800)]
ecc: Use identify to add ecc device for E3-1200 memory controllers

Misc
- Disable ecc for X3400 temporarily; it seems to use E5 style ecc
  registers accessing method, which needs further investigation.
- Ecc should not be forcefully added to hostb

Tested-by: dillon@ on E3-1200 and E3-1200v3
9 years agoAdd a manual page for libkinfo (one for libkcore is still missing).
Sascha Wildner [Wed, 21 Jan 2015 23:48:00 +0000 (00:48 +0100)]
Add a manual page for libkinfo (one for libkcore is still missing).

9 years agorconfig - A couple additions to hammer.sh
Antonio Huete Jimenez [Wed, 21 Jan 2015 22:42:41 +0000 (23:42 +0100)]
rconfig - A couple additions to hammer.sh

Submitted-by: Rumko
Closes: #1173

9 years agolibkvm - Remove unused file
Antonio Huete Jimenez [Wed, 21 Jan 2015 22:33:02 +0000 (23:33 +0100)]
libkvm - Remove unused file

9 years agosysctl.3: Use .Vt instead of .Va for types.
Imre Vadasz [Tue, 20 Jan 2015 23:23:45 +0000 (00:23 +0100)]
sysctl.3: Use .Vt instead of .Va for types.

9 years agosysctl.3: Fix documentation of KERN_FILE.
Imre Vadasz [Tue, 20 Jan 2015 22:27:48 +0000 (23:27 +0100)]
sysctl.3: Fix documentation of KERN_FILE.

9 years agosys/vfs/hammer: make btree_search() climb up btree slightly faster
Tomohiro Kusumi [Thu, 8 Jan 2015 15:13:59 +0000 (00:13 +0900)]
sys/vfs/hammer: make btree_search() climb up btree slightly faster

- This cleanup patch lets cursor climb up deep/fat btree slightly faster
  (lightweight), if not slower.
- Remove a duplicate check that traces back to a moment where there was
  btree_node_is_almost_full() and the differentiation was needed.

Closes: #2765

9 years agosbin/hammer: fix potential memory leak
Tomohiro Kusumi [Mon, 12 Jan 2015 16:37:09 +0000 (01:37 +0900)]
sbin/hammer: fix potential memory leak

- This patch properly frees calloc/malloced memory.

Closes: #2766

9 years agosys/vfs/hammer: fix comments regarding obsolete "spike" code
Tomohiro Kusumi [Thu, 8 Jan 2015 12:29:12 +0000 (21:29 +0900)]
sys/vfs/hammer: fix comments regarding obsolete "spike" code

- This patch fixes comments regarding "spike" code that only existed in
  early days of hammer development.
- The spike comments have been left unchanged even after the code was
  removed in 47197d71536907482d2d215e222600eed3aedc0e.

Closes: #2764

9 years agosbin/hammer: remove obsolete "spike" code from hammer show command
Tomohiro Kusumi [Wed, 7 Jan 2015 12:45:43 +0000 (21:45 +0900)]
sbin/hammer: remove obsolete "spike" code from hammer show command

- Remove spike related code from print_btree_node() as it is no longer
  relevant since commit 47197d.
- Not calling print_btree_node() twice makes 'show' directive more
  efficient.

Closes: #2761

9 years agosys/vfs/hammer: fix off-by-one error in hammer volume-add ioctl
Tomohiro Kusumi [Sun, 18 Jan 2015 18:26:47 +0000 (03:26 +0900)]
sys/vfs/hammer: fix off-by-one error in hammer volume-add ioctl

- This patch should fix off-by-one error regarding maximum volume number.
- Correct how hammer_ioc_volume_add() tests current # of volumes before
  it adds a new volume.

Closes: #2773

9 years agoFix the man page: make sure all list items are bolded and a grammar tweak.
Justin C. Sherrill [Tue, 20 Jan 2015 02:24:54 +0000 (21:24 -0500)]
Fix the man page: make sure all list items are bolded and a grammar tweak.

Based on OpenBSD and FreeBSD changes that are exactly the same.

http://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/editors/ee/patches/patch-ee_1?rev=1.4&content-type=text/x-cvsweb-markup&f=h

https://svnweb.freebsd.org/base/head/contrib/ee/ee.1?r1=276230&r2=277328&pathrev=277328

9 years agoecc: Implement detach and shutdown methods
Sepherosa Ziehau [Mon, 19 Jan 2015 13:30:04 +0000 (21:30 +0800)]
ecc: Implement detach and shutdown methods

While I'm here, clean up indentation.

9 years agosysctl.3: Remove KERN_UPDATEINTERVAL identifier. Fix a copy-paste error.
Imre Vadasz [Mon, 19 Jan 2015 22:35:00 +0000 (23:35 +0100)]
sysctl.3: Remove KERN_UPDATEINTERVAL identifier. Fix a copy-paste error.

9 years agokernel - limit DMA for older ALI chips to 256KB
Matthew Dillon [Mon, 19 Jan 2015 17:09:05 +0000 (09:09 -0800)]
kernel - limit DMA for older ALI chips to 256KB

* For ancient machines using old ALI chipsets which do
  not support 48-bit DMA, also limit the maximum DMA
  size to 256KB.

9 years agoipfw2 - Fix buffer overflow with large tables
Matthew Dillon [Mon, 19 Jan 2015 17:04:07 +0000 (09:04 -0800)]
ipfw2 - Fix buffer overflow with large tables

* Fix according to PR 1753.

Taken-from: FreeBSD

9 years agohammer - Attempt to fix improper call to vsetisdirty() in hammer flush
Matthew Dillon [Mon, 19 Jan 2015 04:17:42 +0000 (20:17 -0800)]
hammer - Attempt to fix improper call to vsetisdirty() in hammer flush

* The hammer flush occurs in the background.  Because of this it is possible
  for a vnode to be reclaimed just prior to the flush code getting to it.

* Attempt to fix an improper call to vsetisdirty() which can panic the machine
  on vp->v_mount becoming NULL.  The vnode reclamation should theoretically be
  interlocked against the inode lock so it should suffice to simply check
  to see if it has been reclaimed yet or not.

* Also don't bother marking the vnode dirty if it is already marked dirty.

9 years agoinet: Link ifa after ifa_{addr,dstaddr,netmask} are setup
Sepherosa Ziehau [Sun, 18 Jan 2015 13:53:36 +0000 (21:53 +0800)]
inet: Link ifa after ifa_{addr,dstaddr,netmask} are setup

While I'm here, remove unused in_interfaces.

9 years agobnx/bge: Add miibus module dependency
Sepherosa Ziehau [Sun, 18 Jan 2015 13:19:27 +0000 (21:19 +0800)]
bnx/bge: Add miibus module dependency

9 years agommap.2: A little markup..
Sascha Wildner [Sun, 18 Jan 2015 20:53:54 +0000 (21:53 +0100)]
mmap.2: A little markup..

9 years agoptrace.2: Document the PT_IO request.
Imre Vadasz [Sun, 18 Jan 2015 13:06:43 +0000 (14:06 +0100)]
ptrace.2: Document the PT_IO request.

Taken-from: FreeBSD

9 years agosysctl.3: Fix a typo. Document the HW_MACHINE_PLATFORM identifier.
Imre Vadasz [Sun, 18 Jan 2015 13:07:34 +0000 (14:07 +0100)]
sysctl.3: Fix a typo. Document the HW_MACHINE_PLATFORM identifier.

9 years agosysctl.3: Use .Dv where appropriate, use nicer syntax in tables.
Imre Vadasz [Sun, 18 Jan 2015 09:15:35 +0000 (10:15 +0100)]
sysctl.3: Use .Dv where appropriate, use nicer syntax in tables.

Mostly-taken-from: OpenBSD

9 years agommap.2: Update manpage to reflect the introduction of MAP_ANONYMOUS
Markus Pfeiffer [Sun, 18 Jan 2015 17:23:31 +0000 (17:23 +0000)]
mmap.2: Update manpage to reflect the introduction of MAP_ANONYMOUS

9 years agokernel: Exchange MAP_ANON and MAP_ANONYMOUS
Markus Pfeiffer [Sun, 18 Jan 2015 17:06:58 +0000 (17:06 +0000)]
kernel: Exchange MAP_ANON and MAP_ANONYMOUS

* In commit a2ed5072 I defined MAP_ANONYMOUS to take the role of
  MAP_ANON, and defined MAP_ANON as an alias. This lead to compatibility
  problems with programs that #define MAP_ANONYMOUS MAP_ANON, so
  #define MAP_ANON as before and let MAP_ANONYMOUS be the alias.

Reported-By: John Marino <draco@marino.st>
9 years agodrm: Sync drm_edid.c and drm_modes.c with Linux 3.9.11
François Tigeot [Sun, 18 Jan 2015 09:50:27 +0000 (10:50 +0100)]
drm: Sync drm_edid.c and drm_modes.c with Linux 3.9.11

9 years agodrm: Move vbl_lock initialization to the right place
François Tigeot [Sun, 18 Jan 2015 08:00:07 +0000 (09:00 +0100)]
drm: Move vbl_lock initialization to the right place

Reducing differences with Linux 3.9.11

9 years agosysctl.3: Document the KERN_PROC_CWD sysctl name. Explain KERN_PROC_ARGS.
Imre Vadasz [Sat, 17 Jan 2015 22:02:31 +0000 (23:02 +0100)]
sysctl.3: Document the KERN_PROC_CWD sysctl name. Explain KERN_PROC_ARGS.

Partly-taken-from: FreeBSD

9 years agohammer - cleanup arg names in procedural prototypes - PR 2770
Matthew Dillon [Sat, 17 Jan 2015 21:00:13 +0000 (13:00 -0800)]
hammer - cleanup arg names in procedural prototypes - PR 2770

* Cleanup procedural prototypes to match code.

Submitted-by: tkusumi PR/2770.
9 years agohammer - bring-in cleanup from PR 2771 and 2772
Matthew Dillon [Sat, 17 Jan 2015 20:46:01 +0000 (12:46 -0800)]
hammer - bring-in cleanup from PR 2771 and 2772

* Bring in a macro/inline cleanup that makes the code
  a bit more clear.

Submitted-by: tkusumi
9 years agosys/vfs/hammer: cleanup using existing macro
Tomohiro Kusumi [Fri, 26 Dec 2014 20:38:02 +0000 (05:38 +0900)]
sys/vfs/hammer: cleanup using existing macro

- This patch is a cleanup with no change to behavior of
  hammer_ip_check_directory_empty().
- Using existing macro as well as a new macro HAMMER_RECTYPE_ENTRY_START
  (in the same fashion as HAMMER_RECTYPE_CLEAN_START) makes it easier to
  understand what this function is doing (just like other functions that
  use both key_beg/key_end do).

Closes: #2752

9 years agosbin/hammer: fix counter-intuitive output of hammer show command
Tomohiro Kusumi [Tue, 30 Dec 2014 23:16:28 +0000 (08:16 +0900)]
sbin/hammer: fix counter-intuitive output of hammer show command

- Change 'hammer show' ELM output to match the comparison order in the
  RB tree cmp functions.

Closes: #2755

9 years agosbin/hammer: fix output of hammer blockmap command
Tomohiro Kusumi [Thu, 27 Nov 2014 18:40:53 +0000 (03:40 +0900)]
sbin/hammer: fix output of hammer blockmap command

- Correctly name the zone being dumped.

Closes: #2740

9 years agokernel/ath: Add missing braces (FreeBSD's r277290).
Sascha Wildner [Sat, 17 Jan 2015 08:05:56 +0000 (09:05 +0100)]
kernel/ath: Add missing braces (FreeBSD's r277290).

9 years agokernel - Augment resource_string_value() to check kenv.
Matthew Dillon [Sat, 17 Jan 2015 01:58:21 +0000 (17:58 -0800)]
kernel - Augment resource_string_value() to check kenv.

* resource_string_value() now checks for a kenv hint called
  <devname><unit>.<resourcename>, similar to how resource_int_value()
  and resource_long_value() work.

9 years agopowerd - Add an EXAMPLES section to the manual
Matthew Dillon [Sat, 17 Jan 2015 00:08:44 +0000 (16:08 -0800)]
powerd - Add an EXAMPLES section to the manual

* Add an EXAMPLES section with a suggestion for workstation settings.

9 years agopowerd - Add options to set poll_rate and sample_time, adjust idle algorithm
Matthew Dillon [Fri, 16 Jan 2015 23:44:41 +0000 (15:44 -0800)]
powerd - Add options to set poll_rate and sample_time, adjust idle algorithm

* Add -r poll_rate and -T sample_time.  The user can adjust the values
  to e.g. make a workstation react more quickly to UI operations coming
  out of idle and to take longer to return to idle.

* Use a shorter averaging time (3 poll intervals) for ratcheting up the
  speed and a longer averaging time (adjustable by -T) for ratcheting down
  the speed.

* Enhance the manual page, describe default values and make suggestions.

9 years agoypclnt.3: Add missing parameter type.
Sascha Wildner [Fri, 16 Jan 2015 19:21:12 +0000 (20:21 +0100)]
ypclnt.3: Add missing parameter type.

9 years agolibusb20.3: Add missing function type.
Sascha Wildner [Fri, 16 Jan 2015 17:05:58 +0000 (18:05 +0100)]
libusb20.3: Add missing function type.

9 years agoLINT64: Document the kernel options of the sound stack.
Sascha Wildner [Fri, 16 Jan 2015 08:55:48 +0000 (09:55 +0100)]
LINT64: Document the kernel options of the sound stack.

Also, comment out SND_DIAGNOSTIC which is currently broken.

9 years agokernel: Define HAVE_KERNEL_OPTION_HEADERS when building kernel/modules.
Sascha Wildner [Fri, 16 Jan 2015 08:54:35 +0000 (09:54 +0100)]
kernel: Define HAVE_KERNEL_OPTION_HEADERS when building kernel/modules.

It gets defined when building the kernel and when building modules
along with the kernel.

FreeBSD wraps some of their #include "opt_blah.h" in it and it should
ease porting $stuff from them.

It also makes the kernel options of the sound stack actually work.

9 years agouio.9: uiomove() takes size_t, not int.
Sascha Wildner [Fri, 16 Jan 2015 08:43:14 +0000 (09:43 +0100)]
uio.9: uiomove() takes size_t, not int.

9 years agopfil.9: pfil_{add,remove}_hook() return int.
Sascha Wildner [Fri, 16 Jan 2015 08:20:45 +0000 (09:20 +0100)]
pfil.9: pfil_{add,remove}_hook() return int.

9 years agoeditline.3: Ansify two prototypes.
Sascha Wildner [Fri, 16 Jan 2015 08:01:44 +0000 (09:01 +0100)]
editline.3: Ansify two prototypes.

9 years agoopenssl: Adjust manual pages for 1.0.1l.
Sascha Wildner [Thu, 15 Jan 2015 20:25:46 +0000 (21:25 +0100)]
openssl: Adjust manual pages for 1.0.1l.

9 years agoMerge branch 'vendor/OPENSSL'
Sascha Wildner [Thu, 15 Jan 2015 21:18:26 +0000 (22:18 +0100)]
Merge branch 'vendor/OPENSSL'

9 years agodrm - Fix a second X lockup w/radeon ttm
Matthew Dillon [Thu, 15 Jan 2015 20:59:51 +0000 (12:59 -0800)]
drm - Fix a second X lockup w/radeon ttm

* Code which releases bo->reserved and wakes up waiters was
  not interlocked against wait_event_common() used to wait
  for the release.  This can result in a race where the
  release occurs inbetween the wait's test and its sleep,
  preventing the wait from ever waking up.

* This is different from the recent dev_pager_mtx deadlock which
  was recently fixed, but in the same code path.

* Roll the release of bo->reserved into a static function
  and throw the bo->event_queue.lock around the actual
  release to fix the race.

9 years agoImport OpenSSL-1.0.1l.
Sascha Wildner [Thu, 15 Jan 2015 20:22:00 +0000 (21:22 +0100)]
Import OpenSSL-1.0.1l.

* Fixes for CVE-2014-3571, CVE-2015-0206, CVE-2014-3569, CVE-2014-3572,
  CVE-2015-0204, CVE-2015-0205, CVE-2014-8275 and CVE-2014-3570.

* Ensure that the session ID context of an SSL is updated when its
  SSL_CTX is updated via SSL_set_SSL_CTX.

* Do not resume sessions on the server if the negotiated protocol
  version does not match the session's version.

* Tighten handling of the ChangeCipherSpec (CCS) message.

* Tighten client-side session ticket handling during renegotiation.

Also, while here, remove the doc/ subdirectory on the vendor branch.
We don't need to distribute it in contrib/.

9 years agokernel/sound: Fix typos in user visible messages etc.
Sascha Wildner [Thu, 15 Jan 2015 15:57:51 +0000 (16:57 +0100)]
kernel/sound: Fix typos in user visible messages etc.

9 years agoumtx.2/quick_exit.3: Fix some prototypes.
Sascha Wildner [Thu, 15 Jan 2015 13:19:38 +0000 (14:19 +0100)]
umtx.2/quick_exit.3: Fix some prototypes.

9 years agotruss(1): Retry opening /proc/%d/mem when errno == EAGAIN.
Imre Vadasz [Thu, 15 Jan 2015 11:04:10 +0000 (12:04 +0100)]
truss(1): Retry opening /proc/%d/mem when errno == EAGAIN.

9 years agolibedit: Install and use the correct <histedit.h>.
Sascha Wildner [Thu, 15 Jan 2015 10:15:19 +0000 (11:15 +0100)]
libedit: Install and use the correct <histedit.h>.

Ever since libedit was moved to contrib/ back in May 2012 (c22639f2f9ab7)
we were still installing the previous <histedit.h> from /usr/src/include.

9 years agoUpdate the pciconf(8) database.
Sascha Wildner [Thu, 15 Jan 2015 08:56:34 +0000 (09:56 +0100)]
Update the pciconf(8) database.

January 5, 2015 snapshot from http://pciids.sourceforge.net/

9 years agocam: Disable verbose "Unretryable error" log for probe pseudo device.
Sepherosa Ziehau [Wed, 14 Jan 2015 12:50:30 +0000 (20:50 +0800)]
cam: Disable verbose "Unretryable error" log for probe pseudo device.

Discussed-with: swildner@

9 years agoacpi/pstate: Allow missing _PCT and _PSS, as long as _PSD exists
Sepherosa Ziehau [Wed, 14 Jan 2015 12:14:07 +0000 (20:14 +0800)]
acpi/pstate: Allow missing _PCT and _PSS, as long as _PSD exists

Some BIOSes does not export _PCT and _PSS for the second thread of CPU
cores.  As long as _PSD exists and control/status registers are "fixed
hardware", e.g. for most of the modern Intel CPUs, we could reconstruct
P-state for the CPU even if there are no _PCT or _PSS.

In case that _PSD is wrong, e.g. 2 threads of a same core are in different
P-state domain, we try to put them to the same P-state domain.  This could
be disabled by setting tunable hw.acpi.cpu.pst.ht_reuse_domain to 0; this
tunable is 1 by default.

9 years agokernel: rename MAP_ANON to MAP_ANONYMOUS, add alias
Markus Pfeiffer [Wed, 14 Jan 2015 15:00:02 +0000 (15:00 +0000)]
kernel: rename MAP_ANON to MAP_ANONYMOUS, add alias

* rename MAP_ANON to MAP_ANONYMOUS
* add MAP_ANON as an alias of MAP_ANONYMOUS for backward
  compatibility. This should ease porting of some software which
  just fails, because MAP_ANONYMOUS is not defined

9 years agoaltq: Dispatch tbr_timeout to netisr0 to run
Sepherosa Ziehau [Tue, 13 Jan 2015 13:33:55 +0000 (21:33 +0800)]
altq: Dispatch tbr_timeout to netisr0 to run

This function now access ifnet global variable in netisr.

9 years agoinet6: Defer in6_tmpaddrtimer
Sepherosa Ziehau [Tue, 13 Jan 2015 12:56:33 +0000 (20:56 +0800)]
inet6: Defer in6_tmpaddrtimer

Same as before fd89b323a2536d2a3a0c7cfff93719a2aec48323

9 years agoinet6: Dispatch nd6_slowtimo to netisr0 to run
Sepherosa Ziehau [Tue, 13 Jan 2015 12:54:42 +0000 (20:54 +0800)]
inet6: Dispatch nd6_slowtimo to netisr0 to run

This function now access ifnet global variable in netisr.

9 years agokernel: Hide the intrmask_t typedef from userspace with #ifdef _KERNEL.
Imre Vadasz [Tue, 13 Jan 2015 21:26:32 +0000 (22:26 +0100)]
kernel: Hide the intrmask_t typedef from userspace with #ifdef _KERNEL.

9 years agosshlockout - Handle IPv6 and don't block localhost
Michael Neumann [Tue, 13 Jan 2015 21:15:28 +0000 (22:15 +0100)]
sshlockout - Handle IPv6 and don't block localhost

9 years agosshlockout - fix typo
Michael Neumann [Tue, 13 Jan 2015 18:13:49 +0000 (19:13 +0100)]
sshlockout - fix typo

9 years agosshlockout - Handle invalid user login attempts
Michael Neumann [Tue, 13 Jan 2015 18:10:46 +0000 (19:10 +0100)]
sshlockout - Handle invalid user login attempts

9 years agosshlockout - Prevent DoS attacks
Michael Neumann [Tue, 13 Jan 2015 14:00:58 +0000 (15:00 +0100)]
sshlockout - Prevent DoS attacks

9 years agosshlockout - refactor
Michael Neumann [Tue, 13 Jan 2015 12:44:20 +0000 (13:44 +0100)]
sshlockout - refactor

9 years agosshlockout - use a PF table instead of IPFW
Michael Neumann [Tue, 13 Jan 2015 12:04:29 +0000 (13:04 +0100)]
sshlockout - use a PF table instead of IPFW

9 years agodebug - Add bufqueues program
Antonio Huete Jimenez [Tue, 13 Jan 2015 10:49:20 +0000 (11:49 +0100)]
debug - Add bufqueues program

- A program to list buf(9) stats on a live system, vkernel or a
  system dump.

root@andromeda:/root# bufqueues
NONE  LOCKED  CLEAN  DIRTY  DIRTY_HW  EMPTYKVA  EMPTY  OFF-QUEUE KVMFAIL
   0       2   3903      2        61        34     12          0      14
   0       2   3903      2        61        34     12          0      14
   0       2   3903      2        61        34     12          0      14
   0       2   3979      0         0        17     12          0      10

...

9 years agodebug - Build evfilt_user as well
Antonio Huete Jimenez [Mon, 12 Jan 2015 12:17:22 +0000 (13:17 +0100)]
debug - Build evfilt_user as well

9 years agoinet6: Dispatch in6_tmpaddrtimer to netisr0 to run
Sepherosa Ziehau [Mon, 12 Jan 2015 13:37:07 +0000 (21:37 +0800)]
inet6: Dispatch in6_tmpaddrtimer to netisr0 to run

This function now access ifnet global variable in netisr.

9 years agokernel - Flag cdevpriv use (2)
Matthew Dillon [Mon, 12 Jan 2015 19:57:25 +0000 (11:57 -0800)]
kernel - Flag cdevpriv use (2)

* Don't throw away fp->f_flag bits set prior to the call to
  vop_stdopen().

9 years agokernel - Flag cdevpriv use
Matthew Dillon [Mon, 12 Jan 2015 18:56:54 +0000 (10:56 -0800)]
kernel - Flag cdevpriv use

* Flag cdevpriv use in devfs, allowing device drivers to
  use the fp->f_data1 field without having to use the
  cdevpriv mechanism if they desire.

9 years agokernel - remove O_FBUFFERED and O_FUNBUFFERED
Matthew Dillon [Mon, 12 Jan 2015 18:49:03 +0000 (10:49 -0800)]
kernel - remove O_FBUFFERED and O_FUNBUFFERED

* Remove these fcntl / special flags.  They are no longer being
  used by anything.

9 years agodebug - Update zallocinfo
Antonio Huete Jimenez [Mon, 12 Jan 2015 11:46:33 +0000 (12:46 +0100)]
debug - Update zallocinfo

9 years agoRevert "drm: Handle drm masters and minors like Linux"
François Tigeot [Mon, 12 Jan 2015 07:50:18 +0000 (08:50 +0100)]
Revert "drm: Handle drm masters and minors like Linux"

This reverts commit 2aa08105f11f5815d087c0f6baea9af394bd323f.

Many people reported this commit breaked their Xorg setup.

9 years agodebug - Fix wildcardinfo
Antonio Huete Jimenez [Sun, 11 Jan 2015 23:18:46 +0000 (00:18 +0100)]
debug - Fix wildcardinfo

9 years agoAdd commented-out rule allowing ICMP.
Justin C. Sherrill [Sun, 11 Jan 2015 23:01:22 +0000 (18:01 -0500)]
Add commented-out rule allowing ICMP.

Leaving it disabled can cause silent weirdness.

9 years agodrm: Handle drm masters and minors like Linux
François Tigeot [Sat, 10 Jan 2015 20:06:46 +0000 (21:06 +0100)]
drm: Handle drm masters and minors like Linux

* Make drm data structures more like their Linux versions

* Reduce differences with Linux 3.9.11 and use the same
  idr-based mechanisms when possible

* Create devices with the right minor numbers

* Use the same struct file.private_data mechanism Linux uses to pass
  drm_file information, removing the need for the FreeBSD-originated
  devfs cdevpriv code.

9 years agokernel/dev_ops: Make default dev_ops (noopen(), etc.) static.
Sascha Wildner [Sun, 11 Jan 2015 11:05:17 +0000 (12:05 +0100)]
kernel/dev_ops: Make default dev_ops (noopen(), etc.) static.

They should only ever be needed by compile_dev_ops() (via default_dev_ops).

9 years agokernel/cam: Remove unneeded dev_ops assignments.
Sascha Wildner [Sun, 11 Jan 2015 10:43:24 +0000 (11:43 +0100)]
kernel/cam: Remove unneeded dev_ops assignments.

compile_dev_ops() takes care of assigning no*() to uninitialized ops.

9 years agoinet6: Dispatch nd6_setmtu0 to netisr0 to run
Sepherosa Ziehau [Fri, 9 Jan 2015 14:50:12 +0000 (22:50 +0800)]
inet6: Dispatch nd6_setmtu0 to netisr0 to run

This function now access ifnet global variable in netisr.

9 years agoinet6: Dispatch nigroup attach/detach to netisr0 to run
Sepherosa Ziehau [Fri, 9 Jan 2015 14:11:57 +0000 (22:11 +0800)]
inet6: Dispatch nigroup attach/detach to netisr0 to run

These two functions now access ifnet global variable in netisr.

9 years agonetmap: Remove unnecessary ifunit call
Sepherosa Ziehau [Fri, 9 Jan 2015 13:27:57 +0000 (21:27 +0800)]
netmap: Remove unnecessary ifunit call

9 years agoSync mixer rc script with FreeBSD and enable mixer state save/restore.
Sascha Wildner [Sun, 11 Jan 2015 09:23:06 +0000 (10:23 +0100)]
Sync mixer rc script with FreeBSD and enable mixer state save/restore.

9 years agomixer(8): Sync up with FreeBSD.
Sascha Wildner [Sun, 11 Jan 2015 09:23:03 +0000 (10:23 +0100)]
mixer(8): Sync up with FreeBSD.

9 years agokernel/usb4bsd: Sync usb_quirk(4) with FreeBSD.
Sascha Wildner [Sat, 10 Jan 2015 19:25:58 +0000 (20:25 +0100)]
kernel/usb4bsd: Sync usb_quirk(4) with FreeBSD.

9 years agodrm - Fix deadlock in ttm pager
Matthew Dillon [Sat, 10 Jan 2015 17:35:24 +0000 (09:35 -0800)]
drm - Fix deadlock in ttm pager

* Fix a deadlock which most often occurs via the ttm (radeon) VM pager.
  A similar path is also used by i915 (all intel).

* Basically removes an unnecessary lock in the paging path which was creating
  the deadlock.

Reported-by: ivadasz, ftigeot
9 years agodrm: drm_detach() is drm_release()
François Tigeot [Sat, 10 Jan 2015 08:31:00 +0000 (09:31 +0100)]
drm: drm_detach() is drm_release()

Rename it in order to reduce differences with Linux.

9 years agousb4bsd: Sync with FreeBSD r276791 - revert broken 64bit DMA
Markus Pfeiffer [Fri, 9 Jan 2015 20:40:30 +0000 (20:40 +0000)]
usb4bsd: Sync with FreeBSD r276791 - revert broken 64bit DMA

* Revert a change that lead to an uninitialised value being used
  for the number of bits in a DMA address.

9 years agoStop removing the snd_emu10kx(4) manual page via 'make upgrade'.
Sascha Wildner [Fri, 9 Jan 2015 17:14:53 +0000 (18:14 +0100)]
Stop removing the snd_emu10kx(4) manual page via 'make upgrade'.

9 years agokernel/hda: Add missing file to 'files' to be able to compile it in.
Sascha Wildner [Fri, 9 Jan 2015 13:49:10 +0000 (14:49 +0100)]
kernel/hda: Add missing file to 'files' to be able to compile it in.

9 years agousb4bsd: Sync with FreeBSD r276791
Markus Pfeiffer [Thu, 8 Jan 2015 23:51:31 +0000 (23:51 +0000)]
usb4bsd: Sync with FreeBSD r276791

* Make sure the 64bit DMA bits are all there

9 years agousb4bsd: Sync with FreeBSD r276791
Markus Pfeiffer [Thu, 8 Jan 2015 23:47:46 +0000 (23:47 +0000)]
usb4bsd: Sync with FreeBSD r276791

9 years agousb4bsd: Sync with FreeBSD r276791
Markus Pfeiffer [Thu, 8 Jan 2015 23:40:22 +0000 (23:40 +0000)]
usb4bsd: Sync with FreeBSD r276791

* Sync usb_request

9 years agousb4bsd: Sync with FreeBSD r276791
Markus Pfeiffer [Thu, 8 Jan 2015 23:31:00 +0000 (23:31 +0000)]
usb4bsd: Sync with FreeBSD r276791

* sync usb_msctest