197335 Commits

Author SHA1 Message Date
ian
1c8cde378e MFC r270945:
Rename OF_xref_phandle() to OF_node_from_xref() and add a new function
that provides the inverse translation, OF_xref_from_node().
2014-10-26 01:30:46 +00:00
ian
520f9702ad MFC r270025:
Implement the FDT static pinctl/pinmux spec for Atmel.
2014-10-26 01:26:53 +00:00
ian
f2e6118a3c MFC r257200, r259121, r261410, r265853:
- Remove #include <machine/frame.h>.
 - Add gpio parse routines according to sys/boot/fdt/dts/bindings-gpio.txt.
 - Follow r261352 by updating all drivers which are children of simplebus
   to check the status property in their probe routines.
 - Rename platform_gpio_init to be SoC specific, and make it static as it's
   only called from this file.

This is mostly catching up on some old MFCs that were done before this file
existed in the 10 branch.
2014-10-26 01:15:16 +00:00
ian
682138b2b9 MFC r268633, r271046:
Fixes and enhancements for the if_cgem driver...

  - miibus fixes as suggested by Yonghyeon Pyun.
  - enable VLAN MTU support.
  - fix a few WITNESS complaints in cgem_attach().
  - have cgem_attach() properly init the ifnet struct before calling
    mii_attach() to fix panic when using e1000phy.
  - fix ethernet address changing.
  - fix transmit queue overflow handling.
  - tweak receive queue handling to reduce receive overflows.
  - bring out MAC statistic counters to sysctls.
  - add e1000phy to config file.
  - implement receive hang work-around described in reference guide.
  - change device name from if_cgem to cgem to be consistent with other
    interfaces.

  Fix the Zedboard/Zynq ethernet driver to handle media speed changes so
  that it can connect to switches at speeds other than 1gb.
2014-10-25 20:34:10 +00:00
kevlo
0817d1234e MFC r273448:
Fix the kernel panic in hostap mode.
rvp->beacon_mbuf was NULL in run_update_beacon().

PR:	189405
Submitted by:	Gabor Simon <gabor.simon75 at gmail.com>
2014-10-25 15:06:09 +00:00
rpaulo
6e4e970c3a MFC r273261:
Remove an unused mutex.
2014-10-25 02:08:02 +00:00
rpaulo
22c57adcd5 MFC r273258:
Make the ti_mbox and ti_pruss drivers optional.
2014-10-25 02:06:40 +00:00
rpaulo
f85f42f997 MFC r273257:
Add a driver for the TI watchdog.

 The TI watchdog timer is present on BeagleBone's.  Since 2014, U-Boot
 has been booting the BeagleBone with the watchdog enabled.  We need
 to
 disable it on boot to avoid a spurious reset.
 The timer isn't exactly precise, but it will do as a watchdog.  This
 is also a reflection of the watchdog(9) API.

 In the future, we could handle interrupts, but the watchdog(9) API
 needs to be a bit smarter before that can happen.
2014-10-25 02:05:21 +00:00
rpaulo
dce313ba3c MFC r273256:
AM335X FDT: use the omap3-wdt string for compatibility with Linux.
2014-10-25 02:02:20 +00:00
rpaulo
709bb13e76 MFC r273248:
AM335x FDT: add an entry for the watchdog.
2014-10-25 02:00:32 +00:00
rpaulo
6474b9b606 MFC r273247:
Fix the watchdog/watchdog man pages.

 The default timeout is 128 seconds.
2014-10-25 01:59:01 +00:00
markj
372e35ccad MFC r258902:
The uaddr, ufunc, umod and usym functions all seem to work as expected on
FreeBSD, so stop hiding them behind a "#if defined(sun)".
2014-10-24 17:24:29 +00:00
delphij
2455e6b607 MFC r273577:
Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree
driver.  This change was verified by Microsoft.

Instant MFC approved by:	re (kib)
2014-10-24 07:06:01 +00:00
neel
295105e2bd MFC r273356:
Fix a race in pmap_emulate_accessed_dirty() that could trigger a EPT
misconfiguration VM-exit.
2014-10-24 03:48:54 +00:00
markj
8a1641d786 MFC r272763:
If we fail to send a signal after rotation, print the pidfile from which
the corresponding PID was obtained.

PR:           194143
2014-10-23 18:50:44 +00:00
dumbbell
5cd9154e6b vt(4): Refuse to load a font if hw.vga.textmode is selected
Before, the font was loaded and the window size recalculated, giving an
unusable terminal, even if the actual font didn't change.

