aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | Fix a typo: the RXD0 pin is PA18, not PA19.Ian Lepore2013-03-291-1/+1
| | | | | | | | Notes: svn path=/head/; revision=248902
* | Two small fixes:Jack F Vogel2013-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 Notes: svn path=/head/; revision=248901
* | Remove a really noisy printf left over from debugging hardware errata.Ian Lepore2013-03-291-2/+0
| | | | | | | | Notes: svn path=/head/; revision=248899
* | Add bus_dmamap_load_bio for non-CAM disk drivers that wish to enableJim Harris2013-03-292-0/+46
| | | | | | | | | | | | | | | | | | | | unmapped I/O. Sponsored by: Intel Reviewed by: kib Notes: svn path=/head/; revision=248896
* | Add CTR5() to bus_dmamap_load_ccb, similar to other bus_dmamap_load_*Jim Harris2013-03-291-0/+4
| | | | | | | | | | | | | | | | | | functions. Sponsored by: Intel Notes: svn path=/head/; revision=248893
* | Do not add 1 to nsegs before passing to CTR5(), since nsegsJim Harris2013-03-291-3/+3
| | | | | | | | | | | | | | | | | | has already been incremented before these calls. Sponsored by: Intel Notes: svn path=/head/; revision=248892
* | Pass correct parameter to CTR5() in bus_dmamap_load_uio.Jim Harris2013-03-291-1/+1
| | | | | | | | | | | | | | Sponsored by: Intel Notes: svn path=/head/; revision=248891
* | Fix bug in m_split() in a case when split len matches len of theGleb Smirnoff2013-03-291-1/+10
| | | | | | | | | | | | | | | | | | | | first mbuf, and the first mbuf is M_PKTHDR. PR: kern/176144 Submitted by: Jacques Fourie <jacques.fourie gmail.com> Notes: svn path=/head/; revision=248887
* | Once ng_ksocket(4) is fixed, re-apply r194662. See this revision forGleb Smirnoff2013-03-291-0/+3
| | | | | | | | | | | | | | | | | | | | longer description. Discussed with: andre, rwatson Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=248886
* | Revamp mbuf handling in ng_ksocket_incoming2():Gleb Smirnoff2013-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 Notes: svn path=/head/; revision=248885
* | When soreceive_generic() hands off an mbuf from buffer,Gleb Smirnoff2013-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 Notes: svn path=/head/; revision=248884
* | Whitespace.Gleb Smirnoff2013-03-291-10/+10
| | | | | | | | Notes: svn path=/head/; revision=248883
* | Non-functional cleanup of ng_ksocket_incoming2().Gleb Smirnoff2013-03-291-8/+8
| | | | | | | | Notes: svn path=/head/; revision=248882
* | Unbreak compilation after r248868.Marius Strobl2013-03-291-2/+2
| | | | | | | | Notes: svn path=/head/; revision=248874
* | Make pre-shutdown flush and spindown routines to not use xpt_polled_action(),Alexander Motin2013-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. Notes: svn path=/head/; revision=248872
* | Remove EOL whitespace.Joel Dahl2013-03-292-156/+156
| | | | | | | | Notes: svn path=/head/; revision=248871
* | Minor mdoc fix.Joel Dahl2013-03-291-1/+1
| | | | | | | | Notes: svn path=/head/; revision=248870
* | Implement CAM_PERIPH_FOREACH() macro, safely iterating over the list ofAlexander Motin2013-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. Notes: svn path=/head/; revision=248868
* | For the AR933x UART, the serial clock is not the AHB clock, it's theAdrian Chadd2013-03-292-2/+2
| | | | | | | | | | | | | | reference clock. So use that instead. Notes: svn path=/head/; revision=248867
* | * Fix clock register definitionsAdrian Chadd2013-03-291-2/+5
| | | | | | | | | | | | | | * Add maximum clock register values Notes: svn path=/head/; revision=248866
* | Print out the platform reference frequency.Adrian Chadd2013-03-291-2/+2
| | | | | | | | | | | | | | This is useful for AR933x platforms where that matters. Notes: svn path=/head/; revision=248865
* | - Update hardware notes to reflect that amd64 is no longer "young"[1]Glen Barber2013-03-281-12/+6
| | | | | | | | | | | | | | | | | | - Bump copyright year Patched by: skreuzer Notes: svn path=/head/; revision=248857
* | Welcome clang as the default compiler on ARM.Andrew Turner2013-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. Notes: svn path=/head/; revision=248856
* | Allow caller to skip 'guest linear address' validation when doing instructionNeel Natu2013-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) Notes: svn path=/head/; revision=248855
* | Reverse the order of some implicit commands (FS mounts and ifconfigs)Jamie Gritton2013-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 Notes: svn path=/head/; revision=248854
* | Initial (unfinished!) AR933x support.Adrian Chadd2013-03-284-0/+362
| | | | | | | | Notes: svn path=/head/; revision=248853
* | Ignore interface renames instead of removing the interface from the bridgeMark Johnston2013-03-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | group. Reviewed by: rstone Approved by: rstone (co-mentor) Sponsored by: Sandvine Incorporated MFC after: 1 week Notes: svn path=/head/; revision=248851
* | Update to upstream version 2.7Tony Finch2013-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 Notes: svn path=/head/; revision=248849
* | Commit a patch that fixes a problem in the #pragma statement when searchingGeorge V. Neville-Neil2013-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 Notes: svn path=/head/; revision=248848
* | Revert previous change in favor of a fix to the actual dtraceGeorge V. Neville-Neil2013-03-281-0/+2
| | | | | | | | | | | | | | libraries that addresses a #pragma issue. Notes: svn path=/head/; revision=248846
* | Remove dependency code that caused a double inclusion.George V. Neville-Neil2013-03-281-2/+0
| | | | | | | | | | | | | | Pointed out by: rpaulo and others Notes: svn path=/head/; revision=248845
* | Tie in the AR933x support into -HEAD.Adrian Chadd2013-03-282-3/+19
| | | | | | | | Notes: svn path=/head/; revision=248844
* | Bring over the initial, CPU-only UART support for the AR933x SoC.Adrian Chadd2013-03-284-0/+1081
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This implements the kernel glue needed (getc, putc, rxready). This isn't a 16550 UART, even if the datasheet overview claims so. The Linux ar933x support was used as a reference, however the uart code is a reimplementation. Attentive viewers will note that the uart code is based off of the ns8250 code and the UART bus code is a stubbed-out version of this. I'll be replacing it with non-stubbed versions soon, making this a fully featured driver. Tested: * AP121 reference board (AR933x), booting through the mountroot> prompt; then doing some basic interactive tests in ddb. Notes: svn path=/head/; revision=248843
* | Update hwpmc to support Haswell class processors.Sean Bruno2013-03-289-187/+1809
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0x3C: /* Per Intel document 325462-045US 01/2013. */ Add manpage to document all the goodness that is available in this processor model. Submitted by: hiren panchasara <hiren.panchasara@gmail.com> Reviewed by: jimharris, sbruno Obtained from: Yahoo! Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=248842
* | Add the "-g <gdport>" option to the vmrun.sh script that enables remoteNeel Natu2013-03-281-3/+8
| | | | | | | | | | | | | | | | | | | | | | debugging of the guest via kgdb. See also: https://wiki.freebsd.org/BHyVe/gdb Obtained from: NetApp Notes: svn path=/head/; revision=248840
* | KGDB: Accept KLD symbol files with the ".symbols" extension.Will Andrews2013-03-281-0/+1
| | | | | | | | | | | | | | | | | | | | Submitted by: gibbs Approved by: ken (mentor) Sponsored by: Spectra Logic MFC after: 1 month Notes: svn path=/head/; revision=248838
* | KGDB: Allow modules to be loaded from the specified kernel's directory.Will Andrews2013-03-281-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When looking up the absolute path for a kld, call find_kld_path() first. This enables locating the module in a different directory than the one stored in kernel memory. With this change, kgdb can now be run on a kernel & vmcore whose associated modules are located in the same directory as the kernel. This makes independent triaging of problems much easier. This change also does not break the normal kgdb use case where no arguments are specified; in that case kgdb loads the running kernel and its modules. Reviewed by: adrian Approved by: ken (mentor) Sponsored by: Spectra Logic MFC after: 1 month Notes: svn path=/head/; revision=248836
* | Remove obsolete comment. This code has now been tested with the QEMUJim Harris2013-03-281-4/+0
| | | | | | | | | | | | | | NVMe device emulator. Notes: svn path=/head/; revision=248835
* | Delete extra IO qpairs allocated based on number of MSI-X vectors, butJim Harris2013-03-281-6/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | later found to not be usable because the controller doesn't support the same number of queues. This is not the normal case, but does occur with the Chatham prototype board. Sponsored by: Intel Notes: svn path=/head/; revision=248834
* | Several fixes and improvements to sendfile()Scott Long2013-03-281-7/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. If we wanted to send exactly as many bytes as the socket buffer is sized for, the inner loop of kern_sendfile() would see that the socket is full before seeing that it had no more bytes left to send. This would cause it to return EAGAIN to the caller instead of success. Fix by changing the order that these conditions are tested. 2. Simplify the calculation for the bytes to send in each iteration of the inner loop of kern_sendfile() 3. Fix some calls with bogus arguments to sf_buf_ext(). These would only trigger on mbuf allocation failure, but would be hilariously bad if they did trigger. Submitted by: gibbs(3), andre(2) Reviewed by: emax, andre Obtained from: Netflix MFC after: 1 week Notes: svn path=/head/; revision=248830
* | Add myself as ports committer.Tijl Coosemans2013-03-281-0/+2
| | | | | | | | | | | | | | Approved by: crees (mentor) Notes: svn path=/head/; revision=248827
* | Restore DB_COMMAND capabilities of ciss(4) for debugging and diagnosticsSean Bruno2013-03-281-2/+5
| | | | | | | | | | | | | | | | Obtained from: Yahoo! Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=248826
* | Except one case mps(4) driver does not touch the data and works well withAlexander Motin2013-03-281-1/+2
| | | | | | | | | | | | | | | | | | unmapped I/O. That one exception is access to INQUIRY VPD request result. Those requests are never unmapped now, but to be safe add respective check there and allow unmapped I/O for the SIM by setting PIM_UNMAPPED flag. Notes: svn path=/head/; revision=248825
* | Fix compile of ciss(4) with CISS_DEBUG definedSean Bruno2013-03-281-1/+1
| | | | | | | | | | | | | | | | Obtained from: Yahoo! Inc. MFC after: 2 weeks Notes: svn path=/head/; revision=248824
* | rc.subr: disabling globbing while processing devfs rulesAndriy Gapon2013-03-281-1/+7
| | | | | | | | | | | | | | | | | | | | | | The rules themselves typically have shell-like patterns and it is incorrect when they get replaced with matching filesystem entries. Shell magic by: jilles MFC after: 2 weeks Notes: svn path=/head/; revision=248820
* | Release the v_writecount reference on the vnode in case of error,Konstantin Belousov2013-03-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | before the vnode is vput() in vm_mmap_vnode(). Error return means that there is no use reference on the vnode from the vm object reference, and failing to restore v_writecount breaks the invariant that v_writecount is less or equal to the usecount. The situation observed when nfs client returns ESTALE for VOP_GETATTR() after the open. In collaboration with: pho MFC after: 1 week Notes: svn path=/head/; revision=248815
* | Fix the AR933x platform device start/stop code.Adrian Chadd2013-03-281-10/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was ported from the AR724x code and I think that also doesn't quite work. I'll investigate that soon. With this in place the system reset path works, so 'reset' from kdb actually resets the SoC. Tested: * AP121 test board Notes: svn path=/head/; revision=248809
* | Make sure that ${SHLIB_NAME}.debug and ${SHLIB_NAME}.symbols are alwaysMark Johnston2013-03-281-5/+3
| | | | | | | | | | | | | | | | | | | | deleted by a "make clean" when DEBUG_FLAGS is set. Reported by: gleb Approved by: emaste (co-mentor) Notes: svn path=/head/; revision=248806
* | Update wiht the times.Warner Losh2013-03-281-1/+2
| | | | | | | | Notes: svn path=/head/; revision=248805
* | deferal -> deferralJim Harris2013-03-271-3/+3
| | | | | | | | Notes: svn path=/head/; revision=248804