summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* When building universe ensure the required worlds are finished beforeandrew2013-03-311-0/+8
| | | | | | | | | | | starting the kernels. Before this the kernels would be built as part of the last architecture universe target. There can cause problems when this world finishes before the other worlds as the host compiler may be picked up rather than the target compiler. The solution is to add a target to build the universe kernels that depends on all the world targets finishing. As we may not be building a world only depend on it when MAKE_JUST_KERNELS is undefined.
* Add some more stats to keep track of all the reasons that a vcpu is exiting.neel2013-03-304-2/+43
|
* Initialize sym_count to 0.kientzle2013-03-301-1/+1
| | | | This fixes a compiler warning introduced in r248121.
* Use a shared lock for VOP_GETEXTATTR, as it is a read-like operation.mdf2013-03-302-2/+2
| | | | MFC after: 1 week
* Improve namespacing in <sys/socket.h>:jilles2013-03-301-6/+11
| | | | | | | | | * MSG_NOSIGNAL is in POSIX.1-2008. * MSG_NOTIFICATION (SCTP) is not in POSIX. * PRU_FLUSH_* (SCTP) are not in POSIX. * bindat()/connectat() are not in POSIX. Discussed with: rrs (PRU_FLUSH_*)
* AR933x CPU device improvements:adrian2013-03-301-70/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add baud rate and divisor programming code. See below for more information. * Flesh out ar933x_init() to disable interrupts and program the initial console setup. * Remove #if 0'ed code from ar933x_term(). * Explain what these functions do. Now, the baud rate and divisor code comes from Linux, as a submission to the OpenWRT project and Linux kernel from Gabor Juhos <juhosg@openwrt.org>. The original ticket for this code is https://dev.openwrt.org/ticket/12031 . I've contacted Gabor and asked for his permission to also licence the patch in question (which covers this code) to BSD lience and he's agreed. Hence why I'm including it here in FreeBSD. Tested: * AP121 (AR9330)
* AR933x UART updates:adrian2013-03-301-11/+8
| | | | | | | | | | | * Default clock is 25MHz; * Remove the UART register macro here - it's not needed as we don't need to "adjust" the register offset / spacing at all; * Remove unused fields in the softc. Tested: * AP121
* cxgbe(4): Add support for Chelsio's Terminator 5 (aka T5) ASIC. Thisnp2013-03-3020-745/+85629
| | | | | | | | | | | includes support for the NIC and TOE features of the 40G, 10G, and 1G/100M cards based on the T5. The ASIC is mostly backward compatible with the Terminator 4 so cxgbe(4) has been updated instead of writing a brand new driver. T5 cards will show up as cxl (short for cxlgb) ports attached to the t5nex bus driver. Sponsored by: Chelsio
* Adds the ability to enable / disable sorting of BIO requests queued withinsmh2013-03-294-9/+55
| | | | | | | | | | | | | | | | | | | | | | | CAM. This can significantly improve performance particularly for SSDs which don't suffer from seek latencies. The sysctl / tunable kern.cam.sort_io_queues provides the systems default setting where:- 0 = queued BIOs are NOT sorted 1 = queued BIOs are sorted (default) Each device gets its own sysctl kern.cam.<type>.<id>.sort_io_queue Valid values are:- -1 = use system default (default) 0 = queued BIOs are NOT sorted 1 = queued BIOs are sorted Note: Additional patch will look to add automatic use of none sorted queues for none rotating media e.g. SSD's Reviewed by: scottl Approved by: pjd (mentor) MFC after: 2 weeks
* Keep fwd_tag around for subsequent pcb lookupsemaste2013-03-291-17/+8
| | | | | | | | | | For TIMEWAIT handling tcp_input may have to jump back for an additional pass through pcblookup. Prior to this change the fwd_tag had been discarded after the first lookup, so a new connection attempt delivered locally via 'ipfw fwd' would fail to find a match. As of r248886 the tag will be detached and freed when passed to the socket buffer.
* Add "type" to nvme_request, signifying if its payload is a VADDR, UIO, orjimharris2013-03-295-37/+63
| | | | | | | NULL. This simplifies decisions around if/how requests are routed through busdma. It also paves the way for supporting unmapped bios. Sponsored by: Intel
* Disable this; it's a local option that I haven't yet committed to -HEAD.adrian2013-03-291-1/+1
|
* Add userland access to at91 gpio functionality via ioctl calls. Also,ian2013-03-293-29/+336
| | | | | | | | | | | | | | add the ability for userland to be notified of changes on gpio pins via a select(2)/read(2) interface. Change the interrupt handler from filtered to threaded. Because of the uiomove() calls in the new interface, change locking from standard mutex to sx. Add / restore the at91_gpio_high_z() function. Reviewed by: imp (long ago)
* Change the API for at91_pio_gpio_get() to return the entire masked setian2013-03-291-3/+1
| | | | | | of bits, not just a 0/1 indicating whether any of the masked bits are on. This is compatible with the single in-tree caller of this function right now (at91_vbus_poll() in dev/usb/controller/at91dci_atemelarm.c).
* Call soc_info.soc_data->soc_clock_init() before at91_pmc_init_clock(), soian2013-03-291-2/+11
| | | | | that the latter correctly fills in the clock data structures based on proper hardware-specific shift and mask values from the soc_data structure.
* Change the define in the header to eliminate unnecessary datajfv2013-03-291-1/+1
| | | | when using LEGACY TX.
* Add a couple forward declarations, so that board support routines don't haveian2013-03-291-3/+5
| | | | to pre-include a bunch of header files they don't need just to use this one.
* Change defines in the igb driver to allow an easier selection ofjfv2013-03-292-18/+24
| | | | | | | | the older if_start/non-multiqueue interface from the stack. This is not the default, but can be turned on in the Makefile now regardless of the OS level to allow either testing or use of ALTQ. MFC after: one week
* Redo the workaround for at91rm9200 erratum #26 in a way that doesn'tian2013-03-291-15/+9
| | | | cause a lockup on some rm92 hardware.
* Fix a typo: the RXD0 pin is PA18, not PA19.ian2013-03-291-1/+1
|
* Two small fixes:jfv2013-03-291-8/+36
| | | | | | | | | | Set promiscuous code was unconditionally turning off multicast when turning off promiscuous mode, this should only be done when there are less than MAX groups. Thanks to Mike Karels for this correction. Second, the overtmp interrupt setup/detection was wrong, correcting it. MFC after: one week
* Remove a really noisy printf left over from debugging hardware errata.ian2013-03-291-2/+0
|
* Add bus_dmamap_load_bio for non-CAM disk drivers that wish to enablejimharris2013-03-292-0/+46
| | | | | | | unmapped I/O. Sponsored by: Intel Reviewed by: kib
* Add CTR5() to bus_dmamap_load_ccb, similar to other bus_dmamap_load_*jimharris2013-03-291-0/+4
| | | | | | functions. Sponsored by: Intel
* Do not add 1 to nsegs before passing to CTR5(), since nsegsjimharris2013-03-291-3/+3
| | | | | | has already been incremented before these calls. Sponsored by: Intel
* Pass correct parameter to CTR5() in bus_dmamap_load_uio.jimharris2013-03-291-1/+1
| | | | Sponsored by: Intel
* Fix bug in m_split() in a case when split len matches len of theglebius2013-03-291-1/+10
| | | | | | | first mbuf, and the first mbuf is M_PKTHDR. PR: kern/176144 Submitted by: Jacques Fourie <jacques.fourie gmail.com>
* Once ng_ksocket(4) is fixed, re-apply r194662. See this revision forglebius2013-03-291-0/+3
| | | | | | | longer description. Discussed with: andre, rwatson Sponsored by: Nginx, Inc.
* Revamp mbuf handling in ng_ksocket_incoming2():glebius2013-03-291-12/+22
| | | | | | | | | | | | | | | - Clear code that workarounded a bug in FreeBSD 3, and even predated import of netgraph(4). - Clear workaround for m_nextpkt pointing into next record in buffer (fixed in r248884). Assert that m_nextpkt is clear. - Do not rely on SOCK_STREAM sockets containing M_PKTHDR mbufs. Create a header ourselves and attach chain to it. This is correct fix for kern/154676. PR: kern/154676 Sponsored by: Nginx, Inc
* When soreceive_generic() hands off an mbuf from buffer,glebius2013-03-291-0/+1
| | | | | | | | | | clear its pointer to next record, since next record belongs to the buffer, and shouldn't be leaked. The ng_ksocket(4) used to clear this pointer itself, but the correct place is here. Sponsored by: Nginx, Inc
* Whitespace.glebius2013-03-291-10/+10
|
* Non-functional cleanup of ng_ksocket_incoming2().glebius2013-03-291-8/+8
|
* Unbreak compilation after r248868.marius2013-03-291-2/+2
|
* Make pre-shutdown flush and spindown routines to not use xpt_polled_action(),mav2013-03-292-42/+21
| | | | | | but execute the commands in regular way. There is no any reason to cook CPU while the system is still fully operational. After this change polling in CAM is used only for kernel dumping.
* Remove EOL whitespace.joel2013-03-292-156/+156
|
* Minor mdoc fix.joel2013-03-291-1/+1
|
* Implement CAM_PERIPH_FOREACH() macro, safely iterating over the list ofmav2013-03-293-4/+43
| | | | | | | | driver's periphs, acquiring and releaseing periph references while doing it. Use it to iterate over the lists of ada and da periphs when flushing caches and putting devices to sleep on shutdown and suspend. Previous code could panic in theory if some device disappear in the middle of the process.
* For the AR933x UART, the serial clock is not the AHB clock, it's theadrian2013-03-292-2/+2
| | | | reference clock. So use that instead.
* * Fix clock register definitionsadrian2013-03-291-2/+5
| | | | * Add maximum clock register values
* Print out the platform reference frequency.adrian2013-03-291-2/+2
| | | | This is useful for AR933x platforms where that matters.
* - Update hardware notes to reflect that amd64 is no longer "young"[1]gjb2013-03-281-12/+6
| | | | | | - Bump copyright year Patched by: skreuzer
* Welcome clang as the default compiler on ARM.andrew2013-03-281-2/+3
| | | | | | | | | | | | | | Change the default compiler for little-endian ARM to clang to allow for more testing before 10.0 is released. As LLVM and clang currnetly lack support for big-endian ARM leave gcc as the default there. This will also allow us to investigate moving to use the hard floating-point version of the ARM EABI on SoCs that include the Vector Floating Point unit. A version of this is included in all ARMv6 and ARMv7 SoCs we currently, and are likely to support. Both the current ABI and the new EABI are supported by clang and it will be built correctly depending on which is selected by the user.
* Allow caller to skip 'guest linear address' validation when doing instructionneel2013-03-282-5/+16
| | | | | | | decode. This is to accomodate hardware assist implementations that do not provide the 'guest linear address' as part of nested page fault collateral. Submitted by: Anish Gupta (akgupt3 at gmail dot com)
* Reverse the order of some implicit commands (FS mounts and ifconfigs)jamie2013-03-283-7/+11
| | | | | | | | | when stopping jails. This matters particularly for nested filesystem mounts. PR: kern/177325 Submitted by: Harald Schmalzbauer MFC after: 3 days
* Initial (unfinished!) AR933x support.adrian2013-03-284-0/+362
|
* Ignore interface renames instead of removing the interface from the bridgemarkj2013-03-281-0/+3
| | | | | | | | | group. Reviewed by: rstone Approved by: rstone (co-mentor) Sponsored by: Sandvine Incorporated MFC after: 1 week
* Update to upstream version 2.7fanf2013-03-284-216/+416
| | | | | | | | | | | The most notable new feature is support for processing multiple files in one invocation. There is also support for more make-friendly exit statuses. The most notable bug fix is #line directives now include the input file name. Obtained from: http://dotat.at/prog/unifdef
* Commit a patch that fixes a problem in the #pragma statement when searchinggnn2013-03-281-3/+27
| | | | | | | | | for and loading dependent modules. This addresses a bug seen with io.d where it was being doubly included. PR: 171678 Submitted by: Mark Johnston MFC after: 2 weeks
* Revert previous change in favor of a fix to the actual dtracegnn2013-03-281-0/+2
| | | | libraries that addresses a #pragma issue.
* Remove dependency code that caused a double inclusion.gnn2013-03-281-2/+0
| | | | Pointed out by: rpaulo and others
OpenPOWER on IntegriCloud