Commit Graph

14740 Commits

Author SHA1 Message Date
mav
3505e1d0e9 MFC r279987: Add checksums to identify data and NCQ command error log. 2015-03-27 08:50:26 +00:00
mav
22ec3a9f70 MFC r279979: Slightly polish virtual AHCI CD reporting. 2015-03-27 08:49:33 +00:00
mav
c9d7a5b073 MFC r279977: Fix NOP and IDLE commands for virtual AHCI disks. 2015-03-27 08:48:44 +00:00
mav
b30732f21d MFC r279976: Add support for NCQ variant of DSM TRIM for virtual AHCI disks.
The code is not really tested yet due to lack of initiator support.
2015-03-27 08:47:54 +00:00
mav
adad7a7d84 MFC r279975: Improve NCQ errors reporting for virtual AHCI disks.
While this implementation is still not perfect, previous was just broken.
2015-03-27 08:47:02 +00:00
mav
e0d0bd28e8 MFC r279968: Remove incorrect SERR register setting.
At this point we have nothing to report through that register.
2015-03-27 08:46:12 +00:00
mav
0bcdb239fd MFC r279967: Change prdbc value reporting. 2015-03-27 08:44:58 +00:00
mav
f96653efd8 MFC r279965: Polish AHCI disk identify data and fix speed negotiation. 2015-03-27 08:43:45 +00:00
mav
f4f616ce8b MFC r279960:
Add support for PIO variants of READ/WRITE commands for AHCI disks.

AHCI API hides all PIO specifics, so this functionality is almost free.
2015-03-27 08:42:55 +00:00
mav
989c57f51c MFC r279975: Use ahci_write_fis_d2h() for commands completion. 2015-03-27 08:41:49 +00:00
ian
17ca262c02 MFC r279361, r279395, r279396:
Allow the kern.osrelease and kern.osreldate sysctl values to be set in a
  jail's creation parameters.  This allows the kernel version to be reliably
  spoofed within the jail whether examined directly with sysctl or
  indirectly with the uname -r and -K options.

  Export the new osreldate and osrelease jail parms in jail_get(2).

  Fix line wrap.
2015-03-25 20:57:54 +00:00
rrs
0444d8258d MFC of r277177 and r279894 with the fixes for the PMC for Haswell.
Sponsored by:	Netflix Inc.
2015-03-24 20:00:11 +00:00
dteske
fb3af63da5 MFC revisions 274068, 274119, 279624:
r274068: Add key+=append syntax to sysrc(8)
r279624: Add key-=remove syntax
r274119: Add EXAMPLES-section entries for new syntax

Reviewed by:	shurd (r274068)
Thanks to:	seanc
Relnotes:	sysrc(8) now supports key+=append and key-=remove
2015-03-23 19:12:55 +00:00
mav
3ce68975f2 MFC r279957, r280017: Add DSM TRIM command support for virtual AHCI disks.
It works only for virtual disks backed by ZVOLs and raw devices supporting
BIO_DELETE.  Virtual disks backed by files won't report this capability.

Relnotes:	yes
2015-03-23 14:36:53 +00:00
mav
07b059e689 MFC r280293: Add missing variable initialization.
Reported by:	Coverity
CID:		1288938
2015-03-23 11:48:25 +00:00
rwatson
bcbbcda0f2 Merge an applicable subset of r263234 from HEAD to stable/10:
Update most userspace consumers of capability.h to use capsicum.h instead.

  auditdistd is not updated as I will make the change upstream and then do a
  vendor import sometime in the next week or two.

Note that a significant fraction does not apply, as FreeBSD 10 doesn't
contain a Capsicumised ping, casperd, libcasper, etc.  When these features
are merged, the capsicum.h change will need to be merged with them.

Sponsored by:	Google, Inc.
2015-03-19 12:32:48 +00:00
mav
6a65b273d8 MFC r279658, r279673, r279675:
Implement cache flush for ahci-hd and for virtio-blk over device.
2015-03-19 09:56:38 +00:00
mav
207f5e4d98 MFC r279654: Report logical/physical sector sizes for virtual SATA disk. 2015-03-19 09:54:48 +00:00
mav
a4ce980fef MFC r279651, r279652, r279657:
Add support for TOPOLOGY feature of virtio block device.

