]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/log
FreeBSD/stable/10.git
9 years agoMFC r275759:
dim [Wed, 17 Dec 2014 21:36:45 +0000 (21:36 +0000)]
MFC r275759:

Pull in r221170 from upstream clang trunk (by Roman Divacky):

  Implement vaarg lowering for ppc32. Lowering of scalars and
  aggregates is supported. Complex numbers are not.

This adds va_args support for PowerPC (32 bit) to clang.

Reviewed by: jhibbits
Differential Revision: https://reviews.freebsd.org/D1308

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

9 years agoMFC r275852: MFV r275844:
delphij [Wed, 17 Dec 2014 06:58:00 +0000 (06:58 +0000)]
MFC r275852: MFV r275844:

Fix unbound remote denial of service vulnerability.

Security: FreeBSD-SA-14:30.unbound
Security: CVE-2014-8602
Approved by: so

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

9 years agoMFC 273053:
jhb [Tue, 16 Dec 2014 21:57:55 +0000 (21:57 +0000)]
MFC 273053:
Decode the arguments passed to _umtx_op().  In particular, decode the
opcode.

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

9 years agoMFC r275553, r275612;
pfg [Tue, 16 Dec 2014 21:13:55 +0000 (21:13 +0000)]
MFC r275553, r275612;

patch(1): Bring fixes from OpenBSD

Check fstat return value.  Use off_t for file size and offsets.
Avoid iterating over end of string.

Introduce strtolinenum to properly check line numbers while parsing:
no signs, no spaces, just digits, 0 <= x <= LONG_MAX

Properly validate line ranges supplied in diff file to prevent overflows.
Also fixes an out of boundary memory access because the resulting values
are used as array indices.

PR: 195436
Obtained from: OpenBSD

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

9 years agoMFC r275531, r275581, r275582;
pfg [Tue, 16 Dec 2014 21:05:28 +0000 (21:05 +0000)]
MFC r275531, r275581, r275582;

patch(1): Small changes to sync with OpenBSD

Update OpenBSD CVS revision tag for our r255232.
Prefer setvbuf() to setlinebuf().
Small space changes, mostly to keep in sync with OpenBSD

Obtained from: OpenBSD

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

9 years agoMFC 271635,271722:
jhb [Tue, 16 Dec 2014 20:05:10 +0000 (20:05 +0000)]
MFC 271635,271722:
- Only the manpage updates from 271635 are merged to give additional
  heads up for the stricter checks in 11, but the kernel in 10 remains
  permissive.
  - Fail with EINVAL if an invalid protection mask is passed to mmap().
  - Fail with EINVAL if an unknown flag is passed to mmap().
  - Fail with EINVAL if both MAP_PRIVATE and MAP_SHARED are passed to
    mmap().
  - Require one of either MAP_PRIVATE or MAP_SHARED for non-anonymous
    mappings.
- Remove mention of MAP_INHERIT.  It hasn't been implemented for thirteen
  years.
- Remove mention of unimplemented MAP_SWAP.  There are no future plans to
  implement it.

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

9 years agoMFC 272897:
jhb [Tue, 16 Dec 2014 19:45:56 +0000 (19:45 +0000)]
MFC 272897:
Various fixes to stats:
- Read the counts of received, dropped, and transmitted management
  packets and add sysctl nodes for them.
- Fix the total octets received/transmitted to read all 64 bits of
  the counters.
- Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot.
- Remove spurious spaces.

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

9 years agoMFC r275645;
pfg [Tue, 16 Dec 2014 18:45:31 +0000 (18:45 +0000)]
MFC r275645;

ext2fs: Fix old out-of-bounds access.

Overrunning buffer pointed to by (caddr_t)&oip->i_db[0] of 48 bytes by
passing it to a function which accesses it at byte offset 59 using
argument 60UL.

The issue was inherited from an older FFS implementation and
fixed there with by merging UFS2 in r98542. We follow the
FFS fix.

CID: 1007665
Discussed with: bde

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

9 years agoMFC r275394:
ae [Tue, 16 Dec 2014 11:53:45 +0000 (11:53 +0000)]
MFC r275394:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

Sponsored by: Yandex LLC

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

9 years agoMFC r275393:
ae [Tue, 16 Dec 2014 11:45:33 +0000 (11:45 +0000)]
MFC r275393:
  Remove unneded check. No need to do m_pullup to the size that we prepended.

MFC r275473:
  Fix style(9) and remove m_freem(NULL).
  Add XXX comment, it looks incorrect, because m_pkthdr.len is already
  incremented by M_PREPEND().

Sponsored by: Yandex LLC

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

9 years agoMFC r275575:
ae [Tue, 16 Dec 2014 11:24:07 +0000 (11:24 +0000)]
MFC r275575:
  key_getspacq() returns holding the spacq_lock. Unlock it in all cases.

Sponsored by: Yandex LLC

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

9 years agoCorrect to the stable/10 commit in UPDATING and specify the correct ports/UPDATING
sbruno [Mon, 15 Dec 2014 21:22:42 +0000 (21:22 +0000)]
Correct to the stable/10 commit in UPDATING and specify the correct ports/UPDATING
note.

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

