]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
10 years agoMFC r258432, r258433
rodrigc [Sat, 23 Nov 2013 01:20:17 +0000 (01:20 +0000)]
MFC r258432, r258433

Update text related to Intel CPU support and Apple hardware support.
Update copyrights

Submitted by: skreuzer
Approved by: re (hrs, delphij)

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

10 years agoMerge r258128 from head:
glebius [Fri, 22 Nov 2013 19:27:17 +0000 (19:27 +0000)]
Merge r258128 from head:
  Fix a very bad typo from r248887.

Approved by: re (kib)

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

10 years agoMerge r258122 from head:
glebius [Fri, 22 Nov 2013 19:26:52 +0000 (19:26 +0000)]
Merge r258122 from head:
  Emphasize that pf(4) in FreeBSD doesn't match pf(4) in
  OpenBSD 4.5, but is derived from it, and got some
  important local changes.

Approved by: re (kib)

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

10 years agoMerge r256769 by des from head:
glebius [Fri, 22 Nov 2013 19:26:04 +0000 (19:26 +0000)]
Merge r256769 by des from head:
  Last few remnants of BIND (hopefully...)

Approved by: re (kib)

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

10 years agoMFC r258318:
tijl [Fri, 22 Nov 2013 12:51:55 +0000 (12:51 +0000)]
MFC r258318:

Also delete lib32 libiconv.

Reported by: Tomoaki AOKI <junchoon@dec.sakura.ne.jp>

MFC r258345:

One more BIND remnant: /etc/mtree/BIND.chroot.dist

Discussed with: des

Approved by: re (kib)

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

10 years agoMFC r258155
davidcs [Fri, 22 Nov 2013 00:26:21 +0000 (00:26 +0000)]
MFC r258155
ql_hw.[c,h]: set minimum thresholds on pkt size for lro path.
ql_ioctl.c: validate the length and address of buffer passed to QL_RD_FW_DUMP
MFC r258156
qls_ioctl.c: Validate the buffer and its length passed to QLA_MPI_DUMP.
             copyout dump only if qls_mpi_core_dump() is successful.
(like to credit x90c for pointing the issue)

Approved by: re (delphij)

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

10 years agoMFC r256556:
tuexen [Thu, 21 Nov 2013 23:00:09 +0000 (23:00 +0000)]
MFC r256556:
Remove a buggy comparision when setting manually the path MTU.
After fixing, the comparision would have become redundant.
Thanks to Andrew Galante for reporting the issue.

MFC r257272:
Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined.
The issue was reported by Andrew Galante.

MFC r257274:
Fix the value of *optlen when calling getsockopt() for
SCTP_REMOTE_UDP_ENCAPS_PORT.
This issue was reported by Andrew Galante.

MFC r257359:
Terminate a debug output with a \n.

MFC r257555:
Changes from upstream to improve compilation when INET or INET6
or none of them is defined.

MFC r257574:
Unlock the lock before destroying it.
This issue was reported by Andrew Galante.

MFC r257800:
Use htons()/ntohs() appropriately.
These issues were reported by Andrew Galante.

MFC r257803:
Make sure that we don't try to build an ASCONF-ACK chunk
larger than what fits in the the mbuf cluster.
This issue was reported by Andrew Galante.

MFC r257804:
Get rid of the artification limitation enforced by
SCTP_AUTH_RANDOM_SIZE_MAX.
This was suggested by Andrew Galante.

MFC r258221:
Cleanups which result in fixes which have been made upstream
and where partially suggested by Andrew Galante.
There is no functional change in FreeBSD.

MFC r258224:
When determining if an address belongs to an stcb, take the address family
into account for wildcard bound endpoints.

MFC r258228:
Remove a stray write operation.

MFC r258235:
Use SCTP_PR_SCTP_TTL when the user provides a positive
timetolive in sctp_sendmsg().

Approved by: re@

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

10 years agoMFC Revisions:
dteske [Thu, 21 Nov 2013 03:40:52 +0000 (03:40 +0000)]
MFC Revisions:
256549: man-page updates
256551: .Dd bump in manpage
256553: bootenv -> ROOT fix
257842: monster list of fixes
257843: minor touchup
257844: copy install log
257845: fixup to last
257872: mdoc fixup
257939: debug check
258021: MBR bootcode fixup

Reviewed by: many
Discussed on: -current
Approved by: re (hrs)

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

