ƒ´L252496 167 392 155 127 144 135 162 307 614 1015 448 1669 96 270 109 281 1022 445 344 116 180 148 216 216 144 144 821 154 205 467 467 158 255 1393 504 157 118 971 971 619 619 372 372 348 348 172 203 203 1094 1094 378 159 389 135 304 304 169 169 745 745 1907 208 121 232 99 99 207 192 162 163 166 196 186 152 186 209 185 158 381 213 177 612 194 201 296 154 232 245 155 154 129 270 229 183 200 226 112 114 166 120 168 240 176 349 133 121 134 240 422 246 406 357 146 680 467 151 271 200 194 209 216 231 349 228 222 379 123 343 336 264 244 471 155 367 242 343 202 271 304 218 157 511 410 155 185 204 194 222 317 317 152 774 1053 261 142 910 910 348 469 290 199 211 444 212 205 209 279 569 K 10 svn:author V 3 kib K 8 svn:date V 27 2013-07-02T04:42:32.488180Z K 7 svn:log V 299 MFC r251960: Since the gem pagefault handler relocks the vm object lock, other thread might fault on the same GTT offset meantime and instantiate the mapping. Recheck that the mgt device object still does not have a page at the current offset after relocking, and return a possibly installed page. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-07-02T04:45:51.522634Z K 7 svn:log V 63 MFC r251961: Disable wait for the retrace if KMS is activated. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-07-02T06:49:05.670558Z K 7 svn:log V 32 Add RealTek 8192SU product IDs. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-07-02T06:59:37.381749Z K 7 svn:log V 49 Add register definitions for the Wii IPC system. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-07-02T07:17:56.720457Z K 7 svn:log V 40 Fix indentation. Submitted by: jmallet END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-07-02T07:35:57.374022Z K 7 svn:log V 70 Add Planex MZK-UE150N. Submitted by: Yusuke Tanaka MFC after: 3 days END K 10 svn:author V 3 mjg K 8 svn:date V 27 2013-07-02T07:36:04.528367Z K 7 svn:log V 214 Fix receiving fd over unix socket broken in r247740. If n fds were passed, it would receive the first one n times. Reported by: Shawn Webb , koobs, gleb Tested by: koobs, gleb Reviewed by: pjd END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-07-02T08:04:41.507582Z K 7 svn:log V 518 Work around an ARM EABI issue where clang would sometimes incorrectly align the stack in a leaf function that uses TLS. The issue is, when using TLS, the function is no longer a leaf as it calls __aeabi_read_tp. With statically linked programs this is not an issue as it doesn't make use of the stack, however with dynamically linked applications we enter rtld which does use the stack and makes assumptions about it's alignment. This is only a temporary fix until a better patch can be made and submitted upstream. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-02T08:44:56.428165Z K 7 svn:log V 917 Import an implementation of the CAIA Delay-Gradient (CDG) congestion control algorithm, which is based on the 2011 v0.1 patch release and described in the paper "Revisiting TCP Congestion Control using Delay Gradients" by David Hayes and Grenville Armitage. It is implemented as a kernel module compatible with the modular congestion control framework. CDG is a hybrid congestion control algorithm which reacts to both packet loss and inferred queuing delay. It attempts to operate as a delay-based algorithm where possible, but utilises heuristics to detect loss-based TCP cross traffic and will compete effectively as required. CDG is therefore incrementally deployable and suitable for use on shared networks. In collaboration with: David Hayes and Grenville Armitage MFC after: 4 days Sponsored by: Cisco University Research Program and FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-07-02T10:36:57.262755Z K 7 svn:log V 355 - Update newvers.sh to include svn revision in uname(1) if the system has svnliteversion. - If svnliteversion is not found, look for svnversion in /usr/bin and /usr/local/bin, since svnlite can be installed as svn if WITH_SVN is set.[1] - Remove /bin from binary search paths.[1] Discussed with: kib [1] MFC after: 3 days Approved by: kib (mentor) END K 10 svn:author V 3 bms K 8 svn:date V 27 2013-07-02T13:24:37.446704Z K 7 svn:log V 1575 When acquiring a lease, record the value of the BOOTP siaddr field contained in the DHCP offer, and write it out to the lease file as an unquoted value of the "next-server" keyword. The value is ignored when the lease is read back by dhclient, however other applications are free to parse it. The intent behind this change is to allow easier interoperability with automated installation systems e.g. Cobbler, Foreman, Razor; FreeBSD installation kernels can automatically probe the network to discover deployment servers. There are no plans to MFC this change unless a backport is specifically requested. The syntax of the "next-server " lease keyword is intended to be identical to that used by the ISC DHCPD server in its configuration files. The required defines are already present in dhclient but were unused before this change. (Note: This is NOT the same as Option 66, tftp-server-name). It has been exercised in a university protocol testbed environment, with Cobbler and an mfsBSD image containing pc-sysinstall (driven by Cobbler Cheetah templates). The SYSLINUX memdisk driver is used to boot mfsBSD. Currently this approach requires that a dedicated system profile has been created for the node where FreeBSD is to be deployed. If this is not present, the pc-sysinstall wrapper will be unable to obtain a node configuration. There is code in progress to allow mfsBSD images to obtain the required hints from the memdisk environment by parsing the MBFT ACPI chunk. This is non-standard as it is not linked into the platform's ACPI RSDT. Reviewed by: des END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-07-02T13:48:16.953289Z K 7 svn:log V 5 Typo END K 10 svn:author V 7 asomers K 8 svn:date V 27 2013-07-02T14:48:39.144979Z K 7 svn:log V 173 Explicitly include to fix compilation with libc++. It is implicitly included by libstdc++. Reported By: Oliver Hartmann Approved by: gibbs (co-mentor, implicit) END K 10 svn:author V 4 syuu K 8 svn:date V 27 2013-07-02T14:54:18.629383Z K 7 svn:log V 16 merge with head END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-07-02T16:39:12.768565Z K 7 svn:log V 188 Fix a panic when leaving MC group in a kernel with VIMAGE enabled. in_leavegroup() is called from an asynchronous task, and igmp_change_state() requires that curvnet is set by the caller. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-07-02T16:58:15.919108Z K 7 svn:log V 929 - Allow ND6_IFF_AUTO_LINKLOCAL for IFT_BRIDGE. An interface with IFT_BRIDGE is initialized with !ND6_IFF_AUTO_LINKLOCAL && !ND6_IFF_ACCEPT_RTADV regardless of net.inet6.ip6.accept_rtadv and net.inet6.ip6.auto_linklocal. To configure an autoconfigured link-local address (RFC 4862), the following rc.conf(5) configuration can be used: ifconfig_bridge0_ipv6="inet6 auto_linklocal" - if_bridge(4) now removes IPv6 addresses on a member interface to be added when the parent interface or one of the existing member interfaces has an IPv6 address. if_bridge(4) merges each link-local scope zone which the member interfaces form respectively, so it causes address scope violation. Removal of the IPv6 addresses prevents it. - if_lagg(4) now removes IPv6 addresses on a member interfaces unconditionally. - Set reasonable flags to non-IPv6-capable interfaces. [*] Submitted by: rpaulo [*] MFC after: 1 week END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-02T17:09:57.563139Z K 7 svn:log V 349 Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-02T17:17:42.411746Z K 7 svn:log V 248 Properly handle input lines containing NUL characters such that pgets() accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-07-02T17:34:34.703493Z K 7 svn:log V 20 Plug a memory leak. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-07-02T18:45:37.922024Z K 7 svn:log V 88 Style fix: spaces. Cleanup the incomplete revert. Reported by: bde MFC after: 4 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-07-02T18:54:39.394966Z K 7 svn:log V 52 Add a mib for worker process ID. MFC after: 3 days END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-07-02T19:27:07.688093Z K 7 svn:log V 119 MFC r248294, r248296: r248294 (pjd): Delete requests can be larger than MAXPHYS. r248296 (pjd): Minor corrections. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-07-02T19:28:16.780913Z K 7 svn:log V 119 MFC r248294, r248296: r248294 (pjd): Delete requests can be larger than MAXPHYS. r248296 (pjd): Minor corrections. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-07-02T19:29:00.079242Z K 7 svn:log V 48 MFC r248286 (pjd): Removed redundant includes. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-07-02T19:29:45.663418Z K 7 svn:log V 48 MFC r248286 (pjd): Removed redundant includes. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-07-02T19:33:19.264256Z K 7 svn:log V 726 Take into safekeeping the following bits: anchie, ariff, daichi, darrenr, dd, eivind, flz, green, hmp, iedowse, jls, kmacy, kris, le, luoqi, markus, mbr, mlaier, motoyuki, mpp, mr, nork, pb, peadar, rik, rodrigc, rse, sam, sepotvin, simokawa, sson, ssouhlal, suz, syrinx, tanimura, ticso, weongyo, wes, wpaul. All have been idle in the src tree for some time, and have not responded to emails asking whether they are likely to become active again and so wish to retain their commit bit. Remove them, and entries from conf/mentors where necessary. Thank you all for all your work in the past, and feel free to request your commit bit back should you find yourself able to contribute again in the future. Approved by: core END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-07-02T19:35:04.928466Z K 7 svn:log V 59 Enable VFP on Raspberry Pi. This has worked as of r251712. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-07-02T19:42:47.822304Z K 7 svn:log V 108 When listing with -f, skip all memory disks that are not vnode-backed. Noticed by: kevlo MFC after: 3 days END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-07-02T19:44:02.592692Z K 7 svn:log V 375 MFC r252380: Unbreak "zfs jail" and "zfs unjail" (broken in stable/9 since r249643) I missed to register zfs_ioc_jail and zfs_ioc_unjail as legacy ioctl's with the new zfs_ioctl_register_legacy() function. These operations do not modify pools or datasets so there is no need to log them to pool history. Reported by: Alexander Leidinger on current@ END K 10 svn:author V 2 mm K 8 svn:date V 27 2013-07-02T19:45:14.618947Z K 7 svn:log V 375 MFC r252380: Unbreak "zfs jail" and "zfs unjail" (broken in stable/8 since r251757) I missed to register zfs_ioc_jail and zfs_ioc_unjail as legacy ioctl's with the new zfs_ioctl_register_legacy() function. These operations do not modify pools or datasets so there is no need to log them to pool history. Reported by: Alexander Leidinger on current@ END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-07-02T20:25:58.220615Z K 7 svn:log V 63 Remove extranious '.' Submitted by: swildner@DragonflyBSD.org END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-07-02T21:07:08.514471Z K 7 svn:log V 157 Make better use of metadata area by avoiding using it for data blocks that no should no longer immediately follow their indirect blocks. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-07-03T00:19:03.144778Z K 7 svn:log V 1294 A problem with the old NFS client where large writes to large files would sometimes result in a corrupted file was reported via email. This problem appears to have been caused by r251719 (reverting r251719 fixed the problem). Although I have not been able to reproduce this problem, I suspect it is caused by another thread increasing np->n_size after the mtx_unlock(&np->n_mtx) but before the vnode_pager_setsize() call. Since the np->n_mtx mutex serializes updates to np->n_size, doing the vnode_pager_setsize() with the mutex locked appears to avoid the problem. Unfortunately, vnode_pager_setsize() where the new size is smaller, cannot be called with a mutex held. This patch returns the semantics to be close to pre-r251719 (actually pre-r248567, r248581, r248567 for the new client) such that the call to vnode_pager_setsize() is only delayed until after the mutex is unlocked when np->n_size is shrinking. Since the file is growing when being written, I believe this will fix the corruption. A better solution might be to replace the mutex with a sleep lock, but that is a non-trivial conversion, so this fix is hoped to be sufficient in the meantime. Reported by: David G. Lawrence (dg@dglawrence.com) Tested by: David G. Lawrence (to be done soon) Reviewed by: kib MFC after: 1 week END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-07-03T02:11:05.213957Z K 7 svn:log V 408 virtio_blk: Improve write cache handling Follow the exact wording of the spec and check for VIRTIO_BLK_F_CONFIG_WCE support before falling back to VIRTIO_BLK_F_WCE. Always tell GEOM we support flush cache even though it is a noop in writethrough mode. Add sysctl handler to change the write cache mode when CONFIG_WCE is supported. Add support and update man page for both global and per-device tunables. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-07-03T02:12:22.389989Z K 7 svn:log V 62 virtio_balloon: Use just a kthread instead of dedicated kproc END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-07-03T02:14:12.520406Z K 7 svn:log V 23 Remove stray semicolon END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T03:36:36.222129Z K 7 svn:log V 873 When a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an mbuf that was fully consumed by the previous call, the mbuf ptr returned by the current call ends up being the previous mbuf in the sb chain to the one that contains the data we want. This does not cause any observable issues because the mbuf copy routines happily walk the mbuf chain to get to the data at the moff offset, which in this case means they effectively skip over the mbuf returned by sbsndptr(). We can't adjust sb->sb_sndptr during the previous call for this case because the next mbuf in the chain may not exist yet. We therefore need to detect the condition and make the adjustment during the current call. Fix by detecting the special case of moff being at the start of the next mbuf in the chain and adjust the required accounting variables accordingly. Reviewed by: andre END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T03:40:06.285119Z K 7 svn:log V 873 When a previous call to sbsndptr() leaves sb->sb_sndptroff at the start of an mbuf that was fully consumed by the previous call, the mbuf ptr returned by the current call ends up being the previous mbuf in the sb chain to the one that contains the data we want. This does not cause any observable issues because the mbuf copy routines happily walk the mbuf chain to get to the data at the moff offset, which in this case means they effectively skip over the mbuf returned by sbsndptr(). We can't adjust sb->sb_sndptr during the previous call for this case because the next mbuf in the chain may not exist yet. We therefore need to detect the condition and make the adjustment during the current call. Fix by detecting the special case of moff being at the start of the next mbuf in the chain and adjust the required accounting variables accordingly. Reviewed by: andre END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T04:20:36.928751Z K 7 svn:log V 521 MFC r251732,251752: Add support for non-virtualised hhook points, which are uniquely identified by type and id, as compared to virtualised hook points which are now uniquely identified by type, id and a vid (which for vimage is the pointer to the vnet that the hhook resides in). All hhook_head structs for both virtualised and non-virtualised hook points coexist in hhook_head_list, and a separate list is maintained for hhook points within each vnet to simplify some vimage-related housekeeping. Reviewed by: scottl END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T04:21:29.100014Z K 7 svn:log V 521 MFC r251732,251752: Add support for non-virtualised hhook points, which are uniquely identified by type and id, as compared to virtualised hook points which are now uniquely identified by type, id and a vid (which for vimage is the pointer to the vnet that the hhook resides in). All hhook_head structs for both virtualised and non-virtualised hook points coexist in hhook_head_list, and a separate list is maintained for hhook points within each vnet to simplify some vimage-related housekeeping. Reviewed by: scottl END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T05:28:22.302691Z K 7 svn:log V 274 MFC r251770: Internalise handling of virtualised hook points inside hhook_{add|remove}_hook_lookup() so that khelp (and other potential API consumers) do not have to care when they attempt to (un)hook a particular hook point identified by id and type. Reviewed by: scottl END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T05:29:21.577276Z K 7 svn:log V 274 MFC r251770: Internalise handling of virtualised hook points inside hhook_{add|remove}_hook_lookup() so that khelp (and other potential API consumers) do not have to care when they attempt to (un)hook a particular hook point identified by id and type. Reviewed by: scottl END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T05:47:28.470158Z K 7 svn:log V 250 MFC r251774: Add a private KPI between hhook and khelp that allows khelp modules to insert hook functions into hhook points which register after the modules were loaded - potentially useful during boot or if hhook points are dynamically registered. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T05:48:46.081550Z K 7 svn:log V 250 MFC r251774: Add a private KPI between hhook and khelp that allows khelp modules to insert hook functions into hhook points which register after the modules were loaded - potentially useful during boot or if hhook points are dynamically registered. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-07-03T05:54:23.890422Z K 7 svn:log V 76 hastResourceWorkerPid is read-only. Submitted by: jilles MFC after: 3 days END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T05:58:51.494358Z K 7 svn:log V 105 MFC r251778: Cleanup and simplification in khelp_{register|deregister}_helper(). No functional changes. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T05:59:48.528464Z K 7 svn:log V 105 MFC r251778: Cleanup and simplification in khelp_{register|deregister}_helper(). No functional changes. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T06:20:47.394062Z K 7 svn:log V 996 MFC r251787: Move hhook's per-vnet initialisation to an earlier SYSINIT SI_SUB stage to ensure all per-vnet related hhook initialisation is completed prior to any virtualised hhook points attempting registration. vnet_register_sysinit() requires that a stage later than SI_SUB_VNET be chosen. There are no per-vnet initialisors in the source tree at this time which run earlier than SI_SUB_INIT_IF. A quick audit of non-virtualised SYSINITs indicates there are no subsystems pre SI_SUB_MBUF that would likely be interested in registering a virtualised hhook point. Settle on SI_SUB_MBUF as hhook's per-vnet initialisation stage as it's the first overtly network-related initilisation stage to run after SI_SUB_VNET. If a subsystem that initialises earlier than SI_SUB_MBUF ends up wanting to register virtualised hhook points in future, hhook's use of SI_SUB_MBUF will need to be revisited and would probably warrant creating a dedicated SI_SUB_HHOOK which runs immediately after SI_SUB_VNET. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T06:23:46.973487Z K 7 svn:log V 996 MFC r251787: Move hhook's per-vnet initialisation to an earlier SYSINIT SI_SUB stage to ensure all per-vnet related hhook initialisation is completed prior to any virtualised hhook points attempting registration. vnet_register_sysinit() requires that a stage later than SI_SUB_VNET be chosen. There are no per-vnet initialisors in the source tree at this time which run earlier than SI_SUB_INIT_IF. A quick audit of non-virtualised SYSINITs indicates there are no subsystems pre SI_SUB_MBUF that would likely be interested in registering a virtualised hhook point. Settle on SI_SUB_MBUF as hhook's per-vnet initialisation stage as it's the first overtly network-related initilisation stage to run after SI_SUB_VNET. If a subsystem that initialises earlier than SI_SUB_MBUF ends up wanting to register virtualised hhook points in future, hhook's use of SI_SUB_MBUF will need to be revisited and would probably warrant creating a dedicated SI_SUB_HHOOK which runs immediately after SI_SUB_VNET. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-07-03T06:43:06.465647Z K 7 svn:log V 284 There is no need to assign a VPID to a virtual machine since we are using nested page tables. All mappings created in the VMX non-root mode are tagged with the EP4TA which is guaranteed to be unique for each virtual machine. This makes the use of VPIDs redundant so get rid of them. END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-07-03T06:43:49.614431Z K 7 svn:log V 67 Allow swapINCARNATIONS to be user defined. Add file systems check. END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-07-03T07:03:19.074514Z K 7 svn:log V 294 Replace the #define for "iconv" so it is for the function name instead of a macro with parameters. Remove a __DECONST hack and add consts instead for gnu libiconv API compatability. This makes it work with things like devel/boost-libs that expects to use "iconv" as though it were a pointer. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-07-03T07:31:07.754786Z K 7 svn:log V 43 Fix a compiler warning. MFC after: 1 week END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T07:57:22.506747Z K 7 svn:log V 206 MFC r251789: Now that the necessary infrastructure is in place to ensure hhook points which register after a khelp module will get hooked, move khelp module initialisation to the earlier SI_SUB_KLD stage. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T07:58:14.793719Z K 7 svn:log V 206 MFC r251789: Now that the necessary infrastructure is in place to ensure hhook points which register after a khelp module will get hooked, move khelp module initialisation to the earlier SI_SUB_KLD stage. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T08:20:40.010316Z K 7 svn:log V 72 MFC r252052: Non-virtualised hhook points are supported as of r251732. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2013-07-03T08:21:05.306337Z K 7 svn:log V 72 MFC r252052: Non-virtualised hhook points are supported as of r251732. END K 10 svn:author V 3 smh K 8 svn:date V 27 2013-07-03T08:35:14.247100Z K 7 svn:log V 652 MFC r252471: Remove forced timeout of in-flight commands from mfi_timeout. While this prevents commands getting stuck forever there is no way to guarantee that data from the command hasn't been committed to the device. In addition older mfi firmware has a bug that would cause the controller to frequently stall IO for over our timeout value, which when combined with a forced timeout often resulted in panics in UFS; which would otherwise be avoided when the command eventually completed if left alone. For reference this timeout issue is resolved in Dell FW package 21.2.1-0000. Fixed FW package version for none Dell controller will likely vary. END K 10 svn:author V 3 smh K 8 svn:date V 27 2013-07-03T08:39:18.670963Z K 7 svn:log V 652 MFC r252471: Remove forced timeout of in-flight commands from mfi_timeout. While this prevents commands getting stuck forever there is no way to guarantee that data from the command hasn't been committed to the device. In addition older mfi firmware has a bug that would cause the controller to frequently stall IO for over our timeout value, which when combined with a forced timeout often resulted in panics in UFS; which would otherwise be avoided when the command eventually completed if left alone. For reference this timeout issue is resolved in Dell FW package 21.2.1-0000. Fixed FW package version for none Dell controller will likely vary. END K 10 svn:author V 2 np K 8 svn:date V 27 2013-07-03T09:25:29.126370Z K 7 svn:log V 1814 MFC/backport core kernel and userspace parts of r237263 (TCP_OFFLOAD rework). MFC r237563, r239511, r243603, r245915, r245916, r245919, r245921, r245922, r245924, r245925, r245932, r245934 too. Build tested with make universe. r237263: - Updated TOE support in the kernel. ... r237563: Fix clang warning when compiling iw_cxgb. r239511: Correctly handle the case where an inp has already been dropped by the time the TOE driver reports that an active open failed. toe_connect_failed is supposed to handle this but it should be provided the inpcb instead of the tcpcb which may no longer be around. r243603: Make sure that tcp_timer_activate() correctly sees TCP_OFFLOAD (or not). r245915: Heed SO_NO_OFFLOAD. r245916: Teach toe_4tuple_check() to deal with IPv6 4-tuples too. r245919: Add TCP_OFFLOAD hook in syncache_respond for IPv6 too, just like the one that exists for IPv4. r245921: There is no need to call into the TOE driver twice in pru_rcvd (tod_rcvd and then tod_output right after that). r245922: Avoid NULL dereference in nd6_storelladdr when no mbuf is provided. It is called this way from a couple of places in the OFED code. (toecore calls it too but that's going to change shortly). r245924: Move lle_event to if_llatbl.h lle_event replaced arp_update_event after the ARP rewrite and ended up in if_ether.h simply because arp_update_event used to be there too. IPv6 neighbor discovery is going to grow lle_event support and this is a good time to move it to if_llatbl.h. The two in-tree consumers of this event - OFED and toecore - are not affected. r245925: Generate lle_event in the IPv6 neighbor discovery code too. r245932: Teach toe_l2_resolve to resolve IPv6 destinations too. r245934: Add checks for SO_NO_OFFLOAD in a couple of places that I missed earlier in r245915. END K 10 svn:author V 3 des K 8 svn:date V 27 2013-07-03T09:48:24.255869Z K 7 svn:log V 115 There is no reason to disallow setting the password or account expiry date to the current date. MFC after: 3 days END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-07-03T09:50:59.697480Z K 7 svn:log V 29 Fix a typo (s/error/errno/). END K 10 svn:author V 6 davide K 8 svn:date V 27 2013-07-03T10:31:45.212870Z K 7 svn:log V 136 - Fix double frees/user after free. - Allocate using smb_rq_alloc() instead of inlining it. Reported by: uqs Found with: Coverity Scan END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T10:45:39.025372Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T10:50:04.730808Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 zeising K 8 svn:date V 27 2013-07-03T12:36:47.762709Z K 7 svn:log V 110 Document WITHOUT_SVNLITE and WITH_SVN. PR: docs/180025 Submitted by: Garrett Cooper END K 10 svn:author V 7 zeising K 8 svn:date V 27 2013-07-03T12:53:06.097759Z K 7 svn:log V 96 Regenerate after r252561 PR: docs/180025 Submitted by: Garrett Cooper END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-07-03T12:58:17.890668Z K 7 svn:log V 71 MFC r251995: Use ICMP6STAT_INC() macro for ICMPv6 errors accounting. END K 10 svn:author V 7 zeising K 8 svn:date V 27 2013-07-03T12:58:53.720484Z K 7 svn:log V 67 Revert previous revision, local change that accidentally snuck in. END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-07-03T13:00:35.526667Z K 7 svn:log V 75 MFC r252007: Use RIP6STAT_INC() macro for raw ip6 statistics accounting. END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-07-03T13:03:09.608628Z K 7 svn:log V 104 MFC r252009: Use PIM6STAT_INC() and MRT6STAT_INC() macros for IPv6 multicast statistics accounting. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-07-03T13:16:58.459642Z K 7 svn:log V 91 Add loos into the committers list, mentored by yours truely. Approved by: core (implicit) END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-07-03T13:57:36.864033Z K 7 svn:log V 57 virtio_balloon: Need to use kthread_exit() after r252530 END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-07-03T14:58:11.841400Z K 7 svn:log V 94 Fix NULL-deference kernel panic on attempt of destroying non-existing ramdisk-backed CTL LUN. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T16:44:57.378691Z K 7 svn:log V 112 Remove another further use of vm_page_hold(). Sponsored by: EMC / Isilon storage division Discussed with: jeff END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T16:50:38.375713Z K 7 svn:log V 89 Rename VM_FAULT_IOBUSY into VM_FAULT_RBUSY. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T16:51:33.318384Z K 7 svn:log V 62 Improve comment. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T16:56:23.244176Z K 7 svn:log V 284 Many 64-bits arches use a lot of padding in the definition of struct md_page because of a single vm_memattr_t attribute. Move this into the MI specification, replacing the old "busy" member and making space for the new "busy_lock" member. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T16:57:44.742436Z K 7 svn:log V 116 Actually remove fake busy member and replace with the new memattr one. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T17:23:51.900029Z K 7 svn:log V 81 Add lock comment to the new member. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-07-03T17:26:05.281599Z K 7 svn:log V 519 Don't perform the acpi_DeviceIsPresent() check for PCI-PCI bridges. If we are probing a PCI-PCI bridge it is because we found one by enumerating the devices on a PCI bus, so the bridge is definitely present. A few BIOSes report incorrect status (_STA) for some bridges that claimed they were not present when in fact they were. While here, move this check earlier for Host-PCI bridges so attach fails before doing any work that needs to be torn down. PR: kern/91594 Tested by: Jack Vogel @ Intel MFC after: 1 week END K 10 svn:author V 2 np K 8 svn:date V 27 2013-07-03T17:27:32.463140Z K 7 svn:log V 102 Catch up with r238990. LLE_DELETED does not clobber everything else in la_flags since said revision. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T17:39:19.266584Z K 7 svn:log V 104 Improve comments about busy_lock implementation and usage. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T17:47:48.878943Z K 7 svn:log V 199 Mark the busy_lock as volatile in order to avoid compiler optimizations which can result in problems with inlined functions, like vm_page_busy_wlocked(). Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 davidcs K 8 svn:date V 27 2013-07-03T17:57:35.109006Z K 7 svn:log V 58 Port 0 needs to wait for ACK only if it issued the RESET. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2013-07-03T18:04:46.939038Z K 7 svn:log V 137 Remove jinmei, as he handed his commit bit back for safekeeping. This should have been committed as part of r252465. Approved by: core END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-07-03T18:25:27.916831Z K 7 svn:log V 150 Attempt to deal with a compile failure that shows up with gcc, which has -Werror on. Without this, yylex() is inconsistently or redundantly defined. END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-07-03T18:27:45.230845Z K 7 svn:log V 61 As a followup to r252547, propate const down the call stack. END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-07-03T18:35:21.246226Z K 7 svn:log V 60 Make it clear that there are three separate internal locks. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-07-03T18:48:43.922041Z K 7 svn:log V 34 Code cleanups. MFC after: 3 days END K 10 svn:author V 6 wblock K 8 svn:date V 27 2013-07-03T18:53:36.163811Z K 7 svn:log V 174 Add descriptions to the FILES list, fix some mdoc complaints, move the "neither" entry out of the table in BOOTING. Submitted by: joeld Reviewed by: joeld MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2013-07-03T19:08:10.950370Z K 7 svn:log V 136 Pull in r185446 from clang trunk: Fix to PR15826 - clang hits assert in clang::ASTContext::getASTRecordLayout. Reported by: glebius END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T19:12:35.941967Z K 7 svn:log V 88 MFC: r238051: Add "hier" as an alternate spelling of "hierarchy" to match hier(9). END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-07-03T19:55:24.369864Z K 7 svn:log V 103 Document the hard-functions for vm_page_busy_* interface. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 8 netchild K 8 svn:date V 27 2013-07-03T19:56:39.562710Z K 7 svn:log V 128 Update videodev2.h to the version from linux kernel 2.6.34.14. This version is dual-licensed: 3 clause BSD license and GPL v2+. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2013-07-03T20:08:22.557517Z K 7 svn:log V 15 Tag 2.6.34.14. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-07-03T20:19:23.900763Z K 7 svn:log V 19 Typos in comments. END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-07-03T20:21:39.066247Z K 7 svn:log V 72 Move static ZFS compile option to the other static file system options. END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-07-03T20:22:12.779470Z K 7 svn:log V 26 Add an entry for filemon. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2013-07-03T20:24:37.944773Z K 7 svn:log V 76 MFC r252414: truss: recognize O_DIRECTORY, O_EXEC, O_TTY_INIT and O_CLOEXEC END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T20:28:33.877621Z K 7 svn:log V 147 Style cleanups. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-07-03T20:29:15.392554Z K 7 svn:log V 81 Increase the microcode max size to 16K to accomodate more recent Intel firmware. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T20:42:10.438889Z K 7 svn:log V 256 Sandbox rwho(1) using capability mode and Capsicum capabilities. rwho(1) gets only read-only access to /var/rwho/ directory. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T20:44:47.190554Z K 7 svn:log V 41 Few more style nits. MFC after: 1 month END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-07-03T20:54:25.633697Z K 7 svn:log V 26 Fix grammar in a comment. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-07-03T20:55:49.198489Z K 7 svn:log V 39 MFC r252600: Fix grammar in a comment. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T20:58:58.601754Z K 7 svn:log V 147 Style cleanups. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:04:20.215286Z K 7 svn:log V 329 The whole sending functionality was implemented within signal handler, which is very bad idea. Split sending and receiving in two processes, which fixes this problem and will help to sandbox rwhod. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:05:35.338786Z K 7 svn:log V 150 MFC r250982: sigreturn(2): Remove ancient compatibility warning about 4.2BSD The HISTORY subsection still says that sigreturn() was added in 4.3BSD. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:07:02.064982Z K 7 svn:log V 313 Sandbox rwhod(8) receiver process using capability mode and Capsicum capabilities. rwhod(8) receiver can now only receive packages, write to /var/rwho/ directory and log to syslog. Submitted by: Mariusz Zaborski Sponsored by: Google Summer of Code 2013 Reviewed by: pjd MFC after: 1 month END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:11:56.228297Z K 7 svn:log V 261 MFC r251078,r251433: sleep: Improve nanosleep() error handling: * Work around kernel bugs that cause a spurious [EINTR] return if a debugger (such as truss(1)) is attached. * Write an error message if an error other than [EINTR] occurs. PR: bin/178664 END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:14:57.167405Z K 7 svn:log V 51 MFC r251209: test(1): List non-standard primaries. END K 10 svn:author V 4 ache K 8 svn:date V 27 2013-07-03T21:21:54.845509Z K 7 svn:log V 586 1) POSIX requires rand(3) return values to be in the [0, RAND_MAX] range, but ACM formula we use have internal state (and return value) in the [1, 0x7ffffffe] range, so our RAND_MAX (0x7fffffff) is never reached because it is off by one, zero is not reached too. Correct both RAND_MAX and rand(3) return value, shifting last one to the 0 by 1 subtracted, resulting POSIXed [0, 0x7ffffffd(=new RAND_MAX)] range. 2) Add a checks for not overflowing on too big seeds. It may happens on the machines, where sizeof(unsigned int) > 32 bits. Reviewed by: bde [1] MFC after: 2 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:22:47.186529Z K 7 svn:log V 371 MFC r248692: sh(1): Mention possible ambiguities with $(( and ((. In some other shells, things like $((a);(b)) are command substitutions. Also, there are shells that have an extension ((ARITH)) that evaluates an arithmetic expression and returns status 1 if the result is zero, 0 otherwise. This extension may lead to ambiguity with two subshells starting in sequence. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:25:46.220249Z K 7 svn:log V 56 MFC r248870 by joel: Minor mdoc fix in previous commit. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:31:13.233847Z K 7 svn:log V 175 MFC r251763: sh(1): A subshell environment has its own rlimits (ulimit). This has always been the case and is intended (just like cd). This matches Austin group issue #706. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:41:35.657594Z K 7 svn:log V 107 MFp4: @229469: Garbage-collect dead prototypes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:43:41.887772Z K 7 svn:log V 99 MFC r245383,245392,247190,249220,251180,251797: New sh testcases. These already work on stable/9. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:45:29.537440Z K 7 svn:log V 116 MFp4 @229470: Remove unused argument from send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:49:10.411789Z K 7 svn:log V 123 MFp4 @229471: Remove unused argument from assemble_hw_header(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:53:54.316964Z K 7 svn:log V 138 MFp4 @229472: Use the same type for 'from' and 'to' argument in send_packet(). Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T21:56:25.869326Z K 7 svn:log V 253 MFC r248349: sh: Recognize "--" and explicitly reject options in wait builtin. If syntactically invalid job identifiers are to be taken as jobs that exited with status 127, this should not apply to options, so that we can add options later if need be. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:57:24.076754Z K 7 svn:log V 135 MFp4 @229473: No caller checks send_packet() return value, so make it void. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T21:58:26.749414Z K 7 svn:log V 129 MFp4 @229474: iov_base field is 'void *' in FreeBSD, no need to cast. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:01:52.208978Z K 7 svn:log V 286 MFp4 @229476,229478: Make use of two fields: rfdesc and wfdesc to keep bpf descriptor open for reading only in rfdesc and bpf descriptor open for writing only in wfdesc. In the end they will be used by two different processes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:03:19.088989Z K 7 svn:log V 31 Remove redundant white-spaces. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T22:04:35.231060Z K 7 svn:log V 247 MFC r248774: accept(2): Mention inheritance of O_ASYNC and signal destination. While almost nobody uses O_ASYNC, and rightly so, the inheritance of the related properties across accept() is a portability issue like the inheritance of O_NONBLOCK. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:05:36.996289Z K 7 svn:log V 243 MFp4 @229477: The gethostname(3) function won't work in capability mode, because reading kern.hostname sysctl is not permitted there. Cache hostname early and use cached value later. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:07:55.245170Z K 7 svn:log V 171 MFp4 @229479: - Add new request (IMSG_SEND_PACKET) that will be handled by privileged process. - Add $FreeBSD$. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:09:02.090649Z K 7 svn:log V 151 MFp4 @229480: Shutdown write direction of the routing socket. We only need to read from it. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:12:54.566525Z K 7 svn:log V 378 MFp4 @229481: Currently it was allowed to send any UDP packets from unprivileged process and possibly any packets because /dev/bpf was open for writing. Move sending packets to privileged process. Unprivileged process has no longer access to not connected UDP socket and has only access to /dev/bpf in read-only mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-07-03T22:14:12.954720Z K 7 svn:log V 60 MFC r251181: fork(2): #include is not needed. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:16:02.580275Z K 7 svn:log V 274 MFp4 @229482: - Limit bpf descriptor in unprivileged process to CAP_POLL_EVENT, CAP_READ and allow for SIOCGIFFLAGS, SIOCGIFMEDIA ioctls. - While here limit bpf descriptor in privileged process to only CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:17:29.870152Z K 7 svn:log V 149 MFp4 @229483: Limit communication pipe with privileged process to CAP_READ and CAP_WRITE. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:18:40.138426Z K 7 svn:log V 250 MFp4 @229484: Limit routing socket so only poll(2) and read(2) are allowed (CAP_POLL_EVENT and CAP_READ). This prevents unprivileged process from adding, removing or modifying system routes. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:19:43.346563Z K 7 svn:log V 109 MFp4 @229485: Only allow to overwrite lease file. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:21:11.717226Z K 7 svn:log V 178 MFp4 @229486: Once PID is written to the pidfile, revoke all capability rights. We just want to keep the pidfile open. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:22:29.557895Z K 7 svn:log V 211 MFp4 @229487: Revoke all capability rights from STDIN and allow only for write to STDOUT and STDERR. All those descriptors are redirected to /dev/null. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-07-03T22:23:25.080943Z K 7 svn:log V 125 MFp4 @229488: Sandbox unprivileged process using capability mode. Reviewed by: brooks Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T22:25:00.318088Z K 7 svn:log V 62 MFC: r252348, r252363: sysconf(3) returns a long, not an int. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T22:44:26.102518Z K 7 svn:log V 415 Merge r252512 from src/gnu/usr.bin/patch into src/usr.bin/patch: Make it so that 'patch < FUBAR' and 'patch -i FUBAR' operate the same. The former makes a copy of stdin, but was not accurately putting the content of stdin into a temp file. This lead to the undercounting the number of lines in hunks containing NUL characters when reading from stdin. Thus resulting in "unexpected end of file in patch" errors. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T22:46:30.347142Z K 7 svn:log V 314 Merge r252513 from src/gnu/usr.bin/patch into src/usr.bin/patch: Properly handle input lines containing NUL characters such that pgets() accurately fills the read buffer. Callers of pgets() still mis-process the buffer contents if the read line contains NUL characters, but this at least makes pgets() accurate. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T22:57:20.431333Z K 7 svn:log V 60 Really MFC r252363 (sysconf(3) returns a long, not an int). END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T22:59:46.485073Z K 7 svn:log V 90 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T23:03:28.535632Z K 7 svn:log V 108 MF8: r252639 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-07-03T23:05:17.293483Z K 7 svn:log V 100 Verify that all bytes in the instruction buffer are consumed during decoding. Suggested by: grehan END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-07-03T23:06:58.748373Z K 7 svn:log V 126 MF7: r252640 MF8: r252639 MF9: r252635, r252638: MFC: r252348, r252363: sysconf(3) returns a long, not an int. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-07-03T23:15:30.205122Z K 7 svn:log V 222 MFC r242726 (ambrisko): Add support for SCSI pass through devices to be attached and detached. MFC r251172 (sbruno): xpt_create_path() requires mfi_io_lock to be held, so do it. mfi(4) doesn't panic on host startup now. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-07-03T23:16:33.464072Z K 7 svn:log V 222 MFC r242726 (ambrisko): Add support for SCSI pass through devices to be attached and detached. MFC r251172 (sbruno): xpt_create_path() requires mfi_io_lock to be held, so do it. mfi(4) doesn't panic on host startup now. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-07-03T23:19:57.420026Z K 7 svn:log V 57 Import driver source from hyperv-20130627 vendor branch. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-07-03T23:21:25.243064Z K 7 svn:log V 680 If a superpage mapping is being removed then we need to ignore the PG_PDE_PAT bit when looking up the vm_page associated with the superpage's physical address. If the caching attribute for the mapping is write combining or write protected then the PG_PDE_PAT bit will be set and thus cause an 'off-by-one' error when looking up the vm_page. Fix this by using the PG_PS_FRAME mask to compute the physical address for a superpage mapping instead of PG_FRAME. This is a theoretical issue at this point since non-writeback attributes are currently used only for fictitious mappings and fictitious mappings are not subject to promotion. Discussed with: alc, kib MFC after: 2 weeks END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:24:53.033600Z K 7 svn:log V 954 MFC r252262: For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r249939, where CAM sends ATA_DSM_TRIM to SATA devices using ATA_PASSTHROUGH_16. scsi_ata_trim() sets protocol as DMA (not UDMA) which is for multi-word DMA, even though no such mode is selected for the device. isci(4) would fail these commands which is the correct behavior but not consistent with other HBAs, namely LSI's. smh@ did some further testing on an LSI controller, which rejected ATA_PASSTHROUGH_16 commands with mode=UDMA_OUT, even though only a UDMA mode was selected on the device. So this precludes adding any kind of mode detection in CAM to determine which mode to use on a per-device basis. Note: The reasons behind this change do not apply to stable/7. This MFC is to keep the driver consistent across stable branches and current. Sponsored by: Intel END K 10 svn:author V 4 ache K 8 svn:date V 27 2013-07-03T23:27:04.461335Z K 7 svn:log V 167 In addition to prev. commit, for repeated rand_r(3) calls don't forget to compensate back at the end incremented at the start internal state. MFC after: 2 weeks END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-07-03T23:27:59.082848Z K 7 svn:log V 47 Connect the stordisengage driver to the build. END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:28:07.156750Z K 7 svn:log V 811 MFC r252262: For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r249939, where CAM sends ATA_DSM_TRIM to SATA devices using ATA_PASSTHROUGH_16. scsi_ata_trim() sets protocol as DMA (not UDMA) which is for multi-word DMA, even though no such mode is selected for the device. isci(4) would fail these commands which is the correct behavior but not consistent with other HBAs, namely LSI's. smh@ did some further testing on an LSI controller, which rejected ATA_PASSTHROUGH_16 commands with mode=UDMA_OUT, even though only a UDMA mode was selected on the device. So this precludes adding any kind of mode detection in CAM to determine which mode to use on a per-device basis. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:29:40.835391Z K 7 svn:log V 811 MFC r252262: For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r249939, where CAM sends ATA_DSM_TRIM to SATA devices using ATA_PASSTHROUGH_16. scsi_ata_trim() sets protocol as DMA (not UDMA) which is for multi-word DMA, even though no such mode is selected for the device. isci(4) would fail these commands which is the correct behavior but not consistent with other HBAs, namely LSI's. smh@ did some further testing on an LSI controller, which rejected ATA_PASSTHROUGH_16 commands with mode=UDMA_OUT, even though only a UDMA mode was selected on the device. So this precludes adding any kind of mode detection in CAM to determine which mode to use on a per-device basis. Sponsored by: Intel END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2013-07-03T23:38:02.468961Z K 7 svn:log V 253 Fix one of INVARIANTS-related UMA panics on ARM Force UMA zone to allocate service structures like slabs using own allocator. uma_debug code performs atomic ops on uma_slab_t fields and safety of this operation is not guaranteed for write-back caches END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-07-03T23:38:37.868117Z K 7 svn:log V 375 vm_phys_fictitious_reg_range() was losing the 'memattr' because it would be reset by pmap_page_init() right after being initialized in vm_page_initfake(). The statement above is with reference to the amd64 implementation of pmap_page_init(). Fix this by calling 'pmap_page_init()' in 'vm_page_initfake()' before changing the 'memattr'. Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:40:43.111879Z K 7 svn:log V 191 MFC r252263: Add an open_dev() helper function to be used in the various places where nvmecontrol needs to open a handle to a controller or namespace device node. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:42:12.504431Z K 7 svn:log V 100 MFC r252264: Add separate *_usage() functions for each nvmecontrol command. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:45:58.569048Z K 7 svn:log V 112 MFC r252265: Break out code related to the devlist command into a separate source file. Sponsored by: Intel END K 10 svn:author V 3 smh K 8 svn:date V 27 2013-07-03T23:46:30.361983Z K 7 svn:log V 351 Bump disk(9) ABI version to signify the addition of d_delmaxsize by r249940. Ensure that d_delmaxsize is always set, removing init to 0 which could cause future issues if use cases change. Allow kern.cam.da.X.delete_max (which maps to d_delmaxsize) to be increased up to the calculated max after being reduced. MFC after: 1 day X-MFC-With: r249940 END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:47:23.113911Z K 7 svn:log V 113 MFC r252266: Break out code related to the identify command into a separate source file. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:48:58.582845Z K 7 svn:log V 106 MFC r252267: Break out code related to the perftest command into a separate file. Sponsored by: Intel END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:51:03.532366Z K 7 svn:log V 110 MFC r252268: Break out code related to the reset command into a separate source file. Sponsored by: Intel END K 10 svn:author V 2 np K 8 svn:date V 27 2013-07-03T23:52:15.912075Z K 7 svn:log V 187 - Include the T5 firmware with the driver. - Update the T4 firmware to the latest. - Minor reorganization and updates to the version macros, etc. Obtained from: Chelsio MFC after: 1 day END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2013-07-03T23:53:28.942957Z K 7 svn:log V 470 MFC r252269: Add an nvme_function structure array, defining the name, C function and usage message for each nvmecontrol command. This helps reduce some code clutter both now and for future commits which will add logpage and firmware support to nvmecontrol(8). Also move helper function prototypes to the end of the header file, after the per-command functions. Also add missing static keyword that glebius@ fixed as part of r252302. Sponsored by: Intel END