9 years agoRevert r275778, gcc 4.2.1 doesn't handle -march=armv7.
andrew [Mon, 15 Dec 2014 18:13:03 +0000 (18:13 +0000)]
Revert r275778, gcc 4.2.1 doesn't handle -march=armv7.

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

9 years agoMFC r271982 and r271990 to support CentOS 6 ports.
sbruno [Mon, 15 Dec 2014 16:14:49 +0000 (16:14 +0000)]
MFC r271982 and r271990 to support CentOS 6 ports.

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

9 years agoMFC r275620:
kib [Mon, 15 Dec 2014 11:05:53 +0000 (11:05 +0000)]
MFC r275620:
Add functions syncer_suspend() and syncer_resume().

MFC r275637:
Remove local variable for real.

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

9 years agoMFC r275619:
kib [Mon, 15 Dec 2014 11:00:56 +0000 (11:00 +0000)]
MFC r275619:
Check for bo_bufobj->bo_object for NULL and cache the value in local
variable to avoid NULL dereference in getnewbuf_reuse_bp(). The vnode
owning the buffer is not locked there.

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

9 years agoMFC r275618:
kib [Mon, 15 Dec 2014 10:58:02 +0000 (10:58 +0000)]
MFC r275618:
Check for stop condition in nfsd threads.

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

9 years agoMFC r275617:
kib [Mon, 15 Dec 2014 10:50:26 +0000 (10:50 +0000)]
MFC r275617:
Do some refactoring and minor cleanups of the thread_single() code.

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

9 years agoMFC r275616:
kib [Mon, 15 Dec 2014 10:46:07 +0000 (10:46 +0000)]
MFC r275616:
Thread waiting for the vfork(2)-ed child to exec or exit, must allow
for the suspension.

MFC r275683 (by andreast):
Fix build for powerpc(32|64) kernels.

MFC r275686 (by andreast):
Fix kernel build for booke.

r275639 (by andrew) is not merged, since arm/arm/syscall.c is not
present on the stable/10 branch, and arm/arm/trap.c already includes
sys/kernel.h.

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

9 years agoMFC r275615:
kib [Mon, 15 Dec 2014 10:29:02 +0000 (10:29 +0000)]
MFC r275615:
When process is exiting, check for suspension regardless of
multithreaded status of the process.

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

9 years agoMFC r275606:
hselasky [Mon, 15 Dec 2014 08:35:07 +0000 (08:35 +0000)]
MFC r275606:
Add more U3G USB IDs.

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

9 years agoMFC r275624:
hselasky [Mon, 15 Dec 2014 08:26:36 +0000 (08:26 +0000)]
MFC r275624:
Add port routing support for Wildcat Point.

PR: 195793

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

9 years agoMFC 275379:
andrew [Sun, 14 Dec 2014 18:51:13 +0000 (18:51 +0000)]
MFC 275379:
Set the correct architecture when targeting ARMv7

Sponsored by: ABT Systems Ltd

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

9 years agoMFC r268576: sh: Correctly handle positional parameters beyond INT_MAX on
jilles [Sun, 14 Dec 2014 18:30:30 +0000 (18:30 +0000)]
MFC r268576: sh: Correctly handle positional parameters beyond INT_MAX on
64-bit systems.

Currently, there can be no more than INT_MAX positional parameters. Make
sure to treat all higher ones as unset to avoid incorrect results and
crashes.

On 64-bit systems, our atoi() takes the low 32 bits of the strtol() and
sign-extends them.

On 32-bit systems, the call to atoi() returned INT_MAX for too high values
and there is not enough address space for so many positional parameters, so
there was no issue.

PR: 195918

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

9 years agoMFC 275564:
andrew [Sun, 14 Dec 2014 18:28:01 +0000 (18:28 +0000)]
MFC 275564:

Use the unified syntax when generating assembly for clang. The clang 3.5
integrated assembler only accepts it.

Sponsored by: ABT Systems Ltd

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

9 years agoMFC 275378:
andrew [Sun, 14 Dec 2014 18:23:30 +0000 (18:23 +0000)]
MFC 275378:

Pull in the NetBSD global offset table handling code. Clang 3.5 creates
relocations the linker complains about.

Obtained from: NetBSD

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

9 years agoMFC 275337:
andrew [Sun, 14 Dec 2014 18:01:09 +0000 (18:01 +0000)]
MFC 275337:

There is no need to use FUNC_END with aeabi_ldiv0 or aeabi_idiv0 as they
are aliases.

Sponsored by: ABT Systems Ltd

MFC 275380:

Use the floating-point instruction on ARMv7 as the clang 3.5 integrated
assembler doesn't allow these two instructions to use co-processor 11.

Sponsored by: ABT Systems Ltd

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

9 years agoMFC 275415:
andrew [Sun, 14 Dec 2014 17:38:43 +0000 (17:38 +0000)]
MFC 275415:

Allow the UAL APSR_nzcv format for the mrc and mrc2 instructions. The clang
integrated assembler only allows these forms so binutils will need to
support them.

