]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
8 years agoMFhead @ r292177
ngie [Mon, 14 Dec 2015 00:12:53 +0000 (00:12 +0000)]
MFhead @ r292177

8 years agoThe new pnp module records causes older kldxref to spew some
imp [Sun, 13 Dec 2015 22:11:37 +0000 (22:11 +0000)]
The new pnp module records causes older kldxref to spew some
warnings. Make a note of it to inform people how to get around it.

8 years agowpi, rum and urtwn: update copyright headers
avos [Sun, 13 Dec 2015 22:08:27 +0000 (22:08 +0000)]
wpi, rum and urtwn: update copyright headers

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4489

8 years agourtwn: add support for hardware encryption (WEP, TKIP and CCMP)
avos [Sun, 13 Dec 2015 22:00:19 +0000 (22:00 +0000)]
urtwn: add support for hardware encryption (WEP, TKIP and CCMP)

Tested with:
- RTL8188EU;
- RTL8188CUS;

Modes:
- IBSS mode: TKIP, CCMP (WPA-None);
- STA / HOSTAP modes - WEP (static), TKIP, CCMP;

Reviewed by: kevlo
Approved by: adrian (mentor)
Obtained from: OpenBSD (mostly)
Differential Revision: https://reviews.freebsd.org/D4448

8 years agourtwn: add a command queue for sleepable tasks.
avos [Sun, 13 Dec 2015 21:50:38 +0000 (21:50 +0000)]
urtwn: add a command queue for sleepable tasks.

An implementation from rum(4) was used (it looks simpler for me).
Will be used for h/w encryption support.

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4447

8 years agourtwn(4): setup channel frequency/flags for radiotap in urtwn_set_channel()
avos [Sun, 13 Dec 2015 21:43:54 +0000 (21:43 +0000)]
urtwn(4): setup channel frequency/flags for radiotap in urtwn_set_channel()

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D3832

8 years ago- Properly set mode and atime/ctime for symlinks
ak [Sun, 13 Dec 2015 21:31:45 +0000 (21:31 +0000)]
- Properly set mode and atime/ctime for symlinks

Approved by: des

8 years agourtwn: add rate control support for RTL8188EU.
avos [Sun, 13 Dec 2015 21:00:21 +0000 (21:00 +0000)]
urtwn: add rate control support for RTL8188EU.

Tested with:
- RTL8188EU, STA and HOSTAP modes.
- RTL8188CUS, STA mode.

Reviewed by: kevlo
Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4402

8 years agowtap: do not include <sys/types.h> when <sys/param.h> is already included
avos [Sun, 13 Dec 2015 20:53:51 +0000 (20:53 +0000)]
wtap: do not include <sys/types.h> when <sys/param.h> is already included

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4536

8 years agonet80211: remove hardcoded slot time durations from drivers
avos [Sun, 13 Dec 2015 20:48:24 +0000 (20:48 +0000)]
net80211: remove hardcoded slot time durations from drivers

- Add IEEE80211_GET_SLOTTIME(ic) macro.
- Use predefined macroses to set slot time.

Approved by: adrian (mentor)
Differential Revision: https://reviews.freebsd.org/D4044

8 years agoFix bsdbox builds after the recent libkvm requirement for libelf.
adrian [Sun, 13 Dec 2015 20:31:36 +0000 (20:31 +0000)]
Fix bsdbox builds after the recent libkvm requirement for libelf.

8 years agoFix PINNED routes handling.
melifaro [Sun, 13 Dec 2015 16:37:01 +0000 (16:37 +0000)]
Fix PINNED routes handling.
Before r291643, adding new interface prefix had the following logic:
try_add:
  EEXIST && (PINNED) {
    try_del(w/o PINNED flag)
    if (OK)
      try_add(PINNED)
}

In r291643, deletion was performed w/ PINNED flag held which leaded
  to new interface prefixes (like ::1) overriding older ones.
  Fix this by requesting deletion w/o RTF_PINNED.

PR: kern/205285
Submitted by: Fabian Keil <fk at fabiankeil.de>

8 years agoTweak comments.
trasz [Sun, 13 Dec 2015 11:30:36 +0000 (11:30 +0000)]
Tweak comments.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoActually make the 'amount' argument to racct_adjust_resource() signed,
trasz [Sun, 13 Dec 2015 11:21:13 +0000 (11:21 +0000)]
Actually make the 'amount' argument to racct_adjust_resource() signed,
as it was always supposed to be.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoAvoid useless relocking.
trasz [Sun, 13 Dec 2015 11:08:29 +0000 (11:08 +0000)]
Avoid useless relocking.

MFC after: 1 month
Sponsored by: The FreeBSD Foundation

