]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
10 years agoImport new libcxxrt / libc++. This brings some bug fixes, including a potential...
David Chisnall [Wed, 10 Jul 2013 16:28:24 +0000 (16:28 +0000)]
Import new libcxxrt / libc++.  This brings some bug fixes, including a potential race condition for static initialisers.

10 years agoAdd vfs_mounted and vfs_unmounted events so that components can be informed
Marcel Moolenaar [Wed, 10 Jul 2013 15:35:25 +0000 (15:35 +0000)]
Add vfs_mounted and vfs_unmounted events so that components can be informed
about mount and unmount events. This is used by Juniper to implement a more
optimal implementation of NetBSD's veriexec.

This change differs from r253224 in the following way:
o   The vfs_mounted handler is called before mountcheckdirs() and with
    newdp locked. vp is unlocked.
o   The event handlers are declared in <sys/eventhandler.h> and not in
    <sys/mount.h>. The <sys/mount.h> header is used in user land code
    that pretends to be kernel code and as such creates a very convoluted
    environment. It's hard to untangle.

Submitted by: stevek@juniper.net
Discussed with: pjd@
Obtained from: Juniper Networks, Inc.

10 years agoExtend debug logging of TCP timestamp related specification
Andre Oppermann [Wed, 10 Jul 2013 12:06:01 +0000 (12:06 +0000)]
Extend debug logging of TCP timestamp related specification
violations.

Update related comments and style.

10 years agoReport error for out-of-range numerical inputs. Requested by brooks.
David Chisnall [Wed, 10 Jul 2013 10:57:09 +0000 (10:57 +0000)]
Report error for out-of-range numerical inputs.  Requested by brooks.

10 years agoPull new libc++ into vendor branch.
David Chisnall [Wed, 10 Jul 2013 10:49:31 +0000 (10:49 +0000)]
Pull new libc++ into vendor branch.

10 years agoImport new libcxxrt into vendor branch.
David Chisnall [Wed, 10 Jul 2013 10:48:22 +0000 (10:48 +0000)]
Import new libcxxrt into vendor branch.

10 years agoFix build for gcc users by declaring variables for unions in structs which
Alexander Leidinger [Wed, 10 Jul 2013 10:40:52 +0000 (10:40 +0000)]
Fix build for gcc users by declaring variables for unions in structs which
don't declare a variable. The size before/after this change of the structs
doesn't change with gcc/clang.

Noticed by: several
Suggested by: Gary Jennejohn <gljennjohn@googlemail.com>

10 years agoRemove trailing whitespaces.
Aleksandr Rybalko [Wed, 10 Jul 2013 10:15:38 +0000 (10:15 +0000)]
Remove trailing whitespaces.

10 years agoWhen panicing due to the gjournal overflow, print the geom metadata
Konstantin Belousov [Wed, 10 Jul 2013 10:11:43 +0000 (10:11 +0000)]
When panicing due to the gjournal overflow, print the geom metadata
journal id.

Requested by: Andreas Longwitz <longwitz@incore.de>
MFC after: 1 week

10 years agoClear m->object for the page taken from the delayed free list for
Konstantin Belousov [Wed, 10 Jul 2013 09:24:03 +0000 (09:24 +0000)]
Clear m->object for the page taken from the delayed free list for
reuse as the pv chink page in reclaim_pv_chunk().  Having non-NULL
m->object is wrong for page not owned by an object and confuses both
vm_page_free_toq() and vm_page_remove() when the page is freed later.

Reported and tested by: pho
Sponsored by: The FreeBSD Foundation
MFC after: 3 days

10 years agoAdding urtwn(4) firmware and related changes.
Hiren Panchasara [Wed, 10 Jul 2013 08:21:09 +0000 (08:21 +0000)]
Adding urtwn(4) firmware and related changes.

Reviewed by: rpaulo
Approved by: sbruno (mentor)

10 years agoInstall authpf-noip.
Dag-Erling Smørgrav [Wed, 10 Jul 2013 07:40:30 +0000 (07:40 +0000)]
Install authpf-noip.

MFC after: 3 days

10 years agoAdd the ARM processor-specific section types.
Kevin Lo [Wed, 10 Jul 2013 07:15:39 +0000 (07:15 +0000)]
Add the ARM processor-specific section types.

Reviewed by: imp

