aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Remove definition of the GCC3 variable. It was introduced in rev.Marcel Moolenaar2007-06-021-2/+0
| | | | | | | | | | | 1.50 to help out with the GCC 2 to GCC 3 transition and it became obsolete when C flags compatible with GCC 3.x became the default. With GCC 4 in the tree this variable (i.e. GCC3) is beyond bogus because it causes confusion when looking for the newly introduced WITH_GCC3 option that helps the GCC 3 -> GCC 4 bump. Notes: svn path=/head/; revision=170217
* Add support for Asus A3N laptops.Philip Paeps2007-06-021-0/+12
| | | | | | | | Submitted by: Holger Jorra <holger_jorra -at- gmx.net> MFC after: 1 day Notes: svn path=/head/; revision=170216
* Fix a bug introduced in the per-CPU Cx states commit. The wrong loop varNate Lawson2007-06-021-30/+27
| | | | | | | | | | | (j/i) was being used and it was being incremented, not decremented as before. Factor out this code into a common function and call it from both the common and per-CPU case. MFC after: 1 day Notes: svn path=/head/; revision=170214
* Mute the main audio during reboot/shutdown. This prevents a burst of staticNate Lawson2007-06-021-2/+16
| | | | | | | | on the speakers of my Panasonic Y4. It might make sense to do this in the mixer rc.d script as well. Notes: svn path=/head/; revision=170213
* AcpiAcquireGlobalLock() can sometimes sleep if the mutex is contested.Nate Lawson2007-06-021-13/+10
| | | | | | | | | | | | | | | | | | | The global lock is a memory region shared with the BIOS and thus has some strange behavior like the fact that the sleep is 1 ms max. We use standard mutexes to synchronize with the SCI so acquiring the global lock after locking the mutex resulted in a witness warning. To deal with this for now, acquire the global lock before all other locks, similar to Giant. This should fix the witness "sleeping with mutex held" issue on boot that occurred after the last ACPI-CA import. In the future, we hope to move to the new mutex interface in ACPI-CA instead of the pseudo-semaphore version we have now. Reviewed by: jkim Notes: svn path=/head/; revision=170211
* Remove (accidentally) included types.h .Ariff Abdullah2007-06-021-1/+0
| | | | Notes: svn path=/head/; revision=170208
* Use standard pcm_get/setflags() rather than dereferencing softc whileAriff Abdullah2007-06-024-41/+26
| | | | | | | enabling SD_F_SOFTPCMVOL or any flags. Notes: svn path=/head/; revision=170207
* Separate license from comments.Joel Dahl2007-06-024-7/+10
| | | | | | | Approved by: ariff Notes: svn path=/head/; revision=170206
* - fix initial pcb vrf setting when the initial vrf is not theRandall Stewart2007-06-027-40/+36
| | | | | | | | | | | default_vrf_id - Missing lock/unlock of inp added as well in the v6 side. - IFN hash table moves to sctppcbinfo since indexes are unique across systems (including different VRFs) this makes it easier to do ifn lookups. Notes: svn path=/head/; revision=170205
* fixed memory leak for IPv6 multicast membership information associatedJINMEI Tatuya2007-06-023-21/+29
| | | | | | | | | | with interface addresses. Approved by: gnn (mentor) MFC after: 1 week Notes: svn path=/head/; revision=170202
* simplified the fix in rev. 1.69 by replacing RT_REMREF+RT_UNLOCK withJINMEI Tatuya2007-06-021-6/+3
| | | | | | | | | RTFREE_LOCKED. Approved by: gnn (mentor) Notes: svn path=/head/; revision=170200
* remove pointless recursive acquisition of port lock in cxgb_init_lockedKip Macy2007-06-021-2/+0
| | | | Notes: svn path=/head/; revision=170197
* Clean up audit comments--formatting, spelling, etc.Robert Watson2007-06-018-74/+70
| | | | Notes: svn path=/head/; revision=170196
* Revert previous, part of NFS that I didn't know about.Tom Rhodes2007-06-011-0/+20
| | | | Notes: svn path=/head/; revision=170188
* Garbage collect msdosfs_fhtovp; it appears unused and I have been usingTom Rhodes2007-06-011-20/+0
| | | | | | | MSDOSFS without this function and problems for the last month. Notes: svn path=/head/; revision=170184
* Change the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operationKonstantin Belousov2007-06-016-8/+8
| | | | | | | | | | | argument from being file descriptor index into the pointer to struct file: part 2. Convert calls missed in the first big commit. Noted by: rwatson Pointy hat to: kib Notes: svn path=/head/; revision=170183
* Remove AUDIT_PRINTF() debugging statements and definition; clean up orRobert Watson2007-06-013-55/+10
| | | | | | | | | | | | remove associated comments. Slip audit_file_rotate_wait assignment in audit_rotate_vnode() before the drop of the global audit mutex. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=170182
* - Take out the broken table-id concept. Panda Routers have a M-VRFRandall Stewart2007-06-0114-158/+164
| | | | | | | | | | | | concept that is NOT well thought out for a multi-homed transport protocol. So the useless table-id entries passed around need to be removed. - Add a event timer for the zero copy api. - Fix a bug in sctp_timer.c when searching for an alternate with the largest ssthresh (the compare was wrong). Notes: svn path=/head/; revision=170181
* Partially back out rev. 1.127, to restore broken functionality. ThisGleb Smirnoff2007-06-011-5/+4
| | | | | | | | | should be redesigned, but better enter RELENG_7 with a working ngctl(8). Agreed by: julian Notes: svn path=/head/; revision=170180
* Add on/off controls for VLAN_MTU and VLAN_HWTAGGING to bge(4).Yaroslav Tykhiy2007-06-011-2/+41
| | | | Notes: svn path=/head/; revision=170176
* - Move rusage from being per-process in struct pstats to per-thread inJeff Roberson2007-06-0126-163/+213
| | | | | | | | | | | | | | | | | | | | | | td_ru. This removes the requirement for per-process synchronization in statclock() and mi_switch(). This was previously supported by sched_lock which is going away. All modifications to rusage are now done in the context of the owning thread. reads proceed without locks. - Aggregate exiting threads rusage in thread_exit() such that the exiting thread's rusage is not lost. - Provide a new routine, rufetch() to fetch an aggregate of all rusage structures from all threads in a process. This routine must be used in any place requiring a rusage from a process prior to it's exit. The exited process's rusage is still available via p_ru. - Aggregate tick statistics only on demand via rufetch() or when a thread exits. Tick statistics are kept in the thread and protected by sched_lock until it exits. Initial patch by: attilio Reviewed by: attilio, bde (some objections), arch (mostly silent) Notes: svn path=/head/; revision=170174
* Fix a breakage with "MODULES_WITH_WORLD=true make buildworld".Hidetoshi Shimokawa2007-06-011-2/+5
| | | | | | | PR: kern/11320 Notes: svn path=/head/; revision=170172
* Couple of the fixes needed revising. The ICH8 autoneg was still broken,Jack F Vogel2007-05-311-15/+14
| | | | | | | | | | this change both simplifies the code and plugs a hole where the devise was reset without keeping the management controller at bay :) Second, the 82571 LAA reset problem was incomplete, this addition is necessary. Just one of those days :) Notes: svn path=/head/; revision=170171
* Revert VMCNT_* operations introduction.Attilio Rao2007-05-3146-288/+263
| | | | | | | | | | | Probabilly, a general approach is not the better solution here, so we should solve the sched_lock protection problems separately. Requested by: alc Approved by: jeff (mentor) Notes: svn path=/head/; revision=170170
* Take back the name 'bridge' now that we are the one and only. This can beAndrew Thompson2007-05-311-2/+2
| | | | | | | | phased back in over the next few major releases. if_bridge is still the documented device name so nothing has changed yet. Notes: svn path=/head/; revision=170164
* Make the interrupt handler wrapper capable of correctly support ↵Paolo Pisati2007-05-314-25/+42
| | | | | | | | | filter+ithread handler. Discussed and reviewed with: bsdimp, simokawa Notes: svn path=/head/; revision=170163
* In some particular cases (like in pccard and pccbb), the real devicePaolo Pisati2007-05-318-19/+89
| | | | | | | | | | | | | | handler is wrapped in a couple of functions - a filter wrapper and an ithread wrapper. In this case (and just in this case), the filter wrapper could ask the system to schedule the ithread and mask the interrupt source if the wrapped handler is composed of just an ithread handler: modify the "old" interrupt code to make it support this situation, while the "new" interrupt code is already ok. Discussed with: jhb Notes: svn path=/head/; revision=170162
* Last major commit and updates for RELENG_7:Ariff Abdullah2007-05-3115-1044/+1813
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rework the entire pcm_channel structure: * Remove rarely used link placeholder, instead, make each pcm_channel as head/link of each own/each other. Unlock - Lock sequence due to sleep malloc has been reduced. * Implement "busy" queue which will contain list of busy/active channels. This greatly reduce locking contention for example while servicing interrupt for hardware with many channels or when virtual channels reach its 256 peak channels. - So I heard you like v chan ... O RLY? Welcome to Virtual **Record** Channels (vrec, rec vchans, vchans for recording, Rec-Chan, you decide), the ultimate solutions for your nagging O_RDWR full-duplex wannabe (note: flash plugins) monopolizing single record channel causing EBUSY. Vrec works exactly like Vchans (or, should I rename it to "Vplay" :) , except that it operates on the opposite direction (recording). Up to 256 vrecs (like vchans) are possible. Notes: * Relocate dev.pcm.%d.{vchans,vchanformat,vchanrate} to each of its respective node/direction: dev.pcm.%d.play.* for "play" (cdev = dsp%d.vp%d) dev.pcm.%d.rec.* for "record" (cdev = dsp%d.vr%d) * Don't expect that it will magically give you ability to split "recording source" (eg: 1 channel for cdrom, 1 channel for mic, etc). Just admit that you only have a *single* recording source / channel. Please bug your hardware vendor instead :) - Bump maxautovchans from 4 to 16. For a full-fledged multimedia desktop/workstation with too many soundservers installed (esound, artsd, jackd, pulse/polypaudio, ding-dong pling plong mudkip fuh fuh, etc), 4 seems inadequate. There will be no memory penalty here, since virtual channels are allocate only by demand. - Nuke/Rework the entire statically created cdev entries. Everything is clonable through snd own clone manager which designed to withstand many kind of abusive devfs droids such as: * while : ; do /bin/test -e /dev/dsp ; done * jot 16777216 0 | while read x ; do ls /dev/dsp0.$x ; done * hundreds (could be thousands) concurrent threads/process opening "/dev/dsp" (previously, this might result EBUSY even with just 3 contesting threads/procs). o Reusable clone objects (instead of creating new one like there's no tomorrow) after certain expiration deadline. The clone allocator will decide whether to reuse, share, or creating new clone. o Automatic garbage collector. - Dynamic unit magic allocator. Maximum attached soundcards can be tuned using tunable "hw.snd.maxunit" (Default to 512). Minimum is 16, and maximum is 2048. - ..other fixes, mostly related to concurrency issues. joel@ will do the manpage updates on sound(4). Have fun. Notes: svn path=/head/; revision=170161
* Last major commit and updates for RELENG_7:Ariff Abdullah2007-05-315-0/+1254
| | | | | | | | Add few new files. The _real_ commit will follow shortly, so fasten up your seatbelts, sit back and enjoy the ride.. Notes: svn path=/head/; revision=170159
* (1) In tcp_usrclosed(), tp can never become NULL, so don't test for NULLRobert Watson2007-05-311-4/+3
| | | | | | | | | | | | before handling the socket disconnection case. (2) Clean up surrounding comments and formatting. Found with: Coverity Prevent(tm) (1) CID: 2203 Notes: svn path=/head/; revision=170153
* Revert UF_OPENING workaround for CURRENT.Konstantin Belousov2007-05-3134-85/+62
| | | | | | | | | | | | Change the VOP_OPEN(), vn_open() vnode operation and d_fdopen() cdev operation argument from being file descriptor index into the pointer to struct file. Proposed and reviewed by: jhb Reviewed by: daichi (unionfs) Approved by: re (kensmith) Notes: svn path=/head/; revision=170152
* Now that sx(9) locks support an interruptible lock acquire primitive,Robert Watson2007-05-311-2/+5
| | | | | | | | | | | | | | properly observe the SB_NOINTR flag in sblock. This restores the required behavior that lock acquisition be interruptible on the socket buffer I/O serialization lock to allow threads waiting for I/O to be signaled even if they aren't the thread currently holding the I/O lock. With this change, the sblock regression test is again passed. Reported by: alfred sx(9) handiwork: attilio Notes: svn path=/head/; revision=170151
* Add CPUID2_PDCMDag-Erling Smørgrav2007-05-312-0/+2
| | | | | | | | Requested by: jkim MFC after: 3 days Notes: svn path=/head/; revision=170150
* Add functions sx_xlock_sig() and sx_slock_sig().Attilio Rao2007-05-313-92/+154
| | | | | | | | | | | | | | | | | | | These functions are intended to do the same actions of sx_xlock() and sx_slock() but with the difference to perform an interruptible sleep, so that sleep can be interrupted by external events. In order to support these new featueres, some code renstruction is needed, but external API won't be affected at all. Note: use "void" cast for "int" returning functions in order to avoid tools like Coverity prevents to whine. Requested by: rwatson Tested by: rwatson Reviewed by: jhb Approved by: jeff (mentor) Notes: svn path=/head/; revision=170149
* Use ACPICA defined value for notification rather than locally defined one.Takanori Watanabe2007-05-311-8/+3
| | | | Notes: svn path=/head/; revision=170148
* Remove "acpi_bus_number: can't get _ADR" message. It usually appears asNate Lawson2007-05-311-10/+7
| | | | | | | | | | we traverse \_SB and \ in the namespace, which won't have _ADR anyway. Use a proper extern instead of our own private copy. MFC after: 1 week Notes: svn path=/head/; revision=170143
* A few small but significant fixes:Jack F Vogel2007-05-302-63/+54
| | | | | | | | | | | - Coverity Prevent(tm) CID 1906 a bogus use of bzero where unneeded. - ICH8 systems autoneg to 100 rather than 1000, this can also be seen in 82573, the logic was backwards. - On new 82575 quadports half duplex tx speed is slow... this was due to overwriting TCTL reg rather than adding bits. Notes: svn path=/head/; revision=170141
* - Fixed (Apple) compiler warnings in sctp_input.c, sctputil.c, sctp_output.cRandall Stewart2007-05-303-104/+108
| | | | | | | | | - Fixed a LOR in handling a cookie. Turns out create lock is applied. And if we abort processing, this causes LOR. Changed to force the timer to clean up, that way create lock is released. Notes: svn path=/head/; revision=170140
* Remove a KASSERT intended to help the developer, the condition is no longerAndrew Thompson2007-05-301-0/+2
| | | | | | | | | | valid since the span code was added. PR: kern/113170 MFC after: 1 week Notes: svn path=/head/; revision=170139
* - Fix a memory overwrite when the mapping arrayRandall Stewart2007-05-3011-131/+141
| | | | | | | | | | | | | is expanded, size of expansion was not taken int consideration. - Fix so vtag hash is 1 bigger so that it modulo's out correctly, avoids a panic when restart with right modulo happens. - do not dereference stcb when control->do_not_ref_stcb is set - Fix up packet logging to not often use a lock and also to add to options. - Fix some logging option duplication in the sctputil.h Notes: svn path=/head/; revision=170138
* Don't rely on pcm_channel index numbering while doing sequential channelAriff Abdullah2007-05-301-10/+21
| | | | | | | allocation. Notes: svn path=/head/; revision=170137
* MFi386: revision 1.653.Yoshihiro Takahashi2007-05-301-1/+2
| | | | Notes: svn path=/head/; revision=170136
* MFi386: PDCM, remove pointless messageDag-Erling Smørgrav2007-05-301-7/+2
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=170135
* Remove unused !AUDIT audit_proc_*() prototypes: unlike in Mac OS X, weRobert Watson2007-05-302-23/+0
| | | | | | | | | don't define or use these functions if AUDIT isn't configured. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=170132
* Synchronize white space to congruent user-space code in OpenBSM.Robert Watson2007-05-301-0/+2
| | | | | | | Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=170131
* Remove unused ar_subj_comm field from in-kernel audit record; we neverRobert Watson2007-05-302-2/+0
| | | | | | | | | export this via BSM, so don't pay space/time cost of maintaining it. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=170130
* Consistent white space after .'s in comments.Robert Watson2007-05-301-3/+3
| | | | Notes: svn path=/head/; revision=170127
* Remove the volatile qualifier to apply to fxp_miibus_readreg().Kevin Lo2007-05-301-2/+2
| | | | Notes: svn path=/head/; revision=170125
* Bow to incomplete GCC 4. constant propagation optimizations andAlexander Kabaev2007-05-3013-13/+17
| | | | | | | | initialize some of the local variables GCC claims are being used uninitialized. Notes: svn path=/head/; revision=170124
* In ipsec6_output_tunnel() make sure that the SA contents do not change.Bjoern A. Zeeb2007-05-291-1/+8
| | | | | | | | The same would apply to ipsec6_output_trans() but there is a larger patch around which already corrected that case. Do not interfere with that one. Notes: svn path=/head/; revision=170123