ĵ;220433 173 617 206 186 192 172 221 208 175 175 479 684 157 871 136 242 356 172 194 183 581 243 398 295 681 471 471 166 390 325 491 588 407 306 182 128 146 183 141 182 130 146 183 308 322 369 369 193 193 257 257 188 189 329 662 646 646 401 401 370 251 241 167 537 330 263 141 338 199 450 229 483 299 299 366 371 236 164 367 837 243 238 238 118 115 215 242 545 211 165 248 242 1678 1802 277 243 942 401 463 295 395 250 181 509 365 199 199 137 316 193 216 197 190 144 321 234 114 234 233 233 233 179 155 253 588 144 332 869 313 203 455 288 283 145 225 218 243 240 295 295 437 263 162 268 515 305 151 235 164 308 361 343 143 313 567 236 222 142 869 386 161 250 187 242 130 239 125 437 312 384 771 165 117 114 K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-07T23:28:28.025930Z K 7 svn:log V 523 Use atomic load & store for TSC frequency. It may be overkill for amd64 but safer for i386 because it can be easily over 4 GHz now. More worse, it can be easily changed by user with 'machdep.tsc_freq' tunable (directly) or cpufreq(4) (indirectly). Note it is intentionally not used in performance critical paths to avoid performance regression (but we should, in theory). Alternatively, we may add "virtual TSC" with lower frequency if maximum frequency overflows 32 bits (and ignore possible incoherency as we do now). END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-04-08T05:48:51.770110Z K 7 svn:log V 108 MFC r219100 - Add support for software pre-scaling of ISOCHRONOUS transfers. Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-04-08T06:13:19.791410Z K 7 svn:log V 89 MFC r220303 - Correct EHCI interrupt disabling at detach. Approved by: thompsa (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-04-08T06:20:43.002871Z K 7 svn:log V 95 MFC r219395. - Bugfix: Root HUBs do not support re-enumeration. Approved by: thompsa (mentor) END K 10 svn:author V 3 art K 8 svn:date V 27 2011-04-08T06:27:43.849898Z K 7 svn:log V 80 Stripped '32' suffix from linux systrace module name on i386. Approved by: avg END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-08T06:29:41.503366Z K 7 svn:log V 125 Extend the RX descriptor block to include two more EVM words. This will be needed for later AR93xx/AR94xx 3-stream devices. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-04-08T06:37:22.224859Z K 7 svn:log V 110 MFC r220304. - Fix for missing event if a libUSB USB transfer is started and stopped rapidly in succession. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-08T06:50:26.025300Z K 7 svn:log V 83 MFC r220004: rtld: eliminate double call to close(2) that may occur in load_object END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-08T06:55:25.661332Z K 7 svn:log V 83 MFC r220004: rtld: eliminate double call to close(2) that may occur in load_object END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-08T06:58:01.900342Z K 7 svn:log V 383 Export the per-chain ctl/ext noise floor values, raw and uncut, to the upper-level HAL. Right now the per-chain noise floor values aren't used anywhere in the upper-level HAL, so the driver currently has no real reference to compare the per-chain RSSI values to. This is needed before per-chain RSSI values (for ctl and ext radios) are can be thrown upstairs to the net80211 code. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-08T07:44:00.010794Z K 7 svn:log V 588 Begin fleshing out a public HAL routine to export the per-chain ctl/ext noise floor values. This routine doesn't check to see whether the radio is MIMO capable - instead, it simply returns either the raw values, the "nominal" values if the raw values aren't yet available or are invalid, or '0' values if there's no valid channel/ no valid MIMO values. Callers are expected to verify the radio is a MIMO radio (which for now means it's an 11n chipset, there are non-11n MIMO chipsets out there but I don't think we support them, at least in MIMO mode) before exporting the MIMO values. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-08T08:49:50.940682Z K 7 svn:log V 62 Fix the completely wrong types I used in the previous commit. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-08T09:20:45.819421Z K 7 svn:log V 775 Add initial support for MIMO statistics to net80211. This introduces struct ieee80211_rx_stats - which stores the various kinds of RX statistics which a MIMO and non-MIMO 802.11 device can export. It also fleshes out the mimo export to userland (node_getmimoinfo()). It assumes that MIMO radios (for now) export both ctl and ext channels. Non-11n MIMO radios are possible (and I believe Atheros made at least one), so if that chipset support is added, extra flags to the struct ieee80211_rx_stats can be added to extend this support. Two new input functions have been added - ieee80211_input_mimo() and ieee80211_input_mimo_all() - which MIMO-aware devices can call with MIMO specific statistics. 802.11 devices calling the non-MIMO input functions will still function. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-08T09:56:31.227932Z K 7 svn:log V 41 Re-add the pad[2] I deleted by accident. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-04-08T11:08:26.755385Z K 7 svn:log V 150 Partially fix ZFS compat code for sparc64. Some endianess bugs still need to be resolved. Submitted by: marius (parts of the fix) MFC after: 1 month END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-08T12:33:07.179667Z K 7 svn:log V 261 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 MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-08T12:46:47.271943Z K 7 svn:log V 80 Add reference to led(4), supported now. Add some details about supported chips. END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-04-08T12:49:56.281690Z K 7 svn:log V 101 arc4random(3) preserves state across fork(2), so a stir is needed. While here mark unused arguments. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-08T13:30:48.058233Z K 7 svn:log V 91 Catch up to PCB_FULL_IRET becoming a pcb flag rather than a full field. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-04-08T13:33:57.567968Z K 7 svn:log V 488 Fix a bug in the previous change to restore the fast path for syscall return. The ast() function may cause a context switch in which case PCB_FULL_IRET would be set in the pcb. However, the code was not rechecking the flag after ast() returned and would not properly restore the FSBASE and GSBASE MSRs. To fix, recheck the PCB_FULL_IRET flag after ast() returns. While here, trim an instruction (and memory access) from the doreti path and fix a typo in a comment. MFC after: 1 week END K 10 svn:author V 6 rstone K 8 svn:date V 27 2011-04-08T14:39:41.151778Z K 7 svn:log V 147 Add tunables that mirror the functionality of sysctls machdep.panic_on_nmi and machdep.kdb_on_nmi. Approved by: emaste (mentor) MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-08T14:42:29.998649Z K 7 svn:log V 305 - Add kern.cam.ada.X.write_cache tunables/sysctls to control write caching on per-device basis. - While adding support for per-device sysctls, merge from graid branch support for ADA_TEST_FAILURE kernel option, which opens few more sysctl, allowing to simulate read and write errors for testing purposes. END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-04-08T18:31:01.623437Z K 7 svn:log V 202 MFH r219446-219449: - Remove bsdlabel.5 - Remove bsdlabel test-script that was full of broken assumptions - Remove dead code depending on __alpha__ - Widen fields that display partition offset/length. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-04-08T18:48:57.807144Z K 7 svn:log V 584 Reintroduce the fix already discussed in r216805 (please check its history for a detailed explanation of the problems). The only difference with the previous fix is in Solution2: CPUBLOCK is no longer set when exiting from callout_reset_*() functions, which avoid the deadlock (leading to r217161). There is no need to CPUBLOCK there because the running-and-migrating assumption is strong enough to avoid problems there. Furthermore add a better !SMP compliancy (leading to shrinked code and structures) and facility macros/functions. Tested by: gianni, pho, dim MFC after: 3 weeks END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-04-08T19:06:01.882503Z K 7 svn:log V 374 MFC r220249,220252: r220249: 64bit DMA caused data corruption. Unfortunately there is no known workaround to use 64bit DMA. Disable 64bit DMA on Attansic L1 controller. Tested by: Yamagi Burmeister (lists <> yamagi dot org) r220252: Partially revert r184106. RX buffer ring also needs bus_dmamap_sync(). Tested by: Yamagi Burmeister (lists <> yamagi dot org) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-04-08T19:08:48.774529Z K 7 svn:log V 374 MFC r220249,220252: r220249: 64bit DMA caused data corruption. Unfortunately there is no known workaround to use 64bit DMA. Disable 64bit DMA on Attansic L1 controller. Tested by: Yamagi Burmeister (lists <> yamagi dot org) r220252: Partially revert r184106. RX buffer ring also needs bus_dmamap_sync(). Tested by: Yamagi Burmeister (lists <> yamagi dot org) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-08T19:54:29.784470Z K 7 svn:log V 73 Refactor DELAYDEBUG as it is only useful for correcting i8254 frequency. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-08T21:26:50.150267Z K 7 svn:log V 297 Disable local interrupts before testing the PCB_FULL_IRET flag. Thread might be preempted after testing, which causes the flag to be cleared. If ast was not delivered, we will do sysret with potentially wrong fs/gs bases. Reviewed by: jhb, jkim MFC after: 1 week (together with r220430, r220452) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-08T21:27:31.658267Z K 7 svn:log V 232 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. Reviewed by: jhb, jkim MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T01:29:46.918404Z K 7 svn:log V 399 After r219579 and r219779 unbreak v4-mapped v6 sockets for UDP some more. Similar to what we do for TCP check for v4-mapped addresses and then handle them or the normal v6 address case. For either set inp_vflags before calling into the pcb connect function so that we have an unambiguous view in case we need to set the local address or port. Looked at: tuexen (as part of more) MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T02:22:49.373024Z K 7 svn:log V 496 Remove a check in udp6_send() that prevented v4-mapped v6 addresses from working. We store v4 and v6 addresses as a union but for v4-mapped addresses only store the 32bits w/o the ::ffff: word. That failed the check as for example 127.0.0.1 would be ::7f00:1 rather than ::ffff:7f00:1 and the IN6_IS_ADDR_V4MAPPED() never worked here. Given we can hardly get here with an unbound local address or invalid inp_vflags remove the check. Reported by: tuexen Reviewed by: tuexen MFC after: 3 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-09T06:01:37.082575Z K 7 svn:log V 312 Add some code to --check-depends to explicitly handle --index-only. It worked before by ignoring the origin test if there was no ports directory, but failed if --index-only was also used. This is better both because it doesn't fail with --index-only, but also because it now uses the index to validate $origin. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-09T07:42:25.390082Z K 7 svn:log V 211 Make it possible to use permission sets (full_set, modify_set, read_set and write_set) with setfacl(1). PR: kern/154113 Submitted by: Shawn Webb (earlier version) MFC after: 1 month END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T08:29:07.238845Z K 7 svn:log V 90 MFC r220028: linux compat: add non-dummy capget and capset system calls PR: kern/149168 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T08:31:50.711582Z K 7 svn:log V 36 Regen for r220466 PR: kern/149168 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T08:43:57.328537Z K 7 svn:log V 54 MFC r220030: drop dummy definitions PR: kern/149168 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T08:52:22.406987Z K 7 svn:log V 91 MFC r220031: linux compat: improve and fix sendmsg/recvmsg compatibility PR: kern/149168 END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-04-09T09:07:31.085367Z K 7 svn:log V 49 Fix make buildworld -DMODULES_WITH_WORLD on i386 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T09:12:44.020935Z K 7 svn:log V 90 MFC r220028: linux compat: add non-dummy capget and capset system calls PR: kern/149168 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T09:20:11.485002Z K 7 svn:log V 38 Regen after r220471 PR: kern/149168 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T09:27:11.435702Z K 7 svn:log V 54 MFC r220030: drop dummy definitions PR: kern/149168 END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-09T09:33:36.826540Z K 7 svn:log V 91 MFC r220031: linux compat: improve and fix sendmsg/recvmsg compatibility PR: kern/149168 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:18:46.091044Z K 7 svn:log V 216 MFC r219184: Prevent crashes from a race when (cloned) interfaces go away. PR: bin/152143 Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com) Tested by: Przemyslaw Frasunek (przemyslaw frasunek.com) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:19:25.999279Z K 7 svn:log V 230 MFC r219184: Prevent crashes from a race when (cloned) interfaces go away. PR: bin/152143 Submitted by: Przemyslaw Frasunek (przemyslaw frasunek.com) Tested by: Przemyslaw Frasunek (przemyslaw frasunek.com) END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:22:18.223053Z K 7 svn:log V 277 MFC r219206: Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4)) from processes inside jails if the addresses do not belong to the jail. Originally reported by: Pieter de Boer via remko Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif] PR: kern/151119 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:36:33.426259Z K 7 svn:log V 277 MFC r219206: Hide the outer IP addresses of a tunnel interfaces (gif(4), gre(4)) from processes inside jails if the addresses do not belong to the jail. Originally reported by: Pieter de Boer via remko Tested by: Piotr KUCHARSKI (nospam 42.pl) [gif] PR: kern/151119 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:40:17.281570Z K 7 svn:log V 101 MFC r219580: INET6 for some time needed in_pcb.c so make sure we compile it in case of no inet. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:44:01.388457Z K 7 svn:log V 101 MFC r219580: INET6 for some time needed in_pcb.c so make sure we compile it in case of no inet. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:44:53.801854Z K 7 svn:log V 165 MFC r219597: Cross-reference ip(4) rather than sysctl(8) for the global, shared MIB values to control the various port ranges. ip(4) describes these in detail. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:45:22.349862Z K 7 svn:log V 165 MFC r219597: Cross-reference ip(4) rather than sysctl(8) for the global, shared MIB values to control the various port ranges. ip(4) describes these in detail. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:53:36.103095Z K 7 svn:log V 97 MFC r220247: Do not allow directly recursive RFC3173 IPComp payload. Security: CVE-2011-1547 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T10:58:38.128897Z K 7 svn:log V 98 MFC r220247: Do not allow directly recursive RFC3173 IPComp payload. Security: CVE-2011-1547 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T11:03:04.239867Z K 7 svn:log V 237 MFC r220247: Do not allow directly recursive RFC3173 IPComp payload. While IPv6 does count iterations over next headers in ip6_input, we still disallow directly recursive IPComp payload in the KAME code. Security: CVE-2011-1547 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:04:35.035452Z K 7 svn:log V 570 MFC r219775: For now remove options FLOWTABLE from the remaining GENERIC kernel configurations and make it opt-in for those who want it. LINT will still build it. While it may be a perfect win in some scenarios, it still troubles users (see PRs) in general cases. In addition we are still allocating resources even if disabled by sysctl and still leak arp/nd6 entries in case of interface destruction. Discussed with: qingli (2010-11-24, just never executed) Discussed with: juli (OCTEON1) PR: kern/148018, kern/155604, kern/144917, kern/146792 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:11:19.253938Z K 7 svn:log V 554 MFC r219562: Make sure the locally cached value of rt->rt_gateway stays stable, even after dropping the reference and unlocking. Previously we have dereferenced a NULL pointer (after r121765). Simply unlocking after the block does not work either because of lock ordering (see r121765) and in addition we would still hold a pointer to something that might be gone by the time we access it. Thus take a copy of the value rather than just caching the pointer. Submitted by: chenyl (netstar2008 126.com) (initial version) PR: kern/151908 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:15:40.939399Z K 7 svn:log V 554 MFC r219562: Make sure the locally cached value of rt->rt_gateway stays stable, even after dropping the reference and unlocking. Previously we have dereferenced a NULL pointer (after r121765). Simply unlocking after the block does not work either because of lock ordering (see r121765) and in addition we would still hold a pointer to something that might be gone by the time we access it. Thus take a copy of the value rather than just caching the pointer. Submitted by: chenyl (netstar2008 126.com) (initial version) PR: kern/151908 END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:35:08.114303Z K 7 svn:log V 309 MFC r219570: Push a possible "unbind" in some situation from in6_pcbsetport() to callers. This also fixes a problem when the prison call could set the inp->in6p_laddr (laddr) and a following priv_check_cred() call would return an error and will allow us to merge the IPv4 and IPv6 implementation. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:38:09.323024Z K 7 svn:log V 309 MFC r219570: Push a possible "unbind" in some situation from in6_pcbsetport() to callers. This also fixes a problem when the prison call could set the inp->in6p_laddr (laddr) and a following priv_check_cred() call would return an error and will allow us to merge the IPv4 and IPv6 implementation. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:42:40.272161Z K 7 svn:log V 278 MFC r217735: Make `make tinderbox` work with MAKEOBJDIRPREFIX set (or in possibly other combinations) by forcing FAILFILE into .CURDIR as we do for all other universe output files. [1] Similarly make FAILFILE start with "_." as well. Reviewed by: silence-on-src [1] END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:52:41.539525Z K 7 svn:log V 159 MFC r217736: Add an svn:ignore property for _.{TARGETS,tinderbox}.* in the toplevel directory to ignore those file patters in svn status, add and import. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T12:56:13.768342Z K 7 svn:log V 149 MFC r217736: Add an svn:ignore property for _.{TARGETS}.* in the toplevel directory to ignore those file patters in svn status, add and import. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T13:19:44.480141Z K 7 svn:log V 76 MFC r218555: Mfp4 CH=177255: Use __func__ rather than __FUNCTION__. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T13:45:13.460560Z K 7 svn:log V 445 MFC r218559: Mfp4 CH=177255: Make VNET_ASSERT() available with either VNET_DEBUG or INVARIANTS. Change the syntax to match KASSERT() to allow more flexible panic messages rather than having a printf with hardcoded arguments before panic. Adjust the few assertions we have to the new format (and enhance the output). Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH Reviewed by: jhb END K 10 svn:author V 5 markm K 8 svn:date V 27 2011-04-09T13:56:29.490484Z K 7 svn:log V 235 Add SHA512 (Actually, this is Colin Percival's code for SHA256, with relevant constants changed). While I'm here clean up the tests and Makefile. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month END K 10 svn:author V 5 markm K 8 svn:date V 27 2011-04-09T14:02:04.048998Z K 7 svn:log V 168 Add SHA256/512 ($5$ and $6$) to crypt(3). Used in linux-world, doesn't hurt us. PR: misc/124164 Submitted by: KIMURA Yasuhiro < yasu utahime org > MFC after: 1 month END K 10 svn:author V 5 markm K 8 svn:date V 27 2011-04-09T14:09:46.635823Z K 7 svn:log V 47 Document SHA256/512 modes. MFC after: 1 month END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-09T14:18:03.464831Z K 7 svn:log V 237 Rename the "Reboot" option to "Exit", which reflects what it actually does. The rc.local wrapper script will also soon grow an option to use the live environment after installation, so an immediate reboot isn't even necessarily implied. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-09T14:25:58.957220Z K 7 svn:log V 99 Allow the user to use the live environment post-installation, as well as improving error handling. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T14:27:27.203103Z K 7 svn:log V 358 MFC r218567: Mfp4 CH=177255: Resort the CURVNET_SET* macros in the non-VNET_DEBUG case to match the call order of the VNET_DEBUG case. Add the VNET_ASSERT() to the non-VNET_DEBUG case as well so that INVARIANTS will still catch problems. Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH Reviewed by: jhb END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-04-09T14:45:50.124871Z K 7 svn:log V 131 Don't hardcode assumptions about basic rates, similar to what the rt2661 support code does. While here remove an unnecessary loop. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-09T15:27:36.361550Z K 7 svn:log V 391 MFC r218688: Mfp4 CH=177256: Catch a set vnet upon return to user space. This usually means return paths with CURVNET_RESTORE() missing. If VNET_DEBUG is turned on we can even tell the function that did the CURVNET_SET() which is really helpful; else we print "N/A". Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH Reviewed by: jhb END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-04-09T19:07:13.269726Z K 7 svn:log V 206 MFC 220382: Correct 'list scan' description in the examples. The previous description was incorrect - 'list scan' does not actually do a scan, but instead lists the results of the background 'scan' cache. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-04-09T19:07:44.773286Z K 7 svn:log V 206 MFC 220382: Correct 'list scan' description in the examples. The previous description was incorrect - 'list scan' does not actually do a scan, but instead lists the results of the background 'scan' cache. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-09T21:40:48.333606Z K 7 svn:log V 273 Linuxolator calls VOP_READDIR with ncookies pointer. Implement a workaround for fdescfs to not panic when ncookies is not NULL, similar to the one committed as r152254, but simpler, due to fdescfs_readdir() not calling vfs_read_dirent(). PR: kern/156177 MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-09T23:55:27.479857Z K 7 svn:log V 273 Add a VOP_UNLOCK() for the directory, when that is not what VOP_LOOKUP() returned. This fixes a bug in the experimental NFS server for the case where VFS_VGET() fails returning EOPNOTSUPP in the ReaddirPlus RPC, forcing the use of VOP_LOOKUP() instead. MFC after: 2 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-04-10T00:29:00.013615Z K 7 svn:log V 143 MFC 220432: - u3g.4: - remove self-reference in SEE ALSO section (originally was to s/XR/Xr) - cxgbe.4: - remove blank line - add closing .El END K 10 svn:author V 2 np K 8 svn:date V 27 2011-04-10T01:21:02.553049Z K 7 svn:log V 73 MFC r220410 Modify read/write ioctls to work with 64 bit registers too. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-10T01:54:42.541974Z K 7 svn:log V 269 Add support for a backup stable restart file to the nfsd, used for NFSv4 restart. This permits the nfsd to create the stable restart file as required and minimizes the risk of trouble if the file is lost. Suggested by: Tim Kientzle Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-04-10T03:49:53.897186Z K 7 svn:log V 743 Fix a long standing SUJ performance problem: - Keep a hash of indirect blocks that have recently been freed and are still referenced in the journal. - Lookup blocks in this hash before forcing a new block write to wait on the journal entry to hit the disk. This is only necessary to avoid confusion between old identities as indirects and new identities as file blocks. - Don't free jseg structures until the journal has written a record that invalidates it. This keeps the indirect block information around for as long as is required to be safe. - Force an empty journal block write when required to flush out stale journal data that is simply waiting for the oldest valid sequence number to advance beyond it. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-10T03:53:06.689761Z K 7 svn:log V 148 Update recommendation for mergemaster. The -a and -i options are exclusive. PR: docs/156271 Submitted by: Fedor Dikarev END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-04-10T09:35:42.757048Z K 7 svn:log V 142 MFC: r220046, r220106 Wait until the DMA engine is stopped before unmapping buffers and descriptors, which fixes DMA errors seen on sparc64. END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-04-10T09:35:44.303097Z K 7 svn:log V 142 MFC: r220046, r220106 Wait until the DMA engine is stopped before unmapping buffers and descriptors, which fixes DMA errors seen on sparc64. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-10T10:15:49.775890Z K 7 svn:log V 24 Remove stray semicolon. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-10T10:17:01.258674Z K 7 svn:log V 21 Add link to rctl(8). END K 10 svn:author V 3 uqs K 8 svn:date V 27 2011-04-10T12:43:13.969722Z K 7 svn:log V 122 Rename 07.lpr to 07.lpd and re-connect to the build. This was forgotten in r216178. Submitted by: antoine Pointyhat: uqs END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-10T13:45:46.856900Z K 7 svn:log V 144 Modify the man pages to reflect the addition of a backup stable restart file, as done by r220510. This is a content change. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-10T14:11:07.999904Z K 7 svn:log V 447 Fix a bug in the userland rpc library, where it would use a negative return value from write to update its position in a buffer. The patch, courtesy of Andrey Simonenko, also simplifies a conditional by removing the "i != cnt" clause, since it is always true at this point in the code. The bug caused problems for mountd, when it generated a large reply to an exports RPC request. Submitted by: simon at comsys.ntu-kpi.kiev.ua MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T15:07:54.266693Z K 7 svn:log V 114 hastd(8) maintains a map of dirty extents, not hastctl(8). Fix this. Approved by: pjd (mentor) MFC after: 3 days END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T15:11:19.478097Z K 7 svn:log V 69 Fix a typo in comments. Approved by: pjd (mentor) MFC after: 3 days END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T15:21:46.679528Z K 7 svn:log V 151 In hast_proto_recv_data() check that the size of the data to be received does not exceed the buffer size. Approved by: pjd (mentor) MFC after: 1 week END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T15:28:37.214154Z K 7 svn:log V 145 In hast_proto_recv() remove unnecessary check. The size is checked later in hast_proto_recv_data(). Approved by: pjd (mentor) MFC after: 1 week END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T15:40:57.357449Z K 7 svn:log V 1580 MFC r220264: r220264 (pjd): GEOM has an internal mechanism to deal with ENOMEM errors returned via g_io_deliver(). In such case it increases 'pace' counter on each ENOMEM and reschedules the request. The 'pace' counter is decreased for each request going down, but until 'pace' is greater than zero, GEOM will handle at most 10 requests per second. For GEOM GATE users that are proxy to local GEOM providers (like ggatel(8) and HAST) we can end up with almost permanent slow down of GEOM down queue. This is because once we reach GEOM GATE queue limit, we return ENOMEM to the GEOM. This means that we have, eg. 1024 I/O requests in the GEOM GATE queue. To make room in the queue and stop returning ENOMEM we need to proceed the requests of course, but those requests are handled by userland daemons that handle them by reading/writing also from/to local GEOM providers. For example with HAST, a new requests comes to /dev/hast/data, which is GEOM GATE provider. GEOM GATE passes the request to hastd(8) and hastd(8) reads/writes from/to /dev/da0. Once we reach GEOM GATE queue limit, to free up a slot in GEOM GATE queue, hastd(8) has to read/write from/to /dev/da0, but this request will also be very slow, because GEOM now slows down all the requests. We end up with full queue that we can unload at the speed of 10 requests per second. This simply looks like a deadlock. Fix it by allowing userland daemons that work with both GEOM GATE and local GEOM providers to specify unlimited queue size, so GEOM GATE will never return ENOMEM to the GEOM. Approved by: pjd (mentor) END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T15:48:16.305684Z K 7 svn:log V 1704 MFC r220005, r220006, r220007, r220266, r220270, r220271, r220272, r220273, r220274: r220005 (pjd): Use role2str() when setting process title. r220006 (pjd): Use timeout from configuration file not only when sending and receiving, but also when establishing connection. r220007 (pjd): Add mapsize to the header just before sending the packet. Before it could change later and we were sending invalid mapsize. Some time ago I added optimization where when nodes are connected for the first time and there were no writes to them yet, there is no initial full synchronization. This bug prevented it from working. r220266 (pjd): Handle the problem described in r220264 by using GEOM GATE queue of unlimited length. This should fix deadlocks reported by HAST users. r220270 (pjd): Allow to disable sends or receives on a socket using shutdown(2) by interpreting NULL 'data' argument passed to proto_common_send() or proto_common_recv() as a will to do so. r220271 (pjd): Declare directions for sockets between primary and secondary. In HAST we use two sockets - one for only sending the data and one for only receiving the data. r220272 (pjd): When we are operating on blocking socket and get EAGAIN on send(2) or recv(2) this means that request timed out. Translate the meaningless EAGAIN to ETIMEDOUT to give administrator a hint that he might need to increase timeout in configuration file. r220273 (pjd): Handle ENOBUFS on send(2) by retrying for a while and logging the problem. r220274 (pjd): Increase default timeout from 5 seconds to 20 seconds. 5 seconds is definitely to short under heavy load and I was experiencing those timeouts in my recent tests. Approved by: pjd (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-10T17:07:02.937761Z K 7 svn:log V 184 Some callers of proc_reparent() already have the parent process locked. Detect the situation and avoid process lock recursion. Reported by: Fabian Keil END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-10T18:35:43.662847Z K 7 svn:log V 148 Rename a misnamed structure field (hr_loginclass), and reorder priv(9) constants to match the order and naming of syscalls. No functional changes. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-10T18:36:24.818205Z K 7 svn:log V 847 More fixes to --index-only, with or without a ports tree present, including better handling of --index-only in the rc file. * Don't do the work of handling the INDEX file if we won't need it anyway (-l, --list-origins, -e, -s) * Reorganize the final check of $pd (PORTSDIR) to properly handle the various combinations * Apply the same fix for $portsdir in -o that we did for multiport() * Since --check-depends now works with --index-only, update usage() Also: * Add a few more comments to the final fi of some long blocks * In multiport(), set missing=missing to aid debugging * Add some whitespace to the "Installing new +CONTENTS" message * In --clean-packages show the path in the delete prompt for stale packages that are not installed like we do for ones that are * In --check-port-dbdir simplify creation of the list of unique names END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-10T19:31:00.690357Z K 7 svn:log V 304 MFC r220299: In g_eli_read_done() and g_eli_write_done(), for a bio with bio_children > 1, g_destroy_bio() is never called and the bio leaks. Fix this by calling g_destroy_bio() earlier, before the check. Submitted by: Victor Balada Diaz (initial version) Approved by: pjd (mentor) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-10T20:43:07.737480Z K 7 svn:log V 365 Add some cleanup code to the module unload operation for the experimental NFS server, so that it doesn't leak memory when unloaded. However, unloading the NFSv4 server is not recommended, since all NFSv4 state will be lost by the unload and clients will have to recover the state after a server reload/restart as if the server crashed/rebooted. MFC after: 2 weeks END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-11T01:19:02.847929Z K 7 svn:log V 200 Make the --index* options more friendly to being duplicated in the rc file and command line. Mixing different options will still trigger an error, however having the same option both places will not. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2011-04-11T01:43:59.561991Z K 7 svn:log V 301 - Refactor softdep_setup_freeblocks() into a set of functions to prepare for a new journal specific partial truncate routine. - Use dep_current[] in place of specific dependency counts. This is automatically maintained when workitems are allocated and has less risk of becoming incorrect. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-11T03:12:10.568539Z K 7 svn:log V 155 Update supporting files for new features: * --update-if-newer * --check-depends can take --index|--index-only * portmaster.rc file located with the script END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-11T06:53:45.421910Z K 7 svn:log V 86 Generate opt_ah.h now for all ath tools, a recent HAL change of mine now requires it. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-11T08:23:27.435264Z K 7 svn:log V 416 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 MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-04-11T08:25:25.990936Z K 7 svn:log V 272 MFC r220100: Promote ksyms_map() and ksyms_unmap() to general facility copyout_map() and copyout_unmap() interfaces. MFC r220101: Handle zero length in copyout_unmap(). MFC r220102: Trim white spaces, adjust style. MFC r220114: Fix the check for vm_map_remove() error. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-11T09:06:11.640311Z K 7 svn:log V 102 MFC r220328: Remove malloc type M_NETADDR unused since splitting into vfs_subr.c and vfs_export.c. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-11T09:28:28.977818Z K 7 svn:log V 102 MFC r220328: Remove malloc type M_NETADDR unused since splitting into vfs_subr.c and vfs_export.c. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-11T11:15:34.837745Z K 7 svn:log V 42 De-dup the ar5416 rates array definition. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-11T14:30:45.944071Z K 7 svn:log V 215 Add an install target to release/Makefile instead of grubbing around (and requesting that users grub around) in /usr/obj. Also make sure that make clean removes the bootonly media and clean up that target a little. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-11T14:46:40.763912Z K 7 svn:log V 93 Make the keymap script continue to work now that stderr is being redirected to the log file. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-11T15:03:01.030564Z K 7 svn:log V 115 Don't do make release and make install in one step. Setting DESTDIR for make release has deleterious consequences. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-11T17:39:07.245020Z K 7 svn:log V 102 In multiport() with --update-if-newer, handle the case where all listed ports are already up to date. END K 10 svn:author V 3 avg K 8 svn:date V 27 2011-04-11T17:49:26.638937Z K 7 svn:log V 98 MFC r197076,197191: apperture size printing changes Reduce diff to head. On behalf of: n_hibma END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-11T19:27:44.896544Z K 7 svn:log V 51 Merge two similar functions to reduce duplication. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-11T20:54:30.013746Z K 7 svn:log V 223 Vrele ni_startdir in the experimental NFS server for the case of NFSv2 getting an error return from VOP_MKNOD(). Without this patch, the server file system remains busy after an NFSv2 VOP_MKNOD() fails. MFC after: 2 weeks END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-11T21:54:09.733768Z K 7 svn:log V 139 Vendor import of tzdata2011f: - During 2011 the Falkland Islands will remain on Summer time. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-11T21:55:09.770390Z K 7 svn:log V 20 Tag of tzdata2011f. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-11T21:57:59.144124Z K 7 svn:log V 139 MFV of r220547, tzdata2011f: - During 2011 the Falkland Islands will remain on Summer time. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-11T21:59:13.267718Z K 7 svn:log V 138 MFC of 220549, tzdata2011f: - During 2011 the Falkland Islands will remain on Summer time. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-11T21:59:59.691918Z K 7 svn:log V 138 MFC of 220549, tzdata2011f: - During 2011 the Falkland Islands will remain on Summer time. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2011-04-11T22:01:06.597627Z K 7 svn:log V 138 MFC of 220549, tzdata2011f: - During 2011 the Falkland Islands will remain on Summer time. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-12T00:05:01.066161Z K 7 svn:log V 85 Fix the problem created by jumbo numeric uids, and simplify the code in the process. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-04-12T00:38:22.970996Z K 7 svn:log V 61 Apply the same header-stripping ps trick to finding the pgid END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-12T01:19:23.948494Z K 7 svn:log V 161 Even though this block is not compiled currently, properly assign CSUM_TSO to if_hwassist rather than if_capabilities to avoid future errors. Reviewed by: jeff END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-12T02:07:23.753706Z K 7 svn:log V 496 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. Submitted by: ed (2009-05-03) Reviewed by: cperciva (2009-05-03), emaste Tested by: bz (for almost two years) MFC after: 4 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-04-12T04:48:37.116961Z K 7 svn:log V 49 Merge svn+ssh://svn.freebsd.org/base/head@220556 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-04-12T07:49:11.647837Z K 7 svn:log V 234 We don't need to call EOWRITE4(sc, EHCI_USBINTR, 0) directly from each EHCI bus driver at detach, hence ehci_detach() does exactly this since r199718. Submitted by: Luiz Otavio O Souza MFC after: 7 days Approved by: thompsa (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-12T08:10:25.995388Z K 7 svn:log V 773 Introduce geom_map, a GEOM provider designed for use by embedded flash stores. Some devices - notably those with uboot - don't have an explicit partition table (eg like Redboot's FIS.) geom_map thus provides an easy way to export the hard-coded flash layout as geom providers for use by filesystems and other tools. It also includes a "search" function which allows for dynamic creation of partition layouts where the device only has a single hard-coded partition. For example, if there is a "kernel+rootfs" partition, a single image can be created which appends the rootfs after the kernel with an appropriate search string. geom_map can be told to search for said search string and create a partition beginning after it. Submitted by: Aleksandr Rybalko END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2011-04-12T08:13:18.133084Z K 7 svn:log V 215 Use the full and proper company name for Swinburne University of Technology throughout the source tree. Requested by: Grenville Armitage, Director of CAIA at Swinburne University of Technology MFC after: 3 days END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-12T08:54:49.537076Z K 7 svn:log V 106 MFC r220358: Document -w for swapuse. PR: docs/156089 Submitted by: Andrey Ignatov END K 10 svn:author V 7 trociny K 8 svn:date V 27 2011-04-12T09:36:38.320203Z K 7 svn:log V 358 MFC r220299: In g_eli_read_done() and g_eli_write_done(), for a bio with bio_children > 1, g_destroy_bio() is never called and the bio leaks. Fix this by calling g_destroy_bio() earlier, before the check. Submitted by: Victor Balada Diaz (initial version) Tested by: Oliver Pinter Approved by: kib (co-mentor) END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-12T09:55:24.266542Z K 7 svn:log V 195 Implement automatic SCSI sense fetching for ata(4) in ATA_CAM mode. While it could be successfully done by CAM error recovery code, I was told by several people that it is also a SIM obligation. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-04-12T11:17:46.906367Z K 7 svn:log V 191 MFC r212502 (qingli): Adding an address on an interface also requires the loopback route to that address be installed. Submitted by: Ingo Flaschberger PR: kern/150481 END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-12T11:24:59.810198Z K 7 svn:log V 53 Implement automatic SCSI sense fetching for ahci(4). END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-12T11:29:15.697617Z K 7 svn:log V 132 Implement automatic SCSI sense fetching for siis(4). Fix device freeze leak on recovery request (READ LOG, REQUEST SENSE) failure. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-12T12:57:46.748669Z K 7 svn:log V 117 Update some terminology: floppies are no longer built, and FreeBSD is not necessarily distributed by CVS any longer. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-04-12T15:20:34.901330Z K 7 svn:log V 151 Restore previous behaviour - always match rule when we doing tagging, even when tag is already exists. Reported by: Vadim Goncharov MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-12T16:01:27.817059Z K 7 svn:log V 147 Implement automatic SCSI sense fetching for mvs(4). Make few improvements/changes to ATAPI PIO support to pass most of scgcheck (cdrtools) tests. END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-04-12T16:43:29.970447Z K 7 svn:log V 203 MFC r216391: Handle the special ruleset 0 in devfs_ruleset_use(). An attempt set the current ruleset to 0 with command "devfs ruleset 0" triggered a KASSERT in devfs_ruleset_create(). PR: kern/125030 END K 10 svn:author V 2 jh K 8 svn:date V 27 2011-04-12T16:52:05.099131Z K 7 svn:log V 203 MFC r216391: Handle the special ruleset 0 in devfs_ruleset_use(). An attempt set the current ruleset to 0 with command "devfs ruleset 0" triggered a KASSERT in devfs_ruleset_create(). PR: kern/125030 END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-04-12T17:02:40.494290Z K 7 svn:log V 340 - Integrate netdump better in the shutdown code: * Invoke netdump handler directly from doadump(). * Remove checks replication and export of typically static variables - Remove module handler for netdump and provide a SYSINIT() wrap for netdump_config() - Revert some change for de-staticizing dumppcb and dumptid Tested by: pluknet END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-04-12T19:13:10.036441Z K 7 svn:log V 170 The replication mode that is currently support is fullsync, not memsync. Correct this and print a warning if different replication mode is configured. MFC after: 1 week END K 10 svn:author V 5 trasz K 8 svn:date V 27 2011-04-12T20:10:15.288999Z K 7 svn:log V 68 Get rid of DSIZ; instead just call the sizing function if provided. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-04-12T20:31:33.144582Z K 7 svn:log V 175 Fix 'zfs list ' handling. If the path was found, the 'ret' variable was uninitialized. PR: kern/155940 Submitted by: KOIE Hidetaka MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-12T20:50:57.002666Z K 7 svn:log V 422 Refactor hard-reset implementation in ahci(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 4 jkim K 8 svn:date V 27 2011-04-12T21:08:34.944415Z K 7 svn:log V 211 Add a new tunable 'machdep.disable_tsc_calibration' to allow skipping TSC frequency calibration. For Intel processors, if brand string from CPUID contains its nominal frequency, this frequency is used instead. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-12T22:12:23.867493Z K 7 svn:log V 58 Add definitions for CPUID instruction 6, ECX information. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-12T22:15:46.196290Z K 7 svn:log V 141 Probe capability to find effective frequency. When the TSC is P-state invariant, APERF/MPERF ratio can be used to find effective frequency. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-12T22:22:01.732180Z K 7 svn:log V 71 Add forgotten declarations for tsc_perf_stat from the previous commit. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-12T22:41:52.946229Z K 7 svn:log V 214 Do not use TSC for DELAY(9) if it not P-state invariant to avoid possible foot-shooting. DELAY() becomes unreliable when TSC frequency varies wildly, especially cpufreq(4) and powerd(8) are used at the same time. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-04-12T22:48:03.648988Z K 7 svn:log V 264 Add support for IEE/IEC (and now also SI) power of two notions of prefixes (Ki, Mi, Gi...) for humanize_number(3). Note that applications has to pass HN_IEC_PREFIXES to use this feature for backward compatibility reasons. Reviewed by: arundel MFC after: 2 weeks END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-12T23:04:01.993739Z K 7 svn:log V 249 Reinstate cpu_est_clockrate() support for P-state invariant TSC if APERF and MPERF MSRs are available. It was disabled in r216443. Remove the earlier hack to subtract 0.5% from the calibrated frequency as DELAY(9) is little bit more reliable now. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-12T23:49:07.676615Z K 7 svn:log V 50 Reduce errors in effective frequency calculation. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-04-13T00:03:49.575165Z K 7 svn:log V 215 Fix a couple of mbuf leaks introduced by r217242. I do not believe that these leaks had a practical impact, since the situations in which they would have occurred would have been extremely rare. MFC after: 2 weeks END K 10 svn:author V 3 gad K 8 svn:date V 27 2011-04-13T00:36:19.777073Z K 7 svn:log V 474 - Fix the code that matches userids in match_jobspec(). It needs to check the username-for-accounting field (P), not the username-for-headerpage (L). These are usually the same value, except that control files do not have the username-for-headerpage field if the user has requested no header page. - Also rename the cji_username field to cji_headruser, to make it clear that the value should only be used for the header page. (aka banner page) MFC after: 3 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T02:40:45.130144Z K 7 svn:log V 140 Add the initial AR9285 PHY glue for supporting antenna diversity. This code isn't currently used anywhere; it's just linked into the build. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T03:05:15.237793Z K 7 svn:log V 126 Add OS_REG_RMW, which mirrors ath9k's REG_RMW. This macro does a read-modify-write pass with register bits to set and clear. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T03:05:42.593461Z K 7 svn:log V 47 Add new fields to the v4k EEPROM modal header. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T04:40:59.578970Z K 7 svn:log V 773 Port over a TX gain fix from ath9k specific to the AR9285 (Kite) and AR9271. Note: this HAL currently only supports the AR9285. From Linux ath9k: The problem is that when the attenuation is increased, the rate will start to drop from MCS7 -> MCS6, and finally will see MCS1 -> CCK_11Mbps. When the rate is changed b/w CCK and OFDM, it will use register desired_scale to calculate how much tx gain need to change. The output power with the same tx gain for CCK and OFDM modulated signals are different. This difference is constant for AR9280 but not AR9285/AR9271. It has different PA architecture a constant. So it should be calibrated against this PA characteristic. The driver has to read the calibrated values from EEPROM and set the tx power registers accordingly. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-13T06:36:22.870415Z K 7 svn:log V 293 As soon as siis_reset() doesn't waits for device readiness, but only for controller port readiness (that should set just after PHY ready signal), reduce wait time from 10s to 1s before trying more aggressive reset method. This should improve system responsibility in some failure conditions. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-13T11:28:46.754192Z K 7 svn:log V 65 Staticize malloc types. Approved by: lstewart MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T11:32:15.119463Z K 7 svn:log V 154 Bring over the antenna diversity logic support for Kite. Again, this is just the code ported from ath9k and included in the build, it isn't yet enabled. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2011-04-13T12:19:03.260414Z K 7 svn:log V 91 Remove the now defunct kern.ipc.nmbufs tunable. PR: kern/132497 (part) MFC after: 1 week END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-04-13T12:46:25.475438Z K 7 svn:log V 150 - Fixed nfs_printf() to use vprintf(). - Fixed vfs.nfs.acdebug sysctl's description. - Fixed panic when compiled with NFS_ACDEBUG. MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2011-04-13T13:05:48.984846Z K 7 svn:log V 39 Show client's access cache statistics. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-04-13T13:24:27.214567Z K 7 svn:log V 138 Make sure that extra threads in 32-bit processes stay in 32-bit mode. This fixes operation of threaded 32-bit binaries on 64-bit kernels. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T14:51:07.234041Z K 7 svn:log V 30 Change this to be less noisy. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T15:08:51.372655Z K 7 svn:log V 341 More kite diversity related changes. * add a diversity flag to the HAL debugging section * add a check to make sure the kite diversity code doesn't run on boards that don't require it, as not all Kite chips will implement it. * add some debug statements when the diversity code makes changes to the antenna diversity/combining setup. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T15:12:48.519506Z K 7 svn:log V 216 Add in the last bit of the HAL support for Kite diversity. * add a new method, specifically for doing per-RX packet antenna diversity * set that HAL method only if it's Kite and a Kite chip that does diversity. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2011-04-13T15:17:23.001749Z K 7 svn:log V 288 Add in the AR9285 (Kite) diversity to if_ath, enabling TX/RX antenna diversity. This is bit dirty and likely should be revised at a later date, with an eye to unifying/tidying up the whole diversity setup and allowing developers to do "tricky stuff" as they desire. For now, this works. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-04-13T16:20:54.315247Z K 7 svn:log V 678 Improve SATA Asynchronous Notification feature support in CAM: - make SATA SIMs announce capabilities to handle SDB with Notification bit; - make PMP driver honor this SIMs capability; - make SATA XPT to negotiate and enable this feature for ATAPI devices. This feature allows supporting SATA ATAPI devices to inform system about some events happened, that may require attention. In my case this allows LG GH22LS50 SATA DVR-RW drive to report tray open/close events. Events reported to CAM in form of AC_SCSI_AEN async. Further they could be used as a hints for checking device status and reporting media change to upper layers, for example, via spoiling mechanism of GEOM. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-04-13T16:35:43.456448Z K 7 svn:log V 69 Remove mii(4) dependency and unneeded headers. Reviewed by: davidch END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-13T18:18:52.512859Z K 7 svn:log V 24 Import ACPICA 20110413. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2011-04-13T18:19:41.089491Z K 7 svn:log V 21 Tag ACPICA 20110413. END