summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rather than using hidden includes (with cicular dependencies),bz2008-12-02125-56/+212
| | | | | | | | | | | directly include only the header files needed. This reduces the unneeded spamming of various headers into lots of files. For now, this leaves us with very few modules including vnet.h and thus needing to depend on opt_route.h. Reviewed by: brooks, gnn, des, zec, imp Sponsored by: The FreeBSD Foundation
* Make the "test" target test the compiled version, instead of thephk2008-12-021-7/+7
| | | | installed version of the md library.
* Remove "[KEEP THIS!]" from COMPAT_43TTY. It's not really that important.ed2008-12-028-9/+9
| | | | | | | Sgtty is a programming interface that has been replaced by termios over the years. In June we already removed <sgtty.h>, which exposes the ioctl()'s that are implemented by this interface. The importance of this flag is overrated right now.
* Remove slip.log. Slip got removed as part of the MPSAFE tty work. Ifkensmith2008-12-021-2/+0
| | | | | | | it does come back it would probably be better if users who were interested in slip added appropriate lines instead of this being here unconditionally. Reminded by: tut <at> nhamon <dot> com <dot> ua
* The slip.log file got removed along with the MPSAFE tty work. If slipkensmith2008-12-021-1/+0
| | | | | | does ever come back it's probably best if its log file be something that gets added if the user decided they want to run slip instead of having it here unconditionally.
* Bug fix from Chelsio which addresses the issue of the device resettinggnn2008-12-021-25/+2
| | | | | | | | | when it sees only received packets. In some cases where a device only recieves data it mistakenly thinks that its transmitting side is broken and resets the device. Obtained from: Chelsio Inc. MFC after: 3 days
* Update format string for kve_start/end.peter2008-12-021-2/+3
|
* This commits brings in a lot of documentation and some enhancementluigi2008-12-022-248/+476
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | of the boot0.S code, with a number of compile-time selectable options, the most interesting one being the ability to select PXE booting. The code is completely compatible with the previous one, and with the boot0cfg program. Even the actual code is largely unmodified, with only minor rearrangements or fixes to make room for the new features. The behaviour of the standard build differs from the previous version in the following, minor things: + 'noupdate' is the default, which means the code does not write back the selection to disk. You can enable the feature at runtime with boot0cfg, or changing the flags in the Makefile. + a drive number of 0x00 (floppy, or USB in floppy emulation) is now accepted as valid. Previously, it was overridden with 0x80, meaning that the partition table coming from the media was used to access sectors on a possibly different media. You can revert to the previous mode building with -DCHECK_DRIVE, and you can always use the 'setdrv' option in boot0cfg + certain FAT or NTFS partitions are listed as WIN instead of DOS. + the 'bel' character on a bad selection is replaced by a '#' to make it clear that the system is not hang even if the machine does not have a speaker. This can be reverted back at compile time, or at runtime with an upcoming boot0cfg option. Additional features are available as compile time options, and may be become the default if deemed useful. In particular: + INT18/PXE boot (make -DPXE) This option enables booting through INT 18h (which on certain BIOSes can be hooked to PXE) by pressing F6. There is unfortunately no room to print the additional menu option. Also, to make room for the code, the 'Default: ' string is changed to 'Boot: ' + print current drive number (make -DTEST) Prints a line indicating the current drive number. This is useful to figure out what is going on for machines/bioses which remap drives in sometimes surprising ways. + disable numeric keys in console mode (make -DONLY_F_KEYS) Not really a significant option, but it is needed to make room for the -DTEST mode. + disable floppy support (make -DCHECK_DRIVE) Revert to the old behaviour of only accepting 0x80 and above as valid drive numbers. MFC after: 6 weeks
* Remove unused variable.ganbold2008-12-021-3/+0
| | | | | | | Found with: Coverity Prevent(tm) CID: 3685 Approved by: jhb
* Provide custom simple allocator for rtld locks in libthr. The allocatorkib2008-12-023-24/+25
| | | | | | | | | does not use any external symbols, thus avoiding possible recursion into rtld to resolve symbols, when called. Reviewed by: kan, davidxu Tested by: rink MFC after: 1 month
* Shared lookup makes it possible to create several negative cachekib2008-12-021-4/+11
| | | | | | | | | | | | | entries for one name. Then, creating inode with that name would remove one entry, leaving others dormant. Reclaiming the vnode would uncover negative entries, causing false return of ENOENT from the calls like stat, that do not create inode. Prevent creation of the duplicated negative entries. Reported and debugged with: pho Reviewed by: jhb X-MFC: after shared lookup changes
* Do not lock vnode interlock around reading of v_iflag to check VI_DOOMED.kib2008-12-021-9/+2
| | | | | | | | Read of the pointer is atomic, and flag cannot be set while vnode lock is held. Requested by: jhb MFC after: 1 month
* - Efficiency tweak: when checking for PMC overflows, only go tojkoshy2008-12-022-14/+13
| | | | | | | hardware for PMCs that have been configured for sampling. - Bug fix: acknowledge PMC hardware overflows irrespective of the the (software) PMC's state.
* kf_offset was supposed to be signed.peter2008-12-021-1/+1
|
* Attempt a quick bandaid for arm build breakage. I went to the trouble ofpeter2008-12-022-4/+4
| | | | maintaining alignment, but I'm not sure how to tell gcc this.
* - fix bug where dnsperf would stop transmitting after a few secondskmacy2008-12-021-57/+32
| | | | | | | | | | | - break complex conditionals in to multiple lines to avoid wrapping - remove copious unused debug statements - be more aggressive about cleaning in the calling thread - eliminate usage of ENOSPC - increase number of iterations that cxgbsp can do - eliminate "initerr" usage to simplify ENOBUFS handling - when coalescing pass all packets to BPF - always set overrun if hardware queue is full
* Merge user/peter/kinfo branch as of r185547 into head.peter2008-12-0211-81/+697
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes struct kinfo_filedesc and kinfo_vmentry such that they are same on both 32 and 64 bit platforms like i386/amd64 and won't require sysctl wrapping. Two new OIDs are assigned. The old ones are available under COMPAT_FREEBSD7 - but it isn't that simple. The superceded interface was never actually released on 7.x. The other main change is to pack the data passed to userland via the sysctl. kf_structsize and kve_structsize are reduced for the copyout. If you have a process with 100,000+ sockets open, the unpacked records require a 132MB+ copyout. With packing, it is "only" ~35MB. (Still seriously unpleasant, but not quite as devastating). A similar problem exists for the vmentry structure - have lots and lots of shared libraries and small mmaps and its copyout gets expensive too. My immediate problem is valgrind. It traditionally achieves this functionality by parsing procfs output, in a packed format. Secondly, when tracing 32 bit binaries on amd64 under valgrind, it uses a cross compiled 32 bit binary which ran directly into the differing data structures in 32 vs 64 bit mode. (valgrind uses this to track file descriptor operations and this therefore affected every single 32 bit binary) I've added two utility functions to libutil to unpack the structures into a fixed record length and to make it a little more convenient to use.
| * Prune some whining.peter2008-12-021-10/+0
| |
| * Duplicate another few hundred lines of code in order to be compatiblepeter2008-12-014-4/+211
| | | | | | | | with unreleased binaries.
| * Use libutil wrapper for kinfo_get{file|vmmap}()peter2008-12-013-64/+16
| |
| * Add experimental front ends to the kinfo_vmentry and kinfo_filedescpeter2008-11-304-1/+152
| | | | | | | | sysctls.
| * Properly wrap this giant block of duplicate code inside COMPAT_FREEBSD7peter2008-11-301-2/+2
| |
| * Implement copyout packing more along the lines of what I had in mind.peter2008-11-303-14/+308
| | | | | | | | | | | | Create a temporary duplicate implementation of old filedesc struct for pre-7.1 libgtop package. Todo: specific fd or addr request
| * WIP kinfo_file/kinfo_vmmentry tweaks. The idea:peter2008-11-293-15/+37
| | | | | | | | | | | | | | | | | | 1) to get the 32 and 64 bit versions in sync so that no shims are needed, Valgrind in particular excercises this. and: 2) reduce the size of the copyout. On large processes this turns out to be a huge problem. Valgrind also suffers from this since it needs to do this in a context that can't malloc. I want to pack the records. 3) Add new types.. 'tell me about fd N' and 'tell me about addr N'.
* | Don't call destroy_dev on the alias. This fixes half a dozen PRs I think.imp2008-12-022-7/+4
| |
* | Fix world by including opt_route.hps2008-12-021-1/+1
| |
* | return ENOBUFS when ring is fullkmacy2008-12-021-1/+1
| |
* | Add 8168D support.yongari2008-12-022-1/+4
| | | | | | | | Submitted by: Andrew < andrewwtulloch <> gmail DOT com >
* | Add VLAN hardware tag insertion/stripping support. Tx/Rx checksumyongari2008-12-022-2/+29
| | | | | | | | | | | | | | | | | | | | | | offload for VLAN frames are also supported. The VLAN hardware assistance is available only on 82550/82551 based controllers. While I'm here change the confusing name of bit1 in byte 22 of configuration block to vlan_drop_en. The bit controls whether hardware strips VLAN tagged frame or not. Special thanks to wpaul who sent valuable VLAN related information to me. Tested on: i386, sparc64
* | Delete a bunch of empty mergeinfo records caused by local copies.peter2008-12-020-0/+0
| |
* | Make sure to clear PMDR register by writing back power managementyongari2008-12-021-5/+4
| | | | | | | | | | | | | | events. Just reading PMDR register was not enough to have fxp(4) immuninize against received magic packets during system boot. Tested by: Alexey Shuvaev < shuvaev <> physik DOT uni-wuerzburg DOT de >
* | The pkthdr field is flowid not rss_hashkmacy2008-12-021-1/+1
| |
* | - fix multiqueue conditionalkmacy2008-12-021-2/+2
| | | | | | | | | | | | - don't leak mbuf tags in the non-conditional case Found by: Navdeep Parhar
* | integrate use after free fixes from private branchkmacy2008-12-021-54/+44
| | | | | | | | Found by: kkenn@
* | correct typosam2008-12-011-1/+1
| | | | | | | | Submitted by: Ole Vole
* | Shared memory objects that have size which is not necessarily equal tokan2008-12-011-1/+2
| | | | | | | | | | | | | | | | exact multiple of system page size should still be allowed to be mapped in their entirety to match the regular vnode backed file behavior. Reported by: ed Reviewed by: jhb
* | Add ixgbe(4) and upgt(4).brueffer2008-12-011-0/+4
| |
* | Invoke _rtld_atfork_post earlier, before we reinitialize rtld lockskan2008-12-011-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | by switching into single-thread mode. libthr ignores broken use of lock bitmaps used by default rtld locking implementation, this in turn turns lock handoff in _rtld_thread_init into NOP. This in turn makes child processes of forked multi-threaded programs to run with _thr_signal_block still in effect, with most signals blocked. Reported by: phk, kib
* | Add controller suspend/resume support.mav2008-12-011-0/+27
| | | | | | | | | | To be able to correctly suspend/resume with card inserted, respective support should be also implemented at mmc and mmcsd layers.
* | Fix typo.skv2008-12-011-1/+1
| | | | | | | | Approved by: ru
* | Switch to ath hal source code. Note this removes the ath_halsam2008-12-01121-195545/+365
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | module; the ath module now brings in the hal support. Kernel config files are almost backwards compatible; supplying device ath_hal gives you the same chip support that the binary hal did but you must also include options AH_SUPPORT_AR5416 to enable the extended format descriptors used by 11n parts. It is now possible to control the chip support included in a build by specifying exactly which chips are to be supported in the config file; consult ath_hal(4) for information.
* | import ath halsam2008-12-01110-0/+52514
|\ \
| * | purge useless codesam2008-11-301-9/+0
| | |
| * | make code compilesam2008-11-301-2/+2
| | |
| * | not needed any moresam2008-11-301-19/+0
| | |
| * | move bus+softc typedefs to ah_osdep.h so we can eliminate the opaquesam2008-11-301-12/+0
| | | | | | | | | | | | | | | write-around; it doesn't work for some platforms (e.g. ia64) and is now pointless
| * | add chip+rf names for debug msgs, showing compiled-in support, etc.sam2008-11-2814-15/+19
| | |
| * | use os shim for linker set walkingsam2008-11-281-3/+3
| | |
| * | remove ath_hal_buildopts and ath_hal_version; they are not needed any moresam2008-11-282-102/+1
| | |
| * | kill AH_DISABLE_WME stuff; it's been posible to do this from thesam2008-11-284-35/+1
| | | | | | | | | | | | driver for a while
OpenPOWER on IntegriCloud