Commit Graph

197630 Commits

Author SHA1 Message Date
delphij
a26baf65aa 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
2014-12-04 23:20:44 +00:00
delphij
36b0a2ac49 MFC r274458,274523:
Derive copyright year from src/COPYRIGHT.
2014-12-04 23:19:04 +00:00
delphij
0c96bfd67d 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.
2014-12-04 23:17:35 +00:00
delphij
0b08d45457 MFC r272044:
Constify a parameter of name2oid.  No functional change.
2014-12-04 23:15:44 +00:00
dim
c882aa6bee 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
2014-12-04 01:21:56 +00:00
dim
856a793432 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
2014-12-04 01:10:50 +00:00
markj
b431d8bfcf MFC r273488:
Fix some bugs in the error handling of getdevice().

PR:	194506
2014-12-03 19:44:22 +00:00
kib
ec597a3d4e MFC r275120:
Fix SA_SIGINFO | SA_RESETHAND handling, reset disposition after sv_sendsig()
is called.
2014-12-03 10:42:10 +00:00
hselasky
a0061de774 MFC r275110:
Add new USB quirk.

PR:		195372
2014-12-03 09:14:14 +00:00
hselasky
405a965719 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
2014-12-03 09:08:04 +00:00
trasz
ea68673881 MFC r274703:
Fix typo.

Sponsored by:	The FreeBSD Foundation
2014-12-03 08:22:13 +00:00
mav
2c60f5a12d MFC r275124: Fix WWNN/WWPN generation for virtual channels. 2014-12-03 07:05:17 +00:00
mav
1986eab03e MFC r275123: Fix incorrect check, blocking MULTIID functionality. 2014-12-03 07:04:28 +00:00
mav
a486cdc239 MFC r275101:
Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.
2014-12-03 06:53:49 +00:00
brooks
68673ca7df 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
2014-12-02 22:04:27 +00:00
brooks
768a6267bd MFC r274820:
Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389):

Remove initalized, but unused devname variable

Sponsored by:	DARPA, AFRL
2014-12-02 21:23:13 +00:00
brooks
f27f3e0e8e MFC r274818:
Merge from CheriBSD (3422ebe71b6c06fe78b1be73623b240c219e08e3):

Rename beripic to beripic0.

Sponsored by:	DARPA, AFRL
2014-12-02 20:28:05 +00:00
brooks
67bd86774a 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
2014-12-02 19:58:26 +00:00
tijl
f3fce3afbd 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
2014-12-02 14:21:06 +00:00
tijl
5bc138563e MFC r273969:
Use default memory type for TTM buffer objects that may be cached.
2014-12-02 14:12:05 +00:00
tijl
e95768983f 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
2014-12-02 14:09:54 +00:00
tijl
3add3ea367 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
2014-12-02 13:46:13 +00:00
jch
0e426a7bb8 MFC r264321, r264342, r264351, r264356, r273850, r274629:
Currently, the TCP slow timer can starve TCP input processing while it
walks the list of connections in TIME_WAIT closing expired connections
due to contention on the global TCP pcbinfo lock.

To remediate, introduce a new global lock to protect the list of
connections in TIME_WAIT.  Only acquire the TCP pcbinfo lock when
closing an expired connection.  This limits the window of time when
TCP input processing is stopped to the amount of time needed to close
a single connection.

Approved by:    jhb (mentor)
2014-12-02 11:47:26 +00:00
hselasky
f66f59b794 MFC r274918:
Don't use the synchronization endpoint unless referenced by the
isochronous endpoint descriptor used for the data transfers, hence the
synchronization feature might not be supposed to be supported [yet].
This makes seamless playback synced with the USB HOST clock work with
the DN32-USB module for Midas audio systems and possibly other similar
products from Klark Teknik.
2014-12-01 07:34:25 +00:00
kevlo
aaab2e97e4 MFC r275003:
Add missing headers needed by write().
2014-12-01 03:04:15 +00:00
kevlo
a97617028a MFC r275162:
Init array field in the proper place.

Obtained from:	OpenBSD
2014-12-01 02:59:05 +00:00
trasz
eafe9cc2c3 MFC r273918:
Change the default log level for iSCSI target from 3 to 1.  It should
have been 1 from the beginning; not sure how it ended up at 3.

Sponsored by:	The FreeBSD Foundation
2014-11-30 10:36:29 +00:00
bryanv
957ca069b7 MFC r274325:
Enable LRO by default when available on vtnet interfaces

  The prior change to not enable LRO by default has confused several
  people. The configurations where LRO is problematic is not the
  typical use case for VirtIO, and due to other issues, this often
  requires checksum offloading to be disabled anyways.
