]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
6 years agoMFC r320268,r320276:
eadler [Mon, 19 Mar 2018 07:28:54 +0000 (07:28 +0000)]
MFC r320268,r320276:

ipfw: dummynet: Add 'G' and 'g' suffix for bandwidth configuration/display

6 years agoMFC r322013:
eadler [Mon, 19 Mar 2018 07:08:14 +0000 (07:08 +0000)]
MFC r322013:

Document -w flag is an extension to POSIX.

PR: 201937

6 years agoMFC r320992,r320993:
eadler [Mon, 19 Mar 2018 07:07:03 +0000 (07:07 +0000)]
MFC r320992,r320993:

Add a complete example to tsearch(3)

6 years agoMFC r315986:
eadler [Mon, 19 Mar 2018 07:03:02 +0000 (07:03 +0000)]
MFC r315986:

Fix 3 entries in mode tables related to mono and 90-column text modes.
Newer VGAs don't support any mono modes, but bugs in the tables created
2 virtual mono modes (#45 90x43 and #112 80x43) that behaved more
strangely than crashing.  90-column modes are tweaked 80-column ones
and also fail to work on newer VGAs.  #45 did crash (hang) on some
hardware.

6 years agoMFC r313818:
eadler [Mon, 19 Mar 2018 07:00:15 +0000 (07:00 +0000)]
MFC r313818:

Small inclusion guard comment fix.

6 years agoMFC r325112:
eadler [Mon, 19 Mar 2018 06:57:41 +0000 (06:57 +0000)]
MFC r325112:

Add P5010/P5010E for completeness

6 years agoMFC r325113:
eadler [Mon, 19 Mar 2018 06:56:30 +0000 (06:56 +0000)]
MFC r325113:

Add Microchip 1-MBit SPI flash ID

Used on the AmigaOne X5000.

6 years agoMFC r326183:
eadler [Mon, 19 Mar 2018 06:55:26 +0000 (06:55 +0000)]
MFC r326183:

Add stdio.h to the synopsis for sysdecode functions that take a FILE *.

6 years agoMFC r326356:
eadler [Mon, 19 Mar 2018 06:54:53 +0000 (06:54 +0000)]
MFC r326356:

Replace a reference to a license in another file with the license text.

The relevant file was recently renamed, so the reference was stale.
In addition, explicit licenses are more typical in our sources.

6 years agoMFC r326437:
eadler [Mon, 19 Mar 2018 06:54:16 +0000 (06:54 +0000)]
MFC r326437:

Correct history for Unix 2nd Edition through 6th Edition for the
system calls. Man pages are missing for v2 and v5, so any entries for
those versions were inferred by new implementations of these functions
in libc.

6 years agoMFC r326859:
eadler [Mon, 19 Mar 2018 06:49:49 +0000 (06:49 +0000)]
MFC r326859:

Add identifier for POWER9 CPU to CPU list

Without the identifier in the list booting FreeBSD results in printing the
following (from a PowerKVM boot):

cpu0: Unknown PowerPC CPU revision 0x1201, 2550.00 MHz

For now, add the same feature list as POWER8.  As new capabilities are added to
support POWER9 specific features, they will be added to this.

PR: 224344

6 years agoMFC r316422:
eadler [Mon, 19 Mar 2018 06:45:40 +0000 (06:45 +0000)]
MFC r316422:

Remove checks that background (bg) colors are not bright and buggy
attempts to keep them that way.  The bg brightness bit is interpreted
as blinking in some modes, but it would barely be useful to disallow
setting it when it would give blinking in code which knew when that
is.  The old code mostly knew this wrong, and added handling errors.
It is in fact impossible to know, since future mode switches may
change the meaning of the bit many times on the screen and in history.

Old versions of vidcontrol disallowed bg color numbers >= 8 in all
cases.  This is very VGA/syscons-centric.  Syscons uses the VGA defaults
of blinking fg instead of bright bg in text mode and bright bg in
graphics mode.  On VGA, this is very easy to toggle at any time, and
vt blows away the VGA text mode default at boot time.

r146736 changed this to try to allow bg color numbers in graphics mode
only.  This is even more VGA/syscons-centric, and there are many bugs
in this, and many nearby bugs in the parser.  These are increased or
decreased by differences and bugs in vt and teken.

Perhaps the most obvious bug was that almost any vidcontrol command
which changes any color or the mode causes an error if the initial fg
color is bright.  E.g., in syscons text mode, after "vidcontrol
lightwhite" to make the fg bright, another "vidcontrol lightwhite" is
rejected and buggy fixup code changes the fg to white.  This is because
the bright fg color creates a bright bg color for the phantom reverse
video attribute, so was rejected.  (The reverse video attribute is
phantom because teken ignores the user's setting of it and simply
reverses the fg attributes to create the bg attributes.  Sometimes
some layer masks off the brightness/blinking bit, but not here.)

Perhaps the next most obvious one was that "vidcontrol lightgreen
lightblue" was misparsed as 2 settings of the fg instead of 1 setting
of the fg and 1 invalid setting of the bg.  This is because the
parser supports an undocumented syntax with many parsing bugs (an
ambiguity gives this one).

I recently fix bugs in teken that broke setting of bright fg's and
bg's in the normal way.  This gave more settings of then, so the old
bugs showed up more often.

6 years agoMFC r327184:
eadler [Mon, 19 Mar 2018 06:40:11 +0000 (06:40 +0000)]
MFC r327184:

Change the remaining files using my personnal email address to my freebsd one

6 years agoMFC r328300:
eadler [Mon, 19 Mar 2018 06:37:59 +0000 (06:37 +0000)]
MFC r328300:

copyright.h: Update license text to 'THE AUTHOR'

This matches the license text at
https://www.freebsd.org/copyright/freebsd-license.html

6 years agoMFC r305306:
eadler [Mon, 19 Mar 2018 04:16:37 +0000 (04:16 +0000)]
MFC r305306:

dhclient: add support for interface-mtu (26)

Make dhclient set interface MTU if it was provided.

This version implements MTU setting in dhclient itself before it runs
dhclient-script.

PR: 206721

6 years agoMFC r313264:
eadler [Mon, 19 Mar 2018 04:08:22 +0000 (04:08 +0000)]
MFC r313264:

Avoid using Sun compiler-specific flags.

6 years agoMFC r328262:
eadler [Mon, 19 Mar 2018 04:06:18 +0000 (04:06 +0000)]
MFC r328262:

This comment is bogus. This is a legit release.

6 years agoMFC r328162:
eadler [Mon, 19 Mar 2018 04:03:55 +0000 (04:03 +0000)]
MFC r328162:

Improve support for USB based 3G/4G/5G dongles from Huawei.

PR: 192345

6 years agoMFC r328586:
eadler [Mon, 19 Mar 2018 03:57:14 +0000 (03:57 +0000)]
MFC r328586:

Use more verbose panic messages.

6 years agoMFC r328785:
eadler [Mon, 19 Mar 2018 03:55:42 +0000 (03:55 +0000)]
MFC r328785:

Use standard 2-clause license where copyright is held by the FreeBSD Foundation

6 years agoMFC r312887:
eadler [Mon, 19 Mar 2018 03:53:46 +0000 (03:53 +0000)]
MFC r312887:

Hide unneeded message under bootverbose.

6 years agoMFC r328640:
eadler [Mon, 19 Mar 2018 03:49:54 +0000 (03:49 +0000)]
MFC r328640:

psm: Add a kludge to support 0x46 identity middle byte Synaptics touchpads

Most synaptics touchpads return 0x47 in middle byte in responce to identify
command as stated in p.4.4 of "Synaptics PS/2 TouchPad Interfacing Guide".
But some devices e.g. found on HP EliteBook 9470m return 0x46 here.
Allow them to be identified as Synaptics as well as 0x47.
ExtendedQueries return incorrect data on such a touchpads so we ignore
their result and set conservative defaults.

PR: 222667

6 years agoMFC r328638:
eadler [Mon, 19 Mar 2018 03:47:46 +0000 (03:47 +0000)]
MFC r328638:

psm(4): Reduce psm watchdog verbosity

Modern touchpads do not issue interrupts on inactivity so "lost interrupt"
message became annoying spam nowadays. This change quiets the message
if debug.psm.loglevel=5 (or less) is set in /boot/loader.conf

Approved by: gonzo

6 years agoMFC r328636:
eadler [Mon, 19 Mar 2018 03:46:12 +0000 (03:46 +0000)]
MFC r328636:

psm(4): Add support for HP EliteBook 1040 ForcePads.

ForcePads do not have any physical buttons, instead they detect click
based on finger pressure. Forcepads erroneously report button click
if there are 2 or more fingers on the touchpad breaking multifinger
gestures. To workaround this start reporting a click only after
4 consecutive single touch packets has been received. Skip these packets
in case more contacts appear.

PR: 223369

6 years agoMFC r326249:
eadler [Mon, 19 Mar 2018 03:44:19 +0000 (03:44 +0000)]
MFC r326249:

Update intro(6) - remove hint that doesn't work, add explicit list
of games instead, and mention the "bsdgames" port.

6 years agoMFC r303812:
eadler [Mon, 19 Mar 2018 03:38:59 +0000 (03:38 +0000)]
MFC r303812:

Use a more conventional spelling of "breakpoint".

6 years agoMFC r326482:
eadler [Mon, 19 Mar 2018 03:37:00 +0000 (03:37 +0000)]
MFC r326482:

lib/msun: remove trailing whitespace from e_pow.c

6 years agoMFC r314622:
eadler [Mon, 19 Mar 2018 03:34:40 +0000 (03:34 +0000)]
MFC r314622:

As suggested by several people, note that I prefer to communicate by email.

6 years agoMFC r326913:
eadler [Mon, 19 Mar 2018 03:28:24 +0000 (03:28 +0000)]
MFC r326913:

Sync with NetBSD's /usr/share/dict/words, with the exception of quim
due to its vulgar nature.

6 years agoMFC r320210:
eadler [Mon, 19 Mar 2018 03:22:43 +0000 (03:22 +0000)]
MFC r320210:

join(1): Fix field ordering for -v output

Per POSIX, join(1) (in modes other than -o) is a concatenation of selected
character fields.  The joined field is first, followed by fields in the
order they occurred in the input files.

Our join(1) utility previously handled this correctly for lines with a match
in the other file.  But it failed to order output fields correctly for
unmatched lines, printed in -a and -v modes.

A simple test case is:

$ touch a
$ echo "2 1" > b
$ join -v2 -2 2 a b
1 2

PR: 217711

6 years agoMFC r303412:
eadler [Mon, 19 Mar 2018 03:20:35 +0000 (03:20 +0000)]
MFC r303412:

Remove myself from kern_timeout.c yeah!

6 years agoMFC r325091:
eadler [Mon, 19 Mar 2018 03:19:29 +0000 (03:19 +0000)]
MFC r325091:

Prefer using https over http

6 years agoMFC r317798:
eadler [Mon, 19 Mar 2018 03:15:33 +0000 (03:15 +0000)]
MFC r317798:

bnxt: Add support for new Broadcom 100Gb adapter BCM57454

6 years agoMFC r317570:
eadler [Mon, 19 Mar 2018 03:13:42 +0000 (03:13 +0000)]
MFC r317570:

editline.3: Add missing argument to H_SET description

The H_SET operation of the history() function takes an int argument which is
the position of the item to which the cursor should be moved to.

6 years agoMFC r304725:
eadler [Mon, 19 Mar 2018 03:06:27 +0000 (03:06 +0000)]
MFC r304725:

Bring datasheet URL up to date.

6 years agoMFC r314052:
eadler [Mon, 19 Mar 2018 03:04:19 +0000 (03:04 +0000)]
MFC r314052:

Document what the different flags mean for locking.

6 years agoMFC r322991:
eadler [Mon, 19 Mar 2018 02:46:17 +0000 (02:46 +0000)]
MFC r322991:

Fix a day-one typo in tty.4 - the sysctls in question are "tty", not "tk"

6 years agoMFC r323135:
eadler [Mon, 19 Mar 2018 02:44:42 +0000 (02:44 +0000)]
MFC r323135:

Spelling.

6 years agoMFC r326601:
eadler [Mon, 19 Mar 2018 02:43:20 +0000 (02:43 +0000)]
MFC r326601:

mdocml: Add IEEE Std 1003.1-2008, 2016 edition

Also document IEEE Std 1003.1-2008, 2013 edition in mdoc(7) (as well as the
2016 edition).

6 years agoMFC r328525:
eadler [Mon, 19 Mar 2018 02:38:07 +0000 (02:38 +0000)]
MFC r328525:

ftp(1): Use closefrom() instead of individual close()s.

6 years agoMFC r303150:
eadler [Sun, 18 Mar 2018 22:55:07 +0000 (22:55 +0000)]
MFC r303150:

[mx25l] add new device id.

6 years agoMFC r314955:
eadler [Sun, 18 Mar 2018 22:42:32 +0000 (22:42 +0000)]
MFC r314955:

o Typo in the comment fixed.

6 years agoMFC r325215,r325216:
eadler [Sun, 18 Mar 2018 22:36:21 +0000 (22:36 +0000)]
MFC r325215,r325216:

Update tuning(7) some more

At this point its unclear how much help tuning(7) is whatsoever
but leave it around in case someone decides to spend some time on
it.

6 years agoMFC r315190:
eadler [Sun, 18 Mar 2018 22:29:41 +0000 (22:29 +0000)]
MFC r315190:

Add constants and descriptions for some new PCI class definitions

6 years agoMFC r319274:
eadler [Sun, 18 Mar 2018 22:24:29 +0000 (22:24 +0000)]
MFC r319274:

- Add a simple example to uname(1) manual page to show how the hardware
  platform (returned by -m) can be different from the machine's processor
  architecture (-p)
- Document that make(1) sets universal MACHINE and MACHINE_ARCH variables
  based on these values

6 years agoMFC r303452,r303482,r303483,r303484,r303485,r303487,r303489,r303498,r303499,r303502...
eadler [Sun, 18 Mar 2018 22:19:52 +0000 (22:19 +0000)]
MFC r303452,r303482,r303483,r303484,r303485,r303487,r303489,r303498,r303499,r303502,r303523,r303525,r303570,r303571,r303588,r303596,r303597,r303598,r303599,r303600,r303601,r303625,r303629,r303718,r304651,r304684,r304686,r305983,r309217,r309219,r309341,r309342,r309343,r309382,r309415,r309417,r309418,r309419,r310863,r311141,r314613,r318471,r321382,r321383,r321396:

indent(1): avoid calling write(2) with a negative second parameter.
indent(1): Avoid out of bound access of array codebuf.
indent(1): Avoid potential use-after-free.
indent(1): Fix breakage caused by single comment following "else".
indent(1) simply wasn't taught that "else" may be followed by a comment
without any opening brace anywhere on the line, so it was very confused
in such cases.
indent(1): fix struct termination detection.
indent(1): fix struct termination detection.
indent(1): Removed whitespace shouldn't be considered in column calculations.
indent(1): Support "f" and "F" floating constant suffixes.
indent(1): Use NULL instead of zero for pointers.
indent(1): Attempt to preserve some consistent style.
indent(1): Yet more style issues.
indent(1): Consistently indent declarations.
indent(1): Bail out if there's no more space on the parser stack.
indent(1): Remove dead code relating to unix-style comments.
indent(1): Simplify pr_comment().
indent(1): Fix wrapping of some lines in comments.
indent(1): Untangle the connection between pr_comment.c and io.c.
indent(1): Don't newline on cpp lines like #endif unless -bacc is on.
indent(1): replace function call to bzero with memset.
indent(1): Rearrange option parsing code to squelch clang's static analyzer.
indent(1): Use a dash in the license headers.
indent(1): accept offsetof(3) as a keyword.
indent(1): add some comments to quiet down Coverity.
indent(1): remove dead assignments.
indent(1): have the memset invocation somewhat more canonical.
indent(1): Capsicumify
indent(1): minor off-by-one error.
indent(1): fix regression introduced in r303596.
indent(1): Avoid out of bound access of array in_buffer
indent(1): Don't ignore newlines after comments that follow braces.
indent(1): Don't unnecessarily add a blank before a comment ends.
indent(1): Do not define opchar unless it will be used.
indent(1): Optimize parser stack usage.
indent(1): Remove an extra newline added in a previous commit.
indent(1): Avoid out-of-bound accesses of arrays.
indent(1): Avoid out-of-bound accesses of array ps.p_stack.
indent(1): Avoid out of bounds access of array ps.paren_indents
indent(1): add a piece missed in r311138.
indent(1): Support binary integer literals.
indent(1): don't produce unnecessary blank lines.
indent(1): rename the profile file.
indent(1): better alignment of comments on code.

6 years agoMFC: r331140
imp [Sun, 18 Mar 2018 19:07:07 +0000 (19:07 +0000)]
MFC: r331140

Merge ahead of schedule to fix pc98 build issues.

6 years agoDirect commit to stable
imp [Sun, 18 Mar 2018 19:05:06 +0000 (19:05 +0000)]
Direct commit to stable

Remove libstand32 here. pc98 is a 32-bit platform, so it shouldn't compile
the extra 32-bit copy of libsa. The copy built in libstand is already 32-bit.
Add a comment saying we need an empty Makefile.pc98 since otherwise it would
pull in Makefile.i386 and there is no EFI on pc98, and the machines are too
old to have ZFS or GELI be a viable option (and besides, those don't compile).

Note: We also need r331140 to be MFC'd for pc98 build to work in all cases.

6 years agoMFC r331016:
markj [Sun, 18 Mar 2018 16:57:40 +0000 (16:57 +0000)]
MFC r331016:
Add a space between a section number and a following comma.

6 years agoMFC r329950:
kp [Sun, 18 Mar 2018 11:25:39 +0000 (11:25 +0000)]
MFC r329950:

pf: Cope with overly large net.pf.states_hashsize

If the user configures a states_hashsize or source_nodes_hashsize value we may
not have enough memory to allocate this. This used to lock up pf, because these
allocations used M_WAITOK.

Cope with this by attempting the allocation with M_NOWAIT and falling back to
the default sizes (with M_WAITOK) if these fail.

PR: 209475
Submitted by: Fehmi Noyan Isi <fnoyanisi AT yahoo.com>

6 years agoMFC r330843:
eadler [Sun, 18 Mar 2018 02:59:14 +0000 (02:59 +0000)]
MFC r330843:

efirtc: Pass a dummy tmcap pointer to efi_get_time_locked

As noted in the comment, UEFI spec claims the capabilities pointer is
optional, but some implementations will choke and attempt to dereference it
without checking. This specific problem was found on a Lenovo Thinkpad X220
that would panic in efirtc_identify.

Requested by: kevans

6 years agoMFC r327958, r329601, r329602:
bryanv [Sat, 17 Mar 2018 20:37:01 +0000 (20:37 +0000)]
MFC r327958, r329601, r329602:

Sync VirtIO IDs with Linux

Add VirtIO bus config_generation method

Add more virtqueue getter methods

6 years agoMFC r329598:
bryanv [Sat, 17 Mar 2018 20:20:29 +0000 (20:20 +0000)]
MFC r329598:

Add PCI methods to iterate over the PCI capabilities

VirtIO V1 provides configuration in multiple VENDOR capabilities so this
allows all of the configuration to be discovered.

Reviewed by: jhb
Differential Revision: https://reviews.freebsd.org/D14325

6 years agoRevert r330471 (MFC of r311861), since it results in compile errors
dim [Sat, 17 Mar 2018 19:04:36 +0000 (19:04 +0000)]
Revert r330471 (MFC of r311861), since it results in compile errors
like:

sys/net80211/ieee80211_tdma.c:179: error: 'IEEE80211_MODE_VHT_2GHZ' undeclared (first use in this function)
sys/net80211/ieee80211_tdma.c:180: error: 'IEEE80211_MODE_VHT_5GHZ' undeclared (first use in this function)

The IEEE80211_MODE_VHT_2GHZ and IEEE80211_MODE_VHT_5GHZ enum values are
defined in r310147, but that commit cannot be MFCd as-is, because it
likely breaks ABI.

6 years agoRepair obvious mismerge in r330897, resulting in misleading gcc error
dim [Sat, 17 Mar 2018 18:55:46 +0000 (18:55 +0000)]
Repair obvious mismerge in r330897, resulting in misleading gcc error
messages like "sys/net/if_fddisubr.c:1: error: expected '=', ',', ';',
'asm' or '__attribute__' before '-' token".

6 years agoMFC r328509:
eadler [Sat, 17 Mar 2018 07:04:41 +0000 (07:04 +0000)]
MFC r328509:

tools: remove note about diffburst.

Said tool was removed in 1999 in r51579

6 years agoMFC r317870:
eadler [Sat, 17 Mar 2018 06:44:39 +0000 (06:44 +0000)]
MFC r317870:

[mx25l] add new device ids.

6 years agoMFC r326387:
eadler [Sat, 17 Mar 2018 06:36:39 +0000 (06:36 +0000)]
MFC r326387:

Fix typo

6 years agoMFC r327941:
eadler [Sat, 17 Mar 2018 06:31:24 +0000 (06:31 +0000)]
MFC r327941:

timed: slave is an infinite loop, mark it as such

6 years agoMFC r328831:
eadler [Sat, 17 Mar 2018 06:05:33 +0000 (06:05 +0000)]
MFC r328831:

pthread: adding missing header to man page

6 years agoMFC r328839:
eadler [Sat, 17 Mar 2018 05:43:26 +0000 (05:43 +0000)]
MFC r328839:

Add the ThinkPad X1 (sandybridge) to the bsdinstall blacklist

Reviewed by: AllanJude (for mfc)

6 years agoMFC r328959:
eadler [Sat, 17 Mar 2018 05:36:51 +0000 (05:36 +0000)]
MFC r328959:

fsync.2: Cross-reference fsync(1)

6 years agoMFC r328430,r328431:
eadler [Sat, 17 Mar 2018 05:04:38 +0000 (05:04 +0000)]
MFC r328430,r328431:

devd: minor nits

- mark usage as noreturn

6 years agoMFC r328428:
eadler [Sat, 17 Mar 2018 05:00:07 +0000 (05:00 +0000)]
MFC r328428:

example cdev: use make_dev_s

Make use of make_dev_s in the example cdev. While here, fix warnings.

6 years agoMFC r328427:
eadler [Sat, 17 Mar 2018 03:00:24 +0000 (03:00 +0000)]
MFC r328427:

dd(1): Use a local swapbytes() function.

swab(3) has restrict qualifiers for src and dst.
Avoid relying on undefined overlapping swab behavior.

Obtained From: OpenBSD

6 years agoMFC r326959:
eadler [Sat, 17 Mar 2018 01:27:54 +0000 (01:27 +0000)]
MFC r326959:

arc lint: ignore /tests/ in chmod

shell scripts in scripts don't need
to be chmod +x to work. In fact most are not.
Of the tests I found from a simple search:
65 are chmod +x
84 are chmod -x

simply disable the check for test shell scripts.

6 years agoRevert attempted MFC. It included unwanted changes.
lidl [Fri, 16 Mar 2018 23:39:49 +0000 (23:39 +0000)]
Revert attempted MFC.  It included unwanted changes.

6 years agoMFC r328861: improve blacklist-helper shell script
lidl [Fri, 16 Mar 2018 23:34:44 +0000 (23:34 +0000)]
MFC r328861: improve blacklist-helper shell script

6 years agoMFC r329279: add support for user-supplied Host-Uniq tag to ng_pppoe(4).
eugen [Fri, 16 Mar 2018 15:04:13 +0000 (15:04 +0000)]
MFC r329279: add support for user-supplied Host-Uniq tag to ng_pppoe(4).

Submitted by: ale
Approved by: avg (mentor), mav (mentor)
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D9270

6 years agoMFC r330681: Fix Bad file descriptor error.
ume [Fri, 16 Mar 2018 14:05:45 +0000 (14:05 +0000)]
MFC r330681: Fix Bad file descriptor error.

6 years agoMFC r330940:
eadler [Fri, 16 Mar 2018 08:45:28 +0000 (08:45 +0000)]
MFC r330940:

Update to 2018-03-06

6 years agoMFC r327344:
eadler [Fri, 16 Mar 2018 08:44:44 +0000 (08:44 +0000)]
MFC r327344:

locale: add cnr (Montenegrin)

See https://www.loc.gov/standards/iso639-2/php/code_changes.php

6 years agoMFC r303041,r303320,r305905,r310087,r310346,r319368,r321879,r321923,r321979,r327554...
eadler [Fri, 16 Mar 2018 08:39:37 +0000 (08:39 +0000)]
MFC r303041,r303320,r305905,r310087,r310346,r319368,r321879,r321923,r321979,r327554,r329124,r329210,:

organizations.dot - misc changes

6 years agoMFC r311106,r311109,r311110,r320579,r327063,r327064,:
eadler [Fri, 16 Mar 2018 05:29:30 +0000 (05:29 +0000)]
MFC r311106,r311109,r311110,r320579,r327063,r327064,:

patch(1): replace strnlen() with a simpler strlen().
patch(1): add support for git generated diffs.
patch: rejname[] is also -r option buffer, and should be PATH_MAX.
patch: further cleanup to git-style diffs.

6 years agoMFC r305373,r312344,r318095,r319117,r320948,r320953,r328528:
eadler [Fri, 16 Mar 2018 02:44:18 +0000 (02:44 +0000)]
MFC r305373,r312344,r318095,r319117,r320948,r320953,r328528:

siba(4): Add missing bhnd_device/bhnd_device_quirk table terminator entries.

This resulted in an over-read on siba chipsets that failed to match the
existing entries.

r312344 | sbruno | 2017-01-17 14:52:48 +0000 (Tue, 17 Jan 2017) | 7 lines

Add 4k quirk for Micron 5100 and Intel S3610 SSDs

r318095 | loos | 2017-05-09 19:01:57 +0000 (Tue, 09 May 2017) | 9 lines

Add a new SDHCI quirk, SDHCI_QUIRK_BROKEN_AUTO_STOP, to workaround
controllers that do not support or have broken ACMD12 implementations.

r319117 | wma | 2017-05-29 09:22:53 +0000 (Mon, 29 May 2017) | 16 lines

Introduce Genesys GL3224 quirks

The Genesys chip is failing when issueing READ_CAP(16) command.
Force a quirk to disable it and use READ_CAP(10) instead.

Also, depending on used firmware, GL3224 can be recognized
either as 'storage device' or 'mass storage class' -
enable both variants in scsi_quirk_table.

r320948 | sbruno | 2017-07-13 15:33:08 +0000 (Thu, 13 Jul 2017) | 6 lines

Add 4K quirks for Samsung 750 EVO SSD

r320953 | sbruno | 2017-07-13 16:56:26 +0000 (Thu, 13 Jul 2017) | 5 lines

Add 4k and NCQ_TRIM_BROKEN quirks for Samsung 845 SSDs.

r328528 | ian | 2018-01-29 03:24:02 +0000 (Mon, 29 Jan 2018) | 3 lines

Add a NO_GETMAXLUN quirk for the JMicron JMS567 USB to SATA bridge, to
prevent lengthy timeout pauses while probing/attaching drives.

6 years agoMFC: r327929
marius [Thu, 15 Mar 2018 23:02:49 +0000 (23:02 +0000)]
MFC: r327929

Use the correct revision specifier (EXT_CSD revision rather than
system specification version) for deciding whether the EXT_CSD
register includes the EXT_CSD_GEN_CMD6_TIME field.

Submitted by: Masanobu SAITOH

6 years agoMFC: r327355, r327926
marius [Thu, 15 Mar 2018 23:01:00 +0000 (23:01 +0000)]
MFC: r327355, r327926

- Don't allow userland to switch partitions; it's next to impossible
  to recover from that, especially when something goes wrong.
- When userland changes EXT_CSD, update the kernel copy before using
  relevant EXT_CSD bits in mmcsd_switch_part().

6 years agoMFC: r327339, r327924
marius [Thu, 15 Mar 2018 22:58:31 +0000 (22:58 +0000)]
MFC: r327339, r327924

- There is no need to keep the tuning error and re-tuning interrupts
  enabled (though, no interrupt generation enabled for them) all the
  time as soon as (re-)tuning is supported; only enable them and let
  them generate interrupts when actually using (re-)tuning.
- Also disable all interrupts except SDHCI_INT_DATA_AVAIL ones while
  executing tuning and not just their signaling.
- Set the tuning error and re-tuning interrupt enable bits based on
  the SDHCI_TUNING_ENABLED rather than the SDHCI_TUNING_SUPPORTED flag,
  i. e. only when (re-)tuning is actually used. Currently, this change
  makes no net difference, though.

6 years agoMFC: r327315
marius [Thu, 15 Mar 2018 22:51:10 +0000 (22:51 +0000)]
MFC: r327315

Add quirks for Intel Denverton eMMC 5.0 controllers.

6 years agoMFC r330257: Add a function to retrieve the EFI realtime clock capabilities.
kevans [Thu, 15 Mar 2018 20:46:34 +0000 (20:46 +0000)]
MFC r330257: Add a function to retrieve the EFI realtime clock capabilities.

6 years agoMFC r324191: Hide kernel stuff from userspace.
kevans [Thu, 15 Mar 2018 20:40:27 +0000 (20:40 +0000)]
MFC r324191: Hide kernel stuff from userspace.

6 years agoMFC (partially) r326066, r326121: Add an EFI RTC Driver
kevans [Thu, 15 Mar 2018 20:29:48 +0000 (20:29 +0000)]
MFC (partially) r326066, r326121: Add an EFI RTC Driver

This is effectively a direct commit to stable/11 to avoid the arm64 bits, as
those are unfortunately not able to MFC'd.

MFC r326066:
Add a driver for the EFI RTC. This uses the EFI Runtime Services to query
the system time.

MFC r326121:
Zero struct efi_tm before setting the needed values. We don't use the dst
or timezone fields so ensure these are set.

6 years agoRevert r331022: MFC of EFI Runtime Service support on aarch64
kevans [Thu, 15 Mar 2018 20:09:24 +0000 (20:09 +0000)]
Revert r331022: MFC of EFI Runtime Service support on aarch64

Apologies; this is NOT an MFC'able change. It requires a good number of pcb
changes that would break KBI.

Pointy hat to: me

6 years agoMFC r324495: Support the EFI Runtime Services on arm64. As with amd64 we use
kevans [Thu, 15 Mar 2018 19:56:44 +0000 (19:56 +0000)]
MFC r324495: Support the EFI Runtime Services on arm64. As with amd64 we use
the 1:1 mapping. This uses the new common code shared with amd64.

The RTC should only be accessed via EFI. There is no locking around it as
the spec only has this as a requirement for the PC-AT CMOS device.

NOTE: r326311's changes to arm64/efirt_machdep.c have been hand-applied to
this import of efirt_machdep.c due to r326311 having already been merged.

6 years agor322279: Don't create /dev/efi without EFI runtime
kevans [Thu, 15 Mar 2018 19:41:26 +0000 (19:41 +0000)]
r322279: Don't create /dev/efi without EFI runtime

Turns out to be even simpler to just not create /dev/efi if we don't
have a efi runtime.

6 years agoMFC r322278,324177: EFIRT Improvements
kevans [Thu, 15 Mar 2018 19:31:39 +0000 (19:31 +0000)]
MFC r322278,324177: EFIRT Improvements

r322278 (imp): Fail to open efirt device when no EFI on system.

libefivar expects opening /dev/efi to indicate if the we can make efi
runtime calls. With a null routine, it was always succeeding leading
efi_variables_supported() to return the wrong value. Only succeed if
we have an efi_runtime table. Also, while I'm hear, out of an
abundance of caution, add a likely redundant check to make sure
efi_systbl is not NULL before dereferencing it. I know it can't be
NULL if efi_cfgtbl is non-NULL, but the compiler doesn't.

r324177 (andrew):
To prepare for adding EFI runtime services support on arm64 move the
machine independent parts of the existing code to a new file that can be
shared between amd64 and arm64.

Care has been taken to ensure that the MFC of r324177 did not clobber
cherry-picked MFC's.

6 years agoMFC r317055,r317056 (glebius): Include sys/vmmeter.h as included
kevans [Thu, 15 Mar 2018 19:08:33 +0000 (19:08 +0000)]
MFC r317055,r317056 (glebius): Include sys/vmmeter.h as included

r317055: All these files need sys/vmmeter.h, but now they got it implicitly
included via sys/pcpu.h.

r317056: Typo!

6 years agoMFC r328395: Install uefi.8 also on arm64
emaste [Thu, 15 Mar 2018 12:59:15 +0000 (12:59 +0000)]
MFC r328395: Install uefi.8 also on arm64

Our standard boot method for arm64 is via UEFI, so install the man page
that describes the boot process.

Sponsored by: The FreeBSD Foundation

6 years agoMFC r329370, r330239: Rationalize license text on Linuxolator files
emaste [Thu, 15 Mar 2018 12:56:22 +0000 (12:56 +0000)]
MFC r329370, r330239: Rationalize license text on Linuxolator files

Many licenses on Linuxolator files contained small variations from the
standard FreeBSD license text.  To avoid license proliferation switch to
the standard 2-clause FreeBSD license for those files where I have
permission from each of the listed copyright holders.

Approved by: dchagin, kan, marcel, rdivacky, sos
Sponsored by: The FreeBSD Foundation

6 years agoMFC r329363: read-behind / read-ahead support for zfs_getpages()
avg [Thu, 15 Mar 2018 12:05:17 +0000 (12:05 +0000)]
MFC r329363: read-behind / read-ahead support for zfs_getpages()

6 years agoMFC r329823: another rework of getzfsvfs / getzfsvfs_impl code
avg [Thu, 15 Mar 2018 11:06:04 +0000 (11:06 +0000)]
MFC r329823: another rework of getzfsvfs / getzfsvfs_impl code

6 years agoMFC r330057: add ZFS_ENTER protection to .zfs/snapshot vnode operations that need it
avg [Thu, 15 Mar 2018 11:03:39 +0000 (11:03 +0000)]
MFC r330057: add ZFS_ENTER protection to .zfs/snapshot vnode operations that need it

6 years agoMFC r329717: MFV r329715: 8997 ztest assertion failure in zil_lwb_write_issue
avg [Thu, 15 Mar 2018 10:52:08 +0000 (10:52 +0000)]
MFC r329717: MFV r329715: 8997 ztest assertion failure in zil_lwb_write_issue

6 years agoMFC r324441:
eadler [Thu, 15 Mar 2018 10:13:25 +0000 (10:13 +0000)]
MFC r324441:

Fix freebsd-update(8) erroneous message and exit status when "fetch install" used.

PR: 190660

6 years agoMFC r306135,r311859,r321763,r321764,r321766,r321767,r321768,r321769,r321771,r321774...
eadler [Thu, 15 Mar 2018 10:01:11 +0000 (10:01 +0000)]
MFC r306135,r311859,r321763,r321764,r321766,r321767,r321768,r321769,r321771,r321774,r321776,r321783,r321784,r321785,r321786,r321787,r321788,r321789,r321793,r321796,r321797,r321801,r321802,r321804,r321814,r321817,r321818,r321834,r321835,r321853,r321857,r321860,r321866,r321885,r321886,r321889,r321890,r321892,r321893,r321897,r321939,r321966,r321974,r321982,r321989,r322035,r322093,r322108,r322314,r322330,r322335,r322350,r322353,r322365,r322416,r322471,r322484,r322638,r322649,r322881,r322886,r323972,r330768,:

Misc calendar changes

6 years agoMFC r305857,r305858,r305859:
eadler [Thu, 15 Mar 2018 09:49:23 +0000 (09:49 +0000)]
MFC r305857,r305858,r305859:

sbin/rcorder/rcorder.8: Amend HISTORY

rcorder appeared in FreeBSD 5.0.
Address issues raised by igor.

PR: 212547
Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>

------------------------------------------------------------------------
r305858 | allanjude | 2016-09-16 04:11:04 +0000 (Fri, 16 Sep 2016) | 10 lines

sbin/reboot/reboot.8: Amend HISTORY

A standalone reboot utility showed up in 4.0BSD, in AT&T UNIX init has a
case for reboot and is present in the version shipped with V5

either way, current entry is incorrect.

PR: 212548
Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>

------------------------------------------------------------------------
r305859 | allanjude | 2016-09-16 04:12:32 +0000 (Fri, 16 Sep 2016) | 8 lines

sbin/umount/umount.8: Amend HISTORY

umount first appeared in V1, confirmed using TUHS archive
http://minnie.tuhs.org/cgi-bin/utree.pl?file=V1/man/man1/umount.1

PR: 212554
Submitted by: Sevan Janiyan <venture37@geeklan.co.uk>

6 years agoMFC r305139:
eadler [Thu, 15 Mar 2018 09:43:38 +0000 (09:43 +0000)]
MFC r305139:

df(1): Allow duplicate -l flags gracefully

Rather than producing a misleading error message when duplicate -l flags are
provided to df(1), simply ignore extra flags and proceed as if only one was
specified.  This seems most reasonable given the usage for -l:

     -l      Only display information about locally-mounted file systems.

l and t flags still conflict, as before.

PR: 208169

6 years agoMFC r327514,r327521,r327614,r327615,r327616,r327623:
eadler [Thu, 15 Mar 2018 09:38:18 +0000 (09:38 +0000)]
MFC r327514,r327521,r327614,r327615,r327616,r327623:

morse(6): several improvements

- add ñ, ', and _
- remove lint support
- add missing header for ioctl
- fix two typod
- Use `-r` for "reverse" mode and to match DragonFlyBSD.
- Move defines around to clear up logic
- use `errx` instead of `fprintf` and `exit`
- Use copyright comment header
- Make it easier to compile on !FreeBSD
- Diff reduction against DragonFlyBSD
- bump Dd
- use 'r' instead of 'D' from the original submission

PR: 35109

6 years agoMFC r327474:
eadler [Thu, 15 Mar 2018 09:30:39 +0000 (09:30 +0000)]
MFC r327474:

bsdinstall: inform users that typing will not be visible

Some users, especially those that are new, might be confused when passwd
does not echo anything. Inform users that the password will not be
visible.

PR: 196113

6 years agoMFC r302485,r303203,r303341,r304025,r306133,r306518,r308576,r308686,r309019,r309059...
eadler [Thu, 15 Mar 2018 09:22:20 +0000 (09:22 +0000)]
MFC r302485,r303203,r303341,r304025,r306133,r306518,r308576,r308686,r309019,r309059,r310024,r311853,r312793,r313033,r313577,r313741,r314692,r317772,r317939,r319674,r319923,r321392,r322979,r323222,r323222,r323398,r323502,r323602,r323767,r323767,r323958,r325220,r326172,r326253,r330652,r330761,r330762,r330763,r330765,:

Misc. *.dot additions