summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Move the /usr/src specific options to src.opts.mk. Move inclusion ofimp2014-05-063-350/+398
| | | | | | | | | | | /etc/src.conf to this file as well. Now, it will only affect builds of /usr/src and not others that use the bsd.*.mk files. Specifically don't install src.opts.mk so we can catch when it 'leaks' into bsd.*.mk again and have there be errors when this happens. Future commits will move to including src.opts.mk instead of bsd.own.mk when all that's needed is one of the MK_FOO options from src.opts.mk. Future options should be placed here, unless they directly affect a bsd.*.mk file, in which case they should be placed in bsd.opts.mk.
* Prior to r254304, a separate function, vm_pageout_page_stats(), was used toalc2014-05-061-3/+5
| | | | | | | | | | | | | | | | | | | | | periodically update the reference status of the active pages. This function was called, instead of vm_pageout_scan(), when memory was not scarce. The objective was to provide up to date reference status for active pages in case memory did become scarce and active pages needed to be deactivated. The active page queue scan performed by vm_pageout_page_stats() was virtually identical to that performed by vm_pageout_scan(), and so r254304 eliminated vm_pageout_page_stats(). Instead, vm_pageout_scan() is called with the parameter "pass" set to zero. The intention was that when pass is zero, vm_pageout_scan() would only scan the active queue. However, the variable page_shortage can still be greater than zero when memory is not scarce and vm_pageout_scan() is called with pass equal to zero. Consequently, the inactive queue may be scanned and dirty pages laundered even though that was not intended by r254304. This revision fixes that. Reported by: avg MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
* Modify Copyright information to reflect Qlogic Corporation's purchasedavidcs2014-05-0623-176/+27
| | | | | | | of Broadcom's NetXtreme business Submitted by:David C Somayajulu (davidcs@freebsd.org) QLogic Corporation MFC after:5 days
* Modify the RX path to keep the previous RX descriptor around once it'sadrian2014-05-063-17/+122
| | | | | | | | | | | | | | | | | | | | | | | | used. It turns out that the RX DMA engine does the same last-descriptor-link- pointer-re-reading trick that the TX DMA engine. That is, the hardware re-reads the link pointer before it moves onto the next descriptor. Thus we can't free a descriptor before we move on; it's possible the hardware will need to re-read the link pointer before we overwrite it with a new one. Tested: * AR5416, STA mode TODO: * more thorough AP and STA mode testing! * test on other pre-AR9380 NICs, just to be sure. * Break out the RX descriptor grabbing bits from the RX completion bits, like what is done in the RX EDMA code, so .. * .. the RX lock can be held during ath_rx_proc(), but not across packet input.
* - Remove net.inet.tcp.reass.overflows sysctl. It counts exactlyglebius2014-05-063-14/+4
| | | | | | | | | same events that tcpstat's tcps_rcvmemdrop counter counts. - Rename tcps_rcvmemdrop to tcps_rcvreassfull and improve its description in netstat(1) output. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Disable the 'uart_drain()' callback when the emulated receive FIFO is full.neel2014-05-051-47/+82
| | | | | | | | | | | Failing to do this will cause the kevent(2) notification to trigger continuously and the bhyve(8) mevent thread will hog the cpu until the characters on the backend tty device are drained. Also, make the uart backend file descriptor non-blocking to avoid a select(2) before every byte read from that backend. Reviewed by: grehan
* Use 'return' instead of 'exit' in main(), since the script exitsgjb2014-05-051-6/+6
| | | | | | with the last returned exit code. Sponsored by: The FreeBSD Foundation
* Add a helper script for parsing 'svn log' for thegjb2014-05-051-0/+133
| | | | | | | | | | | | 'Relnotes:' tag in case 'yes' is not explicitly the first string value following the tab. As it turns out, a number of commits have bypassed my filters (both email and 'svn log --search'), and this script returns the results I want when doing these searches. Sponsored by: The FreeBSD Foundation
* Switch vga drivers to use names and new vt(4) driver probe method.ray2014-05-051-4/+18
| | | | Sponsored by: The FreeBSD Foundation
* Revert r264997 and r265026. It is not required anymore.ray2014-05-051-15/+0
| | | | Sponsored by: The FreeBSD Foundation
* Simplify use of the semi-bogus EARLY_BUILD variable. Also, simplifyimp2014-05-051-12/+13
| | | | | use of semi-bogus NO_WARNS variable. Both of these, in this case, should collapse to WITHOUT_WARNS in a future commit.
* Introduce CWARNFLAGS.${COMPILER_TYPE} and use that to simplify theimp2014-05-052-21/+22
| | | | | | thicket of .if ${COMPILER_TYPE} == "clang" that controls warnings. Also, use CFLAGS.clang in a couple places in preference to having a similar construct that's related to the CWARNFLAGS changes.
* [1] Make WITHOUT_FOO alway trump WITH_FOO, regardless of the systemimp2014-05-051-11/+23
| | | | | | | | | | default. This restores more of the historical expectations that were broken when we started disallowing both WITH_FOO and WITHOUT_FOO to be defined. [2] Document this new behavior, and improve the documentation in general here. Submitted by: sjg@ [1].
* Add vt(4) driver name for ofwfb driver.ray2014-05-051-0/+1
| | | | Sponsored by: The FreeBSD Foundation
* Switch fb and efifb drivers to use names and new vt(4) driver probe method.ray2014-05-054-37/+157
| | | | Sponsored by: The FreeBSD Foundation
* Garbage collect two more unused sysinit subsystems: SI_SUB_KVM_RSRC andrwatson2014-05-051-2/+0
| | | | | | SI_SUB_CLISTS. MFC after: 3 days
* Set of updates to vt(4) core part.ray2014-05-051-12/+117
| | | | | | | | | | | | | | | | o Declare vt(4) drivers dataset. o Create single static structures for all early drivers. o Add vt(4) to be by default in the kernel consoles list. o Create one more sysinit point, to be able to initialize memory and lock requirement of early drivers. o Implement early drivers select. (Only best available will be selected). o Fix one missed "return (0)" for VTYLOCK. o Improve locking for cases when one driver replace another. o Make driver replacement notification less debug-look-like. Minor spell fixes. Sponsored by: The FreeBSD Foundation
* The tcp_log_addrs() uses th pointer, which points into the mbuf, thus weglebius2014-05-051-1/+1
| | | | | | | can not free the mbuf before tcp_log_addrs(). Sponsored by: Nginx, Inc. Sponsored by: Netflix
* Create dataset for vt(4) drivers.ray2014-05-051-0/+3
| | | | Sponsored by: The FreeBSD Foundation
* Define a new method for probing vt(4) driver before attach it at early stage.ray2014-05-051-0/+3
| | | | Sponsored by: The FreeBSD Foundation
* Adjust #if statements inside mprsas_send_smpcmd() to more accuratelyken2014-05-051-5/+6
| | | | | | | | | | | | | | | | reflect when unmapped I/O support was added. For FreeBSD 10, it arrived just prior to __FreeBSD_version 1000028. For FreeBSD 9, it arrived just prior to __FreeBSD_version 902001. Also, fix compiler warnings in mprsas_send_smpcmd() that happen in the i386 PAE build for non-unmapped I/O builds. These were fixed in mps(4) in revision 241145, but didn't make it into the mpr(4) driver. This change should only affect FreeBSD versions outside the above revisions, and thus doesn't affect head. MFC after: 3 days Sponsored by: Spectra Logic Corporation
* Remove the ifconfig test added in rev 263445. After discussion withasomers2014-05-055-141/+4
| | | | | | | | | | | | | | | | | melifaro, we agreed that ifconfig's behavior was not a bug. The main motivation for bin/187551 was to partially resolve kern/187549, but we resolved kern/187549 in a different way instead. ObsoleteFiles.inc etc/mtree/BSD.tests.dist sbin/ifconfig/tests/fibs_test.sh sbin/ifconfig/tests/Makefile sbin/ifconfig/Makefile Remove /usr/tests/sbin/ifconfig PR: bin/187551 MFC after: 3 days Sponsored by: Spectra Logic
* Modify the "-p" option to be more flexible when associating a 'vcpu' withneel2014-05-052-17/+50
| | | | | | | | | | a 'hostcpu'. The new format of the argument string is "vcpu:hostcpu". This allows pinning a subset of the vcpus if desired. It also allows pinning a vcpu to more than a single 'hostcpu'. Submitted by: novel (initial version)
* Revert r265367:pfg2014-05-051-1/+1
| | | | | | | | Use of calloc instead of malloc in regex (from OpenBSD). In this case the change makes no sense since we are using realloc() later. Reported by: ache
* Fill in csum_data only for UDP or TCP packets. This fixes a bug wheretuexen2014-05-051-19/+29
| | | | | | | SCTP were reported to have always a correct checksum if they don't contain any ethernet padding. MFC after: 3 days
* Wake up the hardware before calling ath_mode_init() in the ioctl() path.adrian2014-05-051-0/+2
| | | | | | Tested: * AR5416, STA + powersave
* regex: Use calloc instead of malloc.pfg2014-05-051-1/+1
| | | | | | | Mostly to reduce differences with OpenBSD. Obtained from: OpenBSD (CVS rev. 1.17) MFC after: 3 days
* Remove misleading "addcpu" in an error message emitted by fbsdrun_deletecpu().neel2014-05-051-2/+1
| | | | Pointed out by: novel
* Re-adding an event to a kqueue modifies the parameters of the original event.neel2014-05-051-7/+12
| | | | | | | | | | | | However, if the original knote had been disabled then it is not automatically re-enabled. Fix this by using EV_ADD to create an mevent and EV_ENABLE to enable it. Adding a kevent for the first time implicitly enables it so existing callers of mevent_add() don't need to change. Reviewed by: grehan
* Virtual machine halt detection is turned on by default. Allow it to beneel2014-05-051-1/+11
| | | | disabled via the tunable 'hw.vmm.halt_detection'.
* Avoid unsigned integer overflow which can causetruckman2014-05-051-2/+16
| | | | | | | | | | | | rman_reserve_resource_bound() to return incorrect results. Continue the initial search until the first viable region is found. Add a comment to explain the search termination test. PR: kern/188534 Reviewed by: jhb (previous version) MFC after: 1 week
* Mention the axge(4) driver in the hardware notes.brueffer2014-05-051-0/+3
| | | | MFC after: 1 week
* Remove stray comma.brueffer2014-05-051-1/+1
| | | | MFC after: 3 days
* Build the kernel sound module without ISA DMA support for ARM and MIPShselasky2014-05-051-1/+2
| | | | | | | | platforms, because these platforms do not implement the ISA DMA API. Else the sound modules cannot be loaded when running these platforms. MFC after: 2 weeks
* Improve DWC OTG USB host side support for isochronous FULL and HIGHhselasky2014-05-053-261/+768
| | | | | | | | | speed data traffic going directly to a USB device or through a so-called USB transaction translator. Add checks that we are not overusing the TX FIFO. MFC after: 2 weeks
* Make r242379 - the fix for UFS labels disappearing after resizingtrasz2014-05-051-2/+4
| | | | | | | | the provider - also apply to UFS1 filesystems. This should help with resizing filesystems created by makefs(8), which still uses UFS1. Tested by: jmg@ Sponsored by: The FreeBSD Foundation
* Break out the multicast programming into its own hardware specificadrian2014-05-051-6/+30
| | | | | | | | | | | | | | | | call, which assumes the hardware is awake. Turn ath_update_mcast() into a routine that's only called from the net80211 layer - and it forces the hardware awake first. This fixes a LOR from the EDMA RX path which calls ath_mode_init() with the RX lock held - the driver lock can't also be grabbed. This path assumes that the ath_mode_init() callers all wake up the NIC first. Tested: * AR9485, STA mode, powersave
* Quieten the RX/TX descriptor and FIFO setup debugging.adrian2014-05-052-14/+21
| | | | | | Tested: * AR9485, STA mode
* Add Atheros AR1111 support to the HAL.adrian2014-05-052-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This seems to probe/attach as an AR9485 and thus nothing else besides adding the device id seems to be required. ath0: <Atheros AR1111> mem 0xf4800000-0xf487ffff irq 19 at device 0.0 on pci5 ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 RX streams; 1 TX streams ath0: AR9485 mac 576.1 RF5110 phy 1926.8 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 The NIC I have here is a 1 antenna, 2GHz only device. Thankyou to Jim Thompson <jim@netgate.com> for the AR1111 NIC. Tested: * AR1111 (pretending not to be an AR9485, but failing miserably); STA mode with powersave. Relnotes: yes Sponsored by: Netgate
* lindev(4): add to ObsoleteFileseadler2014-05-051-1/+2
| | | | | | | - add man page - past removals did not add the .ko so don't add it this time either Reported by: gleb
* The FreeBSD-SA-14:08.tcp was a lesson on not doing acrobatics withglebius2014-05-046-173/+77
| | | | | | | | | | | | | | | | | | | mixing on stack memory and UMA memory in one linked list. Thus, rewrite TCP reassembly code in terms of memory usage. The algorithm remains unchanged. We actually do not need extra memory to build a reassembly queue. Arriving mbufs are always packet header mbufs. So we got the length of data as pkthdr.len. We got m_nextpkt for linkage. And we need only one pointer to point at the tcphdr, use PH_loc for that. In tcpcb the t_segq fields becomes mbuf pointer. The t_segqlen field now counts not packets, but bytes in the queue. This gives us more precision when comparing to socket buffer limits. Sponsored by: Netflix Sponsored by: Nginx, Inc.
* Add an advice what to do when partition was automatically resized.ae2014-05-041-2/+4
| | | | X-MFC after: r256690
* Fix typo: s/null/fullgjb2014-05-041-1/+1
| | | | | Spotted by: jilles Sponsored by: The FreeBSD Foundation
* Add better error description for case when we are doing resize andae2014-05-041-1/+3
| | | | | | scheme-specific method returns EBUSY. MFC after: 1 week
* Prevent an unexpected shrinking on resizing due to alignment for MBR,ae2014-05-043-3/+18
| | | | | | | PC98 and VTOC8 schemes. Reported by: jmg MFC after: 1 week
* Disable ACPI and P4TCC throttling by default, following discussion onnwhitehorn2014-05-042-0/+4
| | | | | | | | freebsd-current. These CPU speed control techniques are usually unhelpful at best. For now, continue building the relevant code into GENERIC so that it can trivially be re-enabled at runtime if anyone wants it. MFC after: 1 month
* Provide better descriptions for 'struct ctl_scsiio' fields; based mostlytrasz2014-05-041-8/+47
| | | | on emails from ken@.
* Use a zio flag to prevent recursion of vdev_queue_io_done which cansmh2014-05-042-0/+12
| | | | | | | | | | | | cause stack overflow for IO's which return ZIO_PIPELINE_CONTINUE from the zio_vdev_io_start stage and hence don't suspend and complete in a different thread. This prevents double fault panic on slow machines running ZFS on GELI volumes which return EOPNOTSUPP directly to BIO_DELETE requests. MFC after: 1 month X-MFC-With: r265152
* Expand PGET_WANTREAD. Language fixes.pluknet2014-05-041-4/+6
| | | | Submitted by: jmg
* Treat the '-' as meaning standard input.pluknet2014-05-042-7/+12
| | | | Obtained from: NetBSD
OpenPOWER on IntegriCloud