Sponsored by: ABT Systems Ltd

MFC 275584:

Fix mrc and mrc2 with APSR_nzcv. Binutils encodes it internally as 0 where
we need it to be set to 15 for it to be equivalent to r15.

Sponsored by: ABT Systems Ltd

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

9 years agoMFC 275336:
andrew [Sun, 14 Dec 2014 17:28:02 +0000 (17:28 +0000)]
MFC 275336:

Use llabs when getting the absolute value of a long long.

Sponsored by: ABT Ststems Ltd

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

9 years agoClean up our ARM assembly:
andrew [Sun, 14 Dec 2014 16:28:53 +0000 (16:28 +0000)]
Clean up our ARM assembly:

MFC 275256:

Switch to the ARM unified assembly language as the clang integrated as only
supports it. Binutils supports it when the ".syntax unified" directive
is set.

Sponsored by:   ABT Systems Ltd

MFC 275264:

Update _ENTRY to use _EENTRY to reduce the common code.

MFC 275321:

Remove extra labels, ENTRY_NP already provides them.

Sponsored by:   ABT Systems Ltd

MFC 275322:

Correctly a few incorrect uses of ENTRY/EENTRY and END/EEND

Sponsored by:   ABT Systems Ltd

MFC 275416:

Fix the name of the coprocessor to include the "p" prefix, the clang
integrated assembler expects this.

Sponsored by:   ABT Systems Ltd

MFC 275418:

Switch to unified syntax so these can be built with clang 3.5.

Sponsored by:   ABT Systems Ltd

MFC 275519:

Add missing END macros to some of the xscale functions.

Sponsored by:   ABT Systems Ltd

MFC 275520:

Use the unified syntax in a few more assembly files

Sponsored by:   ABT Systems Ltd

MFC 275521:

Set the alignment to 4-bytes after a string as clang 3.5 can switch to
thumb mode if this is incorrect.

Sponsored by:   ABT Systems Ltd

MFC 275522:

Place the literal pool after a RET otherwise clang 3.5 tries to put it too
far away from a ldr psuedo instruction. With this clang will place the
literal value here where it's close enough to be loaded.

Sponsored by:   ABT Systems Ltd

MFC 275523:

Switch to an armv6k cpu, without this clang 3.5 complains "bx lr" is
unsupported as it needs a newer cpu.

Sponsored by:   ABT Systems Ltd

MFC 275524:

Switch to a .cpu directive. These will work when clang 3.5 is imported
where the .arch directive is a nop.

Sponsored by:   ABT Systems Ltd

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

9 years agoMFC 275207:
andrew [Sun, 14 Dec 2014 15:41:56 +0000 (15:41 +0000)]
MFC 275207:

We don't use the hypervisor interrupt, make it optional in the device tree.

Submitted by:   Julien Grall <julien.grall AT linaro.org>

MFC 275208:

Some device tree configurations place the generic timer under the root
of the tree and not under simplebus. Update the driver to handle this.

Submitted by:   Julien Grall <julien.grall AT linaro.org>

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

9 years agoMFC 273927:
andrew [Sun, 14 Dec 2014 15:33:45 +0000 (15:33 +0000)]
MFC 273927:

Move the definitions of the fdt functions from a uboot header to a new fdt
header. There is nothing in the fdt spec that ties it to U-Boot.

While here sort and fix the signature of fdt_setup_fdtp.

MFC 273934:

Start to allow platforms other than U-Boot to use the FDT code in loader by
moving U-Boot specific code from libfdt.a to a new libuboot_fdt.a. This
needs to be a new library for linking to work correctly.

Differential Revision:  https://reviews.freebsd.org/D1054
Reviewed by:    ian, rpaulo (earlier version)

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

9 years agoMFC r273913:
andrew [Sun, 14 Dec 2014 15:03:11 +0000 (15:03 +0000)]
MFC r273913:

Clean up the types of a few strings to make them const when they are never
written to.

MFC r273914:

The command name is a constant, use the correct type.

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

9 years agoMFC r274495:
trasz [Sun, 14 Dec 2014 11:03:22 +0000 (11:03 +0000)]
MFC r274495:

Add missing commas to .Xr.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275347:
kib [Sun, 14 Dec 2014 09:34:55 +0000 (09:34 +0000)]
MFC r275347:
Provide mutual exclusion between zone allocation/destruction and
uma_reclaim().

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

9 years agoMFC r275633:
dim [Sat, 13 Dec 2014 12:14:26 +0000 (12:14 +0000)]
MFC r275633:

Pull in r223171 from upstream llvm trunk (by Michael Zolotukhin):

  PR21302. Vectorize only bottom-tested loops.

  rdar://problem/18886083

This fixes a bug in the llvm vectorizer, which could sometimes cause
vectorized loops to perform an additional iteration, leading to possible
buffer overruns.  Symptoms of this, which are usually segfaults, were
first noticed when building gcc ports, here:

https://lists.freebsd.org/pipermail/freebsd-ports/2014-September/095466.html
https://lists.freebsd.org/pipermail/freebsd-toolchain/2014-September/001211.html

