summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r284583, r285797, r285799, r287168, r298714, r298720, r298838,jkim2016-09-30344-14592/+23652
| | | | | | | | r300879 Merge ACPICA up to 20160527. Requested by: mav
* MFC 305034: Implement 'devctl clear driver' to undo a previous 'set driver'.jhb2016-09-307-6/+132
| | | | | | | | | | | Add a new 'clear driver' command for devctl along with the accompanying ioctl and devctl_clear_driver() library routine to reset a device to use a wildcard devclass instead of a fixed devclass. This can be used to undo a previous 'set driver' command. After the device's name has been reset to permit wildcard names, it is reprobed so that it can attach to newly-available (to it) device drivers. Sponsored by: Chelsio Communications
* MFC 305502: Reset PCI pass through devices via PCI-e FLR during VM start/end.jhb2016-09-306-4/+296
| | | | | | | | | | | | Add routines to trigger a function level reset (FLR) of a PCI-express device via the PCI-express device control register. This also includes support routines to wait for pending transactions to complete as well as calculating the maximum completion timeout permitted by a device. Change the ppt(4) driver to reset pass through devices before attaching to a VM during startup and before detaching from a VM during shutdown. Sponsored by: Chelsio Communications
* MFC r299064royger2016-09-301-1/+1
| | | | rtc: fix inverted resolution check
* MFC 304858,305485: Fix various issues with PCI pass through and VT-d.jhb2016-09-304-22/+31
| | | | | | | | | | | | | | | | | | | | | | | | 304858: Enable I/O MMU when PCI pass through is first used. Rather than enabling the I/O MMU when the vmm module is loaded, defer initialization until the first attempt to pass a PCI device through to a guest. If the I/O MMU fails to initialize or is not present, than fail the attempt to pass a PCI device through to a guest. The hw.vmm.force_iommu tunable has been removed since the I/O MMU is no longer enabled during boot. However, the I/O MMU support can be disabled by setting the hw.vmm.iommu.enable tunable to 0 to prevent use of the I/O MMU on any systems where it is buggy. 305485: Leave ppt devices in the host domain when they are not attached to a VM. This allows a pass through device to be reset to a normal device driver on the host and reused on the host. ppt devices are now always active in some I/O MMU domain when the I/O MMU is active, either the host domain or the domain of a VM they are attached to.
* MFC 305248: Remove warning about pci_addr_t being different sizes.jhb2016-09-301-6/+1
| | | | pci_addr_t has always been 64-bits since r163805.
* MFC 303881: Reliably return PCI_GETCONF_LAST_DEVICE from PCIOCGETCONF.jhb2016-09-302-12/+11
| | | | | | | | | | | | | | | | | | Previously the loop in PCIIOCGETCONF would terminate as soon as it found enough matches. Now it will continue iterating through the PCI device list and only terminate if it finds another matching device for which it has no room to store a conf structure. This means that PCI_GETCONF_LAST_DEVICE is reliably returned when the number of matching devices is equal to the number of slots in the matches buffer. For example, if a program requests the conf structure for a single PCI function with a specified domain/bus/slot/function it will now get PCI_GETCONF_LAST_DEVICE instead of PCI_GETCONF_MORE_DEVS. While here, simplify the loop conditional a bit more by explicitly breaking out of the loop if copyout() fails and removing a redundant i < pci_numdevs check. Sponsored by: Chelsio Communications
* MFC 295813,295816: Remove redundant check for "(dinfo != NULL)".jhb2016-09-301-3/+3
|
* MFC 303887: Add a dmardump utility to dump the VT-d context tables.jhb2016-09-302-0/+307
| | | | | | | | | | | | This tool parses the ACPI DMAR table looking for DMA remapping devices. For each device it walks the root table and any context tables referenced to display mapping info for PCI devices. Note that acpidump -t already parses the info in the ACPI DMAR tables directly. This tool examines some of the data structures the DMAR remapping engines use to translate DMA requests. Sponsored by: Chelsio Communications
* MFC 303886: Add additional constants.jhb2016-09-301-0/+4
| | | | | | | | | | - Add constants for the fields in the root-entry table address register, namely the root type type (RTT) and root table address (RTA) mask. - Add macros for the bitmask of the domain ID field in the second word of context table entries as well as a helper macro (DMAR_CTX2_GET_DID) to extract the domain ID from a context table entry. Sponsored by: Chelsio Communications
* MFC (part of) r298089 by pfg: Cleanup unnecessary semicolonsemaste2016-09-291-1/+1
|
* MFC r296205: Fix typo.emaste2016-09-291-1/+1
|
* MFC r306075,r306109ache2016-09-281-14/+32
| | | | | | | | | | | | | | | | | | 1) Microoptimize %p case. 2) Implememt %u for GNU compatibility. 3) Don't forget to advance buf for %w/%u. 4) Fail with incomplete week (week 0) request and no such week in the year. 5) Fix yday formula when Sunday requested and the week started from Monday. 6) Fail with impossible yday for incomplete week (week 0) and direct %w/%u request. 7) Shift yday/wday to the first day of the year, if incomplete week (week 0) requested and no %w/%u used. 8) For already non-standard %z extension implement GNU compatible formats: +hh and -hh. 9) Check for incorrect values for %z. PR: 212983 (case 3 only)
* MFC r274925: misc mdoc fixes.pluknet2016-09-2713-55/+42
|
* MFC r305509:markj2016-09-271-2/+6
| | | | Don't treat an error from g_mirror_clear_metadata() as fatal.
* MFC r306205:loos2016-09-272-0/+2
| | | | | | | Add the ID for the Huawei ME909S LTE modem. Submitted by: svenauhagen at github Sponsored by: Rubicon Communications, LLC (Netgate)
* MFC r306131asomers2016-09-261-1/+1
| | | | Update mkimg(1) author's contact info
* MFC r305819:mm2016-09-2510-152/+469
| | | | | | | | | | | | | | | | | Sync libarchive with vendor including important security fixes. Issues fixed (FreeBSD): PR #778: ACL error handling Issue #745: Symlink check prefix optimization is too aggressive Issue #746: Hard links with data can evade sandboxing restrictions This update fixes the vulnerability #3 and vulnerability #4 as reported in "non-cryptanalytic attacks against FreeBSD update components". https://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f Fix for vulnerability #2 has already been merged in r305192. Security: http://gist.github.com/anonymous/e48209b03f1dd9625a992717e7b89c4f
* MFC r305956: Add manpage for rctl_* system callsbadger2016-09-242-0/+225
| | | | | Approved by: kib (mentor) Sponsored by: Dell Technologies
* MFC r305896:dchagin2016-09-241-0/+9
| | | | | | Implement BLKSSZGET ioctl for the Linuxulator. PR: 212700
* MFC r305877:hselasky2016-09-231-6/+3
| | | | | | | | | | | mlx5en: Fix duplicate mbuf free-by-code. When mlx5e_sq_xmit() returns an error code and the mbuf pointer is set, we should not free the mbuf, because the caller will keep the mbuf in the drbr. Make sure the mbuf pointer is correctly set upon function exit. Sponsored by: Mellanox Technologies
* MFC r305876:hselasky2016-09-232-6/+0
| | | | | | mlx5en: Remove unused pdev pointer. Sponsored by: Mellanox Technologies
* MFC r305875:hselasky2016-09-231-0/+3
| | | | | | | | mlx5en: Verify port type is ethernet before creating network device Else the mlx5en driver might attach to infiniband ports. Sponsored by: Mellanox Technologies
* MFC r305874:hselasky2016-09-231-12/+12
| | | | | | | | | | | mlx5en: Allow setting the software MTU size below 1500 bytes The hardware MTU size can't be set to a value less than 1500 bytes due to side-band management support. Allow setting the software MTU size below 1500 bytes, thus creating a mismatch between hardware and software MTU sizes. Sponsored by: Mellanox Technologies
* MFC r305873:hselasky2016-09-232-10/+23
| | | | | | | | | | mlx5en: Factor out common sendqueue code for use with rate limiting SQs. Try to reuse code to setup sendqueues when possible by making some static functions global. Further split the mlx5e_close_sq_wait() function to separate out reusable parts. Sponsored by: Mellanox Technologies
* MFC r305872:hselasky2016-09-232-1/+4
| | | | | | mlx5en: Properly declare doorbell lock for 32-bit CPUs. Sponsored by: Mellanox Technologies
* MFC r305871:hselasky2016-09-232-7/+3
| | | | | | | | | | mlx5en: Optimise away duplicate UAR pointers. This change also reduces the size of the mlx5e_sq structure so that the last queue_state element will fit into the previous cacheline and then the mlx5e_sq structure becomes one cacheline less for amd64. Sponsored by: Mellanox Technologies
* MFC r305870:hselasky2016-09-232-17/+20
| | | | | | | | | mlx5en: Make the mlx5e_open_cq() and mlx5e_close_cq() functions global. Make some functions and structures global to allow for code reuse when creating rate limiting sendqueues. Sponsored by: Mellanox Technologies
* MFC r305869:hselasky2016-09-231-44/+39
| | | | | | | | | | | | | mlx5en: Minor completion queue control path code refactor. Move setting of CQ moderation mode together with the other CQ moderation parameters. Pass completion event vector as a separate argument to mlx5e_open_cq(), because its value is different for each call. Pass mlx5e_priv pointer instead of mlx5e_channel pointer so that code can be used by rate limiting sendqueues. Sponsored by: Mellanox Technologies
* MFC r305868:hselasky2016-09-234-39/+18
| | | | | | | | | | mlx5en: Separate the sendqueue from using the mlx5e_channel structure. This change allows for reusing the transmit path for so called rate limited senqueues. While at it optimise some pointer lookups in the fast path. Sponsored by: Mellanox Technologies
* MFC r305867:hselasky2016-09-2325-402/+2198
| | | | | | | | | Update the MLX5 core module: - Add new firmware commands and update existing ones. - Add more firmware related structures and update existing ones. - Some minor fixes, like adding missing \n to some prints. Sponsored by: Mellanox Technologies
* MFC 306015sephe2016-09-231-1/+2
| | | | | | | | | | hyperv/storvsc: Fix SRB length setting. This fixes disk discovery issue on WS2008R2 Hyper-V, which plagued us since 10.2-release. Reported by: many Sponsored by: Microsoft
* MFC bspatch Capsicumization and improvementsemaste2016-09-221-75/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r304691: bspatch: apply style(9) Make style changes (and trivial refactoring of open calls) now in order to reduce noise in diffs for future capsicum changes. r304807 (allanjude): Capsicumize bspatch Move all of the fopen() and open() calls to the top of main() Restrict each FD to least privilege (read/seek only, write only, etc) cap_enter(), and make all except the output FD read/seek only. r304821: bspatch: remove output file in the case of error r305486: bspatch: add sanity checks on sizes to avoid integer overflow Note that this introduces an explicit 2GB limit, but this was already implicit in variable and function argument types. This is based on the "non-cryptanalytic attacks against freebsd update components" anonymous gist. Further refinement is planned. r305737: bspatch: remove superfluous newlines from errx strings r305822: bspatch: use #define for header size instead of magic number r306026: bspatch: Remove backwards-compatibility sys/capability.h support bspatch previously included sys/capability.h or sys/capsicum.h based on __FreeBSD_version, as FreeBSD is the upstream for bsdiff and we may see this file incorporated into other third-party software. The Capsicum header is now installed as sys/capsicum.h in stable/10 and FreeBSD 10.3, so we can just use sys/capsicum.h and simplify the logic.
* MFC r264823 (ed): Make usage printing more consistent with other tools.emaste2016-09-222-4/+22
| | | | | | | | | - Introduce a separate usage() function. - Don't use argv[0]. Directly name the application, as we do elsewhere. - Don't prepend the application name. - Don't print two newlines. Also apply the unnecessary semicolon cleanup from r298089
* MFC r305841ache2016-09-221-6/+31
| | | | Implement multibyte encoding support for -v with fallback
* Merge OpenSSL 1.0.1u.jkim2016-09-22429-1092/+1932
|
* MFC r305601:kib2016-09-221-2/+12
| | | | On rename, do not perform truncation of dirhash if the vnode truncation failed.
* MFC r305599:kib2016-09-221-0/+1
| | | | Do not leak transient ENOLCK error from flush_newblk_dep() loop.
* MFC r305598:kib2016-09-221-1/+2
| | | | | When logging unlikely UFS_TRUNCATE() failure in ufs_direnter(), include error code.
* MFC r305597:kib2016-09-221-0/+1
| | | | When extending directory inode in ufs_direnter(), adjust i_endoff.
* MFC r305595:kib2016-09-221-2/+7
| | | | | | In dqsync(), when called from quotactl(), um_quotas entry might appear cleared since nothing prevents completion of the parallel quotaoff. There is nothing to sync in this case, and no reason to panic.
* MFC r305594:kib2016-09-221-3/+6
| | | | | In softdep_prealloc(), return early not only for snapshots, but for the quota files as well.
* MFC r305593:kib2016-09-221-32/+19
| | | | | | There is no need to upgrade the last dvp lock on lookups for modifying operations. Instead of upgrading, assert that the lock is exclusive. Explain the cause in comments.
* MFC r305592:kib2016-09-223-5/+16
| | | | | Partially lift suspension when ffs_reload() finished with cgs and going to re-read inodes.
* MFC r305610: Don't report to devd statuses that CAM doesn't consider errors.mav2016-09-221-1/+1
| | | | | Some statuses, such as "ATA pass through information available", are part part of absolutely normal operation and do not worth reporting.
* MFC r305609: "Extended copy information available" is not an error either.mav2016-09-221-1/+1
|
* MFC r305608: "ATA pass through information available" is not an error.mav2016-09-221-1/+1
|
* MFC r305602: intpm: fix attachment to supported AMD FCHsavg2016-09-211-1/+3
|
* MFC r275240 (bapt): Implement --no-fatal-warningsemaste2016-09-211-0/+10
| | | | | | Implement --no-fatal-warning for compatibility with newer ld what ever order the options are passed to ld(1) the --no-fatal-warning always disable --fatal-warning
* MFC r305606: intpm: make sure to register smbus driver before intpm driveravg2016-09-211-1/+2
|
OpenPOWER on IntegriCloud