10 years agoAvoid controller reinitialization which could be triggered by
Pyun YongHyeon [Wed, 10 Jul 2013 06:46:46 +0000 (06:46 +0000)]
Avoid controller reinitialization which could be triggered by
dhclient(8) or alias addresses are added.

Tested by: dcx dcy <dcbsdx@hotmail.com>

10 years agoRefactor random_systat to be a *random_systat. This avoids unnecessary
David E. O'Brien [Tue, 9 Jul 2013 23:47:28 +0000 (23:47 +0000)]
Refactor random_systat to be a *random_systat. This avoids unnecessary
structure copying in random_ident_hardware(). This change will also help
further modularization of random(4) subsystem.

Submitted by: arthurmesh@gmail.com
Reviewed by: obrien
Obtained from: Juniper Networks

10 years agoAdjust comments to fit within 80-columns.
Devin Teske [Tue, 9 Jul 2013 23:21:57 +0000 (23:21 +0000)]
Adjust comments to fit within 80-columns.

10 years ago- As it turns out, not only MSI-X is broken for devices passed through by
Marius Strobl [Tue, 9 Jul 2013 23:12:26 +0000 (23:12 +0000)]
- As it turns out, not only MSI-X is broken for devices passed through by
  VMware up to at least ESXi 5.1. Actually, using INTx in that case instead
  may still result in interrupt storms, with MSI being the only working
  option in some configurations. So introduce a PCI_QUIRK_DISABLE_MSIX quirk
  which only blacklists MSI-X but not also MSI and use it for the VMware
  PCI-PCI-bridges. Note that, currently, we still assume that if MSI doesn't
  work, MSI-X won't work either - but that's part of the internal logic and
  not guaranteed as part of the API contract. While at it, add and employ
  a pci_has_quirk() helper.
  Reported and tested by: Paul Bucher
- Use NULL instead of 0 for pointers.

Submitted by: jhb (mostly)
Approved by: jhb
MFC after: 3 days

10 years agoSync with KAME.
Xin LI [Tue, 9 Jul 2013 22:04:35 +0000 (22:04 +0000)]
Sync with KAME.

MFC after: 1 month

10 years agoFix conditional (der should match the comment above it).
Devin Teske [Tue, 9 Jul 2013 22:01:05 +0000 (22:01 +0000)]
Fix conditional (der should match the comment above it).

MFC after: 1 day

10 years agoDo two things: First, don't obscure the backtitle. Second, read ~/.dialogrc
Devin Teske [Tue, 9 Jul 2013 21:53:57 +0000 (21:53 +0000)]
Do two things: First, don't obscure the backtitle. Second, read ~/.dialogrc
if it exists to determine if use_shadow is true (ON) or false (OFF).

The purpose of determining the value of use_shadow is to know how many lines
to subtract from the maximum height value in assuring that the backtitle is
not obscured.

The detriment of obscuring the backtitle is that it provides information
that is not easily obtained elsewhere. That is the command-line shortcut
used to access the current menu. As you navigate from one dialog to the
next, invariably transparently corssing module boundaries, the backtitle
represents the command-line argument used to get there. Obscuring this
information with a widget that is too-tall and/or too-wide would see that
data go unnoticed (leaving few other ways to get that information in the
same helpful context).

So despite the fact that this change reduces the standard maximum height for
all widgets, there is a trap-door to prevent this calculation. If you want
to utilize the full screen height on the terminal (remember, this adjustment
is not made for Xdialog(1)) you can set $NO_BACKTITLE to 1 (or any non-NULL
value for that matter) and this calculation will be skipped. You will be
able to draw a widget that partially obscures the backtitle if-necessary.

MFC after: 1 day

10 years agoEnsure controller or namespace node name is specified before trying to
Jim Harris [Tue, 9 Jul 2013 21:33:12 +0000 (21:33 +0000)]
Ensure controller or namespace node name is specified before trying to
access it.

While here, also fix the identify usage message to show the -v and -x
parameters.

Sponsored by: Intel
MFC after: 3 days

10 years agoCondense the output for displaying LBA formats.
Jim Harris [Tue, 9 Jul 2013 21:31:58 +0000 (21:31 +0000)]
Condense the output for displaying LBA formats.

Sponsored by: Intel
MFC after: 3 days

10 years agoSend per-namespace logpage commands to the controller devnode, so they
Jim Harris [Tue, 9 Jul 2013 21:31:21 +0000 (21:31 +0000)]
Send per-namespace logpage commands to the controller devnode, so they
are processed as admin commands, not I/O commands.

