199260 Commits

Author SHA1 Message Date
ian
f3f411e10b MFC r279723, r279724:
Define new linker set, UART_FDT_CLASS_AND_DEVICE, for registering full
  (class and device) FDT UART. Define second one, UART_FDT_CLASS, for UART
  class only.

  Move the uart_class definitions and fdt compat data into the individual
  uart implementations, and export them using the new linker-set mechanism.
2015-05-23 20:54:25 +00:00
ian
ce1bf49e72 MFC r268137, r268138:
Define a "__weak" macro for declaring symbols "weak".

  Add support for empty data sets. Data set begin and end pointers
  should resolve to "NULL" when not present. This is done by declaring
  the data set begin and end symbols as "weak".
2015-05-23 20:53:19 +00:00
ian
142829f4c8 MFC r279239:
Enable 'receive timeout' interrupt allowing us to not
  loose 'rx buffer full' event.
2015-05-23 20:01:20 +00:00
ian
446930c903 MFC r277132: Rename Exynos UART driver functions. No functional change. 2015-05-23 19:57:44 +00:00
ian
e9db1ba7b7 MFC r266942, r266944:
Do only receive chars if there are some data in the buffer.
  This fixes operation on newer Exynos boards.

  Rename exynos uart driver filenames.
2015-05-23 19:50:14 +00:00
ian
5ba1e43ae8 MFC r272399, r272602, r274451, r274452:
Add uart driver for Qualcomm MSM 7000/8000 series chips.
  It is working on IFC6410 board which has Qualcomm Snapdragon SoC.

  Use documented compat string for msm uart.

  Make PL011 UART to wait on putc only when TX FIFO is full

  Make uart_bus_fdt a decendant of ofwbus
2015-05-23 19:27:04 +00:00
ian
18d9495565 MFC r279702: Update a comment that had drifted out of date. 2015-05-23 17:48:09 +00:00
ian
e598358ce4 MFC r279359, r279360:
For new eMMC chips, we must signal controller HC capability in OP_COND command.

Detect, report and use 8-bit bus if is available.
2015-05-23 17:43:02 +00:00
ian
c063f629c5 MFC r278770, r279114, r279215, r279338, r279543:
Add logic for handling new-style ARM cpu ID info.

  Correct a comment which was exactly backwards from reality.

  There is no reason to do i+dcache writeback and invalidate when changing
  the translation table (this may be left over from armv5 days).  It's
  especially bad to do so using a cache operation that isn't coherent on
  SMP systems.

  Add casting to make atomic ops work for pointers.  (Apparently nobody has
  ever done atomic ops on pointers before now on arm).

  Revert incorrect casting.
2015-05-23 17:30:30 +00:00
rodrigc
26d3f673f7 Merge: 278618 278633 278636 278653 278742 278776 279121
Multiple fixes for pgrep and pkill tests.

PR: 19109
2015-05-23 09:48:59 +00:00
rodrigc
ddc334e56f Merge: r277829
Revert r277357 as expr has been enhanced to better detect overflow conditions,
and now the tests pass

PR: 196867
X-MFC with: r277798
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-05-23 09:16:35 +00:00
kib
09f1502b69 MFC r282690:
Call uma_reclaim() from the additional pagedaemon thread to reclaim kmem
arena address space.
2015-05-23 09:14:29 +00:00
jhb
a072eaae06 MFC 282273:
Update this page to note that XENHVM now works on i386.  (It shipped
enabled in GENERIC in 10.0.)
2015-05-22 23:55:59 +00:00
jhb
9b127b4790 MFC 281872:
Fix some incorrect #if conditions around older workarounds for bus
numbering goofs.
2015-05-22 23:54:12 +00:00
jhb
b92445bf9a MFC 266852,270223:
- Fix pf(4) to build with MAXCPU set to 256.  MAXCPU is actually a count,
  not a maximum ID value (so it is a cap on mp_ncpus, not mp_maxid).
- Bump MAXCPU on amd64 from 64 to 256.  In practice APIC only permits 255
  CPUs (IDs 0 through 254).  Getting above that limit requires x2APIC.
2015-05-22 21:51:36 +00:00
gjb
59be327480 MFC r281011 (jkim):
Fix powerpc, powerpc64 build.

Sponsored by:	The FreeBSD Foundation
2015-05-22 16:38:55 +00:00
whu
a27bc4386d Fix a i386 build failure cause by commit r283280. 2015-05-22 11:20:59 +00:00
whu
30cd3b9808 MFC r282212:
Microsoft vmbus, storage and other related driver enhancements for HyperV.
    - Vmbus multi channel support.
    - Vector interrupt support.
    - Signal optimization.
    - Storvsc driver performance improvement.
    - Scatter and gather support for storvsc driver.
    - Minor bug fix for KVP driver.
Thanks royger, jhb and delphij from FreeBSD community for the reviews
and comments. Also thanks Hovy Xu from NetApp for the contributions to
the storvsc driver.

PR:     195238
Submitted by:   whu
Reviewed by:    royger
Approved by:    royger
Relnotes:       yes
Sponsored by:   Microsoft OSTC
Differential Revision:  https://reviews.freebsd.org/D2575
2015-05-22 09:03:55 +00:00
kib
b453b29575 MFC r282944:
Decrement p_boundary_count in the single-threading thread, during making
other thread runnable.  This guarantees that upon return from the
thread_single_end(), p_boundary_count is zero.
2015-05-22 08:11:31 +00:00
delphij
05c61f3a94 MFC r282613: MFV r282611: netcat from OpenBSD 5.7. 2015-05-21 21:45:37 +00:00
pfg
a7546825c6 MFC r282863:
Adjust visibility macros.

