]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoAllow nesting of simplebuses.
Nathan Whitehorn [Sun, 2 Feb 2014 05:41:12 +0000 (05:41 +0000)]
Allow nesting of simplebuses.

10 years agoFix typo. Sorry for breakage!
Nathan Whitehorn [Sun, 2 Feb 2014 05:21:12 +0000 (05:21 +0000)]
Fix typo. Sorry for breakage!

10 years agoUse m_defrag() instead of m_collapse() to compact a long mbuf chain
Bryan Venteicher [Sun, 2 Feb 2014 05:20:46 +0000 (05:20 +0000)]
Use m_defrag() instead of m_collapse() to compact a long mbuf chain

This should be an infrequent occurrence, so remove the per-queue
counters in favor of just global counters in the softc.

10 years agoDo not place the sglist used for Rx/Tx on the stack
Bryan Venteicher [Sun, 2 Feb 2014 05:15:36 +0000 (05:15 +0000)]
Do not place the sglist used for Rx/Tx on the stack

The sglist segment array has grown to a bit over 512 bytes (on
64-bit system) which is more than ideally should be put on the
stack. Instead allocate an appropriately sized sglist and hang
it off each Rx/Tx queue structure.

Bump the maximum number of Tx segments to 64 to make it unlikely
we'll have defragment an mbuf chain. Our previous count was
rounded up to this value since it is the next power of two, so
effective memory usage should not change.

Also only allocate the maximum number of Tx segments if TSO was
negotiated.

10 years agoUpdate all arm code that manipulates the PSR registers to use modern syntax.
Ian Lepore [Sun, 2 Feb 2014 00:48:15 +0000 (00:48 +0000)]
Update all arm code that manipulates the PSR registers to use modern syntax.

It turns out the version of gas we're using interprets the old '_all' mask
as 'fc' instead of 'fsxc'.  That is, "all" doesn't really mean "all".

This was the cause of the "wrong-endian register restore" bug that's
been causing problems with some cortex-a9 chips.  The 'endian' bit in the
spsr register would never get changed (it falls into the 'x' mask group)
and the first return-from-exception would fail if the chip had powered on
with garbage in the spsr register that included the big-endian bit.  It's
unknown why this affected only certain cortex-a9 chips.

10 years agoSwitch default Book-E scheduler to ULE, which works now, and enable
Nathan Whitehorn [Sat, 1 Feb 2014 20:56:50 +0000 (20:56 +0000)]
Switch default Book-E scheduler to ULE, which works now, and enable
CAPABILITIES stuff required to make ssh work.

Hopefully, Book-E can eventually be added to GENERIC, which would avoid
this kind of issue with bitrot. That will require figuring out how to link
Book-E and AIM kernels at the same address, however...

10 years agoULE works on Book-E since r258002, so remove statements to the contrary.
Nathan Whitehorn [Sat, 1 Feb 2014 20:46:35 +0000 (20:46 +0000)]
ULE works on Book-E since r258002, so remove statements to the contrary.

10 years agoAvoid spurious compiler warning about an uninitialized variable.
Nathan Whitehorn [Sat, 1 Feb 2014 20:06:52 +0000 (20:06 +0000)]
Avoid spurious compiler warning about an uninitialized variable.

10 years agoFix typo.
Nathan Whitehorn [Sat, 1 Feb 2014 19:25:15 +0000 (19:25 +0000)]
Fix typo.

10 years agoIn _pthread_kill(), if passed pthread is current thread, do not send
Konstantin Belousov [Sat, 1 Feb 2014 18:13:18 +0000 (18:13 +0000)]
In _pthread_kill(), if passed pthread is current thread, do not send
the signal second time, by adding the missed else before if statement.

While there, postpone initializing local curthread variable until
passed signal number is checked for validity.

Submitted by: John Wolfe <jlw@xinuos.com>
PR: threads/186309
MFC after: 1 week

10 years agoFix AT91SAM9260 to work with PA rather than VA device addresses.
Warner Losh [Sat, 1 Feb 2014 17:53:35 +0000 (17:53 +0000)]
Fix AT91SAM9260 to work with PA rather than VA device addresses.

10 years agoProvide a simpler and more standards-compliant simplebus implementation to
Nathan Whitehorn [Sat, 1 Feb 2014 17:41:54 +0000 (17:41 +0000)]
Provide a simpler and more standards-compliant simplebus implementation to
get the Routerboard 800 up and running with the vendor device tree. This
does not implement some BERI-specific features (which hopefully won't be
necessary soon), so move the old code to mips/beri, with a higher attach
priority when built, until MIPS interrupt domain support is rearranged.