Reported by:	beeessdee@ruggedinbox.com
MFC of:		r273330
2014-10-23 13:32:01 +00:00
mav
9d96d4ad45 MFC r273259:
Make VPD 80h (Serial Number) transfer length match serial number length.
2014-10-23 07:37:48 +00:00
mav
b118502c8f MFC r273163: Implement more functional CTL debug logging.
Setting bits in kern.cam.ctl.debug allows to log errors, commands and some
commands data respectively.
2014-10-23 07:36:33 +00:00
pfg
fea98e7966 MFC r271789:
lpr: replace setpgrp(2) with setpgid(2).

setpgid(2) is more portable than setpgrp(2).
The BSD variant of setpgrp is a wrapper for
setpgid(2) anyways.
2014-10-23 02:53:57 +00:00
pfg
f56339f043 MFC r271787:
simple_httpd: cosmetic cleanups.

Many tab vs space cleanups.
Use setpgid() instead of setpgrp() which is more portable.
2014-10-23 02:50:18 +00:00
emaste
26b32ff4ad Add vtfontcvt(8) cross-reference to vt(4) man page
MFC of r273332
2014-10-23 02:18:23 +00:00
delphij
29bd84c81d MFC r272810: FV r272804:
Refactor the code and stop restore_object from creating two transactions.

Illumos issue:
    3693 restore_object uses at least two transactions to restore an object
2014-10-23 01:47:09 +00:00
delphij
7b171ea876 MFC r272809: MFV r272803:
Illumos issue:
    5175 implement dmu_read_uio_dbuf() to improve cached read performance
2014-10-23 01:40:31 +00:00
delphij
5295b89f11 MFC r272806: MFV r272802:
- Limit ARC for zdb at 256MB.  zdb do not typically revisit data
   in the ARC.
 - Increase default max_inflight from 200 to 1000 (can be overriden
   by -I) so we can queue more I/Os when doing scrubbing.
 - Print status while loading meataslabs for leak detection.

Illumos issues:

    5169 zdb should limit its ARC size
    5170 zdb -c should create more scrub i/os by default
    5171 zdb should print status while loading metaslabs for leak detection
2014-10-23 01:36:43 +00:00
ngie
80db25ba05 MFC r272778:
Set the autoindent to 4 spaces with vim in BSD.tests.dist

  This will prevent vim users from accidentally checking in buggy mtree files
  (mixed tabs/spaces).

  Sponsored by: EMC / Isilon Storage Division
2014-10-23 01:09:01 +00:00
ngie
0154db985c MFC r272917:
Add LDFLAGS to PROG_VARS so it can be overridden on a per-PROG basis

  Sponsored by: EMC / Isilon Storage Division
2014-10-23 01:08:31 +00:00
ngie
cbb305020c MFC r272053:
Have distrib-dirs, distribution, hier, hierarchy, redistribute, and reinstall
  depend on the .MAKE special target

  This will allow users to do something like the following to print out the
  results of the running the simulated make target with bmake, like some of the
  other top-level make targets in Makefile.inc1:

    % make -f Makefile.inc1 -n distribution TARGET=i386 TARGET_ARCH=i386

  Sponsored by: EMC / Isilon Storage Division
2014-10-23 01:06:00 +00:00
ngie
a927de110d MFC r271349:
Add diagnostic printfs and disable test # 4 on i386

  Reviewed by: jmmv, rpaulo
  Phabric: D749
  PR: 191676
  Sponsored by: EMC / Isilon Storage Division
2014-10-23 01:02:37 +00:00
ngie
7eb987ee39 MFC r271336:
Expand the tests structure in test_small(..) to workaround the
  "initializer not constant" warning with gcc

  Approved by: jmmv (mentor)
  Phabric: D744
  Sponsored by: EMC / Isilon Storage Division
2014-10-23 01:01:58 +00:00
ngie
813210d1c2 MFC r272055:
Improve bsd.progs.mk compatibility with bsd.prog.mk

  1. Do not install FILES/SCRIPTS multiple times if PROGS is specified; this is
     already handled via bsd.prog.mk when it's called recursively (PR: 191055,
     191955).
  2. Some variables, like BINDIR and PROGNAME, default to a value if unset
     whereas others get appended to, like CFLAGS. Add support for the former case
     (PR: 191056)
  3. Make "checkdpadd" and "clean" available targets for recursive execution.

  Reviewed by: marcel, sjg
  Phabric: D822
  PR: 191055, 191056, 191955
  Sponsored by: EMC / Isilon Storage Division
2014-10-23 00:54:52 +00:00
ngie
2b8c74e174 MFC r271365:
Remove many false positives with make checkdpadd

  - Reduce DPADD and LDADD in checkdpadd to -l<foo>
  - Skip over -Wl,[es]*-group because -Wl,--end-group and
    -Wl,--start-group might be required to properly link objects (see
    usr.bin/clang/lldb as an example)

  This caveat has been present for a while with some components of
  the build. However, these false positives were made more more apparent
  after r269648.

  Phabric: D635
  Reviewed by: jmmv (an earlier version)
  PR: 192730
