summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Correct a stack overflow which will trigger panics whendelphij2007-11-121-1/+1
| | | | | | | | mode= is specified, caused by incorrect format string specified to vfs_scanopt() and subsequently vsscanf(). Pointed out by: kib Submitted by: des
* Add support for D-Link DGE-528(T) Rev.B1remko2007-11-121-0/+2
| | | | | | | PR: 112774 Submitted by: Denis Fortin <fortin at acm dot org> Approved by: imp (mentor), yongari MFC After: 3 days
* Update quirks for the MetaGeek Wi-Spy 1A, 1B and 2.4x.brix2007-11-112-4/+7
| | | | | PR: usb/116057 Approved by: imp, erwin (mentor)
* The ESP driver isn't really MPSAFE, so don't mark it that it is.scottl2007-11-111-1/+1
|
* Adjust the padding of struct pcpu to src/sys/sys/pcpu.h rev 1.23.marius2007-11-111-1/+1
|
* Eliminate a stale comment concerning contigmalloc(9).alc2007-11-101-1/+0
|
* Add SMB support for the MCP61 chipset.remko2007-11-101-0/+3
| | | | | | PR: 108830 Submitted by: Edwin Mons <freebsd at edwinm dot ik dot nu> Approbed by: imp (mentor)
* Add private tx/rx buffer management to support large frame sizessam2007-11-102-110/+224
| | | | | | | | | | | | | | | | | and update the rx code to handle multiple frames in a single usb transfer. AX772 parts (at least) exhibit many input errors when operated with a 2K rx buffer and no errors w/ a 4K rx buffer (it's unclear what the cause of the errors is for 2K so this may just be covering up the real issue). Larger rx buffer sizes show no significant performance improvement for AX772. Bypassing the common buffer management routines also eliminates an extra context switch on every packet which noticeably improves performance (TCP netperf rx goes from 45 Mb/s to 85 MB/s). Submitted by: "J.R. Oldroyd" <fbsd@opal.com> Reviewed by: imp Obtained from: openbsd (partly) MFC after: 3 weeks
* Add rm_wowned(9) function to test whether the current thread owns anrwatson2007-11-102-0/+8
| | | | | | exclusive lock on the passed rmlock. Reviewed by: ups
* Limit total playback channels to just 1, for ALi M5451.ariff2007-11-101-3/+23
| | | | | | | | | | | | The reliability of it's multi DAC / playback channels is not that good. Enabling vchans make the bug more visible since playback allocation will look for possible free hardware channels first (i.e: the next DAC, the very first has been consumed by vchan mixer) which in this case has been proven faulty. Reported / Tested by: Sascha Klauder MFC after: 3 days
* - Fix a bug in sctp_calc_rwnd() which resulted in wrong rwnd predictions.rrs2007-11-102-3/+3
| | | | | | - Fix a signedness problem that shows up in some 64 bit platforms (macos). MFC after: 1 week
* Fix build without INVARIANTS and update a comment to matchru2007-11-091-3/+9
| | | | a change made in previous revision.
* Link wpi(4) into the build.benjsc2007-11-085-0/+12
| | | | | | | | | | This includes: o mtree (for legal/intel_wpi) o manpage for i386/amd64 archs o module for i386/amd64 archs o NOTES for i386/amd64 archs Approved by: mlaier (comentor)
* Remove an unneeded CFLAGS linebenjsc2007-11-081-1/+1
| | | | Approved by: mlaier (comentor)
* Turn off debug output, its been confusing users.benjsc2007-11-081-1/+1
| | | | Approved by: mlaier (comentor)
* A couple of optimizations to the last commit.jhb2007-11-081-2/+2
| | | | Submitted by: Christoph Mallon christoph mallon of gmx de
* Whitespace only.njl2007-11-081-2/+0
|
* Use VM_FAULT_DIRTY to fault in pages for write access inups2007-11-081-2/+3
| | | | | | | | proc_rwmen. Otherwise copy on write may create an anonymous page that is not marked as dirty. Since writing data to these pages in this function also does not dirty these pages they may be later discarded by the pagedaemon.
* Turn most ffs 'DIAGNOSTIC's into INVARIANTS.obrien2007-11-089-58/+55
|
* correct termination check doing amsdu de-aggregationsam2007-11-081-4/+3
| | | | MFC after: 3 days
* Make it easier to add more ptys to the pty(4) driver:jhb2007-11-081-19/+12
| | | | | | | | | | - Use unit2minor() and minor2unit() to generate minor numbers to support unit numbers higher than 255. - Use simple string operations on the 'names' array rather than hard-coded constants and switch statements so that more ptys can be added by simply expanding the 'names' array. MFC after: 1 week
* Initial checkin for rmlock (read mostly lock) a multi reader single writerups2007-11-0810-17/+738
| | | | | | | | lock optimized for almost exclusive reader access. (see also rmlock.9) TODO: Convert to per cpu variables linkerset as soon as it is available. Optimize UP (single processor) case.
* Add entries for the L2 cache-related functions for armv5.cognet2007-11-081-0/+5
| | | | Spotted out by: Rafal Jaworowski
* Document the per-arch default value of kern.maxbcache.ru2007-11-081-2/+3
|
* - Remove magic number and fit max rx buffer size accurately.ariff2007-11-082-12/+88
| | | | | | | | | | | | | | | | - Patch registers CR47 and CR157 on devices that require it. - Fix power calibration setting on ZD1211B. Obtained from: OpenBSD - Fix multicast transfer by properly reprogram multicast global hash table, which in turns fix promiscuous mode and IPv6 autoconfiguration / local networking. Reviewed by: sam, Weongyo Jeong Tested using: Aztech WL230 , Belkin F5D7050, Unicorn WL-54G, 3COM 3CRUSB10075 MFC after: 1 week
* Put back devstat support that was lost during GEOM transition. Initially,sobomax2007-11-071-0/+12
| | | | | | | | | | | I've tried to move md(4) to use geom_disk class, like real disks do, but this requires major rework of some of the existing features such as configuration dumping for example. Therefore just putting devstat support directly into md(4) seems to be optimal solution. Now you can see md(4) stats in `systat -vm' again. MFC after: 2 weeks
* Change unused 'user_wait' argument to 'timo' argument, which will bepjd2007-11-073-7/+7
| | | | | | | used to specify timeout for msleep(9). Discussed with: alc Reviewed by: alc
* asmc build infrastructure.rpaulo2007-11-071-0/+8
| | | | | Approved by: njl (mentor) Reviewed by: njl (mentor)
* Connect asmc to the build infrastructure.rpaulo2007-11-073-0/+5
| | | | | Approved by: njl (mentor) Reviewed by: njl (mentor)
* Driver for the Apple System Management Console (SMC). This hardware isrpaulo2007-11-072-0/+1141
| | | | | | | | | | | | | | | | present on the MacBook, MacBook Pro, and Intel MacMini. This driver exports information via sysctl in its private sysctl tree dev.asmc.*. You can get information about temperatures, fan speeds, the keyboard light sensor and the Sudden Motion Sensor (SMS). The SMS is very useful to park the disk heads when the laptop is moved. Basically, the SMS is setup so that, under movement, we get an interrupt on irq 6 and a devd notification is sent. Sponsored by: Google Summer of Code 2007 Approved by: njl (mentor) Reviewed by: attilio (previous version, but very similar), jhb (interrupt specific review)
* Implement LINUX_SIOCGIFCOUNT and LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX.kib2007-11-072-1/+15
| | | | | | | | | | | | | LINUX_SIOCGIFCOUNT just returns 0 since it is not implemented in the Linux 2.6.16. LINUX_SIOCGIFINDEX/LINUX_SIOGIFINDEX are mapped to the FreeBSD native SIOCGIFINDEX. Tested by: Peter Kostouros <kpeter@melbpc.org.au> Reviewed by: brooks, rpaulo (on net@) Submitted by: rdivacky MFC after: 1 week
* Warn if kmem_map size is set to less than 512MB. Previous warning was a bitpjd2007-11-072-10/+10
| | | | | | | pointless, because default is set to something around 300MB and also insufficient. MFC after: 3 days
* 1) dummynet_io() declaration has changed.oleg2007-11-065-36/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2) Alter packet flow inside dummynet: allow certain packets to bypass dummynet scheduler. Benefits are: - lower latency: if packet flow does not exceed pipe bandwidth, packets will not be (up to tick) delayed (due to dummynet's scheduler granularity). - lower overhead: if packet avoids dummynet scheduler it shouldn't reenter ip stack later. Such packets can be fastforwarded. - recursion (which can lead to kernel stack exhaution) eliminated. This fix long existed panic, which can be triggered this way: kldload dummynet sysctl net.inet.ip.fw.one_pass=0 ipfw pipe 1 config bw 0 for i in `jot 30`; do ipfw add 1 pipe 1 icmp from any to any; done ping -c 1 localhost 3) Three new sysctl nodes are added: net.inet.ip.dummynet.io_pkt - packets passed to dummynet net.inet.ip.dummynet.io_pkt_fast - packets avoided dummynet scheduler net.inet.ip.dummynet.io_pkt_drop - packets dropped by dummynet P.S. Above comments are true only for layer 3 packets. Layer 2 packet flow is not changed yet. MFC after: 3 month
* style(9) cleanup.oleg2007-11-061-340/+350
| | | | MFC after: 3 month
* Check wep flag in *_tx_mgt since we need to encrypt some management framekevlo2007-11-065-0/+55
| | | | | | in case of shared authentification. Obtained from: NetBSD
* Correct typo.grog2007-11-061-1/+1
| | | | MFC after: 2 weeks
* Apparently some NVIDIA NICs store ethernet address in reverse orderyongari2007-11-061-2/+2
| | | | | | | | | | while other variants have inorder ethernet address for the same chipset. Override ethernet address ordering if we already know how it was stored. This fixes the use of inversed ethernet address on MCP67. Submitted by: ariff MFC after: 3 days
* Remove unused header.pjd2007-11-052-1138/+0
| | | | MFC after: 3 days
* If setting a state to anything but open state, close access to vdev.pjd2007-11-052-0/+22
| | | | | | | This fixes replacing drive in place, eg. zpool replace tank da1 da1. Before it complained that device is already open. MFC after: 1 week
* Do not pass an address to local stack variable to usbd_set_report_async.kan2007-11-051-3/+4
| | | | | | | | Allocate space in keyboard state structure instead to prevent random byte from possibly overwritten stack location frombeing shoved into USB device when transfer actually takes place. This fixes at least one instance of LEDs not working with USB keyboards.
* Remove "zfs:" prefix from lock and condvar names and also skip non-letterpjd2007-11-056-6/+48
| | | | | | | | characters (mostly "&"). Because top(1) shows only first six characters of wait channel, without this change we saw only one meaningful character. Requested by: kris & others MFC after: 1 week
* Add comments explaining why all stores updating a non-kernel page tablealc2007-11-052-2/+45
| | | | | | | | | | | | must be globally performed before calling any of the TLB invalidation functions. With one exception, on amd64, this requirement was already met. Fix this one case. Also, as a clarification, change an existing atomic op into a release. (Suggested by: jhb) Reported and reviewed by: ups MFC after: 3 days
* Correct handling of off-channel frames:sam2007-11-051-12/+37
| | | | | | | | | | | | | | | o do not override the home channel recorded for the sta when the frame is received off-channel; this fixes a problem where we might think the sta was operating on the channel the frame was received on causing association requests to be ignored/rejected (likely cause of kern/99036) o don't include rssi of off-channel frames in the avg rssi used to select a bss; this gives us a better estimate of the signal we will see for the station when on-channel PR: kern/99036 Found by: Yubin Gong Reviewed by: sephe MFC after: 1 week
* Fix NOP message sending in ciss_periodic() which causes panic withiwasaki2007-11-051-3/+16
| | | | | | | | option INVARIANTS. Reviewed by: simokawa Tested by: noriyosi_kawano MFC after: 1 week
* Remove unused variable td from sched_idletd().rwatson2007-11-051-2/+0
| | | | | | MFC after: 3 days Found with: Coverity Prevent(tm) CID: 3561
* Initial Import of wpi driver based on p4 changeset 128641.benjsc2007-11-057-0/+7588
| | | | | | | | | This import includes: o wpi Wireless driver for the Intel 3945 Wireless Lan Controller (802.11abg) (sys/dev/wpi) o Intel firmware revision 2.14.4 & associated LICENSE (sys/dev/contrib/wpi, sys/contrib/dev/wpi/LICENSE) o wpifw Firmware driver (sys/modules/wpifw) Approved by: mlaier, sam (co-mentors)
* Fix for the panic("vm_thread_new: kstack allocation failed") andkib2007-11-0541-93/+222
| | | | | | | | | | | | | | | | | | | | silent NULL pointer dereference in the i386 and sparc64 pmap_pinit() when the kmem_alloc_nofault() failed to allocate address space. Both functions now return error instead of panicing or dereferencing NULL. As consequence, vmspace_exec() and vmspace_unshare() returns the errno int. struct vmspace arg was added to vm_forkproc() to avoid dealing with failed allocation when most of the fork1() job is already done. The kernel stack for the thread is now set up in the thread_alloc(), that itself may return NULL. Also, allocation of the first process thread is performed in the fork1() to properly deal with stack allocation failure. proc_linkup() is separated into proc_linkup() called from fork1(), and proc_linkup0(), that is used to set up the kernel process (was known as swapper). In collaboration with: Peter Holm Reviewed by: jhb
* Add missing locking for SBus controllers.scottl2007-11-051-0/+5
|
* The intent of the freeing the (zeroed) page in vm_page_cache() forkib2007-11-051-2/+5
| | | | | | | | | | | | | | | | | default object rather than cache it was to have vm_pager_has_page(object, pindex, ...) == FALSE to imply that there is no cached page in object at pindex. This allows to avoid explicit checks for cached pages in vm_object_backing_scan(). For now, we need the same bandaid for the swap object, otherwise both the vm_page_lookup() and the pager can report that there is no page at offset, while page is stored in the cache. Also, this fixes another instance of the KASSERT("object type is incompatible") failure in the vm_page_cache_transfer(). Reported and tested by: Peter Holm Reviewed by: alc MFC after: 3 days
* Remove a staled comment, NPE-C should work fine.cognet2007-11-041-1/+0
| | | | Reviewed by: sam
OpenPOWER on IntegriCloud