As part of this change, pull out the code for parsing a namespace node
string into a separate function, since it is used for both identify and
logpage commands.

Sponsored by: Intel
MFC after: 3 days

10 years agoAdd comment explaining why CACHE_LINE_SIZE is defined in nvme_private.h
Jim Harris [Tue, 9 Jul 2013 21:24:19 +0000 (21:24 +0000)]
Add comment explaining why CACHE_LINE_SIZE is defined in nvme_private.h
if not already defined elsewhere.

Requested by: attilio
MFC after: 3 days

10 years agoUpdate copyright dates.
Jim Harris [Tue, 9 Jul 2013 21:22:17 +0000 (21:22 +0000)]
Update copyright dates.

MFC after: 3 days

10 years agoUpdate nvme(4) and nvd(4) to reflect recent work and upcoming inclusion
Jim Harris [Tue, 9 Jul 2013 21:21:29 +0000 (21:21 +0000)]
Update nvme(4) and nvd(4) to reflect recent work and upcoming inclusion
in 9.2 release.

Sponsored by: Intel
MFC after: 3 days

10 years agoTry to read firmware image before prompting the user to confirm
Jim Harris [Tue, 9 Jul 2013 21:20:08 +0000 (21:20 +0000)]
Try to read firmware image before prompting the user to confirm
firmware download.  This correctly prints an error and exits for
an incorrect firmware image name before prompting the user to
confirm the download.

Sponsored by: Intel
MFC after: 3 days

10 years agoIncorporate feedback from bde@ based on r252672 changes:
Jim Harris [Tue, 9 Jul 2013 21:14:15 +0000 (21:14 +0000)]
Incorporate feedback from bde@ based on r252672 changes:

* Use 0/1 instead of sysexits.  Man pages are confusing on this topic,
  but 0/1 is sufficient for nvmecontrol.
* Use err function family where possible instead of fprintf/exit.
* Fix some typing errors.
* Clean up some error message inconsistencies.

Sponsored by: Intel
Submitted by: bde (parts of firmware.c changes)
MFC after: 3 days

10 years agoDo not retry failed async event requests.
Jim Harris [Tue, 9 Jul 2013 21:03:39 +0000 (21:03 +0000)]
Do not retry failed async event requests.

Sponsored by: Intel
MFC after: 3 days

10 years agoAdd pci_enable_busmaster() and pci_disable_busmaster() calls in
Jim Harris [Tue, 9 Jul 2013 21:02:45 +0000 (21:02 +0000)]
Add pci_enable_busmaster() and pci_disable_busmaster() calls in
nvme_attach() and nvme_detach() respectively.

Sponsored by: Intel
MFC after: 3 days

10 years agoThere are several code sequences like
Konstantin Belousov [Tue, 9 Jul 2013 20:49:32 +0000 (20:49 +0000)]
There are several code sequences like
      vfs_busy(mp);
      vfs_write_suspend(mp);
which are problematic if other thread starts unmount between two
calls.  The unmount starts a write, while vfs_write_suspend() drain
writers.  On the other hand, unmount drains busy references, causing
the deadlock.

Add a flag argument to vfs_write_suspend and require the callers of it
to specify VS_SKIP_UNMOUNT flag, when the call is performed not in the
mount path, i.e. the covered vnode is not locked.  The suspension is
not attempted if VS_SKIP_UNMOUNT is specified and unmount is in
progress.

Reported and tested by: Andreas Longwitz <longwitz@incore.de>
Sponsored by: The FreeBSD Foundation
MFC after: 3 weeks

10 years agoFix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in
Michael Tuexen [Tue, 9 Jul 2013 19:12:47 +0000 (19:12 +0000)]
Fix the handling of SCTP_CURRENT_ASSOC and SCTP_ALL_ASSOC in
sctp_opt_info().

MFC after: 3 days

10 years agoFix a bug where SCTP_ENABLE_STREAM_RESET is not handled by
Michael Tuexen [Tue, 9 Jul 2013 19:04:19 +0000 (19:04 +0000)]
Fix a bug where SCTP_ENABLE_STREAM_RESET is not handled by
sctp_opt_info().

MFC after: 3 days

10 years agoNearly a complete rewrite of elf.h.
Warner Losh [Tue, 9 Jul 2013 19:01:38 +0000 (19:01 +0000)]
Nearly a complete rewrite of elf.h.

