]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r271577:
pjd [Thu, 18 Sep 2014 22:17:46 +0000 (22:17 +0000)]
MFC r271577:

Fix descriptors leak.

PR: bin/191002
Reported by: Ryan Steinmetz
Submitted by: mjg
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271844 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix checksum calculation:
marcel [Thu, 18 Sep 2014 22:16:20 +0000 (22:16 +0000)]
Fix checksum calculation:
1.  Iterate over all partitions counted in the label, which can be more
   than the number of partitions given to mkimg(1).
2.  Start the checksum from the beginning of the label; not the beginning
   of the bootarea.

Tested with bsdlabel(8).

Approved by: re@ (rodrigc)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271843 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agodrm/i915: Add HW context support
dumbbell [Thu, 18 Sep 2014 20:32:40 +0000 (20:32 +0000)]
drm/i915: Add HW context support

This feature is required by Mesa 9.2+. Without this, a GL application
crashes with the following message:
    # glxinfo
    name of display: :0.0
    Gen6+ requires Kernel 3.6 or later.
    Assertion failed: (ctx->Version > 0), function handle_first_current,
      file ../../src/mesa/main/context.c, line 1498.
    Abort (core dumped)

Now, Mesa 10.2.4 and 10.3-rc3 works fine:
    # glxinfo
    name of display: :0
    display: :0  screen: 0
    direct rendering: Yes
    ...
    OpenGL renderer string: Mesa DRI Intel(R) 965GM
    OpenGL version string: 2.1 Mesa 10.2.4
    ...

The code was imported from Linux 3.8.13.

This an MFC of r271705.

Approved by: re (glebius)
Reviewed by: kib@
Tested by: kwm@, danfe@, Henry Hu,
Lundberg, Johannes <johannes@brilliantservice.co.jp>,
Johannes Dieterich <dieterich.joh@gmail.com>,
Lutz Bichler <lutz.bichler@gmail.com>,
Relnotes: yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271816 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC nmdm driver changes, r259550 and r271350
grehan [Thu, 18 Sep 2014 19:20:08 +0000 (19:20 +0000)]
MFC nmdm driver changes, r259550 and r271350

r259550 (glebius):
 Make nmdm(4) destroy devices when both sides of a pair are disconnected.
 This makes it possible to kldunload nmdm.ko when there are no users of it.

r271350:
 Fix issue with nmdm and leading zeros in device name.

 The nmdm code enforces a number between the 'nmdm' and 'A|B' portions
 of the device name. This is then used as a unit number, and sprintf'd
 back into the tty name. If leading zeros were used in the name,
 the created device name is different than the string used for the
 clone-open (e.g. /dev/nmdm0001A will result in /dev/nmdm1A).

 Since unit numbers are no longer required with the updated tty
 code, there seems to be no reason to force the string to be a
 number. The fix is to allow an arbitrary string between
 'nmdm' and 'A|B', within the constraints of devfs names. This allows
 all existing user of numeric strings to continue to work, and also
 allows more meaningful names to be used, such as bhyve VM names.

