]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
6 years agosh: Don't have [ match any [[:class:]]
jilles [Sun, 29 Apr 2018 17:46:08 +0000 (17:46 +0000)]
sh: Don't have [ match any [[:class:]]

Submitted by: Robert Elz
MFC after: 3 days

6 years agoEliminate some vm object relocks in vm fault.
kib [Sun, 29 Apr 2018 12:43:08 +0000 (12:43 +0000)]
Eliminate some vm object relocks in vm fault.

For the vm_fault_prefault() call from vm_fault_soft_fast(), extend the
scope of the object rlock to avoid re-taking it inside
vm_fault_prefault(). It causes pmap_enter_quick() sometimes called
with shadow object lock as well as the page lock, but this looks
innocent.

Noted and measured by: mjg
Reviewed by: alc, markj (as part of the larger patch)
Tested by: pho (as part of the larger patch)
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D15122

6 years agoClean up the EXAMPLES section of usbconfig(8). This removes parts that
trasz [Sun, 29 Apr 2018 10:45:09 +0000 (10:45 +0000)]
Clean up the EXAMPLES section of usbconfig(8).  This removes parts that
become redundant after documenting all the subcommands, and switches
to the new syntax, without the '-d'.

Reviewed by: hselasky@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

6 years agoamd64/mp_machdep.c: Fix GCC build after r333059
cem [Sat, 28 Apr 2018 17:55:28 +0000 (17:55 +0000)]
amd64/mp_machdep.c: Fix GCC build after r333059

GCC warns about the potentially confusing use of the binary AND ('&')
operator with a left operand containing an addition expression.  (The
confusion would be around the operator precedence between the + and & infix
operators.)  The warning is converted into an error with -Werror.

No functional change.

This construct was actually introduced in r328083, but r333059 (re)moved the
closing parentheses.

For reference, see http://en.cppreference.com/w/c/language/operator_precedence .

6 years agosmartpqi(4): Use conventional path to driver sources
cem [Sat, 28 Apr 2018 17:43:51 +0000 (17:43 +0000)]
smartpqi(4): Use conventional path to driver sources

6 years agosmartpqi(4): Unbreak GCC build
cem [Sat, 28 Apr 2018 17:43:20 +0000 (17:43 +0000)]
smartpqi(4): Unbreak GCC build

Remove redundant declarations.

6 years agopfctl: Don't break connections on skipped interfaces on reload
kp [Sat, 28 Apr 2018 13:16:58 +0000 (13:16 +0000)]
pfctl: Don't break connections on skipped interfaces on reload

On reload we used to first flush everything, including the list of skipped
interfaces.  This can lead to termination of these connections if they send
packets before the new configuration is applied.

Note that this doesn't currently happen on 12 or 11, because of special EACCES
handling introduced in r315514. This special behaviour in tcp_output() may
change, hence the fix in pfctl.

PR: 214613

6 years agoAdd EXAMPLES to tip(1) man page.
trasz [Sat, 28 Apr 2018 12:24:05 +0000 (12:24 +0000)]
Add EXAMPLES to tip(1) man page.

MFC after: 2 weeks

6 years agozpool(8): correct list of default properties in 'list'.
eadler [Sat, 28 Apr 2018 01:14:16 +0000 (01:14 +0000)]
zpool(8): correct list of default properties in 'list'.

The default provides output in the following form:
```
NAME       SIZE  ALLOC   FREE  CKPOINT  EXPANDSZ   FRAG    CAP  DEDUP
HEALTH  ALTROOT
```

this corrects the man page.

Also submitted upstream as
https://github.com/openzfs/openzfs/pull/632/files (with slightly
different changes needed)

6 years agoNo need to make objects here.
imp [Fri, 27 Apr 2018 22:15:18 +0000 (22:15 +0000)]
No need to make objects here.

6 years agoUse %p to print uintptr_t values rather than %z in MIPS single-step code.
jhb [Fri, 27 Apr 2018 21:22:32 +0000 (21:22 +0000)]
Use %p to print uintptr_t values rather than %z in MIPS single-step code.

6 years agoarm: dts: overlays: Remove the overlay module
manu [Fri, 27 Apr 2018 21:15:51 +0000 (21:15 +0000)]
arm: dts: overlays: Remove the overlay module

Move the DTSO variables in the main SoC dtb file

Discussed with: ian

6 years agoarm: Fix duplicate ehci DRIVER_MODULE
manu [Fri, 27 Apr 2018 21:05:58 +0000 (21:05 +0000)]
arm: Fix duplicate ehci DRIVER_MODULE

Name each ehci driver uniquely.
This remove the warning printed at each arm boot :
module_register: cannot register simplebus/ehci from kernel; already loaded from kernel

6 years agoarm: Fix duplicate ahci DRIVER_MODULE
manu [Fri, 27 Apr 2018 21:05:18 +0000 (21:05 +0000)]
arm: Fix duplicate ahci DRIVER_MODULE

Name each ahci driver uniquely.
This remove the warning printed at each arm boot :
module_register: cannot register simplebus/ahci from kernel; already loaded from kernel

6 years agoRetire UPDATING entries prior to the stable/10 branch
emaste [Fri, 27 Apr 2018 20:20:57 +0000 (20:20 +0000)]
Retire UPDATING entries prior to the stable/10 branch

We do not support building from FreeBSD 9.x releases.