10 years agoOpen Firmware interrupt specifiers can consist of arbitrary-length byte
Nathan Whitehorn [Sat, 1 Feb 2014 17:17:35 +0000 (17:17 +0000)]
Open Firmware interrupt specifiers can consist of arbitrary-length byte
strings and include arbitrary information (IRQ line/domain/sense). When the
ofw_bus_map_intr() API was introduced, it assumed that, as on most systems,
these were either 1 cell, containing an interrupt line, or 2, containing
a line number plus a sense code. It turns out a non-negligible number of
ARM systems use 3 (or even 4!) cells for interrupts, so make this more
general.

10 years agoRemove the .Ex macro that I used for testing.
Christian Brueffer [Sat, 1 Feb 2014 12:33:58 +0000 (12:33 +0000)]
Remove the .Ex macro that I used for testing.

Pointy hat: brueffer

10 years agoBring the exit status wording closer to what .Ex would produce.
Christian Brueffer [Sat, 1 Feb 2014 12:30:00 +0000 (12:30 +0000)]
Bring the exit status wording closer to what .Ex would produce.
Fixes a typo in the process.

MFC after: 1 week

10 years agoAdd definition for NetBSD 7.0, which is referenced in several manpages.
Sergey Kandaurov [Sat, 1 Feb 2014 10:36:35 +0000 (10:36 +0000)]
Add definition for NetBSD 7.0, which is referenced in several manpages.

Discussed with: uqs
MFC after: 5 days

10 years agoMerge mdocml v1.12.3 into head
Ulrich Spörlein [Sat, 1 Feb 2014 09:27:57 +0000 (09:27 +0000)]
Merge mdocml v1.12.3 into head

MFC after: 2 weeks

10 years agoAdd a comment about the origin of some structures, defines and so on.
Hans Petter Selasky [Sat, 1 Feb 2014 06:58:16 +0000 (06:58 +0000)]
Add a comment about the origin of some structures, defines and so on.

MFC after: 1 week

10 years agoAdd hwpmc(4) support for the PowerPC 970 class processors, direct events.
Justin Hibbits [Sat, 1 Feb 2014 02:03:50 +0000 (02:03 +0000)]
Add hwpmc(4) support for the PowerPC 970 class processors, direct events.
This also fixes asserts on removal of the module for the mpc74xx.

The PowerPC 970 processors have two different types of events: direct events
and indirect events.  Thus far only direct events are supported.  I included
some documentation in the driver on how indirect events work, but support is
for the future.

MFC after: 1 month

10 years agoTurn sandboxing on by default.
Dag-Erling Smørgrav [Sat, 1 Feb 2014 00:07:16 +0000 (00:07 +0000)]
Turn sandboxing on by default.

10 years agoMLINK ixgbe.4 to {if_ix.4, ix.4}. An update for ixgbe.4
Christian Brueffer [Fri, 31 Jan 2014 23:44:54 +0000 (23:44 +0000)]
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.

Thanks to dwhite for the ixgbe history lesson.

MFC after: 1 week

10 years agoMove these for diff reduction against FDT work.
Warner Losh [Fri, 31 Jan 2014 23:38:05 +0000 (23:38 +0000)]
Move these for diff reduction against FDT work.

10 years agoMinor cleanup of comments.
Warner Losh [Fri, 31 Jan 2014 23:28:18 +0000 (23:28 +0000)]
Minor cleanup of comments.

10 years agoFix silly typo...
Warner Losh [Fri, 31 Jan 2014 23:18:30 +0000 (23:18 +0000)]
Fix silly typo...

10 years agoFix a range check for maximum transmit length. The existing code was
Hans Petter Selasky [Fri, 31 Jan 2014 22:42:26 +0000 (22:42 +0000)]
Fix a range check for maximum transmit length. The existing code was
off by 4 bytes in one case.

Approved by: kevlo @
MFC after: 2 weeks

10 years agoImport mdocml version 1.12.3
Ulrich Spörlein [Fri, 31 Jan 2014 19:59:03 +0000 (19:59 +0000)]
Import mdocml version 1.12.3

10 years agoBack out r261266 pending security buy-in.
Jamie Gritton [Fri, 31 Jan 2014 17:39:51 +0000 (17:39 +0000)]
Back out r261266 pending security buy-in.

  r261266:
  Add a jail parameter, allow.kmem, which lets jailed processes access
  /dev/kmem and related devices (i.e. grants PRIV_IO and PRIV_KMEM_WRITE).
  This in conjunction with changing the drm driver's permission check from
  PRIV_DRIVER to PRIV_KMEM_WRITE will allow a jailed Xorg server.

