summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Bunch of small bugfixes and cleanups.mav2011-03-318-62/+32
| | | | Found with: Clang Static Analyzer
* Bunch of small bugfixes and cleanups.mav2011-03-316-29/+24
| | | | | | Found with: Coverity Prevent(tm) CID: 9656, 9658, 9693, 9705, 9706, 9707, 9808, 9809, 9810, 9711, 9712, 9713, 9714
* Optimisation in IPSEC(4):fabient2011-03-317-75/+69
| | | | | | | | | | - Remove contention on ISR during the crypto operation by using rwlock(9). - Remove a second lookup of the SA in the callback. Gain on 6 cores CPU with SHA1/AES128 can be up to 30%. Reviewed by: vanhu MFC after: 1 month
* Avoid having a binary file in our source tree and instead create it atemaste2011-03-312-0/+4
| | | | | build time, to avoid possible grief maintaining FreeBSD source in alternative version control tools.
* Fix malloc types.ae2011-03-311-2/+2
| | | | MFC after: 1 week
* Fix a memory leak. Memory that is allocated for schedulers hash tableae2011-03-311-2/+3
| | | | | | | was not freed. PR: kern/156083 MFC after: 1 week
* Remove $Log$ keyword, which can cause annoyance in diffs in some cases.emaste2011-03-311-1/+1
| | | | Revision control tools have a history command to obtain this information.
* Remove $Log$ keyword and associated history, which can cause annoyance inemaste2011-03-311-25/+0
| | | | | diffs in some cases. Revision control tools have a history command to obtain this information.
* Clearing the flag when preempting will let the preempted thread runfabient2011-03-312-7/+4
| | | | | | | | | | | | | | | | | too much time. This can finish in a scheduler deadlock with ping-pong between two threads. One sample of this is: - device lapic (to have a preemption point on critical_exit()) - options DEVICE_POLLING with HZ>1499 (to have lapic freq = hardclock freq) - running a cpu intensive task (that does not enter the kernel) - only one CPU on SMP or no SMP. As requested by jhb@ 4BSD have received the same type of fix instead of propagating the flag to the new thread. Reviewed by: jhb, jeff MFC after: 1 month
* Explicitly track the state of all known BARs for each PCI device. The PCIjhb2011-03-314-99/+172
| | | | | | | | | | | | | | | | | | bus driver will now remember the size of a BAR obtained during the initial bus scan and use that size when doing lazy resource allocation rather than resizing the BAR. The bus driver will now also report unallocated BARs to userland for display by 'pciconf -lb'. Psuedo-resources that are not BARs (such as the implicit I/O port resources for master/slave ATA controllers) will no longer be listed as BARs in 'pciconf -lb'. During resume, BARs are restored from their new saved state instead of having the raw registers saved and restored across resume. This also fixes restoring BARs at unusual loactions if said BAR has been allocated by a driver. Add a constant for the offset of the ROM BIOS BAR in PCI-PCI bridges and properly handle ROM BIOS BARs in PCI-PCI bridges. The PCI bus now also properly handles the lack of a ROM BIOS BAR in a PCI-Cardbus bridge. Tested by: jkim
* Fix two SA refcount:fabient2011-03-312-1/+1
| | | | | | | | - AH does not release the SA like in ESP/IPCOMP when handling EAGAIN - ipsec_process_done incorrectly release the SA. Reviewed by: vanhu MFC after: 1 week
* ath_ahb shouldn't be compiled normally; it is atheros chip specific.adrian2011-03-311-1/+0
| | | | Remove it from here; users can compile it manually if needed.
* Introduce AH_AR5416_INTERRUPT_MITIGATION which enables interrupt mitigation foradrian2011-03-313-4/+7
| | | | the AR5416 and later. Rename the older HAL option to use this.
* Document the ath glue changes.adrian2011-03-311-0/+10
|
* Revert r220032:linux compat: add SO_PASSCRED option with basic handlingavg2011-03-313-16/+0
| | | | | | | | | | I have not properly thought through the commit. After r220031 (linux compat: improve and fix sendmsg/recvmsg compatibility) the basic handling for SO_PASSCRED is not sufficient as it breaks recvmsg functionality for SCM_CREDS messages because now we would need to handle sockcred data in addition to cmsgcred. And that is not implemented yet. Pointyhat to: avg
* Break out the ath PCI logic into a separate device/module.adrian2011-03-3119-15/+404
| | | | | | | | | Introduce the AHB glue for Atheros embedded systems. Right now it's hard-coded for the AR9130 chip whose support isn't yet in this HAL; it'll be added in a subsequent commit. Kernel configuration files now need both 'ath' and 'ath_pci' devices; both modules need to be loaded for the ath device to work.
* Remove unneeded checks, g_new_xxx functions can not return NULL.ae2011-03-311-26/+6
| | | | | Reviewed by: pjd MFC after: 1 week
* Add relation to my mentor (ehaupt)martymac2011-03-311-0/+1
|
* Implement AR724x USB initialisation code.adrian2011-03-312-1/+48
| | | | | | | This (again) still requires an offset for the AR913x/AR724x before USB will function. Submitted by: Luiz Otavio O Souzau <loos.br@gmail.com>
* Increase debug level on g_gate device destruction and add message ontrociny2011-03-301-1/+2
| | | | | | | | device creation. Suggested by: danger Approved by: pjd (mentor) MFC after: 3 days
* Add a menu entry for UTC in the main menu.edwin2011-03-301-5/+39
| | | | | | | PR: bin/156019 Submitted by: Daniel O'Conner Reviewed by: Garrett Cooper <gcooper@FreeBSD.org> MFC after: 1 week
* Fix grammar and bump date.trasz2011-03-301-2/+2
| | | | Submitted by: trociny
* Add example devd.conf entry.trasz2011-03-301-0/+10
|
* Add startup script, to load rules from /etc/rctl.conf.trasz2011-03-302-1/+40
| | | | | Sponsored by: The FreeBSD Foundation Reviewed by: kib (ealier version)
* Add rctl(8), the utility to manage rctl rules.trasz2011-03-304-0/+751
| | | | | Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version)
* Expose the rctl(2) API in libc.trasz2011-03-301-0/+5
|
* Regenerate.trasz2011-03-3011-12/+377
|
* Add rctl. It's used by racct to take user-configurable actions basedtrasz2011-03-309-1/+2070
| | | | | | | | on the set of rules it maintains and the current resource usage. It also privides userland API to manage that ruleset. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version)
* Check in two missing files missed in cleanup.jpaetzel2011-03-302-4/+4
| | | | | | | Change expr to $(()) Switch test from "$?" = "0" to $? -eq 0 Approved by: kib (mentor)
* Fix syntax error from previous commit.jpaetzel2011-03-301-1/+1
| | | | Approved by: kib (mentor)
* Regen.kib2011-03-305-12/+18
|
* Provide compat32 shims for kldstat(2).kib2011-03-305-25/+80
| | | | | Requested and tested by: jpaetzel MFC after: 1 week
* Use FD_CLOEXEC explicitly.pluknet2011-03-301-1/+1
| | | | MFC after: 3 days
* Clamp the initial advertised receive window when responding to a SYN/ACKjhb2011-03-301-1/+2
| | | | | | | | | | | | | to the maximum allowed window. Growing the window too large would cause an underflow in the calculations in tcp_output() to decide if a window update should be sent which would prevent the persist timer from being started if data was pending and the other end of the connection advertised an initial window size of 0. PR: kern/154006 Submitted by: Stefan `Sec` Zehl sec 42 org Reviewed by: bz MFC after: 1 week
* Remove duplicate sentence.ae2011-03-301-4/+0
|
* Remove the reference to pseudo-terminals from the description.ed2011-03-308-24/+16
| | | | | Pseudo-terminals are no longer listed in this file, since the utmpx implementation doesn't depend on ttyslot().
* Replace ${SYSCTL_W} with ${SYSCTL} in rc.d scripts, as they are identical.emaste2011-03-308-51/+51
| | | | | | This is a further clean up after r202988. SYSCTL_W is still initialized in rc.subr as some ports may still use it.
* This patch fixes the Experimental NFS client to properly deal with 32 bit or 64zack2011-03-302-6/+5
| | | | | | | | | | | | bit fileid's in NFSv2 and NFSv3. Without this fix, invalid casting (and sign extension) was creating problems for any fileid greater than 2^31. We discovered this because we have test clusters with more than 2 billion allocated files and 64-bit ino_t's (and friend structures). Reviewed by: rmacklem Approved by: zml (mentor) MFC after: 2 weeks
* Upgrade of base gcc and libstdc++ to the last GPLv2-licensed revisionmm2011-03-2940-59/+689
| | | | | | | | | | | | | | | | | | | (rev. 127959 of gcc-4_2-branch). Resolved GCC bugs: c++: 17763, 29365, 30535, 30917, 31337, 31941, 32108, 32112, 32346, 32898, 32992 debug: 32610, 32914 libstdc++: 33084, 33128 middle-end: 32563 rtl-optimization: 33148 tree-optimization: 25413, 32723 target: 32218 Tested by: pointyhat (miwi) Obtained from: gcc (gcc-4_2-branch up to rev. 127959) PR: gnu/153298, gnu/153959, gnu/154385 MFC after: 1 month
* Allocate memory for a DMA method table only in case we need to overridemarius2011-03-292-9/+18
| | | | | | | the iommu(4) provided one, i.e. in case of Hummingbird and Sabre bridges, otherwise just use the iommu(4) one. This also fixes a bug introduced in r220039 which caused an empty DMA method table to be used for the second of a pair of Psycho bridges.
* Remove pointless (always true) KASSERTs.trasz2011-03-291-19/+0
| | | | Submitted by: pjd
* Revert file added in a wrong place by mistake. D'oh.trasz2011-03-291-842/+0
|
* Revert part of r220137, committed by mistake - RACCT is _not_ supposedtrasz2011-03-291-2/+0
| | | | to be enabled in GENERIC.
* Add racct. It's an API to keep per-process, per-jail, per-loginclasstrasz2011-03-2918-3/+1939
| | | | | | | | | and per-loginclass resource accounting information, to be used by the new resource limits code. It's connected to the build, but the code that actually calls the new functions will come later. Sponsored by: The FreeBSD Foundation Reviewed by: kib (earlier version)
* According to ath9k recv.c, one shouldn't be doing self-linked descriptorsadrian2011-03-293-1/+5
| | | | | | | | | | | in the RX path when doing 11n and block-ack'ed frames. Apparently, the MAC will loop over that self-linked descriptor and treat it as "good enough" for (incorrectly!) ACKing the frames in the block-ack. Until I figure out how to work around this issue in the future, this counter will tell me if packet RX processing ever gets to the point where it's touching the self-linked descriptor. If there's ever enough packets to get to that point, BA's will be invalid and likely very unhappy.
* - Enable an extra debugging bootverbose printf when probing ISA PNP cardsjhb2011-03-291-2/+2
| | | | | | | | | listing each card as it is found on non-PC98 (PC98 already had this). - Increase the length of the DELAY() used before timing out while reading PNP resource data. Tested by: Steven Nikkel steven_nikkel ertyu org MFC after: 1 week
* Do not build ip_fw_nat.c for ipfw.ko. It can be build as separate module.ae2011-03-291-1/+1
| | | | MFC after: 1 week
* Do not use word 'flood' as it not entirely correct. Use better 'no delay'emax2011-03-282-18/+19
| | | | | | | description. While here, replace atoi(3) with strtol(3). Submitted by: arundel MFC after: 1 week
* Fix the check for vm_map_remove() error.kib2011-03-281-1/+1
| | | | | Pointed out by: alc MFC after: 2 weeks
* Revise r220046 by introducing dc_netcfg_wait() which waits the endyongari2011-03-281-51/+39
| | | | | | | | of active DMA cycle. dc_setcfg() also has to wait until the DMA engine is stopped so using a common function to handle the job is better than duplicating the code. No objection from: marius
OpenPOWER on IntegriCloud