Since this fix is very important for ports, bump __FreeBSD_version to
make it easier for port maintainers to test whether the fix has been
applied.

Upstream PR: http://llvm.org/PR21302

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

9 years agoMFC r275513:
kib [Fri, 12 Dec 2014 09:22:52 +0000 (09:22 +0000)]
MFC r275513:
When the last reference on the vnode' vm object is dropped, read the
vp->v_vflag without taking vnode lock and without bypass.

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

9 years agoMFC r275636:
hselasky [Fri, 12 Dec 2014 07:59:05 +0000 (07:59 +0000)]
MFC r275636:
Move OFED init a bit earlier so that PXE boot works.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274411: Improve CAM's reaction on asymmetric access errors.
mav [Fri, 12 Dec 2014 07:41:08 +0000 (07:41 +0000)]
MFC r274411: Improve CAM's reaction on asymmetric access errors.

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

9 years agoMFC r275477:
dim [Thu, 11 Dec 2014 08:05:59 +0000 (08:05 +0000)]
MFC r275477:

Pull in r174303 from upstream gcc trunk (by Jason Merrill):

  PR c++/48211
  * name-lookup.h (cp_class_binding): Make base a pointer.
  * name-lookup.c (new_class_binding): Adjust.
  (poplevel_class): Adjust.

This fixes a potential segfault when compiling gold, a part of the
devel/binutils port, with gcc.  See also the upstream bug report:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=48211

Thanks to Jason Merrill, Tom Callaway and Red Hat legal for approving
the use of this patch under the GNU GPL, version 2 or later.

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

9 years agoMFC r275478: Swap resource count scopes for used/available space.
mav [Thu, 11 Dec 2014 00:25:26 +0000 (00:25 +0000)]
MFC r275478: Swap resource count scopes for used/available space.

Used count should be reported as per-LUN, while available should not.

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

9 years agoMFC r275199.
cy [Wed, 10 Dec 2014 20:54:23 +0000 (20:54 +0000)]
MFC r275199.

Correctly define constants.

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

9 years agoMFC r275452: Do not corrupt the listen string when parsing it.
mav [Wed, 10 Dec 2014 08:53:41 +0000 (08:53 +0000)]
MFC r275452: Do not corrupt the listen string when parsing it.

This fixes problem with ctld reload when it is configured to listen on two
portals with same IP, but different ports.

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

9 years agoMFC r275446: Plug memory leaks on UNMAP and XCOPY with invalid parameters.
mav [Wed, 10 Dec 2014 08:52:47 +0000 (08:52 +0000)]
MFC r275446: Plug memory leaks on UNMAP and XCOPY with invalid parameters.

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

9 years agoMFC r275666:
delphij [Wed, 10 Dec 2014 08:26:53 +0000 (08:26 +0000)]
MFC r275666:

Fix multiple vulnerabilities in file(1) and libmagic(3).

Security: FreeBSD-SA-14:28.file
Security: CVE-2014-3710, CVE-2014-8116, CVE-2014-8117

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

9 years agoMFC r275665:
delphij [Wed, 10 Dec 2014 08:24:02 +0000 (08:24 +0000)]
MFC r275665:

Fix buffer overflow in stdio.

Security: FreeBSD-SA-14:27.stdio
Security: CVE-2014-8611

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

9 years agoMFC r275376:
rpaulo [Tue, 9 Dec 2014 17:03:14 +0000 (17:03 +0000)]
MFC r275376:

  Allow multiple devices to mmap.  It's impossible to prevent this with
  checks on the open/close functions.

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

9 years agoMFC r274310:
trasz [Tue, 9 Dec 2014 11:52:36 +0000 (11:52 +0000)]
MFC r274310:

Add HISTORY section to ctld(8).

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r274308:
trasz [Tue, 9 Dec 2014 11:50:50 +0000 (11:50 +0000)]
MFC r274308:

Add support for sending redirections to iSCSI target.

MFC r274309:

Fix several nits in redirection handling - don't use wrong CSG,
and avoid use-after-free.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275386:
dim [Tue, 9 Dec 2014 07:15:53 +0000 (07:15 +0000)]
MFC r275386:

Let GNU ld be less obscure about missing symbols and DSOs.  If the BFD
object looks like a typical shared library, suggest adding '-l<foo>',
where <foo> has the 'lib' prefix and '.so<bar>' or '.a' suffix removed.

Otherwise, suggest adding '-l:<foo>', where <foo> is the full DT_SONAME.

Submitted by: Conrad Meyer <conrad.meyer@isilon.com>
Sponsored by: EMC / Isilon storage division
Reviewed by: emaste
PR: 194296
Differential Revision: https://reviews.freebsd.org/D1152

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

9 years agoMFC r274322:
bryanv [Tue, 9 Dec 2014 07:03:49 +0000 (07:03 +0000)]
MFC r274322:

  Attempt to report a better error if sanitize is not supported

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

9 years agoMFC r275071:
delphij [Tue, 9 Dec 2014 00:47:02 +0000 (00:47 +0000)]
MFC r275071:

