]>
CyberLeo.Net >> Repos - FreeBSD/stable/9.git/log
avg [Tue, 18 Feb 2014 14:06:41 +0000 (14:06 +0000)]
MFC r253819: MFV r253781 + r253871: 3894 zfs should not allow snapshot of inconsistent dataset
MFC slacker: delphij
git-svn-id: svn://svn.freebsd.org/base/stable/9@262158
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Tue, 18 Feb 2014 13:58:55 +0000 (13:58 +0000)]
MFC r250149: In case ZFS doesn't use UMA for buffers there's no need to waste memory
git-svn-id: svn://svn.freebsd.org/base/stable/9@262156
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Tue, 18 Feb 2014 13:48:50 +0000 (13:48 +0000)]
MFC r240829: remove cache entries associated with the source and the target of rename()
MFC slacker: pjd
git-svn-id: svn://svn.freebsd.org/base/stable/9@262154
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
luigi [Tue, 18 Feb 2014 05:58:36 +0000 (05:58 +0000)]
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.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262153
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
wblock [Tue, 18 Feb 2014 03:42:49 +0000 (03:42 +0000)]
MFC r261895:
Remove mention of minimum password length and upper/lower case checking,
patch supplied by Allan Jude <freebsd@allanjude.com>. Add xref to
pam_passwdqc(8), where that testing is now done.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262148
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
wblock [Tue, 18 Feb 2014 03:37:20 +0000 (03:37 +0000)]
MFC r261800:
Remove obsolete vnode(9) man page references.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262146
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
markj [Mon, 17 Feb 2014 22:43:07 +0000 (22:43 +0000)]
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)
git-svn-id: svn://svn.freebsd.org/base/stable/9@262138
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jhb [Mon, 17 Feb 2014 22:19:49 +0000 (22:19 +0000)]
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.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262134
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dim [Mon, 17 Feb 2014 20:37:15 +0000 (20:37 +0000)]
MFC r261903:
Disable warning about unused static const variables for sys/pci/ncr.c.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262131
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dim [Mon, 17 Feb 2014 20:31:54 +0000 (20:31 +0000)]
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.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262130
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dim [Mon, 17 Feb 2014 20:19:34 +0000 (20:19 +0000)]
MFC r261899:
Similar to r260026, disable warning about unused functions for
ieee80211_adhoc.c, ieee80211_hostap.c and ieee80211_sta.c.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262126
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
mav [Mon, 17 Feb 2014 20:06:09 +0000 (20:06 +0000)]
MFC r260486:
Remove very low default limit of 4 nfsd threads. nfsd's own default is
8 * hw.ncpu, that sounds more appropriate for these SMP/NCQ/... days.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262124
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 18:24:25 +0000 (18:24 +0000)]
MFC r260185: MFV r260155: 4391 panic system rather than corrupting pool if we hit bug 4390
git-svn-id: svn://svn.freebsd.org/base/stable/9@262118
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 18:16:36 +0000 (18:16 +0000)]
MFC r260835: MFV r260834: Fix memory leak of compressed buffers in l2arc_write_done
git-svn-id: svn://svn.freebsd.org/base/stable/9@262116
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 18:06:37 +0000 (18:06 +0000)]
MFC r260703: zinject must use ioctl(2) compatibility wrapper
git-svn-id: svn://svn.freebsd.org/base/stable/9@262113
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 18:00:02 +0000 (18:00 +0000)]
MFC r260704,260717: zfs: getnewvnode_reserve must be called outside of a
zfs transaction
git-svn-id: svn://svn.freebsd.org/base/stable/9@262111
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:51:59 +0000 (17:51 +0000)]
MFC r260812: traverse_visitbp: visit DMU_GROUPUSED_OBJECT before DMU_USERUSED_OBJECT
git-svn-id: svn://svn.freebsd.org/base/stable/9@262108
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:48:50 +0000 (17:48 +0000)]
MFC r260811: zdb -R: do not treat numeric parameters to a flag as more flags
git-svn-id: svn://svn.freebsd.org/base/stable/9@262105
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:46:25 +0000 (17:46 +0000)]
MFC r260703: zinject must use ioctl(2) compatibility wrapper
git-svn-id: svn://svn.freebsd.org/base/stable/9@262102
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:43:13 +0000 (17:43 +0000)]
MFC r254591,255753: Enhance the ZFS vdev layer to maintain both a
logical and a physical minimum allocation size for devices
Missed userland bits.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262100
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:28:06 +0000 (17:28 +0000)]
MFC r260706: zfs_deleteextattr: name buffer from namei is needed by zfs_remove
git-svn-id: svn://svn.freebsd.org/base/stable/9@262097
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:11:58 +0000 (17:11 +0000)]
MFC r258717: MFV r258371,r258372: 4101 metaslab_debug should allow for
fine-grained control
git-svn-id: svn://svn.freebsd.org/base/stable/9@262094
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 17:00:46 +0000 (17:00 +0000)]
MFC r255750: MFV r254750: Add support of Illumos dumps on zvol over RAID-Z.
Note that this only adds the features. FreeBSD would
still need more work to support dumping on zvols.
MFC slacker: delphij
git-svn-id: svn://svn.freebsd.org/base/stable/9@262089
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 16:47:58 +0000 (16:47 +0000)]
MFC r254112: MFV r254079: multiple ZFS issues
git-svn-id: svn://svn.freebsd.org/base/stable/9@262087
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 16:46:23 +0000 (16:46 +0000)]
MFC r254112: MFV r254079: multiple ZFS issues
git-svn-id: svn://svn.freebsd.org/base/stable/9@262086
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 16:41:45 +0000 (16:41 +0000)]
MFC r254077: MFV r254071: Fix a regression introduced by fix for Illumos bug #3834
git-svn-id: svn://svn.freebsd.org/base/stable/9@262084
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 16:33:17 +0000 (16:33 +0000)]
MFC r252840: 3836 zio_free() can be processed immediately in the common case
MFC slacker: mm
git-svn-id: svn://svn.freebsd.org/base/stable/9@262082
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 16:30:18 +0000 (16:30 +0000)]
MFC r254591,255753: Enhance the ZFS vdev layer to maintain both a
logical and a physical minimum allocation size for devices
git-svn-id: svn://svn.freebsd.org/base/stable/9@262081
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 16:17:56 +0000 (16:17 +0000)]
MFC r253441: Manually merge part of vendor import r238583 from Illumos
git-svn-id: svn://svn.freebsd.org/base/stable/9@262077
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
bdrewery [Mon, 17 Feb 2014 16:07:58 +0000 (16:07 +0000)]
MFC r261401:
Fix newsyslog(8) to use the size of the file instead of the blocks it
takes on disk, as advertised in newsyslog.conf(5).
Approved by: bapt (mentor, implicit)
git-svn-id: svn://svn.freebsd.org/base/stable/9@262076
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 15:50:40 +0000 (15:50 +0000)]
MFC r255226: Add sysctl/tunables for various metaslab variables
MFC slacker: pjd
git-svn-id: svn://svn.freebsd.org/base/stable/9@262073
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 15:38:27 +0000 (15:38 +0000)]
MFC r258715: opensolaris compat: add taskq_wait emulation
git-svn-id: svn://svn.freebsd.org/base/stable/9@262071
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 15:35:24 +0000 (15:35 +0000)]
MFC r261122: dtrace: remove unexplained 16MB limitation from dt_alloc/dt_zalloc
git-svn-id: svn://svn.freebsd.org/base/stable/9@262068
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 15:29:46 +0000 (15:29 +0000)]
MFC r258713,262062: add taskqueue_drain_all
git-svn-id: svn://svn.freebsd.org/base/stable/9@262064
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
markj [Mon, 17 Feb 2014 14:52:06 +0000 (14:52 +0000)]
MFC r260051:
When clearing relocations to __dtrace* symbols, handle both SHT_REL and
SHT_RELA sections properly instead of assuming that the relocation section
is of type SHT_REL.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262061
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 14:48:23 +0000 (14:48 +0000)]
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
git-svn-id: svn://svn.freebsd.org/base/stable/9@262059
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:58:50 +0000 (13:58 +0000)]
MFC r258622,258675: dtrace sdt: remove the ugly sname parameter of
SDT_PROBE_DEFINE
git-svn-id: svn://svn.freebsd.org/base/stable/9@262057
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:53:01 +0000 (13:53 +0000)]
MFC r255971: Fix some typos that were causing probe argument types to
show up as unknown
MFC slacker: markj
git-svn-id: svn://svn.freebsd.org/base/stable/9@262056
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:36:57 +0000 (13:36 +0000)]
MFC r260132: Allocate the probe ID unrhdr before the DTrace kld_* event
handlers are registered
git-svn-id: svn://svn.freebsd.org/base/stable/9@262055
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:33:42 +0000 (13:33 +0000)]
MFC r256148: Initialize and free the DTrace taskqueue in the dtrace
module load/unload handlers
git-svn-id: svn://svn.freebsd.org/base/stable/9@262053
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:29:48 +0000 (13:29 +0000)]
MFC r252850: Hide references to mod_lock
git-svn-id: svn://svn.freebsd.org/base/stable/9@262052
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:11:27 +0000 (13:11 +0000)]
MFC r258291: change the ioctl definition so that the fasttrap ioctl
handler is responsible for copying in userland data
git-svn-id: svn://svn.freebsd.org/base/stable/9@262049
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 13:08:07 +0000 (13:08 +0000)]
MFC r257679: Use suword32 and suword64 instead of copyout(9) in fasttrap
git-svn-id: svn://svn.freebsd.org/base/stable/9@262046
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:57:53 +0000 (12:57 +0000)]
MFC r257417: Remove references to an unused fasttrap probe hook
git-svn-id: svn://svn.freebsd.org/base/stable/9@262043
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:48:19 +0000 (12:48 +0000)]
MFC r257152: Do some cleanup of the SDT code
git-svn-id: svn://svn.freebsd.org/base/stable/9@262041
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:42:57 +0000 (12:42 +0000)]
MFC r254813,259587: Rename the kld_unload event handler to kld_unload_try
git-svn-id: svn://svn.freebsd.org/base/stable/9@262038
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:37:26 +0000 (12:37 +0000)]
MFC r254266,254309: Add event handlers for module load and unload events
This is just a merge of EVENTHANDLER.9, the actual code chnage was merged earlier.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262037
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:27:02 +0000 (12:27 +0000)]
MFC r257143: Fix a couple of bugs in the fasttrap emulation of a "push
%rbp" instruction
git-svn-id: svn://svn.freebsd.org/base/stable/9@262035
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:24:05 +0000 (12:24 +0000)]
MFC r255777: Omit "__restrict" when generating syscall argument strings
syscall argument strings are also regenerated as part of this commit
git-svn-id: svn://svn.freebsd.org/base/stable/9@262034
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:14:50 +0000 (12:14 +0000)]
MFC r255776: Give argtype struct names a different prefix than probe
struct names
git-svn-id: svn://svn.freebsd.org/base/stable/9@262033
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 12:12:32 +0000 (12:12 +0000)]
MFC r254811: call linker_file_lookup_set() with the shared lock held
git-svn-id: svn://svn.freebsd.org/base/stable/9@262032
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 11:44:58 +0000 (11:44 +0000)]
MFC r254810: Remove the kld lock macros and just use the sx(9) API
git-svn-id: svn://svn.freebsd.org/base/stable/9@262026
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 11:36:30 +0000 (11:36 +0000)]
MFC r254468,r254469: Add a "translated type" argument to SDT_PROBE_ARGTYPE()
Note: this breaks ABI compatibility with older modules with SDT probes.
My opinion is that benefits outweigh downsides, because I am not aware
of any thirdparty binary-only modules with SDT probes.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262025
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 11:28:16 +0000 (11:28 +0000)]
MFC r253720: Use kern_ioctl() rather than ioctl() for testing the FBT provider
git-svn-id: svn://svn.freebsd.org/base/stable/9@262023
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
avg [Mon, 17 Feb 2014 11:22:59 +0000 (11:22 +0000)]
MFC r252895: Add a man page for the SDT_* macros
git-svn-id: svn://svn.freebsd.org/base/stable/9@262021
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
mav [Mon, 17 Feb 2014 09:37:01 +0000 (09:37 +0000)]
MFC r261719:
Fix wrong device name in example.
PR: docs/185602
Submitted by: koitsu
git-svn-id: svn://svn.freebsd.org/base/stable/9@262018
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
markj [Mon, 17 Feb 2014 05:07:09 +0000 (05:07 +0000)]
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.
git-svn-id: svn://svn.freebsd.org/base/stable/9@262013
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Sun, 16 Feb 2014 19:41:44 +0000 (19:41 +0000)]
Direct commit to stable/9 to note that the nve(4) driver has been
deprecated.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261990
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Sun, 16 Feb 2014 11:14:36 +0000 (11:14 +0000)]
MFC: r261838
Add a deprecation notice to nve.4 and Xref nfe.4.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261973
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Sun, 16 Feb 2014 10:28:18 +0000 (10:28 +0000)]
MFC: r261655
Refer newfs and growfs users to fsck_ffs instead of
fsck, the latter does not accept the referred to "-b" flag.
The part of the change pertaining newfs has already been merged
to stable/9 in r237505, so only record that part of the merge.
PR: 82720
Submitted by: David D.W. Downey
git-svn-id: svn://svn.freebsd.org/base/stable/9@261964
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jilles [Sat, 15 Feb 2014 23:23:13 +0000 (23:23 +0000)]
MFC r242482: kdump: Also decode fcntl commands containing underscores and
digits.
The commands F_SETLK_REMOTE, F_DUPFD_CLOEXEC and F_DUP2FD_CLOEXEC were not
decoded.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261952
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kevlo [Sat, 15 Feb 2014 14:55:35 +0000 (14:55 +0000)]
MFC r255238:
Add support for DLINK DWA-127 Wireless Adapter.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261933
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Fri, 14 Feb 2014 08:31:16 +0000 (08:31 +0000)]
MFC: r261611
Add some context for the "kldload sem" command; minor other improvements.
PR: 183650
Submitted by: Bjorn Heidotting
git-svn-id: svn://svn.freebsd.org/base/stable/9@261880
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Fri, 14 Feb 2014 08:22:57 +0000 (08:22 +0000)]
MFC: r261584
In IPv6 code examples, use the correct v6 socket.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261877
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
hselasky [Fri, 14 Feb 2014 07:36:04 +0000 (07:36 +0000)]
MFC r261597, r261598 and r261599:
Apple touchpad manual page fixes:
- Add manual page for wsp driver
- Update atp driver manual page
- Install atp manual page for all platforms
git-svn-id: svn://svn.freebsd.org/base/stable/9@261874
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kevlo [Fri, 14 Feb 2014 03:30:55 +0000 (03:30 +0000)]
MFC r257957:
Mention the RT5370/RT5372 chipset.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261866
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kevlo [Fri, 14 Feb 2014 02:53:10 +0000 (02:53 +0000)]
MFC r259544, r259545, r259546, r259547, r259812, r259939, r260219, r260542,
r261118, r261124, r261330:
- Add support for the MediaTek/Ralink RT3593 chipset.
- Various minor USB WLAN fixes and improvements.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261865
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
davidcs [Fri, 14 Feb 2014 01:46:33 +0000 (01:46 +0000)]
MFC r261861
check for defrag only when bus_dmamap_load_mbuf_sg() returns EFBIG. Comment in
qla_hw_send is moot.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261862
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
markj [Thu, 13 Feb 2014 04:55:18 +0000 (04:55 +0000)]
MFC r257600:
Initialize the struct tm before handing it to strptime(3).
git-svn-id: svn://svn.freebsd.org/base/stable/9@261821
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
jilles [Wed, 12 Feb 2014 21:10:40 +0000 (21:10 +0000)]
MFC r241046: libc: Use O_CLOEXEC for various internal file descriptors.
This fixes a race condition where another thread may fork(), unintentionally
passing the descriptor to the child process.
This commit only adds O_CLOEXEC flags to open() or openat() calls where no
fcntl(fd, F_SETFD, FD_CLOEXEC) follows.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261813
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dim [Wed, 12 Feb 2014 07:51:14 +0000 (07:51 +0000)]
MFC r261680:
Pull in r200899 from upstream clang trunk:
Allow transformation of VariableArray to ConstantArray.
In the following code:
struct A { static const int sz; };
template<class T> void f() { T arr[A::sz]; }
the array 'arr' is represented as a variable size array in the template.
If 'A::sz' gets value below in the translation unit, the array in
instantiation can turn into constant size array.
This change fixes PR18633.
Differential Revision: http://llvm-reviews.chandlerc.com/D2688
This fixes "Assertion failed: (T::isKind(*this)), function castAs"
errors, which can occur when building the security/quantis port.
Reported by: ale
git-svn-id: svn://svn.freebsd.org/base/stable/9@261794
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
hselasky [Wed, 12 Feb 2014 07:24:37 +0000 (07:24 +0000)]
MFC r261507:
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.
Obtained from: Linux
git-svn-id: svn://svn.freebsd.org/base/stable/9@261793
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Tue, 11 Feb 2014 08:15:40 +0000 (08:15 +0000)]
MFC: r261487
Add qlxgbe(4) and glxge(4) to the hardware notes.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261740
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Mon, 10 Feb 2014 22:27:40 +0000 (22:27 +0000)]
MFC: r261339
MLINK ixgbe.4 to {if_ix.4, ix.4}. An update for ixgbe.4
which deals with the "ix prefix being shared by two drivers"
situation is forthcoming.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261732
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
brueffer [Mon, 10 Feb 2014 22:21:22 +0000 (22:21 +0000)]
MFC: r261447
Fix a typo.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261730
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dim [Mon, 10 Feb 2014 20:25:40 +0000 (20:25 +0000)]
MFC r261609:
Pull in upstream libcxxrt commit
8006101 , which makes its cxxabi.h file
compilable just by itself.
PR: kern/184019
git-svn-id: svn://svn.freebsd.org/base/stable/9@261727
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
wblock [Mon, 10 Feb 2014 17:41:40 +0000 (17:41 +0000)]
MFC r261522:
Describe the use of a freebsd-boot GPT partition, brought up by Scot
Hetzel <swhetzel@gmail.com> on the -doc mailing list.
Also modify the Author section to be clear that I wrote the man page,
not gptboot.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261721
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
ae [Mon, 10 Feb 2014 16:13:45 +0000 (16:13 +0000)]
MFC r261400:
Take exclusive lock only when lle isn't NULL. We don't need write access
to lle in most cases.
MFC r261583:
Unlock entry before retry.
Sponsored by: Yandex LLC
git-svn-id: svn://svn.freebsd.org/base/stable/9@261717
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gjb [Mon, 10 Feb 2014 07:17:46 +0000 (07:17 +0000)]
Run ldconfig(8) rc script before building ports so
ld-elf.so.hints exists for pkg(8).
This is a direct commit to stable/9 as generate-release.sh
does not exist in head/.
PR: 186554
Sponsored by: The FreeBSD Foundation
git-svn-id: svn://svn.freebsd.org/base/stable/9@261707
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
gnn [Sun, 9 Feb 2014 21:48:14 +0000 (21:48 +0000)]
MFC: 260796
Fix various places where we don't properly release a lock.
PR: 185043
Submitted by: Michael Bentkofsky
git-svn-id: svn://svn.freebsd.org/base/stable/9@261694
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 20:17:40 +0000 (20:17 +0000)]
MFC r259717:
drm: Lower priority of "EDID checksum is invalid" message
The priority goes from "error" to "debug".
Connectors are polled every 10 seconds. Reading EDID is part of this
polling. However, when an invalid EDID is returned, this error message
is logged. When using Newcons for instance, having a kernel message
every 10 seconds is getting annoying.
Now that it's a debug message, it'll be logged only if hw.dri.debug is
enabled. This fix console spamming for some users.
Tested by: Larry Rosenman <ler@lerctr.org>
git-svn-id: svn://svn.freebsd.org/base/stable/9@261675
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 20:08:16 +0000 (20:08 +0000)]
MFC r258549:
drm: Dereference pointers given to qsort_r()'s cmp callback
drm_le_cmp() (qsort_r()'s callback) receives pointers to elements in the
array passed to qsort_r(), not the elements themselves.
Before this fix, the use of qsort_r() shuffled the array, not sorted it,
because the compare callback accessed random memory locations, not the
expected elements.
This bug triggered an infinite loop in KDE/xserver:
1. KDE has a kded module called "randrmonitor" which queries xserver
for current monitors at startup and then listens to RandR
notifications from xserver.
2. xserver handles the query from "randrmonitor" by polling the
video device using the "drm_mode_getconnector()" ioctl. This
ioctl returns a list of connectors and, for those with a
connected monitor, the available modes. Each modes list is sorted
by the kernel before returning. When xserver gets the connectors
list, it sorts the modes lists again.
In the case of this bug, when two modes are equal (in xserver's
compare function PoV), their order is kept stable (ie. the
kernel order is kept for those two modes). And because the list
was shuffled by the kernel, the order of two equal modes was
frequently changed in the final modes list in xserver.
3. xserver compares the returned connectors list with the list
obtained earlier. In particular, it compares the sorted
modes lists for each connector. If a property of a connector
changes (eg. modes), xserver sends a "RRNotify_OutputChange"
notification.
Because of the change of order between equal modes, xserver sent
a notification after each polling of the connectors.
4. "randrmonitor" receives a notification, triggered by its query. The
notification doesn't contain the new connectors list, therefore, it
asks for the new list using the same function: go back to step #2.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261674
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 19:54:39 +0000 (19:54 +0000)]
MFC r258262:
drm: Support DRM_CAP_TIMESTAMP_MONOTONIC capability
This fixes DPMS with KDE and radeonkms. Without this, the display would
freeze when the monitor is put into sleep state, and only resumes after
several dozens of minutes once the monitor is powered on again.
Tested by: Mathias Picker <Mathias.Picker@virtual-earth.de>
git-svn-id: svn://svn.freebsd.org/base/stable/9@261673
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 19:36:27 +0000 (19:36 +0000)]
MFC r254852:
drm: Update drm_pciids.h based on Linux 3.8
This header can be easily updated using the new "gen-drm_pciids" script,
available in tools/tools/drm. The script uses the Linux' drm_pciids.h
header for new IDs, the FreeBSD's one because we add the name of the
device to each IDs, and the PCI IDs database (misc/pciids port) to fill
this name automatically for new IDS.
To call the script:
tools/tools/drm/gen-drm_pciids \
/path/to/linux/drm_pciids.h \
/path/to/freebsd/drm_pciids.h \
/path/to/pciids/pci.ids
git-svn-id: svn://svn.freebsd.org/base/stable/9@261672
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 16:38:58 +0000 (16:38 +0000)]
MFC r254853:
drm: Import drm_fixed.h from Linux 3.8
git-svn-id: svn://svn.freebsd.org/base/stable/9@261669
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 16:16:24 +0000 (16:16 +0000)]
MFC r254848, r258930:
drm: Import drm_pcie_get_speed_cap_mask() in drm_pci.c
This comes with several PCI_VENDOR_ID_* defines which should go in a
more central place.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261667
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 16:07:24 +0000 (16:07 +0000)]
MFC r254841:
drm: Import list_for_each_entry_safe_from() macro
git-svn-id: svn://svn.freebsd.org/base/stable/9@261666
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 16:01:18 +0000 (16:01 +0000)]
MFC r254840:
drm: Use DRM_IF_MAJOR & DRM_IF_MINOR from drm_core.h
git-svn-id: svn://svn.freebsd.org/base/stable/9@261665
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 15:56:15 +0000 (15:56 +0000)]
MFC r254838:
drm: In drm_gem_name_create(), verify argument before acquiring lock
Submitted by: J.R. Oldroyd <jr@opal.com>
git-svn-id: svn://svn.freebsd.org/base/stable/9@261664
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 15:48:49 +0000 (15:48 +0000)]
MFC r254836, r254837:
drm: Support gem_open_object() and gem_close_object() callbacks
... in struct drm_driver_info.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261662
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 15:34:38 +0000 (15:34 +0000)]
MFC r254835:
drm: Fix typo in KASSERT message: s/Dandling/Dangling/
git-svn-id: svn://svn.freebsd.org/base/stable/9@261661
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 15:27:26 +0000 (15:27 +0000)]
MFC r254833:
drm: Import Linux commit
cd004b3f4cd4169815c82bf9e424fda06978898a
Author: Shirish S <s.shirish@samsung.com>
Date: Thu Aug 30 07:04:06 2012 +0000
drm: edid: add support for E-DDC
The current logic for probing ddc is limited to
2 blocks (256 bytes), this patch adds support
for the 4 block (512) data.
To do this, a single 8-bit segment index is
passed to the display via the I2C address 30h.
Data from the selected segment is then immediately
read via the regular DDC2 address using a repeated
I2C 'START' signal.
Signed-off-by: Shirish S <s.shirish@samsung.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Ville Syrjala <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
git-svn-id: svn://svn.freebsd.org/base/stable/9@261660
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 15:17:57 +0000 (15:17 +0000)]
MFC r254821:
drm: Fix cleanup if device initialization fails
This plugs some memory leaks.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261659
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 14:58:47 +0000 (14:58 +0000)]
MFC r254820:
drm: Use driver-provided "use_msi" callback to determine if MSI is blacklisted
For now, keep the static array for i915. But eventually, it should be
moved to a callback in the driver itself.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261658
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 14:02:39 +0000 (14:02 +0000)]
MFC r254819:
drm: Don't delete already deleted iicbus child from drm_iic_dp_aux
The iic_dp_aux_detach callback is therefore useless: it's replaced by
bus_generic_detach. This fixes a "General protection fault" panic during
second (incorrect) deletion of the child.
Tested by: kwm@
Reviewed by: ray@
git-svn-id: svn://svn.freebsd.org/base/stable/9@261654
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 13:56:37 +0000 (13:56 +0000)]
MFC r254818:
drm: Move definition of EREMOTEIO to drmP.h
It will be used by both i915 and radeon drivers.
Add ERESTARTSYS definition at the same time.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261653
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sun, 9 Feb 2014 13:50:08 +0000 (13:50 +0000)]
MFC r254817:
drm: Import drm_dp_helper.c from Linux 3.8-rc3
While here, update drm_dp_helper.h to better match Linux one.
git-svn-id: svn://svn.freebsd.org/base/stable/9@261652
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dim [Sun, 9 Feb 2014 00:37:16 +0000 (00:37 +0000)]
MFC r255093 (by theraven):
Don't use _Unwind_Backtrace() on ARM as it's currently missing from
our libgcc_s. andrew@ has patches to add it, so this can be reverted
and sync'd with upstream later.
MFC r255815 (by theraven):
Import a new libcxxrt. This fixes some potential crashing in the
demangler.
MFC r260553 (by theraven):
Add missing C++11 typeinfos to the libcxxrt version script.
PR: 185663
git-svn-id: svn://svn.freebsd.org/base/stable/9@261645
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
kib [Sat, 8 Feb 2014 15:51:42 +0000 (15:51 +0000)]
MFC r261354:
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.
PR: threads/186309
git-svn-id: svn://svn.freebsd.org/base/stable/9@261637
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f
dumbbell [Sat, 8 Feb 2014 11:05:48 +0000 (11:05 +0000)]
MFC r254798:
drm: Fix leak of connector->edid_blob_ptr
git-svn-id: svn://svn.freebsd.org/base/stable/9@261632
ccf9f872 -aa2e-dd11-9fc8-
001c23d0bc1f