Passing through physical block size/offset from underlying storage allows
guest to manage proper data and I/O alignment to improve performance.
2015-03-19 09:53:00 +00:00
ed
3cc419d834 MFC r279016:
Make syslogd work in case shutdown() is POSIX-ly correct.

  On POSIX conformant systems, shutdown() should return ENOTCONN when not
  connected. We attempted to fix this once (kern/84761), but this change
  got backed out because it 'breaks code' (r150155).

  I just reapplied the patch and indeed, syslogd fails on startup. Make it
  easier to re-enable this change in the future by paching up syslogd to
  do the right thing.

Sponsored by: Nuxi
2015-03-15 09:15:11 +00:00
mav
6e2bec33ec MFC r279591: Add example configuration for FibreChannel ports. 2015-03-11 09:54:03 +00:00
mav
6cffa62fef MFC r279590: If target name starts with "naa.", set it as WWNN for CTL port. 2015-03-11 09:52:54 +00:00
mav
bb2d9174ab MFC r279589: Fix handling of queued text and logout requests.
While it may have little sense, text and logout requests can be queued.
If they are, they consume cmdsn, so we should increment our conn_cmdsn.
2015-03-11 09:51:53 +00:00
trasz
58168bdd0f MFC r277172:
Improve wording.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:52:14 +00:00
trasz
cc83545ed3 MFC r277834:
When there are no automounted filesystems, autounmountd(8) should wait
for filesystem event, instead of looping on a timeout.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:45:07 +00:00
trasz
9cde7d310d MFC r275756:
Fix bug that made automount(8) never unmount stale autofs(5) mounts,
ie mounts for entries that were there in auto_master(5), and then
got removed.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:41:58 +00:00
trasz
b6b4fa466d MFC r275755:
Fix spurious "child process X terminated with exit status 1" messages
from automountd(8).

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:39:16 +00:00
trasz
1fbf58cee9 MFC r274859:
Implement "automount -c".

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:36:06 +00:00
trasz
97710cbe33 MFC r273127:
Make automountd(8) inform autofs(4) whether directory being handled can
have wildcards.  This makes it possible for autofs(4) to avoid requesting
automountd(8) action on access to nonexistent nodes - unless wildcards
are actually used.

Note that this change breaks ABI for automountd(8).

MFC r278521:

Restore ABI compatibility, broken in r273127.  Note that while this fixes
ABI with 10.1, it breaks ABI for 11-CURRENT, so rebuild of automountd(8)
is neccessary.

Sponsored by:	The FreeBSD Foundation
2015-03-07 19:32:19 +00:00
dteske
5b322e75c9 MFC r278493: Update copyrights. 2015-03-05 00:44:50 +00:00
dteske
4b2ae2ef5e MFC r278491: Add bsdconfig api function f_dialog_menutag2help() 2015-03-05 00:43:50 +00:00
dteske
c0c2990123 MFC r278490:
Add bsdconfig api functions f_dialog_pause()/f_dialog_pause_no_cancel()
2015-03-05 00:42:58 +00:00
dteske
2662228e2e MFC r278489: Eliminate sub-shells where possible for performance. 2015-03-05 00:42:06 +00:00
dteske
d2827c4f7a MFC r278488: Whitespace. 2015-03-05 00:41:03 +00:00
dteske
e1a2d44e2f MFC r278483: Comments. 2015-03-05 00:40:19 +00:00
dteske
01d39cf2cd MFC r278470:
Add new alias "bsdconfig api" (same as "bsdconfig includes")
NB: My fingers like typing "api" a lot more than "includes"
2015-03-05 00:39:15 +00:00
dteske
04c4a83715 MFC r278467:
Replace the only instance of sed(1) in bsdconfig(8) with awk(1).
2015-03-05 00:37:54 +00:00
dteske
82862f31e2 MFC r274073:
Follow-up to r255036; remove beforeinstall directives from bsdconfig(8)
Makefile's, fixing concurrent installworld (`make -j17 installworld').

Reviewed by:	delphij
Thanks to:	delphij, emaste
2015-03-05 00:34:33 +00:00
dteske
390b17942b MFC r273068:
Rename awk(1) implementation of GNU awk's built-in asorti() function to
prevent fatal conflict should one-true-awk ever be replaced -- e.g., in
an appliance -- with GNU awk. NB: Renamed my implementation to _asorti()
2015-03-05 00:32:54 +00:00
dteske
a1b0091ca7 MFC r273067:
Fix awk(1) asorti() implementation to work when called in a loop.
2015-03-05 00:29:58 +00:00
thomas
1290baf2e3 MFC rev. 278728:
(backup_kernel_finddir, backup_kernel, install_files):
Add missing references to $BASEDIR, in order to allow correct operation
when updating a system mounted at another location than / (e.g. when
updating an alternate Boot Environment).