Reinstitate send() after syslogd restarts.

In r228193 the test of CONNPRIV have been moved to before the _usleep
and send in vsyslog().  When syslogd restarts, this would prevent the
message being logged after the disconnect/connect dance for
scenario #1.

PR: 194751
Submitted by: Peter Creath <pjcreath+freebsd gmail com>
Reviewed By: glebius

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

9 years agoMFC r275046: whitespace and cosmetic changes in callout_reset family of macros
avg [Mon, 8 Dec 2014 13:19:29 +0000 (13:19 +0000)]
MFC r275046: whitespace and cosmetic changes in callout_reset family of macros

Not applicable to earlier releases.

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

9 years agoMFC r275045: callout(9): add sbt flavors of callout_schedule
avg [Mon, 8 Dec 2014 13:13:17 +0000 (13:13 +0000)]
MFC r275045: callout(9): add sbt flavors of callout_schedule

Not applicable to earlier releases.

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

9 years agoMFC r274628: l2arc: restore correct rounding up of asize of compressed data
avg [Mon, 8 Dec 2014 13:06:44 +0000 (13:06 +0000)]
MFC r274628: l2arc: restore correct rounding up of asize of compressed data

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

9 years agoMFC r274277:
trasz [Mon, 8 Dec 2014 11:28:08 +0000 (11:28 +0000)]
MFC r274277:

ctld(8) doesn't require -lcam or -lssl; remove those from DPADD and LDADD.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275368:
mav [Mon, 8 Dec 2014 09:47:49 +0000 (09:47 +0000)]
MFC r275368:
When passing LUN IDs through treat ASCII values as fixed-length, not
interpreating NULLs as EOLs, but converting them to spaces.

SPC-4 does not tell that T10-based IDs should be NULL-terminated/padded.
And while it tells that it should include only ASCII chars (0x20-0x7F),
there are some USB sticks (SanDisk Ultra Fit), that have NULLs inside
the value.  Treating NULLs as EOLs there made those LUN IDs non-unique.

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

9 years agoMFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests.
jilles [Sun, 7 Dec 2014 22:30:54 +0000 (22:30 +0000)]
MFC r267265: truncate: Detect integer overflow, fix relative sizes, add tests.

The change to expand_number (r204654) broke detection of too large sizes and
relative sizes ('+'/'-').

Also add some tests.

The usr.bin/truncate/Makefile is slightly different in the MFC because
src.opts.mk does not exist in stable/10.

PR: 190735
Submitted by: Kirk Russell

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

9 years agoMFC r263928:
brooks [Sat, 6 Dec 2014 17:50:37 +0000 (17:50 +0000)]
MFC r263928:

Use the correct variable name in the example code.

PR: 195749

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

9 years agoMFC r274843, r274845:
mav [Sat, 6 Dec 2014 07:30:08 +0000 (07:30 +0000)]
MFC r274843, r274845:
Move icl_pdu_get_data() and xpt_done() out of initiator's session lock.

During heavy reads data copying in icl_pdu_get_data() may consume large
percent of CPU time.  Moving it out of the lock significantly reduces
lock hold time and respectively lock congestion on read operations.

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

9 years agoMFC r271695:
markj [Fri, 5 Dec 2014 18:55:31 +0000 (18:55 +0000)]
MFC r271695:
Fix some incorrect endianness checks.

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

9 years agoMFC r275170:
ngie [Fri, 5 Dec 2014 12:51:27 +0000 (12:51 +0000)]
MFC r275170:

  Convert sbin/mdconfig/tests from prove format tests to ATF format tests

  As a side effect...
  1. The tests now checks for the root user before continuing with kyua, which is
     more visible than the test being skipped with the TAP protocol
  2. The tests work with devices that aren't /dev/md0 by caching the device
     attached during the test to a file, and later use the cached information to
     detach the device in the cleanup routine
  3. The tests no longer require perl to run

  PR: 191191
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r274365:
ngie [Fri, 5 Dec 2014 12:25:36 +0000 (12:25 +0000)]
MFC r274365:

  Revert WiP to contrib/tzcode accidentally committed with r274364

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

9 years agoMFC r274364:
ngie [Fri, 5 Dec 2014 12:23:29 +0000 (12:23 +0000)]
MFC r274364:

  Add baud rate support to telnet(1)

  This implements part of RFC-2217

  It's based off a patch originally written by Sujal Patel at Isilon, and
  contributions from other Isilon employees.

  PR: 173728
  Phabric: D995
  Reviewed by: markj, markm
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r272057,r272083,r272084,r272087,r274016:
ngie [Fri, 5 Dec 2014 11:44:18 +0000 (11:44 +0000)]
MFC r272057,r272083,r272084,r272087,r274016:

r272057:

  Import pjdfstest from ^/vendor/pjdfstest/abf03c3a47745d4521b0e4aa141317553ca48f91

  - Remove tools/regression/pjdfstest
  - Add upgrade directions for contrib/pjdfstest
  - Add a note to UPDATING for the move (the reachover Makefiles are coming
    soon)

  Functional differences:
  - ftruncate testcases are added from upstream (github)

  Non-functional differences:
  - The copyright for the project has been updated to 2012
  - pjd's contact information has been updated

  Discussed with: -testing, jmmv, pjd
  Sponsored by: EMC / Isilon Storage Division