Approved by: imp
Sponsored by: The FreeBSD Foundation

6 years agoBump min supported release for building HEAD to 10.3
emaste [Fri, 27 Apr 2018 19:50:30 +0000 (19:50 +0000)]
Bump min supported release for building HEAD to 10.3

r307825 and r333017 disallow building FreeBSD-HEAD from 9.x or 10.x
versions that have some clang issues.  The minimum supported Subversion
revisions and osreldates containing the fix are:

Version  Min Rev  osreldate
    9.x  r286035     903509
   10.x  r286033    1002501

9.3 is the final 9.x release and does not contain the r286035 fix.
10.3 is the first 10.x release with the fix.  Thus, in practice 10.3 is
the oldest release that can build HEAD.

Although it may still be possible to build HEAD from an up-to-date
stable/9 it's not worth maintaining the special case when the branch
itself is unsupported and there are no usable releases from that branch.

Old UPDATING entries can be removed and the Clang warning in UPDATING
may be updated, in a future commit.

Approved by: imp
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D15209

6 years agoUse the correct key address when renegotiating the transmit key.
jhb [Fri, 27 Apr 2018 17:20:23 +0000 (17:20 +0000)]
Use the correct key address when renegotiating the transmit key.

Previously, get_keyid() was returning the address of the receive key
instead of the transmit key when renegotiating the transmit key.  This
could either hang the card (if a connection was only offloading TLS TX
and thus had a receive key address of -1) or cause the connection to
fail by overwriting the wrong key (if both RX and TX TLS were
offloaded).

Submitted by: Harsh Jain @ Chelsio
Sponsored by: Chelsio Communications

6 years agoRemove redundant pipe from pdeathsig.c test.
kib [Fri, 27 Apr 2018 16:34:28 +0000 (16:34 +0000)]
Remove redundant pipe from pdeathsig.c test.

A pipe was was left over from a development version of pdeathsig.c and
is not needed.

Process C waits for a signal that'll be generated when process B
exists. Process B waits for process D to send it a byte via pipe_db
before it exits. Process D sends the byte after it has started
ptrace()ing process C. The point of the test is to show that process C
receives the signal because process B exited, even though C has been
reparented to process D. The pipe pipe_cd isn't doing anything useful
(though in an earlier version of the patch it did). Clean that up by
removing the useless pipe.

Submitted by: Thomas Munro
MFC after: 6 days
Differential revision: https://reviews.freebsd.org/D15214

6 years agoUnbreak world build after r333064
mjg [Fri, 27 Apr 2018 15:50:22 +0000 (15:50 +0000)]
Unbreak world build after r333064

Reported by: O. Hartmann <ohartmann walstatt.org>

6 years agosetfacl: style and break main() into manageable pieces
emaste [Fri, 27 Apr 2018 15:25:24 +0000 (15:25 +0000)]
setfacl: style and break main() into manageable pieces

Submitted by: Mitchell Horne
MFC with: r332396
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D15060

6 years agosystrace: track it like sdt probes
mjg [Fri, 27 Apr 2018 15:16:34 +0000 (15:16 +0000)]
systrace: track it like sdt probes

While here predict false.

Note the code is wrong (regardless of this change). Dereference of the
pointer can race with module unload. A fix would set the probe to a
nop stub instead of NULL.

6 years agoUpdate ELF Tool Chain to r3614
emaste [Fri, 27 Apr 2018 13:59:24 +0000 (13:59 +0000)]
Update ELF Tool Chain to r3614

MFC after: 1 week
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

6 years agoelf_common.h: add DT_SUNW_ASLR tag
emaste [Fri, 27 Apr 2018 13:55:46 +0000 (13:55 +0000)]
elf_common.h: add DT_SUNW_ASLR tag

For upcoming ELF Tool Chain import (readelf).

6 years agoExpand the checks for UCR3 == PMAP_NO_CR3 to enable processes to be
tychon [Fri, 27 Apr 2018 12:44:20 +0000 (12:44 +0000)]
Expand the checks for UCR3 == PMAP_NO_CR3 to enable processes to be
excluded from PTI.

Reviewed by: kib
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D15100

6 years agoallwinner: clk: Add gate_shift to the clock definition
manu [Fri, 27 Apr 2018 09:25:27 +0000 (09:25 +0000)]
allwinner: clk: Add gate_shift to the clock definition

WHile gate_shift was present in the NM_CLK macro it wasn't set into the
clock definition structure resulting in NM clocks not being correctly
gated when they should.
If the module wasn't enabled by the bootloader it will have stayed ungated.

6 years agoallwinner: clk: Correct aw_clk_get_factor
manu [Fri, 27 Apr 2018 09:23:07 +0000 (09:23 +0000)]
allwinner: clk: Correct aw_clk_get_factor

Switch test between zero based factor and power of two one.
This resulted in a miscalculation of the factor if it was a power
of two one.
Some clocks frequencies were not calculated correctly because of that.

6 years agouma: whack main zone counter update in the slow path
mjg [Fri, 27 Apr 2018 05:37:35 +0000 (05:37 +0000)]
uma: whack main zone counter update in the slow path

Cached counters are typically zero at this point so it performs
avoidable atomics. Everything reading them also reads the cached
ones, thus there is really no point.

Reviewed by: jeff

6 years agovm: move vm_cnt to __read_mostly now that it is not written to
mjg [Fri, 27 Apr 2018 05:36:02 +0000 (05:36 +0000)]
vm: move vm_cnt to __read_mostly now that it is not written to

