Fix a cut and paste error.

PR:		docs/184791
Submitted by:	Jamie Landeg Jones <jamie@dyslexicfish.net>
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260358 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix optimization bug.

GCC-PR rtl-optimization/34628
	* combine.c (try_combine): Stop and undo after the first combination
	if an autoincrement side-effect on the first insn has effectively
	been lost.

The issue was detected in OpenBSD but their fix was not very good. Huge
thanks to the upstream author, Eric Botcazou, for permitting the use of
this patch under GPLv2.

MFC after:	5 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260361 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correctly remove entries from the relevant receive ath_buf list before
freeing them.

The current code would walk the list and call the buffer free, which
didn't remove it from any lists before pushing it back on the free list.

Tested:		AR9485, STA mode

Noticed by:	dillon@apollo.dragonflybsd.org


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260363 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
In atomic_or_8_nv() load 1 and not 8 bytes from the address
given. Note that atomic_or_8_nv() is not used at this time.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260364 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
do not use capsicum when building picobsd images


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260365 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix NULL dereference panic on UDP requests introduced in r260229.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260367 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
It is 2014 and we have a new version of netmap.
Most relevant features:

- netmap emulation on any NIC, even those without native netmap support.

  On the ixgbe we have measured about 4Mpps/core/queue in this mode,
  which is still a lot more than with sockets/bpf.

- seamless interconnection of VALE switch, NICs and host stack.

  If you disable accelerations on your NIC (say em0)

        ifconfig em0 -txcsum -txcsum

  you can use the VALE switch to connect the NIC and the host stack:

        vale-ctl -h valeXX:em0

  allowing sharing the NIC with other netmap clients.

- THE USER API HAS SLIGHTLY CHANGED (head/cur/tail pointers
  instead of pointers/count as before). This was unavoidable to support,
  in the future, multiple threads operating on the same rings.
  Netmap clients require very small source code changes to compile again.
      On the plus side, the new API should be easier to understand
  and the internals are a lot simpler.

The manual page has been updated extensively to reflect the current
features and give some examples.

This is the result of work of several people including Giuseppe Lettieri,
Vincenzo Maffione, Michio Honda and myself, and has been financially
supported by EU projects CHANGE and OPENLAB, from NetApp University
Research Fund, NEC, and of course the Universita` di Pisa.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260368 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Apply band-aid for 32-bit compat libs failures after r260334: put back
-Qunused-arguments for clang for now, until I can figure out a way to
make it unneeded in all scenarios.  Sorry about the breakage.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260369 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Switch to using arm_devmap_add_entry() to set up static device mapping.
This eliminates the hard-coded max kva and roughly doubles the available
kva space.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260371 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow 'no static device mappings' to potentially work.  It's not clear that
every arm system must have some static mappings to work correctly (although
currently they all do), so remove some panic() calls (which would never
been seen anyway, because they would happen before a console is available).


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Don't try to find a static mapping before calling pmap_mapdev(), that logic
is now part of pmap_mapdev() and doesn't need to be duplicated here.
Likewise for unmapping.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260373 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Switch to using arm_devmap_add_entry() to set up static device mapping.
This eliminates the hard-coded max kva and roughly doubles the available
kva space.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260374 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix arm build.

Reviewed by:	ian, zbb


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct a grammo in a comment; remove white space at EOL.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260376 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When pf_get_translation() fails, it should leave *sn pointer pristine,
otherwise we will panic in pf_test_rule().

PR:		182557


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260377 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Partially fix IPv4 interface routes deletion in RADIX_MPATH.

Noticed by:	Nikolay Denev <ndenev at gmail.com>
MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260379 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Split the VMCS setup between 'vmcs_init()' that does initialization and
'vmx_vminit()' that does customization.

This makes it easier to turn on optional features (e.g. APICv) without
having to keep adding new parameters to 'vmcs_set_defaults()'.

Reviewed by:	grehan@


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260380 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For "nvmecontrol devlist", show namespace sizes in terms of MB instead of
GB to improve granularity of the reporting - especially for namespaces
that are on the order of 1 or 2 GB.

Submitted by:	Tony Beltran <anthony.beltran@emc.com>
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260381 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
For IDENTIFY passthrough commands to Chatham prototype controllers, copy
the spoofed identify data into the user buffer rather than issuing the
command to the controller, since Chatham IDENTIFY data is always spoofed.

While here, fix a bug in the spoofed data for Chatham submission and
completion queue entry sizes.

Sponsored by:	Intel
MFC after:	3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260382 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Allow vlapic_set_intr_ready() to return a value that indicates whether or not
the vcpu should be kicked to process a pending interrupt. This will be useful
in the implementation of the Posted Interrupt APICv feature.

Change the return value of 'vlapic_pending_intr()' to indicate whether or not
an interrupt is available to be delivered to the vcpu depending on the value
of the PPR.

Add KTR tracepoints to debug guest IPI delivery.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@260383 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f