aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* XLP processors have the release 2 pagegrain registerJayachandran C.2011-11-211-0/+3
| | | | | | | | | Add accessors to cpufunc.h Obtained from: prabhath at netlogicmicro com Notes: svn path=/head/; revision=227782
* Add new USB IDs to RUN driver.Hans Petter Selasky2011-11-212-0/+4
| | | | | | | | PR: usb/162712 MFC after: 1 week Notes: svn path=/head/; revision=227781
* Always leave the -current kernel debugging options on.Adrian Chadd2011-11-211-5/+4
| | | | Notes: svn path=/head/; revision=227780
* The PPC IRQ layer assumes that the IPI IRQ is the last IRQ on the PIC.Nathan Whitehorn2011-11-211-0/+2
| | | | | | | | | | | | This assumption is invalid and the code should be fixed, but humor it for now and set the "IPI" for PS3s in the non-SMP case to a large number. This fixes boot with a non-SMP kernel. Submitted by: geoffrey dot levand at mail dot ru MFC after: 1 week Notes: svn path=/head/; revision=227779
* - When feed-forward clock support is compiled in, change the BPF header toLawrence Stewart2011-11-212-12/+165
| | | | | | | | | | | | | | | | | | | | | contain both a regular timestamp obtained from the system clock and the current feed-forward ffcounter value. This enables new possibilities including comparison of timekeeping performance and timestamp correction during post processing. - Add the net.bpf.ffclock_tstamp sysctl to provide a choice between timestamping packets using the feedback or feed-forward system 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=227778
* Fix date.Warren Block2011-11-211-1/+1
| | | | | | | | Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227777
* - Add the ffclock_getcounter(), ffclock_getestimate() and ffclock_setestimate()Lawrence Stewart2011-11-2122-20/+506
| | | | | | | | | | | | | | | | | | | | | | | system calls to provide feed-forward clock management capabilities to userspace processes. ffclock_getcounter() returns the current value of the kernel's feed-forward clock counter. ffclock_getestimate() returns the current feed-forward clock parameter estimates and ffclock_setestimate() updates the feed-forward clock parameter estimates. - Document the syscalls in the ffclock.2 man page. - Regenerate the script-derived syscall related files. 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=227776
* Connect LLVM/clang to the build on powerpc64. After the binutils 2.17.50Nathan Whitehorn2011-11-212-6/+5
| | | | | | | import, it works without issue. Notes: svn path=/head/; revision=227775
* Add a section that explicitly describes partitioning schemes. ModifyWarren Block2011-11-211-126/+154
| | | | | | | | | | | | existing sections to refer to the new one. Rearrange partitioning scheme list so MBR and EBR types are together. Also add several corrections for grammar, clarity, and consistency. Approved by: gjb (mentor) MFC after: 1 week Notes: svn path=/head/; revision=227774
* sh: Allow unsetting OPTIND.Jilles Tjoelker2011-11-202-2/+6
| | | | | | | Note that only assigning the decimal value 1 resets getopts, as before. Notes: svn path=/head/; revision=227773
* Replace 'chflags' with 'file flags' in a comment, since 'chflags'Glen Barber2011-11-201-3/+3
| | | | | | | | | | | | | is a command, not a flag itself. While here, wrap a line for readability. Submitted by: arundel MFC after: 3 days X-MFC-With: 227769, 227770 Notes: svn path=/head/; revision=227771
* Fix the note in r227769 to be less specific to the immutable flag.Glen Barber2011-11-201-3/+2
| | | | | | | | | Submitted by: arundel MFC after: 3 days X-MFC-With: r227769 Notes: svn path=/head/; revision=227770
* Add a note to src/Makefile that explains that 'rm' runs twice because theGlen Barber2011-11-201-1/+4
| | | | | | | | | | | | second invocation only needs to operate on files with the immutable flag set. Submitted by: arundel (via private email) (original version) Discussed on: -toolchain@ MFC after: 3 days Notes: svn path=/head/; revision=227769
* Add two arguments to the nfsrpc_rellockown() function in the NFSv4Rick Macklem2011-11-202-8/+7
| | | | | | | | | | | client. This does not change the client's behaviour, but prepares the code so that nfsrpc_rellockown() can be called elsewhere in a future commit. MFC after: 2 weeks Notes: svn path=/head/; revision=227760
* Revert part of the r227758 which crept in.Attilio Rao2011-11-201-4/+4
| | | | | | | | Pointy hat: attilio X-MFC: r227758 Notes: svn path=/head/; revision=227759
* Introduce macro stubs in the mutex implementation that will be alwaysAttilio Rao2011-11-205-55/+64
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | defined and will allow consumers, willing to provide options, file and line to locking requests, to not worry about options redefining the interfaces. This is typically useful when there is the need to build another locking interface on top of the mutex one. The introduced functions that consumers can use are: - mtx_lock_flags_ - mtx_unlock_flags_ - mtx_lock_spin_flags_ - mtx_unlock_spin_flags_ - mtx_assert_ - thread_lock_flags_ Spare notes: - Likely we can get rid of all the 'INVARIANTS' specification in the ppbus code by using the same macro as done in this patch (but this is left to the ppbus maintainer) - all the other locking interfaces may require a similar cleanup, where the most notable case is sx which will allow a further cleanup of vm_map locking facilities - The patch should be fully compatible with older branches, thus a MFC is previewed (infact it uses all the underlying mechanisms already present). Comments review by: eadler, Ben Kaduk Discussed with: kib, jhb MFC after: 1 month Notes: svn path=/head/; revision=227758
* key_load_private() ignores the passphrase argument if the private keyDag-Erling Smørgrav2011-11-201-7/+18
| | | | | | | | | | | | | | | is unencrypted. This defeats the nullok check, because it means a non-null passphrase will successfully unlock the key. To address this, try at first to load the key without a passphrase. If this succeeds and the user provided a non-empty passphrase *or* nullok is false, reject the key. MFC after: 1 week Noticed by: Guy Helmer <guy.helmer@palisadesystems.com> Notes: svn path=/head/; revision=227757
* Add support for the SCTP_REMOTE_UDP_ENCAPS_PORT socket option.Michael Tuexen2011-11-2011-24/+210
| | | | | | | | | | Retire the the now unused sctp_udp_tunneling_for_client_enable sysctl variable. MFC after: 3 months. Notes: svn path=/head/; revision=227755
* 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