While here whack unused locking keys for the struct.

Discussed with: jeff

6 years agoRevert r333035 due broken booting on !Marvell GENERIC platforms
mw [Fri, 27 Apr 2018 05:32:09 +0000 (05:32 +0000)]
Revert r333035 due broken booting on !Marvell GENERIC platforms

Reported by: manu

6 years agoclk: Put the sysctls under hw.clock instead of clock
manu [Fri, 27 Apr 2018 00:12:00 +0000 (00:12 +0000)]
clk: Put the sysctls under hw.clock instead of clock

This is more consistant with hw.regulator and other hardware related
sysctls.

6 years agomove smartpqi(4) controller out of NOTES and into sys/amd64/NOTES to
sbruno [Thu, 26 Apr 2018 22:43:25 +0000 (22:43 +0000)]
move smartpqi(4) controller out of NOTES and into sys/amd64/NOTES to
appease LINT

Submitted by: rpokala
Reported by: npn

6 years agoarm64: rockchip: rk_gpio fix rk_gpio_pin_config32
manu [Thu, 26 Apr 2018 22:15:09 +0000 (22:15 +0000)]
arm64: rockchip: rk_gpio fix rk_gpio_pin_config32

Pointy Hat to:  me

6 years agocxgbe(4): Move release_tid to the base NIC driver for future consumers.
np [Thu, 26 Apr 2018 22:04:21 +0000 (22:04 +0000)]
cxgbe(4): Move release_tid to the base NIC driver for future consumers.

Sponsored by: Chelsio Communications.

6 years agoarm64: rockchip: Add gpio controller driver
manu [Thu, 26 Apr 2018 21:44:00 +0000 (21:44 +0000)]
arm64: rockchip: Add gpio controller driver

Add a driver that match on 'rockchip,gpio-bank', this compatible
string is found on almost all RockChip SoC so this driver is compatible
with almost all of the RockChip SoCs.

The only features missing for this driver are :
- Interrupts support
- Debouncing

6 years agoThis change re-arranges the fields within the tcp-pcb so that
rrs [Thu, 26 Apr 2018 21:41:16 +0000 (21:41 +0000)]
This change re-arranges the fields within the tcp-pcb so that
they are more in order of cache line use as one passes
through the tcp_input/output paths (non-errors most likely path). This
helps speed up cache line optimization so that the tcp stack runs
a bit more efficently.

Sponsored by: Netflix Inc.
Differential Revision: https://reviews.freebsd.org/D15136

6 years agoarm64: rockchip: RK3328 CRU Add gpio gates
manu [Thu, 26 Apr 2018 21:40:05 +0000 (21:40 +0000)]
arm64: rockchip: RK3328 CRU Add gpio gates

Add the gates for the gpio controller in order to properly support them.

6 years agoarm64: rockchip: Rk3328 CRU Fix some offset for gates
manu [Thu, 26 Apr 2018 21:38:59 +0000 (21:38 +0000)]
arm64: rockchip: Rk3328 CRU Fix some offset for gates

Some offset of some clock gates where wrong, correct them so we can
use thoses clocks.

Pointy Hat to: me

6 years agoarm64: rockchip: Add pinctrl driver
manu [Thu, 26 Apr 2018 21:37:38 +0000 (21:37 +0000)]
arm64: rockchip: Add pinctrl driver

Add pinctrl driver for RockChip SoCs. This device manage which function
to set on which pin and some other properties like pull up/down, drive
strength etc ...
For now the driver only support RK3328 but it is versatile enough to
add support for other RockChip SoC in the future.

6 years agoarm64: rockchip: Add GRF driver
manu [Thu, 26 Apr 2018 21:35:04 +0000 (21:35 +0000)]
arm64: rockchip: Add GRF driver

RockChip GRF (General Register Files) is present on almost all RockChip
SoC and is used to control some area of the system like iomuxing, gpio
or usb phy.
We need it to be probed and attached early in the boot process so
subclass syscon_generic and set the pass to BUS_PASS_BUS + BUS_PASS_ORDER_MIDDLE.

6 years agoFix move of the frame to the normal stack for interrupts occuring from
kib [Thu, 26 Apr 2018 21:07:45 +0000 (21:07 +0000)]
Fix move of the frame to the normal stack for interrupts occuring from
the vm86 mode.

Submitted by: jhb

6 years agoAdd Marvell ArmadaXP and Armada38X to GENERIC config
mw [Thu, 26 Apr 2018 19:23:37 +0000 (19:23 +0000)]
Add Marvell ArmadaXP and Armada38X to GENERIC config

Include source files and drivers for Marvell ArmadaXP and Armada38X
in GENERIC kernel config.

Submitted by: Michal Mazur <mkm@semihalf.com>
      Rafal Kozik <rk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14747

6 years agoFix spelling: Appolo -> Apollo [1].
kib [Thu, 26 Apr 2018 19:23:19 +0000 (19:23 +0000)]
Fix spelling: Appolo -> Apollo [1].
The APL31 NDA errata is APL30 public errata.  Add the reference and
provide the description [2].

Noted by: emaste [2], rpokala [1]
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

6 years agoAdd support for gpioled on ARMADA38X based boards
mw [Thu, 26 Apr 2018 19:15:39 +0000 (19:15 +0000)]
Add support for gpioled on ARMADA38X based boards