10 years agoSort Xr's.
Sergey Kandaurov [Fri, 31 Jan 2014 17:15:56 +0000 (17:15 +0000)]
Sort Xr's.

10 years ago[mdoc] Avoid a line break.
Sergey Kandaurov [Fri, 31 Jan 2014 16:27:06 +0000 (16:27 +0000)]
[mdoc] Avoid a line break.

10 years agoSwitch to using PAs rather than VAs for the addresses we map for
Warner Losh [Fri, 31 Jan 2014 15:38:05 +0000 (15:38 +0000)]
Switch to using PAs rather than VAs for the addresses we map for
devices. This is a nop, except for what's reported by atmelbus for the
resources.

It would be nice if we could dymanically allocated these things, but
the pmap_mapdev panics if we don't keep the static mappings, so we
still need to play the carefully allocate VA space between all
supported SoC game.

User's with their own devices may need to make adjustments.

10 years agoRename the AMD MSR_PERFCTR[0-3] so the Pentium Pro MSR_PERFCTR[0-1]
Tijl Coosemans [Fri, 31 Jan 2014 14:29:34 +0000 (14:29 +0000)]
Rename the AMD MSR_PERFCTR[0-3] so the Pentium Pro MSR_PERFCTR[0-1]
aren't redefined.

Reported by: "Trivedi, Nishank" <Nishank.Trivedi@netapp.com>
Discussed with: kib

10 years agoUpgrade to OpenSSH 6.5p1.
Dag-Erling Smørgrav [Fri, 31 Jan 2014 13:12:02 +0000 (13:12 +0000)]
Upgrade to OpenSSH 6.5p1.

10 years agoPull up vendor changes up to 2014-01-29
Ulrich Spörlein [Fri, 31 Jan 2014 12:26:30 +0000 (12:26 +0000)]
Pull up vendor changes up to 2014-01-29

- move local overrides into mdoc.local
- syncs us with git commit 819839b66c80e8dabe6cb24ea6319c26c9a2be14

Discussed with: ru
MFC after: 2 weeks

10 years agoo NetBSD 6.1.3 added.
Maxim Konovalov [Fri, 31 Jan 2014 08:48:25 +0000 (08:48 +0000)]
o NetBSD 6.1.3 added.

10 years agoFix for unexpected selection with two fingers sometimes.
Hans Petter Selasky [Fri, 31 Jan 2014 07:14:21 +0000 (07:14 +0000)]
Fix for unexpected selection with two fingers sometimes.
Fix for unexpected scrolling when click with two fingers.

Submitted by: Huang Wen Hui <huanghwh@gmail.com>
MFC after: 1 week

10 years agoadd a few missing links...
John-Mark Gurney [Fri, 31 Jan 2014 03:57:49 +0000 (03:57 +0000)]
add a few missing links...

Submitted by: J David
MFC after: 1 week

10 years agoUnbreak non-SMP builds. This was broken by r259284. Also, reorganize the
Justin Hibbits [Fri, 31 Jan 2014 03:55:34 +0000 (03:55 +0000)]
Unbreak non-SMP builds.  This was broken by r259284.  Also, reorganize the
code introduced in that revision a bit.

Reviewed by: nwhitehorn
MFC after: 3 weeks

10 years agoHack: Add explicit depends on bus_if.h and device_if.h to avoid a
Warner Losh [Fri, 31 Jan 2014 01:34:55 +0000 (01:34 +0000)]
Hack: Add explicit depends on bus_if.h and device_if.h to avoid a
chicken and egg problem in some compilation environments.

10 years agoWhen mapping an address, the bsh needs the same offset we do for other
Warner Losh [Fri, 31 Jan 2014 01:18:34 +0000 (01:18 +0000)]
When mapping an address, the bsh needs the same offset we do for other
things.

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 22:26:51 +0000 (22:26 +0000)]
Merge from CheriBSD:
commit 1b41f6de7ca09e04fdc6f66bc478ea6c981a41b9
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:59:02 2014 +0000

    Now that mtree is always nmtree use it as mtree

Tested on: ref9-amd64
X-MFC after: never
Sponsored by: DARPA, AFRL

10 years agoThe -B flag is intended to take an argument.
Brooks Davis [Thu, 30 Jan 2014 21:47:12 +0000 (21:47 +0000)]
The -B flag is intended to take an argument.

Fix a couple typos in comments.

MFC after: 4 weeks
Sponsored by: DARPA, ARFL

