Commit Graph

194801 Commits

Author SHA1 Message Date
brueffer
96706ee32d MFC: r261611
Add some context for the "kldload sem" command; minor other improvements.

PR:		183650
Submitted by:	Bjorn Heidotting
2014-02-14 08:29:00 +00:00
brueffer
498a399b3a MFC: r261584
In IPv6 code examples, use the correct v6 socket.
2014-02-14 08:20:32 +00:00
hselasky
eedfb76d37 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
2014-02-14 07:30:59 +00:00
kevlo
f6e16ffb73 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.
2014-02-14 03:45:49 +00:00
davidcs
be70101ca8 MFC 261861
check for defrag only when bus_dmamap_load_mbuf_sg() returns EFBIG. Comment in
qla_hw_send is moot.
2014-02-14 02:48:14 +00:00
gnn
183f607e23 MFC 260207
Convert #defines to enums so that the values are visible in the debugger.

Requested by:	gibbs
2014-02-14 00:26:30 +00:00
asomers
999d9343fa MFC r261081, r261133, and r261615
r261081
	Replace the old unix_seqpacket and unix_seqpacket_exercise
	tests, which were a little broken and not automatable, with
	unix_seqpacket_test.  It's coverage is a superset of the old
	tests and it uses ATF.  It includes test cases for bugs
	kern/185813 and kern/185812.

r261133
	Fix the Makefiles so that the tests I submitted in r261081 will
	actually get built.

r261615
	tests/sys/Makefile
		use TESTS_SUBDIRS for kern instead of SUBDIRS.  I don't
		think it makes a difference in this case, but
		TESTS_SUBDIRS is generally correct for subdirectories
		that contain tests.
2014-02-13 22:19:24 +00:00
asomers
ccd36e4300 MFC r261132
Fix the build so -DNO_TESTS is passed in various phases that don't require
tests in order to build or install.  Crucially, don't try to install tests
during the lib32 install phase.  This commit supersedes r261081, which fixed
the lib32 install phase problem, but didn't fix other phases.

Submitted by:	Garrett Cooper
Reviewed by:	sjg
2014-02-13 19:46:48 +00:00
brueffer
b27bfe4c09 MFC: r261566
Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.

PR:		185382 (based on)
Submitted by:	Loganaden Velvindron
Reviewed by:	pjd
2014-02-13 09:24:46 +00:00
markj
2a0c06b067 MFC r257600:
Initialize the struct tm before handing it to strptime(3).
2014-02-13 04:54:47 +00:00
rmh
b7969843d1 MFC r261497:
Abort when firmware isn't present in R600+ models.

More details at:
http://anonscm.debian.org/viewvc/kernel/dists/trunk/linux/debian/patches/bugfix/all/radeon-firmware-is-required-for-drm-and-kms-on-r600-onward.patch?revision=20909&view=co
2014-02-12 13:55:30 +00:00
dim
11ec5c94e7 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
2014-02-12 07:51:14 +00:00
hselasky
ab190c4854 MFC r261507:
Add more quirks for making builtin audio speakers work with more
MacBookPro's. Only tested with MacBookPro 9,2.

Obtained from:	Linux
2014-02-12 07:18:01 +00:00
hrs
f666e533af Docuemnt mount_udf(8) issue.
Submitted by:	brueffer
2014-02-11 23:11:11 +00:00
brueffer
222b98b9ae MFC: r261500
Add a license (1) and do some cleanup.

Approved by:	Stefan Bethke (original author, by private mail) (1)
2014-02-11 13:33:03 +00:00
trasz
3e89ba0a6a MFC r260389:
Fix a rare "truncated checksums" problem, which manifested like this:

WARNING: icl_pdu_check_data_digest: data digest check failed; got 0xf23b,
should be 0xdb7f23b

Sponsored by:	The FreeBSD Foundation
2014-02-11 12:01:11 +00:00
trasz
a92d8da5ad MFC r260083:
Fix extremely slow operation with data digests enabled.  This was caused
by receive code waiting for data digest even when the data segment was
empty.  It didn't actually read it, but it waited until those four bytes
become available in the socket buffer, i.e. until any other PDU (e.g. NOP)
came in.

Sponsored by:	The FreeBSD Foundation
2014-02-11 11:58:54 +00:00
trasz
1c069ec47a MFC r260255:
Properly document -u and -s.

Sponsored by:	The FreeBSD Foundation
2014-02-11 11:56:50 +00:00
brueffer
dfbfe377ea MFC: r261496
Unbreak mount_udf by passing the correct iovec length into
nmount().  This has been broken since r247861.

PR:		bin/186193
Submitted by:	Arnot Belohlavek
2014-02-11 08:20:45 +00:00
brueffer
8caff4cde9 MFC: r261487
Add qlxgbe(4) and qlxge(4) to the hardware notes.
2014-02-11 08:11:34 +00:00
brueffer
754c7b8e2b MFC: r261494
Actually install acpi_rapidstart.4.
2014-02-11 08:08:53 +00:00
brueffer
0da6b7f0d9 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.
2014-02-10 22:24:49 +00:00
brueffer
abe08fc946 MFC: r261447
Fix a typo.
2014-02-10 22:16:22 +00:00
dim
bff25c3bef MFC r261609:
Pull in upstream libcxxrt commit 8006101, which makes its cxxabi.h file
compilable just by itself.