This patch adds support for gpio and gpioled into ARMADA38X kernel
config.

Reviewed by: andrew
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14758

6 years agoReplace FDT tree parsing with gpio_map_gpios implementation in mv_gpio driver
mw [Thu, 26 Apr 2018 19:10:18 +0000 (19:10 +0000)]
Replace FDT tree parsing with gpio_map_gpios implementation in mv_gpio driver

This patch replaces in-driver FDT parsing, which was
needed for setting initial values on GPIO pins.
Now FDT is parsed by generic kernel code, pins are set
by invoking gpio_map_gpios method.

Submitted by: Patryk Duda <pdk@semihalf.com>
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14757

6 years agoUpdate mv_gpio driver to new FreeBSD API
mw [Thu, 26 Apr 2018 19:00:48 +0000 (19:00 +0000)]
Update mv_gpio driver to new FreeBSD API

This patch implements and exports functions described
in gpio_if.m file. It also uses new gpiobus_attach_bus function
instead of adding gpioc and gpiobus as children. It removes
ulgy reading SoC ID and related if..else, so it depends only on
data read from FDT.

Submitted by: Patryk Duda <pdk@semihalf.com>
Reviewed by: manu
Obtained from: Semihalf
Sponsored by: Stormshield
Differential Revision: https://reviews.freebsd.org/D14756

6 years agocxgbe(4): Break up alloc_tid_tabs and move the atid routines to the base
np [Thu, 26 Apr 2018 19:00:35 +0000 (19:00 +0000)]
cxgbe(4): Break up alloc_tid_tabs and move the atid routines to the base
NIC driver.  The atid services will be used by new features (hashfilters
and inline TLS) that do not involve TOE.

Sponsored by: Chelsio Communications

6 years agolibsysdecode: support errno and syscalls for arm64 Linux
emaste [Thu, 26 Apr 2018 18:54:00 +0000 (18:54 +0000)]
libsysdecode: support errno and syscalls for arm64 Linux

Sponsored by: Turing Robotic Industries Inc.

6 years agoarm64 linuxulator: add generated sysent files
emaste [Thu, 26 Apr 2018 18:46:38 +0000 (18:46 +0000)]
arm64 linuxulator: add generated sysent files

From syscalls.master in r333027

Sponsored by: Turing Robotic Industries Inc.

6 years agoAdd arm64 Linux syscall table
emaste [Thu, 26 Apr 2018 18:38:59 +0000 (18:38 +0000)]
Add arm64 Linux syscall table

This is the first step (after the recent refactoring of some common
code) to supporting the Linuxulator on arm64.

Reviewed by: andrew
Sponsored by: Turing Robotic Industries Inc.
Differential Revision: https://reviews.freebsd.org/D15187

6 years agoHandle Appolo Lake errata APL31.
kib [Thu, 26 Apr 2018 18:24:31 +0000 (18:24 +0000)]
Handle Appolo Lake errata APL31.

If the workaround is activated, always send IPI for wake up, not rely
on the write to the monitor line.  This fixes Appolo Lake machines
early hang in sched_bind(), without requiring user to manually select
idle method.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

6 years agoSome style and minor code improvements for idle selection.
kib [Thu, 26 Apr 2018 18:12:40 +0000 (18:12 +0000)]
Some style and minor code improvements for idle selection.

Use designated initializers for the idlt_tlb elements.
Remove strstr() use, add flag field to detect supported MWAIT.
Use nitems() instead of the terminating NULL entry for idle_tlb.
Move several functions into cpu_idle_* namespace.

Based on the discussion with: bde
Sponsored by: The FreeBSD Foundation
MFC after: 1 week

6 years agoErm, fix typo.
trasz [Thu, 26 Apr 2018 17:36:48 +0000 (17:36 +0000)]
Erm, fix typo.

MFC after: 2 weeks

6 years agoBump .Dd.
trasz [Thu, 26 Apr 2018 17:36:31 +0000 (17:36 +0000)]
Bump .Dd.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

6 years agoClarify which USB specs are supported by cdce(4) and umodem(4).
trasz [Thu, 26 Apr 2018 17:34:53 +0000 (17:34 +0000)]
Clarify which USB specs are supported by cdce(4) and umodem(4).

Discussed with: hselasky@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

6 years agoTigthen up kern_prefetch.h includes. The DMAP check was not committed in
sbruno [Thu, 26 Apr 2018 17:32:35 +0000 (17:32 +0000)]
Tigthen up kern_prefetch.h includes.  The DMAP check was not committed in
here with HPTS so these includes aren't necessary.

Comments from rrs:
Yeah I had those in there in our version so I could
validate the range in amd64 with the DMAP_VM but for
some reason those don't work in head anymore.. Forgot
to purge the headers :)

Submitted by: Kevin Bowling
Reviewed by: rrs
Differential Revision: https://reviews.freebsd.org/D15164

6 years agoAdd myself back to the ranks of being mentored
seanc [Thu, 26 Apr 2018 17:13:58 +0000 (17:13 +0000)]
Add myself back to the ranks of being mentored

Approved by: swills (mentor)

6 years agomartpqi(4):
sbruno [Thu, 26 Apr 2018 16:59:06 +0000 (16:59 +0000)]
martpqi(4):
- Microsemi SCSI driver for PQI controllers.
- Found on newer model HP servers.
- Restrict to AMD64 only as per developer request.