Start with NetBSD's sys/arch/mips/include/elf_machdep.h 1.18. Remove the NetBSD
specific glue pieces (leaving mostly just relocation types).

Add in FreeBSD specific glue pieces from older versions of this file, and
move to the top of the file:
r237430 | kib | 2012-06-22 00:38:31 -0600 (Fri, 22 Jun 2012) | 5 lines
r232449 | jmallett | 2012-03-03 01:19:18 -0700 (Sat, 03 Mar 2012) | 18 lines
r217097 | kib | 2011-01-07 07:22:34 -0700 (Fri, 07 Jan 2011) | 3 lines
r211412 | kib | 2010-08-17 02:55:45 -0600 (Tue, 17 Aug 2010) | 7 lines
r202908 | gonzo | 2010-01-23 19:59:22 -0700 (Sat, 23 Jan 2010) | 4 lines
r195356 | imp | 2009-07-05 01:00:51 -0600 (Sun, 05 Jul 2009) | 6 lines
r195128 | gonzo | 2009-06-27 17:27:41 -0600 (Sat, 27 Jun 2009) | 4 lines
r197933 | kib | 2009-10-10 09:31:24 -0600 (Sat, 10 Oct 2009) | 9 lines
r189926 | kib | 2009-03-17 06:50:16 -0600 (Tue, 17 Mar 2009) | 9 lines
r186191 | imp | 2008-12-16 13:07:47 -0700 (Tue, 16 Dec 2008) | 7 lines
as closely as I can tell, the projects/mips branch merge was disruptive
to good history.

This should make merges easier in the future from NetBSD and vice versa.

10 years agoRemove redundant definitions to appease tinderbox.
Jung-uk Kim [Tue, 9 Jul 2013 18:15:59 +0000 (18:15 +0000)]
Remove redundant definitions to appease tinderbox.

10 years agoCorrect the size of allocated memory to store array of counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 15:20:46 +0000 (15:20 +0000)]
Correct the size of allocated memory to store array of counters.

10 years agoCorrect CTASSERT condition.
Andrey V. Elsukov [Tue, 9 Jul 2013 15:10:27 +0000 (15:10 +0000)]
Correct CTASSERT condition.

10 years agoUse IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
Michael Tuexen [Tue, 9 Jul 2013 14:38:26 +0000 (14:38 +0000)]
Use IPSECSTAT_INC() and IPSEC6STAT_INC() macros for ipsec statistics
accounting.

X-MFC with: r252026

10 years agoReinstate the assertion from r253045.
Pedro F. Giffuni [Tue, 9 Jul 2013 14:23:00 +0000 (14:23 +0000)]
Reinstate the assertion from r253045.

UFS r232732 reverted the change as the real problem was to be fixed
at the syscall level.

Reported by: bde

10 years agoFix typo in comment.
Konstantin Belousov [Tue, 9 Jul 2013 13:22:30 +0000 (13:22 +0000)]
Fix typo in comment.

MFC after: 3 days

10 years agoUse MSI for xhci(4), if supported.
Konstantin Belousov [Tue, 9 Jul 2013 12:55:01 +0000 (12:55 +0000)]
Use MSI for xhci(4), if supported.

Reviewed by: jhb
Tested by: dchagin
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

10 years agoMake mandoc lint happy.
Joel Dahl [Tue, 9 Jul 2013 12:25:44 +0000 (12:25 +0000)]
Make mandoc lint happy.

10 years agoAdded 4K QUIRK for OCZ Vertex 4 SSDs
Steven Hartland [Tue, 9 Jul 2013 10:41:17 +0000 (10:41 +0000)]
Added 4K QUIRK for OCZ Vertex 4 SSDs

Submitted by: Borja Marcos <borjam@sarenet.es>
MFC after: 2 days

10 years agoAllow assert() to operate correctly when building userland code.
Robert Millan [Tue, 9 Jul 2013 10:27:26 +0000 (10:27 +0000)]
Allow assert() to operate correctly when building userland code.

10 years agoBump __FreeBSD_version to reflect changes in statistics structures.
Andrey V. Elsukov [Tue, 9 Jul 2013 10:20:27 +0000 (10:20 +0000)]
Bump __FreeBSD_version to reflect changes in statistics structures.