10 years agoRegenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW.
Brooks Davis [Thu, 30 Jan 2014 21:43:38 +0000 (21:43 +0000)]
Regenerate for WITHOUT_FMTREE and WITHOUT_NCURSESW.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoAdd file missed in r261296.
Brooks Davis [Thu, 30 Jan 2014 21:41:25 +0000 (21:41 +0000)]
Add file missed in r261296.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:37:43 +0000 (21:37 +0000)]
Merge from CheriBSD:
commit 2d581e8caf79d7a0f5a24590eccd06da90cccb74
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:57:51 2014 +0000

    Add WITHOUT_FMTREE to disable building fmtree.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:32:25 +0000 (21:32 +0000)]
Merge from CheriBSD:
commit 70b8f0c127db6b80411789d237b403cc64a93573
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:53:57 2014 +0000

    Move mtree.5 to usr.sbin/nmtree.
    Remove note that mtree 2.0 format files aren't supported.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:25:01 +0000 (21:25 +0000)]
Merge from CheriBSD:
commit 6b569451b92c48ccf1768da32e7e89189e1aa253
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Mon Jan 27 22:50:46 2014 +0000

    Always install nmtree as mtree.
    For compability, link mtree to nmtree.

X-MFC after: never
Sponsored by: DARPA, AFRL

10 years agoMerge from CheriBSD:
Brooks Davis [Thu, 30 Jan 2014 21:08:36 +0000 (21:08 +0000)]
Merge from CheriBSD:
commit c1acf022c533c5ae27e0cd556977eafe3f5959eb
Author: Brooks Davis <brooks@one-eyed-alien.net>
Date:   Fri Jan 17 21:46:44 2014 +0000

    Add an option WITHOUT_NCURSESW to suppress building and linking to
    libncursesw.  While wide character support it useful we'd like to
    only need one ncurses library on embedded systems.

MFC after: 4 weeks
Sponsored by: DARPA, AFRL

10 years agoRevert outdated info related to WITH_LIBCPLUSPLUS that was included in
Brooks Davis [Thu, 30 Jan 2014 20:54:56 +0000 (20:54 +0000)]
Revert outdated info related to WITH_LIBCPLUSPLUS that was included in
r261072.  src.conf.5 now matches makeman's output.

10 years agoRemove an unneeded space in the BERI merge.
Brooks Davis [Thu, 30 Jan 2014 20:39:56 +0000 (20:39 +0000)]
Remove an unneeded space in the BERI merge.

10 years agoThe timestamp bit is number 17, and not number 9, in the stat error
George V. Neville-Neil [Thu, 30 Jan 2014 18:32:33 +0000 (18:32 +0000)]
The timestamp bit is number 17, and not number 9, in the stat error
field of the receive descriptor.

MFC after: 1 week

10 years agoThe posix_madvise(3) and posix_fadvise(2) should return error on
Konstantin Belousov [Thu, 30 Jan 2014 18:04:39 +0000 (18:04 +0000)]
The posix_madvise(3) and posix_fadvise(2) should return error on
failure, same as posix_fallocate(2).

Noted by: Bob Bishop <rb@gid.co.uk>
Discussed with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoVendor import of OpenSSH 6.5p1.
Dag-Erling Smørgrav [Thu, 30 Jan 2014 10:56:49 +0000 (10:56 +0000)]
Vendor import of OpenSSH 6.5p1.

10 years agoBump copyright dates
Dag-Erling Smørgrav [Thu, 30 Jan 2014 08:37:23 +0000 (08:37 +0000)]
Bump copyright dates

10 years agoImport libc++ 3.4 release. This contains a lot of bugfixes, and some
Dimitry Andric [Thu, 30 Jan 2014 07:44:22 +0000 (07:44 +0000)]
Import libc++ 3.4 release.  This contains a lot of bugfixes, and some
preliminary support for C++1y.

MFC after: 3 weeks

10 years agoFix the name of the dts file for the HL201...
Warner Losh [Thu, 30 Jan 2014 03:14:36 +0000 (03:14 +0000)]
Fix the name of the dts file for the HL201...

10 years agoVendor import of libc++ tags/RELEASE_34/final r197960:
Dimitry Andric [Wed, 29 Jan 2014 19:30:27 +0000 (19:30 +0000)]
Vendor import of libc++ tags/RELEASE_34/final r197960:
https://llvm.org/svn/llvm-project/libcxx/tags/RELEASE_34/final@197960

10 years agoRessurect the local change documenting
Sergey Kandaurov [Wed, 29 Jan 2014 19:28:52 +0000 (19:28 +0000)]
Ressurect the local change documenting
authpf's requirement for a mounted fdescfs(5).

PR: docs/186250
MFC after: 1 week

10 years agoFix the ordering of the arguments to printf in
Nick Hibma [Wed, 29 Jan 2014 16:24:50 +0000 (16:24 +0000)]
Fix the ordering of the arguments to printf in
uhub_child_location_string(). This produced bogus information in