r272083:

  Expect ELOOP on Darwin/Linux with "O_NOFOLLOW was specified and the target is a
  symbolic link" case. Assume EMLINK on the rest of the OSes (FreeBSD, Solaris,
  etc)

  Sponsored by: EMC / Isilon Storage Division

r272084:

  Fix the executed testplan count

  Sponsored by: EMC / Isilon Storage Division

r272087:

  Increase the memory disk size in the following testcases to avoid mount
  failures, which would cause cascade failures in the rest of the test
  run:

  link/15.t, open/19.t, mkdir/11.t, mkfifo/11.t, symlink/11.t

  Fail quickly in all of the testcases if mdconfig, mount, umount, etc
  fails to avoid issues similar to this in the future

  Submitted by: Casey Peel <cpeel@isilon.com>
  Sponsored by: EMC / Isilon Storage Division

r274016:

  Integrate pjdfstest test suite execution into kyua

  pjdfstest execution is opt-in and must be done as root due to some of the
  assumptions made by the test suite and lack of error checking in the non-root
  case

  A description of how to execute pjdfstest with kyua is provided in
  share/pjdfstest/README

  Phabric: D824 (an earlier prototype patch)
  Relnotes: yes
  Sponsored by: EMC / Isilon Storage Division

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

9 years agoMFC r275206:
kib [Fri, 5 Dec 2014 09:30:07 +0000 (09:30 +0000)]
MFC r275206:
Assert the state of the process lock and sigact mutex in
kern_sigprocmask() and reschedule_signals().

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

9 years agoMFC r271796 (by will):
ngie [Fri, 5 Dec 2014 08:46:15 +0000 (08:46 +0000)]
MFC r271796 (by will):

  Use 'cc' for the C compiler instead of 'gcc'.

  Sponsored by: Spectra Logic
  MFSpectraBSD: 1079507 on 2014/07/24

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

9 years agoMFC r275420:
rpaulo [Fri, 5 Dec 2014 07:51:50 +0000 (07:51 +0000)]
MFC r275420:

 gpioctl: don't print the command line arguments.

PR:    195330
Submitted by: Scott Ellis jumpnowtek at gmail.com

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

9 years agoMFC r272937: Fix r272936 build with old GCC.
mav [Fri, 5 Dec 2014 07:48:22 +0000 (07:48 +0000)]
MFC r272937: Fix r272936 build with old GCC.

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

9 years agoMFC r268395:
mav [Fri, 5 Dec 2014 07:46:28 +0000 (07:46 +0000)]
MFC r268395:
Pass correct command that should be aborted to ISPCTL_ABORT_CMD.

This makes XPT_ABORT to work for me on initiator side of isp(4).
Previous code was trying to abort the XPT_ABORT itself and failed.

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

9 years agoMFC r274248: Remove unused assignments, noticed by Clang analyzer.
mav [Fri, 5 Dec 2014 07:29:31 +0000 (07:29 +0000)]
MFC r274248: Remove unused assignments, noticed by Clang analyzer.

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

9 years agoMFC r274805:
mav [Fri, 5 Dec 2014 07:25:02 +0000 (07:25 +0000)]
MFC r274805:
Make cfiscsi_offline() synchronous, waiting for connections termination
before return.  This should make ctld restart more clean and predictable.

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

9 years agoMFC r274795:
mav [Fri, 5 Dec 2014 07:24:17 +0000 (07:24 +0000)]
MFC r274795:
Close race between cfiscsi_offline() and new connection arrival.

Incoming connection should be either rejected or accepted and terminated.

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

9 years agoMFC r274785: Partially reconstruct Active/Standby clusting.
mav [Fri, 5 Dec 2014 07:23:25 +0000 (07:23 +0000)]
MFC r274785: Partially reconstruct Active/Standby clusting.

In this mode one head is in Active state, supporting all commands, while
another is in Standby state, supporting only minimal LUN discovery subset.

It is still incomplete since Standby state requires reservation support,
which is impossible to do right without having interlink between heads.
But it allows to run some basic experiments.

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

9 years agoMFC r274172 (avg)
delphij [Fri, 5 Dec 2014 00:32:33 +0000 (00:32 +0000)]
MFC r274172 (avg)

fix l2arc compression buffers leak

We have observed that arc_release() can be called concurrently with a
l2arc in-flight write.
Also, we have observed that arc_hdr_destroy() can be called from
arc_write_done() for a zio with ZIO_FLAG_IO_REWRITE flag in similar
circumstances.

Previously the l2arc headers would be freed while leaking their
associated compression buffers.  Now the buffers are placed on
l2arc_free_on_write list for delayed freeing.  This is similar to what
was already done to arc buffers that were supposed to be freed
concurrently with in-flight writes of those buffers.

In addition to fixing the discovered leaks this change also adds some
protective code to assert that a compression buffer associated with a
l2arc header is never leaked.