The GCC visibility attributes were introduced in GCC 4.0.
Apparently the "protected" attribute was introduced only
until GCC 4.2, but we are not currently using it.
2015-05-21 20:39:39 +00:00
emaste
60bdd635db MFC r258431: Disable amd64 boot time memory test by default
The page presence memory test takes a long time on large memory systems
  and has little value on contemporary amd64 hardware.

Relnotes:	Yes
Reviewed by:	jhb, kib
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D1544
2015-05-21 19:40:31 +00:00
emaste
a071e4290a MFC r282144: crunchide: add basic string table sanity checks
Reported by:	Coverity Scan
CID:		978805, 980919
Sponsored by:	The FreeBSD Foundation
2015-05-21 19:16:28 +00:00
delphij
51f0c42396 MFC r282932: MFV r282927,r282928,r282930 (kientzle):
Don't segfault when reading malformed cpio archives.
2015-05-21 19:05:47 +00:00
delphij
f14ca7e990 MFC r282608:
date(1): Make -r behave like GNU's version when the option can not be
interpreted as a number, which checks the file's modification time and
use that as the date/time value.

This improves compatibility with GNU coreutils's version of date(1).
2015-05-21 18:59:11 +00:00
bdrewery
6ce5eda96c MFC r282574:
Remove references to Giant in namei(9).  This was removed in r241896.
2015-05-21 16:44:31 +00:00
trasz
df07ae934b MFC r279955:
Add -noauto autofs map, for automatic handling of fstab entries
marked "noauto".

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-05-21 13:42:37 +00:00
trasz
792cf9363b MFC r279954:
Get executable direct maps to work.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:41:08 +00:00
trasz
766efdb26c MFC r279953:
Rework the concat() algorithm to be correct in all cases.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:39:38 +00:00
trasz
936900ca6b MFC r279916:
Make "automount -LL -o whatever" present options in the same order
as used by automountd(8).

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:37:48 +00:00
trasz
ffdd97ce45 MFC r279915:
Make concat() accept NULL arguments.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:36:00 +00:00
trasz
5d932fec11 MFC r279914:
Options from auto_master must be appended to options from maps,
not prepended.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:34:33 +00:00
trasz
decca16d96 MFC r279851:
Fix typo.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:33:06 +00:00
trasz
bb27657bec MFC r279846:
Properly pass options for direct maps.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:31:44 +00:00
emaste
0895f35cb3 MFC r276774: ar: Avoid null pointer deref while reading corrupt archives
ELF Tool Chain ticket #467

Reported by:	Alexander Cherepanov <cherepan@mccme.ru>
Sponsored by:	The FreeBSD Foundation
2015-05-21 13:30:10 +00:00
trasz
9a9f3ecf67 MFC r279845:
Fix handling of direct maps, broken in r275756.  Previously, running
automount(8) would unmount direct map trigger nodes every second time.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:29:34 +00:00
trasz
b8ffded4a6 MFC r279843:
Refactor.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:26:52 +00:00
trasz
938b0cc7dd MFC r279813:
Make things more readable; no functional changes.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:25:28 +00:00
trasz
c0941dd28e MFC r279812:
Remove some particularly bad code; no functional changes.

MFC r279815:

Erm, revert chunk committed by mistake.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:23:49 +00:00
trasz
f55d10feb9 MFC r279808:
Fix memory leak.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:21:03 +00:00
trasz
609485e24d MFC r279807:
Improve separated_concat() to properly handle the case of concatenating
"/" and "/foo".
2015-05-21 13:19:44 +00:00
trasz
eca8c46c2b MFC r279806:
Minor optimization/cleanup in node_path(); no functional changes.
2015-05-21 13:18:02 +00:00
trasz
a151e5d0a4 MFC r277171:
Use newly added GEOM notifications to discard autofs caches.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:13:56 +00:00
trasz
9cd1663f49 MFC r276883:
Improve documentation for autofs variables and executable maps;
also some markup fixes.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:11:48 +00:00
trasz
b5e1972553 MFC r276833:
Make /net use -intr by default.  Linux does that, and it seems a good idea.

Sponsored by:	The FreeBSD Foundation
2015-05-21 13:10:08 +00:00
trasz
94c4b3025c MFC r275681:
Add "-media" autofs map, to access data on removable media, such as CD
drives or flash keys.  It can be enabled by uncommenting a single entry
in default /etc/auto_master.  It can also be easily modified to use
fuse-based filesystems instead of in-kernel ones.

There is still one deficiency - the mountpoints are permanent, they
don't disappear when user removes the media.  Fixing it needs some
autofs changes.

Relnotes:	yes
Sponsored by:	The FreeBSD Foundation
2015-05-21 13:08:30 +00:00
royger
67f688612f MFC: r282269, r282277
atkbd: remove usage of x86bios
Remove leftover from r282269.
2015-05-21 10:40:18 +00:00
royger
227f0f0c83 MFC: r282908
netfront: wait for backend to connect before sending ARP

Sponsored by: Citrix Systems R&D
2015-05-21 10:28:33 +00:00
arybchik
66c1c10ecb MFC: r283051
sfxge: do not advertise LRO capability if LRO is compiled out

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:24:35 +00:00
arybchik
6caf0aa6e9 MFC: r283050
sfxge: automatically turn off TSO when Tx checksum offload is disabled

Also return error if TSO is requested without Tx checksum offload.

Sponsored by:   Solarflare Communications, Inc.
2015-05-21 09:23:28 +00:00