aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Implement xlocale APIs from Darwin, mainly for use by libc++. This adds aDavid Chisnall2011-11-20154-835/+4587
| | | | | | | | | | | | | | | load of _l suffixed versions of various standard library functions that use the global locale, making them take an explicit locale parameter. Also adds support for per-thread locales. This work was funded by the FreeBSD Foundation. Please test any code you have that uses the C standard locale functions! Reviewed by: das (gdtoa changes) Approved by: dim (mentor) Notes: svn path=/head/; revision=227753
* Update and desolarization of zdb(8) and zstreamdump(1) manual pages:Martin Matuska2011-11-204-54/+20
| | | | | | | | | | | | | | - synchronized to match new vendor code [1] - removed ATTRIBUTES sections - updated SEE ALSO sections - properly updated copyright information (required by CDDL) - remove empty lines via MANFILTER Obtained from: Illumos [1] MFC after: 5 days Notes: svn path=/head/; revision=227752
* - Add support for Add LOGITECH Webcam C100Martin Wilke2011-11-201-2/+3
| | | | | | | | | | | | - While here whitespace fixes PR: usb/161559 Submitted by: Sergey Zaykov <mail_of_sergey@mail.ru> Reviewed by: hselasky Approved by: hselasky, rwatson (mentor) Notes: svn path=/head/; revision=227751
* - Add missing usb and ucom devicesMartin Wilke2011-11-2016-16/+48
| | | | | | | | | | | PR: usb/160301 Submitted by: Garrett Cooper <gcooper@ixsystems.com> Reviewed by: hselasky Approved by: hselasky, rwatson (mentor) MFC after: 3 Days Notes: svn path=/head/; revision=227750
* Given that the typical usage of pause() is pause("zzz", hz / N), where N canHans Petter Selasky2011-11-201-1/+1
| | | | | | | | | | be greater than hz in some cases, simply ignore a timeout value of zero. Suggested by: Bruce Evans MFC after: 1 week Notes: svn path=/head/; revision=227749
* Minor style change:Hans Petter Selasky2011-11-201-10/+9
| | | | | | | | | | | Simplify the description of pause() and shorten the KASSERT message in pause. Also add a clamp for the timo argument in the non-KASSERT case. Suggested by: Bruce Evans MFC after: 1 week Notes: svn path=/head/; revision=227748
* - Provide a sysctl interface to change the active system clock at runtime.Lawrence Stewart2011-11-203-2/+568
| | | | | | | | | | | | | | | | | | | | - Wrap [get]{bin,nano,micro}[up]time() functions of sys/time.h to allow requesting time from either the feedback or the feed-forward clock. If a feedback (e.g. ntpd) and feed-forward (e.g. radclock) daemon are both running on the system, both kernel clocks are updated but only one serves time. - Add similar wrappers for the feed-forward difference clock. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) Notes: svn path=/head/; revision=227747
* Fix a whitespace nit.Lawrence Stewart2011-11-201-1/+1
| | | | | | | Submitted by: Julien Ridoux (jridoux at unimelb edu au) Notes: svn path=/head/; revision=227746
* Provide high-level functions to access the feed-forward absolute and differenceLawrence Stewart2011-11-203-0/+153
| | | | | | | | | | | | | | | | | clocks. Each routine can output an upper bound on the absolute time or time interval requested. Different flavours of absolute time can be requested, for example with or without leap seconds, monotonic or not, etc. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) Notes: svn path=/head/; revision=227745
* Since the nfscl_cleanup() function isn't used by the FreeBSD NFSv4 client,Rick Macklem2011-11-201-33/+7
| | | | | | | | | | delete the code and fix up the related comments. This should not have any functional effect on the client. MFC after: 2 weeks Notes: svn path=/head/; revision=227744
* Post r223774 the NFSv4 client never uses the linked list with theRick Macklem2011-11-202-59/+0
| | | | | | | | | | | | head nfsc_defunctlockowner. This patch simply removes the code that loops through this always empty list, since the code no longer does anything useful. It should not have any effect on the client's behaviour. MFC after: 2 weeks Notes: svn path=/head/; revision=227743
* Add 2010 and 2011 copyrights.Christian Brueffer2011-11-191-0/+2
| | | | Notes: svn path=/head/; revision=227742
* Add some (totally untested!) code to correctly set the RF half/quarterAdrian Chadd2011-11-191-0/+14
| | | | | | | | | | mode configuration registers. This is apparently required for correct behaviour, but also requires the chip to actually officially support it. Sponsored by: Hobnob, Inc. Notes: svn path=/head/; revision=227741
* Begin breaking apart the receive setup/stop path in preparation for moreAdrian Chadd2011-11-191-20/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "correct" handling of frames in the RX pending queue during interface transitions. * ath_stoprecv() doesn't blank out the descriptor list - that's what ath_startrecv() does. So, change a comment to reflect that. * ath_stoprecv() does include a large (3ms) delay to let pending DMA complete. However, I'm under the impression that the stopdma hal method does check for a bit in the PCU to indicate DMA has stopped. So, to help with fast abort and restart, modify ath_stoprecv() to take a flag which indicates whether this is needed. * Modify the uses of ath_stoprecv() to pass in a flag to support the existing behaviour (ie, do the delay.) * Remove some duplicate PCU teardown code (which wasn't shutting down DMA, so it wasn't entirely correct..) and replace it with a call to ath_stoprecv(sc, 0) - which disables the DELAY call. The upshoot of this is now channel change doesn't simply drop completed frames on the floor, but instead it cleanly handles those frames. It still discards pending TX frames in the software and hardware queues as there's no (current) logic which forcibly recalculates the rate control information (or whether they're appropriate to be on the TX queue after a channel change), that'll come later. This still doesn't stop all the sources of queue stalls but it does tidy up some of the code duplication. To be complete, queue stalls now occur during normal behaviour - they only occur after some kind of broken behaviour causes an interface or node flush, upsetting the TX/RX BAW. Subsequent commits will incrementally fix these and other related issues. Sponsored by: Hobnob, Inc. Notes: svn path=/head/; revision=227740
* Rename the linker emulation name for powerpc and powerc64. This is needed thatAndreas Tobler2011-11-199-9/+12
| | | | | | | | we can also use the upstream binutils linker where we have to have a unique name for the FreeBSD emulation. Notes: svn path=/head/; revision=227739
* For unknown reason, since rev 1.1 of ifconfig.c, sin_family isn'tGleb Smirnoff2011-11-191-2/+1
| | | | | | | | | | set properly for the mask argument. Since I'd like to improve argument sanity checking in kernel side, in in_control(), fix this. Notes: svn path=/head/; revision=227738
* Pull in r144505 from upstream clang trunk:Dimitry Andric2011-11-199-7/+70
| | | | | | | | | | | | | Fix the signature of the getcontext builtin, eliminating incorrect warnings about its prototype. This also adds a -W(no-)builtin-requires-header option, which can be used to enable or disable warnings of this kind. MFC after: 1 week Notes: svn path=/head/; revision=227737
* Pull in r144237 from upstream clang trunk:Dimitry Andric2011-11-191-2/+2
| | | | | | | | | | Fix the signature of __sigsetjmp and sigsetjmp. This eliminates incorrect warnings about the prototypes of these functions. MFC after: 1 week Notes: svn path=/head/; revision=227736
* Pull in r144110 from upstream clang trunk:Dimitry Andric2011-11-192-113/+105
| | | | | | | | | | | | | Mark the overloaded atomic builtins as having custom type checking, which they do. This avoids all of the default argument promotions that we (1) don't want, and (2) undo during that custom type checking, and makes sure that we don't run into trouble during template instantiation. Fixes llvm/clang PR11320. MFC after: 1 week Notes: svn path=/head/; revision=227735
* - Add myselfMichael Scheidell2011-11-191-0/+2
| | | | | | | Approved by: gabor(mentor) Notes: svn path=/head/; revision=227731
* Initial version of cesa(4) driver for Marvell crypto engine and securityRafal Jaworowski2011-11-197-0/+1977
| | | | | | | | | | | | | | accelerator. The following algorithms and schemes are supported: - 3DES, AES, DES - MD5, SHA1 Obtained from: Semihalf Written by: Piotr Ziecik Notes: svn path=/head/; revision=227730
* Remove unused variable ubase.Jayachandran C.2011-11-191-2/+0
| | | | | | | This vaiable is initialized but not used. Notes: svn path=/head/; revision=227729
* Remvoe unused fileJayachandran C.2011-11-191-88/+0
| | | | | | | mips/nlm/uart_cpu_xlp.c has replaced uart_bus_xlp_iodi.c Notes: svn path=/head/; revision=227728
* - Add new loader_logo orbbw to default.confMartin Wilke2011-11-191-1/+1
| | | | | | | | | | PR: 162608 Submitted by: manolis Approved by: rwatson (mentor) MFC after: 3 Days Notes: svn path=/head/; revision=227727
* - Whitespaces fixed onlyMartin Wilke2011-11-191-3/+3
| | | | | | | Approved by: rwatson (mentor) Notes: svn path=/head/; revision=227726
* Fix USB compilation, and add USB options to XLP confJayachandran C.2011-11-192-1/+8
| | | | | | | Remove obsolete header file included in usb_init.c Notes: svn path=/head/; revision=227725
* Fixup cache flush definitions for XLPJayachandran C.2011-11-191-8/+8
| | | | | | | | | | mco_icache_sync_range was earlier set to mipsNN_icache_sync_range_index_32 which is not necessary, revert this. Also, the data cache is coherent so write back is not really needed. This change is experimental. Notes: svn path=/head/; revision=227724
* Core structure and functions to support a feed-forward clock within the kernel.Lawrence Stewart2011-11-196-1/+617
| | | | | | | | | | | | | | | | | | | | Implement ffcounter, a monotonically increasing cumulative counter on top of the active timecounter. Provide low-level functions to read the ffcounter and convert it to absolute time or a time interval in seconds using the current ffclock estimates, which track the drift of the oscillator. Add a ring of fftimehands to track passing of time on each kernel tick and pick up updates of ffclock estimates. Committed on behalf of Julien Ridoux and Darryl Veitch from the University of Melbourne, Australia, as part of the FreeBSD Foundation funded "Feed-Forward Clock Synchronization Algorithms" project. For more information, see http://www.synclab.org/radclock/ Submitted by: Julien Ridoux (jridoux at unimelb edu au) Notes: svn path=/head/; revision=227723
* Whitespace fixes in XLP HAL files.Jayachandran C.2011-11-199-358/+358
| | | | | | | Also fixup a macro in iomap.h Notes: svn path=/head/; revision=227722
* Simplify the usb_pause_mtx() function by factoring out the generic partsHans Petter Selasky2011-11-192-25/+31
| | | | | | | | | | | | to the kernel's pause() function. The pause() function can now be used when cold != 0. Also assert that the timeout in system ticks must be positive. Suggested by: Bruce Evans MFC after: 1 week Notes: svn path=/head/; revision=227706
* Move the device_delete_all_children() function from usb_util.cHans Petter Selasky2011-11-1915-109/+56
| | | | | | | | | | | to kern/subr_bus.c. Simplify this function so that it no longer depends on malloc() to execute. Identify a few other places where it makes sense to use device_delete_all_children(). MFC after: 1 week Notes: svn path=/head/; revision=227701
* sfxge: Remove interrupt self-test codePhilip Paeps2011-11-192-25/+3
| | | | | | | | | | | | It's not currently used; it didn't build on 32-bit and the previous build fix is incorrect. If we really implement self-tests we can do this again properly. Submitted by: Ben Hutchings <bwh -at- solarflare.com> MFC after: 3 weeks Notes: svn path=/head/; revision=227700
* sfxge: Fix if_baudrate reportsPhilip Paeps2011-11-191-9/+10
| | | | | | | | | | | | | This field is supposed to be set to the interface bit rate, but for some reason I thought it was denominated in kilobits. Multiply the values up accordingly, taking care to saturate rather than overflow on 32-bit architectures. Submitted by: Ben Hutchings <bwh -at- solarflare.com> MFC after: 3 weeks Notes: svn path=/head/; revision=227699
* Update the manpage for r227697.Konstantin Belousov2011-11-191-4/+4
| | | | | | | MFC after: 3 weeks Notes: svn path=/head/; revision=227698
* Existing VOP_VPTOCNP() interface has a fatal flow that is critical forKonstantin Belousov2011-11-196-26/+57
| | | | | | | | | | | | | | | | | | | | | | | | nullfs. The problem is that resulting vnode is only required to be held on return from the successfull call to vop, instead of being referenced. Nullfs VOP_INACTIVE() method reclaims the vnode, which in combination with the VOP_VPTOCNP() interface means that the directory vnode returned from VOP_VPTOCNP() is reclaimed in advance, causing vn_fullpath() to error with EBADF or like. Change the interface for VOP_VPTOCNP(), now the dvp must be referenced. Convert all in-tree implementations of VOP_VPTOCNP(), which is trivial, because vhold(9) and vref(9) are similar in the locking prerequisites. Out-of-tree fs implementation of VOP_VPTOCNP(), if any, should have no trouble with the fix. Tested by: pho Reviewed by: mckusick MFC after: 3 weeks (subject of re approval) Notes: svn path=/head/; revision=227697
* Do not use NULLVPTOLOWERVP() in the null_print(). If diagnostic is compiledKonstantin Belousov2011-11-191-1/+1
| | | | | | | | | | in, and show vnode is used from ddb on the faulty nullfs vnode, we get panic instead of vnode dump. MFC after: 1 week Notes: svn path=/head/; revision=227696
* Use the plain panic calls, without additional printing around them.Konstantin Belousov2011-11-191-14/+4
| | | | | | | | | | The debugger and dumping support is adequate. Tested by: pho MFC after: 1 week Notes: svn path=/head/; revision=227695
* Regenerate system call tables.Ed Schouten2011-11-1910-14/+24
| | | | Notes: svn path=/head/; revision=227694
* Make the Linux *at() calls a bit more complete.Ed Schouten2011-11-194-18/+20
| | | | | | | | | | Properly support: - AT_EACCESS for faccessat(), - AT_SYMLINK_FOLLOW for linkat(). Notes: svn path=/head/; revision=227693
* Regenerate system call tables.Ed Schouten2011-11-1928-43/+43
| | | | Notes: svn path=/head/; revision=227692
* Improve *access*() parameter name consistency.Ed Schouten2011-11-1910-37/+37
| | | | | | | | | | | | The current code mixes the use of `flags' and `mode'. This is a bit confusing, since the faccessat() function as a `flag' parameter to store the AT_ flag. Make this less confusing by using the same name as used in the POSIX specification -- `amode'. Notes: svn path=/head/; revision=227691
* The old NFS client will crash due to the reply being m_freem()'dRick Macklem2011-11-191-0/+5
| | | | | | | | | | | | | twice if the server bogusly returns an error with the NFSERR_RETERR bit (bit 31) set. No actual NFS error has this bit set, but it seems that amd will sometimes do this. This patch makes sure the NFSERR_RETERR bit is cleared to avoid a crash. PR: kern/153847 MFC after: 2 weeks Notes: svn path=/head/; revision=227690
* Do not increment the parent firmware's reference count when any otherNavdeep Parhar2011-11-191-5/+5
| | | | | | | | | | | | | firmware image in the module is registered. Instead, do it when the other image is itself referenced. This allows a module with multiple firmware images to be automatically unloaded when none of the firmware images are in use. Discussed with: jhb@ (on -hackers) Notes: svn path=/head/; revision=227689
* There's no need export the device interface methods of miibus(4).Marius Strobl2011-11-182-7/+6
| | | | Notes: svn path=/head/; revision=227688
* - Add a hint.miibus.X.phymask hint, allowing do individually exclude PHYMarius Strobl2011-11-181-39/+111
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addresses from being probed and attaching something including ukphy(4) to it. This is mainly necessarily for PHY switches that create duplicate or fake PHYs on the bus that can corrupt the PHY state when accessed or simply cause problems when ukphy(4) isolates the additional instances. - Change miibus(4) to be a hinted bus, allowing to add child devices via hints and to set their attach arguments (including for automatically probed PHYs). This is mainly needed for PHY switches that violate IEEE 802.3 and don't even implement the basic register set so we can't probe them automatically. However, the ability to alter the attach arguments for automatically probed PHYs is also useful as for example it allows to test (or tell a user to test) new variant of a PHY with a specific driver by letting an existing driver attach to it via manipulating the IDs without the need to touch the source code or to limit a Gigabit Ethernet PHY to only announce up to Fast Ethernet in order to save energy by limiting the capability mask. Generally, a driver has to be hinted via hint.phydrv.X.at="miibusY" and hint.phydrv.X.phyno="Z" (which already is sufficient to add phydrvX at miibusY at PHY address Z). Then optionally the following attach arguments additionally can be configured: hint.phydrv.X.id1 hint.phydrv.X.id2 hint.phydrv.X.capmask - Some minor cleanup. Reviewed by: adrian, ray Notes: svn path=/head/; revision=227687
* There's no need to read DC_10BTSTAT twice in dcphy_status().Marius Strobl2011-11-181-6/+5
| | | | Notes: svn path=/head/; revision=227686
* - There's no need to ignore the return value of mii_attach(9) when attachingMarius Strobl2011-11-181-7/+5
| | | | | | | | | | | dcphy(4) (CID 9283). - In dc_detach(), check whether ifp is NULL as dc_attach() may call the former without ifp being allocated (CID 4288). Found with: Coverity Prevent(tm) Notes: svn path=/head/; revision=227685
* Partially revert r218788. r218788 removed calling dc_setcfg() forPyun YongHyeon2011-11-182-14/+3
| | | | | | | | | | | | !DC_IS_ADMTEK in dc_miibus_statchg(). This change broke link establishment of Intel 21143 with dcphy(4) where it stuck in "ability detect" state without completing auto-negotiation. Also nuke dc_if_media as it's not actually used. Submitted by: marius Notes: svn path=/head/; revision=227675
* Added check for negative seconds value. Found by syscall() fuzzing.Peter Holm2011-11-181-1/+2
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=227674
* Add sfxge(4) to the hardware notes.Christian Brueffer2011-11-182-0/+3
| | | | Notes: svn path=/head/; revision=227666