ƒ¯Y241165 169 429 332 149 159 233 1217 229 186 186 186 235 235 235 463 405 180 420 106 274 174 210 321 529 171 182 168 182 270 163 542 3397 223 501 237 128 115 439 161 161 161 130 130 130 247 247 247 128 115 210 472 174 235 136 407 195 228 687 275 145 608 290 303 279 656 133 425 136 176 149 146 136 149 149 315 315 315 121 109 130 271 1031 1566 647 940 524 662 641 647 940 524 208 181 181 157 157 152 152 168 168 174 174 155 155 171 171 166 166 163 163 159 159 425 163 163 407 156 393 174 330 267 125 592 312 268 249 148 168 282 278 459 195 265 470 1586 600 430 317 175 225 176 157 542 437 116 387 198 407 206 346 444 444 187 187 247 247 346 346 200 200 214 214 371 638 638 510 111 114 325 222 K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-03T20:39:11.241300Z K 7 svn:log V 336 rpc: convert all uid and gid variables of the type uid_t and gid_t. The previous change (based on Solaris) doesn't work properly either as the casting only has the effect of quieting the compiler. Move back to the previous solution but adjust the sizeof() type in xdr_array(). This should mostly work (by accident). Reported by: bde END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-10-03T21:41:20.084152Z K 7 svn:log V 236 Cast through void * to silence compiler warning The base netmap pointer and offsets involved are provided by the kernel side of the netmap interface and will have appropriate alignment. Sponsored by: ADARA Networks MFC After: 2 weeks END K 10 svn:author V 7 zeising K 8 svn:date V 27 2012-10-03T21:50:53.913690Z K 7 svn:log V 53 Remove whitespace at EOL Approved by: joel (mentor) END K 10 svn:author V 7 zeising K 8 svn:date V 27 2012-10-03T21:56:16.127656Z K 7 svn:log V 63 Sort manual page cross references. Approved by: joel (mentor) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-10-03T22:02:16.019345Z K 7 svn:log V 137 Clean up compiler warnings. More work is needed here but this now builds with WARNS=6. Sponsored by: ADARA Networks MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-10-03T23:23:45.514064Z K 7 svn:log V 1120 Pause and unpause the software queues for a given node based on the net80211 node power save state. * Add an ATH_NODE_UNLOCK_ASSERT() check * Add a new node field - an_is_powersave * Pause/unpause the queue based on the node state * Attempt to handle net80211 concurrency issues so the queue doesn't get paused/unpaused more than once at a time from the net80211 power save code. Whilst here (and breaking my usual rule), set CLRDMASK when a queue is unpaused, regardless of whether the queue has some pending traffic. This means the first frame from that TID (now or later) will hvae CLRDMASK set. Also whilst here, bump the swretrymax counters whenever the filtered frames code expires a frame. Again, breaking my rule, but this is just a statistics thing rather than a functional change. This doesn't fix ps-poll (but it doesn't break it too much worse than it is at the present) or correcting the TID updates. That's next on the list. Tested: * AR9220 AP (Atheros AP96 reference design) * Macbook Pro and LG Optimus 1 Android phone, both setting and clearing power save state (but not using PS-POLL.) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:26:13.713152Z K 7 svn:log V 133 MFC r241061: Document the security.bsd.unprivileged_idprio in idprio(1) in addition to rtprio(2). Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:33:48.737235Z K 7 svn:log V 91 MFC r241062: clarify the wording for 'first' and 'last' Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:33:48.900618Z K 7 svn:log V 91 MFC r241062: clarify the wording for 'first' and 'last' Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:33:49.212077Z K 7 svn:log V 91 MFC r241062: clarify the wording for 'first' and 'last' Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:37:11.839839Z K 7 svn:log V 139 MFC r241115: Indicate (loudly) that ports csup is going away. While here clarify some other portions. Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:37:11.954493Z K 7 svn:log V 139 MFC r241115: Indicate (loudly) that ports csup is going away. While here clarify some other portions. Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-04T01:37:12.470476Z K 7 svn:log V 139 MFC r241115: Indicate (loudly) that ports csup is going away. While here clarify some other portions. Approved by: cperciva (implicit) END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-10-04T02:27:14.346899Z K 7 svn:log V 369 Change vm_malloc() to map pages in the guest physical address space in 4KB chunks. This breaks the assumption that the entire memory segment is contiguously allocated in the host physical address space. This also paves the way to satisfy the 4KB page allocations by requesting free pages from the VM subsystem as opposed to hard-partitioning host memory at boot time. END K 10 svn:author V 4 neel K 8 svn:date V 27 2012-10-04T03:07:05.685863Z K 7 svn:log V 311 The ioctl VM_GET_MEMORY_SEG is no longer able to return the host physical address associated with the guest memory segment. This is because there is no longer a 1:1 mapping between GPA and HPA. As a result 'vmmctl' can only display the guest physical address and the length of the lowmem and highmem segments. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2012-10-04T03:59:45.523488Z K 7 svn:log V 85 Clarify comment about default number of FICL dictionary cells. Suggested by: peterj END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-04T04:15:18.770190Z K 7 svn:log V 327 rpc: convert all uid and gid variables to u_int. After further discussion, instead of pretending to use uid_t and gid_t as upstream Solaris and linux try to, we are better using u_int, which is in fact what the code can handle and best approaches the range of values used by uid and gid. Discussed with: bde Reviewed by: bde END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-10-04T06:33:03.894135Z K 7 svn:log V 13 Fix HISTORY. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-10-04T07:40:55.417372Z K 7 svn:log V 177 Remove the M_NOWAIT from bridge_rtable_init as it isn't needed. The function return value is not even checked and could lead to a panic on a null sc_rthash. MFC after: 2 weeks END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-10-04T08:26:49.788773Z K 7 svn:log V 80 MFC r240083: Make setfacl(1) behave properly in situations like "setfacl -kd". END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-10-04T08:33:46.150950Z K 7 svn:log V 115 MFC r240084: Make "setfacl -bd" an alias for "setfacl -k". Previously it would crash on assert. PR: bin/165807 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-10-04T08:43:49.672640Z K 7 svn:log V 226 MFC r240085: In getfacl(1) manual page, mention where to read about the ACL syntax. PR submitter suggested adding it to acl(3) instead, but I don't think pointing ordinary users at section 3 is a good idea. PR: docs/162380 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-10-04T08:47:05.180927Z K 7 svn:log V 434 MFC r240087: Fix an error in setfacl(1) that manifested like this: # setfacl -m u:trasz:rwx x # setfacl -m u:root:rwx x # getfacl x # file: x # owner: root # group: wheel user::rw- user:root:rwx user:trasz:rwx group::r-- mask::rwx other::r-- # setfacl -m u:root:rwx x setfacl: x: acl_calc_mask() failed: Invalid argument setfacl: x: failed to set ACL mask For NFSv4 ACLs, this sort of situation would result in duplicated entries. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-10-04T08:49:04.584339Z K 7 svn:log V 77 MFC r240088: Explicitly mention that "cp -p" copies ACLs. PR: docs/168962 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-10-04T08:49:41.916321Z K 7 svn:log V 90 MFC r241092: Add the UPDATING note about padlock rng support requiring the config change. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-10-04T08:53:05.383543Z K 7 svn:log V 75 Define clang feature test macro __has_extension. It's used in stdatomic.h. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-10-04T09:02:38.783925Z K 7 svn:log V 90 MFC r241092: Add the UPDATING note about padlock rng support requiring the config change. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2012-10-04T09:49:53.127944Z K 7 svn:log V 176 MFC: r241002 Fix pseudo checksum calculation. This fixes ipfilter w/ network controllers that implement only partial rx csum offloading. PR: 106438 Obtained from: upstream END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2012-10-04T09:53:59.270862Z K 7 svn:log V 70 Revert changes that ocassionally got into r241192. Pointy hat to: me END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-10-04T12:43:45.283680Z K 7 svn:log V 444 MFC: r240720 Modify the NFSv4 client so that it can handle owner and owner_group strings that consist entirely of digits, interpreting them as the uid/gid number. This change was needed since new (>= 3.3) Linux servers reply with these strings by default. This change is mandated by the rfc3530bis draft. Reported on freebsd-stable@ under the Subject heading "Problem with Linux >= 3.3 as NFSv4 server" by Norbert Aschendorff on Aug. 20, 2012. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-10-04T15:42:45.635425Z K 7 svn:log V 3300 Implement the quarter rate fractional channel programming for the AR5416 and AR9280, but leave it disabled by default. TL;DR: don't enable this code at all unless you go through the process of getting the NIC re-certified. This is purely to be used as a reference and NOT a certified solution by any stretch of the imagination. The background: The AR5112 RF synth right up to the AR5133 RF synth (used on the AR5416, derivative is used for the AR9130/AR9160) only implement down to 2.5MHz channel spacing in 5GHz. Ie, the RF synth is programmed in steps of 2.5MHz (or 5, 10, 20MHz.) So they can't represent the quarter rate channels in the 4.9GHz PSB (which end in xxx2MHz and xxx7MHz). They support fractional spacing in 2GHz (1MHz spacing) (or things wouldn't work, right?) So instead of doing this, the RF synth programming for the AR5112 and later code will round to the nearest available frequency. If all NICs were RF5112 or later, they'll inter-operate fine - they all program the same. (And for reference, only the latest revision of the RF5111 NICs do it, but the driver doesn't yet implement the programming.) However: * The AR5416 programming didn't at all implement the fractional synth work around as above; * The AR9280 programming actually programmed the accurate centre frequency and thus wouldn't inter-operate with the legacy NICs. So this patch: * Implements the 4.9GHz PSB fractional synth workaround, exactly as the RF5112 and later code does; * Adds a very dirty workaround from me to calculate the same channel centre "fudge" to the AR9280 code when operating on fractional frequencies in 5GHz. HOWEVER however: It is disabled by default. Since the HAL didn't implement this feature, it's highly unlikely that the AR5416 and AR928x has been tested in these centre frequencies. There's a lot of regulatory compliance testing required before a NIC can have this enabled - checking for centre frequency, for drift, for synth spurs, for distortion and spectral mask compliance. There's likely a lot of other things that need testing so please don't treat this as an exhaustive, authoritative list. There's a perfectly good process out there to get a NIC certified by your regulatory domain, please go and engage someone to do that for you and pay the relevant fees. If a company wishes to grab this work and certify existing 802.11n NICs for work in these bands then please be my guest. The AR9280 works fine on the correct fractional synth channels (49x2 and 49x7Mhz) so you don't need to get certification for that. But the 500KHz offset hack may have the above issues (spur, distortion, accuracy, etc) so you will need to get the NIC recertified. Please note that it's also CARD dependent. Just because the RF synth will behave correctly doesn't at all mean that the card design will also behave correctly. So no, I won't enable this by default if someone verifies a specific AR5416/AR9280 NIC works. Please don't ask. Tested: I used the following NICs to do basic interoperability testing at half and quarter rates. However, I only did very minimal spectrum analyser testing (mostly "am I about to blow things up" testing; not "certification ready" testing): * AR5212 + AR5112 synth * AR5413 + AR5413 synth * AR5416 + AR5113 synth * AR9280 END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-10-04T18:59:46.265557Z K 7 svn:log V 128 Move properly to the next parameter when jailparam_init fails (i.e. on an unknown parameter), to avoid freeing bogus pointers. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-10-04T19:07:05.909853Z K 7 svn:log V 406 Fix some memory allocation errors: * jail_setv will leak a parameter name if jailparam_import fails. * jailparam_all loses the jailparam pointer on realloc error (a clear freshman mistake). * If jailparam_init fails, the caller doesn't need to jailparam_free the buffer. That's not really clear, so set things to NULL allowing jailparam_free to work without error (though it's still not required). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-04T20:00:32.077426Z K 7 svn:log V 144 Display the matrix of inter-domain distances in the SLIT table. This is used to complement the SRAT table on NUMA machines. MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-10-04T21:07:56.374089Z K 7 svn:log V 32 Vendor import of libpcap 1.3.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-10-04T21:08:46.997173Z K 7 svn:log V 19 Tag libpcap 1.3.0. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-10-04T21:55:37.982849Z K 7 svn:log V 341 MFC: r240289 Add a simple printf() based debug facility to the new nfs client. Use it for a printf() that can be harmlessly generated for mmap()'d files. It will be used extensively for the NFSv4.1 client. Debugging printf()s are enabled by setting vfs.nfs.debuglevel to a non-zero value. The higher the value, the more debugging printf()s. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:16:17.656765Z K 7 svn:log V 67 MFC r238879: Add a couple of nice quotes from Edward Everett Hale END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:16:38.138918Z K 7 svn:log V 67 MFC r238879: Add a couple of nice quotes from Edward Everett Hale END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:16:58.509776Z K 7 svn:log V 67 MFC r238879: Add a couple of nice quotes from Edward Everett Hale END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:23:40.218564Z K 7 svn:log V 36 MFC r240090: Improve file rotation END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:23:57.338145Z K 7 svn:log V 36 MFC r240090: Improve file rotation END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:24:14.029050Z K 7 svn:log V 36 MFC r240090: Improve file rotation END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:31:56.413060Z K 7 svn:log V 152 MFC r229822: There is no longer a need to abstract ${rcvar_manpage} as we are not attempting to maintain compatibility with NetBSD for some years now. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:32:12.967540Z K 7 svn:log V 152 MFC r229822: There is no longer a need to abstract ${rcvar_manpage} as we are not attempting to maintain compatibility with NetBSD for some years now. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-04T22:32:27.574412Z K 7 svn:log V 152 MFC r229822: There is no longer a need to abstract ${rcvar_manpage} as we are not attempting to maintain compatibility with NetBSD for some years now. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-10-04T22:40:22.982691Z K 7 svn:log V 32 Vendor import of tcpdump 4.3.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-10-04T22:41:00.964953Z K 7 svn:log V 19 Tag tcpdump 4.3.0. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-10-04T22:56:15.407227Z K 7 svn:log V 112 Merge r240605. Make systat(1) accept fractional number of seconds. Make old alarm(3)-based code use select(2). END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-10-05T00:35:13.698441Z K 7 svn:log V 378 Do not install incomplete unwind.h from clang. This header file was meant to be a wrapper for the canonical system header file. Unfortunately, we do not have one (yet) and some times it is causing weird failures when clang is used for building ports. More complete and correct file will come from libcxxrt in the future. Discussed with: dim, kib, theraven MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-10-05T03:35:38.817113Z K 7 svn:log V 78 Don't touch EMAC Mode and TX/RX MAC Mode register when driver is not running. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-10-05T03:46:25.182496Z K 7 svn:log V 138 APE firmware touches EMAC Mode and TX/RX MAC Mode registers to keep the MAC connected to the outside world. So keep the accesses atomic. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-05T04:35:20.200671Z K 7 svn:log V 44 Eliminate a stale and a duplicated comment. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-10-05T05:01:42.895509Z K 7 svn:log V 312 Remove references to CVS so that people will stop bringing it up For -p: The localtime update should have been excluded in the first place The make.conf comparison has been OBE for some time now, and there is no src.conf equivalent to share/examples/make.conf, so remove the whole thing. Update copyright END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-10-05T06:24:22.584660Z K 7 svn:log V 99 Add 40 microseconds delay after updating EMAC Mode register as recommended by Broadcom data sheet. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-10-05T07:13:21.229275Z K 7 svn:log V 131 Follow Broadcom datasheet: Delay 100 microseconds after enabling transmit MAC. Delay 10 microseconds after enabling receive MAC. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-05T07:51:21.603192Z K 7 svn:log V 590 Provide ability for printing and decoding pfsync(4) traffic. This doesn't mean supporting IFT_PFSYNC (which I hope will eventually die). This means decoding packets with IP protocol of 240 caught on any normal interface like Ethernet. The code is based on couple of files from OpenBSD, significantly modified by myself. Parser differentiates for four levels of verbosity: no -v, -v, -vv and -vvv. We don't yet forward this code upstream, because currently it strongly relies on if_pfsync.h and even on pfvar.h. I hope that this can be fixed in future. Reviewed by: gnn, delphij END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-10-05T09:47:54.417104Z K 7 svn:log V 183 MFC r239257: Reserve room for the terminating NUL when setting or getting kernel environment variables. KENV_MNAMELEN and KENV_MVALLEN doesn't include space for the terminating NUL. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-10-05T10:44:50.997666Z K 7 svn:log V 54 MFC r239612: Check the return value of sbuf_finish(). END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-10-05T14:20:53.576248Z K 7 svn:log V 512 MFC r241001: sigaction(2),sigwait(2),sigwaitinfo(2): Remove [EFAULT] error condition. Passing an invalid pointer results in undefined behaviour. The wrappers in libthr access some of the data pointed to by the arguments in userland, so that an invalid pointer will cause a signal and not an [EFAULT] error return. Furthermore, if the [EFAULT] error occurs when the kernel is writing, it is not a proper error in the sense that the call still commits (changing the signal disposition or accepting the signal). END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-05T14:42:38.212740Z K 7 svn:log V 197 mount.h: MNTK_VGONE_UPPER and MNTK_VGONE_WAITER were supposed to be different ... otherwise a waiter is never woken up. Reported by: swills Discussed with: jhb Approved by: kib MFC after: 3 days END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-10-05T14:43:49.295770Z K 7 svn:log V 207 MFC r240974: atrun: Do not assume that MAXLOGNAME <= 100. The reserved space for fmt was exactly sufficient for a two-digit value of MAXLOGNAME - 1. PR: bin/171815 Submitted by: Jeremy Huddleston Sequoia END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-10-05T15:36:30.328291Z K 7 svn:log V 183 MFC r240973: find: Do not pass fd to save current directory to child processes. This removes one of the two wrongly passed file descriptors. The other one appears to be from fts(3). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-05T15:52:31.725534Z K 7 svn:log V 563 Further adjust the workaround in r234501. Rounding all small requests up to 32k swamped the controller causing firmware hangs. Instead, round requests smaller than 64k up to the next power of 2 as a general rule. To handle the one known special case of a command that accepts a 12k buffer returning a 24k-ish reply, round requests between 8k and 16k up to 32k rather than 16k. The result is that commands less than 8k should now be rounded up to a smaller size (either 4k or 8k) rather than 32k. PR: kern/155658 Tested by: Andreas Longwitz MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-10-05T16:44:00.973506Z K 7 svn:log V 38 Initialise an uninitialised variable. END K 10 svn:author V 8 cracauer K 8 svn:date V 27 2012-10-05T17:54:27.029422Z K 7 svn:log V 327 Allow time offsets to be negative, e.g. `at 1530 - 15 minutes`. This is useful if you have been given some time for some event in some format and you want your computer to do something to prepare for it. Without having to do time arithmetic in a shellscript. The syntax matches what the at(1) usually used on Linux supports. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-10-05T18:42:50.866541Z K 7 svn:log V 40 MFV: libpcap 1.3.0. MFC after: 4 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-10-05T19:02:07.564677Z K 7 svn:log V 81 Teach makefs about netbsd's mtree. This makes the -F option usable in practice. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-10-05T20:14:02.755113Z K 7 svn:log V 54 Vendor import of NetBSD's pwcache(3) as of 2012-10-05 END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-10-05T20:15:30.620821Z K 7 svn:log V 51 Tag import of NetBSD's pwcache(3) as of 2012-10-05 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-10-05T20:19:28.458683Z K 7 svn:log V 40 MFV: tcpdump 4.3.0. MFC after: 4 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-10-05T22:30:16.000322Z K 7 svn:log V 54 Vendor import of NetBSD's (un)vis(3) as of 2012-10-05 END K 10 svn:author V 6 brooks K 8 svn:date V 27 2012-10-05T22:31:28.757177Z K 7 svn:log V 54 Tag import of of NetBSD's (un)vis(3) as of 2012-10-05 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-05T22:42:57.475707Z K 7 svn:log V 219 MFC r241116: Correct the tip about finding all the directories on the system Add a tip about clearing the screen. Make things more consistent by removing quotes around 'make search' Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-05T22:42:57.577414Z K 7 svn:log V 219 MFC r241116: Correct the tip about finding all the directories on the system Add a tip about clearing the screen. Make things more consistent by removing quotes around 'make search' Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-10-05T22:42:57.699468Z K 7 svn:log V 219 MFC r241116: Correct the tip about finding all the directories on the system Add a tip about clearing the screen. Make things more consistent by removing quotes around 'make search' Approved by: cperciva (implicit) END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-10-06T05:54:41.175781Z K 7 svn:log V 28 Remove trailing whitespace. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-10-06T06:02:29.991217Z K 7 svn:log V 16 Minor mdoc fix. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-10-06T06:07:33.210529Z K 7 svn:log V 37 mdoc: begin sentences on a new line. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-06T07:06:57.676663Z K 7 svn:log V 174 The pfil(9) layer guarantees us presence of the protocol header, so remove extra check, that is always false. P.S. Also, goto there lead to unlocking a not locked rwlock. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-10-06T10:02:11.391655Z K 7 svn:log V 934 A step in resolving mess with byte ordering for AF_INET. After this change: - All packets in NETISR_IP queue are in net byte order. - ip_input() is entered in net byte order and converts packet to host byte order right _after_ processing pfil(9) hooks. - ip_output() is entered in host byte order and converts packet to net byte order right _before_ processing pfil(9) hooks. - ip_fragment() accepts and emits packet in net byte order. - ip_forward(), ip_mloopback() use host byte order (untouched actually). - ip_fastforward() no longer modifies packet at all (except ip_ttl). - Swapping of byte order there and back removed from the following modules: pf(4), ipfw(4), enc(4), if_bridge(4). - Swapping of byte order added to ipfilter(4), based on __FreeBSD_version - __FreeBSD_version bumped. - pfil(9) manual page updated. Reviewed by: ray, luigi, eri, melifaro Tested by: glebius (LE), ray (BE) END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T12:25:13.827728Z K 7 svn:log V 1472 MFC r232207, r232454, r234066: Rework CPU load balancing in SCHED_ULE: - In sched_pickcpu() be more careful taking previous CPU on SMT systems. Do it only if all other logical CPUs of that physical one are idle to avoid extra resource sharing. - In sched_pickcpu() change general logic of CPU selection. First look for idle CPU, sharing last level cache with previously used one, skipping SMT CPU groups. If none found, search all CPUs for the least loaded one, where the thread with its priority can run now. If none found, search just for the least loaded CPU. - Make cpu_search() compare lowest/highest CPU load when comparing CPU groups with equal load. That allows to differentiate 1+1 and 2+0 loads. - Make cpu_search() to prefer specified (previous) CPU or group if load is equal. This improves cache affinity for more complicated topologies. - Randomize CPU selection if above factors are equal. Previous code tend to prefer CPUs with lower IDs, causing unneeded collisions. - Rework periodic balancer in sched_balance_group(). With cpu_search() more intelligent now, make balansing process flat, removing recursion over the topology tree. That fixes double swap problem and makes load distribution more even and predictable. All together this gives 10-15% performance improvement in many tests on CPUs with SMT, such as Core i7, for number of threads is less then number of logical CPUs. In some tests it also gives positive effect to systems without SMT. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T12:38:41.741470Z K 7 svn:log V 554 MFC r239153: SCHED_4BSD scheduling quantum mechanism appears to be broken for some time. With switchticks variable being reset each time thread preempted (that is done regularly by interrupt threads) scheduling quantum may never expire. It was not noticed in time because several other factors still regularly trigger context switches. Handle the problem by replacing that mechanism with its equivalent from SCHED_ULE called time slice. It is effectively the same, just measured in context of stathz instead of hz. Some unification is probably not bad. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T12:51:16.211897Z K 7 svn:log V 847 MFC r239157: Rework r220198 change (by fabient). I believe it solves the problem from the wrong direction. Before it, if preemption and end of time slice happen same time, thread was put to the head of the queue as for only preemption. It could cause single thread to run for indefinitely long time. r220198 handles it by not clearing TDF_NEEDRESCHED in case of preemption. But that causes delayed context switch every time preemption happens, even when not needed. Solve problem by introducing scheduler-specifoc thread flag TDF_SLICEEND, set when thread's time slice is over and it should be put to the tail of queue. Using SW_PREEMPT flag for that purpose as it was before just not enough informative to work correctly. On my tests this by 2-3 times reduces run time deviation (improves fairness) in cases when several threads share one CPU. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T12:58:56.829844Z K 7 svn:log V 431 MFC r239185, r239196: Some minor tunings/cleanups inspired by bde@ after previous commits: - remove extra dynamic variable initializations; - restore (4BSD) and implement (ULE) hogticks variable setting; - make sched_rr_interval() more tolerant to options; - restore (4BSD) and implement (ULE) kern.sched.quantum sysctl, a more user-friendly wrapper for sched_slice; - tune some sysctl descriptions; - make some style fixes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T13:01:08.028328Z K 7 svn:log V 569 MFC r239194: Allow idle threads to steal second threads from other cores on systems with 8 or more cores to improve utilization. None of my tests on 2xXeon (2x6x2) system shown any slowdown from mentioned "excess thrashing". Same time in pbzip2 test with number of threads more then number of CPUs I see up to 10% speedup with SMT disabled and up 5% with SMT enabled. Thinking about trashing I was trying to limit that stealing within same last level cache, but got only worse results. Present code any way prefers to steal threads from topologically closer cores. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T13:38:49.736938Z K 7 svn:log V 548 MFC r212455: Merge some SCHED_ULE features to SCHED_4BSD: - Teach SCHED_4BSD to inform cpu_idle() about high sleep/wakeup rate to choose optimized handler. In case of x86 it is MONITOR/MWAIT. Also it will be needed to bypass forthcoming idle tick skipping logic to not consume resources on events rescheduling when it won't give any benefits. - Teach SCHED_4BSD to wake up idle CPUs without using IPI. In case of x86, when MONITOR/MWAIT is active, it require just single memory write. This doubles performance on some heavily switching test loads. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T13:42:21.891581Z K 7 svn:log V 554 MFC r239153: SCHED_4BSD scheduling quantum mechanism appears to be broken for some time. With switchticks variable being reset each time thread preempted (that is done regularly by interrupt threads) scheduling quantum may never expire. It was not noticed in time because several other factors still regularly trigger context switches. Handle the problem by replacing that mechanism with its equivalent from SCHED_ULE called time slice. It is effectively the same, just measured in context of stathz instead of hz. Some unification is probably not bad. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T13:43:56.563814Z K 7 svn:log V 847 MFC r239157: Rework r220198 change (by fabient). I believe it solves the problem from the wrong direction. Before it, if preemption and end of time slice happen same time, thread was put to the head of the queue as for only preemption. It could cause single thread to run for indefinitely long time. r220198 handles it by not clearing TDF_NEEDRESCHED in case of preemption. But that causes delayed context switch every time preemption happens, even when not needed. Solve problem by introducing scheduler-specifoc thread flag TDF_SLICEEND, set when thread's time slice is over and it should be put to the tail of queue. Using SW_PREEMPT flag for that purpose as it was before just not enough informative to work correctly. On my tests this by 2-3 times reduces run time deviation (improves fairness) in cases when several threads share one CPU. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-06T14:04:36.380054Z K 7 svn:log V 431 MFC r239185, r239196: Some minor tunings/cleanups inspired by bde@ after previous commits: - remove extra dynamic variable initializations; - restore (4BSD) and implement (ULE) hogticks variable setting; - make sched_rr_interval() more tolerant to options; - restore (4BSD) and implement (ULE) kern.sched.quantum sysctl, a more user-friendly wrapper for sched_slice; - tune some sysctl descriptions; - make some style fixes. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-10-06T17:54:42.238958Z K 7 svn:log V 110 Fix "make install" Also make arm the same as other platforms: Install man pages for all CPUs in the family. END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:42:02.975500Z K 7 svn:log V 89 MFC r240341,240637: loader/i386: replace ugly inb/outb re-implementations with cpufunc.h END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:42:39.674359Z K 7 svn:log V 89 MFC r240341,240637: loader/i386: replace ugly inb/outb re-implementations with cpufunc.h END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:45:13.592078Z K 7 svn:log V 65 MFC r240348: zfs boot: print only an attribute name in fzap_list END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:45:18.577814Z K 7 svn:log V 65 MFC r240348: zfs boot: print only an attribute name in fzap_list END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:47:15.436721Z K 7 svn:log V 60 MFC r240342: boot: file_loadraw should strdup name argument END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:47:31.372672Z K 7 svn:log V 60 MFC r240342: boot: file_loadraw should strdup name argument END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:49:18.684945Z K 7 svn:log V 76 MFC r240345: zfs: fix sa_modify_attrs handling of variable-sized attributes END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:50:14.483985Z K 7 svn:log V 76 MFC r240345: zfs: fix sa_modify_attrs handling of variable-sized attributes END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:51:43.243718Z K 7 svn:log V 82 MFC r240629: g_disk_flushcache definitely should not be traced under G_T_TOPOLOGY END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:52:06.903101Z K 7 svn:log V 82 MFC r240629: g_disk_flushcache definitely should not be traced under G_T_TOPOLOGY END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:53:48.091287Z K 7 svn:log V 63 MFC r240347: zfs boot: fix/replace fzap_rlookup implementation END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:54:01.418040Z K 7 svn:log V 63 MFC r240347: zfs boot: fix/replace fzap_rlookup implementation END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:55:32.033681Z K 7 svn:log V 79 MFC r240631: zfs: allow both DEBUG and ZFS_DEBUG to be defined on command line END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:55:54.357256Z K 7 svn:log V 79 MFC r240631: zfs: allow both DEBUG and ZFS_DEBUG to be defined on command line END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:57:27.241116Z K 7 svn:log V 74 MFC r240632: zfs: correctly calculate dn_bonuslen for saving SAs to disk END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:57:44.839607Z K 7 svn:log V 74 MFC r240632: zfs: correctly calculate dn_bonuslen for saving SAs to disk END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:59:12.185821Z K 7 svn:log V 71 MFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T18:59:23.086951Z K 7 svn:log V 71 MFC r240650: hwpmc amd_pcpu_fini: fix a bug in code locked under DEBUG END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:01:20.639352Z K 7 svn:log V 67 MFC r240349: zfs boot: add a size check for a value in fzap_lookup END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:01:31.970683Z K 7 svn:log V 67 MFC r240349: zfs boot: add a size check for a value in fzap_lookup END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-06T19:05:50.242762Z K 7 svn:log V 332 Correct two pessimizations in pmap_extract_and_hold(). Test the PTE for having PTE_RO set instead of PTE_D. This avoids some unnecessary failures by pmap_extract_and_hold() that will have to be handled by a call to vm_fault_hold(). Testing the PTE for both being non-zero and having PTE_V set is redundant. The latter suffices. END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:06:09.066269Z K 7 svn:log V 71 MFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:06:23.042038Z K 7 svn:log V 71 MFC r240343: rc.d/power_profile: use recently added Cmax for cx_lowest END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-10-06T19:19:21.414631Z K 7 svn:log V 311 Add bmake to the build and allow it to be installed as make(1) instead of FreeBSD's make by setting WITH_BMAKE. The WITH_BMAKE build makes it easy for people to switch while working out the kinks -- think ports tree here. The option will be removed in due time. Submitted by: Simon Gerraty (sjg@juniper.net) END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:19:32.020498Z K 7 svn:log V 64 make: report :M or :N pattern in debug mode MFC after: 12 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:23:44.947070Z K 7 svn:log V 300 ktrace/kern_exec: check p_tracecred instead of p_cred .. when deciding whether to continue tracing across suid/sgid exec. Otherwise if root ktrace-d an unprivileged process and the processed exec-ed a suid program, then tracing didn't continue across exec. Reviewed by: bde, kib MFC after: 22 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:25:40.820540Z K 7 svn:log V 82 zfs boot: chose a "first" pool if none is explicitly requested MFC after: 8 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:27:04.099512Z K 7 svn:log V 237 zfs boot: add code for listing child datasets of a given dataset - only filesystem datasets are supported - children names are printed to stdout To do: allow to iterate over the list and fetch names programatically MFC after: 17 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:27:54.778862Z K 7 svn:log V 174 zfs boot: add lszfs command to i386 loader ... to list child datasets of a specified dataset. Dataset name should be provided in poolname/dsname format. MFC after: 17 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-10-06T19:28:19.024174Z K 7 svn:log V 30 Update to include WITH_BMAKE. END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:33:47.462888Z K 7 svn:log V 499 zfs_mount: taste geom providers for root pool config This should allow to mount a dataset as a root filesystem even if it belongs to a pool that is not described in zpool.cache. This adds some overhead to the boot process though. If the root filesystem's pool is found in zpool.cache, the by default its cached configuration will be used for import. vfs.zfs.rootpool.prefer_cached_config could be set to zero to force the config to be retasted. Discussed with: gibbs, pjd, des MFC after: 25 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-06T19:33:52.797975Z K 7 svn:log V 219 In general pmap implementations do not set the wired attribute on the temporary mappings that are used to implement operations like pmap_zero_page(). There is no reason for the MIPS pmap to deviate from that practice. END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:38:33.932033Z K 7 svn:log V 175 zfsboot: use the same zfs dataset naming format as loader Also, pool name alone now names a root dataset of the pool regardless of bootfs property value. MFC after: 15 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:40:12.717858Z K 7 svn:log V 156 boot/zfs: call zfs_spa_init for all found pools ... and drop those for which it fails. Also, add more sanity checking to the function. MFC after: 16 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:41:11.789352Z K 7 svn:log V 56 boot/zfs: a small whitespace cleanup MFC after: 5 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:42:05.858533Z K 7 svn:log V 76 zfs boot spa_status: print bootfs for each reported pool MFC after: 9 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:42:50.523296Z K 7 svn:log V 189 zfs loader: treat plain pool name as a name of its root dataset ... as opposed to the previous behavior of treating it as boot dataset (specified by bootfs or default) MFC after: 19 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:47:24.327147Z K 7 svn:log V 185 zfs boot: export boot/primary pool and vdev guid all the way to kenv This is work in progress to for znextboot and it also provides some convenient infrastructure. MFC after: 20 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:48:15.518405Z K 7 svn:log V 366 zfsboot: simplify probe_drive() a little bit The first discovered pool, whether it covers the whole boot disk or not, is going to be first in zfs_pools list. So there is no need at all for spapp parameter. This commit also fixes a bug where NULL would be assigned to NULL pointer when probe_drive was called with the spapp parameter of NULL. MFC after: 21 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:50:23.053689Z K 7 svn:log V 102 cngetc: use cpu_spinwait to ease the cncheckc loop a tiny bit Reviewed by: julian MFC after: 10 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:52:50.359073Z K 7 svn:log V 172 g_part_taste: directly destroy consumer and geom here, no need for withering Besides withered but still alive consumers may interfere with re-tatsing. MFC after: 16 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T19:57:27.354951Z K 7 svn:log V 377 zvol: set mediasize in geom provider right upon its creation ... instead of deferring the action until first open. Unlike upstream this has no benefit on FreeBSD. We know that as soon as the provider is created it is going to be tasted and thus opened. Initial mediasize of zero causes tasting failure and subsequent retasting because of the size change. MFC after: 14 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-10-06T20:01:05.779093Z K 7 svn:log V 1489 Add support for bmake. This includes: 1. Don't do upgrade_checks when using bmake. As long as we have WITH_BMAKE, there's a bootstrap complication in ths respect. Avoid it. Make the necessary changes to have upgrade_checks work wth bmake anyway. 2. Remove the use of -E. It's not needed in our build because we use ?= for the respective variables, which means that we'll take the environment value (if any) anyway. 3. Properly declare phony targets as phony as bmake is a lot smarter (and thus agressive) about build avoidance. 4. Make sure CLEANFILES is complete and use it on .NOPATH. bmake is a lot smarter about build avoidance and should not find files we generate in the source tree. We should not have files in the repository we want to generate, but this is an easier way to cross this hurdle. 5. Have behavior under bmake the same as it is under make with respect to halting when sub-commands fail. Add "set -e" to compound commands so that bmake is informed when sub-commands fail. 6. Make sure crunchgen uses the same make as the rest of the build. This is important when the make utility isn't called make (but bmake for example). 7. While here, add support for using MAKEOBJDIR to set the object tree location. It's the second alternative bmake looks for when determining the actual object directory (= .OBJDIR). Submitted by: Simon Gerraty Submitted by: John Van Horne END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T20:01:17.606781Z K 7 svn:log V 507 boot/console: handle consoles that fail to probe - clarify meaning of console flags - perform i/o via a console only if both of the following conditions are met: o console is active (selected by user or config) o console flags that it can perform the operation - warn if a chosen console can not work (the warning may go nowhere without working and active console, though) Reviewed by: jhb Tested by: Uffe Jakobsen , Olivier Cochard-Labbe' MFC after: 26 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T20:04:51.841584Z K 7 svn:log V 337 i386 comconsole: don't loop forever if hardware doesn't respond - clear capability flags when hw timeouts - retire comc_started status variable and directly use c_flags to see if comconsole is selected for use Reviewed by: jhb Tested by: Uffe Jakobsen , Olivier Cochard-Labbe MFC after: 26 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T20:08:29.266754Z K 7 svn:log V 224 add detection of serial console presence to btx and boot2-like blocks Note that this commit slightly increases size of boot blocks. Reviewed by: jhb Tested by: Olivier Cochard-Labbe MFC after: 26 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T20:12:24.732126Z K 7 svn:log V 83 kvm_proclist: ignore processes in larvae state Reviewed by: jhb MFC after: 8 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T20:16:04.050077Z K 7 svn:log V 132 kvm_getprocs: gracefully handle errors from kvm_deadprocs and don't confuse callers with incorrect return value MFC after: 9 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T20:17:28.313280Z K 7 svn:log V 84 procstat_getprocs: honor kvm_getprocs interface - cnt is signed MFC after: 10 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-10-06T21:42:07.449602Z K 7 svn:log V 65 ata_da: set disk::d_ident from serial number MFC after: 10 days END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-10-06T22:14:19.229579Z K 7 svn:log V 444 MFC: r240720 Modify the NFSv4 client so that it can handle owner and owner_group strings that consist entirely of digits, interpreting them as the uid/gid number. This change was needed since new (>= 3.3) Linux servers reply with these strings by default. This change is mandated by the rfc3530bis draft. Reported on freebsd-stable@ under the Subject heading "Problem with Linux >= 3.3 as NFSv4 server" by Norbert Aschendorff on Aug. 20, 2012. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-10-07T01:58:32.770625Z K 7 svn:log V 344 Use the RTC unit to get the time. This works on all known AT91SAM9* processors, either on reboot or after power down with battery backup. However, the AT91RM9200 RTC always resets on reboot making it just about useless at the moment (if we support a low-power mode or an extended sleep mode, it might become useful). Submitted by: Ian Lepore END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-10-07T02:08:19.103616Z K 7 svn:log V 24 Improve a few comments. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-10-07T05:11:29.158577Z K 7 svn:log V 294 MFC r241141, r241165, r241165, r241181; rpc: convert all uid and gid variables to u_int. Follow a similar change in Solaris and linux where the uid and gid variables were made more similar to what the system expects. In our case we use u_int which is what XDR can manage, Reviewed by: bde END K 10 svn:author V 6 dteske K 8 svn:date V 27 2012-10-07T15:37:30.968630Z K 7 svn:log V 102 Comment and Copyright fixes/updates. Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-10-07T16:45:38.499194Z K 7 svn:log V 311 Fix 32-bit library builds after the removal of adding -E to make for AS, CC, CXX and LD. This fix implements the intended as it should have been implemented all along: by passing AS, CC, CXX and LD on the commandline of the sub-make instead of in the environment of the sub-make. Breakage pointed-out by: dim@ END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-10-07T17:48:38.419375Z K 7 svn:log V 110 Fix the showconfig target. bmake sends debug output to stderr. Submitted by: Simon Garrety END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-10-07T18:07:45.549461Z K 7 svn:log V 253 Optimize the TLB invalidations performed by pmap_protect(). Use the new range-based invalidation function instead of performing per-page invalidations. Don't bother invalidating mappings that don't have PTE_D set, since they don't allow write access. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:18:59.191281Z K 7 svn:log V 351 MFC 239913: Attach interrupt handlers during attach instead of during the first time the interface is brought up. Without this, the boot time interrupt round-robin assignment does not think the allocated interrupt resources are active and leaves them assigned to CPU 0. While here, add descriptive tags to each interrupt handler when MSI-X is used. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:19:13.803813Z K 7 svn:log V 351 MFC 239913: Attach interrupt handlers during attach instead of during the first time the interface is brought up. Without this, the boot time interrupt round-robin assignment does not think the allocated interrupt resources are active and leaves them assigned to CPU 0. While here, add descriptive tags to each interrupt handler when MSI-X is used. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:22:59.422743Z K 7 svn:log V 95 MFC 240132: When WIFCONTINUED was added, the number of "first" macros grew from three to four. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:23:15.474739Z K 7 svn:log V 95 MFC 240132: When WIFCONTINUED was added, the number of "first" macros grew from three to four. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:25:33.971832Z K 7 svn:log V 154 MFC 239906: Clarify that bus_dma does not stall future load requests once a load is deferred. The caller is required to enforce that if that is desired. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:25:48.664592Z K 7 svn:log V 154 MFC 239906: Clarify that bus_dma does not stall future load requests once a load is deferred. The caller is required to enforce that if that is desired. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:31:01.030567Z K 7 svn:log V 253 MFC 226961,239951: Add a -h flag similar to the -h flag for ln to force mv(1) to treat a symbolic link to a directory for the target as a symbolic link instead of a directory. This makes it possible to atomically update a symbolic link using rename(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:31:17.903642Z K 7 svn:log V 253 MFC 226961,239951: Add a -h flag similar to the -h flag for ln to force mv(1) to treat a symbolic link to a directory for the target as a symbolic link instead of a directory. This makes it possible to atomically update a symbolic link using rename(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:37:47.503388Z K 7 svn:log V 107 MFC 239335: Remove D_NEEDGIANT from dead_devsw. biofinish() (and thus dead_strategy) does not need Giant. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:37:59.172673Z K 7 svn:log V 107 MFC 239335: Remove D_NEEDGIANT from dead_devsw. biofinish() (and thus dead_strategy) does not need Giant. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:41:48.551626Z K 7 svn:log V 121 MFC 240962: Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT request on behalf of a user utility. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:42:02.473344Z K 7 svn:log V 121 MFC 240962: Grab the mfi_config_lock while performing a MFI_DCMD_CFG_FOREIGN_IMPORT request on behalf of a user utility. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:47:53.244756Z K 7 svn:log V 278 MFC 239354: Allow static DMA allocations that allow for enough segments to do page-sized segments for the entire allocation to use kmem_alloc_attr() to allocate KVM rather than using kmem_alloc_contig(). This avoids requiring a single physically contiguous chunk in this case. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:57:29.124759Z K 7 svn:log V 545 MFC 239440,239519: Refine the changes made in r208212 to avoid bogus failures from if_delmulti() when clearing the configuration for a subinterface when the parent interface is being detached. The current code was still triggering an assertion in if_delmulti() due to the parent interface being partially detached. Fix this by not calling if_delmulti() at all if the parent interface is being detached. Warn if if_delmulti() fails when the parent is not being detached (but similar to 208212, still proceed with tearing down the vlan state). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T18:57:52.399643Z K 7 svn:log V 545 MFC 239440,239519: Refine the changes made in r208212 to avoid bogus failures from if_delmulti() when clearing the configuration for a subinterface when the parent interface is being detached. The current code was still triggering an assertion in if_delmulti() due to the parent interface being partially detached. Fix this by not calling if_delmulti() at all if the parent interface is being detached. Warn if if_delmulti() fails when the parent is not being detached (but similar to 208212, still proceed with tearing down the vlan state). END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-10-07T19:30:16.716151Z K 7 svn:log V 417 Make graid command line a bit more friendly by allowing volume name or provider name to be specified instead of geom name (first argument in all subcommands except label). In most cases there is only one array used any way, so it is not really useful to make user type ugly geom names like Intel-f0bdf223 or SiI-732c2b9448cf. Though they can be used in some cases. Sponsored by: iXsystems, Inc. MFC after: 1 month END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-10-07T19:53:04.960891Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-10-07T20:01:41.273221Z K 7 svn:log V 21 Remove contractions. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-10-07T20:17:24.932535Z K 7 svn:log V 232 MFC 212429: Add real dependancies on the uuencoded firmwares. Now when one does 'make kernel ; make kernel' the second invocation only does: `kernel.ko' is up to date. rather than reproduce all the .fw files and relink the kernel. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-10-07T20:36:46.598487Z K 7 svn:log V 129 Loop reading the RTC registers until the same values are obtained twice, as advised in the atmel docs. Submitted by: Ian Lapore END