8 years agoSIMPLEBUS: Don't panic if child device doesn't have devinfo set.
mmel [Sun, 13 Dec 2015 09:05:55 +0000 (09:05 +0000)]
SIMPLEBUS: Don't panic if child device doesn't have devinfo set.
Strictly speaking, missing devinfo is error which can be caused
by instantiating child using device_add_child() instead of
BUS_ADD_CHILD(). However, we can tolerate it.

Approved by: kib (mentor)

8 years agoFixed uninitialized variable warnings.
kaiw [Sun, 13 Dec 2015 08:27:14 +0000 (08:27 +0000)]
Fixed uninitialized variable warnings.

8 years agoOFW_IICBUS: Register ofw_iicbus node.
mmel [Sun, 13 Dec 2015 08:23:45 +0000 (08:23 +0000)]
OFW_IICBUS: Register ofw_iicbus node.
The iicbus can be referenced from other nodes in DT.

Approved by: kib (mentor)

8 years agoOFW: Add helper functions for parsing xref based lists.
mmel [Sun, 13 Dec 2015 08:17:49 +0000 (08:17 +0000)]
OFW: Add helper functions for parsing xref based lists.
By using this functions, we can parse a list of tuples, each of them holds
xref and variable number of values.
This kind of list is used in DT for clocks, gpios, resets ...

Discussed with: ian, nwhitehorn
Approved by: kib (mentor)
Differential Revision: https://reviews.freebsd.org/D4316

8 years agoRemove LLE read lock from IPv6 fast path.
melifaro [Sun, 13 Dec 2015 07:39:49 +0000 (07:39 +0000)]
Remove LLE read lock from IPv6 fast path.

LLE structure is mostly unchanged during its lifecycle: there are only 2
things relevant for fast path lookup code:
1) link-level address change. Since r286722, these updates are performed
  under AFDATA WLOCK.
2) Some sort of feedback indicating that this particular entry is used so
  we send NS to perform reachability verification instead of expiring entry.
  The only signal that is needed from fast path is something like binary
  yes/no.
The latter is solved by the following changes:

Special r_skip_req (introduced in D3688) value is used for fast path feedback.
  It is read lockless by fast path, but updated under req_mutex mutex. If this
  field is non-zero, then fast path will acquire lock and set it back to 0.

After transitioning to STALE state, callout timer is armed to run each
  V_nd6_delay seconds to make sure that if packet was transmitted at the start
  of given interval, we would be able to switch to PROBE state in V_nd6_delay
  seconds as user expects.
(in STALE state) timer is rescheduled until original V_nd6_gctimer expires
  keeping lle in STALE state (remaining timer value stored in lle_remtime).
(in STALE state) timer is rescheduled if packet was transmitted less that
  V_nd6_delay seconds ago to make sure we transition to PROBE state exactly
  after V_n6_delay seconds.

As a result, all packets towards lle in REACHABLE/STALE/PROBE states are handled
  by fast path without acquiring lle read lock.

Differential Revision: https://reviews.freebsd.org/D3780

8 years agoAdd -static to CFLAGS to unbreak the tests by using a libc.a with
ngie [Sun, 13 Dec 2015 06:33:52 +0000 (06:33 +0000)]
Add -static to CFLAGS to unbreak the tests by using a libc.a with
the xlocale private symbols exposed which aren't exposed publicly
via the DSO

PR: 191354
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division

