summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Break up opencrypto/xform.c so it can be reused piecemealallanjude2015-12-3024-969/+2116
| | | | | | | | | | | | | | Keep xform.c as a meta-file including the broken out bits existing code that includes xform.c continues to work as normal Individual algorithms can now be reused elsewhere, including outside of the kernel Reviewed by: bapt (previous version), gnn, delphij Approved by: secteam MFC after: 1 week Sponsored by: ScaleEngine Inc. Differential Revision: https://reviews.freebsd.org/D4674
* Force nullfs vnode reclaim after unlinking, to potentially unlinkkib2015-12-301-3/+5
| | | | | | | | | | lower vnode. Otherwise, reference to the lower vnode from the upper one prevents final unlink. PR: 178238 Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Change the - hopefully - last piece of ktr(9) to use PCPU_GET(cpuid)marius2015-12-301-1/+1
| | | | instead of the MD module ID for KTR_CPU.
* Rename `recvfd` and `sendfd` variables in recvfd/sendfd functions to avoidngie2015-12-301-11/+11
| | | | | | | | -Wshadow issues with gcc MFC after: 1 week Reported by: bz, jenkins Sponsored by: EMC / Isilon Storage Division
* Add the appropriate case statement for IPV6_BINDMULTI so the option can bejtl2015-12-301-0/+1
| | | | | | | | | retrieved with getsockopt(). CID: 1229928 Differential Revision: https://reviews.freebsd.org/D4737 Reviewed by: adrian Sponsored by: Juniper Networks
* Fix a file descriptor leak in mdXhl.c (which is used by numerous hashingjtl2015-12-301-4/+9
| | | | | | | | | | algorithms. CID: 1305669,1305611,1305663,1305603,1305584,1305639,1346865,1305601 Differential Revision: https://reviews.freebsd.org/D4732 Reviewed by: allanjude, delphij MFC after: 2 weeks Sponsored by: Juniper Networks
* Decode and print the ID_AA64* registers on boot. These registers holdandrew2015-12-304-30/+640
| | | | | | | | | | | information on what the core supports. In most cases these will be identical across most CPUs in the SoC, however there may be the case where, with a big.LITTLE setup they may differ. In this case we print the decoded data on all CPUs. Reviewed by: kib Sponsored by: ABT Systems Ltd Differential Revision: https://reviews.freebsd.org/D4725
* This code is not in modules that need KPI stability so no need to usebz2015-12-301-2/+2
| | | | | | | | | the wrapper functions as used in r252511. We can directly use the locking macros. Reviewed by: jtl, rwatson MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4731
* Drop the clang patch which adds recognition of 'CC' suffixes as aliasesdim2015-12-304-26/+7
| | | | | | | for --driver-mode=g++, since this was never upstreamed. For backwards compatibility, add a wrapper shell script. MFC after: 1 week
* Add support for modifying coalescing parameters runtime.hselasky2015-12-303-42/+107
| | | | | MFC after: 1 week Sponsored by: Mellanox Technologies
* Allow I2C to read address 0x51 as well as address 0x50.hselasky2015-12-301-4/+15
| | | | | | MFC after: 1 week Submitted by: Shahar Klein <shahark@mellanox.com> Sponsored by: Mellanox Technologies
* Fix use of uninitialised Nflagsmh2015-12-301-1/+1
| | | | | | | | | | Initialise Nflag to 0 preventing use of uninitialised value. Reported by: uqs MFC after: 1 week X-MFC-With: r292266 Sponsored by: Multiplay Differential Revision: https://reviews.freebsd.org/D4449
* 10G ER/LR should present itself as LR.hselasky2015-12-302-3/+3
| | | | | | MFC after: 1 week Submitted by: Shahar Klein <shahark@mellanox.com> Sponsored by: Mellanox Technologies
* - (Ab)use udivx for dividing the u_int pc_cpuid when implementingmarius2015-12-306-92/+68
| | | | | | | | | | | | | | | | | | | | | CPU_ISSET(), CPU_SET etc. in sparc64 asm. This approach has the benefit of not clobbering %y, allowing to revert r222827 and partially r222828. - In r222828, CATR() already was changed to use the equivalent of PCPU_GET(cpuid) instead of the MD module ID for KTR_CPU, so belatedly also catch up with the C side of ktr(9). Originally, in r203838 CATR() was moved away from directly reading the module ID or equivalent as that became impractical with other CPU types than USI/II supported. With r222828 in place, per-CPU data generally is set up soon enough, though, that employing PCPU things in ktr(9) also for use during early stages works. - Unfortunately, an exception to the latter is the ktr(9) use in pmap_bootstrap(), which actually is run so early that even checking for bootverbose being set via the loader doesn't work. Consequently, replace the ktr(9) use in pmap_bootstrap() with OF_printf(9) and put it under #ifdef DIAGNOSTIC instead. MFC after: 3 days
* Integrate tools/regression/sockets/unix_passfd into the FreeBSD testngie2015-12-304-397/+397
| | | | | | | | | | | | | | | suite as tests/sys/kern/unix_passfd_test - Convert testcases to ATF - Fix an alignment issues - Mark rights_creds_payload(..) as an expected failure (see PR # 181741) Based [in part] on the following Differential Revision: https://reviews.freebsd.org/D689 MFC after: 1 week Submitted by: markj Sponsored by: EMC / Isilon Storage Division
* Add some more obsolete files, left over from the clang 3.7.0 -> 3.7.1dim2015-12-301-0/+2
| | | | | | upgrade. Noticed by: Nikolai Lifanov <lifanov@mail.lifanov.com>, jtl
* Add platform support for QorIQ SoCs.jhibbits2015-12-306-59/+432
| | | | | | | | | This includes the following changes: * SMP kickoff for QorIQ (tested on P5020) * Errata fixes for some silicon revisions * Enables L2 (and L3 if available) caches Obtained from: Semihalf Sponsored by: Alex Perez/Inertial Computing
* Use __alignof__ instead of assuming int64_t to get the rightimp2015-12-301-10/+1
| | | | | | alignment. Differential Revision: https://reviews.freebsd.org/D4708
* Optimize zero_page for book-e mmu.jhibbits2015-12-301-1/+10
| | | | | Instead of indirectly calling bzero() through mmu_booke_zero_page_area, zero the full page the same way as the AIM pmap logic does: using dcbz.
* Rewrite tid_flush() in C.jhibbits2015-12-302-73/+47
| | | | | | There's no need for it to be in asm. Also, by writing in C, and marking it static in pmap.c, it saves a branch to the function itself, as it's only used in one location. The generated asm is virtually identical to the handwritten code.
* Fix stack leak introduced by SVN r97201 (nextboot_conf support).dteske2015-12-301-6/+8
| | | | | | | | | Fix erroneous error path in error messages when processing boot_conf. Fixup stack comments for functions introduced by SVN r97201. Remove a questioning stack comment introduced by SVN r186789. NB: Comment removed because strdup usage here is correct/not a leak. MFC after: 1 week
* Adapt CATR() to r283283.marius2015-12-301-3/+3
|
* Document the recently added support for ptrace(2) LWP events.jhb2015-12-301-1/+38
|
* Add ptrace(2) reporting for LWP events.jhb2015-12-297-29/+263
| | | | | | | | Add two new LWPINFO flags: PL_FLAG_BORN and PL_FLAG_EXITED for reporting thread creation and destruction. Newly created threads will stop to report PL_FLAG_BORN before returning to userland and exiting threads will stop to report PL_FLAG_EXIT before exiting completely. Both of these events are only enabled and reported if PT_LWP_EVENTS is enabled on a process.
* Call kern_thr_exit() instead of duplicating it.jhb2015-12-291-8/+3
| | | | | | | | This code is missing the racct_subr() call from kern_thr_exit() and would require further code duplication in future changes. Reviewed by: kib MFC after: 1 week
* Bring some of the recent locore-v4.S improvements into locore-V6...ian2015-12-291-25/+38
| | | | | | | | | - Map all 4GB as VA=PA so that args passed in from a bootloader can be accessed regardless of where they are. - Figure out the kernel load address by directly masking the PC rather then by doing pc-relative math on the _start symbol. - For EARLY_PRINTF support, map device memory as uncacheable (no-op for ARM_NEW_PMAP because all TEX types resolve to uncacheable).
* Add standard extended feature bit 6 from the Intel SDM rev. 57, whichkib2015-12-292-0/+3
| | | | | | | | indicates that data-pointer in the saved x87 FPU state is only updated on FPU exceptions. Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Fix the error checking for the ubenv command. This moves the check for anian2015-12-291-2/+8
| | | | | | | | | empty ldvar (which amounts to the varname string starting with '=') into the if block that manipulates ldvar, which avoids later referencing ldvar when it was never initialized. Submitted by: Thomas Skibo Pointy hat: ian
* sh: Split subevalvar() in #/##/%/%% and =/? parts.jilles2015-12-291-28/+45
|
* Fix getopt(3) argument after r290180; I forgot to change -r to -Rngie2015-12-291-1/+1
| | | | | | | | | by accident MFC after: 3 days Pointyhat to: ngie Reported by: vangyzen Sponsored by: EMC / Isilon Storage Division
* When checking the inp_ip_minttl restriction for IPv6 packets, don't checkjtl2015-12-291-3/+4
| | | | | | | | | | the IPv4 header. CID: 1017920 Differential Revision: https://reviews.freebsd.org/D4727 Reviewed by: bz MFC after: 2 weeks Sponsored by: Juniper Networks
* - Add entries for the more prominent members of the Digi Internationalmarius2015-12-291-16/+69
| | | | | | | | Neo series, which are based on Exar PCI chips. - Mark some unused parameters as such. - Fix style MFC after: 3 days
* pax: prevent possible buffer overflowpfg2015-12-291-1/+1
| | | | | | | | Or at least quiet down some static analyzers about it. CID: 978835 MFC after: 1 week Obtained from: OpenBSD
* Improvements to BSD-licensed DTC.theraven2015-12-298-136/+792
| | | | | | | - Added an expression parser so that expressions from headers are now working - Fixed missing null terminators on cross references - Disabled exceptions / RTTI in the build for smaller binaries - Changed phandle order generation to be identical to GPL'd dtc
* - Sort ports-secteammiwi2015-12-291-1/+1
|
* ext2: recognize ext4 INCOMPAT_RECOVER flagpfg2015-12-291-0/+3
| | | | | | | | | This is a flag specific for journalling in ext4. Add it to the list of ext4 features we ignore for read-only purposes. PR: 205668 MFC after: 1 week
* - Add myself to ports-secteammiwi2015-12-291-1/+1
| | | | Approved by: delphij (implicit)
* Correct the code for sign-extending a 16 bit value. As near as I can tellian2015-12-291-1/+1
| | | | | this is effectively a no-op -- the addend term in MOVT/MOVW relocations always seems to be zero. But this is correct and the old code wasn't.
* Update metadata for "tools/tools/bus_autoconf" after r292080. Usehselasky2015-12-292-75/+34
| | | | | BYTE_ORDER instead of _BYTE_ORDER due to 3rd party USB software for now.
* Fix type mismatches for malloc(3) and Co.uqs2015-12-298-11/+11
| | | | | | | | | This is rather pedantic, as for most architectures it holds that sizeof(type *) == sizeof(type **) Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722
* Fix type mismatches for malloc(3) and Co.uqs2015-12-292-2/+2
| | | | | | Found by: clang static analyzer Reviewed by: ed Differential Revision: https://reviews.freebsd.org/D4722
* hyperv: vmbus: run non-blocking message handlers in vmbus_msg_swintr()delphij2015-12-293-29/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We'll remove the per-channel control_work_queue because it can't properly do serialization of message handling, e.g., when there are 2 NIC devices, vmbus_channel_on_offer() -> hv_queue_work_item() has a race condition: for an SMP VM, vmbus_channel_process_offer() can run concurrently on different CPUs and if the second NIC's vmbus_channel_process_offer() -> hv_vmbus_child_device_register() runs first, the second NIC's name will be hn0 and the first NIC's name will be hn1! We can fix the race condition by removing the per-channel control_work_queue and run all the message handlers in the global hv_vmbus_g_connection.work_queue -- we'll do this in the next patch. With the coming next patch, we have to run the non-blocking handlers directly in the kernel thread vmbus_msg_swintr(), because the special handling of sub-channel: when a sub-channel (e.g., of the storvsc driver) is received and being handled in vmbus_channel_on_offer() running on the global hv_vmbus_g_connection.work_queue, vmbus_channel_process_offer() invokes channel->sc_creation_callback, i.e., storvsc_handle_sc_creation, and the callback will invoke hv_vmbus_channel_open() -> hv_vmbus_post_message and expect a further reply from the host, but the handling of the further messag can't be done because the current message's handling hasn't finished yet; as result, hv_vmbus_channel_open() -> sema_timedwait() will time out and th device can't work. Also renamed the handler type from hv_pfn_channel_msg_handler to vmbus_msg_handler: the 'pfn' and 'channel' in the old name make no sense. Submitted by: Dexuan Cui <decui microsoft com> Reviewed by: royger MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4596
* hyperv: vmbus: remove the per-channel control_work_queuedelphij2015-12-292-30/+3
| | | | | | | | | | | | | | | | | Now vmbus_channel_on_offer() -> vmbus_channel_process_offer() can safely run on the global hv_vmbus_g_connection.work_queue now. We remove the per-channel control_work_queue to achieve the proper serialization of the message handling. I removed the bogus TODO in vmbus_channel_on_offer(): a vmbus offer can only come from the parent partition, i.e., the host. PR: kern/205156 Submitted by: Dexuan Cui <decui microsoft com> Reviewed by: Howard Su <howard0su gmail com>, delphij MFC after: 2 weeks Differential Revision: https://reviews.freebsd.org/D4597
* Update capabilities of e500mc, e5500, e6500.jhibbits2015-12-291-2/+5
|
* Simplify code for parsing extra groupsbapt2015-12-291-1/+1
|
* Remove useless assignement of linelenbapt2015-12-291-2/+0
|
* Restore dryrun support for pw groupmodbapt2015-12-281-0/+5
|
* - Add an entry for the SIIG Cyber 2SP1 PCIe adapter, which is basedmarius2015-12-281-4/+11
| | | | | | | | | on an Oxford Semiconductor OX16PCI954 but uses only two ports and a non-default clock rate. - Fix style/whitespace PR: 176407 MFC after: 3 days
* Add interests/maintainerships + notesdteske2015-12-281-0/+6
|
* Add support for CQE zipping. CQE zipping reduces PCI overhead byhselasky2015-12-287-3/+131
| | | | | | | | | | | | | coalescing and zipping multiple CQEs into a single merged CQE. The feature is enabled by default and can be disabled by a sysctl. Implementing this feature mlx5_cqwq_pop() has been separated from mlx5e_get_cqe(). MFC after: 1 week Submitted by: Mark Bloch <markb@mellanox.com> Differential Revision: https://reviews.freebsd.org/D4598 Sponsored by: Mellanox Technologies
OpenPOWER on IntegriCloud