2014-11-29 23:05:01 +00:00
bryanv
f9a98c5bdd MFC r273515, r274055, r274063, r274215, r274065, r274502:
Add VirtIO console driver.
2014-11-29 22:48:40 +00:00
trasz
93b5034aa6 MFC r271366 (by mav@):
Fix memory leak, reported by Coverity.
2014-11-29 16:07:15 +00:00
trasz
1fc4976104 MFC r274278:
Improve wording in ctl.conf(5).

Sponsored by:	The FreeBSD Foundation
2014-11-29 16:01:44 +00:00
trasz
39035328b4 MFC r273896:
Build mount_nfs(8) with WARNS=6.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:57:31 +00:00
trasz
abb884ffe0 MFC r273848:
Get rid of obsolete code in mount_nfs(8).

MFC r273861:

Remove two functions unused after r273848.  Would be nice if clang
or at least scan-build yelled about it.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:55:35 +00:00
trasz
f9abf723a8 MFC r273854:
Update acl(3) to expand on NFSv4 ACL support.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:51:48 +00:00
trasz
684c853eed MFC r273853:
Make it clear that ACL flags are NFSv4-only.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:50:13 +00:00
trasz
964eff34c6 MFC r273852:
Fix handling of "conn" mount_nfs(8) option.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:48:47 +00:00
trasz
3c827138a2 MFC r273851:
Note that the "timeout" nfs option is in tenths of a second.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:43:32 +00:00
trasz
059653a03d MFC r273849:
Add support for "timeo", "actimeo", "noac", and "proto" options
to mount_nfs(8).  They are implemented on Linux, OS X, and Solaris,
and thus can be expected to appear in automounter maps.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:41:55 +00:00
trasz
59965706b2 MFC r273822:
Fix iscsictl(8) and ctld(8) to correctly handle Windows newlines
(CRLF) in iscsi.conf and ctl.conf.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:39:31 +00:00
trasz
00cfd4605b MFC r273821:
Keep the token list sorted.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:37:51 +00:00
trasz
704c9e7b81 MFC r273820:
Make it possible to optionally use semicolon to separate statements.
This makes it possible to format stuff like this:

target xxx {
	lun 0 { path /foo/bar; size 4G; }
}

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:36:10 +00:00
trasz
077d08af55 MFC r273816:
Simplify code; no functional changes.

Sponsored by:	The FreeBSD Foundation
2014-11-29 15:34:17 +00:00
trasz
aa126c68f3 MFC r273813:
Add discovery-filter.  This makes it possible to restrict which targets
are returned during discovery based on initiator portal, name, and CHAP
credentials.
2014-11-29 15:32:15 +00:00
rodrigc
0475e04762 MFC r272484:
Add dependencies to various libraries to libzfs and libzpool.

Submitted by:	sef
2014-11-29 08:33:54 +00:00
hselasky
0bfa661315 MFC r274020:
Reduce boot verbosity.
2014-11-29 05:07:24 +00:00
hselasky
77aefe28be MFC r275109:
Add support for 64-byte CQE size.

Sponsored by:	Mellanox Technologies
2014-11-29 04:18:56 +00:00
cy
dc900c0528 MFC r274744.
Set the current vnet inside the ioctl handler for ipfilter.

Without this fix, the vnet was NULL and would crash.
This fix is similar to what was done inside the ioctl handler for PF.

Tested by:
   (1) Boot a kernel with "options VIMAGE" enabled
   (2) Type:

   echo "map lo0 from 10.0.0.0/24 to ! 10.0.0.0/24 -> 127.0.0.1/32" > /etc/ipnat.rules ; service ipnat onerestart

PR: 176992
Differential Revision: https://reviews.freebsd.org/D1191
2014-11-28 20:39:35 +00:00
hselasky
4c0230ed4d MFC r274017, r274088 and r275205:
Provide an on-stack temporary buffer for small IOCTL requests.
Avoiding a memory allocation per IOCTL request can give a significant
speedup for applications which heavily rely on IOCTLs.
2014-11-28 19:21:46 +00:00
mav
d424575bb7 MFC r274756:
Remove residual xpt_release_device() call left after r272406 cleanup.

Excessive release here could trigger use-after-free condition and kernel
panic on LUN 0 disconnect.
2014-11-28 09:23:15 +00:00
mav
8eec24be06 MFC r274840, r274940:
Make iSCSI frontend less chatty while waiting for tasks termination.
2014-11-28 08:56:37 +00:00