10 years agoMigrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat,
Andrey V. Elsukov [Tue, 9 Jul 2013 10:08:13 +0000 (10:08 +0000)]
Migrate structs ahstat, espstat, ipcompstat, ipipstat, pfkeystat,
ipsec4stat, ipsec6stat to PCPU counters.

10 years agoMigrate struct carpstats to PCPU counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 10:02:51 +0000 (10:02 +0000)]
Migrate struct carpstats to PCPU counters.

10 years agoMigrate structs in6_ifstat and icmp6_ifstat to PCPU counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 09:59:46 +0000 (09:59 +0000)]
Migrate structs in6_ifstat and icmp6_ifstat to PCPU counters.

10 years agoMigrate structs ip6stat, icmp6stat and rip6stat to PCPU counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 09:54:54 +0000 (09:54 +0000)]
Migrate structs ip6stat, icmp6stat and rip6stat to PCPU counters.

10 years agoMigrate structs arpstat, icmpstat, mrtstat, pimstat and udpstat to PCPU
Andrey V. Elsukov [Tue, 9 Jul 2013 09:50:15 +0000 (09:50 +0000)]
Migrate structs arpstat, icmpstat, mrtstat, pimstat and udpstat to PCPU
counters.

10 years agoUse new macros to implement ipstat and tcpstat using PCPU counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 09:43:03 +0000 (09:43 +0000)]
Use new macros to implement ipstat and tcpstat using PCPU counters.
Change interface of kread_counters() similar ot kread() in the netstat(1).

10 years agoAdd several macros to help migrate statistics structures to PCPU counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 09:37:21 +0000 (09:37 +0000)]
Add several macros to help migrate statistics structures to PCPU counters.

10 years agoPrepare network statistics structures for migration to PCPU counters.
Andrey V. Elsukov [Tue, 9 Jul 2013 09:32:06 +0000 (09:32 +0000)]
Prepare network statistics structures for migration to PCPU counters.
Use uint64_t as type for all fields of structures.

Changed structures: ahstat, arpstat, espstat, icmp6_ifstat, icmp6stat,
in6_ifstat, ip6stat, ipcompstat, ipipstat, ipsecstat, mrt6stat, mrtstat,
pfkeystat, pim6stat, pimstat, rip6stat, udpstat.

Discussed with: arch@

10 years agodtrace/fasttrap: install hook functions only after all data is
Andriy Gapon [Tue, 9 Jul 2013 09:05:00 +0000 (09:05 +0000)]
dtrace/fasttrap: install hook functions only after all data is
initialized

Sponsored by: HybridCluster
MFC after:  7 days

10 years agoaudit_proc_coredump: check return value of audit_new
Andriy Gapon [Tue, 9 Jul 2013 09:03:01 +0000 (09:03 +0000)]
audit_proc_coredump: check return value of audit_new

audit_new may return NULL if audit is disabled or suspended.

Sponsored by: HybridCluster
MFC after: 7 days

10 years agoshould_yield: protect from td_swvoltick being uninitialized or too stale
Andriy Gapon [Tue, 9 Jul 2013 09:01:44 +0000 (09:01 +0000)]
should_yield: protect from td_swvoltick being uninitialized or too stale

The distance between ticks and td_swvoltick should be calculated as
an unsigned number.  Previously we could end up comparing a negative
number with hogticks in which case should_yield() would give incorrect
answer.

We should probably ensure that td_swvoltick is properly initialized.

Sponsored by: HybridCluster
MFC after: 5 days

10 years agorc.d/zfs: pass -v option to zfs mount
Andriy Gapon [Tue, 9 Jul 2013 08:59:39 +0000 (08:59 +0000)]
rc.d/zfs: pass -v option to zfs mount

this should make boot process more informative (and entertaining)
on systems with lots of zfs filesystems.

MFC after: 7 days

10 years agonamecache sdt: freebsd doesn't support structured characters yet
Andriy Gapon [Tue, 9 Jul 2013 08:58:34 +0000 (08:58 +0000)]
namecache sdt: freebsd doesn't support structured characters yet

:-)

MFC after:  7 days

10 years agoAdd ID for Marvell 88SE9215 AHCI SATA controller.
Alexander Motin [Tue, 9 Jul 2013 08:49:17 +0000 (08:49 +0000)]
Add ID for Marvell 88SE9215 AHCI SATA controller.

MFC after: 3 days