10 years agoMFC r257755-257756,257780-257785,257787-257793, and
dteske [Thu, 21 Nov 2013 03:38:47 +0000 (03:38 +0000)]
MFC r257755-257756,257780-257785,257787-257793, and
257795,257817,257819,257937-257938,258029,258263-258267:
257755: SRV records
257756: fix spurious error message
257780: Whitespace
257781: Comments and funny syntax
257782: Debug file truncation is optional
257783: f_show_err for debugging
257784: f_eval_catch for debugging
257785: fix size calculations bug
257787: fix broken HTTP "any" media type
257788: more debugging
257789: Comments
257790: fix printf usage bug
257791: f_[v]sprintf added
257792: Comments
257793: fix off-by-one error in size calcs
257795: Replace pkg-tools with pkgng
257817: fix cosmetic typos
257819: Use `pkg -vv' to get ABI
257937: Adjustment to last
257938: Adjustment to last
258029: Comments
258263: Shuffle code around
258264: Remove unused code
258265: Debugging. Use f_eval_catch with pkg
258266: Shutdown media on exit from packages
258267: Fix pkg install from DVD

Reviewed by: many
Discussed on: -current
Approved by: re (hrs)

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

10 years agoMFC r258305, r258307, r258308, r258309, r258310, r258314, r258317,
gjb [Thu, 21 Nov 2013 02:45:36 +0000 (02:45 +0000)]
MFC r258305, r258307, r258308, r258309, r258310, r258314, r258317,
r258319, r258320:

r258305:
  Use the IMAGES variable to determine which image files to remove
  as part of 'make -C /usr/src/release clean'.

r258307:
  Add a script and configuration files to fetch pre-built packages
  from pkg.FreeBSD.org for inclusion on release medium (dvd1.iso).

r258308:
  Unconditionally copy the build host /etc/resolv.conf into
  the chroot directory, since hostname resolution may be
  needed in the case of building a dvd image (with packages)
  and also setting 'NOPORTS=1'.

r258309:
  Set the PKG_CACHEDIR directory to 'dvd/' instead of 'release/'
  in preparation of adding a 'dvd1.iso' target.

r258310:
  Add the 'dvd1.iso' target.  This mimics the 'release.iso' target,
  with the additional step of fetching packages for inclusion on the
  dvd image.

  The 'pkg-stage' target is used to run 'scripts/pkg-stage.sh' if
  the '${TARGET}/pkg-stage.conf' configuration file exists (currently
  only amd64 and i386).

  Allow dvd1.iso to be skipped if NODVD=1.

r258314:
  Fix how ABI is evaluated so it matches more than a dot-zero
  case.

r258317:
  Document the 'dvdrom' target.

r258319:
  Remove WITHOUT_PROFILE=1 for the dvd1.iso medium.

r258320:
  Simplify PKG_ABI for pkg-stage.sh.

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

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

10 years agoMFC r258283 - move iconv* symbols out of libc.so.7 namespace with
peter [Wed, 20 Nov 2013 20:24:59 +0000 (20:24 +0000)]
MFC r258283 - move iconv* symbols out of libc.so.7 namespace with
compatibility symbols to aid transition for existing 10.x installs.

Approved by: re (kib)

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

10 years agoMFC r258254 - teach iconv about a WCHAR_T pseudo-type
peter [Wed, 20 Nov 2013 18:58:07 +0000 (18:58 +0000)]
MFC r258254 - teach iconv about a WCHAR_T pseudo-type

Approved by: re (kib)

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

10 years agoMFC r256557: add uname flags to access userland's __FreeBSD_version more
peter [Wed, 20 Nov 2013 17:46:23 +0000 (17:46 +0000)]
MFC r256557: add uname flags to access userland's __FreeBSD_version more
conveniently than the traditional way of scripts parsing #include files.

Approved by: re (hrs)

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

10 years agoMFC: 257695
oleg [Tue, 19 Nov 2013 14:24:25 +0000 (14:24 +0000)]
MFC: 257695

- Fix link loss on vlan reconfiguration.
- Fix issues with 'vlanhwfilter'.

Approved by: re (glebius)

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

10 years agoMFH (r257954): upgrade to OpenSSH 6.4p1
des [Tue, 19 Nov 2013 11:47:30 +0000 (11:47 +0000)]
MFH (r257954): upgrade to OpenSSH 6.4p1

Approved by: re (kib)

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

10 years agoMFC r257874:
pluknet [Tue, 19 Nov 2013 10:39:48 +0000 (10:39 +0000)]
MFC r257874:

Fix extattr(2) MLINKS.

Approved by: re (kib)

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

10 years agoPre-zero the MAC context.
des [Tue, 19 Nov 2013 09:35:20 +0000 (09:35 +0000)]
Pre-zero the MAC context.

Security: CVE-2013-4548
Security: FreeBSD-SA-13:14.openssh
Approved by: re (implicit)

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

10 years agoMFC r258148,r258149,r258150,r258152,r258153,r258154,r258181,r258182:
pjd [Mon, 18 Nov 2013 22:37:01 +0000 (22:37 +0000)]
MFC r258148,r258149,r258150,r258152,r258153,r258154,r258181,r258182:

r258148:

Add a note that this file is compiled as part of the kernel and libc.

Requested by: kib

r258149:

Change cap_rights_merge(3) and cap_rights_remove(3) to return pointer
to the destination cap_rights_t structure.

This already matches manual page.

r258150:

Sync return value with actual implementation.

r258151:

Style.

r258152:

Precisely document capability rights here too (they are already documented
in rights(4)).

r258153:

The CAP_LINKAT, CAP_MKDIRAT, CAP_MKFIFOAT, CAP_MKNODAT, CAP_RENAMEAT,
CAP_SYMLINKAT and CAP_UNLINKAT capability rights make no sense without
the CAP_LOOKUP right, so include this rights.

r258154:

- Move CAP_EXTATTR_* and CAP_ACL_* rights to index 1 to have more room
  in index 0 for the future.
- Move CAP_BINDAT and CAP_CONNECTAT rights to index 0 so we can include
  CAP_LOOKUP right in them.
- Shuffle the bits around so there are no gaps. This is last chance to do
  that as all moved rights are not used yet.

r258181:

Replace CAP_POLL_EVENT and CAP_POST_EVENT capability rights (which I had
a very hard time to fully understand) with much more intuitive rights:

CAP_EVENT - when set on descriptor, the descriptor can be monitored
with syscalls like select(2), poll(2), kevent(2).

CAP_KQUEUE_EVENT - When set on a kqueue descriptor, the kevent(2)
syscall can be called on this kqueue to with the eventlist
argument set to non-NULL value; in other words the given
kqueue descriptor can be used to monitor other descriptors.
CAP_KQUEUE_CHANGE - When set on a kqueue descriptor, the kevent(2)
syscall can be called on this kqueue to with the changelist
argument set to non-NULL value; in other words it allows to
modify events monitored with the given kqueue descriptor.

Add alias CAP_KQUEUE, which allows for both CAP_KQUEUE_EVENT and
CAP_KQUEUE_CHANGE.

Add backward compatibility define CAP_POLL_EVENT which is equal to CAP_EVENT.

r258182:

Correct right names.

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

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

10 years agoMFC r258016:
dim [Mon, 18 Nov 2013 15:13:58 +0000 (15:13 +0000)]
MFC r258016:

Disable building the ctl module for the i386 XEN kernel configuration
for now, since it causes gcc warnings about casting 64 bit bus_addr_t's
to 32 bit pointers, and vice versa.

Reviewed by: ken
Approved by: re (gjb)

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

10 years agoMFC 257636:
hrs [Mon, 18 Nov 2013 04:42:58 +0000 (04:42 +0000)]
MFC 257636:

Fix EUC ESDB and JIS CS-mapper.

Approved by: re (delphij)

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

10 years agoMFC: 258276
alfred [Sun, 17 Nov 2013 22:24:34 +0000 (22:24 +0000)]
MFC:  258276

Fix creating a vlan over lagg over mlxen crash.

PR:             181931
Submitted by:   Shahar Klein (shahark mellanox.com)

Approved by: re

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

10 years agoMFC r258101:
gjb [Sun, 17 Nov 2013 15:58:13 +0000 (15:58 +0000)]
MFC r258101:
  Since the doc/ toolchain conversion to docbook 5.0, JADETEX
  is no longer a valid option, so remove 'WITHOUT_JADETEX=yes'
  from PBUILD_FLAGS.

  While here, also remove 'WITHOUT_X11=yes', since it will
  cause a dependency conflict by requiring both print/ghostscript9
  and print/ghostscript9-nox11.

  Switch to OPTIONSNG format (WITHOUT_* -> OPTIONS_UNSET='FOO'),
  and unset the FOP option, which requires Java (although it is
  disabled by default).  Also unset the 'IGOR' option, since
  textproc/igor is a validation tool, not necessarily a dependency
  of the doc/ build itself.

  While here, reduce the line length of PBUILD_FLAGS.

Approved by: re (kib)

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: 257542
alfred [Sun, 17 Nov 2013 01:07:46 +0000 (01:07 +0000)]
MFC: 257542

Fix API mismatch exposed by lagg.

When destroying a lagg the driver tries to restore the old mac and
fails due to API mismatch.

Submitted by:   Shahar Klein (shahark at mellanox.com)
Approved by:     re

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

10 years agoMFC r257999 (peter):
gjb [Sat, 16 Nov 2013 19:22:13 +0000 (19:22 +0000)]
MFC r257999 (peter):
 Merge nvi-2.1.1 -> 2.1.2

Approved by: re (???)

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257583, r258012, r258013:
gjb [Sat, 16 Nov 2013 18:40:44 +0000 (18:40 +0000)]
MFC r257583, r258012, r258013:

 r257583 (peter):
 Remove the WITH_LIBICONV_COMPAT hack that seems to do more harm
 than good.  This caused libc to spoof the ports libiconv namespace
 and provide a colliding libiconv.so.3 to fool rtld.  This should
 have been removed some time ago.

 r258012:
 Remove WITH_LIBICONV_COMPAT file to chase after r257583.

 r258013:
 Regenerate src.conf.5 after removal of WITH_LIBICONV_COMPAT.

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

Sponsored by: The FreeBSD Foundation

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

10 years agoMFC r257757:
jmg [Sat, 16 Nov 2013 09:01:24 +0000 (09:01 +0000)]
MFC r257757:
fix issues w/ AES-NI on unaligned data blocks...

Approved by: re (kib)

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

10 years agoMerge r258187 from head.
edavis [Sat, 16 Nov 2013 00:31:32 +0000 (00:31 +0000)]
Merge r258187 from head.

Approved by: re@ (delphij)
Approved by: davidch (mentor)

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

10 years agoMFC r257856:
kib [Fri, 15 Nov 2013 07:10:42 +0000 (07:10 +0000)]
MFC r257856:
Add bits for the AMD features from CPUID function 0x80000001 ECX,
described in the rev. 3.0 of the Kabini BKDG, document 48751.pdf.

Approved by: re (gjb)

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

10 years agoMFC r257858:
kib [Fri, 15 Nov 2013 07:09:24 +0000 (07:09 +0000)]
MFC r257858:
Fix signal delivery for the iBCS2 binaries.

Approved by: re (gjb)

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

10 years agoMFC r257917:
trasz [Thu, 14 Nov 2013 13:33:22 +0000 (13:33 +0000)]
MFC r257917:

Fix typo in "iscsictl -v".

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

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

10 years agoFix typo.
trasz [Thu, 14 Nov 2013 12:14:27 +0000 (12:14 +0000)]
Fix typo.

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

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

10 years agoMerge r257996,r258001,r258069 from head: fixes for HyperV guest.
pluknet [Thu, 14 Nov 2013 09:33:54 +0000 (09:33 +0000)]
Merge r257996,r258001,r258069 from head: fixes for HyperV guest.

- Set description string for VM_GUEST_HV (HyperV guest).
- Add a brief comment about VM_GUEST and vm_guest_sysctl_names relationship.
- CTASSERT that vm_guest range is covered by vm_guest_sysctl_names.

Approved by: re (glebius)

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

10 years agoMerge r257945 from head:
glebius [Thu, 14 Nov 2013 09:26:52 +0000 (09:26 +0000)]
Merge r257945 from head:

  Do not use just freed memory.

Approved by: re (kib)

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

10 years agoMerge r257888, r258049 from head:
glebius [Thu, 14 Nov 2013 09:25:29 +0000 (09:25 +0000)]
Merge r257888, r258049 from head:

  - Use system libiconv, instead of trying to dlopen() it.
  - Just disable recoding support in libsmb if built WITHOUT_ICONV.

PR: 183153
Approved by: re (kib)

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

10 years agoMerge r257841 from head:
glebius [Thu, 14 Nov 2013 09:19:50 +0000 (09:19 +0000)]
Merge r257841 from head:

  Catch up with sb_timeo type change in r255138. This fixes
  smbfs operation.

PR: kern/182963
Approved by: re (kib)

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

10 years agoMerge r257694 from head:
glebius [Thu, 14 Nov 2013 09:14:33 +0000 (09:14 +0000)]
Merge r257694 from head:

  Remove remnants of BIND from /etc, since there is no BIND in base now.

  Sorry, that would break users running head and BIND from ports, since
  ports rely on these scripts. The ports will be fixed soon.

Approved by: re (kib)

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

10 years agoMerge r257421 from head:
glebius [Thu, 14 Nov 2013 09:11:54 +0000 (09:11 +0000)]
Merge r257421 from head:

  Provide a crutch that prevents watchdog to interrupt dumping
  on a box with IPMI enabled.

Approved by: re (kib)

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

10 years agoMFC r257870:
dumbbell [Tue, 12 Nov 2013 20:00:51 +0000 (20:00 +0000)]
MFC r257870:

drm/radeon: Wake up userland after page flip

For instance, this caused issues in KDE, such as stuttered animations
(with desktop effects enabled).

Approved by: re (kib)

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

10 years agoMFC r257869:
dumbbell [Tue, 12 Nov 2013 19:10:28 +0000 (19:10 +0000)]
MFC r257869:

drm: Initialize "handle" to 0 before calling drm_gem_handle_create()

This is variable is being checked in drm_gem_name_create() before being
set.

Approved by: re (delphij)

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

10 years agoMFC r257680:
kib [Tue, 12 Nov 2013 08:01:58 +0000 (08:01 +0000)]
MFC r257680:
Do not coalesce if the swap object belongs to tmpfs vnode.

Approved by: re (glebius)

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

10 years agoMFC r257859:
dim [Mon, 11 Nov 2013 20:57:04 +0000 (20:57 +0000)]
MFC r257859:

Fix typo in include guard, found by clang 3.4.

Approved by: re (hrs)

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

10 years agoMFC: r257287
brueffer [Mon, 11 Nov 2013 14:08:25 +0000 (14:08 +0000)]
MFC: r257287

New sentence -> new line and some mdoc cleanup.

Approved by: re (glebius)

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

10 years agoMFC: r257288
brueffer [Mon, 11 Nov 2013 14:04:26 +0000 (14:04 +0000)]
MFC: r257288

Clean up a spurious "." in SEE ALSO.

Approved by: re (glebius)

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

10 years agoMFC r257084:
ae [Mon, 11 Nov 2013 10:43:39 +0000 (10:43 +0000)]
MFC r257084:
  Initialize inc_fibnum for properly handling ICMP6_PACKET_TOO_BIG
  errors in multifib environment.

  PR: 183265
Approved by: re (hrs)

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

10 years agoMFC r256689:
ae [Mon, 11 Nov 2013 09:47:51 +0000 (09:47 +0000)]
MFC r256689:
  Use the same actor key for media types of the same speed.

  PR: 176097

MFC r256832:
  Add a note that lacp_compose_key() should be updated, when new media
  types will be added.

  Submitted by: melifaro

Approved by: re (hrs)

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

10 years agoMFC r257749:
gjb [Sat, 9 Nov 2013 00:59:31 +0000 (00:59 +0000)]
MFC r257749:
  Switch to using pkg(8) for the doc install in bsdinstall(8).
  This also bootstraps the system with pkg(8) for future use.

Approved by: re (delphij)
PR: 183488
Sponsored by: The FreeBSD Foundation

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

10 years agoMFC: r257862, r257863, r257864
alfred [Fri, 8 Nov 2013 22:29:07 +0000 (22:29 +0000)]
MFC: r257862, r257863, r257864

r257862:

Use explicit long cast to avoid overflow in bitopts.

This was causing problems with the buddy allocator inside of
ofed.

r257863:

Fix for bad performance when mtu is increased.

Update the auto moderation behavior in the mlxen driver to match
the new LINUX OFED code.

r257864:

Do not use a sleep lock when protecting the driver flags.

This was causing a locking issue with lagg.

Approved by: re

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

10 years agoMFC r257801 (gabor):
gjb [Thu, 7 Nov 2013 21:08:12 +0000 (21:08 +0000)]
MFC r257801 (gabor):
 - Syncronize stable/10/release/doc with head/ in followup to
   the docbook5.0 update to the doc/ repository.

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

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

10 years agoMFC r257668:
bdrewery [Thu, 7 Nov 2013 15:43:41 +0000 (15:43 +0000)]
MFC r257668:

  Use proper capitalization for FreeBSD.org

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257667:
bdrewery [Thu, 7 Nov 2013 11:21:08 +0000 (11:21 +0000)]
MFC r257667:

  Enable fingerprint checking as the currently known
  fingerprint has an uploaded signature on all mirrors.

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257641:
gjb [Thu, 7 Nov 2013 04:13:27 +0000 (04:13 +0000)]
MFC r257641:
 When building the textproc/docproj port, the ports-mgmt/pkg port
 needs /var/run/ld-elf*.so.hints, which is not automatically created.

 Fix reldoc build by running the ldconfig(8) startup script in the
 chroot directory before starting the port build phase.

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

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

10 years agoMerge r257633:
pjd [Wed, 6 Nov 2013 23:59:19 +0000 (23:59 +0000)]
Merge r257633:

- Add manual pages for capability rights (rights(4)), cap_rights_init(3)
  family of functions and cap_rights_get(3) function.
- Update remaining Capsicum-related manual pages.

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

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

10 years agoRegenerate src.conf(5) after r257573
bdrewery [Wed, 6 Nov 2013 11:42:45 +0000 (11:42 +0000)]
Regenerate src.conf(5) after r257573

Direct commit to stable/10 with no mergeinfo as the head
change to regenerate src.conf(5) for this was missed after
r257440 until r257444 which brought in unrelated changes.

Discussed with: gjb
Approved by: re (gjb, implicit)

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

10 years agoMFC r257539:
delphij [Tue, 5 Nov 2013 19:58:40 +0000 (19:58 +0000)]
MFC r257539:

When zero'ing out a buffer, make sure we are using right size.

Without this change, in the worst but unlikely case scenario, certain
administrative operations, including change of configuration, set or
delete key from a GEOM ELI provider, may leave potentially sensitive
information in buffer allocated from kernel memory.

We believe that it is not possible to actively exploit these issues, nor
does it impact the security of normal usage of GEOM ELI providers when
these operations are not performed after system boot.

Security: possible sensitive information disclosure
Submitted by: Clement Lecigne <clecigne google com>
Approved by: re (glebius)

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

10 years agoMFC r257534:
jimharris [Tue, 5 Nov 2013 15:54:52 +0000 (15:54 +0000)]
MFC r257534:

Create a unique unit number for each controller and namespace cdev.

Sponsored by: Intel
Approved by: re (glebius)

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

10 years agoMFC r257531:
jimharris [Tue, 5 Nov 2013 15:52:38 +0000 (15:52 +0000)]
MFC r257531:

Do not exit with error status after printing data for perftest.

Sponsored by: Intel
Approved by: re (glebius)

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

10 years agoMFC of 257681
edwin [Tue, 5 Nov 2013 10:58:38 +0000 (10:58 +0000)]
MFC of 257681

tzdata2013f
- Jordan goes to winter time on the last Friday in October.
- Tocantins in Brazil will not go into summer time in October.
- Indonesian time zones renames.
- Lots of cleanups in with regarding to links and historical data.

tzdata2013h
- Libya didn't go back to DST.
- Fix Morocco 2038 issue.
- Brazil/Acre and ?Western Amazonas are chaning timezones.

Approved by: re (Gleb)

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

10 years agoMFC r257490:
yongari [Tue, 5 Nov 2013 06:48:12 +0000 (06:48 +0000)]
MFC r257490:
  Perform media change after setting IFF_DRV_RUNNING flag. Without it,
  driver would ignore the first link state update if controller
  already established a link.
Approved by: re (glebius)

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

10 years agoMFC r257234:
markj [Tue, 5 Nov 2013 04:40:28 +0000 (04:40 +0000)]
MFC r257234:
With r247602, the "c" flag is no longer printed as a file descriptor flag.

Approved by: re (gjb)

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

10 years agoMFC r257530
brooks [Mon, 4 Nov 2013 23:36:49 +0000 (23:36 +0000)]
MFC r257530

Reimplement r257525 such that it work with the historic FreeBSD make
implementation.  This fixes the toolchain and kernel-toolchain targets
when building from older FreeBSD versions where make is fmake.

Sponsored by: DARPA/AFRL
Approved by: re (glebius)

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

10 years agoMFC r257505:
bdrewery [Mon, 4 Nov 2013 13:01:29 +0000 (13:01 +0000)]
MFC r257505:

  Add -f support to 'pkg bootstrap' and 'pkg add' to force installation
  of pkg(8) even if already installed.

  This is useful if you somehow messup pkg(8) and need to reinstall from
  remote with it already being registered in the pkg(8) /var/db/pkg database.

  Also add some sanity checks to 'pkg add'.

Approved by: bapt
Approved by: re (glebius)

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

10 years agoMFC r257307:
yongari [Mon, 4 Nov 2013 08:46:50 +0000 (08:46 +0000)]
MFC r257307:
  Fix regression introduced in r235816.
  r235816 triggered kernel panic or hang after warm boot.
  Don't blindly restore BCE_EMAC_MODE media configuration in
  bce_reset().  If driver is about to shutdown it will invoke
  bce_reset() which in turn results in restoring BCE_EMAC_MODE
  media configuration.  This operation seems to confuse controller
  firmware.
Approved by: re (glebius)

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

10 years agoMFC r257306:
yongari [Mon, 4 Nov 2013 05:58:59 +0000 (05:58 +0000)]
MFC r257306:
  Add preliminary support for RTL8168EP.
Approved by: re (delphij)

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

10 years agoMFC r257305:
yongari [Mon, 4 Nov 2013 05:56:02 +0000 (05:56 +0000)]
MFC r257305:
  Add preliminary support for RTL8168G, RTL8168GU and RTL8411B.
  RTL8168GU has two variants(GMII and MII) but it uses the same chip
  revision id.  Driver checks PCI device id of controller and
  sets internal capability flag(i.e. jumbo frame and link speed down
  in WOL).
Approved by: re (delphij)

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

10 years agoMFC r257304:
yongari [Mon, 4 Nov 2013 05:52:33 +0000 (05:52 +0000)]
MFC r257304:
  Add support for new Gigabit PHY of RealTek.
  I don't have a copy of data sheet so I'm not sure exact PHY model
  name. Vendor's web page indicates RTL8251 is latest PHY so I used
  the name. This PHY is used with RTL8168G, RTL8168GU and RTL8411B.
Approved by: re (delphij)

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

10 years agoMFC r256828:
yongari [Mon, 4 Nov 2013 05:48:12 +0000 (05:48 +0000)]
MFC r256828:
  Add preliminary support for RTL8106E PCIe FastEthernet.
Approved by: re (delphij)

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

10 years agor256827:
yongari [Mon, 4 Nov 2013 05:43:32 +0000 (05:43 +0000)]
r256827:
  Correct MAC revision bits. Previously it always cleared bit 20 and
  bit 21.
Approved by: re (delphij)

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

10 years agoUpdate stable/10 to BETA3 as part of the 10.0-RELEASE cycle.
gjb [Sun, 3 Nov 2013 17:19:17 +0000 (17:19 +0000)]
Update stable/10 to BETA3 as part of the 10.0-RELEASE cycle.

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

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

10 years agoMFC r257214:
kib [Sun, 3 Nov 2013 16:04:36 +0000 (16:04 +0000)]
MFC r257214:
Inform about the kdb re-entry.

Approved by: re (gjb)

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

10 years agoMFC r257216:
kib [Sun, 3 Nov 2013 16:03:19 +0000 (16:03 +0000)]
MFC r257216:
Several small fixes for the amd64 minidump code.

Approved by: re (gjb)

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

10 years agoMFC r257378,r257400,r257402,r257440:
bdrewery [Sun, 3 Nov 2013 13:06:43 +0000 (13:06 +0000)]
MFC r257378,r257400,r257402,r257440:

  Add a pkg(7) manpage for bootstrap

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257344,r257403:
bdrewery [Sun, 3 Nov 2013 13:00:12 +0000 (13:00 +0000)]
MFC r257344,r257403:

  Move /etc/keys to /usr/share/keys where users are less likely to modify them.

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257377:
bdrewery [Sun, 3 Nov 2013 12:58:14 +0000 (12:58 +0000)]
MFC r257377:

  Add a 'pkg bootstrap' command which will bootstrap pkg(8) without
  forwarding any command to it after installation.

Approved by: bapt
Approved by: re (gjb)

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

10 years agoMFC r257350:
delphij [Sun, 3 Nov 2013 07:31:54 +0000 (07:31 +0000)]
MFC r257350:

In r257079, SRCDIR is pointed to ${.CURDIR} when not set.  However,
Makefile.inc1 is being called in sub-make's where make(1) would,
by default, implicitly chdir(2) to ${.OBJDIR} before executing any
targets.  This would make some targets, like delete-old, when trying
to derive various variables introduced by change r256921 using
``make -f Makefile.inc1'' that also rely on SRCDIR to fail.

This changeset adds an explicit cd ${.CURDIR} before these unwrapped
make calls, making them in line with the other ones that are already
being wrapped with the explicit chdir's.

Approved by: re (hrs)

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

10 years agoMFC r257379:
trasz [Sat, 2 Nov 2013 02:38:32 +0000 (02:38 +0000)]
MFC r257379:

Rename '-h' option to '-p', and use "portal" instead of "host" or "address",
in order to be consistent with iSCSI terminology.  Besides, calling the
option '-h' was just wrong.

This changes usage for newly added iscsictl(8), and two newly added
subcommands to ctladm(8).  This breaks POLA between CURRENT and 10,
but since 10.0 has not been released yet, it's still ok to do.

MFC r257380:

Bump .Dd after r257379.

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

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

10 years agoMFC r256935
brooks [Fri, 1 Nov 2013 21:17:45 +0000 (21:17 +0000)]
MFC r256935

MFP4:
Change 228019 by bz@bz_zenith on 2013/04/23 13:55:30

Add kernel side support for large TLB on BERI/CHERI.
Modelled similar to NLM

Sponsored by: DAPRA/AFRL
Approved by: re (delphij)

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

10 years agoMFC r256912, r256931, r256977
brooks [Fri, 1 Nov 2013 21:15:39 +0000 (21:15 +0000)]
MFC r256912, r256931, r256977

Sync BERI kernel configs with P4:

Switch the majority of device configuration to FDT from hints.

Add BERI_*_BASE configs to reduce duplication in the MDROOT and SDROOT
kernels.

Add NFS and GSSAPI support by default.

Enable ATSE_CFI_HACK in BERI configs, stable MAC addresses are useful.

BERI_SIM.hint is no longer used, remove it.

Sponsored by: DARPA/AFRL
Approved by: re (delphij)

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

10 years agoMFC r256753
brooks [Fri, 1 Nov 2013 20:33:30 +0000 (20:33 +0000)]
MFC r256753

MFP4: 1136252

Add an option ATSE_CFI_HACK to allow memory mapped CFI devices to have
their address range allocated sharable so that atse(4) can find it's
Ethernet address in the expected location.

We intend to remove this hack once the BERI platform has a loader.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256934, r256963, r256972, r257017
brooks [Fri, 1 Nov 2013 20:30:19 +0000 (20:30 +0000)]
MFC r256934, r256963, r256972, r257017

MFP4:
Change 221534 by rwatson@rwatson_zenith_cl_cam_ac_uk on 2013/01/27
16:05:30

FreeBSD/mips stores page-table entries in a near-identical format
to MIPS TLB entries -- only it overrides certain "reserved" bits
in the MIPS-defined EntryLo register to hold software-defined bits
(swbits) to avoid significantly increasing the page table memory
footprint.  On n32 and n64, these bits were (a) colliding with
MIPS64r2 physical memory extensions and (b) being improperly
cleared.

Attempt to fix both of these problems by pushing swbits further
along 64-bit EntryLo registers into the reserved space, and
improving consistency between C-based and assembly-based clearing
of swbits -- in particular, to use the same definition.  This
should stop swbits from leaking into TLB entries -- while ignored
by most current MIPS hardware, this would cause a problem with
(much) larger physical memory sizes, and also leads to confusing
hardware-level tracing as physical addresses contain unexpected
(and inconsistent) higher bits.

Discussed with: imp, jmallett

Change 1187301 by brooks@brooks_zenith on 2013/10/23 14:40:10
Loop back the initial commit of 221534 to HEAD.  Correct its
implementation for mips32.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256911, r256936
brooks [Fri, 1 Nov 2013 20:28:13 +0000 (20:28 +0000)]
MFC r256911, r256936

MFP4: 223121 (PIC portion), 225861, 227822, 229692 (PIC only), 229693,
230523, 1123614

Implement a driver for Robert Norton's PIC as an FDT interrupt
controller.  Devices whose interrupt-parent property points to a beripic

device will have their interrupt allocation, activation, and setup
operations routed through the IC rather than down the traditional bus
hierarchy.

This driver largely abstracts the underlying CPU away allowing the
PIC to be implemented on CPU's other than BERI.  Due to insufficient
abstractions a small amount of MIPS specific code is currently required
in fdt_mips.c and to implement counters.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r257369:
delphij [Fri, 1 Nov 2013 17:39:59 +0000 (17:39 +0000)]
MFC r257369:

Don't reference pointer before testing whether it is
NULL.

Submitted by: Clement Lecigne <clecigne google com>
Reviewed by: grehan
Approved by: re (kib)

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

10 years agoMFC r257329 (nyan):
gjb [Fri, 1 Nov 2013 16:48:30 +0000 (16:48 +0000)]
MFC r257329 (nyan):
 Fix build, both clang and gcc are required on pc98.

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

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

10 years agoMFC r257361:
jlh [Fri, 1 Nov 2013 16:03:38 +0000 (16:03 +0000)]
MFC r257361:
  Fix compatibility function for old daily_status_security_${name}_enable
  variables.

  PR:           conf/183137

MFC r257364:
  Fix indentation.

Approved by: re (gjb)

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

10 years agoMFC r256540, r256544:
gjb [Fri, 1 Nov 2013 15:54:57 +0000 (15:54 +0000)]
MFC r256540, r256544:

 r256540 (dteske):
 Add loader.conf(5) entries to import bootpool after boot when
 using full-disk encryption and ZFS.

 r256544 (dteske):
 Fix loader.conf(5) entries from r256540.

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

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

10 years agoMFC r257072:
kib [Fri, 1 Nov 2013 06:33:17 +0000 (06:33 +0000)]
MFC r257072:
Make pci_get_dma_tag() non-static.

Approved by: re (glebius)

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

10 years agoMFC r257071:
kib [Fri, 1 Nov 2013 06:32:16 +0000 (06:32 +0000)]
MFC r257071:
Add some definitions for the bits in root control and status PCIe cap
registers.

Approved by: re (glebius)

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

10 years agoMFC r257070:
kib [Fri, 1 Nov 2013 06:31:02 +0000 (06:31 +0000)]
MFC r257070:
Move the PCI_DMA_BOUNDARY definition into the pcivar.h.

Approved by: re (glebius)

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

10 years agoMFC r257069:
kib [Fri, 1 Nov 2013 06:29:38 +0000 (06:29 +0000)]
MFC r257069:
Add ddb 'show ioapic' and 'show all ioapics' commands.

Approved by: re (glebius)

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

10 years agoMFC r256670:
kib [Fri, 1 Nov 2013 06:26:37 +0000 (06:26 +0000)]
MFC r256670:
Rewrite RDRAND support:
Remove the excessive memory accesses to temporary buffer.
Streamline the assembly and unify it between i386 and amd64.

Approved by: re (glebius)

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

10 years agoMFC r257154:
trociny [Thu, 31 Oct 2013 20:30:26 +0000 (20:30 +0000)]
MFC r257154:

Merging local and remote bitmaps must be protected by hr_amp lock.

This is believed to fix hastd crashes, which might occur during
synchronization, triggered by the failed assertion:

 Assertion failed: (amp->am_memtab[ext] > 0),
 function activemap_write_complete, file activemap.c, line 351.

Approved by: re (glebius)

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

10 years agoNotional MFC of r257139:
brooks [Thu, 31 Oct 2013 18:11:50 +0000 (18:11 +0000)]
Notional MFC of r257139:

Regerate after r257460 swapped the default to WITH_NMTREE.

Approved by: re (gjb)

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

10 years agoMFC r257138:
brooks [Thu, 31 Oct 2013 18:06:32 +0000 (18:06 +0000)]
MFC r257138:

Switch the default mtree to nmtree our new NetBSD derived mtree.

Exp-runs by: bdrewery (ports/182438)
Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r257268:
brooks [Thu, 31 Oct 2013 17:56:27 +0000 (17:56 +0000)]
MFC r257268:

Enable the --sysroot=/foo option in ld by always building with a sysroot
defined. When not building as a cross linker, the sysroot is set to "/".

Exp-run by: bdrewery (ports/183206)
Approved by: re (gjb)

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

10 years agoMFC r256861:
brooks [Thu, 31 Oct 2013 16:18:36 +0000 (16:18 +0000)]
MFC r256861:

MFP4: 223121 (FDT infrastructure portion)

Implement support for interrupt-parent nodes in simplebus.  The current
implementation requires that device declarations have an interrupt-parent
node and that it point to a device that has registered itself as a
interrupt controller in fdt_ic_list_head and implements the fdt_ic
interface.

Sponsored by:   DARPA/AFRL
Approved by:    re (gjb)

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

10 years agoMFC r256865
brooks [Thu, 31 Oct 2013 16:16:52 +0000 (16:16 +0000)]
MFC r256865

Remove the isf(4) driver.  It was created by accident and is subset of
the cfi(4) driver.  It remained in the tree longer than would be ideal
due to the time required to bring cfi(4) to feature parity.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoNotional MFC of r257057:
brooks [Thu, 31 Oct 2013 14:11:14 +0000 (14:11 +0000)]
Notional MFC of r257057:

Regen documentation post r257449:

Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC.  This allows
bootstrapping a copy of clang without building clang for the base system
which is useful for nanobsd and similar setups.  It's still probably
wrong to conflate what is installed as /usr/bin/cc with the selection
of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another
day.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256915
brooks [Thu, 31 Oct 2013 14:07:00 +0000 (14:07 +0000)]
MFC r256915

Stop conflating WITHOUT_CLANG with WITHOUT_CLANG_IS_CC.  This allows
bootstrapping a copy of clang without building clang for the base system

which is useful for nanobsd and similar setups.  It's still probably
wrong to conflate what is installed as /usr/bin/cc with the selection
of a bootstrap compiler under WITH*_CLANG_IS_CC, but that's for another
day.

Sponsored by: DARPA/AFRL
Approved by: re (gjb)

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

10 years agoMFC r256752, r256946
brooks [Thu, 31 Oct 2013 13:54:55 +0000 (13:54 +0000)]
MFC r256752, r256946

MFP4: 221483, 221567, 221568, 221670, 221677, 221678, 221800, 221801,
221804, 221805, 222004, 222006, 222055, 222820, 11350771135118,
1136259

Add atse(4), a driver for the Altera Triple Speed Ethernet MegaCore.

The current driver support gigabit Ethernet speeds only and works with
the MegaCore only in the internal FIFO configuration in the soon to be
open sourced BERI CPU configuration.

MFP4: 1187103, 222076, 222057, 222051, 221799

Add atsectl, a simple utility to read and update MAC addresses stored in

the default flash location on Altera DE4 boards.  Typically used once
when setting up a board so leaving in tools rather than inflicting on
all users.

To build with world add LOCAL_DIRS=tools/tools/atsectl to the make
command line.

Submitted by: bz
Sponsored by: DARPA/AFRL
Approved by: re (glebius)

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

10 years agoMFC: r256743, r256744
brooks [Thu, 31 Oct 2013 13:47:39 +0000 (13:47 +0000)]
MFC: r256743, r256744
MFP4:
Change 227594 by brooks@brooks_zenith on 2013/04/11 17:10:14

When we fail, print the error that occurred if we are giving
up or if bootverbose is set.

MFP4 (driver change only):
Change 231100 by brooks@brooks_zenith on 2013/07/12 21:01:31

Add a new option ALTERA_SDCARD_FAST_SIM which checks immediately
for success of I/O operations rather than queuing a task.

Sponsored by:   DARPA/AFRL
Approved by: re (glebius)

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

10 years agoMFC r257221:
kib [Thu, 31 Oct 2013 10:12:25 +0000 (10:12 +0000)]
MFC r257221:
Fix typo.

Approved by: re (glebius)

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