i226859 141 144 294 135 253 378 246 251 702 646 175 213 120 265 236 731 99 113 352 512 811 339 331 310 224 207 995 306 116 224 362 248 292 133 380 241 212 183 372 202 404 98 164 201 183 163 287 163 395 271 141 170 189 181 181 200 200 181 181 250 227 227 935 337 337 307 307 255 578 292 713 198 724 139 99 1034 214 191 191 220 144 208 618 204 135 517 478 495 456 2482 166 201 130 372 344 207 143 430 654 179 121 133 185 307 136 183 161 226 194 306 141 242 220 205 228 145 309 113 307 307 307 307 516 347 99 151 277 859 257 245 272 404 290 250 382 268 178 1371 155 155 523 160 K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-27T20:32:57.237847Z K 7 svn:log V 52 Implement 'async' mode for HAST. MFC after: 3 days END K 10 svn:author V 5 gavin K 8 svn:date V 27 2011-10-27T20:35:21.149751Z K 7 svn:log V 199 Update the example rules in devfs.conf to reflect the changes since ATA_CAM. While here, add another example rule, as many applications these days expect to find /dev/dvd instead. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-10-27T20:36:35.356699Z K 7 svn:log V 43 Remove redundant space. MFC after: 3 days END K 10 svn:author V 5 gavin K 8 svn:date V 27 2011-10-27T20:39:20.634528Z K 7 svn:log V 158 Remove example for linking /dev/vga to /dev/ttyv0, this hasn't been required since X version 4.3.0. PR: conf/161847 Submitted by: eadler MFC after: 2 weeks END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-27T20:44:28.407724Z K 7 svn:log V 283 Fix svnversion for svn 1.7.x by not looking for .svn in ${SYSDIR} (since it no longer exists). Instead, run svnversion if we can find the binary and test that the output looks like a version string. Reviewed by: discussion on -current@ Tested by: rodrigc for non-svn case (thanks!) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-27T20:54:53.870720Z K 7 svn:log V 149 Rename BGE_FW_DRV_ALIVE/BGE_FW_PAUSE to BGE_FW_CMD_DRV_ALIVE/BGE_FW_CMD_PAUSE. Also add more firmware commands(not used yet). No functional changes. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-27T21:25:41.776423Z K 7 svn:log V 154 Increase default scrub threshold from 30 days to 5 weeks. Using whole weeks makes it easier to predicate when the scrub would happen. MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-27T21:27:37.268342Z K 7 svn:log V 605 Rename hard-coded value 1 << 14 with BGE_RX_CPU_DRV_EVENT. This bit(SW event 7 in publicly available data sheet) is used to make RX CPU handle a firmware command and the bit is automatically cleared after RX CPU completed the command. Generally firmware command takes the following steps. 1. Write BGE_SRAM_FW_CMD_MB with a command. 2. Write BGE_SRAM_FW_CMD_LEN_MB with the length of the command in bytes. 3. Write BGE_SRAM_FW_CMD_DATA_MB with actual command data. 4. Generate BGE_RX_CPU_EVENT and let firmware handle the command. 5. Wait for the ACK of the firmware command. No functional changes. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-27T22:10:52.186742Z K 7 svn:log V 549 Define BGE_FW_HB_TIMEOUT_SEC and remove one more magic value. bge(4) sends BGE_FW_CMD_DRV_ALIVE command to firmware every 2 seconds. BGE_FW_CMD_DRV_ALIVE command requires 4 bytes data. This data contains timeout value in seconds until the next BGE_FW_CMD_DRV_ALIVE command. Broadcom recommends driver set the value 3 times longer than the interval that it sends BGE_FW_CMD_DRV_ALIVE. Currently bge(4) uses 3 seconds so probably we have to increase it in future and use different ALIVE command(e.g. BGE_FW_CMD_DRV_ALIVE3). No functional changes. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-10-27T22:37:59.638693Z K 7 svn:log V 80 Send out control chunks which have no specific destination. MFC after: 3 days. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-10-27T22:38:48.461535Z K 7 svn:log V 117 When add a new remote address using sctp_add_remote_addr(), return the correct net if requested. MFC after: 3 days. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-28T00:40:19.261054Z K 7 svn:log V 24 Recognize BCM5720C PHY. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-28T01:04:40.880583Z K 7 svn:log V 168 Add initial BCM5720 support. Many thanks to Broadcom for continuing support of FreeBSD. Submitted by: Geans Pin at Broadcom (initial version) H/W donated by: Broadcom END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-10-28T01:10:59.320570Z K 7 svn:log V 139 Disable updating InputDiscards counter for BCM5717, BCM5718, BCM5719 A0 and BCM5720 A0 and add comment why driver does not try to read it. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-28T01:56:36.536089Z K 7 svn:log V 634 Use an UMA zone for the radix node. This avoids the problem to check for the kernel_map/kmem_map recursion because it uses direct mapping provided by amd64 to avoid object and map search and recursion. Probabilly all the others architectures using UMA_MD_SMALL_ALLOC are also fixed by this, but other remains, where the most notable case is i386. For it a solution has still to be determined. A way to do this would be to have a reserved map just for radix node and mark all accesses to its lock to be witness safe, but that would still be unoptimal due to the large amount of virtual address space needed to cater the whole tree. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-28T02:54:07.918802Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-28T03:07:23.004453Z K 7 svn:log V 17 Fix compilation. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-10-28T03:42:41.688760Z K 7 svn:log V 258 - Use a single uintptr_t for the root of the radix node that encodes the height and a pointer so that the update to the root is atomic. This permits safe lookups in parallel with tree expansion. Shrinking the space requirements is a small bonus. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-28T03:58:33.203233Z K 7 svn:log V 416 MFC 226713 Exclude host routes when checking for prefix coverage on multiple interfaces. A host route has a NULL mask so check for that condition. I have also been told by developers who customize the packet output path with direct manipulation of the route entry (or the outgoing interface to be specific). This patch checks for the route mask explicitly to make sure custom code will not panic. PR: kern/161805 END K 10 svn:author V 6 qingli K 8 svn:date V 27 2011-10-28T04:04:21.774577Z K 7 svn:log V 715 MFC 226451 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 END K 10 svn:author V 3 rea K 8 svn:date V 27 2011-10-28T06:03:38.615198Z K 7 svn:log V 246 Fix handling of rc_force in /etc/rc.d/dhclient Variable 'rc_force' is accessible only at the time of rc_run_command, so it can't be examined from the script's main code. Spotted by: hrs Reviewed by: hrs, des Approved by: des MFC after: 2 weeks END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-10-28T11:45:24.972621Z K 7 svn:log V 239 Our geom withering function could take some time before geom with its providers and consumers will be destroyed. Before take some actions with a geom, check that it is not destroyed at the moment. Tested by: nwhitehorn MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-10-28T12:47:37.427470Z K 7 svn:log V 213 Add the XSI option -b to show date of the last reboot. That required to increase the LINE field to fit the output of -b. While here, change the row() function to take a const argument. In collaboration with: ed END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-10-28T15:22:51.913006Z K 7 svn:log V 127 Fix arguments list for proc:::signal-discard DTrace probe. Reported by: Anton Yuzhaninov MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-28T15:38:11.042616Z K 7 svn:log V 111 Now that the AR9160 STA RX filter bug has been identified and worked around, this routine is no longer needed. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-28T15:44:09.634798Z K 7 svn:log V 899 When punting frames to the RX tap, free the mbufs since we've tampered with their length. Without this, an error frame mbuf would: * have its size adjusted; * thrown at the radiotap code; * then since it's never consumed, the rxbuf/mbuf is then re-added to the RX descriptor list with the small size; * .. and the hardware ends up (sometimes) only DMA'ing part of a frame into the small buffer, chaining RX frames together (setting the more flag). I discovered this particular issue when doing some promiscuous radiotap testing; I found that I'd occasionally get rs_more set in RX descriptors w/ the first frame length being very small (sub-100 bytes.) The driver handles 2-descriptor RX frames (but not more), so this still worked; it was just odd. This is suboptimal and may benefit from being replaced with caching the m_pkthdr_len and m_len fields, then restoring them after completion. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-28T15:47:14.457993Z K 7 svn:log V 210 Include the tid when printing out crypto replay errors. I found this useful when trying to debug the AR9160 STA RX filter issue - I'd get crypto reply errors but it wasn't entirely clear which TID it was for. END K 10 svn:author V 3 lev K 8 svn:date V 27 2011-10-28T17:38:27.309136Z K 7 svn:log V 24 Merge r226885 from head END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-28T17:53:34.988355Z K 7 svn:log V 127 Don't expose a constant array into global namespace. Reported by: Ruslan Yakovlev via yongari MFC after: 3 days END K 10 svn:author V 3 rmh K 8 svn:date V 27 2011-10-28T20:00:30.642940Z K 7 svn:log V 269 Add a few improvements to utf-8 -> cp436 console map (mostly with Catalan characters in mind, but it probably benefits other languages). The new mappings are as follows: ▮ -> █ ÀÈÍÏÓÒÚ -> AEIIOOU ŀ / Ŀ -> l / L Reviewed by: ed Approved by: kib (mentor) END K 10 svn:author V 4 ache K 8 svn:date V 27 2011-10-28T20:28:13.159535Z K 7 svn:log V 154 Update '}' description to reflect reality (and POSIX) PR: 96236 Submitted by: "Andreas Kohn" MFC after: 7 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-28T21:08:39.200179Z K 7 svn:log V 199 MFC r226633: Upgrade our copy of llvm/clang to r142614, from upstream's release_30 branch. This brings us very close to the 3.0 release, which is expected November 16, 2011. Approved by: re (kib) END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-10-28T22:36:15.434824Z K 7 svn:log V 41 Use "u_long" instead of "unsigned long". END K 10 svn:author V 6 jilles K 8 svn:date V 27 2011-10-28T23:02:21.276582Z K 7 svn:log V 284 sh: Add test for exit status of for loop without items. POSIX says the exit status of a for loop without any items shall be 0. There are no exceptions if the exit status of the previous command was not 0 or if the item list contains a command substitution with non-zero exit status. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-29T01:26:36.094445Z K 7 svn:log V 145 Define systrace_probe_func in subr_syscall.c where it's used, instead of defining it in MD code. This eliminates porting to other architectures. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-29T06:13:44.704986Z K 7 svn:log V 115 Include a missing opt_vm.h which doesn't let VM_NRESERVLEVEL switching correct utilization. Approved by: re (kib) END K 10 svn:author V 4 ache K 8 svn:date V 27 2011-10-29T06:13:47.639291Z K 7 svn:log V 90 Reword '}' description to sound more clear. Submitted by: dougb MFC after: 7 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2011-10-29T06:26:49.981828Z K 7 svn:log V 276 Fix an implicit dependency between the MFI driver and CAM that had grown due to an API change in CAM. It's once again possible to link a static kernel with 'mfi' without requiring 'scbus' as well. Ditto for KLD loading. Submitted by: kib Reviewed by: ken MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-29T06:28:18.895767Z K 7 svn:log V 105 MFC r226642: Include a missing opt_vm.h which doesn't let VM_NRESERVLEVEL switching correct utilization. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-29T06:33:12.759693Z K 7 svn:log V 309 Fix the text and attribution of the poem "Youth" by Samuel Ullman. Our copy was a bastardization of the "older" (probably original?) and shorter version of the poem; and the "newer" version that is better known, and arguably more popular. Standardize on the latter. Cf. http://www.bartleby.com/73/2099.html END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-29T06:55:57.834822Z K 7 svn:log V 4 IFC END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-29T07:17:47.518590Z K 7 svn:log V 69 Add some new ath(4) debugging bits, from my if_ath_tx 11n TX branch. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-10-29T08:09:37.938787Z K 7 svn:log V 103 s/di_conf/di_config in the files which had been accidentally missed. Sponsored by: FreeBSD Foundation END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-10-29T08:11:18.120084Z K 7 svn:log V 86 Return ENOMEM on malloc failure instead of success. Sponsored by: FreeBSD Foundation END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-10-29T12:32:13.842664Z K 7 svn:log V 66 Improve USB mass storage quirk auto detection. MFC after: 3 days END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-10-29T12:39:05.833012Z K 7 svn:log V 189 MFC r226803: Fix suspend and resume of non-super-speed USB devices in the generic XHCI driver. There appears to be some minor logic missing for this feature to work. Approved by: re (kib) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-29T13:50:15.228947Z K 7 svn:log V 68 Disable this for now; I don't think it's needed for the later NICs. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-29T16:38:04.392057Z K 7 svn:log V 299 MFC r226673: Don't terminate the interactive root mount prompt on mount failure. This restores the previous behaviour. While here, match '?' and '.' inputs exactly and improve the error message. Requested by: avg@ Derived from a patch by: Arnaud Lacombe Approved by: re (kib@) END K 10 svn:author V 3 jmg K 8 svn:date V 27 2011-10-29T17:28:59.944803Z K 7 svn:log V 178 error if /boot/mbr is empty... This can happen on a system like arm that doesn't have a /boot/mbr, and you touch it to get past the previous error message... MFC after: 1 week END K 10 svn:author V 3 jmg K 8 svn:date V 27 2011-10-29T17:30:57.796798Z K 7 svn:log V 49 remove trailing whitespace... MFC after: 1 week END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-29T18:16:29.575165Z K 7 svn:log V 76 Add a reminder about quarterly status report due dates Reviewed by: danger END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T22:06:53.679747Z K 7 svn:log V 94 Merge from r225950: Set the sense residual properly. Reviewed by: ken Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:27:32.075021Z K 7 svn:log V 86 MFC: r226095 Merge from r225950: Set the sense residual properly. Reviewed by: ken END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:27:36.027395Z K 7 svn:log V 86 MFC: r226095 Merge from r225950: Set the sense residual properly. Reviewed by: ken END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:44:29.985088Z K 7 svn:log V 104 MFC: r206534 Whitespace cleanup, in advance of next sync with Adaptec's driver. No functional change. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:44:30.165573Z K 7 svn:log V 104 MFC: r206534 Whitespace cleanup, in advance of next sync with Adaptec's driver. No functional change. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:51:21.203488Z K 7 svn:log V 86 MFC: r226350 Merge from r225950: Set the sense residual properly. Reviewed by: ken END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:51:23.209927Z K 7 svn:log V 86 MFC: r226350 Merge from r225950: Set the sense residual properly. Reviewed by: ken END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:53:53.915763Z K 7 svn:log V 154 MFC: r226381 Merge from NetBSD: - Remove clause 3 and 4 from TNF licenses. - Fix memset usage. - Various cleanup. - Kill caddr_t. Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-29T23:53:58.151630Z K 7 svn:log V 131 MFC: r226381 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 6 marius K 8 svn:date V 27 2011-10-29T23:53:58.375463Z K 7 svn:log V 131 MFC: r226381 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 7 attilio K 8 svn:date V 27 2011-10-30T00:57:56.190011Z K 7 svn:log V 838 Reimplement the splay tree used for idle page table pages using md_page iterators. Additively, embed the left and right pointers as an union with the pv_list as the page table pages don't need reverse mapping. This way, this code is no longer using the root and left iterators from the vm_page itself and once the red/black algorithm for cached pages will be implemented will allow removing completely the extra two pointers from vm_page. Implementation notes: it is interesting to note that now pmap_vmpage_splay() is just a copy&paste of the vm_page_splay(), but working on the md_page iterators. This is necessary because in the end the vm_page_splay() will be completely removed. Also, note that pv_list iterator is renamed in a more "common" way because of problems with macro expansions. Outlined, discussed and reviewed by: jeff END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T01:13:47.182216Z K 7 svn:log V 241 MFC: r199559 - Add a private timer to drive the transmit watchdog instead of using if_watchdog and if_timer. - Fix some issues in detach for sn(4), ste(4), and ti(4). Primarily this means calling ether_ifdetach() before anything else. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T01:13:49.964842Z K 7 svn:log V 241 MFC: r199559 - Add a private timer to drive the transmit watchdog instead of using if_watchdog and if_timer. - Fix some issues in detach for sn(4), ste(4), and ti(4). Primarily this means calling ether_ifdetach() before anything else. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T01:24:53.481740Z K 7 svn:log V 211 MFC: r199560 - Hook into the existing stat timer to drive the transmit watchdog instead of using if_watchdog and if_timer. - Reorder detach to call ether_ifdetach() before anything else in tl(4) and wb(4). END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T01:24:56.708384Z K 7 svn:log V 211 MFC: r199560 - Hook into the existing stat timer to drive the transmit watchdog instead of using if_watchdog and if_timer. - Reorder detach to call ether_ifdetach() before anything else in tl(4) and wb(4). END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-30T02:19:39.082155Z K 7 svn:log V 159 Revert rev. 226893: subr_syscall.c is being included from C files and on amd64 with FREEBSD32 enabled, this means that systrace_probe_func gets defined twice. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-10-30T02:36:49.415395Z K 7 svn:log V 480 MFC: r225537 Modify vfs_register() to use a hash calculation on vfc_name to set vfc_typenum, so that vfc_typenum doesn't change when file systems are loaded in different orders. This keeps NFS file handles from changing, for file systems that use vfc_typenum in their fsid. This change is controlled via a loader.conf variable called vfs.typenumhash, since vfc_typenum will change once when this is enabled. It defaults to 1 for 9.0, but will default to 0 when MFC'd to stable/8. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-30T04:04:40.630860Z K 7 svn:log V 197 Add birth date for Ken Thompson Add birth and death dates for Steve Jobs Update birth and add death date for Dennis Ritchie PR: bin/162157 Submitted by: Niclas Zeising END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-10-30T05:06:14.084553Z K 7 svn:log V 620 Eliminate vm_phys_bootstrap_alloc(). It was a failed attempt at eliminating duplicated code in the various pmap implementations. Micro-optimize vm_phys_free_pages(). Introduce vm_phys_free_contig(). It is fast routine for freeing an arbitrary number of physically contiguous pages. In particular, it doesn't require the number of pages to be a power of two. Use "u_long" instead of "unsigned long". Bruce Evans (bde@) has convinced me that the "boundary" parameters to kmem_alloc_contig(), vm_phys_alloc_contig(), and vm_reserv_reclaim_contig() should be of type "vm_paddr_t" and not "u_long". Make this change. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-10-30T08:35:19.432462Z K 7 svn:log V 101 MFC r226828: Fix a memory leak in tzload(). PR: bin/161425 Reviewed by: kib Approved by: re (kib) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-10-30T11:11:04.741990Z K 7 svn:log V 630 - Support two types of nodes, red and black, within the same radix tree. Black nodes support standard active pages and red nodes support cached pages. Red nodes may be removed without the object lock but will not collapse unused tree nodes. Red nodes may not be directly inserted, instead a new function is supplied to convert between black and red. - Handle cached pages and active pages in the same loop in vm_object_split, vm_object_backing_scan, and vm_object_terminate. - Retire the splay page handling as the ifdefs are too difficult to maintain. - Slightly optimize the vm_radix_lookupn() function. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-30T11:25:44.832678Z K 7 svn:log V 43 Remove VM_RADIX option now that is unused. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-10-30T11:43:12.929334Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-10-30T12:11:12.784637Z K 7 svn:log V 938 For now, flip off 11n chipset OFDM weak signal detection by default. I've noticed in very congested environments that the AR9220's I have get very upset and spew out tens of thousands of OFDM PHY errors a second (OFDM restart, mostly.) The AR9160 in the same environment doesn't log anywhere near as many OFDM errors and does not at all get "stuck beacon" issues. I however think the stuck beacon condition that I and testers have been seeing is due to other issues, rather than specifically caused by lots of PHY errors. I think the PHY errors are just setting it off. Merlin does seem to have a "baseband hang" bit in the hang capability set, I have no idea what the baseband hangs are or what the workarounds are. In any case, I'll keep digging. Newma has this disabled in hostap mode and leaves it default in STA mode (I think this is 'whatever is in the ini file values.') It will be enabled if the beacon RSSI is strong enough. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T12:23:00.385211Z K 7 svn:log V 118 MFC: r226522 Allow to dump on Solaris swap partitions. PR: 161764 Submitted by: Peter Jeremy Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T12:23:04.360082Z K 7 svn:log V 96 MFC: r226522 Allow to dump on Solaris swap partitions. PR: 161764 Submitted by: Peter Jeremy END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T12:23:06.575808Z K 7 svn:log V 96 MFC: r226522 Allow to dump on Solaris swap partitions. PR: 161764 Submitted by: Peter Jeremy END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-10-30T12:33:19.634464Z K 7 svn:log V 122 Fix a misplaced parenthesis. PR: 162164 Submitted by: Henning Petersen MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2011-10-30T14:55:00.083477Z K 7 svn:log V 50 Add missing PF_UNLOCK in pf_test Reviewed by: bz END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-10-30T15:21:27.132200Z K 7 svn:log V 113 For processes with no controlling terminal, display "-" in the TTY column instead of "?". Submitted by: arundel END K 10 svn:author V 3 rmh K 8 svn:date V 27 2011-10-30T16:29:04.821324Z K 7 svn:log V 525 Fix a few gratuitous library dependencies. Some of the ZFS utilities are linked with libraries they don't use: - zinject doesn't use libavl - ztest doesn't use libz - zdb uses neither libavl nor libz - zfs uses neither libbsdxml nor libm, nor libsbuf - zpool uses neither libbsdxml nor libm, nor libsbuf In addition, libzfs needs libm because it uses pow(), however it isn't linked with -lm. This went unnoticed because all its users had -lm before. Reviewed by: pjd, mm Approved by: kib (mentor) MFC after: 1 week END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-10-30T20:45:27.341477Z K 7 svn:log V 110 - Eliminate a use of the splay right link by using the object pointer for a temporary singly linked list. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-30T20:55:32.862846Z K 7 svn:log V 41 Fix typo from r226927 Submitted by: scf END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-30T20:56:54.758281Z K 7 svn:log V 425 MFC r226724, r226732: MFC r226724: Update copyright information in several ZFS files, as the clause 3.3 of the CDDL licence explicitly requires every Contributor to add a copyright notice. This also reflects the copyright notices for the changes recently added by Illumos. MFC r226732: [1] Fix typo in copyright notice introduced in r226724 (missing character in e-mail adress) Reported by: pjd [1] Approved by: re (kib) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-30T20:58:53.065886Z K 7 svn:log V 386 MFC r226512: 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) Approved by: re (kib) END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-30T21:02:01.472571Z K 7 svn:log V 403 MFC r226724, r226732: MFC r226724: Update copyright information in several ZFS files, as the clause 3.3 of the CDDL licence explicitly requires every Contributor to add a copyright notice. This also reflects the copyright notices for the changes recently added by Illumos. MFC r226732: [1] Fix typo in copyright notice introduced in r226724 (missing character in e-mail adress) Reported by: pjd [1] END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-10-30T21:03:12.574982Z K 7 svn:log V 364 MFC r226512: 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) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T21:17:42.700545Z K 7 svn:log V 2385 - Use device_t rather than the NetBSDish struct device. - Move esp_devclass to ncr53c9x.c in order to allow different bus front-ends to use it. - Use KOBJMETHOD_END. - Remove the gl_clear_latched_intr hook as it's not needed for any of the chips nor the front-ends supported in FreeBSD and likely never will be. - Correct the DMA constraints used in the SBus front-end, the LSI64854 isn't limited to 32-bit DMA. - The ESP200 also only supports up to 64k transfers. - Don't let the DMA and SBus front-end supply a maximum transfer size larger than MAXPHYS as that's the maximum the upper layers use and we otherwise just waste resources unnecessarily. - Initialize the ECB callout and don't zero the handle when returning ECBs to the free list so that ncr53c9x_callout() actually is called with the driver lock held. - On detach the driver lock should be held across cam_sim_free() according to isp(4) and a panic received. - Check the return value of NCRDMA_SETUP(), i.e. bus_dmamap_load(9), and try to handle failures gracefully. - In ncr53c9x_action() replace N calls to xpt_done() in a switch with just one at the end. - On XPT_PATH_INQ report "NCR" rather than "Sun" as the vendor as the former is somewhat more correct as well as the maximum supported transfer size via maxio in order to take advantage of controllers that that can handle more than DFLTPHYS. - Print the number of MESSAGE (EXTENDED) rejected. - Fix the path encoded in the multiple inclusion protection of ncr53c9xvar.h. - Correct the DMA constraints used in the LSI64854 core to not exceed the maximum supported transfer size and include the boundary so we don't need to check on every setup of a DMA transfer. - Let the bus DMA map callbacks do nothing in case of an error. - Correctly handle > 64k transfers for FAS366 in the LSI64854. A new feature flag NCR_F_LARGEXFER was introduced so we just need to check for this one and not for individual controllers supporting large transfers in several places. - Let the LSI64854 core load transfer buffers using BUS_DMA_NOWAIT as the NCR53C9x core can't handle EINPROGRESS. Due to lack of bounce buffers support, sparc64 doesn't actually use EINPROGRESS and likely never will, as an example for writing additional front-ends for the NCR53C9x core it makes sense to set BUS_DMA_NOWAIT anyway though. - Some minor cleanup. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T21:19:13.899079Z K 7 svn:log V 71 Correct the DMA constraints, the LSI64854 isn't limited to 32-bit DMA. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T21:42:35.154240Z K 7 svn:log V 105 Actually, limit to 32-bit DMA for the transfer buffers as the address is written into a 32-bit register. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-10-30T21:45:36.181939Z K 7 svn:log V 35 Add multiple inclusion protection. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-10-30T22:20:17.092651Z K 7 svn:log V 279 Pull in r143305 and r143312 from upstream clang trunk, so using "clang -march=native" on AMD K10 family processors no longer errors out with "unknown target CPU 'amdfam10'". This also enables use of SSE4A. Reported by: David Marec MFC after: 3 days END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-10-30T22:57:42.775329Z K 7 svn:log V 250 - Extract part of vm_radix_lookupn() into a function that just finds the first leaf page in a specified range. This permits us to make many search & operate functions without much code duplication. - Make a generic iterator for radix items. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-30T23:31:03.282679Z K 7 svn:log V 112 For multiple -r, don't add a port to the list of dependents to rebuild if it was itself specified as a -r port. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-10-31T00:10:11.783159Z K 7 svn:log V 50 - Convert object->cache usage to the radix tree. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-31T02:43:36.079211Z K 7 svn:log V 335 If an update fails in a child port the parent needs to source the $IPC_SAVE file before it bails out to make sure that various lists are updated in the parent. This is particularly important for the list(s) of work already completed, and especially to update PM_NEEDS_UPDATE for the message of how to resume from the point of failure. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-10-31T03:47:23.261600Z K 7 svn:log V 558 MFC r226647: Add support for Boot Camp. The support is defined as follows: o Detect when Boot Camp is enabled (i.e. the MBR mirrors the GPT). o When Boot Camp is enabled, update the MBR whenever we write the GPT. o Creation of a Boot Camp enabled GPT is not supported. o Automatically disable Boot Camp when the GPT has been changed so that there's either no EFI partition or no HFS+ partition. o The first 4 partitions (by index) get mirrored in the MBR. Requested by, discussed with and tested by: kris@pcbsd.org Approved by: re (bz@, kib@) END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-31T08:23:22.269712Z K 7 svn:log V 85 Add a feature to allow users to list files that should be preserved across upgrades. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-31T08:29:11.723290Z K 7 svn:log V 27 Delete trailing whitespace END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-31T08:32:36.087054Z K 7 svn:log V 39 Document the PM_PRESERVE_PORTS feature END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-10-31T08:48:27.319248Z K 7 svn:log V 90 MFC 226868: Send out control chunks which have no specific destination. Approved by: re@ END K 10 svn:author V 2 ed K 8 svn:date V 27 2011-10-31T08:59:17.372108Z K 7 svn:log V 215 Put some static keywords in the source code. For these simple utilities, it doesn't harm to make all global variables static. In fact, this allows the compiler to perform better forms of optimisation and analysis. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-31T09:06:33.488887Z K 7 svn:log V 42 Unset preserve_port_files when we're done END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-10-31T09:18:01.096980Z K 7 svn:log V 91 MFC r226681: Only unlock if the lock is exclusive. Approved by: re (kib) PR: kern/161956 END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-10-31T09:22:09.943835Z K 7 svn:log V 69 MFC r226681: Only unlock if the lock is exclusive. PR: kern/161956 END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-10-31T09:27:10.977466Z K 7 svn:log V 130 MFC 226869: When adding a new remote address using sctp_add_remote_addr(), return the correct net if requested. Approved by: re@ END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-10-31T10:53:27.192012Z K 7 svn:log V 102 Add information about MD_READONLY and MD_COMPRESS flags to the configuration dump. MFC after: 1 week END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-10-31T15:01:47.762172Z K 7 svn:log V 213 The kern_renameat() looks up the fvp using the DELETE flag, which causes the removal of the name cache entry for fvp. Reported by: Anton Yuzhaninov In collaboration with: kib MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-10-31T16:05:33.944648Z K 7 svn:log V 46 Create a branch to merge varsym patches into. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-31T20:02:11.325918Z K 7 svn:log V 145 MFC r226887: Don't expose a constant array into global namespace. Reported by: Ruslan Yakovlev via yongari Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-10-31T20:03:09.440627Z K 7 svn:log V 123 MFC r226887: Don't expose a constant array into global namespace. Reported by: Ruslan Yakovlev via yongari END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-10-31T20:24:33.152294Z K 7 svn:log V 112 Fix the wrong commit log message for r226967: "Added missing cache purge of from argument" and fix the comment. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-10-31T21:05:19.148505Z K 7 svn:log V 133 For the preserve files feature use the same naming and installation scheme for the new contents file as is done in update_contents() END K 10 svn:author V 6 brooks K 8 svn:date V 27 2011-10-31T23:27:24.505403Z K 7 svn:log V 50 Bring in an updated varsym patch from my P4 tree. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-11-01T01:34:14.528387Z K 7 svn:log V 214 Vendor import of tzdata2011n - Fiji will end DST on 22 January 2012. - Moldova split into two timezones has been cancelled. - Cuba will end DST on 13 November 2011 Obtained from: ftp://ftp.iana.org/tz/releases/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-11-01T01:34:54.297626Z K 7 svn:log V 19 Tag of tzdata2011n END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-11-01T02:01:55.176630Z K 7 svn:log V 212 MFV of r226974, tzdata2011n - Fiji will end DST on 22 January 2012. - Moldova split into two timezones has been cancelled. - Cuba will end DST on 13 November 2011 Obtained from: ftp://ftp.iana.org/tz/releases/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-11-01T02:03:30.537345Z K 7 svn:log V 212 MFC of 226976, tzdata2011n - Fiji will end DST on 22 January 2012. - Moldova split into two timezones has been cancelled. - Cuba will end DST on 13 November 2011 Obtained from: ftp://ftp.iana.org/tz/releases/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-11-01T02:04:02.366868Z K 7 svn:log V 212 MFC of 226976, tzdata2011n - Fiji will end DST on 22 January 2012. - Moldova split into two timezones has been cancelled. - Cuba will end DST on 13 November 2011 Obtained from: ftp://ftp.iana.org/tz/releases/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-11-01T02:04:52.678011Z K 7 svn:log V 212 MFC of 226976, tzdata2011n - Fiji will end DST on 22 January 2012. - Moldova split into two timezones has been cancelled. - Cuba will end DST on 13 November 2011 Obtained from: ftp://ftp.iana.org/tz/releases/ END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-01T03:40:38.010767Z K 7 svn:log V 419 vm_object_terminate() doesn't actually free the pages in the splay tree. Reclaim all the nodes related to the radix tree for a specified vm_object when calling vm_object_terminate() via the newly added interface vm_radix_reclaim_nodes(). The function is recursive, but we have a well-defined maximum depth, thus the amount of necessary stack can be easilly calculated. Reported by: alc Discussed and reviewed by: jeff END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-01T03:53:10.858686Z K 7 svn:log V 250 Add kernel protection to the header file for vmradix. Likely this file needs some more restructuration (and we should make a lot of macros private to radix implementation) but leave them as they are so far because we may enrich the KPI much further. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-01T04:01:39.192843Z K 7 svn:log V 4 MFC END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-11-01T04:21:57.483019Z K 7 svn:log V 58 - Add some convenience inlines. - Update the copyright. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-11-01T08:24:01.542569Z K 7 svn:log V 179 MFC r226903, r225777, r226221 and r226534: Add some new USB device IDs and some USB device quirks. Improve the USB mass storage auto quirk detection. PR: usb/161798, usb/160911 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-11-01T08:57:49.224820Z K 7 svn:log V 766 Workaround the problem introduced by combination of r162200 and r215687. r162200 delays provider orphanization until all running requests complete, to workaround broken orphan() method implementation in some classes. r215687 removes persistent periodic (10Hz) event thread wake ups. Together these changes can indefinitely delay orphanization until some other event wake up the event thread. One consequence of this is inability of CAM to destroy device disconnected when busy and, as consequence, create new one after reconnection. While the best solution would be to revert r162200, it is not easy, as some classes still look broken in that way. Instead conditionally wake up event thread if there are some providers waiting for orphanization. MFC after: 1 week END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-11-01T09:28:47.825891Z K 7 svn:log V 160 Two bugs fixed: - Do not close stdout or stderr when redirecting to file. - Correctly handle error code to detect when no buffer available. MFC after: 1 month END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-01T12:33:06.532825Z K 7 svn:log V 152 Added missing cache purge of from argument for rename(). Reported by: Anton Yuzhaninov In collaboration with: kib MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-01T15:34:52.428894Z K 7 svn:log V 179 MFC r226686: The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. Approved by: re (bz) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-01T15:38:41.527904Z K 7 svn:log V 311 MFC r226687: The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr() already unlocked the reclaimed vnode, so VOP_UNLOCK() in the nullfs_mount() after null_nodeget() failure is wrong. Approved by: re (bz) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-01T15:41:55.626483Z K 7 svn:log V 197 MFC r226688: The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() assert. Approved by: re (bz) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-01T15:51:09.869281Z K 7 svn:log V 157 MFC r226686: The covered vnode must be reloced if it was unlocked. Remove VOP_ISLOCKED test because of this and also because it can lead to false positives. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-01T15:53:44.510993Z K 7 svn:log V 289 MFC r226687: The only possible error return from null_nodeget() is due to insmntque1 failure (the getnewvnode cannot return an error). In this case, the null_insmntque_dtr() already unlocked the reclaimed vnode, so VOP_UNLOCK() in the nullfs_mount() after null_nodeget() failure is wrong. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-01T15:56:15.071041Z K 7 svn:log V 175 MFC r226688: The use of VOP_ISLOCKED() without a check for the return values can cause false positives. Replace the #ifdef block with the proper ASSERT_VOP_UNLOCKED() assert. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-11-01T16:11:44.442387Z K 7 svn:log V 82 MFC r226790: Fix typo in timer_getoverrun cross-reference. Approved by: re (kib) END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-01T16:13:59.531978Z K 7 svn:log V 1274 - Import the common MII bitbang'ing code from NetBSD and convert drivers to take advantage of it instead of duplicating it. This reduces the size of the i386 GENERIC kernel by about 4k. The only potential in-tree user left unconverted is xe(4), which generally should be changed to use miibus(4) instead of implementing PHY handling on its own, as otherwise it makes not much sense to add a dependency on miibus(4)/mii_bitbang(4) to xe(4) just for the MII bitbang'ing code. The common MII bitbang'ing code also is useful in the embedded space for using GPIO pins to implement MII access. - Based on lessons learnt with dc(4) (see r185750), add bus barriers to the MII bitbang read and write functions of the other drivers converted in order to ensure the intended ordering. Given that register access via an index register as well as register bank/window switching is subject to the same problem, also add bus barriers to the respective functions of smc(4), tl(4) and xl(4). - Sprinkle some const. Thanks to the following testers: Andrew Bliznak (nge(4)), nwhitehorn@ (bm(4)), yongari@ (sis(4) and ste(4)) Thanks to Hans-Joerg Sirtl for supplying hardware to test stge(4). Reviewed by: yongari (subset of drivers) Obtained from: NetBSD (partially) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-11-01T16:27:47.050448Z K 7 svn:log V 59 MFC r226790: Fix typo in timer_getoverrun cross-reference. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-11-01T16:56:42.831097Z K 7 svn:log V 59 MFC r226790: Fix typo in timer_getoverrun cross-reference. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-11-01T17:04:42.771591Z K 7 svn:log V 430 Refactor disk disconnection and geom destruction handling sequences. Do not close/destroy opened consumer directly in case of disconnect. Instead keep it existing until it will be closed in regular way in response to upstream provider destruction. Delay geom destruction in the same way. Previous implementation could destroy consumers still having active requests and worked only because of global workaround made on GEOM level. END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-01T17:18:57.506859Z K 7 svn:log V 68 Added regression test for rename() cache problem, fixed in r226967. END