aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* First pass to fix the 'tests' packages.Glen Barber2016-02-02139-2/+563
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171
* Include virecover in vi package.Glen Barber2016-02-021-1/+5
| | | | | | | | Submitted by: lidl Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295164
* Create ee(1) package.Glen Barber2016-02-023-0/+27
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295163
* Create a package for autofs(5)Glen Barber2016-02-024-1/+35
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295156
* Create a package for vi(1) and related files.Glen Barber2016-02-024-1/+32
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295155
* Fix naming inconsistency with lib32 debug packages.Glen Barber2016-02-016-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295127
* Fix periodic(8) and rc(8) script inclusion to rcmds package.Glen Barber2016-01-302-2/+10
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295058
* Wrap long lines after recent commits.Glen Barber2016-01-291-5/+11
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295054
* Make sure 'pkg config ABI' uses ABI_FILE for the target.Glen Barber2016-01-291-4/+4
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295053
* Cleanup and organize etc/rc.d/Makefile.Glen Barber2016-01-291-35/+26
| | | | | | | | | No functional changes. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295052
* Reorder execution in the 'packages' target so both userlandGlen Barber2016-01-291-2/+2
| | | | | | | | | | | | | | | and kernel are staged before invoking the 'create-<foo>-packages' targets. Include PKG_VERSION value in the 'create-{world,kernel}-packages' targets so the value is not redefined when packaging the kernel, which otherwise results in inconsistent and confusing package version results. Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295044
* MFHGlen Barber2016-01-29635-13005/+10263
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295040
| * Add implementations of sendmmsg(3) and recvmmsg(3) functions whichKonstantin Belousov2016-01-299-20/+318
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | wraps sendmsg(2) and recvmsg(2) into batch send and receive operation. The goal of this implementation is only to provide API compatibility with Linux. The cancellation behaviour of the functions is not quite right, but due to relative rare use of cancellation it is considered acceptable comparing with the complexity of the correct implementation. If functions are reimplemented as syscalls, the fix would come almost trivial. The direct use of the syscall trampolines instead of libc wrappers for sendmsg(2) and recvmsg(2) is to avoid data loss on cancellation. Submitted by: Boris Astardzhiev <boris.astardzhiev@gmail.com> Discussed with: jilles (cancellation behaviour) MFC after: 1 month Notes: svn path=/head/; revision=295039
| * Framework for ARM64 instruction disassemblerWojciech Macek2016-01-295-1/+405
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide an easy to use framework for ARM64 DDB disassembler. This commit does not contain full list of instruction opcodes. Obtained from: Semihalf Sponsored by: Cavium Approved by: cognet (mentor) Reviewed by: zbb, andrew, cognet Differential revision: https://reviews.freebsd.org/D5114 Notes: svn path=/head/; revision=295038
| * ARM: After removal of old pmap-v6 code, rename pmap-v6-new.c to pmap-v6.c.Michal Meloun2016-01-292-1/+1
| | | | | | | | Notes: svn path=/head/; revision=295037
| * ARM: remove old pmap-v6 code. The new pmap-v6 is mature enough, andMichal Meloun2016-01-2916-5515/+44
| | | | | | | | | | | | | | | | | | dual implementation is showstopper for major cleanup. This patch only removes old code from tree. Cleanups will follow asap. Notes: svn path=/head/; revision=295036
| * Use '^[>+][^+]' instead of '^[>+]' with grep(1) when filtering theMarius Strobl2016-01-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | diff(1) output between two files in "new_only"-mode. Otherwise, with the default of using unified format a remnant of the header in the output is the result. This is especially irritating when the two files differ but the second one is empty, amounting to the vestige of the header being the only readout. Reported by: Stefan Haemmerl MFC after: 3 days Notes: svn path=/head/; revision=295032
| * Use intptr_t note ptrdiff_t when storing flags in the bottom bits ofBrooks Davis2016-01-292-6/+6
| | | | | | | | | | | | | | | | | | | | pointers. Obtained from: CheriBSD (e3a69027cc5a384431156d61c90d4304387a9b9d) Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=295031
| * Note the double fork behavior with filemon.Bryan Drewery2016-01-291-0/+5
| | | | | | | | | | | | | | | | | | X-MFC-With: r295029 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295030
| * Document the purpose and non-purpose of filemon(4).Bryan Drewery2016-01-291-1/+17
| | | | | | | | | | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295029
| * Declare bt_devenum() to match the definition.Brooks Davis2016-01-291-1/+1
| | | | | | | | | | | | | | | | | | Obtained from: CheriBSD (1c1dad87ef9983a4ca0c7d6eb0792d489436bcd1) MFC after: 1 week Sponsored by: DARPA, AFRL Notes: svn path=/head/; revision=295028
| * filemon: Track the process pointer rather than a pid.Bryan Drewery2016-01-292-7/+6
| | | | | | | | | | | | | | | | | | | | | | | | The process is not held since the process_exit hook is called after the exithold. There is no need to hold the process since the hook will always see it exiting via the process_exit event. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295027
| * filemon_open: Don't record a process to trace here.Bryan Drewery2016-01-291-2/+1
| | | | | | | | | | | | | | | | | | | | Only ioctl(FILEMON_SET_PID) should be setting the process-to-be-traced. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295026
| * nvd: add hw.nvd.delete_max tunableJim Harris2016-01-282-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The NVMe specification does not define a maximum or optimal delete size, so technically max delete size is min(full size of namespace, 2^32 - 1 LBAs). A single delete operation for a multi-TB NVMe namespace though may take much longer to complete than the nvme(4) I/O timeout period. So choose a sensible default here that is still suitably large to minimize the number of overall delete operations. This also fixes possible uint32_t overflow on initial TRIM operation for zpool create operations for NVMe namespaces with >4G LBAs. MFC after: 3 days Sponsored by: Intel Notes: svn path=/head/; revision=295022
| * Remove debug output which was committed by accident.Michael Tuexen2016-01-281-3/+0
| | | | | | | | | | | | | | | | | | | | Thanks to Oliver Pinter for reporting. MFC after: 3 days X-MFC with: r294995 Notes: svn path=/head/; revision=295021
| * filemon: Use process_exec EVENTHANDLER to capture sys_execve.Bryan Drewery2016-01-282-52/+24
| | | | | | | | | | | | | | | | MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295017
| * kqueue EVFILT_PROC: avoid collision between NOTE_CHILD and NOTE_EXITEric van Gyzen2016-01-285-25/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | NOTE_CHILD and NOTE_EXIT return something in kevent.data: the parent pid (ppid) for NOTE_CHILD and the exit status for NOTE_EXIT. Do not let the two events be combined, since one would overwrite the other's data. PR: 180385 Submitted by: David A. Bright <david_a_bright@dell.com> Reviewed by: jhb MFC after: 1 month Sponsored by: Dell Inc. Differential Revision: https://reviews.freebsd.org/D4900 Notes: svn path=/head/; revision=295012
| * Merge OpenSSL 1.0.2f.Jung-uk Kim2016-01-28501-1201/+1795
| |\ | | | | | | | | | | | | | | | | | | Relnotes: yes Notes: svn path=/head/; revision=295009
| | * Import OpenSSL 1.0.2f.vendor/openssl/1.0.2fJung-uk Kim2016-01-28137-445/+846
| | | | | | | | | | | | | | | Notes: svn path=/vendor-crypto/openssl/dist/; revision=295001 svn path=/vendor-crypto/openssl/1.0.2f/; revision=295002; tag=vendor/openssl/1.0.2f
| * | Fix -include .depend hack from r294370 for headers not in .PATH.Bryan Drewery2016-01-281-5/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This hack will be removed in a few weeks. It is here to fix incremental builds of SSH between r291941 and r294370. Reported by: jmallett MFC after: 1 day Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295006
| * | Fix VNIC enumeration after r294993 and r294990Zbigniew Bodek2016-01-282-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ofw_bus_get_node() must be tested against negative values since missing parent bus method will result in calling the default method which simply returns (-1): sys/dev/ofw/ofw_bus_if.m This was lost in the review process. Obtained from: Semihalf Sponsored by: Cavium Notes: svn path=/head/; revision=294998
| * | Use m_getjcl() instead of manually selecting zone.Gleb Smirnoff2016-01-282-25/+7
| | | | | | | | | | | | | | | | | | | | | Reviewed by: arybchik Notes: svn path=/head/; revision=294996
| * | Always look in the TCP pool.Michael Tuexen2016-01-282-15/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes issues with a restarting peer when the listening 1-to-1 style socket is closed. MFC after: 3 days Notes: svn path=/head/; revision=294995
| * | Support new MDIO hierarchy in ThunderX DTBZbigniew Bodek2016-01-284-5/+481
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some firmware revisions provide different DTB tree that include odd MDIO placement in the tree. This commit adds support for 2 new buses: - MRML bridge (PCIB subordinate) - MDIO nexus (MRML subordinate) This allows for the correct MDIO attachment with both - new and old firmware. Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5070 Notes: svn path=/head/; revision=294994
| * | Add FDT bus capabilities to ThunderX PCI driverZbigniew Bodek2016-01-284-15/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New ThunderX firmware incorporates modified DTB that presents different device hierarchy. In the new device tree, MDIO devices are below two additional buses that oddly hang on PCI bridge. Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5069 Notes: svn path=/head/; revision=294993
| * | Correct alloc_ and release_resource methods in thunder_pcie driverZbigniew Bodek2016-01-281-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Avoid using BUS_ macros as bus_generic_ functions should be used instead. - Fix mistaken device_t pointers in thunder_pcie_alloc_resource. Should use dev->parent method and allocate resource for child device Reviewed by: wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5068 Notes: svn path=/head/; revision=294992
| * | Divide ThunderX PCIe driver to general and FDT partZbigniew Bodek2016-01-285-171/+238
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Separate FDT and general PCIe driver parts - Drop some irrelevant printfs that cannot be displayed in FDT attach - Move ranges parsing to FDT portion of PCIe code Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5067 Notes: svn path=/head/; revision=294991
| * | Fix finding appropriate BGX node in DTB and move it to a separate functionZbigniew Bodek2016-01-283-11/+143
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Search for BGX node in DTS in two ways: 1. Try to find it uder root node first 2. If not found under root, find the top level PCI bridge node and search all nodes below it until appropriate BGX node is found. Move search code to another function to make the code more clear. Remove unused variable by the way. Reviewed by: wma Obtained from: Semihalf Sponsored by: Cavium Differential Revision: https://reviews.freebsd.org/D5066 Notes: svn path=/head/; revision=294990
| * | EHCI: Make core reset and port speed reading more generic.Michal Meloun2016-01-289-46/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use driver settable callbacks for handling of: - core post reset - reading actual port speed Typically, OTG enabled EHCI cores wants setting of USBMODE register, but this register is not defined in EHCI specification and different cores can have it on different offset. Also, for cores with TT extension, actual port speed must be determinable. But again, EHCI specification not covers this so this patch provides function for two most common variant of speed bits layout. Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D5088 Notes: svn path=/head/; revision=294989
| * | SMP support for ARMv6/v7 HW watchpointsZbigniew Bodek2016-01-285-18/+165
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use per-CPU structure to store HW watchpoints registers state for each CPU present in the system. Those registers will be restored upon wake up from the STOP state if requested by the debug_monitor code. The method is similar to the one introduced to AMD64. We store all possible 16 registers for HW watchpoints (maximum allowed by the architecture). HW breakpoints are not maintained since they are used for single stepping only. Pointed out by: kib Reviewed by: wma No strong objections from: kib Submitted by: Zbigniew Bodek <zbb@semihalf.com> Obtained from: Semihalf Sponsored by: Juniper Networks Inc. Differential Revision: https://reviews.freebsd.org/D4338 Notes: svn path=/head/; revision=294987
| * | Remove ffs_mountroot() prototype; seems to be long gone.Edward Tomasz Napierala2016-01-281-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | MFC after: 1 month Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=294983
| * | Fix mutex releasing in ARM64 cpu_switchWojciech Macek2016-01-281-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The code should be comparing pointers, not any data gathered from a blocked_lock. Spotted by: cognet Approved by: zbb, cognet (mentor) Differential revision: https://reviews.freebsd.org/D5100 Notes: svn path=/head/; revision=294979
| * | Add pidfile support to ggated(8)Enji Cooper2016-01-283-25/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The tests will manipulate the system daemon today, which can cause undesired service interruption when the tests are run. This change allows the geom_gate tests to be run with an arbitrary ggated(8) daemon / geom_gate(4) device pairing. Other changes: - Sort #includes - Use a more common idiom for parsing options with getopt(3) Differential Revision: https://reviews.freebsd.org/D4836 MFC after: 2 weeks Reviewed by: bjk (manpages), pjd (maintainer timeout) Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294973
| * | Follow-up r294967: Mark flags unused.Bryan Drewery2016-01-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | X-MFC-With: r294967 MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294968
| * | filemon: Trace fork via process_fork event.Bryan Drewery2016-01-281-47/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids needing ugly hooks and needing both a vfork and fork handler. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294967
| * | filemon: Use process_exit EVENTHANDLER to capture process exit.Bryan Drewery2016-01-281-11/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes some cases where a process could exit without being untracked by filemon. Reported by: mjg MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294965
| * | filemon_dtr: Lock the associated filemon handle before writing to it.Bryan Drewery2016-01-271-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by: mjg MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294957
| * | This fixes a bug in UFS2 exported NFS volumes. An NFS client canKirk McKusick2016-01-271-3/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | crash a server that has exported UFS2 by presenting a filehandle with an inode number that references an uninitialized inode in a cylinder group. The problem is that UFS2 only initializes blocks of inodes as they are first allocated and ffs_fhtovp() does not validate that the inode is in a range of inodes that have been initialized. Attempting to read an uninitialized inode gets random data from the disk. When the kernel tries to interpret it as an inode, panics often arise. Reported by: Christos Zoulas (from NetBSD) Reviewed by: kib Notes: svn path=/head/; revision=294956
| * | The bread() function was inconsistent about whether it would returnKirk McKusick2016-01-273-7/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a buffer pointer in the event of an error (for some errors it would return a buffer pointer and for other errors it would not return a buffer pointer). The cluster_read() function was similarly inconsistent. Clients of these functions were inconsistent in handling errors. Some would assume that no buffer was returned after an error and would thus lose buffers under certain error conditions. Others would assume that brelse() should always be called after an error and would thus panic the system under certain error conditions. To correct both of these problems with minimal code churn, bread() and cluster_write() now always free the buffer when returning an error thus ensuring that buffers will never be lost. The brelse() routine checks for being passed a NULL buffer pointer and silently returns to avoid panics. Thus both approaches to handling error returns from bread() and cluster_read() will work correctly. Future code should be written assuming that bread() and cluster_read() will never return a buffer with an error, so should not attempt to brelse() the buffer when an error is returned. Reviewed by: kib Notes: svn path=/head/; revision=294954
| * | filemon_comment has nothing to do with wrappers so move it out of ↵Bryan Drewery2016-01-272-16/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | filemon_wrapper.c. It only prints the header from filemon_ioctl. Keep the name though to stay closer to other implementations. MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=294953