10 years agozfs: try to properly handle i/o errors in mappedread_sf
Andriy Gapon [Tue, 9 Jul 2013 08:47:11 +0000 (08:47 +0000)]
zfs: try to properly handle i/o errors in mappedread_sf

Unconditionally freeing a page is not good, especially if it is the page
that was wired by the caller.  The checks are picked up from
kern_sendfile.

MFC after: 3 weeks

10 years agoamd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer
Andriy Gapon [Tue, 9 Jul 2013 08:42:02 +0000 (08:42 +0000)]
amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer

... in kernel builds.  This is to make behavior of clang consistent with
behavior of gcc.

MFC after: 2 weeks

10 years agodefault loader.conf: there is no need to load zpool.cache now
Andriy Gapon [Tue, 9 Jul 2013 08:40:05 +0000 (08:40 +0000)]
default loader.conf: there is no need to load zpool.cache now

kernel does not need it for importing a root pool.

MFC after: 4 weeks

10 years agozfs: load zpool.cache after a root fs is mounted
Andriy Gapon [Tue, 9 Jul 2013 08:37:42 +0000 (08:37 +0000)]
zfs: load zpool.cache after a root fs is mounted

MFC after: 3 weeks

10 years agoAdd one more ID of Marvell SATA controller.
Alexander Motin [Tue, 9 Jul 2013 08:32:17 +0000 (08:32 +0000)]
Add one more ID of Marvell SATA controller.

Submitted by: marck
MFC after: 3 days

10 years agozfsboottest.sh: remove checks for things that are not strictly required
Andriy Gapon [Tue, 9 Jul 2013 08:30:31 +0000 (08:30 +0000)]
zfsboottest.sh: remove checks for things that are not strictly required

MFC after: 10 days

10 years agozfsboottest: sync with changes in zfs boot code
Andriy Gapon [Tue, 9 Jul 2013 08:29:14 +0000 (08:29 +0000)]
zfsboottest: sync with changes in zfs boot code

- spa status can not be called before spa init
- libzfs.h inclusion is now required
- fix alternative code for explicit root dataset lookup

MFC after: 10 days

10 years agoUpdate references.
Hiroki Sato [Tue, 9 Jul 2013 08:23:43 +0000 (08:23 +0000)]
Update references.

10 years agoRemove $swapfile and $geli_swap_flags.
Hiroki Sato [Tue, 9 Jul 2013 07:57:10 +0000 (07:57 +0000)]
Remove $swapfile and $geli_swap_flags.

10 years agoDocument IPv6 support.
Hiroki Sato [Tue, 9 Jul 2013 07:55:47 +0000 (07:55 +0000)]
Document IPv6 support.

10 years ago- Add missing "static" keywords.
Hiroki Sato [Tue, 9 Jul 2013 07:08:36 +0000 (07:08 +0000)]
- Add missing "static" keywords.
- Add a check for ifindex to if_indextoifinfo().  It returns NULL when
  if_indextoname() fails.

MFC after: 3 days

10 years agoAdd a missing white space.
Hiroki Sato [Tue, 9 Jul 2013 07:03:54 +0000 (07:03 +0000)]
Add a missing white space.

10 years agoUse meaningful names when creating mmc/sd threads.
Rui Paulo [Tue, 9 Jul 2013 03:00:06 +0000 (03:00 +0000)]
Use meaningful names when creating mmc/sd threads.

This can be useful when we want to be able to identify which mmcsd is stuck.

10 years agoImprove a comment.
Rui Paulo [Tue, 9 Jul 2013 02:50:05 +0000 (02:50 +0000)]
Improve a comment.

10 years agoRemove extraneous format string converison specifier
Ed Maste [Tue, 9 Jul 2013 01:55:34 +0000 (01:55 +0000)]
Remove extraneous format string converison specifier

Submitted by: wxs@

10 years agoDocument the "gssname" and "allgssname" mount options added by the
Rick Macklem [Tue, 9 Jul 2013 01:31:36 +0000 (01:31 +0000)]
Document the "gssname" and "allgssname" mount options added by the
host-based initiator credential patches.
This is a content change.

10 years agoEnhancement when writing an entire block of a file.
Pedro F. Giffuni [Tue, 9 Jul 2013 01:31:04 +0000 (01:31 +0000)]
Enhancement when writing an entire block of a file.

Merge from UFS r231313:

