ƒ³f236159 173 234 557 557 353 147 191 99 150 116 246 132 1403 122 116 117 127 121 201 390 1376 186 133 133 216 401 244 188 190 193 225 120 199 327 116 497 118 228 541 546 229 160 136 309 133 153 155 155 162 112 1479 1205 137 231 223 188 610 592 1801 1801 391 391 260 348 131 131 173 173 222 147 310 123 601 262 149 155 315 149 149 204 541 272 737 315 181 236 140 237 248 133 135 156 253 224 246 500 171 128 220 166 183 316 485 229 168 410 410 410 278 735 1905 448 136 153 110 122 142 208 208 130 135 172 143 329 263 245 255 261 277 282 339 385 288 201 288 154 232 165 565 187 382 152 150 128 242 218 308 288 154 184 181 246 165 113 159 141 223 1027 231 410 670 670 374 1660 173 281 316 311 390 201 316 255 228 221 K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-05-27T16:27:04.861966Z K 7 svn:log V 136 Allow the load address used by ARM ubldr to be set via Make argument. In particular, this simplifies scripts that build system images. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-05-27T18:55:23.007608Z K 7 svn:log V 461 MFC r234691 Implement the D "cpu" variable, which returns curcpu. I have chosen not to follow the example of OpenSolaris and its descendants, which implemented cpu as an inline that took a value out of curthread. At certain points in the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in particular, just before the thread gets descheduled) so instead I have implemented this as its own built-in variable. Sponsored by: Sandvine Inc. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-05-27T18:57:20.905882Z K 7 svn:log V 461 MFC r234691 Implement the D "cpu" variable, which returns curcpu. I have chosen not to follow the example of OpenSolaris and its descendants, which implemented cpu as an inline that took a value out of curthread. At certain points in the FreeBSD scheduler curthread->td_oncpu will no longer be valid (in particukar, just before the thread gets descheduled) so instead I have implemented this as its own built-in variable. Sponsored by: Sandvine Inc. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2012-05-27T19:03:16.176643Z K 7 svn:log V 257 MFC r225640 Clear transmit checksum offload context state upon lem(4) interface initialization. Prior to this change packets may be transmitted with an incorrect checksum. em(4) already has an equivalent change in r213234. Obtained From: Sandvine END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-05-27T19:10:29.087311Z K 7 svn:log V 52 MFC r235635 Decode new battery status indications. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-05-27T21:31:28.327656Z K 7 svn:log V 94 MFC of 235610 Add missing `continue' statement at end of case. Found by: Kevin Lo (kevlo@) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-05-28T00:29:08.730396Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-05-28T04:47:46.691046Z K 7 svn:log V 54 MFC r235425: Sync DLTs with the latest pcap version. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-05-28T07:34:52.341577Z K 7 svn:log V 20 MFC: libpcap 1.2.1. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T08:50:00.784196Z K 7 svn:log V 149 Invoke group attach/detach handlers after releasing locks, so that event subscribers could use M_WAITOK. This should reduce lock contention as well. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T09:23:12.303885Z K 7 svn:log V 36 Merge head r233826 through r236168. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-05-28T09:30:13.300389Z K 7 svn:log V 1310 It turns out that too many drivers are not only parsing the L2/3/4 headers for TSO but also for generic checksum offloading. Ideally we would only have one common function shared amongst all drivers, and perhaps when updating them for IPv6 we should introduce that. Eventually we should provide the meta information along with mbufs to avoid (re-)parsing entirely. To not break IPv6 (checksums and offload) and to be able to MFC the changes without risking to hurt 3rd party drivers, duplicate the v4 framework, as other OSes have done as well. Introduce interface capability flags for TX/RX checksum offload with IPv6, to allow independent toggling (where possible). Add CSUM_*_IPV6 flags for UDP/TCP over IPv6, and reserve further for SCTP, and IPv6 fragmentation. Define CSUM_DELAY_DATA_IPV6 as we do for legacy IP and add an alias for CSUM_DATA_VALID_IPV6. This pretty much brings IPv6 handling in line with IPv4. TSO is still handled in a different way and not via if_hwassist. Update ifconfig to allow (un)setting of the new capability flags. Update loopback to announce the new capabilities and if_hwassist flags. Individual driver updates will have to follow, as will SCTP. Reported by: gallatin, dim, .. Reviewed by: gallatin (glanced at?) MFC after: 3 days X-MFC with: r235961,235959,235958 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-05-28T09:49:28.835919Z K 7 svn:log V 28 Vendor import of BIND 9.8.3 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-05-28T09:49:59.134018Z K 7 svn:log V 22 Tag the 9.8.3 release END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T09:51:10.835190Z K 7 svn:log V 21 Make compiler happy. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-05-28T10:21:54.773605Z K 7 svn:log V 33 Vendor import of BIND 9.6-ESV-R7 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-05-28T10:22:46.152715Z K 7 svn:log V 27 Tag the 9.6-ESV-R7 release END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-05-28T10:45:51.906470Z K 7 svn:log V 109 Removed the IFCAP_ prefix when printing the IPv6 checksum capabilities. Submitted by: dim MFC after: 3 days END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-05-28T12:11:00.976932Z K 7 svn:log V 292 Correctly export operator new / delete for things linking against libsupc++ but not libstdc++. Unfortunately, it appears that libsupc++ / libstdc++ have a different idea of the type of size_t to the rest of the world, which may cause problems later on... Reported by: des MFC after: 1 week END K 10 svn:author V 3 rea K 8 svn:date V 27 2012-05-28T12:13:04.950726Z K 7 svn:log V 1282 if_lagg: allow to invoke SIOCSLAGGPORT multiple times in a row Currently, 'ifconfig laggX down' does not remove members from this lagg(4) interface. So, 'service netif stop laggX' followed by 'service netif start laggX' will choke, because "stop" will leave interfaces attached to the laggX and ifconfig from the "start" will refuse to add already-existing interfaces. The real-world case is when I am bundling together my Ethernet and WiFi interfaces and using multiple profiles for accessing network in different places: system being booted up with one profile, but later this profile being exchanged to another one, followed by 'service netif restart' will not add WiFi interface back to the lagg: the "stop" action from 'service netif restart' will shut down my main WiFi interface, so wlan0 that exists in the lagg0 will be destroyed and purged from lagg0; the "start" action will try to re-add both interfaces, but since Ethernet one is already in lagg0, ifconfig will refuse to add the wlan0 from WiFi interface. Since adding the interface to the lagg(4) when it is already here should be an idempotent action: we're really not changing anything, so this fix doesn't change the semantics of interface addition. Approved by: thompsa Reviewed by: emaste MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T13:09:30.345625Z K 7 svn:log V 90 Catch up with r235505 to kernel: Remove rtlabel stuff, that isn't supported in FreeBSD. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T13:27:40.864741Z K 7 svn:log V 37 Catch up with struct pfi_kif change. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T13:49:52.980604Z K 7 svn:log V 37 Catch up with struct pfi_kif change. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-28T13:55:49.518505Z K 7 svn:log V 123 Fix calculation of the execution buffer end in the mapped pages when it is spilled into the next page. MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-28T13:58:08.316897Z K 7 svn:log V 308 Disable end of buffer fixup by default. New DDX does not need this, and since batch_len is unused by Linux driver, it seems that it is sometimes gets passed wrong. This causes command buffer corruption and GPU hung. Old GEMified DDX drivers that needs this workaround are not supported. MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-28T14:33:15.344947Z K 7 svn:log V 151 Make legacy ATA to not call device_add_child() with unit number but without driver name. This fixed legacy ATA breakage by r235978. MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-05-28T14:45:12.332445Z K 7 svn:log V 94 - Include forgotten bsd.own.mk and fix condition Reported by: Jan Beich END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-28T14:50:13.861439Z K 7 svn:log V 94 Fix fallout from r234108, I missed memory allocation and copyout for the DIOCRGETASTATS case. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T15:34:55.447997Z K 7 svn:log V 100 Make yacc a bootstrap tool if building on head, since the new yacc is not 100% backward compatible. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-05-28T16:33:58.083606Z K 7 svn:log V 129 Catch a corner case where ssegs could be 0 and thus i would be 0 and we index suinfo out of bounds (i.e. -1). Approved by: gber END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-05-28T16:37:42.237756Z K 7 svn:log V 25 Sync with ^/head@236187. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-28T17:35:23.131578Z K 7 svn:log V 106 Update a comment in get_pv_entry() to reflect the changes to the synchronization of pv_vafree in r236158. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-05-28T17:58:10.567903Z K 7 svn:log V 231 - Correct the comments regarding the sizes of some partitions in the DataFlash. - Add a mapping for the Nut/OS configuration DataFlash partition according to the board manual (but not known to either Linux or U-Boot (patches). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-05-28T19:13:21.163379Z K 7 svn:log V 20 MFC: tcpdump 4.2.1. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-05-28T19:22:23.551271Z K 7 svn:log V 401 libfetch: Avoid SIGPIPE on network connections. To avoid unexpected process termination from SIGPIPE when writing to a closed network connection, enable SO_NOSIGPIPE on all network connections. The POSIX standard MSG_NOSIGNAL is not used since it requires modifying all send calls to add this flag. This is particularly nasty for SSL connections. Reviewed by: des Tested by: bapt MFC after: 5 days END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T19:42:49.310885Z K 7 svn:log V 26 Add missing (dummy) tests END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T19:44:35.262726Z K 7 svn:log V 135 Change session idle timeout from 1800 s to 7200 s, and force unlink_on_exit off; the default is supposed to DTRT, but doesn't seem to. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-05-28T19:47:56.593988Z K 7 svn:log V 446 Upgrade to BIND version 9.8.3, the latest from ISC. Feature Change * BIND now recognizes the TLSA resource record type, created to support IETF DANE (DNS-based Authentication of Named Entities) Bug Fix * The locking strategy around the handling of iterative queries has been tuned to reduce unnecessary contention in a multi- threaded environment. Other critical bug fixes are included. All BIND users are encouraged to upgrade. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-05-28T19:48:37.573022Z K 7 svn:log V 451 Upgrade to BIND version 9.6-ESV-R7, the latest from ISC. Feature Change * BIND now recognizes the TLSA resource record type, created to support IETF DANE (DNS-based Authentication of Named Entities) Bug Fix * The locking strategy around the handling of iterative queries has been tuned to reduce unnecessary contention in a multi- threaded environment. Other critical bug fixes are included. All BIND users are encouraged to upgrade. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-05-28T20:44:11.772088Z K 7 svn:log V 134 When writing the jid via the -i flag, do it right when the jail is created, before any commands run. /etc/rc.d/jail depends on this. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-28T21:15:54.565691Z K 7 svn:log V 68 A small simplification to i915_gem_pager_fault(). Reviewed by: kib END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T21:19:33.489051Z K 7 svn:log V 44 MFH r230044, r233456: style and markup nits END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T21:25:19.703336Z K 7 svn:log V 216 MFH r208957: check return value from archive_read_new() MFH r214137, r214140, r214174, r224584: support reading from stdin MFH r230044, r233456: style and markup nits MFH r234311: correct name in copyright statement END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T21:26:26.592717Z K 7 svn:log V 41 MFH r200068: connect unzip to the build. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T21:59:05.337834Z K 7 svn:log V 61 Forgot to commit mergeinfo when I MFHed pam_unix last month. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T22:07:32.062604Z K 7 svn:log V 63 MFH r230622: use build tools, not host tools, to build aicasm. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-28T22:09:50.000237Z K 7 svn:log V 63 MFH r230622: use build tools, not host tools, to build aicasm. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-05-28T22:29:47.627916Z K 7 svn:log V 69 Vendor import of byacc 20120526 Approved by: des (mentor, implicit) END K 10 svn:author V 4 bapt K 8 svn:date V 27 2012-05-28T22:30:36.923038Z K 7 svn:log V 19 Tag byacc 20120526 END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-28T22:58:13.625004Z K 7 svn:log V 1385 MFC r229821 Correct an error of omission in the implementation of the truncation operation on POSIX shared memory objects and tmpfs. Previously, neither of these modules correctly handled the case in which the new size of the object or file was not a multiple of the page size. Specifically, they did not handle partial page truncation of data stored on swap. As a result, stale data might later be returned to an application. Interestingly, a data inconsistency was less likely to occur under tmpfs than POSIX shared memory objects. The reason being that a different mistake by the tmpfs truncation operation helped avoid a data inconsistency. If the data was still resident in memory in a PG_CACHED page, then the tmpfs truncation operation would reactivate that page, zero the truncated portion, and leave the page pinned in memory. More precisely, the benevolent error was that the truncation operation didn't add the reactivated page to any of the paging queues, effectively pinning the page. This page would remain pinned until the file was destroyed or the page was read or written. With this change, the page is now added to the inactive queue. MFC r230180 When tmpfs_write() resets an extended file to its original size after an error, we want tmpfs_reg_resize() to ignore I/O errors and unconditionally update the file's size. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-28T23:31:48.708108Z K 7 svn:log V 1111 MFC r230120 Neither tmpfs_nocacheread() nor tmpfs_mappedwrite() needs to call vm_object_pip_{add,subtract}() on the swap object because the swap object can't be destroyed while the vnode is exclusively locked. Moreover, even if the swap object could have been destroyed during tmpfs_nocacheread() and tmpfs_mappedwrite() this code is broken because vm_object_pip_subtract() does not wake up the sleeping thread that is trying to destroy the swap object. Free invalid pages after an I/O error. There is no virtue in keeping them around in the swap object creating more work for the page daemon. (I believe that any non-busy page in the swap object will now always be valid.) vm_pager_get_pages() does not return a standard errno, so its return value should not be returned by tmpfs without translation to an errno value. There is no reason for the wakeup on vpg in tmpfs_mappedwrite() to occur with the swap object locked. Eliminate printf()s from tmpfs_nocacheread() and tmpfs_mappedwrite(). (The swap pager already spams your console if data corruption is imminent.) END K 10 svn:author V 7 linimon K 8 svn:date V 27 2012-05-28T23:32:18.686710Z K 7 svn:log V 41 Reduce REMOVE_SETUPNODE_TIME to one day. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2012-05-28T23:35:16.394253Z K 7 svn:log V 134 Clean up claim-chroots that failed (usually due to ssh timeout after copy to client). This relieves pressure on /tmp on the clients. END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2012-05-29T00:53:51.646838Z K 7 svn:log V 125 Update mxge(4) firmware to the latest version available from Myricom (1.4.55). MFC after: 3 days Sponored by: Myricom, Inc. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-05-29T01:48:06.186524Z K 7 svn:log V 94 Make sure that each va_start has one and only one matching va_end, especially in error cases. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-29T01:52:38.564547Z K 7 svn:log V 517 Replace all uses of the vm page queues lock by a r/w lock that is private to this pmap.c. This new r/w lock is used primarily to synchronize access to the TTE lists. However, it will be used in a somewhat unconventional way. As finer-grained TTE list locking is added to each of the pmap functions that acquire this r/w lock, its acquisition will be changed from write to read, enabling concurrent execution of the pmap functions with finer-grained locking. Reviewed by: attilio Tested by: flo MFC after: 10 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-05-29T03:23:18.062615Z K 7 svn:log V 499 Compute the master clock frequency, so we no longer need to have it compiled into the kernel. This allows us to boot the same kernel on machines with different master clock frequencies, so long as we can determine the main clock frequency accurately. Cleanup the pmc clock init function so it can be called in early boot so we can use the serial port just after we call cninit. # We have two calls to at91_pmc_clock_init for reasons unknown, that will # be fixed later -- it is harmless for now. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-05-29T04:30:02.423286Z K 7 svn:log V 1703 MFC r235816: Make IPMI work in the bce driver even when the interface is configured down. Formerly, IPMI communication was lost whenever the interface was not up. The reason was that the BCE_EMAC_MODE register was not configured with the correct media settings. There are two parts to the fix. First, resetting the chip in bce_reset() causes the BCE_EMAC_MODE register to be initialized to a default value that does not necessarily correspond to the actual media settings. The fix implemented here is a bit of a hack. Ideally, at the end of bce_reset() we would poll the PHY to determine the negotiated media, and then we would set the BCE_EMAC_MODE register accordingly. That is difficult, since the PHY is abstracted behind the MII layer and is not supposed to be queried directly from the MAC driver. Instead, we read the BCE_EMAC_MODE register at the beginning of bce_reset() and then restore its media bits to their original values before returning. If IPMI is up and running, then the link is already established and the BCE_EMAC_MODE register is already set appropriately when bce_reset() is called. If IPMI is not running, no harm is done by preserving the BCE_EMAC_MODE settings. The driver will set the register properly once the interface is configured up and link is established. Second, bce_miibus_statchg() is sometimes called when the link is down. In that case, the reported media settings are invalid. Formerly, the driver used them anyway to setup the BCE_EMAC_MODE register. We now avoid changing any MAC registers unless link is active and the reported media settings are valid. Submitted by: jdp Tested by: jdp END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-05-29T04:32:27.152848Z K 7 svn:log V 1703 MFC r235816: Make IPMI work in the bce driver even when the interface is configured down. Formerly, IPMI communication was lost whenever the interface was not up. The reason was that the BCE_EMAC_MODE register was not configured with the correct media settings. There are two parts to the fix. First, resetting the chip in bce_reset() causes the BCE_EMAC_MODE register to be initialized to a default value that does not necessarily correspond to the actual media settings. The fix implemented here is a bit of a hack. Ideally, at the end of bce_reset() we would poll the PHY to determine the negotiated media, and then we would set the BCE_EMAC_MODE register accordingly. That is difficult, since the PHY is abstracted behind the MII layer and is not supposed to be queried directly from the MAC driver. Instead, we read the BCE_EMAC_MODE register at the beginning of bce_reset() and then restore its media bits to their original values before returning. If IPMI is up and running, then the link is already established and the BCE_EMAC_MODE register is already set appropriately when bce_reset() is called. If IPMI is not running, no harm is done by preserving the BCE_EMAC_MODE settings. The driver will set the register properly once the interface is configured up and link is established. Second, bce_miibus_statchg() is sometimes called when the link is down. In that case, the reported media settings are invalid. Formerly, the driver used them anyway to setup the BCE_EMAC_MODE register. We now avoid changing any MAC registers unless link is active and the reported media settings are valid. Submitted by: jdp Tested by: jdp END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-05-29T04:44:51.457094Z K 7 svn:log V 294 MFC r235821: Don't force max payload size to 128. Root complex and Endpoint will negotiate with each other on the TLP payload size so blindly forcing the size to 128 can cause a completion error which in turn will stop device. Reported by: Geans Pin < geanspin <> broadcom dot com > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-05-29T04:53:46.228796Z K 7 svn:log V 294 MFC r235821: Don't force max payload size to 128. Root complex and Endpoint will negotiate with each other on the TLP payload size so blindly forcing the size to 128 can cause a completion error which in turn will stop device. Reported by: Geans Pin < geanspin <> broadcom dot com > END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-05-29T05:09:40.609545Z K 7 svn:log V 163 Fix the problem acpi_sleep_force() hang. Suspending from callout cause the freeze in DEVICE_SUSPEND(). Suspend from acpi_task thread in stead. MFC after: 3 days END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-05-29T05:28:34.835125Z K 7 svn:log V 251 Reorder resume procedures. DEVICE_RESUME() should be done before AcpiLeaveSleepState() because PCI config space evaluation can be occurred during control method executions. This should fix one of the hang up problems on resuming. MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-05-29T05:43:21.238474Z K 7 svn:log V 35 MFC: commandline -> command line. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-29T08:13:40.749784Z K 7 svn:log V 35 Fix couple of missed from r235991. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-29T08:53:24.411580Z K 7 svn:log V 81 MFC r236042: Clarify the SEEK_HOLE description, it repositions the file pointer. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-29T08:56:56.371857Z K 7 svn:log V 81 MFC r236042: Clarify the SEEK_HOLE description, it repositions the file pointer. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-29T09:11:19.216586Z K 7 svn:log V 129 Pass a filename, rather than a file descriptor, to libarchive. Submitted by: Alex Kozlov MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-29T10:35:56.886375Z K 7 svn:log V 51 Remove incorrect assertion, I've added in r234456. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-29T11:22:40.383993Z K 7 svn:log V 217 Plug request and references leak caused by race between invalidated ond probe periph destruction and new incoming probe request. This at least caused problems with SATA Port Multipliers hot-plug. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-29T11:48:53.836934Z K 7 svn:log V 31 Indicate incumbent candidates. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-29T12:33:09.202651Z K 7 svn:log V 504 We can't trust V_pf_status.states++ and V_pf_status.states-- in the forwarding path as soon as we get out of the pf giant lock. o Use uma_zone_get_cur() to estimate current number of states. Since function is considered too expensive, run it in the expiry thread only, and not for every state examined. XXX: this may make adaptive timeouts and expire times sent via pfsync less precise under certain circumctances. o Run state expiry 10 times more often with 10 times smaller chunk argument. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-05-29T12:52:30.388070Z K 7 svn:log V 164 Fix BPF_JITTER code broken by r235746. Pointed by: jkim Reviewed by: jkim (except locking changes) Approved by: (mentor) MFC after: 2 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-29T13:54:53.131270Z K 7 svn:log V 57 MFC r235691: Typo and mdoc(7) style fixes. PR: 167890 END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-29T14:23:57.658580Z K 7 svn:log V 63 Indicate incumbent status along with active / inactive status. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-05-29T14:28:46.134373Z K 7 svn:log V 222 Allow to change number of openings (used tags) for ATA/SATA devices via `camcontrol tags ... -N ...`. There is no need to tune it in usual cases, but some users want to have it for debugging purposes. MFC after: 2 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-29T14:35:51.496463Z K 7 svn:log V 57 MFC r235693: Typo and mdoc(7) style fixes. PR: 168117 END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-29T14:36:07.504211Z K 7 svn:log V 57 MFC r235693: Typo and mdoc(7) style fixes. PR: 168117 END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-05-29T14:41:16.493763Z K 7 svn:log V 109 Fix lock interaction table for rmlocks - by default they cannot sleep, just like rwlocks. MFC after: 1 week END K 10 svn:author V 7 fabient K 8 svn:date V 27 2012-05-29T14:50:21.171229Z K 7 svn:log V 444 MFC r233628, r234598, r235229, r235831, r226986. Add software PMC support. New kernel events can be added at various location for sampling or counting. This will for example allow easy system profiling whatever the processor is with known tools like pmcstat(8). Simultaneous usage of software PMC and hardware PMC is possible, for example looking at the lock acquire failure, page fault while sampling on instructions. Sponsored by: NETASQ END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-05-29T15:08:35.458925Z K 7 svn:log V 177 MFC r235787: Fix panic with RACCT that could occur in low memory (or out of swap) situations, due to fork1() calling racct_proc_exit() without calling racct_proc_fork() first. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-29T15:41:20.778784Z K 7 svn:log V 644 Rename pmap_collect() to pmap_pv_reclaim() and rewrite it such that it no longer uses the active and inactive paging queues. Instead, the pmap now maintains an LRU-ordered list of pv entry pages, and pmap_pv_reclaim() uses this list to select pv entries for reclamation. Note: The old pmap_collect() tried to avoid reclaiming mappings for pages that have either a hold_count or a busy field that is non-zero. However, this isn't necessary for correctness, and the locking in pmap_collect() was insufficient to guarantee that such mappings weren't reclaimed. The new pmap_pv_reclaim() doesn't even try. Tested by: sbruno MFC after: 5 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-05-29T15:50:44.293799Z K 7 svn:log V 217 Modify the NFSv4 client to prepare it for implementation of Commit through DS for pNFS. This consists of moving the compare/copy of the commit verifier down into the function that does the Commit RPC through the MDS. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-05-29T15:56:30.037620Z K 7 svn:log V 84 Add quirk for Marvell based AHCI controller. MFC after: 3 days Suggested by: mav @ END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-29T16:11:15.647810Z K 7 svn:log V 143 MFi386 pmap r233433 Disable detailed PV entry accounting by default. (A config option for enabling it was already introduced in r233433.) END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-05-29T16:21:43.333552Z K 7 svn:log V 43 MFC 235915: Hook up mkulzma to the build. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2012-05-29T16:25:01.381728Z K 7 svn:log V 140 Fix a typo in wbwd so that CRF5 is actually written to the data register rather than the index register. Reviewed by: bz MFC after: 3 days END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2012-05-29T16:39:42.900497Z K 7 svn:log V 151 Add device ids for the Winbond 83627DHG-P chip and set the registers to trigger the keyboard reset line on timeout. Reviewed by: bz MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-05-29T17:53:11.644212Z K 7 svn:log V 41 Remove unused sysctl. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-05-29T18:05:24.420339Z K 7 svn:log V 43 Remove unused variable. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-05-29T18:09:14.729959Z K 7 svn:log V 64 Eliminate 'where' argument, we don't use it. MFC after: 3 days END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-05-29T18:11:45.587242Z K 7 svn:log V 160 Tighten up the assertion: because size can't be 0 and even if sm_space is equal to sm_size, any 'sm_space - size' will be less than sm_size. MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-05-29T18:44:53.508714Z K 7 svn:log V 130 Fix 32-bit shim for BIOCSETF to drop all packets buffered on the descriptor and reset statistics as it should. MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-29T19:46:42.988282Z K 7 svn:log V 149 Restore crutch removed in r235991. When pf(4) is initialized at boot time, the time_second isn't initialized yet, and we need to workaround that. :( END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-05-29T19:47:06.639172Z K 7 svn:log V 405 MFC r232598: Make racct and rctl correctly handle jail renaming. Previously they would continue using old name, the one jail was created with. PR: bin/165207 MFC r235795: Don't leak locks in prison_racct_modify(). MFC r235803: Fix use-after-free in kern_jail_set() triggered e.g. by attempts to clear "persist" flag from empty persistent jail, like this: jail -c persist=1 jail -n 1 -m persist=0 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-29T19:48:34.339326Z K 7 svn:log V 75 To avoid state ID collisions in multithreaded pf(4), make stateid per-cpu. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-05-29T19:49:52.535927Z K 7 svn:log V 33 Add the latest FreeBSD versions. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-05-29T19:55:07.090320Z K 7 svn:log V 125 add support to build netmap as a module, but for the time being keep it disconnected from the main build. MFC after: 3 days END K 10 svn:author V 8 olivierd K 8 svn:date V 27 2012-05-29T20:16:26.246720Z K 7 svn:log V 69 Add myself and my relation to my mentors. Approved by: miwi@, rene@ END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-29T20:21:24.089784Z K 7 svn:log V 91 For clang, similar to r236137, enable gnu hash generation for dynamic ELF binaries on x86. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-29T21:34:09.413894Z K 7 svn:log V 223 Change the post-election schedule as per email to developers@. Don't print an exact time for the announcement, I'm not staying up until two in the morning just to send a stupid email. Let's do 18:00 UTC next time, m'kay? END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-29T21:59:09.283288Z K 7 svn:log V 392 Pull in r156591 from upstream llvm trunk: Allow unique_file to take a mode for file permissions, but default to user only read/write. and r156592 from upstream clang trunk: For final output files create them with mode 0664 to match other compilers and expected defaults. This should fix clang creating files with mode 0600. Reported by: James MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-05-29T22:21:53.866987Z K 7 svn:log V 135 - Save the previous filter right before we set new one. - Reduce duplicate code and make it little easier to read. MFC after: 2 weeks END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-05-29T22:28:46.348620Z K 7 svn:log V 75 Fix style(9) nits, reduce unnecessary type castings, etc., for bpf_setf(). END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-05-29T23:10:10.238461Z K 7 svn:log V 311 MFC r234106, r235751: Queue CCBs internally instead of using CAM_REQUEUE_REQ status. This fixes problem where userspace apps such as smartctl fail due to CAM_REQUEUE_REQ status getting returned when tagged commands are outstanding when smartctl sends its I/O using the pass(4) interface. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-05-29T23:15:23.547493Z K 7 svn:log V 311 MFC r234106, r235751: Queue CCBs internally instead of using CAM_REQUEUE_REQ status. This fixes problem where userspace apps such as smartctl fail due to CAM_REQUEUE_REQ status getting returned when tagged commands are outstanding when smartctl sends its I/O using the pass(4) interface. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-05-29T23:17:15.532405Z K 7 svn:log V 311 MFC r234106, r235751: Queue CCBs internally instead of using CAM_REQUEUE_REQ status. This fixes problem where userspace apps such as smartctl fail due to CAM_REQUEUE_REQ status getting returned when tagged commands are outstanding when smartctl sends its I/O using the pass(4) interface. Sponsored by: Intel END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-05-30T00:03:33.813774Z K 7 svn:log V 183 cddl/sbin/zfsd/Makefile: Remove commented out make directives left over from the Makefile reference used as a template for zfsd's Makefile. Sponsored by: Spectra Logic Corporation END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-05-30T00:14:13.142502Z K 7 svn:log V 640 Fix a race condition between the notification of a ZFS vdev's removal and the removal being visible in the pool's configuration. sys/cddl/contrib/opensolaris/uts/common/fs/zfs/spa.c: sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev_geom.c: Defer the generation of a vdev removal event until the spa's async remove task has run and updated the in-core state for the vdev being removed. This ensures that a userspace agent responding to this event can refresh its copy of the pool configuration and see that the device has been removed. Submitted by: Alan Somers (Spectra Logic Corporation) Sponsored by: Spectra Logic Corporation END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-05-30T00:27:12.382405Z K 7 svn:log V 1809 Properly terminate truncated events with a newline (end of event token), and discard any data that exceeds zfsd's MAX_EVENT_SIZE limit until zfsd is resynchronized with the event stream. This resolves issues (de)serializing CaseFiles with truncated events. cddl/sbin/zfsd/case_file.cc: Do not assume that deserialization of all events from a case file will be successful. Just skip over unparsable events. cddl/sbin/zfsd/zfsd.cc: cddl/sbin/zfsd/zfsd.h: o In EventBuffer::ExtractEvent(), remove code and a comment dealing with "start tokens" and "end tokens" sharing characters. In the normal case of untruncated events, the event terminator is present and distinct from the start token. Devd immediately closes our unix domain socket if it cannot write a complete event, which means a start token for a new event after a truncted event cannot happen. o In EventBuffer::ExtractEvent(), remove dead code that tested for end of event tokens other than '\n'. Due to the way that strcspn() operates, this cannot happen. o Add stateful resynchronization to the EventBuffer class. EventBuffer can get out of synch whenever it truncates an incoming event due to its internal event size limit. The original code dealt with this issue by looking for start tokens. Since start tokens may also be valid within an event body, the only fully safe option is to discard data until the end of event token (which can't occur within an event) is read. o When truncating an event, properly terminate it so that when EventBuffer is used for CaseFile deserialization the input data is properly formed. o EventBuffer::UnParsed() and EventBuffer::NextEventMaxLen() are const. Enforce this via the const keyword. Sponsored by: Spectra Logic Corporation END K 10 svn:author V 4 emax K 8 svn:date V 27 2012-05-30T00:38:24.400423Z K 7 svn:log V 354 MFC r235854 Tweak condition for disabling allocation from per-CPU buckets in low memory situation. I've observed a situation where per-CPU allocations were disabled while there were enough free cached pages. Basically, cnt.v_free_count was sitting stable at a value lower than cnt.v_free_min and that caused massive performance drop. Reviewed by: alc@ END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-30T00:56:26.053095Z K 7 svn:log V 44 Dead code (moved to FBCE::Controller::Root) END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-30T00:57:03.542564Z K 7 svn:log V 61 Get max_votes from the correct place. This unbreaks voting. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-30T01:02:19.939564Z K 7 svn:log V 18 remove no-op code END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-30T01:02:34.626944Z K 7 svn:log V 30 Indicate incumbent candidates END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-30T01:52:01.737117Z K 7 svn:log V 50 Fix an mdoc(7) formatting nit. MFC after: 3 days END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-05-30T01:52:53.581277Z K 7 svn:log V 111 MFC r236135: Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could not be acquired. PR: 168317 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-05-30T01:54:14.825658Z K 7 svn:log V 111 MFC r236135: Return EBUSY for PTHREAD_MUTEX_ADAPTIVE_NP too when the mutex could not be acquired. PR: 168317 END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-05-30T02:02:37.621063Z K 7 svn:log V 36 Hook up wbwd man page to the build. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-30T02:29:47.190739Z K 7 svn:log V 43 Fix mdoc(7) style nits. MFC after: 3 days END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-30T02:37:20.346556Z K 7 svn:log V 80 Add '-width Pa' to src.conf.5 for mdoc(7) style consistency. MFC after: 3 days END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-05-30T02:41:09.460578Z K 7 svn:log V 51 Regen src.conf.5 after r236279. MFC after: 3 days END K 10 svn:author V 4 miwi K 8 svn:date V 27 2012-05-30T03:10:22.638859Z K 7 svn:log V 235 - FreeBSD ships a KDE PAM module in base, but it's missing support for passwordless login (kde-np), and it doesn't really belong in base system. PR: misc/167261 Submitted by: avilla@ Approved by: rwatson (mentor) MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T03:47:51.068577Z K 7 svn:log V 167 Add support for Sun 1040 PCI Quad Serial PR: kern/163450 Submitted by: Anonymous Hardware Hacker Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T03:50:58.986616Z K 7 svn:log V 149 Add support for newer garmin devices PR: kern/163932 Submitted by: Bartosz Fabianowski Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T03:51:46.156504Z K 7 svn:log V 159 Don't attempt to delete .sujournal in /tmp PR: conf/163828 Submitted by: Tatsuki Makino Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T03:54:10.833974Z K 7 svn:log V 165 Add missing flag enable when certain arguments are parsed PR: bin/163053 Submitted by: Peter Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T03:55:44.041721Z K 7 svn:log V 181 Fix likely race condition if wait_child() is interrupted by sigchild() PR: bin/102834 Submitted by: Andreas Longwitz Approved by: cperciva MFC after: 2 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T03:57:49.568095Z K 7 svn:log V 186 add missing variable declaration when DEBUG is defined forgotten in r215046 PR: bin/166404 Submitted by: "Conrad J. Sabatier" Approved by: cperciva MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T04:06:38.384646Z K 7 svn:log V 243 Only set _w to 0 when the file stream is not currently reading. Without this fflush may fail to write data in the buffer. PR: kern/137819 Submitted by: Eric Blake Reviewed by: theraven Approved by: cperciva MFC after: 2 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T04:08:29.928475Z K 7 svn:log V 289 Relax security permissions on '.seq' file creation - the strict, but odd permissions resulted in a security alert from 110.neggrpperm PR: kern/165533 Submitted by: Anton Shterenlikht Submitted by: J B Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-05-30T04:14:38.455756Z K 7 svn:log V 192 Document daily_status_security_chkportsum_enable PR: docs/167980 Submitted by: "Bryan Drewery" Reported by: rank1seeker@gmail.com Approved by: cperciva MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-05-30T04:16:54.396412Z K 7 svn:log V 108 Eliminate some purely stylistic differences among the amd64, i386 native, and i386 xen PV entry allocators. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T04:51:23.823149Z K 7 svn:log V 195 MFC r235850: Calculate the count of per-process cow faults. Export the count to userspace using the obscure spare int field in struct kinfo_proc. MFC r236136: Fix ki_cow for compat32 binaries. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T04:54:39.031936Z K 7 svn:log V 62 MFC r235851: Add 'cow' keyword to show per-process cow count. END K 10 svn:author V 3 bjk K 8 svn:date V 27 2012-05-30T05:42:40.965116Z K 7 svn:log V 139 Catch up to the carp rewrite and refer to vhids instead of interfaces. Pointy hat to: bjk Submitted by: glebius Approved by: hrs (mentor) END K 10 svn:author V 4 will K 8 svn:date V 27 2012-05-30T05:59:45.415732Z K 7 svn:log V 72 IFC @ r236291. Diff reductions to the enclosure driver made in r235911. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-05-30T06:53:09.197396Z K 7 svn:log V 472 MFC r236149: Pull in r157212 from upstream clang trunk: Revert r115805. An array type is required to have a range type, however, the range can be unknown for the upper bound. Testcase to follow. Part of rdar://11457152 This should fix ctfconvert producing error messages during kernel builds, similar to: ERROR: scsi_all.c: die 24561: failed to retrieve array bounds These were caused by incorrect debug information for flexible array members of structs. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-30T07:11:27.172903Z K 7 svn:log V 91 After r228571 carp_output() expects carp_softc * pointer in the mtag. Noticed by: thompsa END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-30T07:16:49.734711Z K 7 svn:log V 285 Use M_NOWAIT in altq_add() and tbr_set(). Currently altq(4) in FreeBSD is configured via pf(4) ioctls, which can't configure altq(4) w/o holding locks. A large redesign needed to achieve M_WAITOK usage here. Or an alternative (not pf(4)) configuration interface should be implemented. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-30T07:18:40.965869Z K 7 svn:log V 56 Don't drop locks before entering altq_add(), tbr_set(). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-30T07:36:21.789771Z K 7 svn:log V 54 Use pf rules rwlock to keep pf_altqqueues consistent. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-30T08:03:58.053905Z K 7 svn:log V 32 stateid removed from pf_status. END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-30T11:38:52.746239Z K 7 svn:log V 149 Make links work in wiki text (i.e. candidate statements). I'm sorry I didn't notice and fix this bug before this year's application period ended... END K 10 svn:author V 3 des K 8 svn:date V 27 2012-05-30T11:48:57.056152Z K 7 svn:log V 125 Change the way incumbent candidates are indicated on the admin and result page. The two are now identical, which is stupid. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-05-30T12:01:28.646973Z K 7 svn:log V 216 Update the previous openssl fix. [12:01] Fix a bug in crypt(3) ignoring characters of a passphrase. [12:02] Security: FreeBSD-SA-12:01.openssl (revised) Security: FreeBSD-SA-12:02.crypt Approved by: so (bz, simon) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T12:45:52.893658Z K 7 svn:log V 195 MFC r235850: Calculate the count of per-process cow faults. Export the count to userspace using the obscure spare int field in struct kinfo_proc. MFC r236136: Fix ki_cow for compat32 binaries. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T13:00:43.178481Z K 7 svn:log V 62 MFC r235851: Add 'cow' keyword to show per-process cow count. END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-05-30T13:31:08.596540Z K 7 svn:log V 91 Flush D and I caches after setting a breakpoint. Reviewed by: imp Obtained from: Semihalf END K 10 svn:author V 4 gber K 8 svn:date V 27 2012-05-30T13:33:27.053048Z K 7 svn:log V 88 Print userspace backtrace for current thread. Reviewed by: imp Obtained from: Semihalf END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T13:44:42.939953Z K 7 svn:log V 153 Assert that TDP_NOFAULTING and TDP_NOSPEEPING thread flags do not leak when thread returns from a syscall to usermode. Tested by: pho MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-05-30T13:51:00.299215Z K 7 svn:log V 69 Improve style(9) of bcopy() to and from mbuf tag. Submitted by: bde END K 10 svn:author V 3 uqs K 8 svn:date V 27 2012-05-30T13:55:43.959898Z K 7 svn:log V 21 Unbreak make depend. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T13:58:01.772626Z K 7 svn:log V 67 Clarify that the v_lockf is advisory lock list. MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T14:00:23.238452Z K 7 svn:log V 49 Capitalize start of sentence. MFC after: 3 days END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-05-30T14:47:51.733428Z K 7 svn:log V 127 Create a repository for the project which aims to rewrite callout(9) to use better precision allowed by the new timer drivers. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-05-30T15:51:02.208261Z K 7 svn:log V 931 Commit the work that has been done so far: - Switch the way we measure the time in callout(9) from ticks to bintime. - Change some fields in the structures callout, callout_cpu and cc_mig_ent. - callout_reset_on() now converts the argument to_ticks to some bintime value before giving it to callout_cc_add(), which has been modified to receive a struct bintime rather than a value in ticks. - Add a new per-cpu list to handle pending callout requests rather than processing them directly on the callwheel. This simplify the logic of the softclock() handler. - Refactor the callout_tick() and callout_tickstofirst() code to make them aware of the bintime measurement. - Workaround tcp_timer_to_xtimer() to survive to the aforementioned switch. - Refactor the cpu_new_callout() function in order to update the timer in one-shot fashion via loadtimer() function. Until now the timer was reprogrammed every tick. Discussed with: mav END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-05-30T16:04:10.328098Z K 7 svn:log V 138 MFC 234099: Properly parse 40G media types from newer Mellanox adapters that are 40G capable. For now, map all 40G links to 40GBase-CR4. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T16:06:38.503344Z K 7 svn:log V 317 Add a rangelock implementation, intended to be used to range-locking the i/o regions of the vnode data space. The implementation is quite simple-minded, it uses the list of the lock requests, ordered by arrival time. Each request may be for read or for write. The implementation is fair FIFO. MFC after: 2 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-05-30T16:13:10.320722Z K 7 svn:log V 577 MFC 234501: The amr(4) firmware contains a rather dubious "feature" where it assumes for small buffers (< 64k) that the OS driver is actually using a buffer rounded up to the next power of 2. It also assumes that the buffer is at least 4k in size. Furthermore, there is at least one known instance of megarc sending a request with a 12k buffer where the firmware writes out a 24k-ish reply. To workaround the data corruption triggered by this "feature", ensure that buffers for user commands use a minimum size of 32k, and that buffers between 32k and 64k use a 64k buffer. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-05-30T16:13:34.952375Z K 7 svn:log V 577 MFC 234501: The amr(4) firmware contains a rather dubious "feature" where it assumes for small buffers (< 64k) that the OS driver is actually using a buffer rounded up to the next power of 2. It also assumes that the buffer is at least 4k in size. Furthermore, there is at least one known instance of megarc sending a request with a 12k buffer where the firmware writes out a 24k-ish reply. To workaround the data corruption triggered by this "feature", ensure that buffers for user commands use a minimum size of 32k, and that buffers between 32k and 64k use a 64k buffer. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-05-30T16:30:51.386704Z K 7 svn:log V 281 MFC 235833: Only check to see if a memory resource is a PCI ROM BAR when activating and deactivating PCI resources. Previously, if a device had more than 48 MSI interrupts, then activating message 48 (which has a rid == PCIR_BIOS) would incorrectly try to enable the PCI ROM BAR. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T16:42:08.418821Z K 7 svn:log V 1566 vn_io_fault() is a facility to prevent page faults while filesystems perform copyin/copyout of the file data into the usermode buffer. Typical filesystem hold vnode lock and some buffer locks over the VOP_READ() and VOP_WRITE() operations, and since page fault handler may need to recurse into VFS to get the page content, a deadlock is possible. The facility works by disabling page faults handling for the current thread and attempting to execute i/o while allowing uiomove() to access the usermode mapping of the i/o buffer. If all buffer pages are resident, uiomove() is successfull and request is finished. If EFAULT is returned from uiomove(), the pages backing i/o buffer are faulted in and held, and the copyin/out is performed using uiomove_fromphys() over the held pages for the second attempt of VOP call. Since pages are hold in chunks to prevent large i/o requests from starving free pages pool, and since vnode lock is only taken for i/o over the current chunk, the vnode lock no longer protect atomicity of the whole i/o request. Use newly added rangelocks to provide the required atomicity of i/o regardind other i/o and truncations. Filesystems need to explicitely opt-in into the scheme, by setting the MNTK_NO_IOPF struct mount flag, and optionally by using vn_io_fault_uiomove(9) helper which takes care of calling uiomove() or converting uio into request for uiomove_fromphys(). Reviewed by: bf (comments), mdf, pjd (previous version) Tested by: pho Tested by: flo, Gustau P?rez (previous version) MFC after: 2 months END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-05-30T16:45:41.126777Z K 7 svn:log V 81 Enable vn_io_fault() lock avoidance for UFS. Tested by: pho MFC after: 2 months END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-05-30T17:07:50.178022Z K 7 svn:log V 185 Cosmetic nit. If a configured volume has no label, don't emit an empty string for the name during probe. Simply indicate that it has no label. Submitted by: bhaga@ MFC after: 3 days END K 10 svn:author V 3 raj K 8 svn:date V 27 2012-05-30T17:34:40.234789Z K 7 svn:log V 223 Extract vendor specific Book-E pieces into separate files and have a common skeleton (maybe we should kobj-tize this one day). Note the PPC4xx bit is not connected to the build yet. Obtained from: AppliedMicro, Semihalf. END K 10 svn:author V 3 raj K 8 svn:date V 27 2012-05-30T18:05:48.409269Z K 7 svn:log V 218 Panic openly if we cannot retrieve memory information from the device tree. This is a critical condition and can lead to all sorts of misterious hangs if not handled. Obtained from: Semihalf Also reported by: thompsa END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-05-30T19:21:54.720456Z K 7 svn:log V 292 MFC r228862, 228880, 228882, 228906, 228977, 229332, 229575, 229591, 229704, 229716, 230062, 230225, 230267, 234958 This brings stdatomic.h into -STABLE and includes improvements to tgmath.h that significantly decrease compile times on a C11 compiler (such as the clang in the base system). END K 10 svn:author V 4 emax K 8 svn:date V 27 2012-05-30T20:02:39.602936Z K 7 svn:log V 107 When we return deprecated addresses, we need to reference them. Reviewed by: bz, scottl MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-05-30T20:04:07.298787Z K 7 svn:log V 220 Try to finally get the point in time at which bge_add_sysctls() is called right; it needs to be called before bge_can_use_msi() but in turn requires bge_flags to be properly set. Submitted by: yongari MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-05-30T20:13:49.448824Z K 7 svn:log V 159 Merge r236137 from x86: Enable GNU hash generation for dynamic ELF binaries. While at it, sync the order of options with x86 and pass along the verbose flag. END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-05-30T20:44:04.902504Z K 7 svn:log V 130 Fix French Canadian console keyboard layout Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days Sponsored by: iXsystems END K 10 svn:author V 8 jpaetzel K 8 svn:date V 27 2012-05-30T20:49:28.640118Z K 7 svn:log V 123 Fix detecting available zpool names. Submitted by: kmoore Obtained from: PC-BSD MFC after: 3 days Sponsored by: iXsystems END