Commit Graph

99660 Commits

Author SHA1 Message Date
mjg
7a394d25ec MFC r259330,r259331:
rlimit: add and utilize lim_shared

rlimit: avoid unnecessary copying of rlimits

If refcount is 1 just modify rlimits in place.
2014-02-20 21:52:39 +00:00
mjg
c581d5764a MFC r260233:
Plug a memory leak in dup2 when both old and new fd have ioctl caps.
2014-02-20 21:36:05 +00:00
ae
9d77623944 MFC r261835:
Drop packets to multicast address whose scop field contains the
  reserved value 0.

Sponsored by:	Yandex LLC
2014-02-20 21:01:59 +00:00
brueffer
c34a480545 MFC: r261858
Fix a bug in be_uuid_dec(); it called le16dec() instead of be16dec(),
probably due to copy+pasting le_uuid_dec().

PR:		146588
Submitted by:	Erwin Rol <erwin at erwinrol.com>
Reviewed by:	marcel
2014-02-20 08:55:59 +00:00
eadler
43b7c0ee21 MFC r257883:
Add support for SIIG x1 pci-e single parallel port card (JJ-E01211-S1)

PR:		kern/182217
2014-02-19 19:38:25 +00:00
jhb
459448a934 MFC 261780:
Expose OBJT_MGTDEVICE VM objects used for GEM/TTM with drm2 as an
explicit object type.
2014-02-19 19:11:14 +00:00
jhb
169a4e8371 MFC 261524,261526,261527:
- Properly set the alignment flags when allocating the initial range for a
  BAR.  This only really matters when pci_do_realloc_bars is enabled and
  the initial allocation of a specific range fails.
- Simplify pci_reserve_map() by calling resource_list_reserve() to allocate
  the resource after creating a resource list entry rather than reimplementing
  it by hand.
- Add two tunables to ignore certain firmware-assigned resources.  These
  are mostly useful for debugging.
  - hw.pci.clear_bars ignores all firmware-assigned ranges for BARs when
    set.
  - hw.pci.clear_pcib ignores all firmware-assigned ranges for PCI-PCI
    bridge I/O windows when set.
2014-02-19 18:34:47 +00:00
luigi
690ab44de3 allow building without INET 2014-02-19 08:15:09 +00:00
dim
a406a87ade MFC r261977:
In sys/dev/usb/controller/musb_otg.c, fix a warning about musbotg_odevd
being unused, by adding it to the part that handles getting descriptors.

Reviewed by:	hselasky
2014-02-19 08:05:42 +00:00
dim
d3f2366e84 MFC r261916:
In sys/dev/xen/console/console.c, #if 0 an unused static function.
2014-02-19 07:59:50 +00:00
dim
4c23858008 MFC r261914:
In sys/fs/nandfs/nandfs_vfsops.c, #if 0 an unused static function.
2014-02-19 07:55:28 +00:00
dim
591aab5d2a MFC r261915:
Under sys/netpfil/ipfw, surround two IPv6-specific static functions with
#ifdef INET6, since they are unused when INET6 is disabled.
2014-02-19 07:51:58 +00:00
jhb
5b0bab6d24 MFC 261517,261520:
Convert the license on files where I am the sole copyright holder to
2 clause BSD licenses.
2014-02-18 20:27:17 +00:00
avg
db526c6842 MFC r259052: Expose spa_asize_inflation 2014-02-18 15:39:59 +00:00
mav
afa027f3f5 MFC r260236:
In dmu_zfetch_stream_reclaim() replace division with multiplication and
move it out of the loop and lock.
2014-02-18 14:56:44 +00:00
luigi
c9f2fff1da missing files from previous commit... 2014-02-18 05:46:19 +00:00
luigi
5bacc3bb87 MFH: sync the netmap code with the one in HEAD
(enhanced VALE switch, netmap pipes, emulated netmap mode).
See details in the log for svn 261909.
2014-02-18 05:01:04 +00:00
jhb
8e8bf4982f MFC 259140:
Move constants for indices in the local APIC's local vector table from
apicvar.h to apicreg.h.
2014-02-18 01:15:32 +00:00
markj
a3fafc30d3 MFC r258036:
Add IDs for the ASIX 88179 and 88178A USB to GigE adapters.

MFC r258331:
Import the axge(4) driver for the ASIX AX88178A and AX88179 USB Ethernet
adapters. Both devices support Gigabit Ethernet and USB 2.0, and the AX88179
supports USB 3.0.

MFC r258617 (by lwhsu):
Also note to add xhci(4) to kernel configuration to utilize USB 3.0

MFC r258618 (by lwhsu):
Mention axge(4)
2014-02-17 22:40:05 +00:00
jhb
6e1e8b0ada MFC 260926:
Add support for displaying VPD for PCI devices via pciconf.
- Store the length of each read-only VPD value since not all values are
  guaranteed to be ASCII values (though most are).
- Add a new pciio ioctl to fetch VPD for a single PCI device.  The values
  are returned as a list of variable length records, one for the device
  name and each keyword.
- Add a new -V flag to pciconf's list mode which displays VPD data for
  each device.
