summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the checks for td_pinned, td_critnest, TDP_NOFAULTING andattilio2012-09-082-22/+14
| | | | | | | | | | TDP_NOSLEEPING leaking from syscallret() to userret() so that also trap handling is covered. Also, the check on td_locks is not duplicated between the two functions. Reported by: avg Reviewed by: kib MFC after: 1 week
* Move PT_UPDATED_FLUSH() before td_locks check in order to have moreattilio2012-09-081-3/+3
| | | | | | | coverage also in the XEN case. Reviewed by: kib MFC after: 1 week
* userret() already checks for td_locks when INVARIANTS is enabled, soattilio2012-09-0810-10/+0
| | | | | | | there is no need to check if Giant is acquired after it. Reviewed by: kib MFC after: 1 week
* pmap_remove:alc2012-09-081-30/+18
| | | | | | | | | | | | | | | | | | | | | | | | | Avoid re-walking the page table from the root for every PTE examined. Tidy up some of pmap_remove()'s helper functions. pmap_enter: Set PV_TABLE_REF whenever the physical page being mapped is managed, not just when it is writeable. Only call pmap_update_page() when the old mapping was valid. If there was no prior valid mapping, then pmap_update_page() serves no useful purpose. However, it will interrupt every processor that has the pmap active. pmap_enter_quick_locked: Always set PTE_RO. pmap_emulate_modified: Don't set PV_TABLE_REF. Eliminate a nonsensical comment.
* Revert r239049:eadler2012-09-081-1/+1
| | | | | | | | This is the way to assign a range, but not a single IPv4 address. PR: conf/167648 Approved by: cperciva (implicit)
* mdoc fixes.joel2012-09-081-41/+21
|
* The first part of check_priv() function, that attempts to obtain credsglebius2012-09-082-43/+40
| | | | | | | | | | | | | | | | | | | | | | | | | from the control message, actually never worked. This means check_priv() didn't work for local dgram sockets. The SCM_CREDS control messages is received only in two cases: 1) If we did setsockopt(LOCAL_CREDS) on our socket, and in this case the message is struct sockcred. 2) If sender did supplied SCM_CREDS control message in his sendmsg() syscall. In this case the message is struct cmsgcred. We can't rely on 2), so we will use 1) for dgram sockets. For stream sockets it is more reliable to obtain accept-time credentials, since SCM_CREDS control message is attached only on first read. Thus: o Do setsockopt(LOCAL_CREDS) on local dgram sockets. o Split check_priv() into check_priv_stream() and check_priv_dgram(), and call them from recv_stream() and recv_dgram() respectively. o Don't provide space for SCM_CREDS control message in recv_stream(). o Provide space for SCM_CREDS control message in recv_dgram(), but there is no need to initialize anything in it. o In recv_dgram() do not blindly expect that first message is SCM_CREDS, instead use correct search cycle through control messages.
* Merge the projects/pf/head branch, that was worked on for last six months,glebius2012-09-0845-9640/+4591
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into head. The most significant achievements in the new code: o Fine grained locking, thus much better performance. o Fixes to many problems in pf, that were specific to FreeBSD port. New code doesn't have that many ifdefs and much less OpenBSDisms, thus is more attractive to our developers. Those interested in details, can browse through SVN log of the projects/pf/head branch. And for reference, here is exact list of revisions merged: r232043, r232044, r232062, r232148, r232149, r232150, r232298, r232330, r232332, r232340, r232386, r232390, r232391, r232605, r232655, r232656, r232661, r232662, r232663, r232664, r232673, r232691, r233309, r233782, r233829, r233830, r233834, r233835, r233836, r233865, r233866, r233868, r233873, r234056, r234096, r234100, r234108, r234175, r234187, r234223, r234271, r234272, r234282, r234307, r234309, r234382, r234384, r234456, r234486, r234606, r234640, r234641, r234642, r234644, r234651, r235505, r235506, r235535, r235605, r235606, r235826, r235991, r235993, r236168, r236173, r236179, r236180, r236181, r236186, r236223, r236227, r236230, r236252, r236254, r236298, r236299, r236300, r236301, r236397, r236398, r236399, r236499, r236512, r236513, r236525, r236526, r236545, r236548, r236553, r236554, r236556, r236557, r236561, r236570, r236630, r236672, r236673, r236679, r236706, r236710, r236718, r237154, r237155, r237169, r237314, r237363, r237364, r237368, r237369, r237376, r237440, r237442, r237751, r237783, r237784, r237785, r237788, r237791, r238421, r238522, r238523, r238524, r238525, r239173, r239186, r239644, r239652, r239661, r239773, r240125, r240130, r240131, r240136, r240186, r240196, r240212. I'd like to thank people who participated in early testing: Tested by: Florian Smeets <flo freebsd.org> Tested by: Chekaluk Vitaly <artemrts ukr.net> Tested by: Ben Wilber <ben desync.com> Tested by: Ian FREISLICH <ianf cloudseed.co.za>
* Correctly mask out the RTS/CTS flags when forming aggregates.adrian2012-09-081-1/+1
| | | | | | | | | This had the side effect of clearing HAL_TXDESC_CLRDMASK for a bunch of frames, meaning they'd end up being potentially filtered if there were an error. This is fine in the previous world as they'd just be software retried but now that I'm working on filtered frames, these descriptors would be endlessly retried until another valid frame would come along that had CLRDMASK set.
* Add IRQ support to the resource list handling functions.rpaulo2012-09-081-3/+7
|
* Add a '-s <timeout>' option which will display live rate controladrian2012-09-082-26/+74
| | | | statistics.
* Remove useless extra test.mjacob2012-09-071-4/+2
| | | | | Pointed out by: Sascha of DragonFly BSD MFC after: 2 weeks
* Supply the pr_ctloutput method for local datagram sockets,glebius2012-09-071-0/+1
| | | | | | | so that setsockopt() and getsockopt() work on them. This makes 'tools/regression/sockets/unix_cmsg -t dgram' more successful.
* Use callout(9) instead of timeout(9) to manage timers.jhb2012-09-071-13/+15
|
* It seems that what the code really meant is that when a write is completed,delphij2012-09-071-1/+1
| | | | | | | | do a BUS_DMASYNC_POSTWRITE over the DMA map. The way it currently is would only do POSTREAD for read transactions. Submitted by: Sascha Wildner MFC after: 1 month
* Remove remaining 4.x compat shims. No resulting changes (verified byjhb2012-09-074-53/+35
| | | | md5).
* Change the link pointing to more information about the Yarrow algorithm, thezeising2012-09-071-2/+2
| | | | | | | | | current link points to a irrelevant catchall site. PR: docs/171411 Submitted by: Mark Martinec <Mark.Martinec@ijs.si> (pr), me (patch) Approved by: joel (mentor) MFC after: 2 weeks
* A few whitespace and comment fixes.jhb2012-09-072-4/+4
|
* Complete and merge the list between Sandy/Ivy bridge of eventsfabient2012-09-071-28/+18
| | | | | | that can run on specific PMC. MFC after: 1 month
* Don't include a structure containing a flexible array in anothertuexen2012-09-075-24/+13
| | | | | | structure. MFC after: 10 days
* Use "e.g.", not "i.e.", to introduce an example.kevlo2012-09-071-1/+1
| | | | Obtained from: NetBSD
* Fully initialize the stack-allocated "struct sockaddr_in sa" structure.kevlo2012-09-071-1/+2
|
* Prevent indent(1) from reformatting this comment, as it containsgavin2012-09-071-1/+1
| | | | a formatting-sensitive table.
* Eliminate unnecessary NULL checks.alc2012-09-071-2/+2
|
* Tidy up the output quite substantially, making it fit well withinadrian2012-09-071-4/+4
| | | | | | | 80 columns. This makes it much easier to use in a shell script, to display a "top" style output with live rate control data.
* Make this build again!adrian2012-09-071-1/+2
|
* When calling the C++ demangler, make sure to free the returned buffer,rpaulo2012-09-071-6/+24
| | | | | | which might have been reallocated. Pointed out by: stefanf
* Eliminate an unused macro.alc2012-09-071-7/+0
|
* Ensure that single-frame aggregate session frames are retransmittedadrian2012-09-071-0/+45
| | | | | | | | | | | | with the correct configuration. Occasionally an aggregate TX would fail and the first frame would be retransmitted as a non-AMPDU frame. Since bfs_aggr=1 and bfs_nframes > 1 (from the previous AMPDU attempt), the aggr completion function would be called and be very confused about what's going on. Noticed by: Kim <w8hdkim@gmail.com> PR: kern/171394
* libc/amd64: Do not export .cerror.jilles2012-09-0612-88/+9
| | | | | | | | | | | | | | | | | For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit in the FBSDprivate_1.0 version. It looks like there is no reason for this since it is not used from other libraries. Given that it cannot be accessed from C and its strange calling convention, it is rather unlikely that other things rely on it. Perhaps it is from a time when symbols could not be hidden. Most of the amd64 assembler code jumps to .cerror using the GOT. It can jump to it directly now, as in non-PIC mode. There are also some minor size optimizations to instructions but they yield virtually no benefit in the size of libc.so.7 due to padding. Reviewed by: kib
* Dynamically allocate the S/G lists passed to callback routines rather thanjhb2012-09-062-50/+71
| | | | | | | | | allocating them on the stack of various bus_dmamap_load*() functions. The S/G lists are stored in the DMA tags. This matches the implementation on all other platforms. Discussed with: scottl, gibbs Tested by: stas (arm@)
* Avoid segfault if name is invalid. Basically, onlytrhodes2012-09-061-2/+5
| | | | | | | check for CTL_USER if the sysctl fails with ENOENT. PR: 169056 Reviewed by: jhb
* Remove trailing whitespace.joel2012-09-061-1/+1
|
* Remove trailing whitespace.joel2012-09-061-53/+53
|
* Minor mdoc fix.joel2012-09-061-1/+0
|
* Remove NetBSD compat shims for drivers originally shared with NetBSD/pc98.jhb2012-09-0618-1054/+116
| | | | | | | | | | | | | NetBSD/pc98 was never merged into the main NetBSD tree and is no longer developed. Adding locking to these drivers would have made the compat shims hard to impossible to maintain, so remove the shims to ease future changes. These changes were verified by md5. Some additional shims can be removed that do affect the compiled results that I will probably do in another round. Approved by: nyan (tentatively)
* Add a kernel module on pc98 for the ct(4) driver.jhb2012-09-062-0/+12
|
* There is no need to release the pvh global lock around calls toalc2012-09-061-20/+15
| | | | | | | | | | | pmap_get_pv_entry(). In fact, some callers already held it around calls. (In earlier versions, the same statements would apply to the page queues lock.) While I'm here tidy up the style of a few nearby statements and revise some comments. Tested by: Ian Lepore
* Add TRIM support, enabled by default.jpaetzel2012-09-066-21/+88
| | | | | | | | | | Fix a bug installing components from a localPath. Allow autosizing of any partition, not just the last partition. Adjust how ZFS is laid out to work with Boot Environments. Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days
* Add Intel Ivy Bridge support to hwpmc(9).fabient2012-09-069-228/+1451
| | | | | | | | | | Update offcore RSP token for Sandy Bridge. Note: No uncore support. Will works on Family 6 Model 3a. MFC after: 1 month Tested by: bapt, grehan
* Fix "Corrupted DWARF expression" from (k)gdb.emaste2012-09-061-2/+2
| | | | | | | Google turned up Debian bug 405116, which describes the problem in sufficient detail to identify the overflowing variables. MFC after: 1 week
* Make r230454 more readable and vendor-like.mm2012-09-061-2/+8
| | | | | PR: kern/171380 MFC after: 3 days
* Get rid of a gcc'ism.tuexen2012-09-061-4/+3
| | | | MFC after: 10 days
* Add support for demangling C++ symbols. This requires linking libproc withrpaulo2012-09-062-2/+22
| | | | | | libc++rt/libsupc++. Discussed with: theraven
* Add missing braceskevlo2012-09-061-1/+2
| | | | Obtained from: DragonFly
* Fix test cases to work with the latest version of the API.rpaulo2012-09-062-3/+4
|
* Typo fix and minor word swap.gjb2012-09-051-3/+4
| | | | | | PR: 171356 Submitted by: bdrewery MFC After: 3 days
* libc/i386: Do not export .cerror.jilles2012-09-0511-41/+19
| | | | | | | | | | | | | | | | | | | | | | | For some reason, libc exports the symbol .cerror (HIDENAME(cerror)), albeit in the FBSDprivate_1.0 version. It looks like there is no reason for this since it is not used from other libraries. Given that it cannot be accessed from C and its strange calling convention, it is rather unlikely that other things rely on it. Perhaps it is from a time when symbols could not be hidden. Not exporting .cerror causes it to be jumped to directly instead of via the PLT. This change also takes advantage of .cerror's new status by not saving and loading %ebx before jumping to it. (Therefore, .cerror now saves and loads %ebx itself.) Where there was a conditional jump to a jump to .cerror, the conditional jump has been changed to jump to .cerror directly (many modern CPUs don't do static prediction and in any case it is not much of a benefit anyway). This change makes libc.so.7 a few kilobytes smaller. Reviewed by: kib
* Add #defines for the bits in the PCI Express SLOT registers. Namesgavin2012-09-051-0/+32
| | | | | | | | have been chosen based on the bit names in the PCI Express Base Specification 3.0, and to match the predominant style of the existing bit definitions. MFC after: 1 week
* Using %p in a format string requires a void *.tuexen2012-09-059-47/+47
| | | | MFC after: 10 days
OpenPOWER on IntegriCloud