This change first attempts the uiomove() to the newly allocated
(and dirty) buffer and only zeros it if the uiomove() fails. The
effect is to eliminate the gratuitous zeroing of the buffer in
the usual case where the uiomove() successfully fills it.

MFC after: 3 days

10 years agoAdd support for host-based (Kerberos 5 service principal) initiator
Rick Macklem [Tue, 9 Jul 2013 01:05:28 +0000 (01:05 +0000)]
Add support for host-based (Kerberos 5 service principal) initiator
credentials to the kernel rpc. Modify the NFSv4 client to add
support for the gssname and allgssname mount options to use this
capability. Requires the gssd daemon to be running with the "-h" option.

Reviewed by: jhb

10 years agoAllow mlx4 devices to switch from Ethernet to Infiniband (and vice versa):
John Baldwin [Mon, 8 Jul 2013 21:25:12 +0000 (21:25 +0000)]
Allow mlx4 devices to switch from Ethernet to Infiniband (and vice versa):
- Fix sysctl wrapper for sysfs attributes to properly handle new string
  values similar to sysctl_handle_string() (only copyin the user's
  supplied length and nul-terminate the string).
- Don't check for a trailing newline when evaluating the desired operating
  mode of a mlx4 device.

PR: kern/179999
Submitted by: Shahar Klein <shahark@mellanox.com>
MFC after: 1 week

10 years agoFix build with INVARIANT_SUPPORT enabled but not INVARIANTS.
John Baldwin [Mon, 8 Jul 2013 21:17:20 +0000 (21:17 +0000)]
Fix build with INVARIANT_SUPPORT enabled but not INVARIANTS.

Reported by: "Matthew D. Fuller" <fullermd@over-yonder.net>

10 years agoCorrect the printf format specifier for total_events.
Alan Somers [Mon, 8 Jul 2013 21:10:30 +0000 (21:10 +0000)]
Correct the printf format specifier for total_events.
Add __printflike argument checking for devdlog().

Reported by: pjd
Approved by: gibbs (co-mentor)

10 years agoAvoid a panic and return EINVAL instead.
Pedro F. Giffuni [Mon, 8 Jul 2013 20:21:36 +0000 (20:21 +0000)]
Avoid a panic and return EINVAL instead.

Merge from UFS r232692:
syscall() fuzzing can trigger this panic.

MFC after: 3 days

10 years agoPull in r185616 from llvm trunk:
Dimitry Andric [Mon, 8 Jul 2013 17:57:11 +0000 (17:57 +0000)]
Pull in r185616 from llvm trunk:

  FastISel can only append to basic blocks.

  Compute the insertion point from the end of the basic block instead of
  skipping labels from the front.

  This caused failures in landing pads when live-in copies where inserted
  before instruction selection.

I missed this change in r252720; without it, certain compilation flags
can cause exception labels to not be generated, but still referenced,
leading to link errors.

Reported by: zeising
MFC after: 3 days

10 years agoMove to MSG_DEBUG to print it via syslog only when requested.
Hiren Panchasara [Mon, 8 Jul 2013 16:03:18 +0000 (16:03 +0000)]
Move to MSG_DEBUG to print it via syslog only when requested.

Reviewed by: rpaulo, adrian
Approved by: sbruno (mentor)

10 years agoAdd quirk to configure headphones redirection on ASUS UX31A laptop.
Alexander Motin [Mon, 8 Jul 2013 15:28:09 +0000 (15:28 +0000)]
Add quirk to configure headphones redirection on ASUS UX31A laptop.

MFC after: 3 days

10 years agoImport the initial SoC register definitions for the AR934x MIPS74k SoC.
Adrian Chadd [Mon, 8 Jul 2013 06:12:38 +0000 (06:12 +0000)]
Import the initial SoC register definitions for the AR934x MIPS74k SoC.

Obtained from: Linux/OpenWRT

10 years agoAdd AR9341, AR9342, AR9344 SoC types.
Adrian Chadd [Mon, 8 Jul 2013 06:10:29 +0000 (06:10 +0000)]
Add AR9341, AR9342, AR9344 SoC types.

10 years agomdoc: remove superfluous paragraph macros.
Joel Dahl [Mon, 8 Jul 2013 05:58:09 +0000 (05:58 +0000)]
mdoc: remove superfluous paragraph macros.