2014-10-23 00:51:52 +00:00
ngie
9a57ba8bbc MFC r270650 (this is what should have been committed in r273497):
Convert LIBCURSES to LIBNCURSES to fix "make checkdpadd"

  Also, add a missing LIBPANEL dependency for lldb

  Approved by: rpaulo (mentor)
  Suggested by: brooks
  Phabric: D675 (as part of a larger diff)
  PR: 192762
2014-10-23 00:43:08 +00:00
ngie
f3b7cba370 MFC r263264 (by glebius):
Make talk(1) capable of displaying UTF-8 characters.

  Sponsored by:	Nginx, Inc.
2014-10-23 00:39:19 +00:00
markj
7d81889ecb MFC r271692:
Fix a typo.
2014-10-22 23:55:08 +00:00
andrew
58b9da93f0 MFC r273088:
Add support for the __aeabi_c*cmp* functions. These are similar to the
existing functions with the exception they use the condition flags to
store the result.
2014-10-22 13:50:38 +00:00
kib
eb3582e16f MFC r273132:
Style changes for deadfs.
2014-10-22 09:12:20 +00:00
kib
dc7923c136 MFC r273131:
When vnode bypass cannot be performed on the cdev file descriptor for
read/write/poll/ioctl, call standard vnode filedescriptor fop.
2014-10-22 09:09:41 +00:00
kib
6809e3fc35 MFC r273130:
Change the deadfs poll VOP to return POLLIN|POLLRDNORM if the caller
is interested in i/o state.  Return POLLNVAL for invalid bits, similar
to poll_no_poll().
2014-10-22 09:06:36 +00:00
kib
a9088c78cb MFC r273129:
Implement FIODTYPE for master ptys.
2014-10-22 09:04:56 +00:00
bryanv
0895e1be7f MFC r272573:
Change the UMA mutex into a rwlock

  Acquire the lock in read mode when just needed to ensure the stability
  of the keg list. The UMA lock may be held for a long time (relatively
  speaking) in uma_reclaim() on machines with lots of zones/kegs. If the
  uma_timeout() would fire during that period, subsequent callouts on that
  CPU may be significantly delayed.
2014-10-22 04:09:47 +00:00
bryanv
137a650c11 MFC r272796:
Add M_FLOWID to M_COPYFLAGS

The M_FLOWID flag should be propagated to the new mbuf pkthdr in
m_move_pkthdr() and m_dup_pkthdr(). The new mbuf already got the
existing flowid value, but would be ignored since the flag was
not set.
2014-10-22 04:01:27 +00:00
gjb
628635adcd Bump __FreeBSD_version to track SA-14:20, SA-14:21, SA-14:22,
SA-14:23

Approved by:	re (implicit)
Sponsored by:	The FreeBSD Foundation
2014-10-21 21:37:53 +00:00
gjb
9ec3090c92 MFC r273402:
Fix an issue where a FreeBSD virtual machine provisioned in
  the Microsoft Azure service does not recognize the second
  attached disk on the system.

PR:		194376
Insta-MFC OK:	re (rodrigc)
Sponsored by:	The FreeBSD Foundation
2014-10-21 21:27:13 +00:00
delphij
86df2c268f Fix rtsold(8) remote buffer overflow vulnerability. [SA-14:20]
Fix memory leak in sandboxed namei lookup. [SA-14:22]
2014-10-21 20:20:07 +00:00
emaste
6c5ddf4faf Add basic UEFI boot procedure manpage
MFC of r273218 and r273235.
2014-10-21 14:47:26 +00:00
brueffer
7fce188e08 MFC: r273034
Add one more AMD Kaveri APU device ID.

Submitted by:	Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>
2014-10-21 13:07:36 +00:00
hselasky
2e713a4fa0 MFC r272683:
- Fix compile warning when compiling with GCC.
- Add missed chunk in previous driver code MFC.

Sponsored by:	Mellanox Technologies
2014-10-21 08:24:12 +00:00
mav
32b4feead7 MFC r271926: Mention read_ahead tunables/sysctls. 2014-10-21 06:25:41 +00:00
mav
3e285508e6 MFC r262332 (by ivoras): Grammar fix 2014-10-21 06:24:15 +00:00
mav
227f786a57 MFC r262294 (by ivoras):
Explain how and where kern.cam.ada.write_cache can be set in practical
situations.
2014-10-21 06:23:14 +00:00