summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fix a couple of spelling errors...jmg2012-11-151-2/+2
|
* Make sure the final descriptor in an aggregate has rate control information.adrian2012-11-151-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was broken by me when merging the 802.11n aggregate descriptor chain setup with the default descriptor chain setup, in preparation for supporting AR9380 NICs. The corner case here is quite specific - if you queue an aggregate frame with >1 frames in it, and the last subframe has only one descriptor making it up, then that descriptor won't have the rate control information copied into it. Look at what happens inside ar5416FillTxDesc() if both firstSeg and lastSeg are set to 1. Then when ar5416ProcTxDesc() goes to fill out ts_rate based on the transmit index, it looks at the rate control fields in that descriptor and dutifully sets it to be 0. It doesn't happen for non-aggregate frames - if they have one descriptor, the first descriptor already has rate control info. I removed the call to ath_hal_setuplasttxdesc() when I migrated the code to use the "new" style aggregate chain routines from the HAL. But I missed this particular corner case. This is a bit inefficient with MIPS boards as it involves a few redundant writes into non-cachable memory. I'll chase that up when it matters. Tested: * AR9280 STA mode, TCP iperf traffic * Rui Paulo <rpaulo@> first reported this and has verified it on his AR9160 based AP. PR: kern/173636
* - Implement run-time expansion of the KTR buffer via sysctl.jeff2012-11-157-51/+153
| | | | | | | | | | - Implement a function to ensure that all preempted threads have switched back out at least once. Use this to make sure there are no stale references to the old ktr_buf or the lock profiling buffers before updating them. Reviewed by: marius (sparc64 parts), attilio (earlier patch) Sponsored by: EMC / Isilon Storage Division
* Flip the semantic of M_NOWAIT to only require the allocation to notkib2012-11-1410-75/+33
| | | | | | | | | | | | | | | | | | | | sleep, and perform the page allocations with VM_ALLOC_SYSTEM class. Previously, the allocation was also allowed to completely drain the reserve of the free pages, being translated to VM_ALLOC_INTERRUPT request class for vm_page_alloc() and similar functions. Allow the caller of malloc* to request the 'deep drain' semantic by providing M_USE_RESERVE flag, now translated to VM_ALLOC_INTERRUPT class. Previously, it resulted in less aggressive VM_ALLOC_SYSTEM allocation class. Centralize the translation of the M_* malloc(9) flags in the single inline function malloc2vm_flags(). Discussion started by: "Sears, Steven" <Steven.Sears@netapp.com> Reviewed by: alc, mdf (previous version) Tested by: pho (previous version) MFC after: 2 weeks
* Remove M_USE_RESERVE from the devfs cdp allocator, which is one of twokib2012-11-141-1/+1
| | | | | | | | uses of M_USE_RESERVE in the kernel. This allocation is not special. Reviewed by: alc Tested by: pho MFC after: 2 weeks
* Get rid of some old debug code. It provides checks similar to the onedavide2012-11-142-40/+0
| | | | | | offered by RedZone so there's no need to keep it. Sponsored by: iXsystems inc.
* Fix a bug in aicasm_gram.y, noted by a newer clang 3.2 snapshot: itdim2012-11-141-1/+1
| | | | | | | compared an enum scope_type against a yacc-generated define, so the condition would always be false. MFC after: 3 days
* In games/fortune/fortune/fortune.c, make 'Debug' the correct type (it isdim2012-11-141-1/+1
| | | | | | *not* a boolean). MFC after: 3 days
* For mkcsmapper, conditionalize gcc-specific compile flags.dim2012-11-141-2/+6
| | | | MFC after: 3 days
* In crypto/heimdal/lib/sl/slc-lex.l, don't define YY_NO_INPUT, sincedim2012-11-141-2/+0
| | | | | | %option nounput is already specified. MFC after: 3 days
* Fix the lookup in the DOTDOT case in the same way as other filesystems do,davide2012-11-141-0/+21
| | | | | | i.e. inlining the vn_vget_ino() algorithm. Sponsored by: iXsystems inc.
* Use defined() to test macro definitions.demon2012-11-141-1/+1
| | | | Approved by: theraven
* if_afdata lock was converted from mutex to rwlock a long ago, so we canae2012-11-141-14/+15
| | | | | | | replace IF_AFDATA_LOCK() macro depending to the access type. Sponsored by: Yandex LLC MFC after: 1 week
* The function pmap_alloc_direct_page() unconditionally zeroes the returnedalc2012-11-143-5/+7
| | | | | | page. Therefore, it is really inappropriate for use by the function uma_small_alloc(). The effect of using it was that every page was zeroed at least once and possibly twice if M_ZERO was passed as a "wait" flag.
* SCOPE6_LOCK protects V_sid_default, no need to acquire it withoutae2012-11-141-9/+0
| | | | | | | any access to V_sid_default. Sponsored by: Yandex LLC MFC after: 1 week
* zoneid has unsigned type.ae2012-11-141-1/+1
| | | | MFC after: 1 week
* sh: Remove an unused variable.jilles2012-11-142-2/+0
|
* Make it clear the L2 ops are filled for any cpu using a PL310 cache, not justcognet2012-11-141-1/+2
| | | | | | the omap4. Spotted out by: Giovanni Trematerra <gianni at freebsd DOT org>
* boot: use packed attribute for edd_params* structures and their substructuresavg2012-11-141-5/+5
| | | | | | | | | | | | | | | | | | | | The sole purpose of this change is to make sure that sizeof produces "canonical" sizes for these structures. This is to avoid triggering bugs in the BIOSes that properly handle only the canonical values of input length provided to INT 13h AH=48h. The canonical sizes are: 30 for v2, 66 for v3, etc. Buggy BIOS code probably looks like: if (input_length > 30) { /* > v2 */ assume that input length is 66 /* assume v3 or later */ } This should fix boot problems at least on Supermicro X8DT6 and possibly on P410i Smart Array Controller (as found in e.g. HP DL360 G7). Reported by: gnn, np, rstone Debugged by: rstone Discussed with: ae, np, rstone MFC after: 4 days
* Use the arrmv7 version for flushID too, as it does something different for SMP.cognet2012-11-141-1/+1
| | | | Submitted by: Giovanni Trematerra <gianni at freebsd DOT org>
* Allow usernames up to 32 charsbapt2012-11-141-1/+1
| | | | | | | | PR: kern/161091 [1], misc/133926 [2] Submitted by: Stephane Lapie <darksoul@darkbsd.org> [1], Chris Dillon <cdillon@wolves.k12.mo.us> [2] Reviewed by: cognet, kib
* Style fixbapt2012-11-141-1/+1
| | | | MFC after: 1 day
* return ERANGE if the buffer is too small to contain the login as documented inbapt2012-11-141-0/+2
| | | | | | | the manpage Reviewed by: cognet, kib MFC after: 1 month
* Remove remnants of classful addressing. These magic transformationsglebius2012-11-141-41/+8
| | | | of supplied arguments is not what a modern sysadmin expect.
* - Fix a truncation bug with softdep journaling that could leak blocks onjeff2012-11-141-39/+100
| | | | | | | | | | | | | | crash. When truncating a file that never made it to disk we use the canceled allocation dependencies to hold the journal records until the truncation completes. Previously allocdirect dependencies on the id_bufwait list were not considered and their journal space could expire before the bitmaps were written. Cancel them and attach them to the freeblks as we do for other allocdirects. - Add KTR traces that were used to debug this problem. - When adding jsegdeps, always use jwork_insert() so we don't have more than one segdep on a given jwork list. Sponsored by: EMC / Isilon Storage Division
* - blk_equals() is too strict. If the journal entry defines more fragsjeff2012-11-141-10/+8
| | | | | | | | | | than we're claiming it should still be considered an exact match. This would previously leak frags that had been extended. - If there is a sequence number problem in the journal print the sequence numbers we've seen so far for debugging. - Clean up the block mask related debuging printfs. Some are redundant. MFC after: 1 week
* Mention the IEEE 802.1AX.kevlo2012-11-141-3/+3
| | | | Reviewed by: thompsa
* Document that sendfile(2) can fail with ENOBUFS.kevlo2012-11-141-0/+2
| | | | Reviewed by: glebius
* Move zpool-features manual page from section 5 to section 7mm2012-11-145-11/+13
| | | | | | | and fix references Reported by: pluknet MFC after: 1 week
* enterpgrp: get rid of pgrp2 variable and use KASSERT directly on pgfind result.mjg2012-11-131-5/+1
| | | | | | | pgrp2 was used only for debugging, but pgrp2 = pgfind(..) was present in compiled code even for kernels without INVARIANTS Approved by: trasz (mentor) MFC after: 1 week
* Merge of vendor import of 242999, tzdata2012jedwin2012-11-136-13/+33
| | | | - Libya went to Standard Time on 10 November 2012
* Fix an apparent typo in the manual section number in .Dt: it should be 5.pluknet2012-11-131-1/+1
|
* Add support for CIR1000 - Cirrus Logic V34 to the uart drivereadler2012-11-131-0/+1
| | | | | Approved by: cperciva (implicit) MFC after: 1 week
* Remove description of deprecated IP fragment checksum support.andre2012-11-131-56/+1
| | | | | | | | Since SMPng it wasn't really supported anymore and if it worked then only by chance. Only very few drivers ever supported it. Discussed with: yongari MFC after: 2 weeks
* Updates for netgraph node manual pages.joel2012-11-1351-401/+398
| | | | | Discussed with: glebius Submitted by: Mamontov Roman <mr.xanto@gmail.com>
* Add support for CIR1000 - Cirrus Logic V34 to the sio drivereadler2012-11-131-0/+1
| | | | | | | | PR: kern/44267 Submitted by: Michail Vidiassov <master@iaas.msu.ru> Arrival-Date: Sat Oct 19 07:30:00 PDT 2002 Approved by: cperciva (implicit) MFC after: 1 week
* - Lowercase a cross reference to make.pluknet2012-11-131-3/+3
| | | | | | - Sort SEE ALSO cross references. MFC after: 3 days
* Place 'dev.ath.X.debug' back under ATH_DEBUG, rather than ATH_DEBUG_ALQ.adrian2012-11-131-1/+3
|
* Avoid an ambiguous reference to mtx_lock(9).pluknet2012-11-131-1/+1
| | | | MFC after: 3 days
* Correct rmlock(9) xref and add a missing comma.pluknet2012-11-131-2/+2
|
* Remove unused/obsolete macros.attilio2012-11-131-11/+0
| | | | MFC after: 3 days
* Add examples to the ssh-copy-id script.eadler2012-11-131-0/+3
| | | | | Approved by: bcr (mentor) MFC after: 3 days
* Document wait6() and waitid().kib2012-11-132-32/+282
| | | | | | PR: standards/170346 Submitted by: "Jukka A. Ukkonen" <jau@iki.fi> MFC after: 1 month
* Implement the waitid() SUSv4 function using wait6() system call.kib2012-11-136-1/+72
| | | | | | PR: standards/170346 Submitted by: "Jukka A. Ukkonen" <jau@iki.fi> MFC after: 1 month
* Regenkib2012-11-1311-16/+127
|
* Add the wait6(2) system call. It takes POSIX waitid()-like processkib2012-11-1313-42/+390
| | | | | | | | | | | | | | | | | | | | | designator to select a process which is waited for. The system call optionally returns siginfo_t which would be otherwise provided to SIGCHLD handler, as well as extended structure accounting for child and cumulative grandchild resource usage. Allow to get the current rusage information for non-exited processes as well, similar to Solaris. The explicit WEXITED flag is required to wait for exited processes, allowing for more fine-grained control of the events the waiter is interested in. Fix the handling of siginfo for WNOWAIT option for all wait*(2) family, by not removing the queued signal state. PR: standards/170346 Submitted by: "Jukka A. Ukkonen" <jau@iki.fi> MFC after: 1 month
* Don't divide by zero.trasz2012-11-131-6/+12
| | | | Tested by: swills
* Add preliminary Octeon PCI console support. Radisys-specific PCI consolejmallett2012-11-132-0/+124
| | | | | support may follow soon (it uses a proprietary memory layout, but operation looks pretty trivial.)
* Add some useful options to consider.jmallett2012-11-131-0/+14
|
* Fix build for FreeBSD kernel.jmallett2012-11-131-4/+4
|
OpenPOWER on IntegriCloud