PR:		kern/184019
2014-02-10 20:25:40 +00:00
wblock
4772da575b 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.
2014-02-10 17:37:34 +00:00
mav
511b6fbea4 MFC r261515:
Fix I/O freezes in some cases, caused by r257916.

Delaying isp_reqodx update, we should be ready to update it every time
we read it.  Otherwise requests using several indexes may be requeued
ndefinitely without ever updating the variable.
2014-02-10 16:29:50 +00:00
ae
44aad33d55 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
2014-02-10 15:23:40 +00:00
gjb
cc4ebc4422 Run ldconfig(8) rc script before building ports so
ld-elf.so.hints exists for pkg(8).

This is a direct commit to stable/10 as generate-release.sh
does not exist in head/.

PR:		186554
Sponsored by:	The FreeBSD Foundation
2014-02-10 07:16:46 +00:00
adrian
3ee8d78c97 MFC r260871:
If the flowid is available for the mbuf that finalised the creation
  of a syncache connection, copy it into the inp_flowid field.

  Without this, an incoming TCP connection won't have an inp_flowid marked
  until some data comes in, and this means that things like the per-CPU
  TCP timer option will choose a different CPU for the timer work.
  (It also means that if one grabbed the flowid via an ioctl from userland,
  it won't be available until some data has been received.)

Sponsored by:	Netflix, Inc.
2014-02-10 06:29:05 +00:00
dim
6ceb8edc35 MFC r260553 (by theraven):
Add missing C++11 typeinfos to the libcxxrt version script.

PR:		185663
2014-02-09 00:34:21 +00:00
kib
2adfb67dc9 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
2014-02-08 15:51:24 +00:00
hselasky
8f0b7f5c20 MFC r261505:
Fix a regression issue. Contiguous single segment allocations above
PAGE_SIZE bytes should only use one USB page structure. Fixes a
problem with some external drivers.
2014-02-07 07:18:52 +00:00
gnn
16b8c9f357 MFC: 261291
The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.
2014-02-07 04:34:04 +00:00
mav
9cc9d2e8b5 MFC r260949:
Make comconsole options set before its activation to be remembered.
2014-02-07 04:09:15 +00:00
mav
46b5a69e31 MFC r261449:
Fix lock acquisition in case no request space available, missed in r260097.
2014-02-07 04:02:14 +00:00
kib
ce48f3b35d MFC r261080:
The posix_fallocate(2) syscall should return error number on error,
without modifying errno.

MFC r261290:
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).
2014-02-06 19:47:17 +00:00
ae
88938f44a0 MFC r260702 (by melifaro):
Fix ipfw fwd for IPv4 traffic broken by r249894.

  Problem case:
  Original lookup returns route with GW set, so gw points to
  rte->rt_gateway.
  After that we're changing dst and performing lookup another time.
  Since fwd host is most probably directly reachable, resulting
  rte does not contain rt_gateway, so gw is not set. Finally, we
  end with packet transmitted to proper interface but wrong
  link-layer address.
2014-02-06 10:48:55 +00:00
rpaulo
d65cbb1877 MFC r261432
Fix the definition of hg_cmd.
2014-02-06 02:12:39 +00:00
hselasky
8beeaa4622 MFC r261260, r261262, r261315 and r261343:
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.
2014-02-05 08:40:02 +00:00
eadler
a27a582538 MFC r258787:
r258780 should not have applied to .S files.
2014-02-04 16:29:30 +00:00
hselasky
c578b328a3 MFC r260903:
Add support for GPS ports to UHSO driver.
2014-02-04 10:29:23 +00:00
hselasky
4cf659f127 MFC r260315:
Implement two new libusb API functions.

PR:		usb/185454
2014-02-04 10:18:29 +00:00
hselasky
2a3d1313fa MFC r261228:
When detaching a [USB] keyboard, keys might still be pressed. Ensure
that all pressed keys are released before completing the USB keyboard
detach. This will prevent so-called "ghost-keys" from appearing after
that the USB device generating the key event(s) has been detached.
2014-02-04 09:06:28 +00:00
hselasky
32eb5ff7ac MFC r261224:
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."
2014-02-04 08:59:42 +00:00
hselasky
a8836e9a4a MFC r261134:
Add more USB quirks.
2014-02-04 08:54:59 +00:00
hselasky
0f7d3b859b MFC r261123:
Reduce dmesg verbosity.
2014-02-04 08:47:43 +00:00
hselasky
5fd8780dea MFC r261004, r261005 and r261033:
Adjust the DMA delay logic so that the DMA delay does not become too small.
2014-02-04 08:44:12 +00:00
hselasky
d3208d4349 MFC r261003:
Add new quirk.

PR:		usb/185968
2014-02-04 08:37:39 +00:00
eadler
ec294fd7f5 MFC r258779,r258780,r258787,r258822:
Fix undefined behavior: (1 << 31) is not defined as 1 is an int and this
shifts into the sign bit.  Instead use (1U << 31) which gets the
expected result.

Similar to the (1 << 31) case it is not defined to do (2 << 30).

This fix is not ideal as it assumes a 32 bit int, but does fix the issue
for most cases.

A similar change was made in OpenBSD.
2014-02-04 03:36:42 +00:00
mav
d374d7f398 MFC r260996:
Fix memory and references leak due to unfreed path in case we can't
allocate bus scan CCB.
2014-02-04 00:51:06 +00:00