summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Don't pollute the entire kernel build with -I$S/contrib/dev/ath andobrien2005-09-112-6/+13
| | | | | -I$S/contrib/dev/ath/freebsd. "ATH_BUILDING_FROM_SOURCE" can be defined to globally get back -I$S/contrib/dev/ath.
* Allow one to access the cached values for CMDREG, CACHELNSZ, MINGNT,imp2005-09-112-6/+33
| | | | | | MAXLAT and LATTIMER. Improve error message when a bogus RID type is requested for a bar.
* Don't pollute the entire kernel build with -I$S/contrib/ipfilter.obrien2005-09-112-16/+26
|
* Don't pollute the entire kernel build with -I$S/contrib/pf.obrien2005-09-112-19/+32
|
* Don't pollute the entire kernel build with -I$S/contrib/ngatm.obrien2005-09-112-30/+54
|
* Don't pollute the entire kernel build with -I$S/dev/twa.obrien2005-09-117-20/+22
|
* For HEAD, install a kernel with debug information if DEBUG is a kernelobrien2005-09-111-17/+4
| | | | | config option. It is too easy to loose the build directory and not have symbols for kgdb to read.
* In ext2_mountfs(), check that the superblock size, SBSIZE,rodrigc2005-09-101-0/+12
| | | | | | | | | is aligned with the sectorsize value returned by GEOM, before doing a bread() of the superblock. This eliminates a panic when trying the following on an empty CD-ROM drive: mount_ext2fs /dev/acd0 /mnt Reviewed by: phk
* Fix boot-time hang/panic on G3 systems when modifying IBAT0 ingrehan2005-09-103-3/+6
| | | | | | | | pmap_bootstrap by using the sync;isync big hammer to make sure all prior operations have completed. Reported by: Nathan Whitehorn <nathan at uchicago edu> MFC after: 2 days
* - channel.hnetchild2005-09-104-231/+350
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * New definition CHN_F_HAS_VCHAN. - channel.c * Use CHN_F_HAS_VCHAN to mark channel with vchan capability instead of relying on SLIST_EMPTY(&channel->children) == true for better clarification and future possible usages of children (like 'slave' channel). * Various fixes, including blocksize / format bps allignment, better 24bit seeking (mplayer, others). * Improve format chain building, it's now possible to record something to a format non-native to the soundcard through various feeder format converters or to higher sampling rate. This also gains another feature, like doing vchan mixing on non s16le soundcard such as sb8. - sound.c * Increase robustness within various function that handle vchan creation / termination (these function need a total rewrite, but that would cause other major rewrite within various places too!). As far as its robustness can be guaranteed, leave it as is. * Optimize channel ordering, prefer *real* hardware playback channels over virtual channels. cat /dev/sndstat should look better. * Increase sndstat verbosity to include bufsoft/bufhard allocation. - vchan.c * Fix LOR 119. - http://sources.zabbadoz.net/freebsd/lor.html#119 * Reorder / increase robustness of vchan_create() / destroy(). Enforce destroy_dev() during destroy operation, fix possible panic / dangling character device. - http://lists.freebsd.org/pipermail/freebsd-current/2005-May/050308.html * Tolerate a little bit more during mixing process, this should help non s16le soundcards. Note: Recoring in a non-native rate/format may result in overruns. A friendly application is wavrec from audio/wavplay. The problem is under investigation. Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* Release lock for a while during chn_reset() / pcm_chnalloc() operationnetchild2005-09-101-2/+6
| | | | | | | | | | | while malloc()ing, this fixes LOR 129. See - http://lists.freebsd.org/pipermail/freebsd-current/2005-June/051157.html - http://lists.freebsd.org/pipermail/freebsd-current/2005-August/054620.html - http://sources.zabbadoz.net/freebsd/lor.html#129 Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* - fake.cnetchild2005-09-104-37/+233
| | | | | | | | | | | | | | | * Add missing A_LAW / MU_LAW format. - feeder.c * Fix format chain building. Traverse backward instead of forward during format chainning. - feeder_fmt.c * Add missing alaw/mulaw converter. * Add 16 -> 24/32bit converter. * whitespace cleanup. - sound.h * alaw / mulaw are member of AFMT_8BIT. Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* - Few buggy codecs (STAC9704, probably others) return inconsistentnetchild2005-09-102-24/+84
| | | | | | | | | ac97_rdcd() value. Enable aggresive workaround. - Fix mixer resolution detection for 5/6 bit register, carefully not to overflow others. PR: 84728 Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
* Fix panic caused by full duplex operation.netchild2005-09-101-2/+3
| | | | | | | | | | | | | From the PR: ---snip--- The vibra16X supports full duplex. I traced the Windows driver, and what is does is that it programs one DMA channel 8-bit, and the other 16-bit. There might be some kind of auto detection logic here, because it always uses 8-bit for playback, even if I play 16-bit sound ... ---snip--- PR: 80977 Submitted by: Hans Petter Selasky <hselasky@c2i.net>
* Protect interface and address lists using the appropriate mutex. Thesecsjp2005-09-101-16/+16
| | | | | | | | | | | | | | | | | | locks were not aquired because the user buffers were not wired, thus it was possible that that SYSCTL_OUT could sleep, causing a number of different problems such as lock ordering issues and dead locks. -Wire user supplied buffer to ensure SYSCTL_OUT will not sleep. -Pickup ifnet locks to protect the list. -Where applicable pickup address locks. -Pickup radix node head locks. -Remove splnet stubs -Remove various comments about locking here, because they are no longer needed. It is the hope that these changes will make sysctl_rtsock MP safe. MFC after: 3 weeks
* Fix copy&paste typo.pjd2005-09-101-1/+1
| | | | MFC after: 3 days
* Don't forget to initialize crp_etype field.pjd2005-09-101-0/+1
| | | | | Reported by: Nick Evans <nevans@syphen.net> MFC after: 3 days
* In tcp_ctlinput() do not swap ip->ip_len a second time. Itandre2005-09-102-4/+6
| | | | | | | | | | | has been done in icmp_input() already. This fixes the ICMP_UNREACH_NEEDFRAG case where no MTU was proposed in the ICMP reply. PR: kern/81813 Submitted by: Vitezslav Novy <vita at fio.cz> MFC after: 3 days
* Merge db_interface.c and db_trace.c into db_machdep.c.marcel2005-09-103-339/+291
|
* Move the prototypes of db_md_set_watchpoint(), db_md_clr_watchpoint()marcel2005-09-109-31/+3
| | | | and db_md_list_watchpoints() to ddb/ddb.h.
* Move the ia32_sigcode structure from ia32_sigtramp.c to ia32_signal.c.marcel2005-09-103-45/+19
| | | | It's a bit excessive to have it in a file of its own.
* Remove redundant $FreeBSD$marcel2005-09-101-2/+0
|
* MFp4:imp2005-09-102-5/+6
| | | | | | | | | | | | | Reduce the size of ed a little by removing some CIS based entries (others likely can be removed too): o The D-Link DFE-670TXD doesn't need its own entry based on strings. o The Xircom CompactCard appears to be a TDK design, so list it there by ID and remove the strings. Increase the size of ed a little: o Add support for the Addtron AE-660CT and Addtron AE-660. This is a very generic NE-2000 clone (so generic that its CIS tags say NE-2000 generic card!).
* Change the High FP lock from a sleep lock to a spin lock. We canmarcel2005-09-094-16/+16
| | | | | | take the lock from interrupt context, which causes an implicit lock order reversal. We've been using the lock carefully enough that making it a spin lock should not be harmful.
* - Do not hold route entry lock, when calling arprequest(). One suchglebius2005-09-091-9/+17
| | | | | | | | | | | | | | | | | | | | | | | | | call was introduced by me in 1.139, the other one was present before. - Do all manipulations with rtentry and la before dropping the lock. - Copy interface address from route into local variable before dropping the lock. Supply this copy as argument to arprequest() LORs fixed: http://sources.zabbadoz.net/freebsd/lor/003.html http://sources.zabbadoz.net/freebsd/lor/037.html http://sources.zabbadoz.net/freebsd/lor/061.html http://sources.zabbadoz.net/freebsd/lor/062.html http://sources.zabbadoz.net/freebsd/lor/064.html http://sources.zabbadoz.net/freebsd/lor/068.html http://sources.zabbadoz.net/freebsd/lor/071.html http://sources.zabbadoz.net/freebsd/lor/074.html http://sources.zabbadoz.net/freebsd/lor/077.html http://sources.zabbadoz.net/freebsd/lor/093.html http://sources.zabbadoz.net/freebsd/lor/135.html http://sources.zabbadoz.net/freebsd/lor/140.html http://sources.zabbadoz.net/freebsd/lor/142.html http://sources.zabbadoz.net/freebsd/lor/145.html http://sources.zabbadoz.net/freebsd/lor/152.html http://sources.zabbadoz.net/freebsd/lor/158.html
* When a carp(4) interface is being destroyed and is in a promiscous mode,glebius2005-09-091-0/+1
| | | | | | | | | | first interface is detached from parent and then bpfdetach() is called. If the interface was the last carp(4) interface attached to parent, then the mutex on parent is destroyed. When bpfdetach() calls if_setflags() we panic on destroyed mutex. To prevent the above scenario, clear pointer to parent, when we detach ourselves from parent.
* Introduce a new lock for the purpose of synchronizing access to thealc2005-09-091-22/+9
| | | | | | | | | | | | | | | UMA boot pages. Disable recursion on the general UMA lock now that startup_alloc() no longer uses it. Eliminate the variable uma_boot_free. It serves no purpose. Note: This change eliminates a lock-order reversal between a system map mutex and the UMA lock. See http://sources.zabbadoz.net/freebsd/lor.html#109 for details. MFC after: 3 days
* Set the G_PF_WITHER flag on the subdisk provider that is about tole2005-09-081-34/+1
| | | | | be destroyed. That way the GEOM system handles all deallocations and we don't have to do it ourselves.
* Unbreak the build. Committed from the wrong directory.mlaier2005-09-081-4/+5
|
* Minor improvement for the suspend case for Ricoh based (and others)imp2005-09-081-0/+1
| | | | CardBus bridges.
* The ed driver lock is already held in the mii frobbing routines. Removeimp2005-09-081-11/+0
| | | | locking from these routines.
* Add note about what ED_DEFAULT_MAC_OFFSET applies toimp2005-09-081-0/+4
|
* Note that pc98 specific defines maybe would be better in a header file.imp2005-09-081-0/+1
|
* Commit imported changes to HEAD:mlaier2005-09-082-21/+67
| | | | | | | | | | | | | | | | | | | | | | | pf_ioctl.c Revision 1.153 Sun Aug 7 11:37:33 2005 UTC by dhartmei | verify ticket in DIOCADDADDR, from Boris Polevoy, ok deraadt@ pf_ioctl.c Revision 1.158 Mon Sep 5 14:51:08 2005 UTC by dhartmei | in DIOCCHANGERULE, properly initialize table, if used in NAT rule. | from Boris Polevoy <vapcom at mail dot ru>, ok mcbride@ pf.c Revision 1.502 Mon Aug 22 11:54:25 2005 UTC by dhartmei | when nat'ing icmp 'connections', replace icmp id with proxy values | (similar to proxy ports for tcp/udp). not all clients use | per-invokation random ids, this allows multiple concurrent | connections from such clients. | thanks for testing to Rod Whitworth, "looks ok" markus@ pf.c Revision 1.501 Mon Aug 22 09:48:05 2005 UTC by dhartmei | fix rdr to bitmask replacement address pool. patch from Max Laier, | reported by Boris Polevoy, tested by Jean Debogue, ok henning@ Obtained from: OpenBSD MFC after: 3 days
* Fix an item leak, that happens when some node calls ng_callout() twoglebius2005-09-081-2/+6
| | | | | | | | | | | times consequently, without checking whether callout has been serviced or not. (ng_pptpgre and ng_ppp were catched in this behavior). - In ng_callout() save old item before calling callout_reset(). If the latter has returned 1, then free this item. - In ng_uncallout() clear c->c_arg. Problem reported by: Alexandre Kardanev
* Rework locking, that I have introduced recently, since it was incorrect:glebius2005-09-081-35/+54
| | | | | | | | | | | | | | | | | First, mutexed callouts are incompatible with netgraph nodes, because netgraph(4) can guarantee that the function will be called with mutex held. Second, nodes should not send data to their neighbor holding their mutex. A node does not know what stack can it enter sending data in some direction. May be executing will encounter a place to sleep. New locking: - ng_pptpgre_recv() and ng_pptpgre_xmit() must be entered with mutex held. - ng_pptpgre_recv() and ng_pptpgre_xmit() unlock mutex before sending data and then return unlocked. - callout routines acquire mutex themselves.
* Make callout_reset() return a non-zero value if a pending calloutglebius2005-09-082-4/+9
| | | | | | was rescheduled. If there was no pending callout, then return 0. Reviewed by: iedowse, cperciva
* Fix a typo that broke LINT.scottl2005-09-081-1/+1
|
* Move hme_stop() after ether_ifdetach() and if_free() to prevent akensmith2005-09-081-2/+2
| | | | | | | | | | memory-referenced-after-free panic if the hme interface fails to attach. Patch obtained from: marius Suggested same thing: brooks MFC after: 3 days
* Add a new struct buf flag bit, B_PERSISTENT, and use it to tagtruckman2005-09-083-23/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | struct bufs that are persistently held by ext2fs. Ignore any buffers with this flag in the code in boot() that counts "busy" and dirty buffers and attempts to sync the dirty buffers, which is done before attempting to unmount all the file systems during shutdown. This fixes the problem caused by any ext2fs file systems that are mounted at system shutdown time, which caused boot() to give up on a non-zero number of buffers and skip the call to vfs_unmountall(). This left all the mounted file systems in a dirty state and caused them to all require cleanup by fsck on reboot. Move the two separate copies of the "busy" buffer test in boot() to a separate function. Nuke the useless spl() stuff in the ext2fs ULCK_BUF() macro. Bring the PRINT_BUF_FLAGS definition in sys/buf.h up to date with this and previous flag changes. PR: kern/56675, kern/85163 Tested by: "Matthias Andree" matthias.andree at gmx.de Reviewed by: bde MFC after: 3 days
* Hook up the hptmv driver for amd64.scottl2005-09-084-1/+13
| | | | MFC After: 3 days
* Import new version of the HPTMV driver from Highpoint. The major changescottl2005-09-0721-3320/+5283
| | | | | | | | here is the support for amd64, as well as possible support for PAE. Many thanks to Highpoint for continuing to support FreeBSD. Obtained from: Steve Chang @ Highpoint MFC After: 3 days.
* Sorting the belly button lint of history:imp2005-09-071-7/+15
| | | | | | | | o Note that the first 255 locations are reserved for JEDEC Ids from publication 106 (current revision Q, each one verified with JEDEC and the PMCICA). o Move ADAPTEC2 to the right section. o Sort TOSHIBA2 numerically.
* Use the more readable empty() syntax.obrien2005-09-073-9/+9
|
* In set_mouse_pos(), try to avoid division by zero errors.rodrigc2005-09-071-1/+2
|
* Ensure the full value is written into inode variables.obrien2005-09-071-2/+2
| | | | | PR: 85503 Submitted by: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
* IPv6 was improperly defining its malloc type the same as IPv4 (M_IPMADDR,obrien2005-09-076-35/+35
| | | | | M_IPMOPTS, M_MRTABLE). Thus we had conflicting instantiations. Create an IPv6-specific type to overcome this.
* Forward declaring static variables as extern is invalid ISO-C. Now thatobrien2005-09-074-5/+6
| | | | GCC can properly handle forward static declarations, do this properly.
* Reorder code to not depend on an ISO-C illegal forward extern declaration.obrien2005-09-073-1796/+1793
|
* Consistancy is the hobgoblin of small minds:imp2005-09-072-39/+39
| | | | o DLINK -> DL100XX
OpenPOWER on IntegriCloud