8 years agoEliminate a typo that crept into a last minute change before commit :(
imp [Sun, 13 Dec 2015 04:15:13 +0000 (04:15 +0000)]
Eliminate a typo that crept into a last minute change before commit :(

Noticed by: Olivier Cochard-Labbe

8 years agoFix typos in comments.
imp [Sun, 13 Dec 2015 04:15:10 +0000 (04:15 +0000)]
Fix typos in comments.

8 years agoAsk make(1) which compiler to use rather than rely on whatever is in $PATH.
des [Sat, 12 Dec 2015 22:54:12 +0000 (22:54 +0000)]
Ask make(1) which compiler to use rather than rely on whatever is in $PATH.

8 years agoexec(3): Fix COMPATIBILITY section: default path does not contain cwd.
jilles [Sat, 12 Dec 2015 15:57:46 +0000 (15:57 +0000)]
exec(3): Fix COMPATIBILITY section: default path does not contain cwd.

MFC after: 1 week

8 years agoRFC 3493 requires ignoring the loopback address for A_ADDRCONFIG.
ume [Sat, 12 Dec 2015 14:42:50 +0000 (14:42 +0000)]
RFC 3493 requires ignoring the loopback address for A_ADDRCONFIG.
Since it breaks certain jail setup, we ignore just 127.0.0.1
instead of whole loopback address range.

PR: 192014
Reviewed by: hrs
MFC after: 1 week

8 years agoIn md(4) over vnode, correct handling of the unaligned unmapped io
kib [Sat, 12 Dec 2015 14:08:29 +0000 (14:08 +0000)]
In md(4) over vnode, correct handling of the unaligned unmapped io
requests which page alignment + size is greater than MAXPHYS.  Right
now md(4) over vnode would use the physical buffer of the size MAXPHYS
to map a data of size MAXPHYS + page offset of the user buffer. This
typically corrupts next pbuf, or, if the pbuf used was the last pbuf
in the map, the next page after the pbuf's map.

Split request up to the size of io which fits into pbuf KVA with
alignment, and retry if a part of the bio is left unprocessed.

Reported by: Fabian Keil <fk@fabiankeil.de>
Tested by: Fabian Keil, pho
Sponsored by: The FreeBSD Foundation
MFC after: 2 weeks

8 years ago- Allow to extract symlinks
ak [Fri, 11 Dec 2015 23:52:08 +0000 (23:52 +0000)]
- Allow to extract symlinks
- Implement 4-digit year format listing (-y option)
- Improve detection of text files
- Use %ju for error_count as it is unsigned

Obtained from: NetBSD
Approved by: des

8 years ago- Remove stray whitespaces
ak [Fri, 11 Dec 2015 23:46:33 +0000 (23:46 +0000)]
- Remove stray whitespaces

Approved by: des

8 years agoDIRDEPS_BUILD: Don't force C dependencies on kernel modules for bootstrapping.
bdrewery [Fri, 11 Dec 2015 22:55:41 +0000 (22:55 +0000)]
DIRDEPS_BUILD: Don't force C dependencies on kernel modules for bootstrapping.

These use ld(1), effectively -nostdlib, and don't need any of these
normal dependencies.

kmod builds also define PROG so just checking for KMOD here seems to be
the easiest to handle it.

Sponsored by: EMC / Isilon Storage Division

8 years agoStart support for the RISC-V 64-bit architecture developed by UC Berkeley.
br [Fri, 11 Dec 2015 22:55:23 +0000 (22:55 +0000)]
Start support for the RISC-V 64-bit architecture developed by UC Berkeley.

RISC-V is a new ISA designed to support computer research and education, and
is now become a standard open architecture for industry implementations.

This is a minimal set of changes required to run 'make kernel-toolchain'
using external (GNU) toolchain.

The FreeBSD/RISC-V project home: https://wiki.freebsd.org/riscv.

Reviewed by: andrew, bdrewery, emaste, imp
Sponsored by: DARPA, AFRL
Sponsored by: HEIF5
Differential Revision: https://reviews.freebsd.org/D4445

8 years ago[PR 195033] Document mps.enable_ssu
rpokala [Fri, 11 Dec 2015 21:50:59 +0000 (21:50 +0000)]
[PR 195033] Document mps.enable_ssu

mps(4) sends StartStopUnit to SATA direct-access devices during shutdown.
Document the tunables which control that behavior.

PR: 195033
Reviewed by: scottl
Approved by: jhb
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D4456

8 years agoFix sesutil locate when a sesid is passed to locate command
bapt [Fri, 11 Dec 2015 21:11:02 +0000 (21:11 +0000)]
Fix sesutil locate when a sesid is passed to locate command

8 years agosesutil: Add extra information specific to some SES devices to sesutil map
bapt [Fri, 11 Dec 2015 20:45:39 +0000 (20:45 +0000)]
sesutil: Add extra information specific to some SES devices to sesutil map

Rework stat2ascii preparing a buffer of what could be printed. This prevent the
risk of overflowing a static buffer.

Do not print those informations anymore in the "status" but into a new
"extra status" only printed if there are actually extra things to print.

Now add those extra informations:

* Thermal sensor temperature
* Cooling devices speed
* Voltage sensors, current consumption

Tested by: AllanJude
Sponsored by: Gandi.net
Differential Revision: https://reviews.freebsd.org/D4520

8 years agoUpdate to ELF Tool Chain r3272
emaste [Fri, 11 Dec 2015 20:28:27 +0000 (20:28 +0000)]
Update to ELF Tool Chain r3272

Highlights (not already in the FreeBSD tree):
 - addr2line: Speed up and support searching inlined functions
 - addr2line: Support -i, -a, -p options
 - readelf: Add some ARM relocation types
 - readelf, libelf: Avoid reading beyond end of buffer/file

Relnotes: Yes
Sponsored by: The FreeBSD Foundation

8 years agoDon't make assertions about td_critnest when the scheduler is stopped.
markj [Fri, 11 Dec 2015 20:05:07 +0000 (20:05 +0000)]
Don't make assertions about td_critnest when the scheduler is stopped.

A panicking thread always executes with a critical section held, so any
attempt to allocate or free memory while dumping will otherwise cause a
second panic. This can occur, for example, if xpt_polled_action() completes
non-dump I/O that was pending at the time of the panic. The fact that this
can occur is itself a bug, but asserting in this case does little but
reduce the reliability of kernel dumps.

Suggested by: kib
Reported by: pho

8 years agoelfcopy: include extension but replace . when converting from binary
emaste [Fri, 11 Dec 2015 18:47:41 +0000 (18:47 +0000)]
elfcopy: include extension but replace . when converting from binary

The change in r291958 was not consistent with GNU objcopy. The start,
end and size symbols created for ELF objects converted from binary need
to include the full filename including the extension, but with the
periods replaced with underscores.

Reviewed by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D4474

8 years agoCorrect the CONFIG0_VI value. According to
imp [Fri, 11 Dec 2015 16:51:04 +0000 (16:51 +0000)]
Correct the CONFIG0_VI value. According to
http://www.t-es-t.hu/download/mips/md00090c.pdf this is bit 3 of the
config0 word, not bit 2.  This should fix virtually indexed caches
(relatively new in the MIPS world, so no current platforms used this
and current code just uses it as an optimization). It was causing
false positives on newer platforms that default to large values for
the kseg0 cache coherency attribute.

Submitted by: Stanislav Galabov
PR: 205249

8 years agoSort the list of NICs after the mii options. While here add the msk driver
andrew [Fri, 11 Dec 2015 15:25:47 +0000 (15:25 +0000)]
Sort the list of NICs after the mii options. While here add the msk driver
as it has now been tested.

Sponsored by: SoftIron Inc

8 years agoUse the right product names.
imp [Fri, 11 Dec 2015 15:24:29 +0000 (15:24 +0000)]
Use the right product names.

Pointy Hat To: imp@

8 years agoFixup include protections for building on mips64 with clang
lidl [Fri, 11 Dec 2015 15:12:01 +0000 (15:12 +0000)]
Fixup include protections for building on mips64 with clang

Reviewed by: sbruno, imp
Approved by: rpaulo (mentor)
Differential Revision: https://reviews.freebsd.org/D4457

8 years agocrunchide: add RISC-V to supported machine types
emaste [Fri, 11 Dec 2015 13:55:31 +0000 (13:55 +0000)]
crunchide: add RISC-V to supported machine types

MFC after: 1 week
Sponsored by: The FreeBSD Foundation

8 years agosesutils, pass the correct element type when printing the status of a given
bapt [Fri, 11 Dec 2015 11:08:00 +0000 (11:08 +0000)]
sesutils, pass the correct element type when printing the status of a given
element of the ses.

Sponsored by: Gandi.net

8 years agosesutil: fix map not printing the status of the LED device in an array
bapt [Fri, 11 Dec 2015 10:58:26 +0000 (10:58 +0000)]
sesutil: fix map not printing the status of the LED device in an array

Sponsored by: Gandi.net

8 years agoFix minor typos introduced on r292084.
araujo [Fri, 11 Dec 2015 07:24:25 +0000 (07:24 +0000)]
Fix minor typos introduced on r292084.

Approved by: rodrigc (mentor)
Differential Revision: https://reviews.freebsd.org/D4495

8 years agosfxge: unify MCDI response polling
arybchik [Fri, 11 Dec 2015 07:20:33 +0000 (07:20 +0000)]
sfxge: unify MCDI response polling

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Reviewed by:    philip
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D4496

8 years agosfxge: simplify MCDI methods
arybchik [Fri, 11 Dec 2015 06:28:15 +0000 (06:28 +0000)]
sfxge: simplify MCDI methods

It is a part of MCDI rework to share more code among NIC families.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D4481

8 years agoClean up unused bandwidth entry in the TCP hostcache.
hiren [Fri, 11 Dec 2015 06:22:58 +0000 (06:22 +0000)]
Clean up unused bandwidth entry in the TCP hostcache.

Submitted by: Jason Wolfe (j at nitrology dot com)
Reviewed by: rrs, hiren
Sponsored by: Limelight Networks
Differential Revision: https://reviews.freebsd.org/D4154

8 years agosfxge: add tunable for maximum start attetmps after reset
arybchik [Fri, 11 Dec 2015 06:20:31 +0000 (06:20 +0000)]
sfxge: add tunable for maximum start attetmps after reset

Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D2610

8 years agoHandle CPUTYPE=armv[4567]* better. gcc expects those to be either
imp [Fri, 11 Dec 2015 05:39:45 +0000 (05:39 +0000)]
Handle CPUTYPE=armv[4567]* better. gcc expects those to be either
-march=foo or -mcpu=generic-foo. Catch the armvX* case and pass
the right args for it.

8 years agoMove the inclusion of bsd.cpu.mk from sys.mk to bsd.opts.mk. However,
imp [Fri, 11 Dec 2015 05:39:44 +0000 (05:39 +0000)]
Move the inclusion of bsd.cpu.mk from sys.mk to bsd.opts.mk. However,
for historical behavior that ports depends on, include it if we're
inside the ports tree.

Differential Review: https://reviews.freebsd.org/D4383
Ports Exp run: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=205021

8 years agoUpdate for final version of mkimg changes.
imp [Fri, 11 Dec 2015 05:39:43 +0000 (05:39 +0000)]
Update for final version of mkimg changes.

8 years agoAdd ppcboot FAT type. Needed to create a bootable powerpc image.
imp [Fri, 11 Dec 2015 05:39:42 +0000 (05:39 +0000)]
Add ppcboot FAT type. Needed to create a bootable powerpc image.

Differential Review: https://reviews.freebsd.org/D4407

8 years agoAdd PNP info for ISA and PCI to the ed driver to prove design.
imp [Fri, 11 Dec 2015 05:28:07 +0000 (05:28 +0000)]
Add PNP info for ISA and PCI to the ed driver to prove design.

Differential Review: https://reviews.freebsd.org/D3458

8 years agoCreate a USB_PNP_INFO and use it to export the existing PNP
imp [Fri, 11 Dec 2015 05:28:00 +0000 (05:28 +0000)]
Create a USB_PNP_INFO and use it to export the existing PNP
tables. Some drivers needed some slight re-arrangement of declarations
to accommodate this. Change the USB pnp tables slightly to allow
better compatibility with the system by moving linux driver info from
start of each entry to the end. All other PNP tables in the system
have the per-device flags and such at the end of the elements rather
that at the beginning.

Differential Review: https://reviews.freebsd.org/D3458

8 years agoCreate a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO building
imp [Fri, 11 Dec 2015 05:27:56 +0000 (05:27 +0000)]
Create a generic PCCARD_PNP_INFO from the MODULE_PNP_INFO building
block. Use it in all the PNP drivers to export either the current PNP
table. For uart, create a custom table and export it using
MODULE_PNP_INFO since it's the only one that matches on function
number.

Differential Review: https://reviews.freebsd.org/D3461

8 years agoAugment kldxref to find the new MODULE_PNP_INFO records now in
imp [Fri, 11 Dec 2015 05:27:55 +0000 (05:27 +0000)]
Augment kldxref to find the new MODULE_PNP_INFO records now in
modules, simplify them into a more normal form and write them to
linker.hints.

Differential Review: https://reviews.freebsd.org/D3461

8 years agoCreate the MDT_PNP_INFO metadata record to communicate PNP info about
imp [Fri, 11 Dec 2015 05:27:53 +0000 (05:27 +0000)]
Create the MDT_PNP_INFO metadata record to communicate PNP info about
modules. External agents may use this data to automatically load those
modules.

Differential Review: https://reviews.freebsd.org/D3461

8 years agoRetain maintership over sendmail pieces so I can keep upstream in sync
gshapiro [Fri, 11 Dec 2015 05:26:46 +0000 (05:26 +0000)]
Retain maintership over sendmail pieces so I can keep upstream in sync

8 years agoo Resolve the real path to NANO_OBJ so everything that depends on it
imp [Fri, 11 Dec 2015 05:15:13 +0000 (05:15 +0000)]
o Resolve the real path to NANO_OBJ so everything that depends on it
  doesn't have lots of ../../foo in it.
o Tweak the powerpc64 variant a bit. This gets us closer to working
  with qemu-system-poewrpc64, but we aren't quite there yet.

8 years agoLimit stripesize reported from nvd(4) to 4K
smh [Fri, 11 Dec 2015 02:06:03 +0000 (02:06 +0000)]
Limit stripesize reported from nvd(4) to 4K

Intel NVMe controllers have a slow path for I/Os that span a 128KB stripe boundary but ZFS limits ashift, which is derived from d_stripesize, to 13 (8KB) so we limit the stripesize reported to geom(8) to 4KB.

This may result in a small number of additional I/Os to require splitting in nvme(4), however the NVMe I/O path is very efficient so these additional I/Os will cause very minimal (if any) difference in performance or CPU utilisation.

This can be controller by the new sysctl kern.nvme.max_optimal_sectorsize.

MFC after: 1 week
Sponsored by: Multiplay
Differential Revision: https://reviews.freebsd.org/D4446

8 years agoNo need to reset tlb1 here, it gets reset again after BSS is cleared in
jhibbits [Fri, 11 Dec 2015 01:34:13 +0000 (01:34 +0000)]
No need to reset tlb1 here, it gets reset again after BSS is cleared in
powerpc_init().

Also fix a comment typo (0x45 == E, not e)

8 years agoFollow up to r292071. Actually handle the Altivec Assist for book-e.
jhibbits [Fri, 11 Dec 2015 01:30:20 +0000 (01:30 +0000)]
Follow up to r292071.  Actually handle the Altivec Assist for book-e.

8 years agoAdd more interrupts handled for booke.
jhibbits [Fri, 11 Dec 2015 01:23:18 +0000 (01:23 +0000)]
Add more interrupts handled for booke.

e500mc, e5500, and e6500 all use the normal FPU, with the same behavior as AIM
hardware.  e6500 also supports Altivec, so, although we don't yet have e6500
hardware to test on, add these IVORs as well.  Theoretically, since it boots the
same as a e5500, it should work, single-threaded, single-core, with full altivec
support as of this commit.

With this commit, and some other patches to be committed shortly FreeBSD now
boots on the P5020, single-core, all the way to user space, and should boot just
fine on e500mc.

Relnotes: Yes (e500mc, e5500 support)
Sponsored by: Alex Perez/Inertial Computing

8 years agoMore fixes in the various intel processors, fixing missing
rrs [Fri, 11 Dec 2015 01:21:32 +0000 (01:21 +0000)]
More fixes in the various intel processors, fixing missing
IAP_F_FM's as well as incorrect umask specifications for
some of the new Broadwell/Skylake PMC's. Also silvermont
had a *lot* of missing IAP_F_FM.

Sponsored by: Netflix Inc.

8 years agoChange an important error message from ZFS_LOG to printf
asomers [Fri, 11 Dec 2015 00:04:13 +0000 (00:04 +0000)]
Change an important error message from ZFS_LOG to printf

Submitted by: gibbs
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp

8 years agovm_page_replace: remove redundant radix lookup
cem [Thu, 10 Dec 2015 22:57:27 +0000 (22:57 +0000)]
vm_page_replace: remove redundant radix lookup

Remove redundant lookup of the old page from vm_page_replace.  Verification
that the old page exists is already done by vm_radix_replace.

Submitted by: Ryan Libby <rlibby@gmail.com>
Reviewed by: alc, kib
Sponsored by: EMC / Isilon Storage Division
Follow-up to: https://reviews.freebsd.org/D4326
Differential Revision: https://reviews.freebsd.org/D4471

8 years agoDuring vdev_geom_open, require that the vdev guids match the device's label
asomers [Thu, 10 Dec 2015 21:46:21 +0000 (21:46 +0000)]
During vdev_geom_open, require that the vdev guids match the device's label
except during split, add, or create operations. This fixes a bug where the
wrong disk could be returned, and higher layers of ZFS would immediately
eject it again.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c:
o When opening by GUID, require both the pool and vdev GUIDs to
  match.  While it is highly unlikely for two vdevs to have the same
  vdev GUIDs, the ZFS storage pool allocator only guarantees they
  are unique within a pool.

o Modify the open behavior to:
  - If we are opening a vdev that hasn't previously been opened,
    open by path without checking GUIDs.
  - Otherwise, open by path and verify GUIDs.
  - If that fails, search all geom providers for a device with
    matching GUIDs.
  - If that fails, return ENOENT.

Submitted by: gibbs, asomers
Reviewed by: smh
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D4486

8 years agoMove nanobsd up since I'm overhauling it
imp [Thu, 10 Dec 2015 16:44:40 +0000 (16:44 +0000)]
Move nanobsd up since I'm overhauling it
Sort the new section alphabetically.

8 years agoAdd support for the GICv2M extension to the GICv2 interrupt controller.
andrew [Thu, 10 Dec 2015 16:40:38 +0000 (16:40 +0000)]
Add support for the GICv2M extension to the GICv2 interrupt controller.
This is (oddly) specified in the ARM Server Base System Architecture. It
extends the GICv2 to support MSI and MSI-X interrupts, however only the
latter are currently supported.

Only the FDT attachment is currently supported, however the attachment
and core driver are split to help adding ACPI support in the future.

Obtained from: ABT Systems Ltd
Relnotes: yes
Sponsored by: SoftIron Inc

8 years agoRemove pic_map_msix from ARM64, it is unneeded as all mappings happen
andrew [Thu, 10 Dec 2015 15:51:02 +0000 (15:51 +0000)]
Remove pic_map_msix from ARM64, it is unneeded as all mappings happen
through pic_map_msi (without the x).

Sponsored by: ABT Systems Ltd

8 years agoReduce the numbers of levels of indirection in arm64 pcib drivers by making
andrew [Thu, 10 Dec 2015 13:19:30 +0000 (13:19 +0000)]
Reduce the numbers of levels of indirection in arm64 pcib drivers by making
the MSI & MSI-X handler functions be directly callable from the driver
methods.

Sponsored by: ABT Systems Ltd

8 years agovmm is still maintained.
grehan [Thu, 10 Dec 2015 12:12:47 +0000 (12:12 +0000)]
vmm is still maintained.

8 years agoRetire sctp_validate_no_locks().
tuexen [Thu, 10 Dec 2015 11:49:32 +0000 (11:49 +0000)]
Retire sctp_validate_no_locks().

This routine checks that there are no locks held for an inp,
without having any lock on the inp. This breaks if the inp
goes away when it is called. This happens on stress tests
on a RPi B+.

MFC after: 3 days

8 years agoThe calls to RES_SET_H_ERRNO() macro on error paths wind up
ume [Thu, 10 Dec 2015 11:11:44 +0000 (11:11 +0000)]
The calls to RES_SET_H_ERRNO() macro on error paths wind up
dereferencing an uninitialized res.

PR: 202142
Submitted by: Sean Boudreau
MFC after: 1 week

8 years agoRemove a note about damaged PMBR. Now GPT will be detected automatically
ae [Thu, 10 Dec 2015 10:37:12 +0000 (10:37 +0000)]
Remove a note about damaged PMBR. Now GPT will be detected automatically
with such corruption.

MFC after: 1 month

8 years agoMake detection of GPT a bit more reliable.
ae [Thu, 10 Dec 2015 10:35:07 +0000 (10:35 +0000)]
Make detection of GPT a bit more reliable.

When we are detecting a partition table and didn't find PMBR, try to
read backup GPT header from the last sector and if it is correct,
assume that we have GPT.

Reviewed by: rpokala
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D4282

8 years agoAll 2-endpoints configs have high and normal pariority queues.
kevlo [Thu, 10 Dec 2015 07:45:58 +0000 (07:45 +0000)]
All 2-endpoints configs have high and normal pariority queues.

8 years agosfxge: consolidate privilege check functions
arybchik [Thu, 10 Dec 2015 07:42:56 +0000 (07:42 +0000)]
sfxge: consolidate privilege check functions

To reduce code duplication in common code, consolidate similar privilege
check functions.

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Reviewed by:    gnn
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D4480

8 years agoMFhead @ r292053
ngie [Thu, 10 Dec 2015 07:38:56 +0000 (07:38 +0000)]
MFhead @ r292053

8 years agosfxge: cleanup: fix header
arybchik [Thu, 10 Dec 2015 07:35:38 +0000 (07:35 +0000)]
sfxge: cleanup: fix header

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days

8 years agosfxge: simplify privilege checks with macro
arybchik [Thu, 10 Dec 2015 07:17:46 +0000 (07:17 +0000)]
sfxge: simplify privilege checks with macro

Submitted by:   Richard Houldsworth <rhouldsworth at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      2 days
Differential Revision: https://reviews.freebsd.org/D4455

8 years agosfxge: [6/6] support for MCDI proxy authorization in common code
arybchik [Thu, 10 Dec 2015 07:16:21 +0000 (07:16 +0000)]
sfxge: [6/6] support for MCDI proxy authorization in common code

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D4454

8 years agosfxge: [5/6] rework event completion error handling
arybchik [Thu, 10 Dec 2015 07:15:09 +0000 (07:15 +0000)]
sfxge: [5/6] rework event completion error handling

Required for MCDI proxy authorization support.

Submitted by:   Andy Moreton <amoreton at solarflare.com>
Sponsored by:   Solarflare Communications, Inc.
MFC after:      1 week
Differential Revision: https://reviews.freebsd.org/D4453

8 years agoDon't leak rsector/sector in mp_label(..)
ngie [Thu, 10 Dec 2015 07:04:36 +0000 (07:04 +0000)]
Don't leak rsector/sector in mp_label(..)

Use calloc instead of malloc + memset(.., 0, ..) when allocating sector

Differential Revision: https://reviews.freebsd.org/D4450
MFC after: 1 week
Reported by: cppcheck
Reviewed by: mav
Sponsored by: EMC / Isilon Storage Division

8 years agoRPC: populate local address for rendezvous transporter.
stas [Thu, 10 Dec 2015 05:17:04 +0000 (05:17 +0000)]
RPC: populate local address for rendezvous transporter.

When accepting a connection on underlying tcp socket rpc vc
transporter fails to populate local address.  This change rectifies
this problem by modifying rendezvous_request() to fill out the xptr
structure member with appropriate information.

Submitted by: Alex Burlyga <alex.burlyga.ietf@gmail.com>
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D4206

8 years agor290122 added 4 bytes and removed 8 in struct sackhint. Add a pad entry of 4
hiren [Thu, 10 Dec 2015 03:20:10 +0000 (03:20 +0000)]
r290122 added 4 bytes and removed 8 in struct sackhint. Add a pad entry of 4
bytes to restore the size.

Spotted by: rrs
Reviewed by: rrs
X-MFC with: r290122
Sponsored by: Limelight Networks

8 years agoAdd -t option to display field types.
araujo [Thu, 10 Dec 2015 02:11:42 +0000 (02:11 +0000)]
Add -t option to display field types.

PR: bin/203918
Submitted by: ota <ota@j.email.ne.jp>
Reviewed by: cem
Approved by: bapt (mentor)
Differential Revision: https://reviews.freebsd.org/D4451

8 years agoioat(4): Add ioatcontrol(8) testing for copy_8k
cem [Thu, 10 Dec 2015 02:05:35 +0000 (02:05 +0000)]
ioat(4): Add ioatcontrol(8) testing for copy_8k

Add -E ("Eight k") and -m ("Memcpy") modes to the ioatcontrol(8) tool.

Prompted by: rpokala
Sponsored by: EMC / Isilon Storage Division

8 years agoFix several typos and bugs within pmcstudy. Also highlight the one SB test
rrs [Thu, 10 Dec 2015 01:52:29 +0000 (01:52 +0000)]
Fix several typos and bugs within pmcstudy. Also highlight the one SB test
that is failing (and is likely a problem in the actual PMC defintions). Add
to this also the -A option to run all canned tests.

Sponsored by: Netflix Inc.

8 years agoUpdate list of card names.
mav [Thu, 10 Dec 2015 01:41:05 +0000 (01:41 +0000)]
Update list of card names.

8 years agoGuess NVRAM address for 16Gbps Qlogic cards.
mav [Thu, 10 Dec 2015 01:17:30 +0000 (01:17 +0000)]
Guess NVRAM address for 16Gbps Qlogic cards.

I have feeling this approach is wrong, but it works for me so far and
it is better then nothing.

8 years agoUse LIBADD for pthread.
bdrewery [Thu, 10 Dec 2015 01:16:22 +0000 (01:16 +0000)]
Use LIBADD for pthread.

Sponsored by: EMC / Isilon Storage Division

8 years agoFix a copy and paste bug when this page was first written by copying from
jhb [Thu, 10 Dec 2015 00:16:02 +0000 (00:16 +0000)]
Fix a copy and paste bug when this page was first written by copying from
BUS_BIND_INTR.9.

MFC after: 1 week

8 years agoConvert contrib/ofed libraries to LIBADD.
bdrewery [Thu, 10 Dec 2015 00:07:11 +0000 (00:07 +0000)]
Convert contrib/ofed libraries to LIBADD.

Sponsored by: EMC / Isilon Storage Division

8 years agoSort the LIB list.
bdrewery [Thu, 10 Dec 2015 00:07:05 +0000 (00:07 +0000)]
Sort the LIB list.

Sponsored by: EMC / Isilon Storage Division

8 years agoAdd a couple of spots I tend to look at and Michael for SCTP as well :-)
rrs [Wed, 9 Dec 2015 23:02:20 +0000 (23:02 +0000)]
Add a couple of spots I tend to look at and Michael for SCTP as well :-)

8 years agoAdd PCI ID for 16G QLogic chips in FCoE mode.
mav [Wed, 9 Dec 2015 22:52:37 +0000 (22:52 +0000)]
Add PCI ID for 16G QLogic chips in FCoE mode.

I haven't tested FCoE really yet, but the driver attaches fine.

8 years agoFix the tunable in logging so that if its pre-11 we have the proper
rrs [Wed, 9 Dec 2015 22:46:40 +0000 (22:46 +0000)]
Fix the tunable in logging so that if its pre-11 we have the proper
line so the tunable is present.

Sponsored by: Netflix Inc.

8 years agoioat(4): Add Broadwell-EP PCI IDs
cem [Wed, 9 Dec 2015 22:46:00 +0000 (22:46 +0000)]
ioat(4): Add Broadwell-EP PCI IDs

Sponsored by: EMC / Isilon Storage Division