ƒ¯2220606 200 538 530 184 184 454 264 671 164 225 514 147 165 220 228 223 210 292 161 112 123 246 158 156 147 364 367 153 153 299 176 343 448 277 269 128 141 185 195 162 543 167 314 389 600 194 296 234 203 123 141 123 643 272 163 160 315 136 116 519 591 591 263 121 253 253 190 190 348 240 176 242 154 497 497 268 129 204 363 240 303 241 187 168 302 192 225 207 152 164 119 119 159 159 159 225 141 186 142 193 159 159 142 142 145 160 222 192 167 193 206 148 198 321 233 270 216 196 220 141 125 161 271 216 353 175 203 310 863 483 291 319 250 397 392 436 150 594 569 351 276 572 135 125 139 145 271 472 139 259 252 284 367 367 519 694 889 506 362 512 262 262 177 267 133 246 491 238 661 287 651 134 320 155 253 133 155 136 140 266 155 263 266 255 168 124 590 98 127 678 189 200 471 275 207 181 274 142 757 150 266 K 10 svn:author V 5 gavin K 8 svn:date V 27 2011-04-13T19:10:56.089775Z K 7 svn:log V 443 Add a new DDB command, "show rmans", which will show the address and brief details of each rman header, but not the contents of all rman structures in the system. This is especially useful on platforms where some rmans have many thousands of entries in rmans, making scrolling through the output of "show all rman" impractical. Individual rmans can then be viewed including their contents with "show rman 0xaddr" as usual. Reviewed by: jhb END K 10 svn:author V 4 zack K 8 svn:date V 27 2011-04-13T19:34:58.659580Z K 7 svn:log V 436 MFC: 220152 This patch fixes the Experimental NFS client to properly deal with 32 bit or 64 bit fileid's in NFSv2 and NFSv3. Without this fix, invalid casting (and sign extension) was creating problems for any fileid greater than 2^31. We discovered this because we have test clusters with more than 2 billion allocated files and 64-bit ino_t's (and friend structures). Reviewed by: rmacklem Approved by: zml (mentor) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-13T19:54:54.332880Z K 7 svn:log V 90 MFC r220512: Update recommendation for mergemaster. The -a and -i options are exclusive. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-13T19:55:58.962067Z K 7 svn:log V 90 MFC r220512: Update recommendation for mergemaster. The -a and -i options are exclusive. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-13T22:16:52.329903Z K 7 svn:log V 356 Fix the experimental NFSv4 client so that it recognizes server mount point crossings correctly. It was testing the wrong flag. Also, try harder to make sure that the fsid is different than the one assigned to the client mount point, by hashing the server's fsid (just to create a different value deterministically) when it is the same. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-13T22:37:28.548704Z K 7 svn:log V 166 Add VOP_PATHCONF() support to the experimental NFS client so that it can, along with other things, report whether or not NFS4 ACLs are supported. MFC after: 2 weeks END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-04-13T23:09:36.979850Z K 7 svn:log V 575 MFC: r220370, r209136, r209219 * Add the readline(3) API to libedit. The libedit versions of {readline,history}.h are in /usr/include/edit so as to not conflict with the GNU libreadline versions. To use the libedit readline(3) one should add "-I/usr/include/edit" to their Makefile (spelled "-I${DESTDIR}/${INCLUDEDIR}/edit" within the FreeBSD source tree). * Enable its use in the BSD licensed utilities that support readline(3). * histedit.h is moved into libedit's directory * Add basic filename completion code. * Allow simple quoting in filename completion. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T00:07:08.806417Z K 7 svn:log V 71 Add some tunable descriptions about x86 timers. Requested by: arundel END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-04-14T07:14:22.024438Z K 7 svn:log V 133 Fixed firmware revision decoding: - the major is 7-bit binary encoded - the minor is BCD encoded PR: kern/151586 MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-14T07:49:45.946916Z K 7 svn:log V 421 Refactor hard-reset implementation in mvs(4). Instead of spinning in a tight loop for up to 15 seconds, polling for device readiness while it spins up, return reset completion just after PHY reports "connect well" or 100ms connection timeout. If device was found, use callout for checking device readiness with 100ms period up to full 31 second timeout. This fixes system freeze for 5-10 seconds on drives hot plug-in. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-14T08:17:45.323045Z K 7 svn:log V 55 Properly log few more ATA commands used by the kernel. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-14T08:53:04.327586Z K 7 svn:log V 69 Remove vestiges of disklabel(5). Reviewed by: uqs MFC after: 5 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-14T09:11:50.612621Z K 7 svn:log V 127 Fix typo in write_cache tunable name and move TUNABLE_INT_FETCH() out of the SIM lock to fix WITNESS warning. Reported by: jh END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-14T09:47:09.865134Z K 7 svn:log V 136 The mbuf_frag_size always was and is file local and not queried from base user space tools via kvm. Mark it static. MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-14T10:40:57.802274Z K 7 svn:log V 128 Refactor udp_input(), moving calls to u_tun_func() into udp_append(). Obtained from: Wheel Systems Sp. z o.o. Reviewed by: bz@ END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-14T14:25:47.864294Z K 7 svn:log V 113 Remove stale M_ZOMBIE malloc type. This type is unused since embedding p_ru into struct proc. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-14T14:54:22.579164Z K 7 svn:log V 195 Revert r194662, since it breaks ng_ksocket(4) and may break other socket consumers with alternate sb_upcall. PR: kern/154676 Submitted by: Arnaud Lacombe MFC after: 7 days END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-14T15:25:27.605752Z K 7 svn:log V 69 MFC r210819: Add support for ATI Radeon HD 4250. On behalf of: olli END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-04-14T15:42:15.849784Z K 7 svn:log V 17 Add $FreeBSD$'s. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-04-14T15:43:21.111640Z K 7 svn:log V 28 MFC: 220624: add $FreeBSD$. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-14T15:44:44.628245Z K 7 svn:log V 145 Provide a (belated) UPDATING note related to the new release-building process so that fewer people will be caught unaware. Requested by: emaste END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T16:02:52.116528Z K 7 svn:log V 65 Consistently use C99 standard integers as the rest of this file. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T16:14:35.281934Z K 7 svn:log V 63 Prefer C99 standard integers to reduce diff from i386 version. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T16:19:41.145029Z K 7 svn:log V 54 Consistently use __volatile as the rest of this file. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-04-14T16:45:16.456737Z K 7 svn:log V 271 In r219639, SSSE3 instruction set support was backported to our gcc. Therefore, we also need to install the new tmmintrin.h header containing the related intrinsic functions, similar to xmmintrin.h, emmintrin.h, etc. Reported by: George Liaskos END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T16:53:32.084301Z K 7 svn:log V 273 Add a function rdtsc32() to read lower 32 bits from TSC and discard upper 32 bits. Some times compiler inserts unnecessary instructions to preserve unused upper 32 bits even when it is casted to a 32-bit value. It reduces such compiler mistakes where every cycle counts. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T17:08:23.803491Z K 7 svn:log V 60 Use newly added rdtsc32() for the timecounter_get_t method. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-14T17:19:33.852063Z K 7 svn:log V 56 Remove IWN_FLAG_HAS_5GHZ and IWN_PCI_BAR0, both unused. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-14T17:26:13.258127Z K 7 svn:log V 201 Reuse net80211 code: - IWN_TXOP_TO_US is equal to IEEE80211_TXOP_TO_US - use IEEE80211_DUR_TU - ieee80211_add_rates/ieee80211_add_xrates are public, use em - copied ieee80211_add_ssid it is not public END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-14T17:31:34.741106Z K 7 svn:log V 79 iwn_cleanup() is just a wrapper around iwn_detach(), call it directly instead. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-14T17:42:21.817865Z K 7 svn:log V 245 Instead of trying to figure out which rxon.flags to clear, restart from scratch. Remove htole16() calls, rxon.chan is an uint8_t, ieee80211_chan2ieee() does return an ic_ieee as an int, but I heavily doubt a htole16() will buy us anything here. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T17:50:26.098721Z K 7 svn:log V 354 Work around an emulator problem where virtual CPU advertises TSC is P-state invariant and APERF/MPERF MSRs exist but these MSRs never tick. When we calculate effective frequency from cpu_est_clockrate(), it caused panic of division-by-zero. Now we test whether these MSRs actually increase to avoid such foot-shooting. Reported by: dim Tested by: dim END K 10 svn:author V 8 andreast K 8 svn:date V 27 2011-04-14T18:14:43.602929Z K 7 svn:log V 179 Add stoppcbs[] arrays on powerpc(64) and have each CPU save its current context in the IPI_STOP handler. Similar as done on other architectures. Approved by: nwhitehorn (mentor) END K 10 svn:author V 8 andreast K 8 svn:date V 27 2011-04-14T18:26:50.723379Z K 7 svn:log V 171 The macro MOEA_PVO_CHECK is empty and not used. It is a left over from the NetBSD import. Remove the definition and all its occurrences. Approved by: nwhitehorn (mentor) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-14T18:37:27.166910Z K 7 svn:log V 34 Add manual page for rctl.conf(5). END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T19:11:45.579092Z K 7 svn:log V 48 Use newly added rdtsc32() for DELAY(9) as well. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2011-04-14T19:37:31.520654Z K 7 svn:log V 88 Adjust debugging string to match the actual function. Approved by: nwhitehorn (mentor) END K 10 svn:author V 2 np K 8 svn:date V 27 2011-04-14T20:06:23.396952Z K 7 svn:log V 103 There is no need to request a tx credit flush if such a request is already pending. MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-14T21:25:32.881612Z K 7 svn:log V 70 Make CAM report devices with ATA/SATA transport to devstat(9) as IDE. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-14T21:49:52.139934Z K 7 svn:log V 445 Modify the experimental NFSv4 server so that it handles crossing of server mount points properly. The functions nfsvno_fillattr() and nfsv4_fillattr() were modified to take the extra arguments that are the mount point, a flag to indicate that it is a file system root and the mounted on fileno. The mount point argument needs to be busy when nfsvno_fillattr() is called, since the vp argument is not locked. Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-14T22:06:11.258395Z K 7 svn:log V 72 getfh(2): Add xrefs for fhopen(2), open(2), stat(2). MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-14T22:17:39.613027Z K 7 svn:log V 220 Add event handlers for (ACPI) suspend/resume events. Suspend event handlers are invoked right before device drivers go into sleep state and resume event handlers are invoked right after all device drivers are waken up. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-14T23:46:15.482388Z K 7 svn:log V 291 Fix the experimental NFSv4 server so that it uses VOP_PATHCONF() to determine if a file system supports NFSv4 ACLs. Since VOP_PATHCONF() must be called with a locked vnode, the function is called before nfsvno_fillattr() and the result is passed in as an extra argument. MFC after: 2 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2011-04-15T03:09:27.370969Z K 7 svn:log V 508 Fix a couple of bad races that can occur when a cxgbe interface is taken down. The ingress queue lock was unused and has been removed as part of these changes. - An in-flight egress update from the SGE must be handled before the queue that requested it is destroyed. Wait for the update to arrive. - Interrupt handlers must stop processing rx events for a queue before the queue is destroyed. Events that have not yet been processed should be ignored once the queue disappears. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-15T07:07:29.015899Z K 7 svn:log V 101 Make ada(4) driver put ATA disks into sleep state on suspend. Submitted by: jkim (original version) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-15T10:33:20.319077Z K 7 svn:log V 203 MFC r220461: Remove setting of PCB_FULL_IRET at the places where we are going to call update_gdt_{f,g}sbase. The functions set the flag when td == curthread, and sysarch is always called with curthread. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2011-04-15T12:32:52.737063Z K 7 svn:log V 139 Remove an incorrect be16toh() that prevented geom_part_apm from working on little-endian machines. Reviewed by: marcel MFC after: 2 weeks END K 10 svn:author V 6 philip K 8 svn:date V 27 2011-04-15T13:37:43.499218Z K 7 svn:log V 107 Add basic support for the Marvell Orion TS-7800. Submitted by: Kristof Provost END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-15T15:14:58.401423Z K 7 svn:log V 28 sh: Add test for bin/56147. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-15T15:26:05.704265Z K 7 svn:log V 46 sh: Add test for obscure and ambiguous ${#?}. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-15T15:33:24.567055Z K 7 svn:log V 28 sh: Add test for bin/12137. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-15T16:40:31.836911Z K 7 svn:log V 550 Some changes around hot-plug and interface power-management: - use ATA_SE_EXCHANGED (SError.DIAG.X) bit to detect hot-plug events when power-management enabled and ATA_SE_PHY_CHANGED (SError.DIAG.N) can't be trusted; - on controllers supporting staggered spin-up (SS) put unused channels into Listen state instead of Off. It should still save some power, but allow plug-in events to be detected; - on controllers supporting cold presence detection (CPD), when power management enabled, use CPD events to detect hot-plug in addition to PHY events. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-15T16:44:04.995449Z K 7 svn:log V 178 Fix build on FreeBSD. This patch was submitted upstream: http://lists.acpica.org/pipermail/devel/2011-April/000253.html Similar fixes will show up in the next ACPICA release. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T16:50:37.133555Z K 7 svn:log V 66 Don't timeout when stopping DMA channels. Obtained from: OpenBSD END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T16:55:45.565919Z K 7 svn:log V 63 Only handle beacon misses while in RUN state and not scanning. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T16:59:56.966941Z K 7 svn:log V 217 Fixes for firmware handling: - there is a local variable for sc->fw_dma, use that instead - OpenBSD uses 5*hz to wait for firmware to be loaded - in case the firmware module contains invalid data, actually release it END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T17:10:52.018432Z K 7 svn:log V 39 Split out bluetooth coexistence setup. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-15T18:34:27.845654Z K 7 svn:log V 23 Merge ACPICA 20110413. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-15T19:46:25.383382Z K 7 svn:log V 423 MFC r220376: Allow strerror(0) and strerror_r(0, ...). Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T19:50:25.850374Z K 7 svn:log V 498 MFC 219717,220363: - Add more details to the 'show battery' command including more raw capacity values, charge cycle count, temperature, and more detailed status. - Add the ability to manage the state of write caching when the battery back-up is missing or dead. The current state of this field is reported in 'mfiutil cache ' and can be adjusted via 'mfiutil cache bad-bbu-write-cache '. This setting should generally be disabled to avoid data loss. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T19:50:38.061201Z K 7 svn:log V 498 MFC 219717,220363: - Add more details to the 'show battery' command including more raw capacity values, charge cycle count, temperature, and more detailed status. - Add the ability to manage the state of write caching when the battery back-up is missing or dead. The current state of this field is reported in 'mfiutil cache ' and can be adjusted via 'mfiutil cache bad-bbu-write-cache '. This setting should generally be disabled to avoid data loss. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T20:17:52.097267Z K 7 svn:log V 165 Split up watchdog and calibration callout. This allows us to use different timing on both and to remove some monitor mode specific hacks (which has no calibration). END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T20:19:18.817622Z K 7 svn:log V 24 remove debug left-overs END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:19:50.918718Z K 7 svn:log V 160 MFC 219865: Add pci_find_cap() as an alias for pci_find_extcap() to ease driver portability with 9+ where pci_find_extcap() has been renamed to pci_find_cap(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:20:11.399910Z K 7 svn:log V 160 MFC 219865: Add pci_find_cap() as an alias for pci_find_extcap() to ease driver portability with 9+ where pci_find_extcap() has been renamed to pci_find_cap(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:26:24.426712Z K 7 svn:log V 98 MFC 219276: Use ffs() to locate free bits in the inode bitmap rather than a loop with bit shifts. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:26:36.577012Z K 7 svn:log V 98 MFC 219276: Use ffs() to locate free bits in the inode bitmap rather than a loop with bit shifts. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:28:38.398277Z K 7 svn:log V 255 MFC 220126: - Enable an extra debugging bootverbose printf when probing ISA PNP cards listing each card as it is found on non-PC98 (PC98 already had this). - Increase the length of the DELAY() used before timing out while reading PNP resource data. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T20:31:02.195892Z K 7 svn:log V 142 Revert some of local calibration changes in favour of the OpenBSD implementation. This includes the fix required for the 6050 series devices. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:32:17.430589Z K 7 svn:log V 84 MFC 220451: Catch up to PCB_FULL_IRET becoming a pcb flag rather than a full field. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T20:35:15.444312Z K 7 svn:log V 144 The 6005 series devices need additional temperature offset calibration as well as the IWN_GP_DRIVER_CALIB_VER6 bit set. Obtained from: OpenBSD END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-15T20:40:49.026592Z K 7 svn:log V 57 fix the order of the prototypes from the previosu commit END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:42:14.930668Z K 7 svn:log V 404 MFC 220156: Clamp the initial advertised receive window when responding to a SYN/ACK to the maximum allowed window. Growing the window too large would cause an underflow in the calculations in tcp_output() to decide if a window update should be sent which would prevent the persist timer from being started if data was pending and the other end of the connection advertised an initial window size of 0. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-15T20:42:27.447928Z K 7 svn:log V 404 MFC 220156: Clamp the initial advertised receive window when responding to a SYN/ACK to the maximum allowed window. Growing the window too large would cause an underflow in the calculations in tcp_output() to decide if a window update should be sent which would prevent the persist timer from being started if data was pending and the other end of the connection advertised an initial window size of 0. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-15T21:33:45.482495Z K 7 svn:log V 174 Redo r220658. More extensive patch was committed by Intel: http://git.moblin.org/cgit.cgi/acpica/commit/?id=16c9bbd6a3d8da88664d769ceec2f1757964fc7a Obtained from: ACPICA END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-15T21:38:24.167532Z K 7 svn:log V 36 Re-merge with ACPICA vendor source. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-15T21:47:10.990169Z K 7 svn:log V 110 Purge _USE_BERKELEY_YACC definition from Makefile. This ugly hack is no long necessary for us since r220680. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-15T23:07:48.905590Z K 7 svn:log V 265 Change the experimental NFS client so that it creates nfsiod threads in the same manner as the regular NFS client after r214026 was committed. This resolves the lors fixed by r214026 and its predecessors for the regular client. Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 6 rstone K 8 svn:date V 27 2011-04-16T00:10:55.254786Z K 7 svn:log V 144 MFC r220453: Add tunables that mirror the functionality of sysctls machdep.panic_on_nmi and machdep.kdb_on_nmi. Approved by: emaste (mentor) END K 10 svn:author V 4 nyan K 8 svn:date V 27 2011-04-16T06:20:49.448161Z K 7 svn:log V 209 MFi386: revisions 220389 and 220392 - Mark getc() as inline, this has no effect on gcc but helps clang. - Move getc() body before xgetc() so gcc does not emit a warning about function having no body. END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-04-16T06:54:41.781412Z K 7 svn:log V 149 Move TUNABLE_INT_FETCH() out of the SIM lock to avoid sleeping while holding the lock. The fix is analogous to r220618 for ada(4). Reviewed by: mav END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T07:17:03.182561Z K 7 svn:log V 90 Obtain the channel number directly from the laster RXON command, also chan is an uint8_t. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T07:21:00.445235Z K 7 svn:log V 71 Pass errors that might happen during state transitions up to net80211. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T07:32:57.300169Z K 7 svn:log V 204 RSSI related syncs with the OpenBSD code: - read RSSI only for the active chains - cast RSSI/NF to int8_t before passing it up to radiotap - remove the htole64() for the timestamp Obtained from: OpenBSD END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-04-16T08:38:11.553371Z K 7 svn:log V 100 Move a comment to the right place. The rearrange done in r208928 left the comment to a wrong place. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T08:57:17.586715Z K 7 svn:log V 127 Remove the flags argument of iwn_dma_contig_alloc(), it is always set as BUS_DMA_NOWAIT. While here also set BUS_DMA_COHERENT. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T08:59:21.795474Z K 7 svn:log V 109 OpenBSD uses IWN_RBUF_SIZE not MJUMPAGESIZE for the RX path, also replace caddr_t with void * to be in sync. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T09:34:40.766821Z K 7 svn:log V 55 In case a new mbuf can't be loaded, reuse the old one. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T09:39:08.139861Z K 7 svn:log V 67 scratch_paddr has the same address pre-assigned, use that instead. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T09:56:27.771495Z K 7 svn:log V 24 MFC r219613: Fix typo. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T09:57:17.337233Z K 7 svn:log V 24 MFC r219613: Fix typo. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T10:18:07.854625Z K 7 svn:log V 64 MFC r219568: Fix warnings and style(9) issues. Set WARNS to 6. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T10:20:45.456119Z K 7 svn:log V 64 MFC r219527: Fix warnings and style(9) issues. Set WARNS to 6. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T10:22:06.556037Z K 7 svn:log V 64 MFC r219527: Fix warnings and style(9) issues. Set WARNS to 6. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T10:32:46.728256Z K 7 svn:log V 127 Rewrite DMA segment handling to be more inline with the OpenBSD code. Also change the m_len == 0 hack to have less code churn. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T10:35:02.422624Z K 7 svn:log V 44 Make sure to destroy all DMA tags and maps. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T10:38:27.466970Z K 7 svn:log V 89 Unify TX/RX ring allocation, finish the descriptior DMA stuff before starting with data. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T10:42:22.982952Z K 7 svn:log V 47 MFC r219521: Fix warnings and set WARNS to 6. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T10:52:11.391119Z K 7 svn:log V 96 Add missing bus_dmamap_sync calls as well as remove two duplicate ones. Obtained from: OpenBSD END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T10:57:11.532290Z K 7 svn:log V 64 MFC r219511: Fix warnings and style(9) issues. Set WARNS to 6. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T10:58:25.380122Z K 7 svn:log V 64 MFC r219511: Fix warnings and style(9) issues. Set WARNS to 6. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T11:01:35.998885Z K 7 svn:log V 47 MFC r219522: Fix warnings and set WARNS to 6. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T11:04:17.384014Z K 7 svn:log V 47 MFC r219522: Fix warnings and set WARNS to 6. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T11:06:09.817039Z K 7 svn:log V 50 MFC r219524: Fix the build: we have snprintf(3). END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T11:11:22.614358Z K 7 svn:log V 63 Prevent double-free, also use the same error codes as OpenBSD. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T11:14:42.017065Z K 7 svn:log V 124 Replace RX/TX ring allocation error messages with something more sane and remove those where the caller already prints one. END K 10 svn:author V 6 brucec K 8 svn:date V 27 2011-04-16T11:15:57.863720Z K 7 svn:log V 97 Remove missing include directory in preparation for adding -Wmissing-include-dirs to CWARNFLAGS. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-16T11:59:37.023452Z K 7 svn:log V 72 Remove some duplicate code from the AR9285 TX power configuration path. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-16T12:41:22.370337Z K 7 svn:log V 100 MFC r220280: Provide the structures and ioctl number definition for handling PCIOCGETCONF compat32. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T12:42:54.343687Z K 7 svn:log V 108 Instead of hardcoding TX rates and using that to fill the retry table use the neogotiated ni_rates instead. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-16T12:43:04.492217Z K 7 svn:log V 56 MFC r220281: Implement compat32 shims for PCIOCGETCONF. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-16T12:45:09.104165Z K 7 svn:log V 105 MFC r220506: Implement a workaround for fdescfs to not panic when ncookies is not NULL. PR: kern/156177 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-16T12:46:46.940206Z K 7 svn:log V 225 Disable classic-style fast diversity on the AR5416 and later. Antenna diversity on the >= AR5416 is implemented differently than the AR5212 and previous chips. So for now, and not to confuse things, just disable it for now. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T13:12:12.546517Z K 7 svn:log V 135 Remove if_ierrors which do not necessarily indicate a RX error, also do account send packets. While here use the IWN_TX_FAIL constant. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T13:25:19.913445Z K 7 svn:log V 172 Fix WME/QoS handling: - move the TX queue selection into iwn_tx_data/iwn_tx_data_raw - extract traffic identifier and use it - do not expect ACKs for frames marked as such END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T13:40:32.018023Z K 7 svn:log V 118 Rename some stuff in favour of the OpenBSD names: - prefer EDCA over WME - qid for a TXQ ID - reg for register values END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-16T13:47:17.835219Z K 7 svn:log V 100 Don't do Kite antenna switch selection this way (for now); antenna diversity is done elsewhere now. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:36:43.886878Z K 7 svn:log V 122 Shuffle code around a bit. Mostly to group functional connected things, others to get the same order as the OpenBSD code. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:38:01.909899Z K 7 svn:log V 44 Sync debug and error messages with OpenBSD. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:38:57.471701Z K 7 svn:log V 28 Sync comments with OpenBSD. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:40:42.501885Z K 7 svn:log V 64 Just a whitespace sync, some more style(9) conform then others. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:49:29.218138Z K 7 svn:log V 173 Read RX/TX chainmasks directly of the EEPROM. Some chips are known to have the wrong/broken information stored, keep the hardcoded values for those. Obtained from: OpenBSD END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:51:46.538856Z K 7 svn:log V 118 Bring over the HAL/OPS changes, instead of two const structs it is now slightly more dynamic. Obtained from: OpenBSD END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-16T14:56:13.510007Z K 7 svn:log V 255 Add some new features: - 6000 series devices need enhanced sensitivity calibration. - 6000 series devices need a different setting for the shadow reg. - set the IWN_FLAG_HAS_11N bit if the EEPROM says the device has 11n support. Obtained from: OpenBSD END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2011-04-16T16:20:51.905864Z K 7 svn:log V 79 Remove malloc(9) return value checks when M_WAITOK is used. MFC after: 2 Week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-16T22:15:59.167807Z K 7 svn:log V 105 Add mutex locking on the nfs node in ncl_inactive() for the experimental NFS client. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-16T23:20:21.939257Z K 7 svn:log V 212 Add a lktype flags argument to nfscl_nget() and ncl_nget() in the experimental NFS client so that its nfs_lookup() function can use cn_lkflags in a manner analagous to the regular NFS client. MFC after: 2 weeks END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-16T23:30:53.744814Z K 7 svn:log V 771 MFC r218757: Mfp4 CH=177274,177280,177284-177285,177297,177324-177325 VNET socket push back: try to minimize the number of places where we have to switch vnets and narrow down the time we stay switched. Add assertions to the socket code to catch possibly unset vnets as seen in r204147. While this reduces the number of vnet recursion in some places like NFS, POSIX local sockets and some netgraph, .. recursions are impossible to fix. The current expectations are documented at the beginning of uipc_socket.c along with the other information there. Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH Reviewed by: jhb Tested by: zec Tested by: Mikolaj Golub (to.my.trociny gmail.com) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-16T23:38:35.964685Z K 7 svn:log V 391 MFC r220556: If building (custom) FreeBSD images people tend to patch param.h. In case this happens just before the build is started (within the same second) CHECK_TIME actually triggers thinking param.h is in the future (see f_Xtime, c_Xtime logi in find(1) sources for the details in !F_EXACTTIME case). Using the -mtime -0s (seconds, rather than no unit) avoids this 1s race. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-17T02:44:51.860932Z K 7 svn:log V 193 Fix readdirplus in the experimental NFS client so that it skips over ".." to avoid a LOR race with nfs_lookup(). This fix is analagous to r138256 in the regular NFS client. MFC after: 2 weeks END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2011-04-17T06:05:37.915930Z K 7 svn:log V 222 If we can retrieve interface address sleep for one second and try again. This can happen during start-up, when natd starts before dhclient has a chance to receive IP address from the upstream provider. MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-17T11:35:22.713573Z K 7 svn:log V 157 MFC r218327: Clear the padding when returning context to the usermode, for MI ucontext_t and x86 MD parts. Tested-by: Oliver Pinter END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-17T13:46:13.871520Z K 7 svn:log V 301 Mark the PHY as inactive before the chip is reset. It's also marked inactive by the initvals, and enabled after the baseband/PLL has been configured, but before the RF registers have been programmed. The origin and reason for this particular change is currently unknown. Obtained from: Linux ath9k END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-17T14:10:12.547954Z K 7 svn:log V 294 Change some defaults in the experimental NFS client to be the same as the regular NFS client for NFSv3. The main one is making use of a reserved port# the default. Also, set the retry limit for TCP the same and fix the code so that it doesn't disable readdirplus for NFSv4. MFC after: 2 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-17T14:38:11.647424Z K 7 svn:log V 340 ktrace: Log the code for all signals (PSIG events). The code provides information on how the signal was generated. Formerly, the code was only logged for traps, much like only signal handlers for traps received a meaningful si_code before FreeBSD 7.0. In rare cases, no information is available and 0 is still logged. MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-04-17T15:09:04.328452Z K 7 svn:log V 58 Cleanup some left-over empty directories in contrib/llvm. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-17T16:04:39.314833Z K 7 svn:log V 498 Allow using CMSG_NXTHDR with -Wcast-align. If various checks are omitted, the CMSG_NXTHDR macro expands to (struct cmsghdr *)((char *)(cmsg) + \ _ALIGN(((struct cmsghdr *)(cmsg))->cmsg_len)) Although there is no alignment problem (assuming cmsg is properly aligned and _ALIGN is correct), this violates -Wcast-align on strict-alignment architectures. Therefore an intermediate cast to void * is appropriate here. There is no workaround other than not using -Wcast-align. MFC after: 2 weeks END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-17T16:07:08.515420Z K 7 svn:log V 477 Fix IPv6 ND. After r219562 we in nd6_ns_input() were erroneously always passing the cached proxydl reference (sockaddr_dl initialized or not) to nd6_na_output(). nd6_na_output() will thus assume a proxy NA. Revert to conditionally passing either &proxydl or NULL if no proxy case desired. Tested by: ipv6gw and ref9-i386 Reported by: Pete French (petefrench ingresso.co.uk on stable) Reported by: bz, simon on Y! cluster Reported by: kib PR: kern/151908 MFC after: 3 days END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-17T16:18:45.572296Z K 7 svn:log V 254 Remove hast_proto_recv(). It was used only in one place, where hast_proto_recv_hdr() may be used. This also fixes the issue (introduced by r220523) with hastctl, which crashed on assert in hast_proto_recv_data(). Suggested and approved by: pjd (mentor) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-17T16:31:21.435283Z K 7 svn:log V 179 Fix error where error variable was assigned result of comparison, instead of function return value. Submitted by: Przemyslaw Frasunek MFC after: 4 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-17T16:35:16.553406Z K 7 svn:log V 480 Make in_proto.c dependent on either inet or inet6. While it does not provide any functionality for IPv6, it provides the sysctl nodes for net.inet.* that a lot of functionality shared between IPv4 and IPv6 depends on. We cannot change these anymore without breaking a lot of management and tuning. In case of IPv6 only, we compile out everything but the sysctl node declarations. Reviewed by: gnn Sponsored by: The FreeBSD Foundation Sponsored by: iXsystems MFC After: 5 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-17T17:00:55.716994Z K 7 svn:log V 35 Update dialog to 20110302 version. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-17T17:01:44.533865Z K 7 svn:log V 25 Tag dialog 1.1-20110302. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-17T17:28:17.560620Z K 7 svn:log V 39 Update dialog to version 1.1-20110302. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-17T17:30:29.070991Z K 7 svn:log V 45 Make dialog's --prgbox option actually work. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-17T18:56:17.457459Z K 7 svn:log V 173 Fix up some of the sysctls for the experimental NFS client so that they use the same names as the regular client. Also add string descriptions for them. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-17T20:01:32.986469Z K 7 svn:log V 374 Get rid of the "nfscl: consider increasing kern.ipc.maxsockbuf" message that was generated when doing experimental NFS client mounts. I put that message in because the krpc would hang with the default size for mounts that used large rsize/wsize values. Since the bug that caused these hangs was fixed by r213756, I think the message is no longer needed. MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-17T20:42:40.438149Z K 7 svn:log V 39 Update to reflect net install changes. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-04-17T20:44:02.234671Z K 7 svn:log V 166 For clang, make -mno-mmx imply -mno-3dnow. This is what gcc does. Submitted by: arundel Obtained from: http://llvm.org/viewvc/llvm-project?view=rev&revision=129665 END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-04-17T21:03:23.444438Z K 7 svn:log V 159 Remove libobjc and other Objective-C related components, as these are extremely outdated, and not used by anything in the base system. Silence from: current@ END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-17T21:11:55.538693Z K 7 svn:log V 188 kdump: Show code for signals where the default action was taken. This information is available as of kernel r220740. Trace files from older kernels will always have 0. MFC after: 1 week END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-17T21:52:57.729642Z K 7 svn:log V 272 MFC of r220448 When specifying the -t option (send tag in front of message), this tag should also be forwarded to the remote logging host, not only when the logging is done locally. PR: bin/154324 Submitted by: Callum Gibson END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-17T21:57:08.411539Z K 7 svn:log V 272 MFC of r220448 When specifying the -t option (send tag in front of message), this tag should also be forwarded to the remote logging host, not only when the logging is done locally. PR: bin/154324 Submitted by: Callum Gibson END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-04-17T22:26:07.839566Z K 7 svn:log V 423 MFC r220376: Allow strerror(0) and strerror_r(0, ...). Of course, strerror_r() may still fail with ERANGE. Although the POSIX specification said this could fail with EINVAL and doing this likely indicates invalid use of errno, most other implementations permitted it, various POSIX testsuites require it to work (matching the older sys_errlist array) and apparently some applications depend on it. PR: standards/151316 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-17T22:31:36.562675Z K 7 svn:log V 599 The change in r206686 to allow the stop argument to work for a service that is running even though not _enable'd had an annoying side effect. If the service was already started at boot time by another means when the related script came around again in rcorder it would start again, regardless of _enable, because there was a valid pid. [1] So, split the test into 2 parts, one for (!rcvar && !stop), and one for (stop && !valid_pid). This preserves the behavior from r206686 while preventing the undesired side effect. PR: conf/156427 [1] Submitted by: Eugene Grosbein [1] END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-17T23:04:03.901460Z K 7 svn:log V 791 Add checks for MNTK_UNMOUNTF at the beginning of three functions, so that threads don't get stuck in them during a forced dismount. nfs_sync/VFS_SYNC() needs this, since it is called by dounmount() before VFS_UNMOUNT(). The nfscl_nget() case makes sure that a thread doing an VOP_OPEN() or VOP_ADVLOCK() call doesn't get blocked before attempting the RPC. Attempting RPCs don't block, since they all fail once a forced dismount is in progress. The third one at the beginning of nfsrpc_close() is done so threads don't get blocked while doing VOP_INACTIVE() as the vnodes are cleared out. With these three changes plus a change to the umount(1) command so that it doesn't do "sync()" for the forced case seem to make forced dismounts work for the experimental NFS client. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-17T23:56:57.385411Z K 7 svn:log V 408 Change the mutex locking for several locations in the experimental NFS client's vnode op functions to make them compatible with the regular NFS client. I'll admit I'm not sure that the mutex locks around the assignments are needed, but the regular client has them, so I added them. Also, add handling of the case of partial attributes in setattr to be compatible with the regular client. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-18T00:41:23.419096Z K 7 svn:log V 264 Add vput() calls in two places in the experimental NFS client that would be needed if, in the future, nfscl_loadattrcache() were to return an error. Currently nfscl_loadattrcache() never returns an error, so these cases never currently happen. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-18T01:02:43.705366Z K 7 svn:log V 414 Add a vput() to nfs_lookitup() in the experimental NFS client for a case that will probably never happen. It can only happen if a server were to successfully lookup a file, but not return attributes for that file. Although technically allowed by the NFSv3 RFC, I doubt any server would ever do this. However, if it did, the client would have not vput()'d the new vnode when it needed to do so. MFC after: 2 weeks END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-18T08:49:25.229676Z K 7 svn:log V 165 MFC r220319: Do not increment num_args if strsep(3) returned an empty field. That fixes devstat_buildmatch(3) crashes with certain strings. Reported by: arundel END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-18T08:53:22.994173Z K 7 svn:log V 165 MFC r220319: Do not increment num_args if strsep(3) returned an empty field. That fixes devstat_buildmatch(3) crashes with certain strings. Reported by: arundel END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-04-18T09:10:27.399875Z K 7 svn:log V 86 Use M_WAITOK flag instead M_WAIT for malloc. Suggested by: glebius MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T09:12:27.938752Z K 7 svn:log V 170 Node constructor methods are supposed to be called in syscall context always. Convert nodes to consistently use M_WAITOK flag for memory allocation. Reviewed by: julian END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T09:14:23.987858Z K 7 svn:log V 37 ng_netflow_cache_init() can be void. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-04-18T10:25:54.278576Z K 7 svn:log V 153 After removing libobjc and other Objective-C components in r220755, belatedly bump __FreeBSD_version, and add a note to UPDATING. Reminded by: rdivacky END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T11:25:13.471145Z K 7 svn:log V 398 Rework change made at r203146. Instead of reporting all wire errors as SCSI status errors to CAM (that was wrong, as it too often turned retriable wire errors into non-retriable REQUEST SENSE errors), do it only for STALL errors on control pipe of the CBI devices. STALL on control pipe is just a one of the ways to report error for CBI devices. PR: usb/150401, usb/154593. Reviewed by: hselasky END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-18T12:15:43.851335Z K 7 svn:log V 142 Add global TX timeout handling. The global TX timeout counter increments whenever a frame is ready to be transmitted and the medium is busy. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-18T12:18:27.658647Z K 7 svn:log V 569 MFC r220743: Fix IPv6 ND. After r219562 we in nd6_ns_input() were erroneously always passing the cached proxydl reference (sockaddr_dl initialized or not) to nd6_na_output(). nd6_na_output() will thus assume a proxy NA. Revert to conditionally passing either &proxydl or NULL if no proxy case desired. Tested by: ipv6gw and ref9-i386 Tested by: Pete French (petefrench ingresso.co.uk on stable) Reported by: Pete French (petefrench ingresso.co.uk on stable) Reported by: bz, simon on Y! cluster Reported by: kib PR: kern/151908 X-Early-MFC: yes END K 10 svn:author V 6 philip K 8 svn:date V 27 2011-04-18T12:27:57.891587Z K 7 svn:log V 191 Delete mistakenly added sys/files.ts7800 Add mistakenly forgotten sys/arm/conf/TS7800 Not sure how this happened. Apologies for the repo-churn. Submitted by: glebius Pointy hat to: philip END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-18T12:32:06.895117Z K 7 svn:log V 559 MFC r220743: Fix IPv6 ND. After r219562 we in nd6_ns_input() were erroneously always passing the cached proxydl reference (sockaddr_dl initialized or not) to nd6_na_output(). nd6_na_output() will thus assume a proxy NA. Revert to conditionally passing either &proxydl or NULL if no proxy case desired. Tested by: ipv6gw and ref9-i386 Tested by: Pete French (petefrench ingresso.co.uk) Reported by: Pete French (petefrench ingresso.co.uk on stable) Reported by: bz, simon on Y! cluster Reported by: kib PR: kern/151908 X-Early-MFC: yes END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-18T13:20:54.520568Z K 7 svn:log V 34 Mention the memstick target here. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T13:34:31.813021Z K 7 svn:log V 227 - Tune different wait loops to cut some more milliseconds from reset time. - Do not call ahci_start() before device signature received. It is required by the specification and caused non-fatal reset timeouts on AMD chipsets. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T13:59:56.314652Z K 7 svn:log V 63 Remove some used variables. Found with: Clang Static Analyzer END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-18T14:03:05.918518Z K 7 svn:log V 157 Rework the Global TX timeout handling to look more like ath9k. It correctly now sets the AR_IMR BCNMISC register, along with the GTT register in AR_IMR_S2. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-18T14:03:37.113600Z K 7 svn:log V 38 Bump pad, I'm adding more statistics. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T14:05:26.678228Z K 7 svn:log V 59 Further cleanup of node creation path from M_NOWAIT usage. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-18T14:06:18.658935Z K 7 svn:log V 41 Add TX carrier sense timeout statistics. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T14:07:01.369066Z K 7 svn:log V 44 Finish last change. Pointy hat to: glebius END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-18T14:14:54.663204Z K 7 svn:log V 170 For now, only enable GTT. CST is firing very frequently during local tests; I'll figure out what's going on before re-enabling this as it does add to the interrupt load. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T14:15:52.179255Z K 7 svn:log V 63 Remove some used variables. Found with: Clang Static Analyzer END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T14:34:10.321638Z K 7 svn:log V 170 Remove always false "< 0" check for unsgined int variable. This check is also duplicate, as the value was already checked for 0 before decrementing. Reported by: rpaulo END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T15:30:25.261920Z K 7 svn:log V 169 It is already seven years since mbuf allocator uses same M_WAITOK/M_NOWAIT flags as malloc(9). Update manual page. Submitted by: Vadim Goncharov END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-18T15:55:02.093677Z K 7 svn:log V 161 MFC: r219430 Remove custom interrupt dispatcher. This is a pointless micro-optimization and it may cause problems if SS and SP are modified by real-mode code. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T16:00:46.210842Z K 7 svn:log V 76 Handle ready timeout during polled operation same as done in mvs(4) before. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-18T16:15:59.831861Z K 7 svn:log V 32 Reduce geom_raid log verbosity. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-04-18T16:32:22.482035Z K 7 svn:log V 497 Add the posix_fallocate(2) syscall. The default implementation in vop_stdallocate() is filesystem agnostic and will run as slow as a read/write loop in userspace; however, it serves to correctly implement the functionality for filesystems that do not implement a VOP_ALLOCATE. Note that __FreeBSD_version was already bumped today to 900036 for any ports which would like to use this function. Also reserve space in the syscall table for posix_fadvise(2). Reviewed by: -arch (previous version) END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-04-18T16:32:47.760282Z K 7 svn:log V 7 Regen. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-04-18T16:40:47.489101Z K 7 svn:log V 35 Fix a copy/paste whitespace error. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-18T17:43:16.595725Z K 7 svn:log V 585 When checking to see if a window update should be sent to the remote peer, don't force a window update if the window would not actually grow due to window scaling. Specifically, if the window scaling factor is larger than 2 * MSS, then after the local reader has drained 2 * MSS bytes from the socket, a window update can end up advertising the same window. If this happens, the supposed window update actually ends up being a duplicate ACK. This can result in an excessive number of duplicate ACKs when using a higher maximum socket buffer size. Reviewed by: bz MFC after: 1 month END K 10 svn:author V 2 np K 8 svn:date V 27 2011-04-18T18:18:07.492474Z K 7 svn:log V 98 MFC r220643: There is no need to request a tx credit flush if such a request is already pending. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T18:22:10.744276Z K 7 svn:log V 103 Pullup up to TCP header length before matching against 'tcpopts'. PR: kern/156180 Reviewed by: luigi END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-18T18:55:27.625141Z K 7 svn:log V 378 MFC 220430,220431,220452,220460: If a system call does not request a full interrupt return, use a fast path via the sysretq instruction to return from the system call. This resolves most of the performance regression in system call microbenchmarks between 7 and 8 on amd64. While here, trim an instruction (and memory access) from the doreti path and fix a typo in a comment. END K 10 svn:author V 3 mdf K 8 svn:date V 27 2011-04-18T19:02:41.777061Z K 7 svn:log V 182 Fix a few acpi sysctls that want "IK" formatting to specify CTLTYPE_INT. This got broken after r217586. Pointy hat: to me Tested by: David Wolfskill < davit AT catwhisker DOT org > END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-18T19:20:47.271087Z K 7 svn:log V 112 Document problems with -d/-w and the fact that -X is the default. Suggested by: arundel@ Reviewed by: arundel@ END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T20:07:08.598635Z K 7 svn:log V 85 LibAliasInit() should allocate memory with M_WAITOK flag. Modify it and its callers. END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-04-18T20:28:07.992880Z K 7 svn:log V 182 Changed "conscontrol unset" to accept an existing virtual console device as an argument. Unsetting virtual console using /dev/console seems to have never worked. MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T21:18:22.478940Z K 7 svn:log V 46 Whitespace fixes. Checked with: md5, diff -w END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-18T21:24:42.555546Z K 7 svn:log V 664 Make pmap_invalidate_cache_range() available for consumption on amd64. Add pmap_invalidate_cache_pages() method on x86. It flushes the CPU cache for the set of pages, which are not neccessary mapped. Since its supposed use is to prepare the move of the pages ownership to a device that does not snoop all CPU accesses to the main memory (read GPU in GMCH), do not rely on CPU self-snoop feature. amd64 implementation takes advantage of the direct map. On i386, extract the helper pmap_flush_page() from pmap_page_set_memattr(), and use it to make a temporary mapping of the flushed page. Reviewed by: alc Sponsored by: The FreeBSD Foundation MFC after: 3 weeks END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-04-18T22:09:03.748630Z K 7 svn:log V 54 More whitespace fixes. Checked with: md5, diff -x -w END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-18T23:12:41.863492Z K 7 svn:log V 172 Do not assume PM timer GAS type is I/O or memory. It may be an unsupported type, i. e., a broken table. Also, do not hardcode ACPI timer frequency in device description. END