The driver provides support for the new generation of PQI controllers
from Microsemi. This driver is the first SCSI driver to implement the PQI
queuing model and it will replace the aacraid driver for Adaptec Series 9
controllers.  HARDWARE Controllers supported by the driver include:

    HPE Gen10 Smart Array Controller Family
    OEM Controllers based on the Microsemi Chipset.

Submitted by:   deepak.ukey@microsemi.com
Relnotes:       yes
Sponsored by:   Microsemi
Differential Revision:   https://reviews.freebsd.org/D14514
> Description of fields to fill in above:                     76 columns --|
> PR:                       If and which Problem Report is related.
> Submitted by:             If someone else sent in the change.
> Reported by:              If someone else reported the issue.
> Reviewed by:              If someone else reviewed your modification.
> Approved by:              If you needed approval for this commit.
> Obtained from:            If the change is from a third party.
> MFC after:                N [day[s]|week[s]|month[s]].  Request a reminder email.
> MFH:                      Ports tree branch name.  Request approval for merge.
> Relnotes:                 Set to 'yes' for mention in release notes.
> Security:                 Vulnerability reference (one per line) or description.
> Sponsored by:             If the change was sponsored by an organization.
> Pull Request:             https://github.com/freebsd/freebsd/pull/### (*full* GitHub URL needed).
> Differential Revision:    https://reviews.freebsd.org/D### (*full* phabric URL needed).
> Empty fields above will be automatically removed.

M    share/man/man4/Makefile
AM   share/man/man4/smartpqi.4
M    sys/amd64/conf/GENERIC
M    sys/conf/NOTES
M    sys/conf/files.amd64
A    sys/dev/smartpqi
AM   sys/dev/smartpqi/smartpqi_cam.c
AM   sys/dev/smartpqi/smartpqi_cmd.c
AM   sys/dev/smartpqi/smartpqi_defines.h
AM   sys/dev/smartpqi/smartpqi_discovery.c
AM   sys/dev/smartpqi/smartpqi_event.c
AM   sys/dev/smartpqi/smartpqi_helper.c
AM   sys/dev/smartpqi/smartpqi_includes.h
AM   sys/dev/smartpqi/smartpqi_init.c
AM   sys/dev/smartpqi/smartpqi_intr.c
AM   sys/dev/smartpqi/smartpqi_ioctl.c
AM   sys/dev/smartpqi/smartpqi_ioctl.h
AM   sys/dev/smartpqi/smartpqi_main.c
AM   sys/dev/smartpqi/smartpqi_mem.c
AM   sys/dev/smartpqi/smartpqi_misc.c
AM   sys/dev/smartpqi/smartpqi_prototypes.h
AM   sys/dev/smartpqi/smartpqi_queue.c
AM   sys/dev/smartpqi/smartpqi_request.c
AM   sys/dev/smartpqi/smartpqi_response.c
AM   sys/dev/smartpqi/smartpqi_sis.c
AM   sys/dev/smartpqi/smartpqi_structures.h
AM   sys/dev/smartpqi/smartpqi_tag.c
M    sys/modules/Makefile
A    sys/modules/smartpqi
AM   sys/modules/smartpqi/Makefile

6 years agoCorrect r307825 BOOTSTRAPPING test for unsupported upgrade
emaste [Thu, 26 Apr 2018 13:18:24 +0000 (13:18 +0000)]
Correct r307825 BOOTSTRAPPING test for unsupported upgrade

__FreeBSD_version has five digits after the major number, but the min
versions in the test had an extra 0 (so the test was always false).

6 years agoMerge r1.22-1.23 from NetBSD:
ae [Thu, 26 Apr 2018 12:23:31 +0000 (12:23 +0000)]
Merge r1.22-1.23 from NetBSD:
  Don't assume M_PKTHDR is set only on the first mbuf of the chain.
  The check is replaced by (m1 != m), which is equivalent to the previous
  code: we want to modify m->m_pkthdr.len only when 'm' was not passed in
  m_adj().

  Fix a pretty bad mistake, that has always been there:
   m_adj(m1, -(m1->m_len - roff));
   if (m1 != m)
m->m_pkthdr.len -= (m1->m_len - roff);

  This is wrong: m_adj() will modify m1->m_len, so we're using a wrong
  value when manually adjusting m->m_pkthdr.len.

Reported by: Maxime Villard <max at m00nbsd dot net>
Obtained from: NetBSD
MFC after: 1 week

6 years agoAdd network device event for priority code point, PCP, changes.
hselasky [Thu, 26 Apr 2018 08:58:27 +0000 (08:58 +0000)]
Add network device event for priority code point, PCP, changes.

When the PCP is changed for either a VLAN network interface or when
prio tagging is enabled for a regular ethernet network interface,
broadcast the IFNET_EVENT_PCP event so applications like ibcore can
update its GID tables accordingly.

MFC after: 3 days
Reviewed by: ae, kib
Differential Revision: https://reviews.freebsd.org/D15040
Sponsored by: Mellanox Technologies

6 years agozgrep.sh: Add forgotten ';' and remove set -e which prevents looping over files
bapt [Wed, 25 Apr 2018 21:01:02 +0000 (21:01 +0000)]
zgrep.sh: Add forgotten ';' and remove set -e which prevents looping over files
not matching

