summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* - Correct mispellings of word resourcegabor2013-04-176-10/+10
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
* - Corrrect mispellings of word usefulgabor2013-04-177-7/+7
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
* - Correct mispellings of word miscellaneousgabor2013-04-172-2/+2
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
* - Correct mispellings of the word necessarygabor2013-04-178-8/+8
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
* - Correct mispellings of the word occurrencegabor2013-04-1718-20/+20
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
* Link g_label_disk_ident when building geom_label as a moduleivoras2013-04-171-0/+1
|
* Setup needed tables for TPC on AR5416->AR9287 chips.adrian2013-04-175-81/+344
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ah_ratesArray[] to the ar5416 HAL state - this stores the maximum values permissable per rate. * Since different chip EEPROM formats store this value in a different place, store the HT40 power detector increment value in the ar5416 HAL state. * Modify the target power setup code to store the maximum values in the ar5416 HAL state rather than using a local variable. * Add ar5416RateToRateTable() - to convert a hardware rate code to the ratesArray enum / index. * Add ar5416GetTxRatePower() - which goes through the gymnastics required to correctly calculate the target TX power: + Add the power detector increment for ht40; + Take the power offset into account for AR9280 and later; + Offset the TX power correctly when doing open-loop TX power control; + Enforce the per-rate maximum value allowable. Note - setting a TPC value of 0x0 in the TX descriptor on (at least) the AR9160 resulted in the TX power being very high indeed. This didn't happen on the AR9220. I'm guessing it's a chip bug that was fixed at some point. So for now, just assume the AR5416/AR5418 and AR9130 are also suspect and clamp the minimum value here at 1. Tested: * AR5416, AR9160, AR9220 hostap, verified using (2GHz) spectrum analyser * Looked at target TX power in TX descriptor (using athalq) as well as TX power on the spectrum analyser. TODO: * The TX descriptor code sets the target TX power to 0 for AR9285 chips. I'm not yet sure why. Disable this for TPC and ensure that the TPC TX power is set. * AR9280, AR9285, AR9227, AR9287 testing! * 5GHz testing! Quirks: * The per-packet TPC code is only exercised when the tpc sysctl is set to 1. (dev.ath.X.tpc=1.) This needs to be done before you bring the interface up. * When TPC is enabled, setting the TX power doesn't end up with a call through to the HAL to update the maximum TX power. So ensure that you set the TPC sysctl before you bring the interface up and configure a lower TX power or the hardware will be clamped by the lower TX power (at least until the next channel change.) Thanks to Qualcomm Atheros for all the hardware, and Sam Leffler for use of his spectrum analyser to verify the TX channel power.
* Use the TPC bank by default for AR9160.adrian2013-04-171-1/+1
| | | | | | | | | | Tested: * AR9160, hostap, verified TX power using (2GHz) spectrum analyser TODO: * 5GHz verification!
* Update the rate series setup code to use the decisions already made inadrian2013-04-172-48/+33
| | | | | | | | | | | | ath_tx_rate_fill_rcflags(). Include setting up the TX power cap in the rate scenario setup code being passed to the HAL. Other things: * add a tx power cap field in ath_rc. * Add a three-stream flag in ath_rc. * Delete the LDPC flag from ath_rc - it's not a per-rate flag, it's a global flag for the transmission.
* Print more bits from the standard extended features CPUID which will berpaulo2013-04-171-0/+13
| | | | available in the Haswell architecture (c.f. Intel Document #319433-012A).
* DTrace: Revert r249426pfg2013-04-1717-160/+23
| | | | | | This change actually depends on r249367 which had to be reverted Pointy Hat: pfg
* Correct misleading bootverbose output: ahc_isa_probe -> ahc_isa_identifyneel2013-04-171-1/+1
|
* DTrace: Revert r249367pfg2013-04-1762-2285/+901
| | | | | | | | | | | | | | | | | | | | | | The following change from illumos brought caused DTrace to pause in an interactive environment: 3026 libdtrace should set LD_NOLAZYLOAD=1 to help the pid provider This was not detected during testing because it doesn't affect scripts. We shouldn't be changing the environment, especially since the LD_NOLAZYLOAD option doesn't apply to our (GNU) ld. Unfortunately the change from upstream was made in such a way that it is very difficult to separate this change from the others so, at least for now, it's better to just revert everything. Reference: https://www.illumos.org/issues/3026 Reported by: Navdeep Parhar and Mark Johnston
* Setup accesses to the memory hole below 4GB to return all 1's on read andneel2013-04-171-9/+15
| | | | | | consume all writes without any side effects. Obtained from: NetApp
* Comment typo fix.ivoras2013-04-161-2/+2
| | | | Is aware of the importance of comments: dim
* r249408 and r249436 cause a NULL pointer dereference on the CUBIEBOARDimp2013-04-161-1/+1
| | | | | since it doesn't set the kernel envrionment at all. Work around this by making sure kern_envp is non-NULL before dereferencing it.
* Use the new net80211 method to fetch the node TX power, rather thanadrian2013-04-162-5/+7
| | | | | | | | | | | | | directly referencing ni->ni_txpower. This provides the hardware with a slightly more accurate idea of the maximum TX power to be using. This is part of a series to get per-packet TPC to work (better). Tested: * AR5416, hostap mode
* Implement a utility function to return the current TX power cap foradrian2013-04-161-0/+22
| | | | | | | | | | | | the given node. This takes into account the per-node cap, the ic cap and the per-channel regulatory caps. This is designed to replace references to ni_txpower in various net80211 drivers - ni_txpower doesn't necessarily reflect the actual cap for the given node (eg if the node has the default value of 50dBm (100) and the administrator has manually configured a lower TX power.)
* mdoc: remove superfluous paragraph macro.joel2013-04-161-1/+0
|
* - Document that sem_wait() can fail with EINTR if it is interrupted by ajhb2013-04-162-1/+11
| | | | | | | | signal. - Fix the old ksem implementation for POSIX semaphores to not restart sem_wait() or sem_timedwait() if interrupted by a signal. MFC after: 1 week
* Use a per-RX-queue deferred list, rather than a single deferred list foradrian2013-04-163-5/+13
| | | | | | | | | | | both queues. Since ath_rx_pkt() does multi-mbuf frame recombining based on the RX queue, this needs to occur. Tested: * AR9380 (XB112), hostap mode
* Fix the buffer-overflow-fixing fixes.ivoras2013-04-161-15/+19
| | | | | | Pointy-hat to: me, for not realizing snprintf() is available in kernel. Thanks to: jh, for bringing me the good news of snprintf(), Pawel Worach, for noting that the panic can be provoked in i386 and not in amd64
* DTrace: print() should try to resolve function pointerspfg2013-04-163-4/+84
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge changes from illumos: 3675 DTrace print() should try to resolve function pointers 3676 dt_print_enum hardcodes a value of zero Illumos Revision: b1fa6326238973aeaf12c34fcda75985b6c06be1 Reference: https://www.illumos.org/issues/3675 https://www.illumos.org/issues/3676 Obtained from: Illumos MFC after: 1 month
* | Fix incomplete printf.delphij2013-04-161-1/+2
| | | | | | | | | | | | PR: kern/177889 Submitted by: Sven-Thorsten Dietrich <sven vyatta com> MFC after: 1 week
* | Don't leak lock when returning.delphij2013-04-161-0/+1
| | | | | | | | | | | | PR: kern/177888 Submitted by: Sven-Thorsten Dietrich <sven vyatta com> MFC after: 1 week
* | Add a new set of notes to a process core dump to store procstat data.trociny2013-04-162-1/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The notes format is a header of sizeof(int), which stores the size of the corresponding data structure to provide some versioning, and data in the format as it is returned by a related sysctl call. The userland tools (procstat(1)) will be taught to extract this data, providing additional info for postmortem analysis. PR: kern/173723 Suggested by: jhb Discussed with: jhb, kib Reviewed by: jhb (initial version), kib MFC after: 1 month
* | Partial MFP4 of 222836:brooks2013-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | Only look for FDT partitions if our potential parent is a DISK device. Excluding direct recursion on the flashmap geoms was insufficient because it did not prevent the underlying device from being retrieved if flashmap geoms were further partitioned. Reviewed by: imp Sponsored by: DARPA, AFRL
* | Also call configtest before reload to ensure working config.bdrewery2013-04-161-0/+1
| | | | | | | | | | | | Approved by: jhb MFC after: 1 week X-MFC-With: r249489
* | Use a suitable code generation when building libstand for MIPS.rwatson2013-04-161-0/+3
| | | | | | | | | | | | Reviewed by: imp Sponsored by: DARPA, AFRL MFC after: 3 days
* | Adapt libstand's setjmp/longjmp MIPS support to be portable across 32-bitrwatson2013-04-161-56/+27
| | | | | | | | | | | | | | | | | | and 64-bit MIPS. Don't use the floating-point coprocessor in the libstand context for MIPS. Reviewed by: imp MFC after: 3 days Sponsored by: DARPA, AFRL
* | Fix build after r249543.tijl2013-04-161-1/+1
| |
* | Point to regdef.h. May need to dig up references to the N32 standardimp2013-04-161-1/+1
| | | | | | | | | | that support this usage (which may be a bit rough, since different parts of the standard say mutually contradictory things).
* | Allow the vnode to be unlocked for the weird case ofrmacklem2013-04-161-1/+1
| | | | | | | | | | | | | | | | | | LK_EXCLOTHER. LK_EXCLOTHER is only used to acquire a usecount on a vnode during NFSv4 recovery from an expired lease. Reported and tested by: pho MFC after: 2 weeks
* | Correct error message.pjd2013-04-161-1/+1
| | | | | | | | Reported by: Dirk Engling <erdgeist@erdgeist.org>
* | Fix accounting after the r249528, also add several another counters toae2013-04-161-1/+12
| | | | | | | | the statistics.
* | Replace hardcoded numbers. Also use interface-local scope name insteadae2013-04-161-9/+9
| | | | | | | | of node-local.
* | Use IP6S_M2MMAX macro.ae2013-04-161-3/+1
| |
* | Replace hardcoded numbers.ae2013-04-161-8/+12
| |
* | Some compilers issue a warning when wider integer is casted to narrowkib2013-04-161-2/+2
| | | | | | | | | | | | | | pointer. Supposedly shut down the warning by casting through uintptr_t. Reported by: ian
* | The source address selection algorithm tries to apply several rulesae2013-04-151-10/+7
| | | | | | | | | | | | | | for the set of IPv6 addresses. Now each attempt goes into IPv6 statistics, even if given rule did not won. Change this and take into account only those rules, that won. Also add accounting for cases, when algorithm fails to select an address.
* | DTrace: NFS translators should be split into client/server piecespfg2013-04-152-19/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge change from illumos: 1731 DTrace NFS translators should be split into client/server pieces Illumos Revision: 13523:6763769941d2 This code seems to be currently unused on FreeBSD. Reference: https://www.illumos.org/issues/1731 Obtained from: Illumos MFC after: 1 week
* | The origin_subst_one() function limits the length of the string tokib2013-04-151-73/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | PATH_MAX after the token substitution. This is wrong, because origin_subst_one() performs the substitution on the whole rpath and similar strings, which contain several pathes separated by colon. As result, long (but correct) rpath consisting of many path elements is rejected by the function. Correct the problem by rewriting the origin_subst_one() to perform two passes, first pass to calculate the number of substitutions to be performed, and second pass to generate the resulting string. Second pass allocates the memory for the result based on the count from the first pass, without enforcing a limit. Reported and tested by: pgj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks
* | Fix N32/N64 register saving by ensuring that all registers resolveimp2013-04-151-3/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to unique values. There's some confusion about what the n32 assembler API really is (since on page 9 of the spec they say that t0-t3 don't exist, then turn around on page 22 and say that t4-t7 don't exist), and this doesn't touch that. NetBSD's version of this file follows the convention I used here, and is likely to be correct. This should fix gdb/ptrace.
* | Reflect version update.delphij2013-04-151-1/+1
| | | | | | | | MFC after: 13 days
* | Now that the register definitions are in -HEAD, enable this.adrian2013-04-151-8/+8
| |
* | Bring over some AR9271 register definitions from the QCA HAL.adrian2013-04-151-0/+19
| | | | | | | | Obtained from: Qualcomm Atheros
* | Point args[0] not at the thread that is ending but at the one thatgnn2013-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | is starting. This is in line with practice in OpenSolaris. Note that this change is only in ULE and not in the 4BSD scheduler. Once this change settles in (MFC timeout has expired) we'll try it out on 4BSD as well. PR: 177706 Submitted by: Tiwei Bie MFC after: 1 month
* | Corrections to the RX checksum code, make sure its disabled asjfv2013-04-151-25/+18
| | | | | | | | | | | | well as enabled when necessary. And simplify the checksum routine itself, adding UDP bit to the test. Thanks to Kevin Lo for pointing out the problems and code suggestions.
* | Introduce glabel labels based on GEOM ident attributes. In this initialivoras2013-04-154-1/+88
| | | | | | | | | | | | | | | | implementation, error on the side of conservatism and only create labels for GEOMs of classes DISK and MULTIPATH. Discussed with: trasz Approved by: silence from freebsd-geom@
* | Introduce a symbol for the GEOM class name instead of using the ad-hoc stringivoras2013-04-153-2/+5
| | | | | | | | constant.
OpenPOWER on IntegriCloud