aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* We need to be consistent with prototype definitions. It isn't OK toJohn Birrell2008-04-261-8/+55
| | | | | | | | | | use 'const' and just override it whenever we feel like it. If we use it at all, then we need to do it properly. Add a couple of functions that were useful in getting this code ported. Notes: svn path=/head/; revision=178544
* Make this file compile cleanly.John Birrell2008-04-261-25/+25
| | | | Notes: svn path=/head/; revision=178542
* Apply FreeBSD changes.John Birrell2008-04-264-6/+26
| | | | Notes: svn path=/head/; revision=178540
* On FreeBSD we can't afford to have a build fail simply because thereJohn Birrell2008-04-261-0/+14
| | | | | | | was some sort of CTF conversion error. Notes: svn path=/head/; revision=178539
* Add a missing include file. We care about function prototype definitions.John Birrell2008-04-261-0/+1
| | | | Notes: svn path=/head/; revision=178538
* Apply FreeBSD changes.John Birrell2008-04-261-6/+66
| | | | | | | | There is an incomplete piece of code in here which requires the process handling library which is still under development. Notes: svn path=/head/; revision=178537
* * Set the path to perl on FreeBSD.John Birrell2008-04-261-4/+4
| | | | | | | | | | * Use the FreeBSD shell. * On FreeBSD the tests run from the OBJDIR, so output files go there rather than in the source tree like they do on Solaris. * FreeBSD doesn't need a special path to the compiler. Notes: svn path=/head/; revision=178536
* Set the path to perl on FreeBSD.John Birrell2008-04-261-1/+1
| | | | Notes: svn path=/head/; revision=178535
* Port these test files to work under FreeBSD.John Birrell2008-04-2630-183/+296
| | | | Notes: svn path=/head/; revision=178534
* Have the man page catch up with the namespace pollution cleanup thatSean Farley2008-04-261-1/+0
| | | | | | | | | | | | | occurred between 2001-2003. Thanks to bde for the history lesson[1] concerning sys/types.h and the many system calls that at one time (pre-2001) were required by POSIX to include it. 1. http://lists.freebsd.org/pipermail/freebsd-arch/2008-April/008126.html MFC after: 3 days Notes: svn path=/head/; revision=178533
* Opps,missed line in the fix...Jack F Vogel2008-04-261-2/+2
| | | | Notes: svn path=/head/; revision=178531
* This commit was generated by cvs2svn to compensate for changes in r178528,John Birrell2008-04-2698-2717/+705
|\ | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=178529
| * Vendor import of the full userland contrib part of DTrace support fromvendor/opensolaris/20080410aJohn Birrell2008-04-2698-2717/+705
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OpenSolaris. This commit resets files to match the versions in the OpenSolaris tree as of 2008/04/10. The changes in this import from the previous import are the ones that will subsequently re-applied to take files off the vendor branch. This is unfortunately necessary because the Solaris developers won't allow FreeBSD support #ifdefs in their source code because that creates 'dead code' (stuff that they never compile). Notes: svn path=/vendor-cddl/opensolaris/dist/cddl/contrib/opensolaris/; revision=178528 svn path=/vendor-cddl/opensolaris/20080410a/cddl/contrib/opensolaris/; revision=178530; tag=vendor/opensolaris/20080410a
* | Replace the prototype vaps_<ifn> and vap_create_<ifn> variables withBrooks Davis2008-04-252-13/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | more wlans_<ifn> and create_args_<ifn> Add documentation for these variants and generally update the wireless device example. There is are very short lived shim from vaps_<ifn> which produces a warning and vap_create_<ifn> which does not. Misuse the MFC notification service to remind me to remove them. MFC after: 3 weeks Notes: svn path=/head/; revision=178527
* | This commit was generated by cvs2svn to compensate for changes in r178525,John Birrell2008-04-2526-0/+9898
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=178526
| * Vendor import of DTrace support files from OpenSolaris.John Birrell2008-04-2526-0/+9898
| | | | | | | | Notes: svn path=/vendor-cddl/opensolaris/dist/cddl/contrib/opensolaris/; revision=178525
* | A change got dropped in the merge, add backJack F Vogel2008-04-251-11/+11
| | | | | | | | Notes: svn path=/head/; revision=178524
* | This delta has a few important items:Jack F Vogel2008-04-2526-232/+864
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PR 122839 is fixed in both em and in igb Second, the issue on building modules since the static kernel build changes is now resolved. I was not able to get the fancier directory hierarchy working, but this works, both em and igb build as modules now. Third, there is now support in em for two new NICs, Hartwell (or 82574) is a low cost PCIE dual port adapter that has MSIX, for this release it uses 3 vectors only, RX, TX, and LINK. In the next release I will add a second TX and RX queue. Also, there is support here for ICH10, the followon to ICH9. Both of these are early releases, general availability will follow soon. Fourth: On Hartwell and ICH10 we now have IEEE 1588 PTP support, I have implemented this in a provisional way so that early adopters may try and comment on the functionality. The IOCTL structure may change. This feature is off by default, you need to edit the Makefile and add the EM_TIMESYNC define to get the code. Enjoy all!! Notes: svn path=/head/; revision=178523
* | add rules for statically embedding ipw, iwi, ral, and wpi firmware modulesSam Leffler2008-04-251-0/+154
| | | | | | | | Notes: svn path=/head/; revision=178522
* | hookup the parent device's if_input and if_output to stub routinesSam Leffler2008-04-251-0/+19
| | | | | | | | | | | | | | | | | | | | to catch unintended use (one might argue about if_output but it's behaviour is ill-defined without vap context) Noticed by: Paul B. Mahol Notes: svn path=/head/; revision=178521
* | remove scan task on state change so it doesn't unexpectedly fireSam Leffler2008-04-251-1/+2
| | | | | | | | | | | | | | Noticed by: Paul B. Mahol Notes: svn path=/head/; revision=178520
* | Add "ddb capture print" and "ddb capture status" commands do ddb(8),Robert Watson2008-04-255-5/+297
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | alowing the DDB output capture buffer to be easily extracted from user space. Both of these commands include -M/-N arguments, allowing them to be used with kernel crash dumps (or /dev/mem). This makes it easier to use DDB scripting and output capture with minidumps or full dumps rather than with text dumps, allowing DDB output (scripted or otherwise) to be easily extracted from a crash dump. MFC after: 1 week Discussed with: brooks, jhb Notes: svn path=/head/; revision=178515
* | Initialize tz_active to a new constant TZ_ACTIVE_UNKNOWN and make noRui Paulo2008-04-251-1/+20
| | | | | | | | | | | | | | | | | | | | | | assumptions about the state of the cooling devices. Instead, switch them off on init and, only after that, we are in TZ_ACTIVE_NONE. Submited by: Andriy Gapon <avg at icyb.net.ua> Reviewed by: njl Notes: svn path=/head/; revision=178506
* | Unbreak previous commit. While here, refactor the code a bit.Marcel Moolenaar2008-04-251-13/+10
| | | | | | | | Notes: svn path=/head/; revision=178494
* | Always use PG_PS_FRAME to extract the physical address of a 2/4MB pageAlan Cox2008-04-252-18/+20
| | | | | | | | | | | | | | from a PDE. Notes: svn path=/head/; revision=178493
* | Rename debug.ddb.capture.bytes sysctl to debug.ddb.capture.bufoff inRobert Watson2008-04-251-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | order to match the internal variable name. Add a new sysctl debug.ddb.capture.inprogress to export the inprogress variable. MFC after: 3 days Notes: svn path=/head/; revision=178492
* | o Fixed multi thread access issue reported by Alexander V. ChernikovDaichi GOTO2008-04-253-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | (admin@su29.net) fixed: kern/109950 PR: kern/109950 Submitted by: Alexander V. Chernikov (admin@su29.net) Reviewed by: Masanori OZAWA (ozawa@ongs.co.jp) MFC after: 1 week Notes: svn path=/head/; revision=178491
* | o Improved unix socket connection issueDaichi GOTO2008-04-251-13/+28
| | | | | | | | | | | | | | | | | | | | | | fixed: kern/118346 PR: kern/118346 Submitted by: Masanori OZAWA (ozawa@ongs.co.jp) MFC after: 1 week Notes: svn path=/head/; revision=178485
* | o Fixed rename panic issueDaichi GOTO2008-04-251-11/+14
| | | | | | | | | | | | | | | | Submitted by: Masanori OZAWA (ozawa@ongs.co.jp) MFC after: 1 week Notes: svn path=/head/; revision=178484
* | o Fixed inaccessible issue especially including devfs on unionfs case.Daichi GOTO2008-04-252-8/+187
| | | | | | | | | | | | | | | | | | | | | | fixed also: kern/117829 PR: kern/117829 Submitted by: Masanori OZAWA (ozawa@ongs.co.jp) MFC after: 1 week Notes: svn path=/head/; revision=178483
* | This commit was generated by cvs2svn to compensate for changes in r178481,John Birrell2008-04-2540-0/+13733
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=178482
| * Vendor import of the CTF (Compact C Type Format) code used by DTraceJohn Birrell2008-04-2540-0/+13733
| | | | | | | | | | | | | | from OpenSolaris. Notes: svn path=/vendor-cddl/opensolaris/dist/cddl/contrib/opensolaris/; revision=178481
* | This commit was generated by cvs2svn to compensate for changes in r178479,John Birrell2008-04-2564-0/+40194
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=178480
| * Vendor import of libraries for DTrace from OpenSolaris.John Birrell2008-04-2564-0/+40194
| | | | | | | | Notes: svn path=/vendor-cddl/opensolaris/dist/cddl/contrib/opensolaris/; revision=178479
* | o Added system hang-up process when VOP_READDIR of unionfs_nodeget()Daichi GOTO2008-04-251-1/+7
| | | | | | | | | | | | | | | | | | | | | | returns not end of the file status on debug mode (DIAGNOSTIC defined) kernel. Submitted by: Masanori OZAWA (ozawa@ongs.co.jp) MFC after: 1 week Notes: svn path=/head/; revision=178478
* | This commit was generated by cvs2svn to compensate for changes in r178476,John Birrell2008-04-251428-0/+86505
|\| | | | | | | | | | | | | which included commits to RCS files with non-trunk default branches. Notes: svn path=/head/; revision=178477
| * Vendor import of the DTrace app and test suite from OpenSolaris.John Birrell2008-04-251428-0/+86505
| | | | Notes: svn path=/vendor-cddl/opensolaris/dist/cddl/contrib/opensolaris/; revision=178476
* - Add an integer argument to idle to indicate how likely we are to wakeJeff Roberson2008-04-2515-95/+418
| | | | | | | | | | | | | | | | | | from idle over the next tick. - Add a new MD routine, cpu_wake_idle() to wakeup idle threads who are suspended in cpu specific states. This function can fail and cause the scheduler to fall back to another mechanism (ipi). - Implement support for mwait in cpu_idle() on i386/amd64 machines that support it. mwait is a higher performance way to synchronize cpus as compared to hlt & ipis. - Allow selecting the idle routine by name via sysctl machdep.idle. This replaces machdep.cpu_idle_hlt. Only idle routines supported by the current machine are permitted. Sponsored by: Nokia Notes: svn path=/head/; revision=178471
* o Disable HMEDEBUG by default.Marius Strobl2008-04-245-199/+228
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add CTASSERTs ensuring that HME_NRXDESC and HME_NTXDESC are set to legal values. o Use appropriate maxsize, nsegments and maxsegsize parameters when creating DMA tags and correct some comments related to them. o The FreeBSD bus_dmamap_sync(9) supports ored together flags for quite some time now so collapse calls accordingly. o Add missing BUS_DMASYNC_PREREAD when syncing the control DMA maps in hme_rint() and hme_start_locked(). o Keep state of the link state and use it to enable or disable the MAC in hme_mii_statchg() accordingly as well as to return early from hme_start_locked() in case the link is down. o Introduce a sc_flags and use it to replace individual members like sc_pci. o Add bus_barrier(9) calls to hme_mac_bitflip(), hme_mii_readreg(), hme_mii_writereg() and hme_stop() to ensure the respective bit has been written before we starting polling on it and for the right bits to change. o Rather just returning in case hme_mac_bitflip() fails and leaving us in an undefined state report the problem and move on; chances are the requested configuration will become active shortly after. o Don't call hme_start_locked() in hme_init_locked() unconditionally but only after calls to hme_init_locked() when it's appropriate, i.e. in hme_watchdog(). o Add a KASSERT which asserts nsegs is valid also to hme_load_txmbuf(). o In hme_load_txmbuf(): - use a maximum of the newly introduced HME_NTXSEGS segments instead of the incorrect HME_NTXQ, which reflects the maximum TX queue length, for loading the mbufs and put the DMA segments back onto the stack instead of the softc as 16 should be ok there. - use the common errno(2) return values instead of homegrown ones, - given that hme_load_txmbuf() is allowed to fail resulting in a packet drop for quite some time now implement the functionality of hme_txcksum() by means of m_pullup(9), which de-obfuscates the code and allows to always retrieve the correct length of the IP header, [1] - also add a KASSERT which asserts nsegs is valid, - take advantage of m_collapse(9) instead of m_defrag(9) for performance reasons. o Don't bother to check whether the interface is running or whether its queue is empty before calling hme_start_locked() in hme_tint(), the former will check these anyway. o In hme_intr() call hme_rint() before hme_tint() as gem_tint() may take quite a while to return when it calls hme_start_locked(). o Get rid of sc_debug and just check if_flags for IFF_DEBUG directly. o Add a shadow sc_ifflags so we don't reset the chip when unnecessary. o Handle IFF_ALLMULTI correctly. [2] o Use PCIR_BAR instead of a homegrown macro. o Replace sc_enaddr[6] with sc_enaddr[ETHER_ADDR_LEN]. o Use the maximum of 256 TX descriptors for better performance as using all of them has no additional static cost rather than using just half of them. Reported by: rwatson [2] Suggested by: yongari [1] Reviewed by: yongari MFC after: 1 month Notes: svn path=/head/; revision=178470
* - vx_stop() requires the driver lock to be held.Marius Strobl2008-04-241-3/+5
| | | | | | | | | - Add some missing newlines to messages printed by vx_getlink(). MFC after: 3 days Notes: svn path=/head/; revision=178469
* - Use bus_{read,write}_*(9) instead of bus_space_{read,write}_*(9)Marius Strobl2008-04-241-118/+155
| | | | | | | | | | | | | | | | | | in order to get rid of bus space handle and tag in struct sym_hcb. - Remove unused members related to bus addresses in struct sym_hcb. - sym(4) takes care of allocating an instance of struct sym_hcb itself so don't let newbus allocate it as an unused softc also. - Add basic MPSAFE locking. This includes changing the sym(4) CCBs to be allocated up-front instead of on demand as needed. Besides making these allocations more likely to succeed, this also solves the problem of calling bus_dmamap_create(9) with the SIM mutex held. Reviewed by: scottl MFC after: 1 month Notes: svn path=/head/; revision=178468
* - Use NULL instead of 0 for pointers.Marius Strobl2008-04-241-587/+579
| | | | | | | | | | | - Remove superfluous returns in functions returning void. - In sym_alloc_lcb_tags() return directly instead of jumping to a label which just returns. - Fix some spelling in comments. - Remove trailing whitespace. Notes: svn path=/head/; revision=178466
* fdhold can return NULL, so add the one remaining missing check for thisKris Kennaway2008-04-241-0/+2
| | | | | | | | | | condition. Reviewed by: attilio MFC after: 1 week Notes: svn path=/head/; revision=178465
* List of files that are off the vendor branch, but we use the stock vendorDavid E. O'Brien2008-04-241-0/+11
| | | | | | | files. Notes: svn path=/head/; revision=178464
* Remove FreeBSD ID's so these are exact copies of the vendor sources.David E. O'Brien2008-04-241-4/+0
| | | | Notes: svn path=/head/; revision=178463
* Use logic or, not binary or, when deciding whether or not a system callRobert Watson2008-04-241-1/+1
| | | | | | | | | | | exit requires entering the audit code. The result is much the same, but they mean different things. MFC afer: 3 days Submitted by: Diego Giagio <dgiagio at gmail dot com> Notes: svn path=/head/; revision=178461
* Allow the vnode zone to return the unused memory. The vnode referenceKonstantin Belousov2008-04-241-2/+2
| | | | | | | | | | | count is/shall be properly maintained for the long time, and VFS shall be safe against the vnode memory reclamation. Proposed by: jeff Tested by: pho Notes: svn path=/head/; revision=178458
* Stricter check for integer overflow.Ruslan Ermilov2008-04-241-0/+2
| | | | Notes: svn path=/head/; revision=178457
* Updated the test to handle multiple sinks. The sinks cut theirGeorge V. Neville-Neil2008-04-243-40/+148
| | | | | | | | | | | | | | transmissions by the number of them running so that they do not overwhelm the source. Added a simple shell script to kick off sinks on multiple hosts as well as a source on the host where the shell script is run. The script also collects the output of all the sinks and the source into files named for the host on which the tests are run. A date is appended to each output file to make it unique per run. Notes: svn path=/head/; revision=178456
* In function rtalloc_mpath(), do not try to release the lock if the ro_rtQing Li2008-04-241-1/+3
| | | | | | | | | pointer is NULL. Reported by: (pluknet at gmail dot com) Notes: svn path=/head/; revision=178454