6 years agozgrep.sh: remove now useless shift
bapt [Wed, 25 Apr 2018 20:55:18 +0000 (20:55 +0000)]
zgrep.sh: remove now useless shift

6 years agozgrep: small improvements
bapt [Wed, 25 Apr 2018 20:52:17 +0000 (20:52 +0000)]
zgrep: small improvements

* Use slightly more efficient method to determine the name of the program
called [1]
* Use nicer form to loop over arguments [1]
* add special support for --version along with -V previously added by kevans

Reported by: jilles@ [1]

6 years agoFix mips32 build after r332951.
lwhsu [Wed, 25 Apr 2018 19:46:39 +0000 (19:46 +0000)]
Fix mips32 build after r332951.

Approved by: jhb

6 years ago<compress>grep: Special case the -V flag
kevans [Wed, 25 Apr 2018 18:59:29 +0000 (18:59 +0000)]
<compress>grep: Special case the -V flag

In case we need version information of the ultimately chosen grep, allowing
`zgrep -V` to operate would be most helpful.

6 years agoUpdate release version of FreeBSD.
benno [Wed, 25 Apr 2018 18:56:27 +0000 (18:56 +0000)]
Update release version of FreeBSD.

Sponsored by: iXsystems, Inc.

6 years agoAllow etdump, makefs and mkimg to be overridden.
benno [Wed, 25 Apr 2018 18:47:52 +0000 (18:47 +0000)]
Allow etdump, makefs and mkimg to be overridden.

Recent changes to makefs and mkimg have led to situations where the
disconnect between this script and the versions installed on the host cause
failures. Provide a way to work around this that doesn't require the
installation of new versions to the host system if that's not desired.

With this change mkisoimages.sh will honour the $ETDUMP, $MAKEFS and $MKIMG
environment variables but fall back to the previous behaviour of finding them
within $PATH.

Reviewed by: gjb
Sponsored by: iXsystems, Inc.
Differential Revision: https://reviews.freebsd.org/D15181

6 years agoFix Issue with adding MUltiCast Addresses. When multicast addresses are
davidcs [Wed, 25 Apr 2018 18:06:22 +0000 (18:06 +0000)]
Fix Issue with adding MUltiCast Addresses. When multicast addresses are
added/deleted, the delete the multicast addresses previously programmed
in HW and reprogram the new set of multicast addresses.

Submitted by:Vaishali.Kulkarni@cavium.com
MFC after:5 days

6 years agoUpgraded FW Related Files to version 5.4.67
davidcs [Wed, 25 Apr 2018 17:51:17 +0000 (17:51 +0000)]
Upgraded FW Related Files to version 5.4.67

MFC after:5 days

6 years agoUse CPUID leaf 0x15 to get TSC frequency when the calibration is
kib [Wed, 25 Apr 2018 16:43:45 +0000 (16:43 +0000)]
Use CPUID leaf 0x15 to get TSC frequency when the calibration is
disabled.

Intel finally added this information, which allows us to not parse CPU
identification string looking for the nominal frequency.  The leaf is
present e.g. on Appolo Lake Atom CPUs.  It is only used if the TSC
calibration is disabled by user.

Also, report the TSC frequency in bootverbose mode always, regardless
of the way it was obtained.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

6 years agobsdgrep(1): Sneak in some man page updates
kevans [Wed, 25 Apr 2018 16:28:51 +0000 (16:28 +0000)]
bsdgrep(1): Sneak in some man page updates

- The --exclude{,-dir} and --include{,-dir} directives now match GNU
  behavior of being processed in order and latest matching directive wins

- --label was previously not really documented, and -L and -l did not
  indicate that --label applied to them

- The flags listed as being extensions to POSIX spec were not updated with
  the removal of compression-related flags

MFC after: 1 week

6 years agobsdgrep: Update NLS catalogs after r332995
kevans [Wed, 25 Apr 2018 15:41:50 +0000 (15:41 +0000)]
bsdgrep: Update NLS catalogs after r332995

Compression was removed so #2 goes away and everything else needs renumbered
to match, and the usage string was also updated due to removed options.

X-MFC-With: r332995

6 years agoClean up .Xrs in man(1).
trasz [Wed, 25 Apr 2018 15:39:36 +0000 (15:39 +0000)]
Clean up .Xrs in man(1).

MFC after: 2 weeks

6 years agoAdd some .Xrs to USB template descriptions.
trasz [Wed, 25 Apr 2018 15:32:12 +0000 (15:32 +0000)]
Add some .Xrs to USB template descriptions.

MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

6 years agoTranslate 32-bit ifmedia requests into native ones.
brooks [Wed, 25 Apr 2018 15:30:42 +0000 (15:30 +0000)]
Translate 32-bit ifmedia requests into native ones.

We use transformation rather than accessors as virtually ever driver
implements SIOCGIFMEDIA and all would have to be touched.

Keep the code readable by always performing copies and (possiably no-op)
transforms.

Reviewed by: jhb, kib
Obtained from: CheriBSD
MFC after: 1 week
Sponsored by: DARPA, AFRL
Differential Revision: https://reviews.freebsd.org/D14996

