summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* By popular demand, move freebsd-version(1) from /libexec to /bin.des2013-10-096-4/+5
| | | | Approved by: re (gjb)
* Properly handle residual count in Data-In PDUs with S bit set.trasz2013-10-091-12/+33
| | | | | Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Fix missing .joel2013-10-091-1/+1
| | | | Approved by: re (blanket)
* Explicitly pass the full path to the input file to sed. This unbreaksdes2013-10-091-1/+1
| | | | | | the WITHOUT_BMAKE build. Approved by: re (gjb)
* Improve logging around some of the isci(4) reset and recovery paths.jimharris2013-10-093-4/+52
| | | | | | | Sponsored by: Intel Discussed with: scottl Approved by: re (marius) MFC after: 1 week
* Be extra paranoid with values obtained from the target.trasz2013-10-091-8/+26
| | | | | Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Fail connection upon receiving too large data segment.trasz2013-10-091-0/+1
| | | | | Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* There are some high performance NICs that count statistics in hardware,glebius2013-10-095-3/+7
| | | | | | | | | | and there are ifnets, that do that via counter(9). Provide a flag that would skip cache line trashing '+=' operation in ether_input(). Sponsored by: Netflix Sponsored by: Nginx, Inc. Reviewed by: melifaro, adrian Approved by: re (marius)
* The device vnodes are often unlocked when bread() or bwrite() iskib2013-10-091-1/+2
| | | | | | | | | | | called. This probably should be fixed eventually, but for now it is not needed to try to flush such vnodes from the buffer allocation context. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (gjb)
* Do not flush buffers when the v_object of the passed vnode does notkib2013-10-091-0/+2
| | | | | | | | | | | | | | | | | | really belong to it. Such vnodes, with the pointers to other vnodes v_objects, are typically instantiated by the bypass filesystems. Invalidating mappings of other vnode pages and the pages is wrong, since reclamation of the upper vnode does not imply that lower vnode is reclaimed too. One of the consequences of the improper reclamation was destruction of the wired mappings of the lower vnode pages, triggering miscellaneous assertions in the VM system. Reported by: John Marshall <john.marshall@riverwillow.com.au> Tested by: John Marshall <john.marshall@riverwillow.com.au>, pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (gjb)
* When growing the file descriptor table, new larger memory chunk iskib2013-10-091-2/+21
| | | | | | | | | | | | | | | allocated, but the old table is kept around to handle the case of threads still performing unlocked accesses to it. Grow the table exponentially instead of increasing its size by sizeof(long) * 8 chunks when overflowing. This mode significantly reduces the total memory use for the processes consuming large numbers of the file descriptors which open them one by one. Reported and tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (marius)
* Reduce code duplication, introduce the getmaxfd() helper to calculatekib2013-10-091-9/+16
| | | | | | | | | the max filedescriptor index. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week Approved by: re (marius)
* Remove no longer useful debugging output and a stale comment.trasz2013-10-091-13/+2
| | | | | Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Update the Intel igb driver to version 2.4.0jfv2013-10-0921-1203/+2004
| | | | | | | | | | | - This version has support for the new Intel Avoton systems, including 2.5Gb support, further it now has IPv6/TSO6 support as well. Shared code has been updated where necessary as well. Thanks to my new assistant Eric Joyner for doing the transmit path changes to bring in the IPv6/TSO6 support. Thanks to Gleb for catching the one bug and change needed in NETMAP. Approved by: re
* Initialize a variable in sys/contrib/ipfilter/netinet/ip_rcmd_pxy.c, todim2013-10-091-1/+1
| | | | | | | silence a gcc warning. Approved by: re (gjb) X-MFC-With: r255332
* Revert r256095, r256120 (partial), r256121:gjb2013-10-0973-27/+25657
| | | | | | | | | | | | | | | r256095: - Add gnu/usr.bin/rcs back to the base system. r256120: - Add WITHOUT_RCS back to src.conf.5. r256121: - Remove UPDATING entry regarding gnu/usr.bin/rcs removal. Requested by: many Approved by: re (marius) Discussed with: core
* Make the error handling more consistant. Shouldn't make any functionaltrasz2013-10-091-9/+23
| | | | | | | difference. Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Remove redundant redeclarations of uart_s3c2410_class indim2013-10-092-3/+0
| | | | | | | | sys/arm/s3c2xx0/uart_bus_s3c2410.c and uart_cpu_s3c2410.c, to silence two gcc warnings. Approved by: re (gjb) X-MFC-With: r252394
* Tidy up, cache return value of a function, and add an assertion;trasz2013-10-091-6/+32
| | | | | | | shouldn't make any functional difference. Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Plug memory leak.trasz2013-10-091-0/+1
| | | | | | Coverity CID: 1087991 Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Fix memory overrun.trasz2013-10-091-1/+1
| | | | | | Coverity CID: 1092478 Approved by: re (gjb) Sponsored by: FreeBSD Foundation
* Plug memory leaks.trasz2013-10-091-1/+3
| | | | | | Coverity CID: 1087993, 1087992 Approved by: re (marius) Sponsored by: FreeBSD Foundation
* Fix two off-by-ones.trasz2013-10-091-2/+2
| | | | | | Coverity CID: 1087999, 1011375 Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Fix incorrect use of sizeof().trasz2013-10-091-1/+1
| | | | | | Coverity CID: 1011303 Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Fix off-by-one.trasz2013-10-091-1/+1
| | | | | | Coverity CID: 1011375 Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* Close the race on path ID allocation in xpt_bus_register() if two buses aremav2013-10-091-9/+6
| | | | | | | | | | | registered simultaneously. Due to topology unlock between the ID allocation and the bus registration there is a chance that two buses may get the same IDs. That is supposed reason of lock assertion panic in CAM during initial bus scanning after new iscsid initiates two sessions same time. Reported by: trasz Approved by: re (glebus, marius) MFC after: 2 weeks
* Fix NOP-In/NOP-Out payload handling. Previous way didn't work at all; ↵trasz2013-10-092-14/+69
| | | | | | | | | fortunately nothing seems to actually use this feature, but it's required by standard. Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* When processing ACK in tcp_do_segment, use sbcut_locked() instead ofglebius2013-10-091-2/+5
| | | | | | | | | | | sbdrop_locked() to cut acked mbufs from the socket buffer. Free this chain a batch manner after the socket buffer lock is dropped. This measurably reduces contention on socket buffer. Sponsored by: Netflix Sponsored by: Nginx, Inc. Approved by: re (marius)
* - Substitute sbdrop_internal() with sbcut_internal(). The latter doesn't freeglebius2013-10-092-11/+36
| | | | | | | | | | | mbufs, but return chain of free mbufs to a caller. Caller can either reuse them or return to allocator in a batch manner. - Implement sbdrop()/sbdrop_locked() as a wrapper around sbcut_internal(). - Expose sbcut_locked() for outside usage. Sponsored by: Netflix Sponsored by: Nginx, Inc. Approved by: re (marius)
* Introduce centralized [X]dialog(1) exit codes to `dialog.subr' and make-usedteske2013-10-0947-206/+208
| | | | | | | | | | throughout the bsdconfig(8) code. While we're here, add an explicit argument to lvalue-seeking invocations of "return" that previously had no argument. Also, consolidate a single instance of double-newline and remove some comments that are no longer required (given increased readability with new exit codes). Approved by: re (glebius)
* Remove redundant declaration of cmclass indim2013-10-091-3/+0
| | | | | | | sys/ofed/drivers/infiniband/core/ucm.c, to silence a gcc warning. Approved by: re (kib) X-MFC-With: r255932
* Parse the memory size parameter using expand_number() to allow specifyingneel2013-10-099-16/+67
| | | | | | | | the memory size more intuitively (e.g. 512M, 4G etc). Submitted by: rodrigc Reviewed by: grehan Approved by: re (blanket)
* Add some missing AR934x register definitions.adrian2013-10-092-0/+45
| | | | | | These are needed for ethernet bootstrap. Approved by: re@ (gjb)
* Fix interrupt handling from the APB periperals (ie, UART) - itadrian2013-10-091-0/+3
| | | | | | | | | | also requires an explicit acknowledgement. Tested: * AR9344 (DB120) SoC Approved by: re@ (gjb)
* Mark AR934x based boards to be mips74k.adrian2013-10-091-1/+1
| | | | | Reviewed by: imp@ Approved by: re@ (gjb)
* Add "better" MIPS24k and MIPS74k barriers.adrian2013-10-092-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * the mips74k cores only need EHB (which is 'sll $0, $0, 3') here; NOPs don't actually work. * add EHB as the last NOP for the default barriers/hazards; that is "better" behaviour and should work on a wider variety of processors. This allows the existing (icky) TLB code to work, allowing the AR9344 SoC (mips74k) to actually get through kernel startup. Tested: * AR9344 SoC - (mips74k) * AR9331 SoC - (mips24k) TODO: * test on mips4k CPUs, just to be sure. * document that sll $0, $0, 3 is actually "EHB" and that it falls back to being a NOP for pre-mips32r1. * mips24k has an errata that we currently don't correctly explicitly state - ie, that after DERET/ERET, the only valid instruction is a NOP. Reviewed by: imp@ Approved by: re@ (gjb)
* Shuffle the includes around so they occur after opt_global.h is included;adrian2013-10-091-4/+5
| | | | | | | this way the CPU ABI / core #define items are there. Reviewed by: imp@ Approved by: re@ (gjb)
* Add two new MIPS CPU families - mips24k and mips74k.adrian2013-10-091-0/+2
| | | | | | | | | | | | | | | | | They're both different cores: * mips24k is an 8-stage pipeline, mips32r1 ABI, non-superscalar core. * mips74k is a dual-issue 15-stage superscalar design, mips32r2 ABI. They have different sets of quirks and bugs; these #define entries will be used to work around these. Now, strictly speaking, we should have CPU ABI families (mips32r1, mips32r2, etc) and CPU core types (mips4k, mips24k, mips74k, etc.) But this is the starting point of that particular tidy-up. Reviewed by: imp@ Approved by: re@ (gjb)
* Fix the LINT build.jimharris2013-10-081-0/+1
| | | | | Approved by: re (implicit) MFC after: 1 week
* Remove mention of [fixed] known issue not-specific to updating.dteske2013-10-081-13/+0
| | | | | | | | Vendor update to [c]dialog-1.2-20130925 has fixed known problems. Vendor update SVN revisions: 255917-255917, 255852, and 255958. Reviewed by: gjb Approved by: re (gjb)
* In sys/amd64/amd64/pmap.c, fix several gcc warnings about uninitializeddim2013-10-081-0/+1
| | | | | | | | variables in reclaim_pv_chunk(). Approved by: re (marius) Reviewed by: neel, kib X-MFC-With: r256072
* In usr.sbin/bhyve/pci_ahci.c, fix several gcc warnings of the formdim2013-10-081-11/+11
| | | | | | | | | | | "assignment makes pointer from integer without a cast", by changing the cmd_lst and rbis members of struct ahci_port from integers to pointers. Also surround a pow-of-2 test expression with parentheses to clarify it, and avoid another gcc warning. Approved by: re (glebius) Reviewed by: grehan, mav
* Properly fix out of memory handling in the iSCSI target.trasz2013-10-081-4/+11
| | | | | Approved by: re (glebius) Sponsored by: FreeBSD Foundation
* After r256062, the static function fbsdrun_get_next_cpu() indim2013-10-081-11/+0
| | | | | | | usr.sbin/bhyve/bhyverun.c is no longer used, so remove it to silence a gcc warning. Approved by: re (glebius)
* Now our binutils's assembler supports the Intel Random Number Generatordim2013-10-081-2/+2
| | | | | | | | | | extensions, we can change the .byte directives in sys/dev/random/ivy.c to plain 'rdrand' mnemonics. This already worked for clang users, but now it will also work for gcc users. Approved by: re (kib) Approved by: so (des) MFC after: 1 week
* Change the behavior of bhyve such that the gdb listening port is opt-inneel2013-10-082-5/+3
| | | | | | | | | | | | | | | rather than opt-out. Prior to this change if the "-g" option was not specified then a listening socket for tunneling gdb packets would be opened at port 6466. If a second virtual machine is fired up, also without the "-g" option, then that would fail because there is already a listener on port 6466. After this change if a gdb tunnel port needs to be created it needs to be explicitly specified with a "-g <portnum>" command line option. Reviewed by: grehan@ Approved by: re@ (blanket)
* Do not leak resources during attach if nvme_ctrlr_construct() or the initialjimharris2013-10-081-3/+9
| | | | | | | | | controller resets fail. Sponsored by: Intel Reviewed by: carl Approved by: re (hrs) MFC after: 1 week
* Log and then disable asynchronous notification of persistent events afterjimharris2013-10-082-7/+56
| | | | | | | | | | | | | | | | | | | | | they occur. This prevents repeated notifications of the same event. Status of these events may be viewed at any time by viewing the SMART/Health Info Page using nvmecontrol, whether or not asynchronous events notifications for those events are enabled. This log page can be viewed using: nvmecontrol logpage -p 2 <ctrlr id> Future enhancements may re-enable these notifications on a periodic basis so that if the notified condition persists, it will continue to be logged. Sponsored by: Intel Reviewed by: carl Approved by: re (hrs) MFC after: 1 week
* Do not enable temperature threshold as an asynchronous event notificationjimharris2013-10-081-0/+14
| | | | | | | | | on NVMe controllers that do not support it. Sponsored by: Intel Reviewed by: carl Approved by: re (hrs) MFC after: 1 week
* Extend some 32-bit fields and variables to 64-bit to prevent overflowjimharris2013-10-083-10/+12
| | | | | | | | | | when calculating stats in nvmecontrol perftest. Sponsored by: Intel Reported by: Joe Golio <joseph.golio@emc.com> Reviewed by: carl Approved by: re (hrs) MFC after: 1 week
OpenPOWER on IntegriCloud