dev.<USB driver>.<id>.%location

output from sysctl.

MFC after: 2 weeks

10 years agoMicro-optimize 8-bit blanking. This is the same as in ofw_syscons.
Justin Hibbits [Wed, 29 Jan 2014 15:50:01 +0000 (15:50 +0000)]
Micro-optimize 8-bit blanking.  This is the same as in ofw_syscons.

Reviewed by: ray
MFC after: 1 week

10 years agoEnhance the support for PCI legacy INTx interrupts and enable them in
John Baldwin [Wed, 29 Jan 2014 14:56:48 +0000 (14:56 +0000)]
Enhance the support for PCI legacy INTx interrupts and enable them in
the virtio backends.
- Add a new ioctl to export the count of pins on the I/O APIC from vmm
  to the hypervisor.
- Use pins on the I/O APIC >= 16 for PCI interrupts leaving 0-15 for
  ISA interrupts.
- Populate the MP Table with I/O interrupt entries for any PCI INTx
  interrupts.
- Create a _PRT table under the PCI root bridge in ACPI to route any
  PCI INTx interrupts appropriately.
- Track which INTx interrupts are in use per-slot so that functions
  that share a slot attempt to distribute their INTx interrupts across
  the four available pins.
- Implicitly mask INTx interrupts if either MSI or MSI-X is enabled
  and when the INTx DIS bit is set in a function's PCI command register.
  Either assert or deassert the associated I/O APIC pin when the
  state of one of those conditions changes.
- Add INTx support to the virtio backends.
- Always advertise the MSI capability in the virtio backends.

Submitted by: neel (7)
Reviewed by: neel
MFC after: 2 weeks

10 years agoAdd libexecinfo.
Sergey Kandaurov [Wed, 29 Jan 2014 14:14:09 +0000 (14:14 +0000)]
Add libexecinfo.

MFC after: 3 days

10 years agoAdd a jail parameter, allow.kmem, which lets jailed processes access
Jamie Gritton [Wed, 29 Jan 2014 13:41:13 +0000 (13:41 +0000)]
Add a jail parameter, allow.kmem, which lets jailed processes access
/dev/kmem and related devices (i.e. grants PRIV_IO and PRIV_KMEM_WRITE).
This in conjunction with changing the drm driver's permission check from
PRIV_DRIVER to PRIV_KMEM_WRITE will allow a jailed Xorg server.

Submitted by: netchild
MFC after: 1 week

10 years agor261230 broke the cases where the amount of data to be read is not
Dag-Erling Smørgrav [Wed, 29 Jan 2014 12:48:19 +0000 (12:48 +0000)]
r261230 broke the cases where the amount of data to be read is not
known in advance, or where the caller doesn't care and just keeps
reading until it hits EOF.

In fetch_read(): the socket is non-blocking, so read() will return 0
on EOF, and -1 (errno == EAGAIN) when the connection is still open but
there is no data waiting.  In the first case, we should immediately
return 0.  The EINTR case was also broken, although not in a way that
matters.

In fetch_writev(): use timersub() and timercmp() as in fetch_read().

In http_fillbuf(): set errno to a sensible value when an invalid chunk
header is encountered.

In http_readfn(): as in fetch_read(), a zero return from down the
stack indicates EOF, not an error.  Furthermore, when io->error is
EINTR, clear it (but no errno) before returning so the caller can
retry after dealing with the interrupt.

MFC after: 3 days

10 years ago- Remove some dead code.
Hans Petter Selasky [Wed, 29 Jan 2014 12:34:05 +0000 (12:34 +0000)]
- Remove some dead code.
- Use system provided functions for HID report requests.
- Nice the mode setting, because the USB hardware does appear to
handle the commands right away.

MFC after: 1 week

10 years agoRestore the Nx macro lost in transit.
Sergey Kandaurov [Wed, 29 Jan 2014 11:39:58 +0000 (11:39 +0000)]
Restore the Nx macro lost in transit.
This matches upstream.

PR: 186205
Submitted by: naddy
MFC after: 3 days

10 years agoAdd support for trackpads found in Apple MacBook products. While at it
Hans Petter Selasky [Wed, 29 Jan 2014 10:42:01 +0000 (10:42 +0000)]
Add support for trackpads found in Apple MacBook products. While at it
add some missing devd entries.

Submitted by: Huang Wen Hui <huanghwh@gmail.com>
MFC after: 1 week

10 years agoOnly declare `bysz' variable under little endian archs.
Kai Wang [Wed, 29 Jan 2014 09:58:05 +0000 (09:58 +0000)]
Only declare `bysz' variable under little endian archs.