6 years agoMake it possible (controlled via sysctl, enabled by default) to mark
trasz [Wed, 25 Apr 2018 15:28:46 +0000 (15:28 +0000)]
Make it possible (controlled via sysctl, enabled by default) to mark
device-side (and only device-side) "virtual USB serial adapters" - the
ones you can get with an OTG-capable board - as consoles.  It boils down
to adding the device name to kern.console sysctl, although doing that
requires jumping through some hoops.  It doesn't change the actual
operation of those virtual devices.  The point is to make it possible
for init(8) to recognize them as console devices and to launch getty(8)
for them, when configured as "onifconsole" in ttys(5).  The point of
that, in turn, is to add such entries to the default ttys(5), so that
init(8) will launch gettys for device-side "virtual serial adapters",
but not for actual USB serial dongles.

Reviewed by: hselasky@
No objections: imp@
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

6 years agoRemove compression support from bsdgrep
bapt [Wed, 25 Apr 2018 14:40:15 +0000 (14:40 +0000)]
Remove compression support from bsdgrep

Compression support is now handled by an external script, remove it from the
bsdgrep(1) utility.
This removes the support for -Z -J -X and -M

Note: that it matches the changes in newer GNU grep

Reviewed by: kevans
Approved by: kevans
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D15197

6 years agoIf a trap is encountered upon executing iretq from within doreti() the
tychon [Wed, 25 Apr 2018 14:21:13 +0000 (14:21 +0000)]
If a trap is encountered upon executing iretq from within doreti() the
hardware will ensure the stack pointer is aligned to a 16-byte
boundary before saving the fault state on the stack.

In the PTI case, handle this potential alignment adjustment by copying
both frames independently while unwinding the stack in between.

Reviewed by: kib
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D15183

6 years agoUse a script wrapper for <compress>grep
bapt [Wed, 25 Apr 2018 13:23:58 +0000 (13:23 +0000)]
Use a script wrapper for <compress>grep

Import the wrapper script from zstdgrep (written by wiz@netbsd.org)

Modify it to support more than just zstd (adding support for gzip,
lzma, xz and bzip2)

Write a simple manpage dedicated for it.

Only use that new wrapper both for gnu grep and bsd grep

Next step will be removing code related to compression format from bsdgrep

Reviewed by: kevans
Approved by: kevans
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D15193

6 years agopci_vendors: update to 2018.04.06
eadler [Wed, 25 Apr 2018 07:51:45 +0000 (07:51 +0000)]
pci_vendors: update to 2018.04.06

Obtained from: https://pci-ids.ucw.cz/v2.2/pci.ids
MFC After: 3 days

6 years agoFix i386 build after r332970 by adding IS_BSP() definition.
lwhsu [Wed, 25 Apr 2018 07:51:41 +0000 (07:51 +0000)]
Fix i386 build after r332970 by adding IS_BSP() definition.

Approved by: kib

6 years agomakefs: Use ENODATA instead of ENOMSG as a translation for missing ENOATTR.
pfg [Wed, 25 Apr 2018 02:43:53 +0000 (02:43 +0000)]
makefs: Use ENODATA instead of ENOMSG as a translation for missing ENOATTR.

This is consistent with what some linux filesystems do and has been
adopted in our linuxulator.

MFC after: 3 days

6 years agoforthloader: Remove "EFI boot environment message"
kevans [Wed, 25 Apr 2018 02:42:57 +0000 (02:42 +0000)]
forthloader: Remove "EFI boot environment message"

Contrary to what the message says, this is not only executed in an EFI
context- it provides functions for use in an EFI environment. I don't think
there's much reason to broadcast this fact when we haven't in the past, so
just remove it.

Reported by: emaste (a while ago), cperciva

6 years agoIncrease the fdtmemreserv array limit to boot on POWER9
jhibbits [Wed, 25 Apr 2018 02:42:11 +0000 (02:42 +0000)]
Increase the fdtmemreserv array limit to boot on POWER9

Discussing with others, this needs to be at least 20 to boot on some POWER9
nodes.  Linux made a similar change for the same reason, so increase to 32
to give us some extra breathing room as well.  The input and output arrays
are sized at 256, so much greater than the increase in the property array
size.

6 years agoShorten some recently-added lines that are an extra indent over 80 columns.
jhb [Tue, 24 Apr 2018 23:22:45 +0000 (23:22 +0000)]
Shorten some recently-added lines that are an extra indent over 80 columns.

6 years agoDocument the TRAP_CAP code for SIGTRAP.
jhb [Tue, 24 Apr 2018 23:20:15 +0000 (23:20 +0000)]
Document the TRAP_CAP code for SIGTRAP.

MFC after: 3 days

6 years agoImprove VM page queue scalability.
markj [Tue, 24 Apr 2018 21:15:54 +0000 (21:15 +0000)]
Improve VM page queue scalability.

Currently both the page lock and a page queue lock must be held in
order to enqueue, dequeue or requeue a page in a given page queue.
The queue locks are a scalability bottleneck in many workloads. This
change reduces page queue lock contention by batching queue operations.
To detangle the page and page queue locks, per-CPU batch queues are
used to reference pages with pending queue operations. The requested
operation is encoded in the page's aflags field with the page lock
held, after which the page is enqueued for a deferred batch operation.
Page queue scans are similarly optimized to minimize the amount of
work performed with a page queue lock held.

Reviewed by: kib, jeff (previous versions)
Tested by: pho
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D14893

6 years agoMake the sysctl machdep.idle also a tunable.
kib [Tue, 24 Apr 2018 20:49:16 +0000 (20:49 +0000)]
Make the sysctl machdep.idle also a tunable.

It is applied before it is possible for idle threads to execute on any
CPU, allowing to work around against some bugs.