PR: 192281
Approved by: re (glebius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271800 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271676, r271677, r271678:
gjb [Thu, 18 Sep 2014 17:15:38 +0000 (17:15 +0000)]
MFC r271676, r271677, r271678:

r271676:
  Catch up with Crochet changes to fix the BEAGLEBONE
  build.

r271677:
  Catch up with Crochet changes to fix the WANDBOARD-QUAD
  build.

r271678:
  Set a static revision of the Crochet checkout to avoid
  surprise build failures.

Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271791 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271563:
allanjude [Thu, 18 Sep 2014 17:03:52 +0000 (17:03 +0000)]
MFC r271563:
Make the root-on-zfs part of the installer warn a user who booted the
installer via UEFI that we do not support booting ZFS via UEFI yet

PR: 193595
Approved by: re (gjb), nwhitehorn
Sponsored by: ScaleEngine Inc.

git-svn-id: svn://svn.freebsd.org/base/stable/10@271790 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r257770 r257818 r257823 r260066 r260067 r260089 r260145 r268587 r268588
tijl [Thu, 18 Sep 2014 15:10:22 +0000 (15:10 +0000)]
MFC r257770 r257818 r257823 r260066 r260067 r260089 r260145 r268587 r268588
    r268589 r268590 r268593 r268597 r269758 r270845 r270847 r270893 r270932
    r270947 r271147

Merge libm work by kargl, bde and das from the past few months.
Besides optimisations and small bug fixes this includes new implementations
for C99 functions expl, coshl, sinhl, tanhl, erfl and erfcl.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271779 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271552:
nwhitehorn [Thu, 18 Sep 2014 14:53:30 +0000 (14:53 +0000)]
MFC r271552:

Make the default choice for the chroot shell at the end be "No". This allows
just pressing enter repeatedly to successfully install a reasonable system.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271777 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271429:
smh [Thu, 18 Sep 2014 14:50:50 +0000 (14:50 +0000)]
MFC r271429:
Persist vdev_resilver_txg changes to avoid panic caused by validation
vs a vdev_resilver_txg value from a previous resilver.

Approved by: re (glebius)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@271776 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC tty fixes, r259549 and r259663
grehan [Thu, 18 Sep 2014 14:44:47 +0000 (14:44 +0000)]
MFC tty fixes, r259549 and r259663

Keep tty_makedev as a function to preserve the KBI on 10-stable
(it is a macro in CURRENT). The changes for this are direct
commits to 10-stable.

r259549 (glebius):
  - Rename tty_makedev() into tty_makedevf() and make it capable
    to fail and return error.
  - Use make_dev_p() in tty_makedevf() instead of make_dev_cred().
  - Always pass MAKEDEV_CHECKNAME flag.
  - Optionally pass MAKEDEV_REF flag.
  - Provide macro for compatibility with old API.

  This fixes races with simultaneous creation and desctruction of
  ttys, and makes it possible to call tty_makedevf() from device
  cloners.

  A race in tty_watermarks() still exist, since the latter drops
  lock for M_WAITOK allocation. This will be addressed in separate
  commit.

r259663 (glebius):
  Move list of ttys handling from the allocating procedures, to the
  device creation stage. A device creation can fail, and in that case
  an entry already on the list will be freed.

KBI issue pointed out by:       kib
Reviewed by:    kib (KBI addition)
Approved by:    re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271773 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agovt(4): Merge several bug fixes and improvements
dumbbell [Thu, 18 Sep 2014 14:38:18 +0000 (14:38 +0000)]
vt(4): Merge several bug fixes and improvements

SVN revisions in this MFC:
  269779 270705 270706 271180 271250 271253 271682 271684

Detailed commit list:

r269779:
  fbd: Fix a bug where vt_fb_attach() success would be considered a failure

  vt_fb_attach() currently always returns 0, but it could return a code
  defined in errno.h. However, it doesn't return a CN_* code. So checking
  its return value against CN_DEAD (which is 0) is incorrect, and in this
  case, a success becomes a failure.

  The consequence was unimportant, because the caller (drm_fb_helper.c)
  would only log an error message in this case. The console would still
  work.

  Approved by: nwhitehorn

r270705:
  vt(4): Add cngrab() and cnungrab() callbacks

  They are used when a panic occurs or when entering a DDB session for
  instance.

  cngrab() forces a vt-switch to the console window, no matter if the
  original window is another terminal or an X session. However, cnungrab()
  doesn't vt-switch back to the original window currently.

r270706:
  drm: Don't "taskqueue" vt-switch if under DDB/panic situation

  If DDB is active, we can't use a taskqueue thread to switch away from
  the X window, because this thread can't run.

  Reviewed by: ray@
  Approved by: ray@

r271180:
  vt_vga: vd_setpixel_t and vd_drawrect_t are noop in text mode

r271250:
  vt(4): Change the terminal and buffer sizes, even without a font

  This fixes a bug where scroll lock would not work for tty #0 when using
  vt_vga's textmode. The reason was that this window is created with a
  static 256x100 buffer, larger than the real size of 80x25.

  Now, in vt_change_font() and vt_compute_drawable_area(), we still
  perform operations even of the window has no font loaded (this is the
  case in textmode here vw->vw_font == NULL). One of these operation
  resizes the buffer accordingly.

  In vt_compute_drawable_area(), we take the terminal size as is (ie.
  80x25) for the drawable area.

  The font argument to vt_set_border() is removed (it was never used) and
  the code now uses the computed drawable area instead of re-doing its own
  calculation.

  Reported by: Harald Schmalzbauer <h.schmalzbauer_omnilan.de>
  Tested by: Harald Schmalzbauer <h.schmalzbauer_omnilan.de>

r271253:
  pause_sbt(): Take the cold path (ie. use DELAY()) if KDB is active

  This fixes a panic in the i915 driver when one uses debug.kdb.enter=1
  under vt(4).

  PR: 193269
  Reported by: emaste@
  Submitted by: avg@

r271682:
  vt(4): Fix a LOR which occurs during a call to vt_upgrade()

  Reported by: kib@
  Review: https://reviews.freebsd.org/D785
  Reviewed by: ray@
  Approved by: ray@

r271684:
  vt(4): Use vt_fb_drawrect() and vt_fb_setpixel() in all vt_fb-derivative

  Review: https://reviews.freebsd.org/D789
  Reviewed by: nwhitehorn
  Approved by: nwhitehorn

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271769 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.
des [Thu, 18 Sep 2014 14:27:37 +0000 (14:27 +0000)]
MFH (r271256, r271617): avoid segfault if PAM_RHOST nor PAM_TTY are unset.

Approved by: re (gjb)
PR: 83099

git-svn-id: svn://svn.freebsd.org/base/stable/10@271766 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFH (r271255): fix parsing of ipv6 nameserver lines
des [Thu, 18 Sep 2014 13:53:39 +0000 (13:53 +0000)]
MFH (r271255): fix parsing of ipv6 nameserver lines

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271760 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271571:
trasz [Thu, 18 Sep 2014 11:52:28 +0000 (11:52 +0000)]
MFC r271571:

Fix two small nits in ctl.conf(5).

Approved by: re (glebius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271755 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271643:
tuexen [Thu, 18 Sep 2014 09:49:49 +0000 (09:49 +0000)]
MFC r271643:
Chunk IDs are 8 bit entities, not 16 bit.
Thanks to Peter Kasting from Google for drawing
my attention to it.

MFC r271665:
The MTU is handled as a 32-bit entity within the SCTP stack.
This was reported by Peter Kasting from Google.

MFC r271670:
Make a type conversion explicit. When compiling this code on
Windows as part of the SCTP userland stack, this fixes a
warning reported by Peter Kasting from Google.

MFC r271672:
Small cleanup which addresses a warning regaring the truncation
of a 64-bit entity to a 32-bit entity. This issue was reported by
Peter Kasting from Google.

MFC r271673:
Use a consistent type for the number of HMAC algorithms.
This fixes a bug which resulted in a warning on the userland
stack, when compiled on Windows.
Thanks to Peter Kasting from Google for reporting the issue and
provinding a potential fix.

MFC r271674:
Add a explict cast to silence a warning when building
the userland stack on Windows.
This issue was reported by Peter Kasting from Google.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271750 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271644:
mav [Thu, 18 Sep 2014 09:21:29 +0000 (09:21 +0000)]
MFC r271644:
Add quirks to disable READ CAPACITY (16) for PNY USB 3.0 Flash Drives.

Submitted by: Sean Fagan <sef@ixsystems.com>
Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271748 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270673:
tuexen [Thu, 18 Sep 2014 08:58:22 +0000 (08:58 +0000)]
MFC r270673:
Announce SCTP support in the kern.features sysctl variables.

MFC r270859:
Enable SCTP support. It runs perfectly fine on a Wandboard quad.

MFC r271204 with manual intervention:
Fix the handling of sysctl variables when used with VIMAGE.
While there do some cleanup of the code.

MFC r271209:
Fix a leak of an address, if the address is scheduled for removal
and the stack is torn down.
Thanks to Peter Bostroem and Jiayang Liu from Google for reporting the
issue.

MFC r271219:
Use SYSCTL_PROC instead of SYSCTL_VNET_PROC.
Suggested by: glebius@

MFC r271221:
Use union sctp_sockstore instead of struct sockaddr_storage. This
eliminates some warnings when building in userland.
Thanks to Patrick Laimbock for reporting this issue.
Remove also some unnecessary casts.
There should be no functional change.

MFC r271228:
Address another warnings reported by Patrick Laimbock when compiling
in userspace. While there, improve consistency.

MFC r271230:
Address warnings generated by the clang analyzer.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271746 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271597:
dim [Thu, 18 Sep 2014 06:34:27 +0000 (06:34 +0000)]
MFC r271597:

Pull in r217410 from upstream llvm trunk (by Bob Wilson):

  Set trunc store action to Expand for all X86 targets.

  When compiling without SSE2, isTruncStoreLegal(F64, F32) would return
  Legal, whereas with SSE2 it would return Expand. And since the Target
  doesn't seem to actually handle a truncstore for double -> float, it
  would just output a store of a full double in the space for a float
  hence overwriting other bits on the stack.

  Patch by Luqman Aden!

This should fix clang -O0 on i386 assigning garbage to floats, in
certain scenarios.

PR: 187437
Submitted by: cebd@gmail.com
Approved by: re (marius)
Obtained from: http://llvm.org/viewvc/llvm-project?rev=217410&view=rev

git-svn-id: svn://svn.freebsd.org/base/stable/10@271739 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271445,r271446,r271560:
allanjude [Thu, 18 Sep 2014 03:02:00 +0000 (03:02 +0000)]
MFC r271445,r271446,r271560:
Improve markup and language throughout the ctl.conf man page

MFC r271543:
Add the new iscsi(4) man page
Cross reference it from iscsid(8) and iscsictl(8)

Approved by: re (gjb), bcr (mentor)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271734 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC Clang debuginfo crash fix
emaste [Thu, 18 Sep 2014 01:24:40 +0000 (01:24 +0000)]
MFC Clang debuginfo crash fix

r271432: Merge upstream Clang rev 205331 debuginfo crash fix:

      Debug info: fix a crash when emitting IndirectFieldDecls, which were
      previously not handled at all.
      rdar://problem/16348575

r271433: Add clang patch corresponding to r271432

Approved by: re
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@271729 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268854
davidcs [Wed, 17 Sep 2014 22:11:20 +0000 (22:11 +0000)]
MFC r268854
Initiate error recovery stats fail to update after 3 retries.
Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to
panic only if ECORE_STOP_ON_ERROR is defined.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271725 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270830:
jhb [Wed, 17 Sep 2014 18:17:18 +0000 (18:17 +0000)]
MFC 270830:
When anouncing link state changes on an 802.11 interface with a vap,
announce the change on the vap's ifnet instead of the main ifnet.  This
matches the behavior of other wireless drivers in the tree and allows the
default devd configuration to correctly start dhclient automatically after
an ndis wireless device associates.

Approved by: re (marius for 10)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271714 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA.
mav [Wed, 17 Sep 2014 14:17:39 +0000 (14:17 +0000)]
MFC r271403: Add PCI ID for Promise TX8660 8-port 3Gbps HBA.

This device reports RAID subclass, but appears to be AHCI compatible.

Submitted by: Yuri Perejilin <yuri@rivera.ru>
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271709 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271604, r271616:
mav [Wed, 17 Sep 2014 14:06:21 +0000 (14:06 +0000)]
MFC r271604, r271616:
Add couple memory barriers to order tdq_cpu_idle and tdq_load accesses.

This change fixes transient performance drops in some of my benchmarks,
vanishing as soon as I am trying to collect any stats from the scheduler.
It looks like reordered access to those variables sometimes caused loss of
IPI_PREEMPT, that delayed thread execution until some later interrupt.

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271437:
trasz [Wed, 17 Sep 2014 08:47:58 +0000 (08:47 +0000)]
MFC r271437:

Don't blindly assume the target agreed to transition to Full Feature Phase;
if we got a Login Response PDU without the "T" bit set, try again with
an empty request.  This fixes interoperability with COMSTAR.

Reviewed by: mav
Tested by: mav
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271706 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271167:
trasz [Wed, 17 Sep 2014 08:25:48 +0000 (08:25 +0000)]
MFC r271167:

Make it possible to quote names in autofs maps using double quotes.

Note that this is a workaround, not a proper solution.  If you know
lex well, and want to help - please let me know, I'll explain how it
should work.

PR: 192968
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271319:
trasz [Wed, 17 Sep 2014 07:06:02 +0000 (07:06 +0000)]
MFC r271319:

Fix ctld(8) to not forget to send TargetPortalGroupTag and TargetAlias
when the initiator skips security negotiation.  This fixes interoperability
with Xtend SAN initiator.

PR: 193021
Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270160:
lstewart [Tue, 16 Sep 2014 21:26:24 +0000 (21:26 +0000)]
MFC r270160:

Destroy the "qdiffsample_zone" UMA zone on unload to avoid a use-after-unload
panic easily triggered by running "sysctl -a" after unload.

Reported and tested by: Grenville Armitage <garmitage@swin.edu.au>
Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271690 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument SA-14:19
gjb [Tue, 16 Sep 2014 19:25:27 +0000 (19:25 +0000)]
Document SA-14:19

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoBump __FreeBSD_version after SA-14:19.tcp
gjb [Tue, 16 Sep 2014 19:20:06 +0000 (19:20 +0000)]
Bump __FreeBSD_version after SA-14:19.tcp

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC virtio-net changes.
grehan [Tue, 16 Sep 2014 19:08:54 +0000 (19:08 +0000)]
MFC virtio-net changes.

Re-tested with NetBSD/amd64 5.2.2, 6.1.4 and 7-beta.

r271299:
Add a callback to be notified about negotiated features.

r271338:
Allow vtnet operation without merged rx buffers.

NetBSD's virtio-net implementation doesn't negotiate
the merged rx-buffers feature. To support this, check
to see if the feature was negotiated, and then adjust
the operation of the receive path accordingly by using
a larger iovec, and a smaller rx header.
In addition, ignore writes to the (read-only) status byte.

Approved by: re (glebius)
Obtained from: Vincenzo Maffione, Universita` di Pisa (r271299)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271685 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 265253:
smh [Tue, 16 Sep 2014 17:47:13 +0000 (17:47 +0000)]
MFC 265253:
Don't treat TRIM requests returning ENOTSUP as an unexpected error

Approved by: re (gjb)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@271683 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoFix Denial of Service in TCP packet processing.
delphij [Tue, 16 Sep 2014 09:48:35 +0000 (09:48 +0000)]
Fix Denial of Service in TCP packet processing.

Security: FreeBSD-SA-14:19.tcp
Approved by: re (implicit, security advisory)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271667 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270689:
grehan [Tue, 16 Sep 2014 01:59:19 +0000 (01:59 +0000)]
MFC r270689:
    Implement the 0x2B SUB instruction, and the OR variant of 0x81.

    Found with local APIC accesses from bitrig/amd64 bsd.rd, 07/15-snap.

Approved by: re (rodrigc)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271659 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271452:
se [Mon, 15 Sep 2014 20:08:07 +0000 (20:08 +0000)]
MFC r271452:

Add two forgotten keymap names (fr.kbd and fr.acc.kbd) to the list
of files to be installed.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271646 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r268540 by nwhitehorn:
emaste [Mon, 15 Sep 2014 17:56:55 +0000 (17:56 +0000)]
MFC r268540 by nwhitehorn:

    Allow up to 512K for boot code on GPT with BIOS. As pmbr.s says in
    a comment, "545K should be enough for any boot code". This rounds
    down slightly.

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271637 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC EFI support for the installer
emaste [Mon, 15 Sep 2014 17:49:46 +0000 (17:49 +0000)]
MFC EFI support for the installer

r264978 (nwhitehorn):

    Add EFI support to the installer. This requires that the kernel
    provide a sysctl to determine what firmware is in use. This sysctl
    does not exist yet, so the following blocks are in front of the
    wheels:
    - I've provisionally called this "hw.platform" after the equivalent
      thing on PPC
    - The logic to check the sysctl is short-circuited to always choose
      BIOS.  There's a comment in the top of the file about how to turn
      this off.

    If IA64 acquired a boot1.efifat-like thing (probably with very few
    modifications), the same code could be adapted there.

r265016 (nwhitehorn):

    Finish connecting up installer UEFI support. If the kernel was
    booted using EFI, set up the disks for an EFI system. If booted from
    BIOS/CSM, set up for BIOS.

r268256 (nwhitehorn):

    After EFI support was added to the installer, it needed to allow
    boot partitions of types other than "freebsd-boot" (in particular,
    "efi").  This allows the removal of some nasty hacks for supporting
    PowerPC systems, in particular aliasing freebsd-boot to apple-boot
    on APM and an IBM-specific code on MBR.

    This changes the installer to use the correct names, which also
    breaks a degeneracy in the meaning of "freebsd-boot" that allows the
    addition of support for some newer IBM systems that can boot from
    GPT in addition to MBR. Since I have no idea how to detect which
    those systems are, leave the default on IBM PPC systems as MBR for
    now.

Approved by: re
PR: 193658
Relnotes: Yes

git-svn-id: svn://svn.freebsd.org/base/stable/10@271636 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265171 by nwhitehorn: Use mkimg instead of md(4) and gpart [for powerpc].
emaste [Mon, 15 Sep 2014 16:47:04 +0000 (16:47 +0000)]
MFC r265171 by nwhitehorn: Use mkimg instead of md(4) and gpart [for powerpc].

Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271633 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271187:
trasz [Mon, 15 Sep 2014 16:40:27 +0000 (16:40 +0000)]
MFC r271187:

Avoid ctld(8) crash on getaddrinfo(3) failure.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271632 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271169:
trasz [Mon, 15 Sep 2014 14:21:57 +0000 (14:21 +0000)]
MFC r271169:

Turn two errors, which are possible to trigger only by bugs,
into assertions.

Approved by: re (gjb)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271627 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271157:
trasz [Mon, 15 Sep 2014 14:04:55 +0000 (14:04 +0000)]
MFC r271157:

Fix typo.

Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271626 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271436:
trasz [Mon, 15 Sep 2014 13:19:40 +0000 (13:19 +0000)]
MFC r271436:

Fix typo.

Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271623 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271317:
trasz [Mon, 15 Sep 2014 13:01:47 +0000 (13:01 +0000)]
MFC r271317:

Avoid unlocking unlocked mutex in RCTL jail code.  Specific test case
is attached to PR.

PR: 193457
Approved by: re (kib)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271622 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC: r271286
brueffer [Mon, 15 Sep 2014 12:36:40 +0000 (12:36 +0000)]
MFC: r271286

Use the right constants in comparisons.  This is currently a nop, as
MIN_RXD == MIN_TXD and MAX_RXD == MAX_TXD.

Reviewed by:    Eric Joyner @ Intel
Approved by:    re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271620 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271393:
trasz [Mon, 15 Sep 2014 11:35:14 +0000 (11:35 +0000)]
MFC r271393:

Make it possible to disable NOP-In PDUs by the iSCSI initiator by setting
kern.cam.ctl.iscsi.ping_timeout to 0.  This fixes interoperability with
some initiators that don't properly support NOP-Ins, namely iPXE/gPXE.

Approved by: re (kib)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271618 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271099: revert r269814: blkfront: add support for unmapped IO
royger [Mon, 15 Sep 2014 08:58:17 +0000 (08:58 +0000)]
MFC r271099: revert r269814: blkfront: add support for unmapped IO

Current busdma code for unmapped bios will not properly align the
segment size, causing corruption on blkfront devices. Revert the commit
until busdma code is fixed.

Reported by: mav
Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271611 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271480, r271483, r271491:
gjb [Mon, 15 Sep 2014 02:21:34 +0000 (02:21 +0000)]
MFC r271480, r271483, r271491:

r271480:
  Set PKG_CACHEDIR to an 'All/' directory one level lower
  to fix 'pkg repo' generating repository metadata for the
  on-disc packages.

r271483:
  Fix duplicate PKG_ABI in the PKG_CACHEDIR path.

r271491:
  Simplify dvd package population with pkg-1.3.

Approved by: re (rodrigc)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271608 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDefine NO_TESTS instead of WITHOUT_TESTS for the etc/
gjb [Sun, 14 Sep 2014 23:25:10 +0000 (23:25 +0000)]
Define NO_TESTS instead of WITHOUT_TESTS for the etc/
'distribute' target to fix the WITH_TESTS=1 build.

This is a direct commit to stable/10.

Submitted by: ngie
Approved by: re (rodrigc)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271605 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271434:
wblock [Sun, 14 Sep 2014 02:55:17 +0000 (02:55 +0000)]
MFC r271434:

Update motd, clarifying the information and adding pointers to other
resources.

Approved by: re@ (marius@)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271568 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271149:
pfg [Sat, 13 Sep 2014 18:27:47 +0000 (18:27 +0000)]
MFC r271149:
Apply known workarounds for less modern MacBooks.

The legacy USB circuit tends to give trouble on older MacBooks.
While the original report covered MacBook4, extend the fix
preemptively for the newer MacBookPro4 too.

PR: 191693
Reviewed by: emaste
Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271541 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271407: Extend UNMAP blacklist on all STEC SSD models.
mav [Sat, 13 Sep 2014 17:13:04 +0000 (17:13 +0000)]
MFC r271407: Extend UNMAP blacklist on all STEC SSD models.

None of existing STEC devices need UNMAP or even support it well,
having many limitations and even hanging sometimes executing those
commands. New devices that may use UNMAP going to be released under
HGST name.

Approved by: re (delphij)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271530 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271362:
mav [Sat, 13 Sep 2014 17:08:27 +0000 (17:08 +0000)]
MFC r271362:
Make ctl_port_mask an array to support more then 32 ports.

Overflow reported by Coverity.

CID: 1229894

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271529 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271163, 271196:
mav [Sat, 13 Sep 2014 16:02:43 +0000 (16:02 +0000)]
MFC r271163, 271196:
Invert AHCI_Q_NOBSYRES quirk meaning, waiting for readiness by default.

I gave up to update list of Marvell chips that require this quirk.
The final nail was growing number of PCIe/M.2 SSDs where Marvell
chips have PCI IDs of different vendors.

Approved by: re (delphij)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271523 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoInclude the 'mini' (bootonly) UEFI memstick image
gjb [Fri, 12 Sep 2014 19:32:18 +0000 (19:32 +0000)]
Include the 'mini' (bootonly) UEFI memstick image
in the list of IMAGES.

This is a direct commit to stable/10.

Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271481 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoConnect the UEFI-capable disc1.iso and dvd1.iso variants
gjb [Fri, 12 Sep 2014 18:23:22 +0000 (18:23 +0000)]
Connect the UEFI-capable disc1.iso and dvd1.iso variants
to the build.

This is a direct commit to stable/10.

Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271477 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271284:
gjb [Fri, 12 Sep 2014 17:06:55 +0000 (17:06 +0000)]
MFC r271284:
  Include the gssapi_krb5 library in KRB5_LDFLAGS.

PR: 156245
Approved by: re (marius)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271473 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271331:
gjb [Fri, 12 Sep 2014 17:01:14 +0000 (17:01 +0000)]
MFC r271331:
  Change how the recommended mailing list to track is
  added to the footer of the release/doc/ pages by
  moving a hard-coded value (that is subject to human
  error to change) to release.ent where other values
  are regularly changed, and adding parsing logic to
  release.xsl.

Approved by: re (implicit, relnotes)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271471 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r264995 (nwhitehorn):
emaste [Fri, 12 Sep 2014 16:37:56 +0000 (16:37 +0000)]
MFC r264995 (nwhitehorn):

    Add script to setup bootable CD ISOs for both BIOS and EFI systems.
    Tested and working on QEMU. Actually using this script as the regular
    image generator, like with the memstick one, will require that the
    kernel support EFI too. In particular, the following two things are
    required:
    1. vt(9) be the default console driver
    2. vt_efifb and vt_vga be able to coexist usefully in the same kernel

    One other note here is that this requires newfs_msdos and mdconfig,
    which is really ugly. NetBSD's makefs at least seems to support FAT
    now. If that actually works, it should be imported and we can get rid
    of the mdconfig mess.

Approved by: re
Relnotes: Yes
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271470 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270798:
kib [Fri, 12 Sep 2014 16:22:01 +0000 (16:22 +0000)]
MFC r270798:
Process STT_GNU_IFUNC when doing non-plt relocations.

MFC r270802:
Only do the second pass over non-plt relocations when the first pass
found IFUNCs.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271469 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoUpdate stable/10 to -BETA1 as part of the 10.1-RELEASE
gjb [Fri, 12 Sep 2014 00:05:15 +0000 (00:05 +0000)]
Update stable/10 to -BETA1 as part of the 10.1-RELEASE
cycle.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271444 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r266497:
smh [Thu, 11 Sep 2014 18:42:51 +0000 (18:42 +0000)]
MFC r266497:
Add sysctls for ZFS dirty data tuning.

MFC r266533:
Improve sysctl descriptions for new ZFS sysctls.

Approved by: re (marius)
Sponsored by: Multiplay

git-svn-id: svn://svn.freebsd.org/base/stable/10@271435 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDisable debugging-related options in all ARM kernel configs for stable-10.
ian [Thu, 11 Sep 2014 15:36:36 +0000 (15:36 +0000)]
Disable debugging-related options in all ARM kernel configs for stable-10.
This is a direct commit to stable-10.  The following options are disabled
in all arm kernel configs:

DEADLKRES
DIAGNOSTIC
INVARIANTS
INVARIANTS_SUPPORT
WITNESS
WITNESS_SKIPSPIN
Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271428 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270993 (by mjg):
kib [Thu, 11 Sep 2014 11:25:10 +0000 (11:25 +0000)]
MFC r270993 (by mjg):
Fix up proc_realparent to always return correct process.

Approved by: re (delphij)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271423 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC Clang debug info crash fix
emaste [Thu, 11 Sep 2014 01:53:55 +0000 (01:53 +0000)]
MFC Clang debug info crash fix

r271282: Merge Clang debug info crash fix rev 200797:

      Debug info: fix a crasher when when emitting debug info for
      not-yet-completed templated types. getTypeSize() needs a complete type.

      rdar://problem/15931354

r271283: Add clang patch for r271282

  Note that r271282 contains only the src change from Clang rev 200797.
  This patch file includes two follow-on changes to the test case, which
  do not apply to the copy in the FreeBSD tree.

  Upstream Clang revisions:

  200797:

      Debug info: fix a crasher when when emitting debug info for
      not-yet-completed templated types. getTypeSize() needs a complete type.

      rdar://problem/15931354

  200798:

      Simplify testcase from r200797 some more.

  200805:

      Further simplify r200797 and add an explanatory comment.

PR: 193347
Approved by: re
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@271414 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 270823,270825,270829:
jhb [Wed, 10 Sep 2014 15:45:18 +0000 (15:45 +0000)]
MFC 270823,270825,270829:
Use a unit number allocator to provide suitable st_dev and st_ino values
for POSIX shared memory descriptors.  The implementation is similar to
that used for pipes.

Approved by: re (gjb for 10)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271399 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271226: MFV r271223:
delphij [Wed, 10 Sep 2014 13:21:44 +0000 (13:21 +0000)]
MFC r271226: MFV r271223:

In dnode_sync(), do dnode_increase_indirection() before processing
the dn_next_nblkptr.

Illumos issue:
    5117 space map reallocation can cause corruption

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271222:
delphij [Wed, 10 Sep 2014 13:13:30 +0000 (13:13 +0000)]
MFC r271222:

Fix typo.

Submitted by: Dmitry Morozovsky <marck rinet ru>
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271390 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271218:
hselasky [Wed, 10 Sep 2014 10:09:34 +0000 (10:09 +0000)]
MFC r271218:
Update mixer description for FastTrackPro.

Approved by: re, marius

git-svn-id: svn://svn.freebsd.org/base/stable/10@271375 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271000:
kib [Wed, 10 Sep 2014 09:47:16 +0000 (09:47 +0000)]
MFC r271000:
Delay the return from thread_single(SINGLE_EXIT) until all threads are
really destroyed by thread_stash() after the last switch out.

MFC r271007:
Retire thread_unthread().

MFC r271008:
Style.

Approved by: re (marius)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271372 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271017 and r271018:
hselasky [Wed, 10 Sep 2014 09:40:51 +0000 (09:40 +0000)]
MFC r271017 and r271018:
Add new quirk.

PR:        193279
Approved by: re, marius

git-svn-id: svn://svn.freebsd.org/base/stable/10@271370 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270992:
hselasky [Wed, 10 Sep 2014 06:48:23 +0000 (06:48 +0000)]
MFC r270992:
Fix logical error.

Approved by: re, glebius

git-svn-id: svn://svn.freebsd.org/base/stable/10@271355 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoBump __FreeBSD_version after SA-14:18
gjb [Wed, 10 Sep 2014 00:19:33 +0000 (00:19 +0000)]
Bump __FreeBSD_version after SA-14:18

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271341 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271050: Disable DIAGNOSTIC on low-end ARM platforms.
ian [Tue, 9 Sep 2014 23:31:30 +0000 (23:31 +0000)]
MFC r271050: Disable DIAGNOSTIC on low-end ARM platforms.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271339 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270882, r270930:
ian [Tue, 9 Sep 2014 22:24:01 +0000 (22:24 +0000)]
MFC r270882, r270930:

  In ARM asm code, ensure that every ENTRY(foo) has a matching END(foo).
  The EABI unwind info requires a .fnend for every .fnstart, and newer
  binutils will complain about seeing two .fnstart in a row.  This change
  allows newer tools to compile our code.

  Do not generate unwind info in asm functions if _STANDALONE is defined.
  The .fnend op causes the assembler to emit RELOC references to unwind
  support functions that don't exist in libstand.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271337 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoConnect the UEFI-capable memstick.img to the build.
gjb [Tue, 9 Sep 2014 21:07:21 +0000 (21:07 +0000)]
Connect the UEFI-capable memstick.img to the build.

This is a direct commit to stable/10, as the script
in head/ does UEFI by default.

Approved by: re (rodrigc)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271334 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC improved vt(4) font generation
emaste [Tue, 9 Sep 2014 20:36:56 +0000 (20:36 +0000)]
MFC improved vt(4) font generation

r266851: Add VGAROM 8x8, 8x14 and 8x16 fonts for vt(4)

  These are converted from syscons(4) cp437 fonts.

r267306: Add vgarom font source

  These are in 'GNU Unifont' format, and are converted from syscons(4)
  cp437 fonts.

r267400: Add thin versions of VGAROM 8x8 and 8x16 fonts for vt(4)

  These are converted from syscons(4) cp437-thin-8x* fonts.

r267423: Build vt(4) fonts during buildworld

  vtfontcvt(8) is now built during buildworld, so can be used as a
  bootstrap tool to create vt(4) fonts from source .hex or .bdf font
  files, rather than having uuencoded binary fonts in the tree.

r267578: Add glyphs from converted syscons iso* fonts

  This consists of the unique glyphs from the following font files in
  /usr/share/syscons/fonts:

  iso*.fnt     ISO-8859-1 West European
  iso02*.fnt   ISO-8859-2 Central European
  iso04*.fnt   ISO-8859-4 Baltic
  iso05*.fnt   ISO-8859-5 Cyrillic
  iso07*.fnt   ISO-8859-7 Greek
  iso08*.fnt   ISO-8859-8 Hebrew
  iso09*.fnt   ISO-8859-9 Turkish
  iso15*.fnt   ISO-8859-15 West European

r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT

  The _SUPPORT knobs have a consistent meaning which differs from the
  behaviour controlled by this knob.  As the knob is opt-out and has not
  appeared in a release the impact should be low.

Approved by: re
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271333 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270065:
ian [Tue, 9 Sep 2014 19:47:35 +0000 (19:47 +0000)]
MFC r270065:

  Move the imx6 sysctl temperature info to hw.imx6 where all the other
  soc-wide info lives.  It was under dev.imx6_anatop.0.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271330 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270858, 270879:
ian [Tue, 9 Sep 2014 19:26:55 +0000 (19:26 +0000)]
MFC r270858, 270879:

  Remove duplicated option FDT from individual Wandboard configs, leave
  the one in the common IMX6 file that they all include.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271329 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270862, r270878: MMU fixes for kernel startup.
ian [Tue, 9 Sep 2014 18:17:43 +0000 (18:17 +0000)]
MFC r270862, r270878: MMU fixes for kernel startup.

  Fix the handling of MMU type in the AP entry code.  The ARM_MMU_V6/V7
  symbols are always #defined to 0 or 1, so use #if SYM not #if defined(SYM).
  Also, it helps if you include the header file that defines the symbols.

  The Marvell PJ4B cpu family is armv7, not armv6.

Approved by: re(gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271327 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument SA-14:18.
gjb [Tue, 9 Sep 2014 17:38:55 +0000 (17:38 +0000)]
Document SA-14:18.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271324 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC UEFI memstick build script
emaste [Tue, 9 Sep 2014 16:11:04 +0000 (16:11 +0000)]
MFC UEFI memstick build script

r264935 (gjb):

    Add a separate script to build the memstick.img and the
    mini-memstick.img with UEFI support.

    As the comments in the file suggest, 1) there must
    be existing ${.OBJDIR}/usr/src/release/{release,bootonly};
    2) TARGET/TARGET_ARCH must be amd64; and 3) it must be
    a vt(4)-enabled kernel with vt_efifb (*not* vt_vga).

    This script is not hooked into release/Makefile in any way
    until further testing is complete.

r264992 (nwhitehorn):

    Make a dual-boot BIOS/UEFI memstick image. Testing required before
    this gets renamed make-memstick.sh.

r265017 (nwhitehorn):

    loader's GPT support on BIOS does not seem to like the root
    filesystem being the last filesystem on the disk for some reason
    when made by this script. Add a vestigial swap partition to allow
    this to boot with QEMU BIOS.

Approved by: re
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271318 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMerge r270928: explicitly free packet on PF_DROP, otherwise a "quick"
glebius [Tue, 9 Sep 2014 10:29:27 +0000 (10:29 +0000)]
Merge r270928: explicitly free packet on PF_DROP, otherwise a "quick"
rule with "route-to" may still forward it.

PR: 177808
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271306 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r267176, r267181, r268445 (ATF-related commits):
ngie [Tue, 9 Sep 2014 04:00:30 +0000 (04:00 +0000)]
MFC r267176, r267181, r268445 (ATF-related commits):

Phabric: https://reviews.freebsd.org/D706
Approved by: rpaulo (mentor)
Approved by: re (gjb)
Reviewed by: jmmv
Sponsored by: EMC / Isilon Storage Division

r267176:

 Add the *_TESTS_SH_SED_* functionality to atf.test.mk.

 This exists already in plain.test.mk and tap.test.mk and should have been
 added to atf.test.mk too when the feature was first introduced.

 (It is probably time to address the related TODOs but I will do that
 separately.)

r267181:

 Move atf-sh from /usr/bin/ to /usr/libexec/

 In r266650, we made libatf-c and libatf-c++ private libraries so that no
 components outside of the source tree could unintendedly depend on them.

 This change does the same for the "atf-sh library" by moving the atf-sh
 interpreter from its public location in /usr/bin/ to the private location
 in /usr/libexec/.  Our build system will ensure that our own test programs
 use the right binary, but users won't be able to depend on atf-sh by
 "mistake".

 Committing this now to ride the UPDATING notice added with r267172 today.

r268445:

 Fix atf-sh's integration_test

 With the move of atf-sh into /usr/libexec in r267181, some of the
 tests in the integration_test program broke because they could not
 execute atf-sh from the path any longer.

 This slipped through because I do have a local atf installation in
 my home directory that appears in my path, hence the tests could
 still execute my own version.

 Fix this by forcing /usr/libexec to appear at the beginning of the
 path when attempting to execute atf-sh.

 To make upgrading easy (and to avoid an unnecessary entry in UPDATING),
 make integration_test depend on the Makefile so that a rebuild of the
 shell script is triggered.  This requires a hack in the *.test.mk files
 to ensure the Makefile is not treated as a source to the generated
 program.  Ugly, I know, but I don't have a better way of doing this at
 the moment.  Will think of one once I address the TODO in the *.test.mk
 files that suggests generalizing the file generation functionality.

 PR: 191052
 Reviewed by: Garrett Cooper

git-svn-id: svn://svn.freebsd.org/base/stable/10@271298 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r265014: Report boot method (BIOS/UEFI) via sysctl machdep.bootmethod
emaste [Mon, 8 Sep 2014 21:10:51 +0000 (21:10 +0000)]
MFC r265014: Report boot method (BIOS/UEFI) via sysctl machdep.bootmethod

Approved by: re
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271289 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270927:
ae [Mon, 8 Sep 2014 19:40:59 +0000 (19:40 +0000)]
MFC r270927:
  Add the reverse part to rule #9. Also change its description in the
  netstat(8) output.

Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271288 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years ago- Document 263725, ctld(8) 'portal-group' is overrideable.
gjb [Mon, 8 Sep 2014 15:42:47 +0000 (15:42 +0000)]
- Document 263725, ctld(8) 'portal-group' is overrideable.
- Document 263726, ctld(8) 'auth-group' default entry.

Submitted by: trasz
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271277 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r263720, hostname- and IP-based restrictions added
gjb [Mon, 8 Sep 2014 15:42:45 +0000 (15:42 +0000)]
Document r263720, hostname- and IP-based restrictions added
to ctld(8).

Submitted by: trasz
Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271276 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r271047: Avoid ./ in zoneinfo entries in METALOG
emaste [Mon, 8 Sep 2014 15:40:55 +0000 (15:40 +0000)]
MFC r271047: Avoid ./ in zoneinfo entries in METALOG

Use of "find ." resulted in METALOG entries with an extra ./ -- e.g.,
./usr/share/zoneinfo/./America/Toronto.  Avoid this by using globbing
via "find *" instead.

Approved by: re
Sponsored by: DARPA, AFRL

git-svn-id: svn://svn.freebsd.org/base/stable/10@271275 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC r270976: Allow standalone debug for non-default ${PROG} targets
emaste [Mon, 8 Sep 2014 15:28:17 +0000 (15:28 +0000)]
MFC r270976: Allow standalone debug for non-default ${PROG} targets

This allows WITH_DEBUG_FILES to produce standalone debug for the ELF
runtime linker.

We previously disabled standalone debug files for bsd.prog.mk consumers
that included a non-default ${PROG} target, but this is not required.

Consumers that do not support standalone debug are still handled by
disabling it for statically linked binaries, and for those that specify
a non-default binary format.

Sponsored by: DARPA, AFRL
Approved by: re

git-svn-id: svn://svn.freebsd.org/base/stable/10@271274 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271260, support for /etc/rc.d/<service>/
gjb [Mon, 8 Sep 2014 15:00:01 +0000 (15:00 +0000)]
Document r271260, support for /etc/rc.d/<service>/
subdirectories.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271273 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271234, mrsas(4) enabled in GENERIC for amd64
gjb [Mon, 8 Sep 2014 14:59:59 +0000 (14:59 +0000)]
Document r271234, mrsas(4) enabled in GENERIC for amd64
and i386.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271272 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271205, powerpc ATI Radeon 9700 backlight fix.
gjb [Mon, 8 Sep 2014 14:59:57 +0000 (14:59 +0000)]
Document r271205, powerpc ATI Radeon 9700 backlight fix.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271271 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.
gjb [Mon, 8 Sep 2014 14:59:55 +0000 (14:59 +0000)]
Document r271153, KSTACK_PAGES increased 4 -> 8 on powerpc64.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271270 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years ago- Refine entry for r271130 since a follow-up commit
gjb [Mon, 8 Sep 2014 14:59:53 +0000 (14:59 +0000)]
- Refine entry for r271130 since a follow-up commit
  adds 64-bit libstand.

- Document r271135, initial UEFI boot support.

- Document r271136, boot1.efi, boot1.efifat, loader.efi
  installed to /boot.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271269 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271130, sys/boot/libstand moved to 32-bit specific
gjb [Mon, 8 Sep 2014 14:59:51 +0000 (14:59 +0000)]
Document r271130, sys/boot/libstand moved to 32-bit specific
directory naming convention.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271268 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271128, several performance enhancements to vt(4).
gjb [Mon, 8 Sep 2014 14:59:49 +0000 (14:59 +0000)]
Document r271128, several performance enhancements to vt(4).

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271267 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271116, ofwfb updated to work with
gjb [Mon, 8 Sep 2014 14:59:47 +0000 (14:59 +0000)]
Document r271116, ofwfb updated to work with
x11-servers/xorg-server.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271266 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271111, vt(4) enabled for PS3.
gjb [Mon, 8 Sep 2014 14:59:45 +0000 (14:59 +0000)]
Document r271111, vt(4) enabled for PS3.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271265 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoDocument r271095, vt(4) keymap support added to the syscons
gjb [Mon, 8 Sep 2014 14:59:43 +0000 (14:59 +0000)]
Document r271095, vt(4) keymap support added to the syscons
rc(8) startup script.

Approved by: re (implicit)
Sponsored by: The FreeBSD Foundation

git-svn-id: svn://svn.freebsd.org/base/stable/10@271264 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f

9 years agoMFC 271048:
jhb [Mon, 8 Sep 2014 14:45:58 +0000 (14:45 +0000)]
MFC 271048:
Always seek back to the beginning of a regular directory, even if the
previous seek location was 0.  Without this, readdir() would see
dd_loc of zero and call getdirentries() which would start reading
entries at the current seek location of the directory ignoring the
first batch of entries.  Also, rewinddir() should always seek so that
it reads the directory from the beginning to get updated entries.

PR: 192935
Approved by: re (gjb)

git-svn-id: svn://svn.freebsd.org/base/stable/10@271263 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f