ƒ¯F226336 184 911 168 358 107 177 156 287 296 211 253 182 259 112 236 167 182 262 108 168 328 111 286 121 119 117 260 145 165 255 98 117 271 317 295 295 445 176 156 333 148 773 142 221 119 162 213 176 146 169 185 240 217 269 178 162 162 217 217 193 155 193 554 203 259 1115 602 403 629 262 515 206 482 182 243 290 119 223 227 137 234 146 448 511 390 139 242 197 150 225 288 214 249 234 215 210 345 112 216 254 182 229 289 140 244 208 365 216 544 394 174 275 357 299 281 485 817 246 294 279 310 365 534 170 365 317 271 135 164 417 734 367 211 132 316 258 265 108 156 189 193 238 107 371 371 145 186 243 663 222 288 478 220 911 377 196 706 316 297 339 514 212 172 139 397 382 347 930 132 243 150 228 325 170 275 618 447 460 151 395 2192 139 694 306 165 K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-13T08:36:11.138687Z K 7 svn:log V 815 Add in some _very dirty_ stuff to get the mips24k performance counter stuff working in interrupt mode. This is very _very_ local and mustn't be merged into -HEAD. If the relevant bit is set in the APB misc interrupt word, an interrupt is generated (APB IRQ 5) on each performance counter event. This at least generates sampling events but it's: * absolutely wrong looking; * since callchains aren't implemented, any testing _must_ involve disabling callchain events (pmcstat -N) or things will crash. The mips24k spec sets a specific bit in the trap cause register whenever a performance counter event occurs. But since I'm not yet sure whether we should just use that or the irq (or how to do mips24k specific stuff in the general mips trap frame handling code), I'll just abuse the interrupt code for now. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-13T09:21:49.469891Z K 7 svn:log V 73 MFC 226120 PR: kern/159602 Submitted by: pluknet Approved by: re (kib) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-13T13:05:36.332905Z K 7 svn:log V 261 Restore functions in6_ifaddloop() and in6_ifremloop() that were inlined by Qing Li in his big new-ARP commit. I am going to utilize them in my newcarp work, and also these functions left declared in in6_var.h for all the time they were absent. Reviewed by: bz END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-13T13:30:41.357229Z K 7 svn:log V 11 De-spl(9). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-13T13:33:23.011956Z K 7 svn:log V 81 Use TAILQ_FOREACH() in the nd6_dad_find() instead of hand-rolled implementation. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-13T14:20:27.853490Z K 7 svn:log V 65 Link the demo application against ncursesw to make Unicode work. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-13T16:16:46.326922Z K 7 svn:log V 191 In elf32_trans_prot() and when compiling for amd64 or ia64, add PROT_EXECUTE when PROT_READ is needed. By default i386 allows execution when reading is allowed and JDK 1.4.x depends on that. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-13T16:20:10.253181Z K 7 svn:log V 200 In sys_obreak() and when compiling for amd64 or ia64, when the process is ILP32 (i.e. i386) grant execute permissions by default. The JDK 1.4.x depends on being able to execute from the heap on i386. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-13T16:29:24.465141Z K 7 svn:log V 118 Clean up mkioctls a bit, and fix cross-building by checking ${MACHINE} instead of $(uname -m). Pointed out by: nyan@ END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-13T17:20:45.630935Z K 7 svn:log V 160 Make dhclient use a pid file. Modify the rc script accordingly; while there, clean it up and add some error checks. Glanced at by: brooks@ MFC after: 3 weeks END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-10-13T18:17:03.103731Z K 7 svn:log V 85 Fix bmiss notifications, events should be sent when NOT scanning. MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-13T18:18:42.515973Z K 7 svn:log V 163 In freebsd32_mmap() and when compiling for amd64 or ia64, also ask for execute permissions when read permissions are wanted. This is needed for JDK 1.4.x on i386. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-13T18:21:11.628367Z K 7 svn:log V 17 Wrap mprotect(2) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-13T18:25:10.678315Z K 7 svn:log V 140 Wrap mprotect(2) so that we can add execute permissions when read permissions are requested. This is needed on amd64 and ia64 for JDK 1.4.x END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-13T20:06:19.983813Z K 7 svn:log V 72 Merge from r225950: Set the sense residual properly. Reviewed by: ken END K 10 svn:author V 6 rakuco K 8 svn:date V 27 2011-10-13T20:36:43.980890Z K 7 svn:log V 87 Add myself to committers-ports.dot and calendar.freebsd. Approved by: avilla (mentor) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-10-13T21:41:54.250292Z K 7 svn:log V 166 MFC r226028: portsnap: Detect error immediately if we can't fetch the snapshot metadata. Also add some quotes around command substitution where useful and possible. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-13T22:33:03.865696Z K 7 svn:log V 13 Use PTRIN(). END K 10 svn:author V 6 wblock K 8 svn:date V 27 2011-10-14T00:34:45.868312Z K 7 svn:log V 73 Add mentors and myself to committers-doc.dot. Approved by: gjb (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-14T03:24:35.519346Z K 7 svn:log V 232 ath_pci PCI setup fixes. * Break out the PCI setup override code into a new function. * Re-apply the PCI overrides on powersave resume. The retry timeout register isn't currently being saved/resumed by the PCI driver/bus code. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-14T03:46:35.539380Z K 7 svn:log V 16 Add another LOR END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-14T06:38:45.133802Z K 7 svn:log V 190 Reduce the amount of silly locking overhead which I introduced in a previous commit. This now only grabs the ath lock once when handling the tx queue completion, rather than one per queue. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-14T07:24:23.055321Z K 7 svn:log V 30 Build finger(1) with WARNS=6. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-14T07:24:48.411292Z K 7 svn:log V 28 Build look(1) with WARNS=6. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-14T07:25:20.930295Z K 7 svn:log V 26 Build tr(1) with WARNS=6. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-14T07:26:20.261246Z K 7 svn:log V 168 Build last(1) and leave(1) with WARNS=6. These ports were only built with WARNS=1, because they use certain format extensions. We can use NO_WFORMAT for that instead. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-14T07:28:39.874808Z K 7 svn:log V 54 Make nl(1) build with WARNS=6. Obtained from: NetBSD END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-14T10:43:55.887252Z K 7 svn:log V 74 Put parentheses in the right place. Noted by: jilles@ Broken by: me. :-( END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-10-14T11:46:46.122027Z K 7 svn:log V 162 Use PAIR32TO64() for the offset and length parameters to freebsd32_posix_fallocate() to properly handle big-endian platforms. Reviewed by: mdf MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-10-14T11:47:14.738829Z K 7 svn:log V 7 Regen. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-10-14T11:48:32.113646Z K 7 svn:log V 25 Fix a typo in a comment. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-14T19:05:26.038080Z K 7 svn:log V 174 Never switch directly from INIT to MASTER, since this produces nasty status flaps. PR: kern/161123 Submitted by: Damien Fleuriot OpenBSD: ip_carp.c, rev. 1.115 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-14T22:33:39.176608Z K 7 svn:log V 220 MFC r226082: Return proper errno when we hit error when doing sanity check. This fixes dtrace crashes when module is not compiled with CTF data. Submitted by: Paul Ambrose ambrosehua at gmail.com Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-14T22:44:51.150450Z K 7 svn:log V 198 MFC r226082: Return proper errno when we hit error when doing sanity check. This fixes dtrace crashes when module is not compiled with CTF data. Submitted by: Paul Ambrose ambrosehua at gmail.com END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-14T22:52:46.564585Z K 7 svn:log V 198 MFC r226082: Return proper errno when we hit error when doing sanity check. This fixes dtrace crashes when module is not compiled with CTF data. Submitted by: Paul Ambrose ambrosehua at gmail.com END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T04:16:58.432702Z K 7 svn:log V 352 Fix a double-rounding bug in fma{,f,l}. The bug would occur in round-to-nearest mode when the result, rounded to twice machine precision, was exactly halfway between two machine-precision values. The essence of the fix is to simulate a "sticky bit" in the pathological cases, which is how hardware implementations break the ties. MFC after: 1 month END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T04:17:20.582169Z K 7 svn:log V 84 Replace two lines accidentally removed in r226218. Thanks to bde for noticing this. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T04:22:55.650745Z K 7 svn:log V 64 Add INSERT_WORD64 and EXTRACT_WORD64 macros for use in s_fma.c. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T04:24:54.793160Z K 7 svn:log V 240 Don't define FP_FAST_FMA on sparc64; with the recent fixes, fma() is no longer "fast" on sparc64. (It really wasn't to begin with, since the old implementation was using long doubles, and long doubles are emulated in software on sparc64.) END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T05:00:56.665902Z K 7 svn:log V 56 Style fixes and updates to comments. Submitted by: bde END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T05:23:28.370998Z K 7 svn:log V 680 Various changes to improve the accuracy and speed of log{2,10}{,f}. - Rename __kernel_log() to k_log1p(). - Move some of the work that was previously done in the kernel log into the callers. This enables further refactoring to improve accuracy or speed, although I don't recall the details. - Use extra precision when adding the final scaling term, which improves accuracy. - Describe and work around compiler problems that break some of the multiprecision calculations. A fix for a small bug is also included: - Add a special case for log*(1). This is needed to ensure that log*(1) == +0 instead of -0, even when the rounding mode is FE_DOWNWARD. Submitted by: bde END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T05:26:16.216279Z K 7 svn:log V 50 Add some tests for double-rounding bugs in fma(). END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T05:28:13.399670Z K 7 svn:log V 128 Add some tests for corner cases of log() in unusual rounding modes. I wrote these ages ago, but they've been failing until now. END K 10 svn:author V 3 imp K 8 svn:date V 27 2011-10-15T05:48:43.708595Z K 7 svn:log V 27 merge from head at r226374 END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-15T07:00:28.898010Z K 7 svn:log V 70 Remove some unnecessary initializations. Obtained from: DragonFlyBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-15T09:29:43.169868Z K 7 svn:log V 117 Merge from NetBSD: - Remove clause 3 and 4 from TNF licenses. - Fix memset usage. - Various cleanup. - Kill caddr_t. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-15T12:02:55.635360Z K 7 svn:log V 84 MFC r226155: Set TLS block for the main thread after the relocations are processed. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-15T12:05:31.280319Z K 7 svn:log V 54 MFC r226156: Handle the R_386_TLS_TPOFF32 relocation. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:05:42.241076Z K 7 svn:log V 72 MFC: r226143 Remove two dublicated assignments. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:08:21.705814Z K 7 svn:log V 88 MFC: r226116 Add missing va_end() to clean up after va_start(). Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:10:34.478432Z K 7 svn:log V 142 MFC: r226117 Add missing va_end() in an error case to clean up after va_start() (already done in the non-error case). Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:33:24.797760Z K 7 svn:log V 119 MFC: r226146 Remove dead code, "error" doesn't change between this check and the previous one. Approved by: re (kib) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-10-15T12:35:18.586399Z K 7 svn:log V 176 Control the execution permission of the readable segments for i386 binaries on the amd64 and ia64 with the sysctl, instead of unconditionally enabling it. Reviewed by: marcel END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:35:58.605408Z K 7 svn:log V 81 MFC: r226149 Fix an infinite loop in siba_bwn_suspend(). Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:53:16.037873Z K 7 svn:log V 65 MFC: r226116 Add missing va_end() to clean up after va_start(). END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T12:59:30.295137Z K 7 svn:log V 65 MFC: r226116 Add missing va_end() to clean up after va_start(). END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T13:03:25.600751Z K 7 svn:log V 119 MFC: r226117 Add missing va_end() in an error case to clean up after va_start() (already done in the non-error case). END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T13:05:31.506158Z K 7 svn:log V 119 MFC: r226117 Add missing va_end() in an error case to clean up after va_start() (already done in the non-error case). END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T13:08:54.935181Z K 7 svn:log V 96 MFC: r226146 Remove dead code, "error" doesn't change between this check and the previous one. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T13:12:48.792024Z K 7 svn:log V 58 MFC: r226149 Fix an infinite loop in siba_bwn_suspend(). END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-15T13:20:36.853175Z K 7 svn:log V 101 Fix whitespace inconsistencies in systat(1). According to md5(1), the resulting binary is the same. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-15T15:21:33.862698Z K 7 svn:log V 458 Separate out the RX completion processing from the taskqueue/tasklet. When resetting the NIC (eg from a stuck beacon condition), frames which are RX'ed are simply dropped on the floor. (TX'ed frames are also deleted from the queue; that's a later problem to address.) Ths eventual aim of this work is to make it possible to complete the RX processing outside of the taskqueue/tasklets - ie, in the reset path. But this needs to be called without clashing. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T15:57:55.979487Z K 7 svn:log V 105 Properly free resources in an error case. CID: 4203 Found with: Coverity Prevent(tm) MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-15T16:05:27.044413Z K 7 svn:log V 163 Begin pushing the ath lock into other places where the hardware is fondled. This includes: * where the PCU RX is stopped/started; * where ath_reset() is called. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-15T16:18:35.341230Z K 7 svn:log V 1018 Hide ath_rx_proc() behind the ATH_LOCK, and start using it before resetting the hardware. When resetting the NIC (eg when a stuck beacon occurs), there may be received frames in the RX queue. This should happen: * disable interrupts; * stop pcu receive; * handle frames in the RX queue; * reset the hardware as needed; * start the PCU RX (which purges the queue.) This prevents RX frames from disappearing after an interface reset (eg ANI config change, forced beacon stuck) and thus the RX AMPDU tracking getting out of whack with the TX'ing side. Since PCU receive has stopped, This doesn't entirely fix things, as the TX side can and will drop frames on an interface reset or node flush. I'll worry about this in a subsequent commit. TODO: * see whether the pcu rx should be stopped before disabling interrupts, that way the MAC definitely stops ACKing frames. Instead, right now with the above order, frames coming after intr disable but before pcu stop may overflow the RX fifo and cause some issues. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-15T16:28:06.102588Z K 7 svn:log V 505 Remove last remnants of classful addressing: - Remove ia_net, ia_netmask, ia_netbroadcast from struct in_ifaddr. - Remove net.inet.ip.subnetsarelocal, I bet no one need it in 2011. - fix bug when we were not forwarding to a host which matches classful net address. For example router having 192.168.x.y/16 network attached, would not forward traffic to 192.168.*.0, which are legal IPs in CIDR world. - For compatibility, leave autoguessing of mask based on class. Reviewed by: andre, bz, rwatson END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-10-15T18:41:25.985940Z K 7 svn:log V 306 Add support for IPv4 /31 prefixes, as described in RFC3021. To run a /31 network, participating hosts MUST drop support for directed broadcasts, and treat the first and last addresses on subnet as unicast. The broadcast address for the prefix should be the link local broadcast address, INADDR_BROADCAST. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-10-15T19:08:22.878772Z K 7 svn:log V 532 In r225809 the intention was to send VEOF only once if STDIN was not a terminal. Unfortunately the fix was incorrect and for flushtime > 0 it keept sending VEOF. Sent VEOF generates ^D\b\b echoed by the terminal, which was reported in bin/161526. Note, we still send VEOF at least once. Otherwise commands like below would hang forever: echo 1 |script /tmp/script.out cat PR: bin/161526 Reported by: Adrian Wontroba , Stefan Bethke Tested by: Stefan Bethke MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-10-15T21:06:08.770866Z K 7 svn:log V 166 - add support for I-O DATA RSA-PCI2/R PR: kern/142999 Submitted by: Takefu Kenji Approved by: jhb Approved by: sahil (mentor) MFC after: 1 week END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-15T21:23:04.859555Z K 7 svn:log V 417 Remove extra debuggin gsupport that is turned on for head but turned off for stable branches: - shift to MALLOC_PRODUCTION - turn off automatic crash dumps - remove kernel debuggers, INVARIANT*[1], WITNESS* from GENERIC kernel config files [1] INVARIANT* left on for ia64 at least temporarily, marcel@ will test to see if they are still required as they had been for stable/8. Approved by: re (implicit) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-15T22:27:35.120034Z K 7 svn:log V 108 Properly free resources in case of an error. CID: 4222 Found with: Coverity Prevent(tm) MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2011-10-15T22:27:59.353807Z K 7 svn:log V 385 Merge r226301 from head to stable/9: Correct a bug in export of capability-related information from the sysctls supporting procstat -f: properly provide capability rights information to userspace. The bug resulted from a merge-o during upstreaming (or rather, a failure to properly merge FreeBSD-side changed downstream). Spotted by: des, kibab Approved by: re (kib) END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-15T23:09:21.066908Z K 7 svn:log V 90 MFC r226310: Add manpage symlink for clang++(1). PR: docs/149051 Approved by: re (kib) END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-15T23:13:24.564282Z K 7 svn:log V 150 MFC r226311: Add link from clang to clang-cpp, so you can use CPP=clang-cpp in Makefiles. Also add a manpage symlink for it. Approved by: re (kib) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-10-15T23:15:55.339514Z K 7 svn:log V 189 Enforce a memory barrier in stream operations, as is done on other bus_space calls. This makes ath(4) work correctly on PowerPC. Submitted by: adrian Tested by: andreast MFC after: 3 days END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-16T05:36:23.110112Z K 7 svn:log V 27 Remove an unused variable. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-16T05:36:39.452972Z K 7 svn:log V 130 Move the macros GET_LDBL_EXPSIGN() and SET_LDBL_EXPSIGN() into math_private.h, so they can be used elsewhere in the math library. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-16T05:37:01.852933Z K 7 svn:log V 134 Optimize the case of pure imaginary arguments. Calls like this are common, e.g., in DFT implementations. Discussed with: bde, kargl END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-16T05:37:20.932749Z K 7 svn:log V 45 Fix some non-standard variable declarations. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-16T05:37:56.227136Z K 7 svn:log V 141 Use #include "fenv.h" instead of #include . This makes it more convenient to compile the math library by itself. Requested by: bde END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-16T07:05:43.481397Z K 7 svn:log V 50 Partially revert r226274, the old code was right. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-16T07:29:50.782342Z K 7 svn:log V 352 Move the TX taskqueue enqueue to later in the ath_intr() routine. I have this sneaking suspicion that preemption is the reason behind some of these TX hangs. Ie, the taskqueue enqueue caused the taskqueue process (which may be at the same priority as the ath_intr swi) to preempt it. Thus TX could occur before the TXQ status bits were properly set. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-16T07:35:26.824811Z K 7 svn:log V 414 According to the NetBSD foundation [1]: Third parties are encouraged to change the license on any files which have a 4-clause license contributed to the NetBSD Foundation to a 2-clause license. We would also encourage you to inform us about these files, so that we can continue to track the many places in which NetBSD is used. http://www.netbsd.org/about/redistribution.html#why2clause [1] Requested by: joel@ END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T07:36:27.322667Z K 7 svn:log V 298 Make some internal fixes to ruptime(1): - Prevent possible unaligned access to struct whoent. - Increase uptime column by one, to properly print hosts with an uptime greater than 1000 days. - Reduce code complexity by storing struct whod inside struct hs. - Set WARNS to 6. MFC after: 3 months END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T07:57:01.209650Z K 7 svn:log V 48 Build at(1) with NO_WFORMAT instead of WARNS=1. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:04:43.179086Z K 7 svn:log V 150 Remove unneeded WARNS=3 lines. It seems these two tools can be built properly with WARNS=6, even on architectures that are stricter about alignment. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:09:17.466277Z K 7 svn:log V 105 Fix build of m4 with WARNS=6. Change the parser; rename `exp' to `exponent' not to collide with exp(3). END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:14:12.534049Z K 7 svn:log V 59 Remove WARNS line. This tool builds with WARNS=6 properly. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:36:10.286611Z K 7 svn:log V 133 Use integer to store the result of getch(). We need to use an integer to make the comparison against ERR work. MFC after: 3 months END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:44:03.922451Z K 7 svn:log V 196 Change ncp_scan_bindery_object() to pass a constant search string. The ncp_scan_bindery_object() function does not modify search_string internally, so there is no need to declare it as `char *'. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:45:16.266195Z K 7 svn:log V 122 Change the SDP_GET* macros to cast to a const buffer. This fixes a compiler warning when passing a const buffer to them. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T08:54:41.463709Z K 7 svn:log V 157 Build rwho(1) with WARNS=6. The only reason why it didn't build with WARNS=6, is because of some simple to fix string formatting bugs. MFC after: 3 months END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T09:09:33.651514Z K 7 svn:log V 142 Undo r226423. It seems su does build without warnings, but it requires a small fix to libbsm headers, which I have not committed to SVN yet. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T10:00:28.516384Z K 7 svn:log V 123 Fix ncplist to build with WARNS=6. Add some const and static keywords to get it all to build. Also add missing #includes. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2011-10-16T10:14:33.550844Z K 7 svn:log V 113 Adjust posix_memalign() prototype to match what we define in stdlib.h for C++ compilation. PR: standards/147210 END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-16T10:58:00.499207Z K 7 svn:log V 253 Forward declare mbuf and inpcb. This fixes a compiler warning at WARNS=6 when including the header files as follows: #include #include #include #include #include END K 10 svn:author V 5 gabor K 8 svn:date V 27 2011-10-16T11:08:51.140418Z K 7 svn:log V 18 - Fixup after MFC END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-10-16T13:54:46.445489Z K 7 svn:log V 121 Update the comment and description of tcp_sendspace and tcp_recvspace to better reflect their purpose. MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-16T14:11:05.540390Z K 7 svn:log V 158 o Use C99 designated initializer to properly handle ELFOSABI_STANDALONE. o In elf_get_byte(), cast through uint8_t and not char to avoid sign extension. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-16T14:16:46.001288Z K 7 svn:log V 87 Fix double vision syndrome (read: double output) when in the debugger without a panic. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-10-16T14:30:28.915101Z K 7 svn:log V 133 - change "is is" to "is" or "it is" - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-10-16T15:08:43.759871Z K 7 svn:log V 194 VNET virtualize tcp_sendspace/tcp_recvspace and change the type to INT. A long is not necessary as the TCP window is limited to 2**30. A larger initial window isn't useful. MFC after: 1 week END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-16T15:55:23.693988Z K 7 svn:log V 43 Ready for RC1. Approved by: re (implicit) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-10-16T16:05:23.729767Z K 7 svn:log V 143 Place quotes around the output of kbdmap(1), designed to be pasted into /etc/rc.conf. PR: bin/161711 Submitted by: manolis MFC after: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2011-10-16T16:58:28.779728Z K 7 svn:log V 112 Unbreak NO_DYNAMICROOT by explicitely linking to libcrypto if MK_OPENSSL isn't set to no, as libbsnmp needs it. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2011-10-16T17:37:54.736752Z K 7 svn:log V 269 Explicitely set ARM_RAS_START and ARM_RAS_END once the cacheline or the page has been allocated, or we could end up using random values, and bad things could happen. PR: arm/161492 Submitted by: Ian Lepore MFC after: 1 week END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-16T17:38:20.330386Z K 7 svn:log V 118 Revert r226398 and instead move the allocation of usrbufs after the error check. Suggested by: pjd MFC after: 1 week END K 10 svn:author V 6 cognet K 8 svn:date V 27 2011-10-16T17:59:28.088956Z K 7 svn:log V 448 Fix 2 bugs : - A race condition could happen if two threads were using RAS at the same time as the code didn't reset RAS_END, the RAS code could believe we were not in a RAS, when we were in fact. - Using signed value logic to compare addresses wasn't such a good idea. Many thanks to Ian to investigate on these issues. Pointy hat to: cognet PR: arm/161498 Submitted by: Ian Lepore MFC after: 9.0-RELEASE END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-16T21:30:15.164815Z K 7 svn:log V 392 In pidfile_open(), if the pidfile is locked, but empty (PID is not stored yet) and the caller requested other process' PID by passing non-NULL pidptr argument, we will wait at most 100ms for the PID to show up in the file and if it won't, we will store -1 in *pidptr. From now on, pidfile_open() function never sets errno to EAGAIN on failure. In collaboration with: des MFC after: 1 week END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-16T22:15:13.999455Z K 7 svn:log V 721 The IPv6 code was influx at the time of r196865 due to the L2/L3 separation rewrite changes. r196865 was committed to fix a scope violation problem in the following test scenario: box-1# ifconfig em0 inet6 2001:db8:1:: prefixlen 64 anycast box-1# ifconfig em1 inet6 2001:db8:2::1 prefixlen 64 box-2# ifconfig re0 inet6 2001:db8:1::6 prefixlen 64 em0 and re0 are on the same link. box-2# ping6 2001:db8:1:: PING6(56=40+8+8 bytes) 2001:db8:1::6 --> 2001:db8:1:: the ICMPv6 response should have a source address of em1, which is 2001:db8:2::1, not the link-local address of em0. That code is no longer necessary and breaks the IPv6-Ready logo testing, so revert it now. Reviewed by: hrs MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-16T22:18:08.786226Z K 7 svn:log V 150 Define dtrace_cmpset_long in terms of atomic_cmpset_long and not by virtue of inline assembly. Now this file compiles on all supported architectures. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-16T22:24:04.912370Z K 7 svn:log V 198 The code change made in r226040 was incomplete and resulted in routes such as fe80::1%lo0 no being installed. This patch completes the original intended fix. Reviewed by: hrs, bz MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-17T00:05:31.168009Z K 7 svn:log V 187 Add syntactic sugar missed in r226437 and then not added either when moving things around in r226448 but desperately needed to always make things compile successfully. MFC after: 1 week END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-17T03:35:24.486827Z K 7 svn:log V 214 MFC 226453 The code change made in r226040 was incomplete and resulted in routes such as fe80::1%lo0 no being installed. This patch completes the original intended fix. Reviewed by: hrs. bz Approved by: re (ken) END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-17T05:38:07.111383Z K 7 svn:log V 272 MFC various log* improvements. r216247 - log2f style r216248 - log2f insignificant bug r219360 - log10 converted to use k_log r219361 - log10f converted to use k_log r226375 - log2/log10 style r226376 - log2/log10 bde's improvements; fix log(1) with FE_DOWNWARD rounding END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-17T05:38:22.310798Z K 7 svn:log V 441 Belated MFC of log2 and log2f to 7-STABLE by popular demand, along with other log* improvements. r175461 - log(3) manpage (partial MFC) r216210 - add k_log (used by log*) r216211 - add log2 and log2f r216247 - log2f style r216248 - log2f insignificant bug r219360 - log10 converted to use k_log r219361 - log10f converted to use k_log r226375 - log2/log10 style r226376 - log2/log10 bde's improvements; fix log(1) with FE_DOWNWARD rounding END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-17T05:41:03.976342Z K 7 svn:log V 78 Add c{cos,sin,tan}{,h}{,f} functions. This is joint work with bde and kargl. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-17T05:42:53.103639Z K 7 svn:log V 267 Fix for crash on MIPS /dev/mem read. Reading /dev/mem in 64 bit kernel crashes. This is because the page used to call uiomove_fromphys() from memrw() does not have md.pv_list initialized correctly. The fix is to call pmap_page_init() on the page to initialize it. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-10-17T06:10:32.483929Z K 7 svn:log V 224 It's no longer accurate to say that math.h "constitute[s] the C math library," since complex.h, tgmath.h, and fenv.h are also part of the math library. Replace the outdated sentence with some references to the other parts. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-17T09:54:07.806876Z K 7 svn:log V 178 When path to the configuration file is relative, obtain full path, so we can always find the file, even after daemonizing and changing working directory to /. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-17T09:59:04.202790Z K 7 svn:log V 43 Remove redundant space. MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-17T12:22:09.316014Z K 7 svn:log V 72 Allow to specify pidfile in HAST configuration file. MFC after: 1 week END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-17T13:05:57.547857Z K 7 svn:log V 324 The rc_force test was inverted in the previous commit, so that dhclient ran for interfaces which were not configured for DHCP *unless* rc_force was set; the correct logic is to run dhclient for those interfaces *only if* rc_force is set. Broken by: des@ Noticed by: everybody and his dog Submitted by: rea@ PR: bin/161733 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-17T13:12:47.832761Z K 7 svn:log V 638 Fix an issue with 11g beacon frames which looks to be a limitation on the largest multi-write size. From the submitter: == I looked further into the magic 88-byte threshold after which the bug occurs. It turns out that figure included the 24-byte tx_desc, and up to 64 bytes of beacon frame (header+data). rum_write_multi doesn't seem happy with writing >64 bytes at a time to the MAC register. If I break it up into separate calls (e.g. bytes 0-63, then bytes 64-65, written at the appropriate offset) I see the proper beacon frames being transmitted now. == Submitted by: Steven Chamberlain MFC after: 3 days END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-17T13:44:33.588208Z K 7 svn:log V 269 FDT changes for 64 bit kernel Use the offset into the device tree from fdtp as the phandle instead of using pointer into the device tree. This will make sure that the phandle fits into a uint32_t type, even when compiled for 64bit. Reviewed by: raj, nathanw, marcel END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-10-17T13:51:00.158841Z K 7 svn:log V 119 Fix build after r226465. Cast void * to char * for arithmetics and make function return "no error". MFC after: 3 days END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-17T13:54:55.779463Z K 7 svn:log V 41 Sort header file names. Spotted by: des END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-17T14:17:37.562472Z K 7 svn:log V 220 Don't enable the PHY radar errors in calcrxfilter. That way the radar errors aren't enabled prematurely. A DFS tester has reported that radar events are reported during channel scanning, before DFS is actually enabled. END K 10 svn:author V 2 se K 8 svn:date V 27 2011-10-17T14:33:41.361902Z K 7 svn:log V 166 Fix error message in case the backup storage directory does not exist and cannot be created ($daily_backup_pkgdb_dbdir -> $daily_backup_pkgdb_dir). MFC after: 1 week END K 10 svn:author V 2 se K 8 svn:date V 27 2011-10-17T14:37:24.561764Z K 7 svn:log V 173 Add missing default values for daily/800.scrub-zfs for documentation purposes. No functional change, since all parameters are set to their default values. MFC after: 1 week END K 10 svn:author V 3 lev K 8 svn:date V 27 2011-10-17T14:57:42.490709Z K 7 svn:log V 16 Merge from head END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-17T15:25:38.638979Z K 7 svn:log V 61 Enforce that ath_stoprecv() is called with the sc lock held. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-10-17T15:54:20.018692Z K 7 svn:log V 92 Make the usbdump utility work again by using the correct BPF structures. MFC after: 3 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-17T18:30:18.717284Z K 7 svn:log V 100 Update llvm/clang's target triple (confusingly named LLVM_HOSTTRIPLE) to $arch-unknown-freebsd10.0. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-17T19:21:42.560060Z K 7 svn:log V 141 Return BUS_PROBE_DEFAULT instead of 0 (BUS_PROBE_SPECIFIC), allowing vendor provided driver to override in kernel driver. MFC after: 3 days END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-17T19:40:26.556493Z K 7 svn:log V 16 Fix whitespace. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-17T19:49:00.154551Z K 7 svn:log V 274 Close a race where SIOCGIFMEDIA ioctl get inconsistent link status. Because driver is accessing a common MII structure in mii_pollstat(), updating user supplied structure should be done before dropping a driver lock. Reported by: Karim (fodillemlinkarimi <> gmail dot com) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-17T19:51:38.379631Z K 7 svn:log V 274 Close a race where SIOCGIFMEDIA ioctl get inconsistent link status. Because driver is accessing a common MII structure in mii_pollstat(), updating user supplied structure should be done before dropping a driver lock. Reported by: Karim (fodillemlinkarimi <> gmail dot com) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-17T19:58:34.555675Z K 7 svn:log V 49 Add missing driver lock in media status handler. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-17T20:03:38.893179Z K 7 svn:log V 90 Make sure to report media change status to caller. Previously it always reported success. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-10-17T21:31:03.143213Z K 7 svn:log V 147 - remove device keyword from makefs manpage PR: docs/144408 Submitted by: gcooper Approved by: gjb Approved by: sahil (mentor) MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-17T22:23:27.137518Z K 7 svn:log V 566 Fix a bug in sa_find_sizes() which could lead to panic: When calculating space needed for SA_BONUS buffers, hdrsize is always rounded up to next 8-aligned boundary. However, in two places the round up was done against sum of 'total' plus hdrsize. On the other hand, hdrsize increments by 4 each time, which means in certain conditions, we would end up returning with will_spill == 0 and (total + hdrsize) larger than full_space, leading to a failed assertion because it's invalid for dmu_set_bonus. Sponsored by: iXsystems, Inc. Reviewed by: mm MFC after: 3 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-17T23:36:29.669294Z K 7 svn:log V 126 Now that I've fixed the issues that I was seeing when the PCU was being kicked, remove all the extra code/comments left over. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-18T01:56:43.196242Z K 7 svn:log V 192 MFC 226453 The code change made in r226040 was incomplete and resulted in routes such as fe80::1%lo0 no being installed. This patch completes the original intended fix. Reviewed by: hrs, bz END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T02:43:59.091252Z K 7 svn:log V 382 Include opt_ah.h when compiling the driver. There are HAL methods which are actually direct register access, rather than simply HAL calls. Because of this, these register accesses would use the non-debug path in ah_osdep.h as opt_ah.h isn't included. With this, the correct register access methods are used, so debugging traces show things such as TXDP checking and TSF32 access. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T02:46:26.204033Z K 7 svn:log V 124 Add in OS_REG_BIT_SET, a macro which does what it says it does. This will be used in an upcoming commit to the ar5212 HAL. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T03:01:41.320609Z K 7 svn:log V 815 Implement the first part of the BB read workaround. The AR5008/AR9001 series NICs have a bug where BB register reads will occasionally be corrupted. This could cause issues with things such as ANI, which adjust operational parameters based on the BB radio register reads. This was introduced in the AR5008 chip and fixed with the first released AR9002 series NIC (AR9280v2.) A followup commit will implement the acutal WAR when reading BB registers. I'm still not sure how I'll implement it - whether it should be done in the osdep layer, or whether it should just live in the AR5416 HAL. Either way, they can use this capability bit to determine whether to implement the WAR or not. Thankyou to various sources inside Atheros who have helped me track down what this particular issue is. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T03:17:06.239256Z K 7 svn:log V 281 Port over some missing code from the ar5212 reference driver reset path. The final missing bit here is enabling the PCI configuration register read, but there's currently no glue available for the HAL to read (and write) PCI configuration space registers. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T03:24:17.151237Z K 7 svn:log V 100 Add a WAR from the reference code - clear the PCI error status upon detach. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T03:32:18.308170Z K 7 svn:log V 610 Add in a currently-disabled WAR for PCI NICs. Some earlier series (~AR5212?) play badly with BIOSes. In these instances, they may require a forced reset (by transitioning the NIC through D0 -> D3 -> D0) before they probe/attach correctly. This is currently disabled because: * I haven't figured out the "right" code to ensure this only happens for PCI NICs (not PCIe or Cardbus); * I haven't at all done wide scale testing for this, and I'm not yet ready for said wide-scale testing. I'm documenting this primarily so users with misbehaving NICs have something to tinker with. Obtained from: Atheros END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T03:57:44.098422Z K 7 svn:log V 220 Teach ath_tx_processq() to not reschedule more frames. This isn't used just yet - but when TX is being non-delete flushed (ie, when packets are completed but in-progress frames are not deleted), sched should not occur. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T07:13:07.691952Z K 7 svn:log V 201 Break out the ath_draintxq() code into two halves - the half that drains the queue, and another half which stops the TX DMA. Call the new function ath_stoptxdma(). It requires the sc lock to be held. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T07:17:44.043928Z K 7 svn:log V 243 Remove a now uneeded call. This race doesn't occur (now) because of the ath sc lock being held during ath_rx_proc. It _can_ race with the tx completion code and ath_start / ath_xmit_raw calls because currently no sc lock is held during those. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T07:28:58.759942Z K 7 svn:log V 421 Revisit the capability failure trace points. The initial implementation only logged instances where an operation on a file descriptor required capabilities which the file descriptor did not have. By adding a type enum to struct ktr_cap_fail, we can catch other types of capability failures as well, such as disallowed system calls or attempts to wrap a file descriptor with more capabilities than it had to begin with. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-18T07:29:21.091756Z K 7 svn:log V 114 FDT support for MIPS. Add architecture specific files needed to compile MIPS with flattened device tree support. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T07:31:49.415963Z K 7 svn:log V 80 Trace attempts to open a portal device. Ceterum censeo portalfs esse delendam. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T07:39:27.079486Z K 7 svn:log V 47 Trace attempts to call restricted MD syscalls. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T07:54:22.737148Z K 7 svn:log V 301 Stick ath_start() and ath_tx_proc() behind the ath sc lock. This is to prevent ath_start() being preempted by a taskqueue or by the reset process. This is primarily to avoid having a reset or flush operation occur during active TX / TX completion, and having TX DMA be restarted when it's disabled. END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-18T08:09:44.977224Z K 7 svn:log V 290 Get rid of D_PSEUDO. It seems the D_PSEUDO flag was meant to allow make_dev() to return NULL. Nowadays we have a different interface for that; make_dev_p(). There's no need to keep it there. While there, remove an unneeded D_NEEDMINOR from the gpio driver. Discussed with: gonzo@ (gpio) END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-18T08:10:23.385190Z K 7 svn:log V 249 Support for booting XLP using FDT. - update xlp_machdep.c to read arguments from FDT if FDT support is compiled in. - define rmi_uart_bus_space, and use it as fdtbus_bs_tag - update conf files for FDT support - add default dts file xlp-basic.dts END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T08:18:26.001002Z K 7 svn:log V 837 Simplify df(1) by factoring out most of the common code: - In the argc == 0 case, just populate the mount list as before, but do not calculate widths, update totals or print anything. - In the argv > 0 case, collect information about the requested file systems and store it in the mount list, but do not calculate widths, update totals or print anything. - In either case, once all the information has been collected, iterate once through the mount list to calculate widths and totals, then once more to print everything. This also fixes two bugs: firstly, column widths were not calculated correctly if more than one file system was specified on the command line; and secondly, file systems with MNT_IGNORE were included in the totals even if -a was not specified. Noticed by: Paul Schenkeveld MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T08:20:36.518931Z K 7 svn:log V 40 Minor clarification MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T08:26:12.192444Z K 7 svn:log V 150 Make ktrace(1) build cleanly at WARNS level 6 by completely rethinking the way in which it handles the -C, -c, -g and -p options. MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T09:39:41.219139Z K 7 svn:log V 58 Fix copy-pasto in CAPFAIL_INCREASE case. Noticed by: pjd END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T09:46:52.897901Z K 7 svn:log V 135 Look for /boot/config in addition to /boot.config, with the former taking precedence over the latter if it exists. MFC after: 3 weeks END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-18T11:29:10.017145Z K 7 svn:log V 227 Escape the newline so we get a proper line continuation. Without this the text of the menu selections doesn't get displayed properly and it makes the installer appear to lock up for no obvious reason. Reviewed by: nwhitehorn END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T12:13:20.987273Z K 7 svn:log V 75 Lock ath_raw_xmit() for now, matching how ath_start() is currently locked. END K 10 svn:author V 3 des K 8 svn:date V 27 2011-10-18T13:10:46.029387Z K 7 svn:log V 182 When calculating the width of the blocksize column, ls(1) used 512-byte units (as returned by stat(2)) instead of BLOCKSIZE units. Submitted by: Paul Schenkeveld MFC after: 3 weeks END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-18T13:45:16.001207Z K 7 svn:log V 520 Comment out the sbp(4) driver for architectures that support it. As part of the 8.0-RELEASE cycle this was done in stable/8 (r199112) but was left alone in head so people could work on fixing an issue that caused boot failure on some motherboards. Apparently nobody has worked on it and we are getting reports of boot failure with the 9.0 test builds. So this time I'll comment out the driver in head (still hoping someone will work on it) and MFC to stable/9. Submitted by: Alberto Villa END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-10-18T13:48:31.971143Z K 7 svn:log V 349 MFC r226507: > Escape the newline so we get a proper line continuation. Without this > the text of the menu selections doesn't get displayed properly and it > makes the installer appear to lock up for no obvious reason. > > Reviewed by: nwhitehorn Insta-MFC being done because 9.0-RC1 builds are being held for this. Approved by: re (kib, bz) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-18T13:58:22.712764Z K 7 svn:log V 368 Import fix for Illumos bug #1475 to reduce diff against upstream. Panic caused by this bug was already partially fixed by pjd@ in p4 CH 185940 and 185942. Reference: 1475 zfs spill block hold can access invalid spill blkptr https://www.illumos.org/issues/1475 Reviewed by: delphij Obtained from: Illumos (issue 1475, changeset 13469:b8e89e5c4167) MFC after: 1 week END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-18T14:05:18.245483Z K 7 svn:log V 54 Fix XLP compile failure on n32 abi. Reported by: bz@ END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-10-18T15:25:43.059008Z K 7 svn:log V 298 Add a flush of the current PMC log buffer before displaying the next top. As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. MFC after: 1 month END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T15:37:59.756407Z K 7 svn:log V 2095 Begin fleshing out the "Don't drop frames during an interface reset" code. * Add sc->sc_in_reset, which is protected by the ATH_LOCK and is >0 when the interface is being reset. * Don't call draintxq on a recoverable interface reset - ie, one where there's no operational state change. If a channel change is needed, or a channel width change occurs, then yes frames are dropped for now. But if a stuck beacon occurs, just process the frames in the queue and queue subsequent frames being sent to the hardware. Instead, just process the queue normally via ath_tx_processq(), but don't reschedule the software TXQs. * Add a new function - ath_tx_restart_hw() - which restarts all currently configured hardware queues. This takes care of clearing the ATH_TXQ_PUTPENDING flag, reprograms the TXQ pointer, fixes up the axq_link pointer and finally tickles the TXQ enable bit. I don't quite like this solution - I'd prefer to have some local flag which is propagated down from ath_tx_processq() down to the completion callbacks, to ensure that nothing enqueues a frame to the hardware. In the ADDBA case, nothing should be going directly to the hardware - any software retried frame is pushed onto the head of the software TXQ and then retried when the TXQ is next scheduled. In the non-ADDBA case, frames aren't retried. The trouble is that there may be some callbacks invoked via net80211 which immediately tries scheduling another frame. Since the hardware is currently being reset, no new frame should be queued. But since ATH_LOCK is being held (and is recursive, sigh), it'll just be grabbed again and happily continue along its merry way. This way, frames are TX'ed but they won't hit the hardware queue until the reset path completes. Any TX'ing from other contexts will block on the ATH_LOCK. TODO: * Check that the node software TXQ's are being rescheduled correctly! I bet they're not. Note: In order to correctly handle ADDBA session TX, frames that are dropped due an interface reset must have a BAR TX'ed for the session. That still isn't being done. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-18T15:53:48.362557Z K 7 svn:log V 44 .. add the missing call to ath_txq_sched(). END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-10-18T16:37:28.015006Z K 7 svn:log V 596 Fix wakeup latency when sleeping with 'wait' If we handle an interrupt just before the 'wait' and the interrupt schedules some work, we need to skip the 'wait' call. The simple solution of calling sched_runnable() with interrupts disabled immediately before wait still leaves a window after the call and before 'wait' in which the same issue can occur. The solution implemented is to check the EPC in the interrupt handler, and if it is in a region before the 'wait' call, to fix up the EPC to skip the wait call. Reported/analysed by: adrian Fix suggested by: kib Reviewed by: jmallett, imp END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-18T17:37:18.718632Z K 7 svn:log V 213 Fix the way clang retrieves the major FreeBSD release number from the target triple, so that the __FreeBSD__ and __FreeBSD_cc_version builtin macros return the expected results. Spotted by: nalitoja at gmail.com END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-18T17:38:25.444109Z K 7 svn:log V 73 Update gcc's __FreeBSD__ and __FreeBSD_cc_version macros for FreeBSD 10. END