Sponsored by: The FreeBSD Foundation
MFC after: 1 week

6 years agoExtend ap_boot_mtx scope to also cover mca_init().
kib [Tue, 24 Apr 2018 20:33:08 +0000 (20:33 +0000)]
Extend ap_boot_mtx scope to also cover mca_init().

Otherwise, under bootverbose, the lapic_enable_cmc() banner 'lapicX:
CMCI unmasked' is printed by several CPUs in parallel, causing garbled
output for the LAPIC dumps.

Reported by: royger
Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D15157

6 years agoEnsure that cmci_monitor() is not executed in parallel, since shared
kib [Tue, 24 Apr 2018 20:29:40 +0000 (20:29 +0000)]
Ensure that cmci_monitor() is not executed in parallel, since shared
machine check banks must be only monitored by single CPU.

Noted and reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D15157

6 years agoUse IS_BSP() macro.
kib [Tue, 24 Apr 2018 20:22:30 +0000 (20:22 +0000)]
Use IS_BSP() macro.

Noted and reviewed by: jhb
Sponsored by: The FreeBSD Foundation
MFC after: 3 days
Differential revision: https://reviews.freebsd.org/D15157

6 years agoAdd a UMA zone flag to disable the use of buckets.
markj [Tue, 24 Apr 2018 20:05:45 +0000 (20:05 +0000)]
Add a UMA zone flag to disable the use of buckets.

This allows the creation of zones which don't do any caching in front of
the keg. If the zone is a cache zone, this means that UMA will not
attempt any memory allocations when allocating an item from the backend.
This is intended for use after a panic by netdump, but likely has other
applications.

Reviewed by: kib
MFC after: 2 weeks
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D15184

6 years agoRevert r332894 at the request of the submitter.
sbruno [Tue, 24 Apr 2018 19:55:12 +0000 (19:55 +0000)]
Revert r332894 at the request of the submitter.

Submitted by: Johannes Lundberg <johalun0_gmail.com>
Sponsored by: Limelight Networks

6 years agoAdd deprecation notice for lmc(4)
emaste [Tue, 24 Apr 2018 19:51:05 +0000 (19:51 +0000)]
Add deprecation notice for lmc(4)

We intend to remove support before FreeBSD 12 is branched.  These are
available only as 32-bit PCI devices.  The driver has an ambiguous
license and I have not been successful in contacting the driver's author
in order to address this.

The planned deprecation has been announced on -current and -stable; if
we receive feedback that the driver is still useful and we are able to
resolve the license issue this deprecation notice can be reverted.

Reviewed by: bapt, brooks, imp, rgrimes
MFC after: 2 weeks
Relnotes: Yes
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D15182

6 years agolldb: remove assertion that target_arch is FreeBSD
emaste [Tue, 24 Apr 2018 19:26:58 +0000 (19:26 +0000)]
lldb: remove assertion that target_arch is FreeBSD

The target is not necessarily a FreeBSD binary - for example, it may be
a Linux binary running under the linuxulator.  Basic ptrace (live)
debugging already worked in this case, except for the assertion.

Sponsored by: Turing Robotic Industries Inc.

6 years agokdump: simplify/remove per-arch #ifdefs
emaste [Tue, 24 Apr 2018 19:23:26 +0000 (19:23 +0000)]
kdump: simplify/remove per-arch #ifdefs

It is acceptable for syscallabi to map SV_ABI to SYSDECODE_ABI on all
architectures; libsysdecode will return not-found sentinel values if
it does not have a syscall name or errno mapping for a given
architecture.

Also, use __LP64__ for the SV_ILP32 -> SYSDECODE_ABI_LINUX32 mapping,
for any future 32- on 64-bit linuxulator implementation.

Reviewed by: jhb
Sponsored by: Turing Robotic Industries Inc.

6 years agouslcom: Both CP2104 and CP2105 can support up to 2Mbps baudrate
manu [Tue, 24 Apr 2018 19:11:05 +0000 (19:11 +0000)]
uslcom: Both CP2104 and CP2105 can support up to 2Mbps baudrate

MFC after: 1 week

6 years agoDo not totally silence suppressed secondary kasserts unless debug.kassert.do_log...
cem [Tue, 24 Apr 2018 19:10:51 +0000 (19:10 +0000)]
Do not totally silence suppressed secondary kasserts unless debug.kassert.do_log is disabled

To totally silence and ignore secondary kassert violations after a primary
panic, set debug.kassert.do_log=0 and debug.kassert.suppress_in_panic=1.

Additional assertion warnings shouldn't block core dump and may alert the
developer to another erroneous condition.  Secondary stack traces may be
printed, identically to the unsuppressed case where panic() is reentered --
controlled via debug.trace_all_panics.

Sponsored by: Dell EMC Isilon

6 years agouslcom: Apply style(9) and be consistant with function names
manu [Tue, 24 Apr 2018 19:09:53 +0000 (19:09 +0000)]
uslcom: Apply style(9) and be consistant with function names

MFC after: 1 week

6 years agoFix debug.kassert.do_log description text
cem [Tue, 24 Apr 2018 18:59:40 +0000 (18:59 +0000)]
Fix debug.kassert.do_log description text

This has been an (incorrect) copy-paste duplicate of debug.kassert.warn_only
since it was originally committed in r243980.

Sponsored by: Dell EMC Isilon