Reviewed by:  cperciva
2015-03-02 23:17:17 +00:00
ngie
de8fb43ec9 MFC r278192:
Add the following options to enable/disable several features in the base system

WITHOUT_BOOTPARAMD - bootparamd
WITHOUT_BOOTPD - bootpd
WITHOUT_FINGER - finger, fingerd
WITHOUT_FTP - ftp, ftpd
WITHOUT_INETD - inetd
WITHOUT_RBOOTD - rbootd
WITHOUT_TCP_WRAPPERS - tcpd, et al
WITHOUT_TFTP - tftp, tftp-server
WITHOUT_TIMED - timed

Sponsored by: EMC / Isilon Storage Division
2015-03-01 22:03:52 +00:00
mav
8882db8870 MFC r279276: Add checks for malloc() failures.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2015-03-01 09:29:59 +00:00
mav
47c76cda56 MFC r279277: Fix memory leak on incorrect initiator portal.
Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
2015-03-01 09:28:39 +00:00
rstone
0b55a8c80a MFC r264007,r264008,r264009,r264011,r264012,r264013
MFC support for PCI Alternate RID Interpretation.  ARI is an optional PCIe
feature that allows PCI devices to present up to 256 functions on a bus.
This is effectively a prerequisite for PCI SR-IOV support.

r264007:
   Add a method to get the PCI RID for a device.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264008:
   Re-implement the DMAR I/O MMU code in terms of PCI RIDs

   Under the hood the VT-d spec is really implemented in terms of
   PCI RIDs instead of bus/slot/function, even though the spec makes
   pains to convert back to bus/slot/function in examples.  However
   working with bus/slot/function is not correct when PCI ARI is
   in use, so convert to using RIDs in most cases.  bus/slot/function
   will only be used when reporting errors to a user.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264009:
   Re-write bhyve's I/O MMU handling in terms of PCI RID.

   Reviewed by:  neel
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264011:
   Add support for PCIe ARI

   PCIe Alternate RID Interpretation (ARI) is an optional feature that
   allows devices to have up to 256 different functions.  It is
   implemented by always setting the PCI slot number to 0 and
   re-purposing the 5 bits used to encode the slot number to instead
   contain the function number.  Combined with the original 3 bits
   allocated for the function number, this allows for 256 functions.

   This is enabled by default, but it's expected to be a no-op on currently
   supported hardware.  It's a prerequisite for supporting PCI SR-IOV, and
   I want the ARI support to go in early to help shake out any bugs in it.
   ARI can be disabled by setting the tunable hw.pci.enable_ari=0.

   Reviewed by:  kib
   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264012:
   Print status of ARI capability in pciconf -c

   Teach pciconf how to print out the status (enabled/disabled) of the ARI
   capability on PCI Root Complexes and Downstream Ports.

   MFC after:    2 months
   Sponsored by: Sandvine Inc.

r264013:
   Add missing copyright date.

   MFC after:    2 months
2015-03-01 04:22:06 +00:00
jamie
4e65f612d1 MFC r279083:
Fix the logic for skipping parameters (with -s) that have "jailsys"
  parents (such as host.hostname); these were being skipped all the time.
  That it went this long without anyone noticing is a sign that this feature
  isn't actually used by anyone, but it's there so it might as well work.

MFC r279123:

  Allow for parameters added with the JP_OPT flag to not exist.
  That's why the flag exists in the first place.
2015-02-27 02:53:44 +00:00
jamie
23006cc982 MFC r279081:
Allow parameters listed on the command line to override the -v option,
  instead of crashing.

PR:		197701
2015-02-27 02:50:01 +00:00
kib
9534a4a472 MFC r278523:
In mountd, silence a race with the parallel unmount.
2015-02-24 01:46:43 +00:00
mav
466f8525b0 MFC r278594: Add missing asprintf() status checks. 2015-02-20 17:10:46 +00:00
mav
e153ed8e1a MFC r278354: Teach ctld(8) to control non-iSCSI CTL ports.
This change introduces new target option "port", that assigns current target
to specified CTL port.  On config application ctld(8) will apply LUN mapping
according to target configuration to specified port and bring the port up.
On shutdown cltd(8) will remove the mapping and put the port down.

This change allows to configure both iSCSI and FibreChannel targets in the
same configuration file in alike way.

Kernel side support was added earlier at r278037.

Relnotes:	yes
Sponsored by:	iXsystems, Inc.
2015-02-20 17:09:49 +00:00