10 years agoUse a loop of dcbz, instead of calling bzero() to zero a page. This matches
Justin Hibbits [Wed, 29 Jan 2014 05:58:08 +0000 (05:58 +0000)]
Use a loop of dcbz, instead of calling bzero() to zero a page.  This matches
what is done in mmu_oea64.c.

MFC after: 1 month

10 years agoDon't build BSDL dtc if the GPL dtc is enabled.
Warner Losh [Wed, 29 Jan 2014 05:00:04 +0000 (05:00 +0000)]
Don't build BSDL dtc if the GPL dtc is enabled.

10 years agolink mbuf to m_append so it can be found...
John-Mark Gurney [Tue, 28 Jan 2014 23:40:02 +0000 (23:40 +0000)]
link mbuf to m_append so it can be found...

Pointed out by: J David
MFC after: 1 week

10 years agoSpeculatively replace a cp with a cat for gathering data on a
Peter Wemm [Tue, 28 Jan 2014 22:23:39 +0000 (22:23 +0000)]
Speculatively replace a cp with a cat for gathering data on a
sporadic parallel build failure in the FreeBSD cluster on many-core
systems with ZFS.  cp uses mmap in this scenario, cat does not.

10 years agoFix clang warning.
Warner Losh [Tue, 28 Jan 2014 22:07:16 +0000 (22:07 +0000)]
Fix clang warning.

10 years agoPrevent races in accesses of the software crypto session array.
Benno Rice [Tue, 28 Jan 2014 22:02:29 +0000 (22:02 +0000)]
Prevent races in accesses of the software crypto session array.

swcr_newsession can change the pointer for swcr_sessions which races with
swcr_process which is looking up entries in this array.

Add a rwlock that protects changes to the array pointer so that
swcr_newsession and swcr_process no longer race.

Original patch by: Steve O'Hara-Smith <Steve.OHaraSmith@isilon.com>
Reviewed by: jmg
Sponsored by: EMC / Isilon Storage Division

10 years agomdoc: fix several uses of the Fx macro to point to actual releases.
Ulrich Spörlein [Tue, 28 Jan 2014 21:40:10 +0000 (21:40 +0000)]
mdoc: fix several uses of the Fx macro to point to actual releases.

Found by:  make manlint

10 years agoAdd FreeBSD 2.2.9 which aout(4) references.
Ulrich Spörlein [Tue, 28 Jan 2014 21:40:03 +0000 (21:40 +0000)]
Add FreeBSD 2.2.9 which aout(4) references.

Discussed with: kib

10 years agoAdd FreeBSD 2.2.9, the April Fools release.
Ulrich Spörlein [Tue, 28 Jan 2014 21:39:46 +0000 (21:39 +0000)]
Add FreeBSD 2.2.9, the April Fools release.

I decided not to extend the graph to the actual point in time when it
was released, that would just look silly.

10 years agoMerge from projects/elftoolchain: Upgrade libelf and libdwarf to newer
Kai Wang [Tue, 28 Jan 2014 21:38:54 +0000 (21:38 +0000)]
Merge from projects/elftoolchain: Upgrade libelf and libdwarf to newer
versions from elftoolchain upstream (r2974).  Convert ctfconvert to
use the APIs from the new libdwarf and make ctfconvert work with Clang
3.4.

__FreeBSD_version is bumped to 1100006.

A list of notable changes:

[libelf]

* The old libelf source code in lib/libelf has been removed.
  Instead, the new libelf is built from contrib/elftoolchain/libelf.
* Manual pages are largely improved.
* Internal implementation was refactored and improved for better
  correctness and portability.
* Fixed a few memory leaks.
* Extended with extension APIs `elf_open()` and `elf_openmemory()`.
  These APIs are similar to `elf_begin()` and `elf_memory()`
  respectively, except that they return an ELF descriptor of kind
  `ELF_K_NONE` instead of an error if the object being opened could
  not be parsed.
* Implement support for translating sections of type ELF_T_VDEF and
  ELF_T_VNEED.
* Improve `elf_update()` to check that the executable header, the
  program header table, section contents and the section header table
  do not overlap, and to ensure that gaps between extents are
  filled with the fill character specified by `elf_fill()`.
* Allow `Elf_Data` descriptors to have types and alignments differing
  from their containing section.
* Remove functionality controlled by `LIBELF_TEST_HOOKS`.
* Support processing of BSD-flavor archives.
* Add knowledge of section types `SHT_GNU_ATTRIBUTES` and
  `SHT_GNU_LIBLIST`.
* Use elftoolchain style symbol versioning.
* Shared library version is bumped.

[libdwarf]