A new kstat l2_cdata_free_on_write is added.  It keeps a count of
delayed compression buffer frees which previously would have been leaks.

Tested by:      Vitalij Satanivskij <satan@ukr.net> et al
Requested by:   many
Sponsored by:   HybridCluster / ClusterHQ

This is a 10.1-RELEASE errata candidate.

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

9 years agoMFC r274370:
delphij [Thu, 4 Dec 2014 23:27:29 +0000 (23:27 +0000)]
MFC r274370:

Rename variable name from 'index' to 'idx' to avoid shadowing index(3).

Noticed by: dim

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

9 years agoMFC r274674:
delphij [Thu, 4 Dec 2014 23:26:15 +0000 (23:26 +0000)]
MFC r274674:

Add a tunable for spa_slop_shift which controls how much space we
would reserve by default.  Tuning is not recommended.

Relnotes: yes

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

9 years agoMFC r274636:
delphij [Thu, 4 Dec 2014 23:21:42 +0000 (23:21 +0000)]
MFC r274636:

Sync with userland variant.

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

9 years agoMFC r274276: MFV r274271:
delphij [Thu, 4 Dec 2014 23:20:44 +0000 (23:20 +0000)]
MFC r274276: MFV r274271:

Improve zdb -b performance:

 - Reduce gethrtime() call to 1/100th of blkptr's;
 - Skip manipulating the size-ordered tree;
 - Issue more (10, previously 3) async reads;
 - Use lighter weight testing in traverse_visitbp();

Illumos issue:
    5243 zdb -b could be much faster

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

9 years agoMFC r274458,274523:
delphij [Thu, 4 Dec 2014 23:19:04 +0000 (23:19 +0000)]
MFC r274458,274523:

Derive copyright year from src/COPYRIGHT.

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

9 years agoMFC r274303:
delphij [Thu, 4 Dec 2014 23:17:35 +0000 (23:17 +0000)]
MFC r274303:

Apply upstream 13597:3eac1e8e0f4c (git: illumos-gate@aa846ad9):

Initialize tqent_flags in the userland taskq implementation.  Without
this the assertion of tq->tq_freelist != NULL may fail in taskq_destroy.

The problem is that tqent_flags is never initialized in the userland
implementation while the kernel one does initialize it.  Without proper
initialization, the flag may have its lowest bit set, making it treated
as TQENT_FLAG_PREALLOC and never removing taskq_ent_t from tq_freelist.

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

9 years agoMFC r272044:
delphij [Thu, 4 Dec 2014 23:15:44 +0000 (23:15 +0000)]
MFC r272044:

Constify a parameter of name2oid.  No functional change.

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

9 years agoMFC r275366:
dim [Thu, 4 Dec 2014 01:21:56 +0000 (01:21 +0000)]
MFC r275366:

Pull in r209785 from upstream libc++ trunk (by Marshall Clow):

  Fix a problem exposed by r208825, which caused bind (and other bits of
  libc++) to stop working. And tests

This fix is needed to support clang 3.5.0 and higher, which are more
strict about forming pointer-to-function types with cv-qualifiers or
ref-qualifiers.  See also the upstream PR <http://llvm.org/PR19742> and
<http://llvm.org/viewvc/llvm-project?rev=208825&view=rev>

Reported by: amdmi3

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

9 years agoMFC r274922:
dim [Thu, 4 Dec 2014 01:10:50 +0000 (01:10 +0000)]
MFC r274922:

Fix the following -Werror warning from clang 3.5.0, while building the
ath kernel module:

sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value]
                if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) {
                    ^
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative
sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs'
#define abs(_a)         __builtin_abs(_a)
                        ^
1 error generated.

This warning occurs because both lp[0] and target are unsigned, so the
subtraction expression is also unsigned, and calling abs() is a no-op.

However, the intention was to look at the absolute difference between
the two unsigned quantities.  Introduce a small static function to
clarify what we're doing, and call that instead.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D1212

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

9 years agoMFC r273488:
markj [Wed, 3 Dec 2014 19:44:22 +0000 (19:44 +0000)]
MFC r273488:
Fix some bugs in the error handling of getdevice().

PR: 194506

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

9 years agoMFC r275120:
kib [Wed, 3 Dec 2014 10:42:10 +0000 (10:42 +0000)]
MFC r275120:
Fix SA_SIGINFO | SA_RESETHAND handling, reset disposition after sv_sendsig()
is called.

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

9 years agoMFC r275110:
hselasky [Wed, 3 Dec 2014 09:14:14 +0000 (09:14 +0000)]
MFC r275110:
Add new USB quirk.

PR: 195372

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

9 years agoMFC r275328 and r275330:
hselasky [Wed, 3 Dec 2014 09:08:04 +0000 (09:08 +0000)]
MFC r275328 and r275330:
Add missing libraries when linking and fix building of some infiniband
utilities by updating some header file locations and compiler include
directives.

Sponsored by: Mellanox Technologies

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

9 years agoMFC r274703:
trasz [Wed, 3 Dec 2014 08:22:13 +0000 (08:22 +0000)]
MFC r274703:

Fix typo.

Sponsored by: The FreeBSD Foundation

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

9 years agoMFC r275124: Fix WWNN/WWPN generation for virtual channels.
mav [Wed, 3 Dec 2014 07:05:17 +0000 (07:05 +0000)]
MFC r275124:  Fix WWNN/WWPN generation for virtual channels.

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

9 years agoMFC r275123: Fix incorrect check, blocking MULTIID functionality.
mav [Wed, 3 Dec 2014 07:04:28 +0000 (07:04 +0000)]
MFC r275123: Fix incorrect check, blocking MULTIID functionality.

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

9 years agoMFC r275101:
mav [Wed, 3 Dec 2014 06:53:49 +0000 (06:53 +0000)]
MFC r275101:
Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.

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

9 years agoMFC r274821:
brooks [Tue, 2 Dec 2014 22:04:27 +0000 (22:04 +0000)]
MFC r274821:

Merge from CheriBSD:

commit d0c7d235c09fc65dbdb278e7016a96f79c6a49cc
  Make the Altera JTAG UART device driver slightly more forgiving of
  the foibles of a sub-par hrdware interface by increasing the timeout
  for spotting JTAG polling from one to two seconds.

commit 19ed45a18832560dab967c179d83b71081c3a220
  Update comment.

commit 8edfe803f033cc8e33229f99894c2b7496a44d5f
  Add a comment about a device-driver race condition that could cause the BERI
  pipeline to wedge awaiting JTAG in the event that both the low-level console
  and the tty layer decide to write to the JTAG FIFO just before JTAG is
  disconnected.  Resolving this race is a bit tricky as it looks like there
  isn't a way to 'give the character back' to the tty layer when we discover
  the race.  The easy fix is to drop the character, which we don't yet do, but
  perhaps should as that is a better outcome than wedging the pipeline.

commit 2ea26cf579c9defcf31e413e7c9b0fbc159237fc
  Add a comment about an inherent race with hardware in the Altera JTAG
  UART's low-level console code.

Submitted by: rwatson
Sponsored by: DARPA, AFRL

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

9 years agoMFC r274820:
brooks [Tue, 2 Dec 2014 21:23:13 +0000 (21:23 +0000)]
MFC r274820:

Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389):

Remove initalized, but unused devname variable

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274818:
brooks [Tue, 2 Dec 2014 20:28:05 +0000 (20:28 +0000)]
MFC r274818:

Merge from CheriBSD (3422ebe71b6c06fe78b1be73623b240c219e08e3):

Rename beripic to beripic0.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r274806:
brooks [Tue, 2 Dec 2014 19:58:26 +0000 (19:58 +0000)]
MFC r274806:

Add a guard against attempting to invoke the buildenv target with -j# as
that silently exits rather than doing something useful.

Sponsored by: DARPA, AFRL

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

9 years agoMFC r269634:
tijl [Tue, 2 Dec 2014 14:21:06 +0000 (14:21 +0000)]
MFC r269634:

drm: fix usage of vm_phys_fictitious_to_vm_page

vm_phys_fictitious_to_vm_page should not be called directly, even when
operating on a range that has been registered using
vm_phys_fictitious_reg_range. PHYS_TO_VM_PAGE should be used instead
because on arches that use VM_PHYSSEG_DENSE the page might come
directly from vm_page_array.

Reported by: nwhitehorn
Tested by: nwhitehorn, David Mackay <davidm.jx8p@gmail.com>
Sponsored by: Citrix Systems R&D

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

9 years agoMFC r273969:
tijl [Tue, 2 Dec 2014 14:12:05 +0000 (14:12 +0000)]
MFC r273969:

Use default memory type for TTM buffer objects that may be cached.

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

9 years agoMFC r273862,273902:
tijl [Tue, 2 Dec 2014 14:09:54 +0000 (14:09 +0000)]
MFC r273862,273902:

Port the TTM AGP backend to the FreeBSD agp driver and enable AGP support
in the radeonkms driver.

Note: In PCI mode virtual addresses on the graphics card that map to system
RAM are translated to physical addresses by the graphics card itself.   In
AGP mode address translation is done by the AGP chipset so fictitious
addresses appear on the system bus.  For the CPU cache management to work
correctly when the CPU accesses this memory it needs to use the same
fictitious addresses (and let the chipset translate them) instead of using
the physical addresses directly.

Reviewed by: kib

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

9 years agoMFC r273856,273863,273963-273965
tijl [Tue, 2 Dec 2014 13:46:13 +0000 (13:46 +0000)]
MFC r273856,273863,273963-273965

- Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets
  of pages into the GTT.
- Avoid possible overflow in agp_generic_alloc_memory.
- In agp(4) avoid the need to flush all cpu caches with wbinvd between
  updating the GTT and flushing the AGP TLB by storing the GTT in
  write-combining memory.
- In agp_amd_bind_page don't flush the AGP TLB.  It's done by the calling
  function.
- agp_generic_unbind_memory: flush AGP TLB before unwiring pages
  agp_bind_pages: assert that pages have been wired down

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