summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add the actual source too :)jfv2007-07-1112-0/+9206
| | | | Approved by: re
* New driver for Intel 10G PCI-Express adapter (82598), driver isjfv2007-07-112-0/+13
| | | | | | | still in Beta, but we want early users to have access to it in 7.0, Feedback welcome. Enjoy. -Jack Approved by: re
* Remove the internal use of __packed and put it on the structuresmjacob2007-07-112-40/+40
| | | | | | | themselves. Reviewed by: nate, peter, warner, robert Approved by: re (ken)
* In the function pc98_check_if_type for the non-8251 casemjacob2007-07-111-0/+4
| | | | | | | | make sure we initialize fileds in the iod that otherwise would have been initialized. Reviewed by: nate, ken, warner Approved by: re (ken)
* Fix ioctls on the control vnode: ioctls on a character device fail withrwatson2007-07-112-2/+2
| | | | | | | | ENOTTY. Make the control vnode a regular file so that ioctls are passed through to our kernel module. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
* Avoid a panic in insmntque when we pass a NULL mount: this reenablesrwatson2007-07-112-14/+2
| | | | | | | | | some previously disabled code which according to the comment caused a problem during shutdown. But even that is still better than triggering a kernel panic whenever venus is started. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
* Replace CODA_OPEN with CODA_OPEN_BY_FD: coda_open was disabled becauserwatson2007-07-1112-262/+108
| | | | | | | | | | | we can't open container files by device/inode number pair anymore. Replace the CODA_OPEN upcall with CODA_OPEN_BY_FD, where venus returns an open file descriptor for the container file. We can then grab a reference on the vnode coda_psdev.c:vc_nb_write and use this vnode for further accesses to the container file. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
* Now that wicontrol has been removed from the base system the correspondingthompsa2007-07-112-1/+15
| | | | | | | | ioctls can be removed. These have been #ifdef'd out and left as a reference in case any of the RIDs need to be turned into sysctls at a later date. Reviewed by: sam, avatar Approved by: re (kensmith)
* Resolve Coda mount failing because Coda failed to match the devicerwatson2007-07-112-16/+8
| | | | | | | | operations. But we don't have to, if we find the coda_mntinfo structure for this device in our linked list, we know the device is good. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
* Avoid crash when opening Coda device: when allocating coda_mntinfo, werwatson2007-07-114-14/+20
| | | | | | | | need to initialize dev so that we can actually find the allocated coda_mntinfo structure later on. Submitted by: Jan Harkes <jaharkes@cs.cmu.edu> Approved by: re (kensmith)
* Fix kbdmux(4) issue with backslash/underscore key not working onemax2007-07-111-0/+3
| | | | | | | | | Japanese 106/109 keyboard. PR: kern/112214, kern/99090 Submitted by: TOMITA Yoshinori, TAKAHASHI Yoshihiro Approved by: re (hrs) MFC after: 3 days
* Fix userland applications compilation by using correct KPI protectionattilio2007-07-111-0/+7
| | | | | | | | | macros for lock_profiling. Reported by: Tom McLaughlin <tmclaugh@sdf.lonestar.org> Tested by: Tom McLaughlin <tmclaugh@sdf.lonestar.org> Approved by: jeff (mentor) Approved by: re
* This commit was generated by cvs2svn to compensate for changes in r171364,harti2007-07-111-7/+7
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Vendor patch to remove some __inline qualifiers on non-static functionsharti2007-07-111-7/+7
| | | | | | | | | | | | | | because they seem to cause warnings in gcc-4.2. Submitted by: mjacob Approved by: re
* | Protect against divide by zero while calculating bus speed due toariff2007-07-111-1/+5
| | | | | | | | | | | | | | | | possible broken kernel timecounter. Reported/Tested by: silby Approved by: re (hrs) MFC after: 1 day
* | MFp4: Make use of the kernel unit number allocation facilitydelphij2007-07-113-18/+10
| | | | | | | | | | | | | | for tmpfs nodes. Submitted by: Mingyan Guo <guomingyan gmail com> Approved by: re (tmpfs blanket)
* | Remove now-stale 00READ file in the Coda tree; rvb isn't the currentrwatson2007-07-111-15/+0
| | | | | | | | | | | | contact for the Coda kernel module in FreeBSD. Approved by: re (kensmith)
* | Add Micro Research PCMCIA LAN Adapter MR10TPC support. Patch slightlyimp2007-07-112-0/+3
| | | | | | | | | | | | | | | | reworked by me. Submitted by: Osamu Hasegawa-san PR: 93393 Approved by: re (hrs)
* | Add --no-warn-mismatch to ld(1) when linking binary files intomarcel2007-07-111-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ELF files. On ia64 the ELF header contains information about characteristics of the machine code and ld(1) needs that to determine whether input files are compatible for linking. To this end non-ELF files are not supported by binutils on ia64. However, the resulting ELF file seems to be correct despite the warnings and the non-supportedness of non-ELF files and it appears enough to unbreak the build of firmware(9) files on ia64 by simply supressing the warning. Ran into by: gallatin@ Approved by: re (hrs) Looks good to me: mlaier@
* | Mark ng_h4(4) as not MPSAFE and disconnect it from the LINT build for now.emax2007-07-111-1/+1
| | | | | | | | Approved by: re (rwatson)
* | Add additional product id and quirks entry for MetaGeek Wi-Spyimp2007-07-102-0/+5
| | | | | | | | | | | | Submitted by: Robert Noland PR: 114481 Approved by: re@ (blanket)
* | Correct a problem in the ZERO_COPY_SOCKETS option, specifically, inalc2007-07-101-2/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | vm_page_cowfault(). Initially, if vm_page_cowfault() sleeps, the given page is wired, preventing it from being recycled. However, when transmission of the page completes, the page is unwired and returned to the page queues. At that point, the page is not in any special state that prevents it from being recycled. Consequently, vm_page_cowfault() should verify that the page is still held by the same vm object before retrying the replacement of the page. Note: The containing object is, however, safe from being recycled by virtue of having a non-zero paging-in-progress count. While I'm here, add some assertions and comments. Approved by: re (rwatson) MFC After: 3 weeks
* | Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.emax2007-07-102-2/+3
| | | | | | | | Approved by: re (rwatson)
* | Don't use almost perfectly pessimal cluster allocation. Allocationbde2007-07-102-6/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the the first cluster in a file (and, if the allocation cannot be continued contiguously, for subsequent clusters in a file) was randomized in an attempt to leave space for contiguous allocation of subsequent clusters in each file when there are multiple writers. This reduced internal fragmentation by a few percent, but it increased external fragmentation by up to a few thousand percent. Use simple sequential allocation instead. Actually maintain the fsinfo sequence index for this. The read and write of this index from/to disk still have many non-critical bugs, but we now write an index that has something to do with our allocations instead of being modified garbage. If there is no fsinfo on the disk, then we maintain the index internally and don't go near the bugs for writing it. Allocating the first free cluster gives a layout that is almost as good (better in some cases), but takes too much CPU if the FAT is large and the first free cluster is not near the beginning. The effect of this change for untar and tar of a slightly reduced copy of /usr/src on a new file system was: Before (msdosfs 4K-clusters): untar: 459.57 real untar from cached file (actually a pipe) tar: 342.50 real tar from uncached tree to /dev/zero Before (ffs2 soft updates 4K-blocks 4K-frags) untar: 39.18 real tar: 29.94 real Before (ffs2 soft updates 16K-blocks 2K-frags) untar: 31.35 real tar: 18.30 real After (msdosfs 4K-clusters): untar 54.83 real tar 16.18 real All of these times can be improved further. With multiple concurrent writers or readers (especially readers), the improvement is smaller, but I couldn't find any case where it is negative. 342 seconds for tarring up about 342 MB on a ~47MB/S partition is just hard to unimprove on. (This operation would take about 7.3 seconds with reasonably localized allocation and perfect read-ahead.) However, for active file systems, 342 seconds is closer to normal than the 16+ seconds above or the 11 seconds with other changes (best I've measured -- won easily by msdosfs!). E.g., my active /usr/src on ffs1 is quite old and fragmented, so reading to prepare for the above benchmark takes about 6 times longer than reading back the fresh copies of it. Approved by: re (kensmith)
* | Further cleanup of UDPv4:rwatson2007-07-102-98/+96
| | | | | | | | | | | | | | | | | | | | | | | | | | | | - Move udp_sendspace and udp_recvspace global variables and associated sysctls to the top of the file where most other such things are present. - Rename static variable 'blackhole' to 'udp_blackhole' and unstaticize so that we can add blackhole support for UDPv6 using the same MIB variable. - Move udp_append() above udp_input() to match the function order in udp6_usrreq.c. Approved by: re (kensmith)
* | Fixing the mount_smbfs(8) hanging by utilising the destroy_dev_sched() KPI.avatar2007-07-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | Relevant threads: http://lists.freebsd.org/pipermail/freebsd-current/2007-June/074329.html Reviewed by: kib, bp (slightly different version) Tested by: Yuri Pankov <yuri.pankov at gmail dot com>, Jiawei Ye <leafy7382 at gmail dot com> Approved by: re (kensmith)
* | Get rid of a couple of Coverity found sign comparison errors.mjacob2007-07-101-3/+3
| | | | | | | | | | Approved by: re (Ken) MFC after: 3 days
* | Be more conservative- turn off fast posting and RIO for 22XX cards.mjacob2007-07-101-7/+2
| | | | | | | | | | Approved by: re (ken) MFC after: 3 days
* | MFp4 122896kmacy2007-07-103-42/+78
| | | | | | | | | | | | | | | | | | | | - reduce cpu usage by as much as 25% (40% -> 30) by doing txq reclaim more efficiently - use mtx_trylock when trying to grab the lock to avoid spinning during long encap loop - add per-txq reclaim task - if mbufs were successfully re-claimed try another pass - track txq overruns with sysctl Approved by: re (blanket)
* | Cast the arguments to atomic_*_ptr() when mapping it to atomic_*_32()marcel2007-07-101-3/+8
| | | | | | | | | | | | This is a minimal fix. Approved by: re (kensmith)
* | Missed in last commit: add usb task for rue to use for its ticks.imp2007-07-091-0/+1
| | | | | | | | Approved by: re (bmah)
* | - Add codec id for Realtek ALC268.ariff2007-07-092-18/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add controller id for Intel 82801I (ICH9). PR: kern/114399 Submitted by: Michael Fuckner <michael@fuckner.net> - MSI support. Disable by default due to various issues with too many broken hardwares. MSI can be enabled through device.hints(5) or kenv(8) by setting "hint.pcm.%d.msi=1". Partially submitted by: kevlo YAMAMOTO Taku <taku@tackymt.homeip.net> Tested by: joel, kevlo, YAMAMOTO Taku Approved by: re (hrs) MFC after: 3 days
* | Fix stream suspend/resume activity due to its states beingariff2007-07-091-12/+27
| | | | | | | | | | | | clobbered by pcm channel start/stop trigger operation. Approved by: re (hrs)
* | General style, white space, and comment cleanup; move to ANSI Crwatson2007-07-093-101/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | prototypes, don't use register, etc. Synchronize structure and layout to the IPv4 versions of these functions to a greater extent, making visual comparison easier. Remove now stale or incorrect comments. Enable full lock assertions, and correct one exception handling case where the wrong label was jumped to. Tested by: bz Approved by: re (bmah)
* | When all the other drivers were converted to scheduling a taskqueue toimp2007-07-091-0/+18
| | | | | | | | | | | | | | | | | | | | do the heavy lifting of the 'mii_tick' function, rue was left behind. Implement this in a naive way. Reports from the field show this makes the driver functional with some locking issues, as opposed to an instant panic. Those will be addressed in a later version of the driver. Approved by: re@ (bmah)
* | Fix duplicates that crept in at the last minute :-(.imp2007-07-091-2/+1
| | | | | | | | | | Noticed by: Ian Freislich Approved by: re@ (blanket)
* | Fix a regression in IPv4 multicast join path (IP_ADD_MEMBERSHIP).bms2007-07-091-11/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the in_mcast.c code, if an interface for an IPv4 multicast join was not specified, and a route did not exist for the specified group in the unicast forwarding tables, the join would be rejected with the error EADDRNOTAVAIL. This change restores the old behaviour whereby if no interface is specified, and no route exists for the group destination, the IPv4 address list is walked to find a non-loopback, multicast-capable interface to satisfy the join request. This should resolve problems with starting multicast services during system boot or when a default forwarding entry does not exist. Approved by: re (rwatson)
* | Correct a reference-counting mistake in the ZFS code which led to abnormaldfr2007-07-094-6/+2
| | | | | | | | | | | | | | memory usage and pessimal cache performance. Reviewed by: pjd Approved by: re (rwatson)
* | Further diff reduction against the proposed merged usbdevs: Add a fewimp2007-07-091-21/+37
| | | | | | | | | | | | | | | | more vendors, use slightly more standardized names. No md5 chagnes for !USBVERBOSE kernels Approved by: re@ (blanket)
* | More vendors from the merged list.imp2007-07-091-10/+71
| | | | | | | | | | | | | | | | | | | | Sort NETGEAR list per convention. Swap QUALCOMM and QUALCOMM2. Add a few vendor products. no md5 changes with this file (except when USBVERBOSE is enabled) Approved by: re@ (blanket)
* | dma_tag is a static structure. Testing for it being a NULL pointermarcel2007-07-091-1/+1
| | | | | | | | | | | | | | doesn't make sense. Rewrite to what was intended. Correctly warned about by: GCC Approved by: re (bmah)
* | Eliminate the special case handling of OBJT_DEVICE objects inalc2007-07-081-10/+0
| | | | | | | | | | | | | | | | | | | | vm_fault_additional_pages() that was introduced in revision 1.47. Then as now, it is unnecessary because dev_pager_haspage() returns zero for both the number of pages to read ahead and read behind, producing the same exact behavior by vm_fault_additional_pages() as the special case handling. Approved by: re (rwatson)
* | NULL_LDT_BASE is used in !SMP kernels too and set_user_ldt() is notattilio2007-07-081-4/+2
| | | | | | | | | | | | | | | | | | properly called. Address these two issues. Reported by: Tinderbox Tested by: le Approved by: jeff (mentor) Approved by: re
* | MFp4:delphij2007-07-084-67/+83
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Plug memory leak. - Respect underlying vnode's properties rather than assuming that the user want root:wheel + 0755. Useful for using tmpfs(5) for /tmp. - Use roundup2 and howmany macros instead of rolling our own version. - Try to fix fsx -W -R foo case. - Instead of blindly zeroing a page, determine whether we need a pagein order to prevent data corruption. - Fix several bugs reported by Coverity. Submitted by: Mingyan Guo <guomingyan gmail com>, Howard Su, delphij Coverity ID: CID 2550, 2551, 2552, 2557 Approved by: re (tmpfs blanket)
* | Fix a bug of retrieving configuration ROM.simokawa2007-07-081-2/+2
| | | | | | | | | | | | | | | | | | | | - Handle directories and leaves other than unit directories and text leaves correctly. - Now we can retrieve CROM of iSight correctly. Approved by: re (hrs) Tested by: flz MFC after: 3 days
* | Now that we have a function that can be called from a cdevsw close()njl2007-07-071-9/+1
| | | | | | | | | | | | entry point, use it. Approved by: re
* | Actual code shows several problems in ia32 LDT handling:attilio2007-07-072-34/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - When a LDT entry changes, the old one is freed while it is still referenced by gdt and ldtr. This can lead to disruptive behaviours in particular on SMP machines. - When a LDT entry changes, it is assumed that the only one entity sharing the same LDT are threads in the same proc. It doesn't take in account edge cases where two processes share the same VM (rfork'ed ones, for example). This patch addresses these two problems and addictionally it fixes the usage of refcount switching back it to the old manually-grown refcount (since in this case would be faster). Diagnosed by: tegge Tested by: pho (a former version) Reviewed by: kib Approved by: jeff (mentor) Approved by: re
* | Minor UDPv4 cleanup: capitalize comment, move statistics update after mbufrwatson2007-07-071-3/+3
| | | | | | | | | | | | | | free to be consistent with other error handling, and release socket buffer lock before freeing mbufs and statistics updates rather than after. Approved by: re (kensmith)
* | When a cached page is reactivated in vm_fault(), update the counter thatalc2007-07-061-8/+10
| | | | | | | | | | | | | | | | | | | | tracks the total number of reactivated pages. (We have not been counting reactivations by vm_fault() since revision 1.46.) Correct a comment in vm_fault_additional_pages(). Approved by: re (kensmith) MFC after: 1 week
* | Trivial differences with the proposed merged BSD usbdevs file mergedimp2007-07-061-95/+94
| | | | | | | | | | | | | | | | | | in. These are exclusively in the name of the company for this round. No new devices have been added, but the MITEL entry has been eliminated because nothing uses it. You won't see any difference unless you have USBVERBOSE defined for the kernel. Approved by: re@ (blanket)
OpenPOWER on IntegriCloud