* The old libdwarf source code in lib/libdwarf has been removed.
  Instead, the new libdwarf is built from contrib/elftoolchain/libdwarf.
* Support full DWARF3 and partial DWARF4 parsing.
* Support DWARF2 generation.
* Support for DWARF line number, call frame, location expression,
  macro info and address ranges, among other things.
* The APIs for the new libdwarf are mostly compatible with the widely
  used LGPL libdwarf. Some of the incompatible APIs from the old
  libdwarf are kept as its own extensions. All the APIs are documented.
* Use elftoolchain style symbol versioning.
* Shared library version is bumped.

[ctfconvert]

* Switch to the APIs from the new libdwarf.
* Improve die_mem_offset() so that DW_AT_data_member_location attributes
  generated by Clang 3.4 can be handled properly.
* Make use of DW_AT_byte_size attribute of the member DIE to calculate
  the bits occupied by the member's type, without actually resolving
  the type. This way ctfconvert can deal with the case that Clang 3.4
  sometimes emits DIE for struct/union member before emitting the DIE
  for the type of that member.

Obtained from: elftoolchain
No objection: -toolchain mailing list

10 years agoMFH@261244.
Kai Wang [Tue, 28 Jan 2014 21:30:05 +0000 (21:30 +0000)]
MFH@261244.

10 years agoAdjust r239672 from rrs and r258821 from eadler.
Peter Wemm [Tue, 28 Jan 2014 21:13:15 +0000 (21:13 +0000)]
Adjust r239672 from rrs and r258821 from eadler.

By definition, the very first FIN is not a duplicate. Process it normally
and don't feed it to congestion control as though it were a dupe.  Don't
prevent CC from seeing later dupe acks while in a half close state.

10 years agoSome BIOSes incorrectly use standard memory resource ranges to list
John Baldwin [Tue, 28 Jan 2014 20:53:33 +0000 (20:53 +0000)]
Some BIOSes incorrectly use standard memory resource ranges to list
the memory ranges that they decode for downstream devices rather than
creating ResourceProducer range resource entries.  The result is that
we allocate the full range to the PCI root bridge device causing
allocations in child devices to all fail.

As a workaround, ignore any standard memory resources on a PCI root
bridge device.  It is normal for a PCI root bridge to allocate an I/O
resource for the I/O ports used for PCI config access, but I have not
seen any PCI root bridges that legitimately allocate a memory resource.

Reviewed by: jkim
MFC after: 1 week

10 years agoDecrease lock contention within the TCP accept case by removing
George V. Neville-Neil [Tue, 28 Jan 2014 20:28:32 +0000 (20:28 +0000)]
Decrease lock contention within the TCP accept case by removing
the INP_INFO lock from tcp_usr_accept.  As the PR/patch states
this was following the advice already in the code.
See the PR below for a full disucssion of this change and its
measured effects.

PR: 183659
Submitted by: Julian Charbon
Reviewed by: jhb

10 years agoMFH@261240.
Kai Wang [Tue, 28 Jan 2014 19:12:31 +0000 (19:12 +0000)]
MFH@261240.

10 years agoChange date again.
Kai Wang [Tue, 28 Jan 2014 19:07:28 +0000 (19:07 +0000)]
Change date again.

10 years agofix spelling of lock_initialized.. jhb approved..
John-Mark Gurney [Tue, 28 Jan 2014 17:27:54 +0000 (17:27 +0000)]
fix spelling of lock_initialized..  jhb approved..

MFC after: 1 week

10 years agoext2fs: Use i_flag instead of i_flags for Ext4 inode flags.
Pedro F. Giffuni [Tue, 28 Jan 2014 14:39:05 +0000 (14:39 +0000)]
ext2fs: Use i_flag instead of i_flags for Ext4 inode flags.

The ext4 inode flags do not have equivalents for chflags (1)
and hold information that is private to the implementation.
The i_flag field in the inode is a better place to hold the Ext4
inode flags as it saves us from masking flags while setting or
getting attributes.  It should also make things cleaner if we
implement write support for Ext4.

Suggested by: bde
Tested by: Mike Ma
MFC after: 3 days

10 years agoIncrease the default (and minimum) buffer size from 4 kB to 16 kB. Also,
Dag-Erling Smørgrav [Tue, 28 Jan 2014 14:32:04 +0000 (14:32 +0000)]
Increase the default (and minimum) buffer size from 4 kB to 16 kB.  Also,
propagate the buffer size to libc, which uses a 1 kB buffer by default,
negating any hypothetical benefit of increasing fetch(1)'s buffer size.

MFC after: 3 days

10 years agowhitespace and bump copyright
Dag-Erling Smørgrav [Tue, 28 Jan 2014 14:29:24 +0000 (14:29 +0000)]
whitespace and bump copyright