2014-02-17 22:19:49 +00:00
dim
547b2fb503 MFC r261907:
In cxgbe, conditionalize the t4_pgprot_wc() function, since it is only
used when DOT5 is defined.

Reviewed by:	np
2014-02-17 20:45:39 +00:00
dim
28dda36c5e MFC r261903:
Disable warning about unused static const variables for sys/pci/ncr.c.
2014-02-17 20:37:15 +00:00
dim
427b51912c MFC r261902:
In r260111, in sys/conf/files, I disabled warning about unused functions
for the wrong mcg.c, the one in ofed/drivers/infiniband/hw/mlx4.
Disable the warning for ofed/drivers/net/mlx4/mcg.c instead.
2014-02-17 20:31:54 +00:00
dim
28bc8939f8 MFC r261896:
After r251709, avoid a clang 3.4 warning about an unused static const
variable (uma_max_ipers), when asserts are disabled.

Reviewed by:	glebius
2014-02-17 20:25:17 +00:00
dim
7e788192f1 MFC r261899:
Similar to r260026, disable warning about unused functions for
ieee80211_adhoc.c, ieee80211_hostap.c and ieee80211_sta.c.
2014-02-17 20:19:34 +00:00
avg
489e919946 MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit bug 4390 2014-02-17 18:25:41 +00:00
avg
b0a4129370 MFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done 2014-02-17 18:16:25 +00:00
avg
c448604d7f MFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
zfs transaction
2014-02-17 18:00:24 +00:00
avg
f48946d7a0 MFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT 2014-02-17 17:51:50 +00:00
avg
1aeb2280bb MFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove 2014-02-17 17:27:52 +00:00
avg
51714698c3 MFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
fine-grained control
2014-02-17 17:11:38 +00:00
avg
370f4beb8b MFC r258715: opensolaris compat: add taskq_wait emulation 2014-02-17 15:38:10 +00:00
avg
22073dc5fc MFC r258713,262062: add taskqueue_drain_all 2014-02-17 15:32:08 +00:00
avg
cc43c81b03 MFC r258625: sdt: add support for solaris/illumos style DTRACE_PROBE macros
Note: in head KDTRACE_HOOKS is defined in opt_global.h and thus there is
no need to explicitly include any header to check that option.
In this branch we have to include opt_kdtrace.h and, so, this commit
carries additional changes to accomodate for that difference.

Sponsored by:	HybridCluster
2014-02-17 14:47:52 +00:00
avg
ad9d45d427 MFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
handlers are registered
2014-02-17 13:36:35 +00:00
avg
5add2c7be7 MFC r258291: change the ioctl definition so that the fasttrap ioctl
handler is responsible for copying in userland data
2014-02-17 13:11:15 +00:00
avg
3321f13499 MFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap 2014-02-17 13:08:20 +00:00
avg
0c979fc23f MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push %rbp" 2014-02-17 13:02:09 +00:00
avg
b46715eb45 MFC r257417: Remove references to an unused fasttrap probe hook 2014-02-17 12:57:13 +00:00
avg
1e63cd3ce5 MFC r257152: Do some cleanup of the SDT code 2014-02-17 12:48:05 +00:00
avg
8fc9b71c18 MFC r259587: Invoke the kld_* event handlers from linker_load_file() ... 2014-02-17 12:45:35 +00:00
markj
b9d68c0ed1 MFC r260043:
The arguments to sched:::off-cpu are the thread and associated process of
the thread selected to run, not the currently running thread.
2014-02-17 05:07:43 +00:00
kevlo
2c763931e1 MFC r261506:
Correct setting R92C_TXAGC_MCS11_MCS08 register.
2014-02-17 01:40:33 +00:00
kevlo
5da395405c MFC r260463:
Replace deprecated M_DONTWAIT with M_NOWAIT.
2014-02-17 01:39:03 +00:00
kevlo
ecbaab7887 MFC r260444:
Rename definition of IEEE80211_FC1_WEP to IEEE80211_FC1_PROTECTED.

The origin of WEP comes from IEEE Std 802.11-1997 where it defines
whether the frame body of MAC frame has been encrypted using WEP
algorithm or not.
IEEE Std. 802.11-2007 changes WEP to Protected Frame, indicates
whether the frame is protected by a cryptographic encapsulation
algorithm.

Reviewed by:	adrian, rpaulo
2014-02-17 01:36:53 +00:00
marcel
4bb58e4f5d MFC r260175:
Implement atomic_swap_<type>.
2014-02-16 23:08:21 +00:00
marcel
2aad389c5a MFC r260914:
In pmap_set_pte(), make sure to enforce ordering by inserting a memory fence.
2014-02-16 22:12:13 +00:00
marcel
4262006891 MFC r260666:
In the nested TLB fault handler, for a direct-mapped address, make
sure to clear the lower 12 bits.
2014-02-16 22:01:44 +00:00
marcel
60764eb6dd MFC r259908:
For ia64, use pmap_remove_pages() and not pmap_remove().
2014-02-16 20:54:26 +00:00
marcel
3869d9ba69 MFC r259838:
Add another HP iLO serial (console) port, found on Itanium servers.
2014-02-16 20:45:12 +00:00