summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Garbage collect now-unused nfsrv_setcred() -- it's not only unused, butrwatson2007-11-042-18/+0
| | | | | | | also a purveyor of unfortunate (and now unsupported) direct frobbing of struct ucred. MFC after: 3 days
* Add support for trimmed down version of ATI SB600 AC97 audioariff2007-11-042-0/+2
| | | | | | | | | controller. URL: http://www.ipc2u.de/catalog/P/PE/36486.html PR: kern/117813 Submitted by: Klaus Mayr MFC after: 1 day
* Add an option to limit the number of source MACs that can be behind a bridgethompsa2007-11-042-23/+91
| | | | | | | | interface. Once the limit is reached packets with unknown source addresses are dropped until an existing host cache entry expires or is removed. Useful to use with the STICKY cache option. Sponsored by: miniSuperHappyDevHouse NZ
* fix build: when usb was enabled wireless drivers were brought in sosam2007-11-031-8/+0
| | | | remove the nodevice lines that elided wlan support
* upgrade zd1211b firmware for the zyd driver. This solves a hardwaresam2007-11-031-512/+471
| | | | | | | | reset problem when we reboot the system with the zyd device inserted. Submitted by: Weongyo Jeong Reported by: Ted Lindgreen (ted@tednet.nl) MFC after: 1 week
* fix a typo in rx radiotap's flagssam2007-11-031-1/+1
| | | | | | Submitted by: Weongyo Jeong Reviewed by: sam MFC after: 3 days
* correct entrysam2007-11-031-1/+1
|
* bandaid crash as I have no time to research the issue and the driversam2007-11-031-1/+1
| | | | | | | is unusable in its present state; refer to the PR for details PR: kern/110662 MFC after: 3 days
* Ever since the module registration system was introduced to this driver,scottl2007-11-031-1/+2
| | | | | | it's been printing out scary messages about "Unhanded Event Notify Frame" that are needlessly worrisome to users. Change this warning to only print out at an elevated debugging level.
* Remove zyd as wireless is not supported on PAE.thompsa2007-11-031-0/+1
|
* Eliminate spurious "Approaching the limit on PV entries, ..."alc2007-11-032-11/+8
| | | | | | | | | | | | | | | warnings. Specifically, whenever vm_page_alloc(9) returned NULL to get_pv_entry(), we issued a warning regardless of the number of pv entries in use. (Note: The older pv entry allocator in RELENG_6 does not have this problem.) Reported by: Jeremy Chadwick Eliminate the direct call to pagedaemon_wakeup() by get_pv_entry(). This was a holdover from earlier times when the page daemon was responsible for the reclamation of pv entries. MFC after: 5 days
* o Fix panic message: it's swap_pager_putpages() not swap_pager_getpages().maxim2007-11-021-1/+1
| | | | Submitted by: Mark Tinguely
* Completely remove the code for single threading the mainline fork code.julian2007-11-021-49/+3
| | | | | | | | | | | Put in a little comment explaining why it went away. Re-enable it in the case there an exisiting process is just splitting off its address space and file descriptors. (I donpt think anything uses that code but it needs some sort of locking and this does the job. Reviewed by: Davidxu, alc, others MFC after: 3 days
* Fix a shutdown hang on some SMP systems. The previous logic was to IPI allnjl2007-11-021-4/+6
| | | | | | | | | | CPUs to make sure idle threads are evicted from the softc before returning from acpi_cpu_shutdown(). However, this is unnecessary since stop_cpus() handles this for itself and at this point it's possible that our IPI will be blocked (interrupts disabled). Thanks to: Glen Leeder <glen.leeder / nokia.com> MFC after: 3 days
* sync 11n support with vap code base; many changes based on interopsam2007-11-0216-272/+1036
| | | | | | testing with all major vendors MFC after: 1 week
* correct channel flags returned by IEEE80211_IOC_STA_INFO; we needsam2007-11-021-1/+1
| | | | | | to return all 32-bits to identify stations operating with HT MFC after: 1 week
* don't try to re-associate after a parameter change, too many ap'ssam2007-11-021-11/+1
| | | | | | | don't do this right; instead go to the scan cache so we pass through auth state (if the cache is warm we can do this w/o an actual scan) MFC after: 1 week
* - Add sysctl for sizeof(znode_t), which will be used by fstat(1).lulf2007-11-022-0/+8
| | | | Approved by: pjd (mentor)
* Rework aac locking for MPSAFE CAM. This fixes a Giant mutex assertionemaste2007-11-012-19/+22
| | | | | | | | | | | | reported on freebsd-current [1]. Also dequeue all events in aac_release_command (instead of just one) so that there's no risk of them getting stranded. Reported by: Steven Brown [1] Submitted by: scottl@ [1] http://lists.freebsd.org/pipermail/freebsd-current/2007-October/077928.html
* Call zil_commit() (if ZIL is not disabled) after every non-read requestpjd2007-11-012-22/+22
| | | | | | | | (BIO_WRITE and BIO_FLUSH) as it is done is Solaris. The difference is that Solaris calls it only for sync requests, but we can't say in GEOM is the request is sync or async, so we do it for every request. MFC after: 1 week
* __CPU_XSCALE_PXA2XX -> CPU_XSCALE_PXA2X0kevlo2007-11-011-1/+1
|
* - Move crfree() outside MNT_ILOCK()/MNT_IUNLOCK() to eliminate a LOR:pjd2007-11-012-4/+12
| | | | | | | | | 1st 0xc4cea568 struct mount mtx (struct mount mtx) @ /usr/src/sys/modules/zfs/../../compat/opensolaris/kern/opensolaris_vfs.c:209 2nd 0xc3ee9010 sleep mtxpool (sleep mtxpool) @ /usr/src/sys/kern/kern_resource.c:1266 - Move crdup() outside MNT_ILOCK()/MNT_IUNLOCK(), as it can sleep. Reported by: Olli Hauer <ohauer@gmx.de> MFC after: 3 days
* add zydsam2007-10-311-1/+2
| | | | MFC after: 3 days
* Fix locking issue in ng_btsocket_l2cap_ctloutput()emax2007-10-311-2/+4
| | | | | Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net > MFC after: 3 days
* Add CPU_ARM9Ekevlo2007-10-311-0/+1
|
* Don't define get_cachetype() for CPU_ARM9E unless it's going to be used.kevlo2007-10-311-1/+1
|
* If we're on an SMP kernel and there is more than 1 CPU, reject any attemptsnjl2007-10-301-1/+17
| | | | | | to change the freq before the other CPUs are active. The current code always attempts to change all CPUs to match each other, and the requisite sched_bind() call won't work before APs are launched.
* Split agp_generic_detach() up into two routines: agp_free_cdev() destroysjhb2007-10-3022-76/+78
| | | | | | | | | /dev/agpgart and agp_free_res() frees resources like the BAR for the aperture. Splitting this up lets chipset-specific detach routines manipulate the aperture during their detach routines without panicing. MFC after: 1 week Reviewed by: anholt
* Apply a few changes from ipfilter-current:darrenr2007-10-307-44/+69
| | | | | | | | * Do not hold any locks over calls to copyin/copyout. * Clean up some #ifdefs * fix a possible mbuf leak when NAT fails on policy routed packets PR: 117216
* Correct a copy and paste'o in phys_pager.c, we are talking about phys hereremko2007-10-301-1/+1
| | | | | | | and not about devices. PR: 93755 Approved by: imp (mentor, implicit when re-assigning the ticket to me).
* - Change the Time Wait of vtags value to match the cookie-liferrs2007-10-307-22/+78
| | | | | | | | | | | | | | | | | | | | | | | | - Select a tag gains ability to optionally save new tags off in the timewait system. - When looking up associations do not give back a stcb that is in the about-to-be-freed state, and instead continue looking for other candiates. - New function to query to see if value is in time-wait. - Timewait had a time comparison error that caused very few vtags to actually stay in time-wait. - When setting tags in time-wait, we now use the time requested NOT a fixed constant value. - sstat now gets the proper associd when we do the query. - When we process an association, we expect the tag chosen (if we have one from a cookie) to be in time-wait. Before we would NOT allow the assoc up by checking if its good. In theory this should have caused almost all assoc not to come up except for the time-comparison bug above (this bug was hidden by the time comparison bug :-D). - Don't save tags for nonce values in the time-wait cache since these are used only during cookie collisions and do not matter if they are unique or not. MFC after: 1 week
* Setting sc->mii_anegticks to MII_ANEGTICKS_GIGE in rgephy_attach()yongari2007-10-301-1/+0
| | | | | | is redundant. mii_phy_add_media() already takes care of that. Pointed out by: marius
* Implement per-object type consistency checks for labels passed torwatson2007-10-301-20/+65
| | | | | | 'internalize' operations rather than using a single common check. Obtained from: TrustedBSD Project
* Move nvram out of DEFAULTS. There really isn't a lot of justificationpeter2007-10-294-2/+6
| | | | | for consuming the memory. The module works just fine in the unlikely case that this is needed. It can still be compiled into a custom kernel.
* - Remove MIIF_NOISOLATE; there's generally no reason to let gentbi(4)marius2007-10-291-2/+1
| | | | | | | | | | set this flag and it was more or less just copied and pasted from another FreeBSD driver while porting this driver from NetBSD, whose gentbi(4) doesn't set MIIF_NOISOLATE either. - Fix spelling in a comment. OK'ed by: yongari MFC after: 3 months
* kill commented out line of code.imp2007-10-291-1/+0
|
OpenPOWER on IntegriCloud