10 years agoAdd missing 'n' after '\'
Steven Kreuzer [Tue, 28 Jan 2014 14:11:09 +0000 (14:11 +0000)]
Add missing 'n' after '\'

Reported by: gavin
Approved by: hrs (mentor)

10 years agoSolve http buffering issues and hangs once and for all (hopefully!) by
Dag-Erling Smørgrav [Tue, 28 Jan 2014 12:48:17 +0000 (12:48 +0000)]
Solve http buffering issues and hangs once and for all (hopefully!) by
simply not trying to return exactly what the caller asked for - just
return whatever we got and let the caller be the judge of whether it
was enough.  If an error occurs or the connection times out after we
already received some data, return a short read, under the assumption
that the next call will fail or time out before we read anything.

As it turns out, none of the code that calls fetch_read() assumes an
all-or-nothing result anyway, except for a couple of lines where we
read the CR LF at the end of a hunk in HTTP hunked encoding, so the
changes outside of fetch_read() and http_readfn() are minimal.

While there, replace select(2) with poll(2).

MFC after: 3 days

10 years agoo Fix typo, sort .Xrs.
Maxim Konovalov [Tue, 28 Jan 2014 12:26:38 +0000 (12:26 +0000)]
o Fix typo, sort .Xrs.

PR: docs/186191
Submitted by: Andrew (typo fix)
MFC after: 1 week

10 years agoWhen detaching a [USB] keyboard, keys might still be pressed. Ensure
Hans Petter Selasky [Tue, 28 Jan 2014 09:55:07 +0000 (09:55 +0000)]
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.

MFC after: 1 week

10 years agoRemove STARTUP_PAGETABLE_ADDR from the ARM configs and replace it with
Andrew Turner [Tue, 28 Jan 2014 09:12:04 +0000 (09:12 +0000)]
Remove STARTUP_PAGETABLE_ADDR from the ARM configs and replace it with
memory at the end of the kernel.

This helps reduce the SoC and board specific configuration required.

Reviewed by: bsdimp
Tested by: jmg (armeb), br

10 years agoRevert r260622:
Hans Petter Selasky [Tue, 28 Jan 2014 08:49:00 +0000 (08:49 +0000)]
Revert r260622:
To be implemented a bit differently.

10 years agoComply to the official LibUSB v1.0 API:
Hans Petter Selasky [Tue, 28 Jan 2014 07:21:46 +0000 (07:21 +0000)]
Comply to the official LibUSB v1.0 API:
"It is legal to attempt to claim an already-claimed interface."

MFC after: 1 week

10 years agoAllow sigwait(2) in capabilities mode.
Christian S.J. Peron [Tue, 28 Jan 2014 01:49:49 +0000 (01:49 +0000)]
Allow sigwait(2) in capabilities mode.

It's common for multi-threaded processes to create a thread for
the purpose of synchronously processing signals. Allow such processes to
utilize a capabilities sandbox.

Discussed with: rwatson, pjd
MFC after: 2 weeks

10 years agoRemove support for legacy PCI devices. These haven't been needed since
John Baldwin [Mon, 27 Jan 2014 22:26:15 +0000 (22:26 +0000)]
Remove support for legacy PCI devices.  These haven't been needed since
support for LPC uart devices was added and it conflicts with upcoming
patches to add PCI INTx support.

Reviewed by: neel

10 years agoExplicitly enable I/O and memory decoding in the bridge's command register
John Baldwin [Mon, 27 Jan 2014 19:49:52 +0000 (19:49 +0000)]
Explicitly enable I/O and memory decoding in the bridge's command register
when activating an I/O or memory window on the CardBus bridge.

Tested by: Olivier Cochard-Labbe <olivier@cochard.me>
Reviewed by: imp
MFC after: 3 days

10 years agoMerge from vendor branch importing dtc git rev 6a15eb2350426d285130e4c9d84c0bdb6575547a
Warner Losh [Mon, 27 Jan 2014 19:37:35 +0000 (19:37 +0000)]
Merge from vendor branch importing dtc git rev 6a15eb2350426d285130e4c9d84c0bdb6575547a

10 years agoRemove extra parens to silence clang warning.
Warner Losh [Mon, 27 Jan 2014 19:31:18 +0000 (19:31 +0000)]
Remove extra parens to silence clang warning.

10 years agoAdd support for 'clac' and 'stac' to DDB's disassembler on amd64.
John Baldwin [Mon, 27 Jan 2014 18:53:18 +0000 (18:53 +0000)]
Add support for 'clac' and 'stac' to DDB's disassembler on amd64.