aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Reduce diffs against i386.Yoshihiro Takahashi2009-05-061-4/+1
| | | | | | | Use the hardclockintr function. Notes: svn path=/head/; revision=191842
* revert r191633; this breaks at91 & xscale (likely all arm)Sam Leffler2009-05-061-4/+4
| | | | Notes: svn path=/head/; revision=191836
* o FreeBSD 7.2 added.Maxim Konovalov2009-05-051-1/+4
| | | | Notes: svn path=/head/; revision=191834
* Add my birthday to the calendar.Rene Ladan2009-05-051-0/+1
| | | | | | | Approved by: remko Notes: svn path=/head/; revision=191831
* GPT style partitioning for loader(8) with U-Boot support library (tested onRafal Jaworowski2009-05-053-27/+243
| | | | | | | | | ARM). Submitted by: Piotr Ziecik kosmo ! semihalf dot com Notes: svn path=/head/; revision=191829
* Silence unsolicited spam printed out when KTR_MLD happens to beAlexander Kabaev2009-05-051-1/+1
| | | | | | | | in KTR_COMPILE mask. Compiling KTR trace points in does not necessarily mean enabling them, use proper check against ktr_mask instead. Notes: svn path=/head/; revision=191828
* Unbreak LINT build, caused by a change in struct ng_node layout introducedMarko Zec2009-05-052-1/+1
| | | | | | | | | with r191816, which become uncovered only with NETGRAPH_DEBUG defined. NOT approved by mentor (julian) due to emergency. Notes: svn path=/head/; revision=191827
* Make sure the frame list base address is re-programmed after stopping the USBAndrew Thompson2009-05-051-37/+50
| | | | | | | | | | schedule, in case the hardware clears the frame list base address. Submitted by: Hans Petter Selasky Reported by: Chao Shin Notes: svn path=/head/; revision=191826
* Remove USB shutdown methods from device drivers as its the host controllersAndrew Thompson2009-05-0512-150/+0
| | | | | | | | | | responsibility to detach the bus. PR: usb/133896 Submitted by: Hans Petter Selasky Notes: svn path=/head/; revision=191825
* Revert part of r191494 which used the udev state to mark suspending, this needsAndrew Thompson2009-05-0510-56/+54
| | | | | | | | | | | to be set via two variables (peer_suspended and self_suspended) and can not be merged into one. Submitted by: Hans Petter Selasky Pointy hat: me Notes: svn path=/head/; revision=191824
* Add myself as a mentee of dwmalone for the committers graph. Also add mySean Nicholas Barkas2009-05-052-0/+3
| | | | | | | | | birthday to the calendar. Approved by: dwmalone (mentor) Notes: svn path=/head/; revision=191822
* Make gmultipath(8) easier to find.Edward Tomasz Napierala2009-05-053-3/+6
| | | | Notes: svn path=/head/; revision=191818
* - Add support for PXA270 cpu.Stanislav Sedov2009-05-051-0/+1
| | | | | | | Submitted by: Jacques Fourie <jacques.fourie@gmail.com> Notes: svn path=/head/; revision=191817
* Change the curvnet variable from a global const struct vnet *,Marko Zec2009-05-0535-83/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | previously always pointing to the default vnet context, to a dynamically changing thread-local one. The currvnet context should be set on entry to networking code via CURVNET_SET() macros, and reverted to previous state via CURVNET_RESTORE(). Recursions on curvnet are permitted, though strongly discuouraged. This change should have no functional impact on nooptions VIMAGE kernel builds, where CURVNET_* macros expand to whitespace. The curthread->td_vnet (aka curvnet) variable's purpose is to be an indicator of the vnet context in which the current network-related operation takes place, in case we cannot deduce the current vnet context from any other source, such as by looking at mbuf's m->m_pkthdr.rcvif->if_vnet, sockets's so->so_vnet etc. Moreover, so far curvnet has turned out to be an invaluable consistency checking aid: it helps to catch cases when sockets, ifnets or any other vnet-aware structures may have leaked from one vnet to another. The exact placement of the CURVNET_SET() / CURVNET_RESTORE() macros was a result of an empirical iterative process, whith an aim to reduce recursions on CURVNET_SET() to a minimum, while still reducing the scope of CURVNET_SET() to networking only operations - the alternative would be calling CURVNET_SET() on each system call entry. In general, curvnet has to be set in three typicall cases: when processing socket-related requests from userspace or from within the kernel; when processing inbound traffic flowing from device drivers to upper layers of the networking stack, and when executing timer-driven networking functions. This change also introduces a DDB subcommand to show the list of all vnet instances. Approved by: julian (mentor) Notes: svn path=/head/; revision=191816
* Add a constant PR_MAXMETHOD to better define the jail/OSD interface.Jamie Gritton2009-05-052-1/+3
| | | | | | | | Reviewed by: dchagin, kib Approved by: bz (mentor) Notes: svn path=/head/; revision=191806
* Do not try to initialize LAPIC timer if we are not going to use it.Alexander Motin2009-05-052-2/+2
| | | | | | | | It solves assertion, when kernel built with INVARIANTS configured to use i8254 timer. Notes: svn path=/head/; revision=191803
* Always compute the root of the kernel source tree and explicitly pass itJohn Baldwin2009-05-041-2/+2
| | | | | | | | | | | | to module builds. This avoids having to have the module builds walk up the tree to find the kernel sources. It also allows a kernel + module build to succeed when a new level of module subdirectories is added without requiring that the /usr/share/mk/bsd.kmod.mk file on the machine be patched. MFC after: 1 week Notes: svn path=/head/; revision=191794
* Mark Linux MIB sysctls MPSAFE.Jamie Gritton2009-05-041-3/+3
| | | | | | | | Reviewed by: dchagin, kib Approved by: bz (mentor) Notes: svn path=/head/; revision=191792
* Our grantpt(3) and unlockpt(3) don't comply with POSIX.Ed Schouten2009-05-041-3/+7
| | | | Notes: svn path=/head/; revision=191789
* Unlock the largest standard CPUID on Intel CPUs for both amd64 and i386 andJung-uk Kim2009-05-042-11/+34
| | | | | | | | | fix SMP topology detection. On i386, we extend it to cover Core, Core 2, and Core i7 processors, not just Pentium 4 family, and move it to better place. On amd64, all supported Intel CPUs should have this MSR. Notes: svn path=/head/; revision=191788
* - Make the gvinum softc invisible to userland, as it is not needed.Ulf Lilleengen2009-05-041-5/+1
| | | | Notes: svn path=/head/; revision=191787
* Add the experimental nfs subtree to the kernel, that includesRick Macklem2009-05-0444-0/+44521
| | | | | | | | | | | | | | | | | | | support for NFSv4 as well as NFSv2 and 3. It lives in 3 subdirs under sys/fs: nfs - functions that are common to the client and server nfsclient - a mutation of sys/nfsclient that call generic functions to do RPCs and handle state. As such, it retains the buffer cache handling characteristics and vnode semantics that are found in sys/nfsclient, for the most part. nfsserver - the server. It includes a DRC designed specifically for NFSv4, that is used instead of the generic DRC in sys/rpc. The build glue will be checked in later, so at this point, it consists of 3 new subdirs that should not affect kernel building. Approved by: kib (mentor) Notes: svn path=/head/; revision=191783
* Remove unneeded check for SESS_LEADER().Ed Schouten2009-05-041-1/+1
| | | | | | | We perform the same check ~10 lines above. Notes: svn path=/head/; revision=191782
* Oops, sorry. Fix for fix.Alexander Motin2009-05-041-1/+1
| | | | Notes: svn path=/head/; revision=191781
* There is no atrtc driver in pc98, so hide atrtcclock_disable variable usageAlexander Motin2009-05-041-0/+2
| | | | | | | in APM driver for this platform. This should fix pc98 build. Notes: svn path=/head/; revision=191780
* Fix whitespace and sorting in Symbol.map.Ed Schouten2009-05-041-25/+25
| | | | Notes: svn path=/head/; revision=191779
* Eliminate vnode_pager_input_smlfs()'s pointless call to pmap_clear_modify().Alan Cox2009-05-041-3/+0
| | | | | | | | The page can't possibly have any modified page table entries because it isn't even mapped. Notes: svn path=/head/; revision=191778
* Remove redundant NFSMNT_NFSV3 check in DTrace hooks for NFS RPC.Robert Watson2009-05-041-2/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=191777
* Fix typo in comment.Robert Watson2009-05-041-1/+1
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=191776
* This belongs in //svn.freebsd.org/base/vendor/file/dist now.David E. O'Brien2009-05-041-30/+0
| | | | Notes: svn path=/head/; revision=191774
* Merge vendor/file/dist@191739, bringing FILE 5.00 to 8-CURRENT.David E. O'Brien2009-05-0459-1508/+4056
|\ | | | | | | Notes: svn path=/head/; revision=191771
| * Virgin import of Christos Zoulas's FILE 5.00.David E. O'Brien2009-05-027-0/+2348
| | | | | | | | Notes: svn path=/vendor/file/dist/; revision=191739
| * Virgin import of Christos Zoulas's FILE 5.00.David E. O'Brien2009-05-0247-1230/+1656
| | | | | | | | Notes: svn path=/vendor/file/dist/; revision=191736
* | Relax the condition for printing the lost state transition message. The newAndrew Thompson2009-05-031-10/+12
| | | | | | | | | | | | | | | | state will be set before the EXT_STATEWAIT flag is cleared and its ok to transition again at that point. Notes: svn path=/head/; revision=191768
* | Rename statclock_disable variable to atrtcclock_disable that it actually is,Alexander Motin2009-05-039-47/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and hide it inside of atrtc driver. Add new tunable hint.atrtc.0.clock controlling it. Setting it to 0 disables using RTC clock as stat-/ profclock sources. Teach i386 and amd64 SMP platforms to emulate stat-/profclocks using i8254 hardclock, when LAPIC and RTC clocks are disabled. This allows to reduce global interrupt rate of idle system down to about 100 interrupts per core, permitting C3 and deeper C-states provide maximum CPU power efficiency. Notes: svn path=/head/; revision=191766
* | Make dev.cpu.X.cx_usage sysctl also report current average of sleep time.Alexander Motin2009-05-031-1/+2
| | | | | | | | Notes: svn path=/head/; revision=191764
* | Remove unused variable and fix spelling in comment.Alexander Motin2009-05-031-2/+1
| | | | | | | | Notes: svn path=/head/; revision=191763
* | Bring in Andrew Thompson's port of Sepherosa Ziehau's bwi driver forWarner Losh2009-05-0314-0/+11796
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Broadcom BCM43xx chipsets. This driver uses the v3 firmware that needs to be fetched separately. A port will be committed to create the bwi firmware module. The driver matches the following chips: Broadcom BCM4301, BCM4307, BCM4306, BCM4309, BCM4311, BCM4312, BCM4318, BCM4319 The driver works for 802.11b and 802.11g. Limitations: This doesn't support the 802.11a or 802.11n portion of radios. Some BCM4306 and BCM4309 cards don't work with Channel 1, 2 or 3. Documenation for this firmware is reverse engineered from http://bcm.sipsolutions.net/ V4 of the firmware is needed for 11a or 11n support http://bcm-v4.sipsolutions.net/ Firmware needs to be fetched from a third party, port to be committed # I've tested this with a BCM4319 mini-pci and a BCM4318 CardBus card, and # not connected it to the build until the firmware port is committed. Obtained from: DragonFlyBSD, //depot/projects/vap Reviewed by: sam@, thompsa@ Notes: svn path=/head/; revision=191762
* | MFi386: revision 191745Yoshihiro Takahashi2009-05-031-1/+35
| | | | | | | | | | | | | | | | Add support for using i8254 and rtc timers as event sources for i386 SMP system. Redistribute hard-/stat-/profclock events to other CPUs using IPI. Notes: svn path=/head/; revision=191761
* | Avoid comparing negative signed to positive unsignad values. It wasAlexander Motin2009-05-021-41/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | leading to a bug, when C-state does not decrease on sleep shorter then declared transition latency. Fixing this deprecates workaround for broken C-states on some hardware. By the way, change state selecting logic a bit. Instead of last sleep time use short-time average of it. Global interrupts rate in system is a quite random value, to corellate subsequent sleeps so directly. Notes: svn path=/head/; revision=191760
* | fix XEN compilationKip Macy2009-05-021-0/+3
| | | | | | | | Notes: svn path=/head/; revision=191759
* | don't say "ac WME_AC_BE"; remove "ac"Sam Leffler2009-05-021-1/+1
| | | | | | | | Notes: svn path=/head/; revision=191757
* | promote ieee80211_seq typedefSam Leffler2009-05-023-4/+4
| | | | | | | | Notes: svn path=/head/; revision=191756
* | o dump tx/rx seq#'s for qos tid'sSam Leffler2009-05-021-2/+10
| | | | | | | | | | | | | | o improve check for when to dump rx ampdu state Notes: svn path=/head/; revision=191755
* | whitespaceSam Leffler2009-05-021-0/+1
| | | | | | | | Notes: svn path=/head/; revision=191754
* | make superg/fast-frames state dynamically-allocated (and indirect offSam Leffler2009-05-024-28/+67
| | | | | | | | | | | | | | | | the com structure instead of embedded); this reduces the overhead when not configured and reduces visibility of the contents Notes: svn path=/head/; revision=191753
* | Create a taskqueue for each wireless interface which provides a serialisedAndrew Thompson2009-05-0231-2229/+1135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | sleepable context for net80211 driver callbacks. This removes the need for USB and firmware based drivers to roll their own code to defer the chip programming for state changes, scan requests, channel changes and mcast/promisc updates. When a driver callback completes the hardware state is now guaranteed to have been updated and is in sync with net80211 layer. This nukes around 1300 lines of code from the wireless device drivers making them more readable and less race prone. The net80211 layer has been updated as follows - all state/channel changes are serialised on the taskqueue. - ieee80211_new_state() always queues and can now be called from any context - scanning runs from a single taskq function and executes to completion. driver callbacks are synchronous so the channel, phy mode and rx filters are guaranteed to be set in hardware before probe request frames are transmitted. Help and contributions from Sam Leffler. Reviewed by: sam Notes: svn path=/head/; revision=191746
* | Add support for using i8254 and rtc timers as event sources for i386 SMPAlexander Motin2009-05-024-3/+69
| | | | | | | | | | | | | | system. Redistribute hard-/stat-/profclock events to other CPUs using IPI. Notes: svn path=/head/; revision=191745
* | Add support for using i8254 and rtc timers as event sources for amd64 SMPAlexander Motin2009-05-024-3/+69
| | | | | | | | | | | | | | system. Redistribute hard-/stat-/profclock events to other CPUs using IPIs. Notes: svn path=/head/; revision=191744
* | Fix typos:Hiroki Sato2009-05-021-2/+2
| | | | | | | | | | | | | | | | | | | | s,Novatal,Novatel, s,/sys/dev/u3g.c,/sys/dev/usb/serial/u3g.c, MFC after: 3 days Notes: svn path=/head/; revision=191743