summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* In g_gate_create() there is a window between when g_gate_softc istrociny2011-03-272-2/+6
| | | | | | | | | | | | | | | registered in g_gate_units array and when its sc_provider field is filled. If during this period g_gate_units is accessed by another thread that is checking for provider name collision the crash is possible. Fix this by adding sc_name field to struct g_gate_softc. In g_gate_create() when g_gate_softc is created but sc_provider is still not sc_name points to provider name stored in the local array. Approved by: pjd (mentor) Reported by: Freddie Cash <fjwcash@gmail.com> MFC after: 1 week
* Fix a syntax error in a little-used function.jpaetzel2011-03-2719-308/+283
| | | | | | | | | | Replace expr with $(()) Replace grep > /dev/null with grep -q Replace "$?" = "0" with $? -eq 0 in tests Consolidate export statements with variable assignment Replace tests for ! -z with -n Approved by: kib (mentor)
* Amd64 doesn't have a lazypmap ipi.alc2011-03-272-4/+0
|
* Increase size of boot partition to give breathing room in the future.jpaetzel2011-03-271-1/+1
| | | | Approved by: kib (mentor)
* Refactor out the ar71xx mac address code into something that'sadrian2011-03-271-17/+30
| | | | | | | | | | | just for Redboot. At some point we're going to need to build options for different boot environments - for example, the UBoot setups I've seen simply have the MAC address hard-coded at a fixed location in flash. The OpenWRT support simply yanks the if_arge MAC directly from that in code, rather than trying to find a uboot environment to pull it from.
* getpwnam(3) may return NULL.ume2011-03-271-3/+4
| | | | | | Requested by: nork Reviewed by: Takeharu KATO <takeharu1219__at__ybb.ne.jp>, nork MFC after: 1 week
* Fix typo.adrian2011-03-271-2/+2
|
* Rename AH_ENABLE_11N to ATH_ENABLE_11 - the HAL supports 11n byadrian2011-03-273-3/+3
| | | | | default but the ath driver doesn't. This is a much more consistent name.
* Add an option - AR71XX_REALMEM - which overrides the amount ofadrian2011-03-272-0/+20
| | | | | | | | | | | | memory detected from Redboot, or overrides the "otherwise" case if no Redboot information was found. Some AR71XX platforms don't use Redboot (eg TP-LINK devices using UBoot; some later Ubiquiti devices which apparently also use UBoot) and at least one plain out lies - the Ubiquiti LS-SR71A Redboot says there's 16mb of RAM when in fact there's 32mb. A more "clean" solution will be needed at a later date.
* Add some missing flags needed for AR913x/AR724x USB to correctly operate.adrian2011-03-271-0/+14
| | | | | | | | | The AR913x/AR724x USB lives at a different offset to the AR71xx USB, so this needs to be either adjusted for in a subsequent commit, or updated in hints for kernels compiled for those platforms. Submitted by: Luiz Otavio O Souzau <loos.br@gmail.com>
* Hook the 220.backup-pkgdb script I added to the build unconditionallydougb2011-03-272-0/+2
| | | | | | Hook up 610.ipf6denied based on MK_IPFILTER as 510.ipfdenied is now Poked by: Andrzej Tobola <ato@iem.pw.edu.pl>
* Add svn:executable property on remaining period scripts without itdougb2011-03-276-0/+0
|
* Wait until the DMA engine is stopped before unmapping buffers andmarius2011-03-261-1/+25
| | | | | | | descriptors, which fixes DMA errors seen on sparc64. Obtained from: OpenBSD MFC after: 1 week
* Print the raw value of si_code, that is esp. useful for undecoded values.kib2011-03-261-3/+4
| | | | | Sponsored by: The FreeBSD Foundation MFC after: 1 week
* Eliminate an unused definition.alc2011-03-261-3/+0
| | | | Reviewed by: marcel
* Fixed sockets display somewhat (-L, -T, -x, -Lx, with and without -A).ru2011-03-261-45/+37
| | | | | | (I didn't try to fix negative TCP timers with -x.) MFC after: 3 days
* Fix some style issues in r219925.jh2011-03-261-5/+2
| | | | | Reported by: bde MFC after: 1 month
* - A closer inspection of the OpenSolaris code indicates that the DMAmarius2011-03-262-158/+52
| | | | | | | | | | | syncing for Hummingbird and Sabre bridges should be applied with every BUS_DMASYNC_POSTREAD instead of in a wrapper around interrupt handlers for devices behind PCI-PCI bridges only as suggested by the documentation (code for the latter actually exists in OpenSolaris but is disabled by default), which also makes more sense. - Take advantage of the ofw_pci_setup_device method introduced in r220038 for disabling bus parking for certain EBus bridges in order to - Mark some unused parameters as such.
* - Merge the *_SET macros from fire(4) which generally print out themarius2011-03-268-257/+310
| | | | | | | | | | | | | | | | | | | | | | | | | register changes when compiled with SCHIZO_DEBUG and take advantage of them. - Add support for the XMITS Fireplane/Safari to PCI-X bridges. I tought I'd need this for a Sun Fire 3800, which then turned out to not being equipped with such a bridge though. The support for these should be complete but given that it hasn't actually been tested probing is disabled for now. This required a way to alter the XMITS configuration in case a PCI-X device is found further down the device tree so the sparc64 specific ofw_pci kobj was revived with a ofw_pci_setup_device method, which is called by the ofw_pcibus code for every device added. - A closer inspection of the OpenSolaris code indicates that consistent DMA flushing/syncing as well as the block store workaround should be applied with every BUS_DMASYNC_POSTREAD instead of in a wrapper around interrupt handlers for devices behind PCI-PCI bridges only as suggested by the documentation (code for the latter actually exists in OpenSolaris but is disabled by default), which also makes more sense. - Add a workaround for Casinni/Skyhawk combinations. Chances are that this solves the crashes seen when using the the on-board Casinni NICs of Sun Fire V480 equipped with centerplanes other than 501-6780 or 501-6790. This also takes advantage of the ofw_pci_setup_device method. - Mark some unused parameters as such.
* Cause the release target to set up its object directory. It is designednwhitehorn2011-03-262-2/+2
| | | | | | to be a meta-target, and having it do this avoids it spewing files all over the source tree by default (and possible recursive tarring if distributing a src tarball).
* .. And another missed commit - add the PSPOLL capability.adrian2011-03-261-1/+2
|
* This was missing from the previous HAL commit - it fixes a typo andadrian2011-03-261-1/+2
| | | | introduces the PS-POLL hardware support.
* If 802.11n is enabled, bump the number of buffers used up to a largeradrian2011-03-261-0/+8
| | | | | | level. This is important for AMPDU RX as each burst is multiple packets in a row.
* linux compat: add SO_PASSCRED option with basic handlingavg2011-03-263-0/+16
| | | | | | | | This seems to have been a part of a bigger patch by dchagin that either haven't been committed or committed partially. Submitted by: dchagin, nox MFC after: 2 weeks
* linux compat: improve and fix sendmsg/recvmsg compatibilityavg2011-03-264-53/+252
| | | | | | | | | | | | | | | | | - implement baseic stubs for capget, capset, prctl PR_GET_KEEPCAPS and prctl PR_SET_KEEPCAPS. - add SCM_CREDS support to sendmsg and recvmsg - modify sendmsg to ignore control messages if not using UNIX domain sockets This should allow linux pulse audio daemon and client work on FreeBSD and interoperate with native counter-parts modulo the differences in pulseaudio versions. PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
* linux compat: add non-dummy capget and capset system calls, regenerateavg2011-03-2612-24/+76
| | | | | | | | | | And drop dummy definitions for those system calls. This may transiently break the build. PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
* Add in the hardware PS-POLL frame reception setting, but leave it disabledadrian2011-03-261-0/+19
| | | | | | | | by default. Adventourous souls with an AR9220/AR9280 or later and who have a device that sends PS-POLL frames may wish to try tinkering with this option and get back to me.
* linux compat: add non-dummy capget and capset system callsavg2011-03-262-4/+8
| | | | | | | PR: kern/149168 Submitted by: John Wehle <john@feith.com> Reviewed by: netchild MFC after: 2 weeks
* Introduce hardware PS-POLL support in the HAL.adrian2011-03-263-1/+8
| | | | | | | | | Linux ath9k only enables this for AR9280 and later NICs; so create a capability for it so it isn't enabled for earlier NICs. Enabling hardware PS-POLL support will come in a later commit and will be disabled by default.
* Export the correct AT_PLATFORM value.dchagin2011-03-262-4/+2
| | | | | | | Since signal trampolines are copied to the shared page do not need to leave place on the stack for it. Forgotten in the previous commit. MFC after: 1 Week
* Put these two back to mirror what ath9k does.adrian2011-03-261-2/+2
| | | | | | | | Even though they map to setting the error filter register, ath9k also writes them untouched to AR_RX_FILTER. The Force-BSSID match bit can stay high, as it maps to a misc mode register setting rather than an RX filter bit.
* Don't calculate len too early.pjd2011-03-261-1/+1
|
* Follow style(9) in example code and handle opendir(3) error.pjd2011-03-261-4/+7
|
* Shuffle around the HAL_RX_FILTER bits to be slightly more sensible.adrian2011-03-261-3/+17
| | | | | | | | The phyerr, radar and bssid-match bits aren't real bits, they map to enabling bits in other registers. Move those out of the way of valid RX filter bits. Add a few new fields from ath9k - compba, ps-poll, mcast-bcast-all.
* Move an external declaration to the appropriate header file.alc2011-03-262-2/+1
|
* Add a daily period script to back up /var/db/pkgdougb2011-03-262-0/+54
| | | | | | | | | | The final product contains work from the originator, and Florent Thoumie <florent.thoumie@gmail.com>. The final product contains considerable re-working by me, so all responsibility for bugs rests under my pointy hat. PR: ports/145957 Submitted by: Eitan Adler <EitanAdlerList@gmail.com>
* Update ath_hal.4 to include the latest chipset support.adrian2011-03-261-5/+6
| | | | | | | ath_hal needs a lot more work to encompass the list of supported cards, as the AR5416/AR9160/AR9280/AR9285 list is quite long and extensive. In addition, there's a lot of AR5212/AR5213 based cards that aren't on this list.
* Improve CPU identifications of various IDT/Centaur/VIA, Rise and Transmetajkim2011-03-264-153/+146
| | | | | | | | | CPUs. These CPUs need explicit MSR configuration to expose ceratin CPU capabilities (e.g., CMPXCHG8B) to work around compatibility issues with ancient software. Unfortunately, Rise mP6 does not set the CX8 bit in CPUID and there is no MSR to expose the feature although all mP6 processors are capable of CMPXCHG8B according to datasheets I found from the Net. Clean up and simplify VIA PadLock detection while I am in the neighborhood.
* Add the svn:executable property to the scripts that are missing itdougb2011-03-267-0/+0
|
* - Implement wake-on-lan support in mlxen.jeff2011-03-267-4/+72
|
* Add an example for the use of the <include> entry to help othersdougb2011-03-261-1/+6
| | | | | | who are as slow as I am. Discussed with: gordon
* Report EBUSY instead of EROFS for attempt of deleting or renaming thekib2011-03-251-2/+2
| | | | | | | | | | | | | root directory of msdosfs mount. The VFS code would handle deletion case itself too, assuming VV_ROOT flag is not lost. The msdosfs_rename() should also note attempt to rename root via doscheckpath() or different mount point check leading to EXDEV. Nonetheless, keep the checks for now. The change is inspired by NetBSD change referenced in PR, but return EBUSY like kern_unlinkat() does. PR: kern/152079 MFC after: 1 week
* Update T3 firmware to 7.11.0np2011-03-252-1493/+1527
| | | | | | | | | | | | | | | | Changes since 7.8.0 (from the official changelog): - Fixed sporadic interrupt generation for associated CQ when processing a local invalidate work request - Changes to core scheduling to avoid starving requests from the host under heavy RDMA Read Request load (e.g. packets to the wire) - Programmed the tp tx resource limiter in function of the traffic (only affects iWarp) - Increased the egress NIC gather list length from 36 to 46 entries MFC after: 1 week
* Add mapsize to the header just before sending the packet.pjd2011-03-251-1/+1
| | | | | | | | | Before it could change later and we were sending invalid mapsize. Some time ago I added optimization where when nodes are connected for the first time and there were no writes to them yet, there is no initial full synchronization. This bug prevented it from working. MFC after: 1 week
* Use timeout from configuration file not only when sending and receiving,pjd2011-03-251-1/+1
| | | | | | but also when establishing connection. MFC after: 1 week
* Use role2str() when setting process title.pjd2011-03-252-2/+2
| | | | MFC after: 1 week
* rtld: eliminate double call to close(2) that may occur in load_objectavg2011-03-251-5/+2
| | | | | | | | | | | The second close(2) call resulted in heisenbugs in some multi-threaded applications where e.g. dlopen(3) call in one thread could close a file descriptor for a file having been opened in other thread concurrently. My litmus test for this issue was an openoffice.org build. Reviewed by: jhb MFC after: 2 weeks
* Handle the corner case in vm_fault_quick_hold_pages().kib2011-03-251-0/+2
| | | | | | | | | | If supplied length is zero, and user address is invalid, function might return -1, due to the truncation and rounding of the address. The callers interpret the situation as EFAULT. Instead of handling the zero length in caller, filter it in vm_fault_quick_hold_pages(). Sponsored by: The FreeBSD Foundation Reviewed by: alc
* Document O_CLOEXEC.kib2011-03-251-4/+16
| | | | | Reviewed by: jhb MFC after: 1 week
* Add O_CLOEXEC flag to open(2) and fhopen(2).kib2011-03-254-4/+17
| | | | | | | | The new function fallocf(9), that is renamed falloc(9) with added flag argument, is provided to facilitate the merge to stable branch. Reviewed by: jhb MFC after: 1 week
OpenPOWER on IntegriCloud