10 years agoAdd IDs for TPS65217C and TPS65217D
Oleksandr Tymoshenko [Mon, 8 Jul 2013 05:06:32 +0000 (05:06 +0000)]
Add IDs for TPS65217C and TPS65217D

10 years ago- MMC1 (internal eMMC) pins should be configured as input-pullup, except
Oleksandr Tymoshenko [Mon, 8 Jul 2013 04:30:12 +0000 (04:30 +0000)]
- MMC1 (internal eMMC) pins should be configured as input-pullup, except
    for reset pin

10 years ago- AM335x requires updated soft-reset logic too
Oleksandr Tymoshenko [Mon, 8 Jul 2013 04:27:03 +0000 (04:27 +0000)]
- AM335x requires updated soft-reset logic too

10 years agoAlso define SDT_PROBE_DEFINE0 for the !KDTRACE_HOOKS case.
Mark Johnston [Mon, 8 Jul 2013 02:03:18 +0000 (02:03 +0000)]
Also define SDT_PROBE_DEFINE0 for the !KDTRACE_HOOKS case.

10 years agoFix some Kerberos related terminology.
Rick Macklem [Mon, 8 Jul 2013 01:47:50 +0000 (01:47 +0000)]
Fix some Kerberos related terminology.
This is a content change.

Requested by: bjk

10 years agoOops, initialize the krb5 ret values correctly (to anything non-zero).
Rick Macklem [Mon, 8 Jul 2013 01:29:09 +0000 (01:29 +0000)]
Oops, initialize the krb5 ret values correctly (to anything non-zero).

10 years agoMake sure the krb5 status variables are correctly initialized.
Rick Macklem [Mon, 8 Jul 2013 01:08:57 +0000 (01:08 +0000)]
Make sure the krb5 status variables are correctly initialized.

10 years agoDocument the new "-h" option for the gssd daemon.
Rick Macklem [Mon, 8 Jul 2013 00:57:12 +0000 (00:57 +0000)]
Document the new "-h" option for the gssd daemon.
This is a content change.

Reviewed by: jhb

10 years agoAdd a new "-h" option to the gssd daemon that enables support for
Rick Macklem [Mon, 8 Jul 2013 00:50:57 +0000 (00:50 +0000)]
Add a new "-h" option to the gssd daemon that enables support for
host based (kerberos service principal) initiator credentials in
the default keytab file. This option won't actually be useful until
the corresponding kernel changes are committed.

Reviewed by: jhb

10 years agoMFV of tzdata2013d, 253008
Edwin Groothuis [Sun, 7 Jul 2013 22:23:59 +0000 (22:23 +0000)]
MFV of tzdata2013d, 253008

- Morocco:
  announced that the year's Ramadan daylight-savings transitions
  would be 2013-07-07 and 2013-08-10.

- Israel:
  As of 2013, DST starts at 02:00 on the Friday before the last
  Sunday in March.  DST ends at 02:00 on the first Sunday after
  October 1, unless it occurs on the second day of the Jewish Rosh
  Hashana holiday, in which case DST ends a day later (i.e. at 02:00
  the first Monday after October 2).  [Rosh Hashana holidays are
  factored in until 2100.]

10 years agoVendor import of tzdata2013d:
Edwin Groothuis [Sun, 7 Jul 2013 22:18:08 +0000 (22:18 +0000)]
Vendor import of tzdata2013d:

- Morocco:
  announced that the year's Ramadan daylight-savings transitions
  would be 2013-07-07 and 2013-08-10.

- Israel:
  As of 2013, DST starts at 02:00 on the Friday before the last
  Sunday in March.  DST ends at 02:00 on the first Sunday after
  October 1, unless it occurs on the second day of the Jewish Rosh
  Hashana holiday, in which case DST ends a day later (i.e. at 02:00
  the first Monday after October 2).  [Rosh Hashana holidays are
  factored in until 2100.]

Obtained from: ftp://ftp.iana.org/tz/releases/

10 years agoMake kassert_printf use __printflike.
Alfred Perlstein [Sun, 7 Jul 2013 21:39:37 +0000 (21:39 +0000)]
Make kassert_printf use __printflike.

Fix associated errors/warnings while I'm here.

Requested by: avg

10 years agoConvert bcm2835_mbox to the new mbox interface.
Rui Paulo [Sun, 7 Jul 2013 21:23:58 +0000 (21:23 +0000)]
Convert bcm2835_mbox to the new mbox interface.

Reviewed by: gonzo