summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* MFC r260210 (by adrian@):np2014-05-063-2/+8
| | | | | | | Add an option to enable or disable the small RX packet copying that is done to improve performance of small frames. When doing RX packing, the RX copying isn't necessarily required.
* MFC r265287:bryanv2014-05-061-1/+1
| | | | Fix SYNOPSIS ("device if_vtnet" -> "device vtnet").
* MFC r261804:np2014-05-061-3/+3
| | | | Provide additional information in some panic strings.
* MFC r261534:np2014-05-061-2/+2
| | | | cxgbetool: Display the congestion channel map in hex.
* MFC: r264630rmacklem2014-05-061-1/+3
| | | | | | | | | | | | | | | | | | | | | For NFS mounts using rsize,wsize=65536 over TSO enabled network interfaces limited to 32 transmit segments, there are two known issues. The more serious one is that for an I/O of slightly less than 64K, the net device driver prepends an ethernet header, resulting in a TSO segment slightly larger than 64K. Since m_defrag() copies this into 33 mbuf clusters, the transmit fails with EFBIG. A tester indicated observing a similar failure using iSCSI. The second less critical problem is that the network device driver must copy the mbuf chain via m_defrag() (m_collapse() is not sufficient), resulting in measurable overhead. This patch reduces the default size of if_hw_tsomax slightly, so that the first issue is avoided. Fixing the second issue will require a way for the network device driver to inform tcp_output() that it is limited to 32 transmit segments.
* MFC: r264517rmacklem2014-05-061-0/+2
| | | | | | | | Vlan did not set the value of if_hw_tsomax, so when vlan was stacked on top of a network interface that set if_hw_tsomax, tcp_output() would see the default value instead of the value set by the network interface. This patch modifies vlan so that it sets if_hw_tsomax to the value of the parent interface.
* MFC: r264469, r264498rmacklem2014-05-061-2/+13
| | | | | | | | | Lagg did not set the value of if_hw_tsomax, so when lagg was stacked on top of network interfaces that set if_hw_tsomax, tcp_output() would see the default value instead of the value set by the network interface(s). This patch modifies lagg so that it sets if_hw_tsomax to the minimum of the value(s) for the underlying network interfaces.
* MFC r261533, r261536, r261537, and r263457.np2014-05-064-5/+15
| | | | | | | | | | | | | | | | | | r261533: cxgbe(4): Use the port's tx channel to identify it to t4_clr_port_stats. r261536: cxgbe(4): The T5 allows for a different freelist starvation threshold for queues with buffer packing. Use the correct value to calculate a freelist's low water mark. r261537: cxgbe(4): Use the rx channel map (instead of the tx channel map) as the congestion channel map. r263457: cxgbe(4): Recognize the "spider" configuration where a T5 card's 40G QSFP port is presented as 4 distinct 10G SFP+ ports to the driver.
* MFC: r265242brueffer2014-05-051-0/+3
| | | | Generate hardware notes for mpr(4) and bump copyright for 2014.
* MFC the mpr(4) driver for LSI's 12Gb SAS cards.ken2014-05-0536-1/+25835
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This includes r265236, r265237, r265241 and r265261: ------------------------------------------------------------------------ r265236 | ken | 2014-05-02 14:25:09 -0600 (Fri, 02 May 2014) | 51 lines Bring in the mpr(4) driver for LSI's MPT3 12Gb SAS controllers. This is derived from the mps(4) driver, but it supports only the 12Gb IT and IR hardware including the SAS 3004, SAS 3008 and SAS 3108. Some notes about this driver: o The 12Gb hardware can do "FastPath" I/O, and that capability is included in this driver. o WarpDrive functionality has been removed, since it isn't supported in the 12Gb driver interface. o The Scatter/Gather list handling code is significantly different between the 6Gb and 12Gb hardware. The 12Gb boards support IEEE Scatter/Gather lists. Thanks to LSI for developing and testing this driver for FreeBSD. share/man/man4/mpr.4: mpr(4) man page. sys/dev/mpr/*: mpr(4) driver files. sys/modules/Makefile, sys/modules/mpr/Makefile: Add a module Makefile for the mpr(4) driver. sys/conf/files: Add the mpr(4) driver. sys/amd64/conf/GENERIC, sys/i386/conf/GENERIC, sys/mips/conf/OCTEON1, sys/sparc64/conf/GENERIC: Add the mpr(4) driver to all config files that currently have the mps(4) driver. sys/ia64/conf/GENERIC: Add the mps(4) and mpr(4) drivers to the ia64 GENERIC config file. sys/i386/conf/XEN: Exclude the mpr module from building here. Submitted by: Steve McConnell <Stephen.McConnell@lsi.com> Tested by: Chris Reeves <chrisr@spectralogic.com> Sponsored by: LSI, Spectra Logic Relnotes: LSI 12Gb SAS driver mpr(4) added ------------------------------------------------------------------------ ------------------------------------------------------------------------ r265237 | ken | 2014-05-02 14:36:20 -0600 (Fri, 02 May 2014) | 8 lines Add the mpr(4) man page to the man4 Makefile. This should have been included in r265236. Submitted by: Steve McConnell <Stephen.McConnell@lsi.com> MFC after: 3 days Sponsored by: LSI, Spectra Logic ------------------------------------------------------------------------ ------------------------------------------------------------------------ r265241 | brueffer | 2014-05-02 15:14:28 -0600 (Fri, 02 May 2014) | 2 lines Use our standard SYNOPSIS wording; perform some cleanup while here. ------------------------------------------------------------------------ ------------------------------------------------------------------------ r265261 | brueffer | 2014-05-03 05:15:28 -0600 (Sat, 03 May 2014) | 2 lines Add a missing colon. ------------------------------------------------------------------------ Submitted by: Steve McConnell <Stephen.McConnell@lsi.com> Tested by: Chris Reeves <chrisr@spectralogic.com> Sponsored by: LSI, Spectra Logic Relnotes: LSI 12Gb SAS driver mpr(4) added
* MFC r264617:ghelmer2014-05-051-0/+6
| | | | | | | | Fix releasing the lock in the parent atrun process after the queue directory has been processed. Otherwise, a long-running child process caused other atrun invocations to stall unnecessarily. Submitted by: J.R. Oldroyd jr at opal.com
* MFC r265095, r265167;pfg2014-05-051-0/+7
| | | | | | | | | | | | | | | | | | citrus: Avoid invalid code points. The UTF-8 decoder should not accept byte sequences which decode to unicode code positions U+D800 to U+DFFF (UTF-16 surrogates).[1] Contrary to the original OpenBSD patch, we do pass U+FFFE and U+FFFF, both values are valid "non-characters" [2] and must be mapped through UTFs. [1] http://www.cl.cam.ac.uk/~mgk25/unicode.html#utf-8 [2] http://www.unicode.org/faq/private_use.html Reported by: Stefan Sperling [1] Thanks to: jilles [2] Obtained from: OpenBSD
* MFC r262661:markj2014-05-051-11/+4
| | | | | Fix emulation of call and jmp instructions on i386 and for 32-bit processes on amd64.
* MFC r264317, r264864:kevlo2014-05-053-0/+9
| | | | | | | | | - Add the Asus USB-N10 NANO [1] - Fix panic by adding mtx_assert() to urtwn_init_locked() and urtwn_stop_locked() [2] Tested by: Kuan-Chung Chiu <buganini@gmail.com> [1] Anthony Jenkins <scoobi_doo at yahoo dot com> [2]
* MRC r265230:gjb2014-05-051-1/+3
| | | | | | | Clarify that MAKEOBJDIRPREFIX and MAKEOBJDIR are not honored as make(1) arguments. Sponsored by: The FreeBSD Foundation
* MFC r265003:kib2014-05-041-0/+10
| | | | Fix order of libthr and libc in the global dso list for sshd.
* MFC r265004:kib2014-05-041-6/+5
| | | | | Same as it was done in r263878 for invlrng_handler(), fix order of checks for special pcid values in invlpg_pcid_handler().
* MFC r265002:kib2014-05-041-8/+15
| | | | | Fix vm_fault_copy_entry() operation on upgrade; allow it to find the pages in the shadowed objects.
* MFC r264933:gjb2014-05-042-22/+22
| | | | | | Fix indentation in make-memstick.sh. Sponsored by: The FreeBSD Foundation
* MFC r261150, r261151, r261164, r261166, r261167, r261168, r261394, r261395:bryanv2014-05-032-86/+129
| | | | | | | | | | | | - Read and write the MAC address in the config space byte by byte - Also include the mbuf's csum_flags in an assert message - Remove stray space - Move duplicated transmit start code into a single function - Avoid queue unlock followed by relock when the enable interrupt race is lost - Check for a full virtqueue in the multiqueue transmit path - Do not place the sglist used for Rx/Tx on the stack - Use m_defrag() instead of m_collapse() to compact a long mbuf chain
* MFC r261147:bryanv2014-05-031-34/+64
| | | | | | Remove spaces before tabs in the function prototype list MFC r261149: Read each field of the configuration individually
* MFC r262543:markj2014-05-031-0/+51
| | | | | Fix the struct reg mappings for i386 and amd64, which differ between illumos and FreeBSD.
* MFC r262542:markj2014-05-039-5080/+6
| | | | | Move some files that are identical on i386 and amd64 to an x86 subdirectory rather than keeping duplicate copies.
* date(1): Add "-R" flag to use RFC 2822 date and time output format [MFC]dumbbell2014-05-032-7/+33
| | | | | | | | | As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z" as the output format while LC_TIME is set to the "C" locale. This is compatible with date(1) from the GNU core utilities. This is an MFC of r264968 and r264970.
* MFC r264494:ae2014-05-024-20/+64
| | | | | | | | | | | | Use SMB_QUERY_FS_SIZE_INFO request to populate statfs structure. When server doesn't support this request, try to use SMB_INFO_ALLOCATION. And use SMB_COM_QUERY_INFORMATION_DISK request as fallback. MFC r264600: Remove redundant unlock. This code was removed from the opensolaris and darwin's netsmb implementations, in DfBSD it also has been disabled.
* MFC r264040:pfg2014-05-024-13/+28
| | | | | | | | | | | | | 4248 dtrace(1M) should never create DOF with empty probes section 4249 Only probes from the first DTrace object file will be included Illumos Revision: 4a20ab41aadcb81c53e72fc65886e964e9add59 Reference: https://www.illumos.org/issues/4248 https://www.illumos.org/issues/4249 Obtained from: Illumos
* MFC r264963:trociny2014-05-021-2/+2
| | | | Define startup order the same way as it is in dummynet.
* MFC: r265090marius2014-05-021-1/+1
| | | | | | | | | | | | | | | Merge r133175 from upstream: 2008-03-13 Dennis Czeremin <dennis.czeremin@smiths-heimann.com> PR libstdc++/35566 * include/bits/stl_multimap.h (multimap<>::multimap(_InputIterator, _InputIterator)): Forward to _M_insert_equal, not _M_insert_unique. This patch was GPL2 at the time and fixes a regression introduced with the merge of GCC r129013 in FreeBSD r236829. Sponsored by: Bally Wulff Games & Entertainment GmbH
* MFC r262733:markj2014-05-011-6/+11
| | | | | | Use a full path to the target for make rules which create symlinks @, machine and ${MACHINE_CPUARCH}. Otherwise the presence of a file named "x86" or "x86.c" in the make path can cause problems.
* MFC: r258705,r258709,r263140,r263184,r263185,r263186,r263187,r263188,imp2014-05-018-46/+730
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r263189,r263190,r263192,r263193,r263287,r263288,r263890,r264281, r264655,r264656,r264856,r264857,r264858,r264859,r264860,r264861, r264891,r264892,r264909 Catch up on all the referenced changes in -current, in brief: r258705 | n_hibma | Use NANO_PMAKE for build, but not install r258709 | mr | pkgng goo + bootstrap r263140 | glebius | Axe IPX. r263184 | imp | Fix build with spaces in names. r263185 | imp | Make pcengines config files compile again. r263186 | imp | Use UFS2 by default, but allow fallback to UFS1 r263187 | imp | Print an error message when we exit out early. r263188 | imp | Sometimes only copy MBR when backing via swap r263189 | imp | Update save_cfg r263190 | imp | Be more explicit about setting SRCCONF to /dev/null r263192 | imp | Rely on default UFS type r263193 | imp | Remove TARGET_BIG_ENDIAN. It's no longer relevant. r263287 | bdrewery | pkg(8) has no limits r263288 | bdrewery | Remove comment meant for removal in r263287 r263890 | imp | Up default media size to 1GB. r264281 | imp | Ignore .hg and .git files r264655 | imp | rm -x for safety r264656 | imp | new example: dhcpd derived from FreeNAS/BSDRP r264856 | imp | Override the parallel make target to use all CPUs. r264857 | imp | No need for true here, remove it. r264858 | imp | NANO_PKG_META_BASE r264859 | imp | stylize umount hack r264860 | imp | switch dhcpd to pkg(8). r264861 | imp | CR and CR0 added from dhcpd r264891 | imp | Try to alwaays use () for functions r264892 | imp | bash whines about r264857, revert r264909 | imp | Move back to {} for functions that need global effects
* MFC r264581, r264744:pfg2014-04-3014-73/+73
| | | | | | Various style(9) fixes and typos in printf, grep, sort and patch. #define should be followed by a tab.
* MFC r265046smh2014-04-302-23/+47
| | | | | | Fix ZIO reordering issue which could cause data loss / corruption. Sponsored by: Multiplay
* Fix devfs rules not applied by default for jails.delphij2014-04-304-6/+7
| | | | | | | | | | | | | Fix OpenSSL use-after-free vulnerability. Fix TCP reassembly vulnerability. Security: FreeBSD-SA-14:07.devfs Security: CVE-2014-3001 Security: FreeBSD-SA-14:08.tcp Security: CVE-2014-3000 Security: FreeBSD-SA-14:09.openssl Security: CVE-2010-5298
* MFC r265015:hselasky2014-04-294-2/+9
| | | | | Setting the IMOD value below 0x3F8 can cause IRQ lockups in the Intel LynxPoint USB 3.0 controllers found in MacBookPro 2013's.
* MFC r262775:markj2014-04-291-1/+1
| | | | | Log the name of the file that we failed to open rather than an uninitialized buffer.
* MFC r264436:markj2014-04-291-3/+3
| | | | | | Fix some off-by-one errors. The kve_end and rdl_eaddr fields contain the first address after the end of the map entry and should therefore be excluded.
* MFC r263052, r263124, r263265, r263267... Enhance loaderdev env var.ian2014-04-295-95/+336
| | | | | | | | | | | | | | | | | Enhance the mechanism that lets you configure the ubldr boot device by setting the u-boot environment variable loaderdev=. It used to accept only 'disk' or 'net'. Now it allows specification of unit, slice, and partition as well. In addition to the generic 'disk' it also accepts specific storage device types such as 'mmc' or 'sata'. If there isn't a loaderdev env var, the historical behavior is maintained. It will use the first storage device it finds, or a network device if no working storage device exists. 99% of the work on this was done by Patrick Kelsey, but I made some changes, so if anything goes wrong, blame me. (Indeed, the 3 followup commits fixed things I got wrong on the first.)
* MFC r262666: exit with code 0xbadab1 if the u-boot API support is missing.ian2014-04-291-3/+9
|
* MFC r262664, r262694:ian2014-04-295-5/+27
| | | | | | | | | | | | | Prevent fdt data loaded from a file from overwriting the kernel environment, by having uboot_autoload() do the fdt setup (which may load a file) rather than waiting until we're actually in the process of launching the kernel. As part of making this happen... - Define LOADER_FDT_SUPPORT on the uboot/lib compile command line when MK_FDT is set. - Make fdt_setup_fdtb() public. - Declare public fdt_whatever() functions in a header instead of using scattered extern decls in .c files.
* MFC r262340, r262345, r262347, find and load an appropriate dtb file.ian2014-04-293-24/+91
| | | | | | | | | | | | The search order for a usable dtb in fdt_setup_fdtp() is now - A dtb loaded with an explicit "load -t dtb" command. - A dtb already loaded into memory somehow[*] and pointed to by fdt_to_load. - A dtb in the memory pointed to by the u-boot env vars fdtaddr or fdt_addr. - A file named by the u-boot env vars fdtfile or fdt_file. - A static dtb compiled into the kernel. * Presumably by some arch-specific command or code.
* MFC r262337: Allow the boot device to be choosen by a u-boot env variable.ian2014-04-291-15/+73
| | | | | | If a "loaderdev=<device>" env variable is set and the named device exists, it is used. If the device doesn't exist, fall back to the historic "probe" loop that prefers disk devices over network devices.
* MFC r262326 (white space) and r262327 (fdt_addr).ian2014-04-291-33/+36
| | | | | | | | | | | | | | This change was supposed to be whitespace only, but a functional change snuck in, as follows: Look for both fdtaddr and fdt_addr env var names. Grepping the u-boot source shows that board vendors seem to be about evenly split on this. The added lines were: /* Board vendors use both fdtaddr and fdt_addr names. Grrrr. */ if (s == NULL) s = ub_env_get("fdt_addr");
* MFC r261819 & r262242: Actually validate the header of a loaded dtb file.ian2014-04-291-11/+11
|
* MFC r257210, r258527: No hardfloat in ubldr, save/restore r9 for api calls.ian2014-04-282-7/+13
|
* MFC r264018: update list of supported FTDI chips.ian2014-04-281-4/+26
|
* MFC r264800: fixes for problems found by Coverity scan...ian2014-04-281-5/+12
| | | | | | | - Get transmit loop more in line with the other serial drivers. - Add a comment about FTDI and ZLPs. - Correctly check odditiy of baud rate divisor. - Correct IOCTL handling for "error" and "event" char.
* MFC uftdi(4) driver changes...ian2014-04-284-235/+728
| | | | | | | r264010: Support speeds up to 12mbaud on newer chips. r264031: Use 2K IO buffers for improved throughput. r264149: Add ioctl(2) calls to access bitbang, MPSSE, CPU_FIFO, and other modes.
* MFC r264467:delphij2014-04-282-7/+54
| | | | | | | | | Take into account when zpool history block grows exceeding 128KB in zpool(8) and zdb(8) by growing the buffer on demand with a cap of 1GB (specified in spa_history_create_obj()). PR: bin/186574 Submitted by: Andrew Childs <lorne cons org nz> (with changes)
* MFC r264741: Add placeholder Kyuafiles for various top-level hierarchies.jmmv2014-04-2831-6/+256
| | | | This is "make tinderbox" clean.
* MFC r264689:mm2014-04-273-12/+28
| | | | | | | | | De-virtualize UMA zone pf_mtag_z and move to global initialization part. The m_tag struct does not know about vnet context and the pf_mtag_free() callback is called unaware of current vnet. This causes a panic. PR: kern/182964
OpenPOWER on IntegriCloud