ĵ8254000 171 321 315 314 277 984 582 656 678 258 294 382 290 254 286 238 694 109 179 347 444 239 177 179 235 292 518 292 162 162 176 209 160 145 143 143 153 153 177 177 142 142 184 184 160 160 146 146 154 154 161 161 300 239 401 426 102 452 320 302 106 182 462 140 424 860 1496 180 99 99 131 446 311 661 254 439 157 147 922 280 639 404 363 860 132 132 417 216 256 472 297 662 401 238 394 741 349 333 159 193 139 337 355 452 452 123 245 561 367 238 455 99 99 517 217 216 216 395 207 430 113 203 198 242 254 175 419 176 104 185 104 160 104 228 293 176 264 129 322 1281 412 155 897 99 510 191 99 151 1128 178 231 158 217 480 981 1005 213 227 234 283 822 1389 193 136 210 181 206 245 273 155 388 316 K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-06T17:11:12.959822Z K 7 svn:log V 228 MFC r253865: Fixes to RX_COPY optimization code allowing the removal of the rearm_queues routine used in local_timer. r253965: Correct the queue mask bit clearing in the link interrupt handler. Approved by: re END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-06T17:22:06.916390Z K 7 svn:log V 222 MFC r253865: Fixes to RX_COPY optimization code allowing the removal of rearm_queues routine used in the local_timer. r253965: Correct the queue mask bit clearing in the link irq handler. Approved by: re END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-06T18:00:53.524303Z K 7 svn:log V 221 When the igb driver is static there are cases when early interrupts occur, resulting in a panic in refresh_mbufs, to prevent this add a check in the interrupt handler for DRV_RUNNING. MFC after: 1 day (critical for 9.2) END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-06T18:20:31.306473Z K 7 svn:log V 184 When the igb driver is static there are cases when early interrupts occur, resulting in a panic in refresh_mbufs, to prevent this add a check in the interrupt handler for DRV_RUNNING. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-06T18:55:59.444480Z K 7 svn:log V 888 As it turns out, MSIs are broken with 2820SA so introduce an AAC_FLAGS_NOMSI quirk and apply it to these controllers [1]. The same problem was reported for 2230S, in which case it wasn't actually clear whether the culprit is the controller or the mainboard, though. In order to be on the safe side, flag MSIs as being broken with the latter type of controller as well. Given that these are the only reports of MSI-related breakage with aac(4) so far and OSes like OpenSolaris unconditionally employ MSIs for all adapters of this family, however, it doesn't seem warranted to generally disable the use of MSIs in aac(4). While it, simplify the MSI allocation logic a bit; there's no need to check for the presence of the MSI capability on our own as pci_alloc_msi(9) will just fail when these kind of interrupts are not available. Reported and tested by: David Boyd [1] MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-06T19:14:02.070923Z K 7 svn:log V 486 - Fix a bug in the MSI allocation logic so an MSI is also employed if a controller supports only a single message. I haven't seen such an adapter out in the wild, though, so this change likely is a NOP. While at it, further simplify the MSI allocation logic; there's no need to check the number of available messages on our own as pci_alloc_msi(9) will just fail if it can't provide us with the single message we want. - Nuke the unused softc of aacch(4). MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-08-06T19:23:57.677290Z K 7 svn:log V 563 MFC 253048,253423,253449,253653,253774,253785: - Allow mlx4 devices to switch between Ethernet and Infiniband: - Fix sysfs attribute handling by using sysctl_handle_string() and properly handling trailing newlines in attribute values. - Remove check forbidding requests that would result in one port being set to Ethernet and the subsequent port being set to IB. - Avoid trashing IP fragments by correctly managing hardware checksumming. - Fix panics when downing or unloading the mlx4 driver. PR: kern/179999, kern/174213, kern/180430, kern/180791 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-08-06T20:04:44.143075Z K 7 svn:log V 585 MFC 253048,253423,253449,253653,253774,253785: - Allow mlx4 devices to switch between Ethernet and Infiniband: - Fix sysfs attribute handling by using sysctl_handle_string() and properly handling trailing newlines in attribute values. - Remove check forbidding requests that would result in one port being set to Ethernet and the subsequent port being set to IB. - Avoid trashing IP fragments by correctly managing hardware checksumming. - Fix panics when downing or unloading the mlx4 driver. PR: kern/179999, kern/174213, kern/180430, kern/180791 Approved by: re (kib) END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-06T21:01:38.522683Z K 7 svn:log V 165 Make the various driver MSIX setup routines fallback to MSI more gracefully. This change was suggested by Marius Strobl, thank you. PR: kern/181016 MFC after: ASAP END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-06T21:16:00.474265Z K 7 svn:log V 201 When the igb driver is static there are cases when early interrupts occur, resulting in a panic in refresh_mbufs, to prevent this add a check to the interrupt handler for DRV_RUNNING. Approved by: re END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-08-06T21:30:37.773520Z K 7 svn:log V 286 Adjust make knobs to know that WITH_ICONV installs a /usr/bin/iconv Remove it if the knob isn't tweaked. Certain ports seem to think that if /usr/bin/iconv exists, then libc has built in libiconv things and will blow up pretty nicely when built. Reviewed by: gjb@ MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-06T21:31:37.407634Z K 7 svn:log V 193 Update vendor-sys/illumos/dist to illumos-gate 14100:2c12d65cf215: Illumos ZFS issues: 348 ZFS should handle DKIOCGMEDIAINFOEXT failure (Note that this change is Solaris/Illuoms specific). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-06T21:36:01.238481Z K 7 svn:log V 157 MFV r254011: This change have no effect to FreeBSD but integrated for completeness. Illumos ZFS issues: 348 ZFS should handle DKIOCGMEDIAINFOEXT failure END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-06T21:41:16.957575Z K 7 svn:log V 189 Update vendor-sys/illumos/dist to illumos-gate 14116:b0233279e3fc: Illumos ZFS issues: 3973 zfs_ioc_rename alters passed in zc->zc_name This change was committed on FreeBSD as r253926. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-06T21:44:54.338723Z K 7 svn:log V 141 MFV r254013 (dummy merge to note that the change is already merged): Illumos ZFS issues: 3973 zfs_ioc_rename alters passed in zc->zc_name END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-08-07T00:00:48.079215Z K 7 svn:log V 598 Change to not redefine the same symbols that are being defined in . Instead give the symbols here a "PC98_" prefix. This way, both and can be included in the same C source file. The renaming is trivial. The only gotcha is that DOSBBSECTOR is also redefined from 0 to 1. This because DOSBBSECTOR was always used in conjunction with an addition of 1. The PC98_BBSECTOR symbol is defined as 1 and the expression is simplified. Note: it is not believed that ports are seriously impacted; or at all for that matter. Approved by: nyan@ END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-08-07T00:09:49.037710Z K 7 svn:log V 14 IFC @ r254014 END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-08-07T00:20:30.270864Z K 7 svn:log V 85 Fill in the description fields for M_FICT_PAGES. Reviewed by: kib MFC after: 3 days END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-08-07T00:28:17.853750Z K 7 svn:log V 252 Pass variables prefixed with both LD_ and LD_32_ to the run-time linker. This prevents unintentional execution of programs when running ldd(1) on 32-bit Linux binaries. PR: 175339, 127276 Suggested by: kib, rstone Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-08-07T01:01:58.152712Z K 7 svn:log V 348 Fix a timing issue with the wired driver. After configuring the interface, wait for the link to become active. Many ethernet drivers reset the chip when we set multicast filters (causing significant delays due to link re-negotiation) and, by the time we start sending packets, they are discared instead of going to the ether. Tested by: dumbbell END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-08-07T01:32:08.525748Z K 7 svn:log V 144 Add a missing module version declaration to if_tun(4). PR: 181078 Submitted by: Brandon Gooch MFC after: 1 week END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-08-07T04:03:30.792594Z K 7 svn:log V 82 Make sure IFM_AVALID is also set when checking ifm_status. Submitted by: yongari END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T05:52:11.403450Z K 7 svn:log V 87 MFC r253497: Use the right name for the vm_map_find(9) flag to specify shared mapping. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T05:55:02.379465Z K 7 svn:log V 142 MFC r253709: The pmap_qenter() and pmap_qremove() perform TLB invalidation on its own, no need to call pmap_invalidate_range() one more time. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T06:05:57.026969Z K 7 svn:log V 199 MFC r253417: Clear the vnode knotes before destroying vpollinfo. MFC r253737: Split the destruction into the helper destroy_vpollinfo_free(), and call it when raced, instead of destroy_vpollinfo(). END K 10 svn:author V 4 jeff K 8 svn:date V 27 2013-08-07T06:21:20.808956Z K 7 svn:log V 424 Replace kernel virtual address space allocation with vmem. This provides transparent layering and better fragmentation. - Normalize functions that allocate memory to use kmem_* - Those that allocate address space are named kva_* - Those that operate on maps are named kmap_* - Implement recursive allocation handling for kmem_arena in vmem. Reviewed by: alc Tested by: pho Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T06:23:28.616181Z K 7 svn:log V 199 MFC r253417: Clear the vnode knotes before destroying vpollinfo. MFC r253737: Split the destruction into the helper destroy_vpollinfo_free(), and call it when raced, instead of destroy_vpollinfo(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T06:32:13.357175Z K 7 svn:log V 70 MFC r253328: Create a proper stack frame for i386 version of bcopy(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T06:34:01.111780Z K 7 svn:log V 70 MFC r253328: Create a proper stack frame for i386 version of bcopy(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T06:36:48.633759Z K 7 svn:log V 84 MFC r253525: Use the same union name on the left and right sides of the conversion. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T06:39:19.241356Z K 7 svn:log V 116 MFC r253526: Fix several warnings. Fix crash in aio_pty_cleanup() by initializing the pointer before dereferencing. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2013-08-07T07:22:56.245148Z K 7 svn:log V 66 Remove unsigned comparison < 0 Found by: LLVM Reviewed by: luigi END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T07:24:20.862294Z K 7 svn:log V 53 MFC r253352: MFi386: add ddb "show sysregs" command. END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:27:49.233292Z K 7 svn:log V 51 MFC r253076: rc.d/zfs: pass -v option to zfs mount END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:28:00.825685Z K 7 svn:log V 51 MFC r253076: rc.d/zfs: pass -v option to zfs mount END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:31:21.159314Z K 7 svn:log V 61 MFC r253067: zfsboottest: sync with changes in zfs boot code END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:31:41.029631Z K 7 svn:log V 61 MFC r253067: zfsboottest: sync with changes in zfs boot code END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:32:56.332966Z K 7 svn:log V 85 MFC r253068: zfsboottest.sh: remove checks for things that are not strictly required END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:33:19.693301Z K 7 svn:log V 85 MFC r253068: zfsboottest.sh: remove checks for things that are not strictly required END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:34:51.606440Z K 7 svn:log V 50 MFC r253605: zfsboottest: remove explicit -Werror END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:34:59.919683Z K 7 svn:log V 50 MFC r253605: zfsboottest: remove explicit -Werror END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:36:28.282434Z K 7 svn:log V 92 MFC r253072: amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:36:37.748582Z K 7 svn:log V 92 MFC r253072: amd64: use -mno-omit-leaf-frame-pointer in addition to -fno-omit-frame-pointer END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:38:11.900256Z K 7 svn:log V 68 MFC r253601: newvers.sh: fix the fallback case of git-svn detection END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:38:18.725407Z K 7 svn:log V 68 MFC r253601: newvers.sh: fix the fallback case of git-svn detection END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:39:44.575994Z K 7 svn:log V 54 MFC r253602: newvers.sh: add another git-svn fallback END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:39:52.232788Z K 7 svn:log V 54 MFC r253602: newvers.sh: add another git-svn fallback END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:41:48.234350Z K 7 svn:log V 62 MFC r253070: zfs: load zpool.cache after a root fs is mounted END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:42:09.610553Z K 7 svn:log V 62 MFC r253070: zfs: load zpool.cache after a root fs is mounted END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:44:03.812950Z K 7 svn:log V 69 MFC r253073: zfs: try to properly handle i/o errors in mappedread_sf END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T07:44:13.159828Z K 7 svn:log V 69 MFC r253073: zfs: try to properly handle i/o errors in mappedread_sf END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-07T08:03:50.878199Z K 7 svn:log V 207 enable KDB_TRACE in GENERICs KDB_TRACE is not an alternative to DDB/etc, they are complementary. So I do not see any reason to not enable KDB_TRACE by default. X-MFC after: never (change specific to head) END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-08-07T08:20:11.675876Z K 7 svn:log V 146 Improve r253721 by reporting detected lack of BIO_FLUSH support to GEOM. That prevents more of such requests from coming and errors from logging. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T09:18:21.386623Z K 7 svn:log V 308 Revert the MFC of the r244237, done as r244806. There are indeed bugs in XEN pmap. The revert hides a panic with the cost of non-working vfork(2), which means more obscure misbehaviour in the usermode. Revert is only done on the stable branch to maintain the consistent erratic behaviour. PR: kern/180788 END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T10:07:55.718434Z K 7 svn:log V 333 Revert the MFC of the r244237, done as r244806. There are indeed bugs in XEN pmap. The revert hides a panic with the cost of non-working vfork(2), which means more obscure misbehaviour in the usermode. Revert is only done on the stable branch to maintain the consistent erratic behaviour. PR: kern/180788 Approved by: re (marius) END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T10:15:54.540828Z K 7 svn:log V 10 Free Glen END K 10 svn:author V 7 ganbold K 8 svn:date V 27 2013-08-07T11:07:56.028234Z K 7 svn:log V 355 Bring initial support for Allwinner A20 SoC (Cubieboard2). Add support for A20 timer. Correct interrupt offset depending from chip. Add basic code for CPU configuration module. For now, add kernel config and dts file (only FDT blob related problem needs to be solved later in order to have one kernel for both cubieboard1 and 2). Approved by: ray@ END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-08-07T11:30:04.499829Z K 7 svn:log V 222 Remove __attribute__((__aligned__)) that generates incorrect alignment on compilers that know about SSE. Code left over from old header that thought that 64 bits was the maximum alignment that anything would ever need... END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-08-07T11:34:20.942539Z K 7 svn:log V 209 Remove droping topology mutex after iterating 100 periphs in CAMGETPASSTHRU. That is not so slow and so often operation to handle unneeded otherwise xsoftc.xpt_generation and respective locking complications. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-08-07T11:45:36.579371Z K 7 svn:log V 14 MFC @ r254058 END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-08-07T12:03:34.259534Z K 7 svn:log V 90 Added regression test for rename(2) problem. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-08-07T15:44:58.033394Z K 7 svn:log V 366 Don't bother trying to work around buffers which are not aligned on a cache line boundary. It has never been 100% correct, and it can't work on SMP, because nothing prevents another core from accessing data from an unrelated buffer in the same cache line while we invalidated it. Just use bounce pages instead. Reviewed by: ian Approved by: mux (mentor) (implicit) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-08-07T15:55:12.823764Z K 7 svn:log V 45 Fix previous commit: both flags must be set. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-07T16:01:45.765933Z K 7 svn:log V 328 Sync-up bsdinstall(8)/bsdconfig(8) list of mirrors. SVN r253543: Update mirror list to more closely match http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html SVN r253545: Sync-up with bsdinstall(8) FTP mirrorselect changes. SVN r253566: Remove ftp2.tr.freebsd.org, it is out of date. Reviewed by: gjb END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T16:33:15.494267Z K 7 svn:log V 767 Change the pmap_ts_referenced() method of amd64 pmap to use shared pvh_global_lock. This allows the method to be executed in parallel, avoiding undue contention on the pvh_global_lock for the multithreaded pagedaemon. The pmap_ts_referenced() function has to inspect the page mappings for several pmaps, which need to be locked while pv list lock is owned. This contradicts to the lock order, where pmap lock is before pv list lock. Introduce the generation count for the pv list of the page or superpage, which indicate any change in the pv list, and, as usual, perform restart of the iteration if generation changed while pv lock was dropped for blocking acquire of a pmap lock. Reported and tested by: pho Reviewed by: alc Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T16:36:38.183162Z K 7 svn:log V 1402 Split the pagequeues per NUMA domains, and split pageademon process into threads each processing queue in a single domain. The structure of the pagedaemons and queues is kept intact, most of the changes come from the need for code to find an owning page queue for given page, calculated from the segment containing the page. The tie between NUMA domain and pagedaemon thread/pagequeue split is rather arbitrary, the multithreaded daemon could be allowed for the single-domain machines, or one domain might be split into several page domains, to further increase concurrency. Right now, each pagedaemon thread tries to reach the global target, precalculated at the start of the pass. This is not optimal, since it could cause excessive page deactivation and freeing. The code should be changed to re-check the global page deficit state in the loop after some number of iterations. The pagedaemons reach the quorum before starting the OOM, since one thread inability to meet the target is normal for split queues. Only when all pagedaemons fail to produce enough reusable pages, OOM is started by single selected thread. Launder is modified to take into account the segments layout with regard to the region for which cleaning is performed. Based on the preliminary patch by jeff, sponsored by EMC / Isilon Storage Division. Reviewed by: alc Tested by: pho Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-07T17:07:42.125490Z K 7 svn:log V 88 MFC r245055 (by neel): Add macros required to enable VMX operation on Intel processors. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-07T18:24:16.693663Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-07T18:34:37.941949Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-07T19:42:17.041284Z K 7 svn:log V 35 MFC r250261: Update zlib to 1.2.8. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-07T19:51:54.918653Z K 7 svn:log V 349 Update vendor/illumos/dist and vendor-sys/illumos/dist to illumos-gate 14120:e9e346400fef: Illumos ZFS issues: 3949 ztest fault injection should avoid resilvering devices 3950 ztest: deadman fires when we're doing a scan 3951 ztest hang when running dedup test 3952 ztest: ztest_reguid test and ztest_fault_inject don't place nice together END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-07T19:53:41.826532Z K 7 svn:log V 214 Update vendor/illumos/dist and vendor-sys/illumos/dist to illumos-gate 14121:6f5ac5d649af: Illumos ZFS issues: 3955 ztest failure: assertion refcount_count(&tx->tx_space_written) + delta <= tx->tx_space_towrite END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-08-07T19:56:35.585916Z K 7 svn:log V 568 Don't emit a spurious EVFILT_PROC event with no fflags set on process exit if NOTE_EXIT is not being monitored. The rationale is that a listener should only get an event for exit() if they registered interest via NOTE_EXIT. This matches the behavior on OS X. - Don't save the exit status on process exit unless NOTE_EXIT is being monitored. - Add an internal EV_DROP flag that requests kqueue_scan() to free the knote without signalling it to userland and use this when a process exits but the fflags in the knote is zero. Reviewed by: jmg MFC after: 1 month END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-08-07T20:35:26.938779Z K 7 svn:log V 158 Improve the sysctl symbol extraction from the kernel so that it find more (all?) sysctl's. Previously some where missed, depending on how they were defined. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-07T21:16:14.802350Z K 7 svn:log V 342 MFV r254070: Merge vendor bugfix for ZFS test suite that triggers false positives. Illumos ZFS issues: 3949 ztest fault injection should avoid resilvering devices 3950 ztest: deadman fires when we're doing a scan 3951 ztest hang when running dedup test 3952 ztest: ztest_reguid test and ztest_fault_inject don't place nice together END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-08-07T21:51:19.685363Z K 7 svn:log V 62 MFC r245347: Add color.4th. MFC r253919: Fix the bootable CD. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-08-07T22:01:43.371785Z K 7 svn:log V 52 Allow net80211 to compile on stable/9 and stable/8. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-07T22:21:00.152592Z K 7 svn:log V 825 MFV r254071: Fix a regression introduced by fix for Illumos bug #3834. Quote from Matthew Ahrens on the Illumos issue: ztest fails this assertion because ztest_dmu_read_write() does dmu_tx_hold_free(tx, bigobj, bigoff, bigsize); and then dmu_object_set_checksum(os, bigobj, (enum zio_checksum)ztest_random_dsl_prop(ZFS_PROP_CHECKSUM), tx); If the region to free is past the end of the file, the DMU assumes that there will be nothing to do for this object. However, ztest does set_checksum(), which must modify the dnode. The fix is for ztest to also call dmu_tx_hold_bonus(tx, bigobj); so we can account for the dirty data associated with setting the checksum Illumos ZFS issues: 3955 ztest failure: assertion refcount_count(&tx->tx_space_written) + delta <= tx->tx_space_towrite END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-07T22:37:05.515371Z K 7 svn:log V 183 - Garbage collect pages and entries not relevant anymore - Introduce a new manpage for the new busy mechanism Sponsored by: EMC / Isilon storage division Partially reviewed by: jeff END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-08T00:06:25.982931Z K 7 svn:log V 542 Update vendor/illumos/dist and vendor-sys/illumos/dist to illumos-gate 14122:1e57939bc87d: Illumos ZFS issues: 3956 ::vdev -r should work with pipelines 3957 ztest should update the cachefile before killing itself 3958 multiple scans can lead to partial resilvering 3959 ddt entries are not always resilvered 3960 dsl_scan can skip over dedup-ed blocks if physical birth != logical birth 3961 freed gang blocks are not resilvered and can cause pool to suspend 3962 ztest should print out zfs debug buffer before exiting END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-08-08T01:53:27.808372Z K 7 svn:log V 309 Our libc iconv (unlike gnu iconv and the citrus code in NetBSD) has a bypass mode when src == dst. Unfortunately, there are tools in ports that pass byte streams through iconv to determine if the encodings are valid. eg: gettext-0.18.3+. Disable the optimization and behave like the other implementations. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-08-08T03:17:39.005781Z K 7 svn:log V 269 Use local variables with the appropriate types and eliminate a bunch of casts. This is a cosmetic change but it does help with a proposed change to increase the maximum size of physical memory supported on amd64 platforms. Submitted by: Chris Torek (torek@torek.net) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-08-08T05:09:35.903320Z K 7 svn:log V 764 Convert net80211 over to using if_transmit for the dispatch from the upper layer(s). This eliminates the if_snd queue from net80211. Yay! This unfortunately has a few side effects: * It breaks ALTQ to net80211 for now - sorry everyone, but fixing parallelism and eliminating the if_snd queue is more important than supporting this broken traffic scheduling model. :-) * There's no VAP and IC flush methods just yet - I think I'll add some NULL methods for now just as placeholders. * It reduces throughput a little because now net80211 will drop packets rather than buffer them if the driver doesn't do its own buffering. This will be addressed in the future as I implement per-node software queues. Tested: * ath(4) and iwn(4) in STA operation END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T05:35:58.013356Z K 7 svn:log V 40 MFC r253859: Remove unused malloc type. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T05:41:55.370317Z K 7 svn:log V 40 MFC r253859: Remove unused malloc type. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-08-08T05:52:41.733460Z K 7 svn:log V 321 Cap the number of streams supported to two for now. I haven't yet reviewed the Intel driver(s) in more depth to see if there are 1x1 NICs that report they support 2 transmit/receive chains.. if so then we'll have to update this. Tested: * Intel 4965, which is a 2x2 device with 3 RX and 2 TX chains. PR: kern/181132 END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T06:00:42.819709Z K 7 svn:log V 123 MFC r253187: Do not invalidate page of the B_NOCACHE buffer or buffer after an I/O error if any user wired mappings exist. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T06:03:34.753688Z K 7 svn:log V 163 MFC r253188: In the vm_page_set_invalid() function, do not assert that the page is not busy, since its only caller brelse() can legitimately call it on busy page. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T06:07:28.043127Z K 7 svn:log V 379 MFC r253189: Never remove user-wired pages from an object when doing msync(MS_INVALIDATE). The vm_fault_copy_entry() requires that object range which corresponds to the user-wired vm_map_entry, is always fully populated. Add OBJPR_NOTWIRED flag for vm_object_page_remove() to request the preserving behaviour, use it when calling vm_object_page_remove() from vm_object_sync(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T06:12:29.024861Z K 7 svn:log V 204 MFC r253190: Add the thread owner of the MAP_ENTRY_IN_TRANSITION flag to struct vm_map_entry. In vm_map_wire() and vm_map_unwire(), only process the entries which transition owner is the current thread. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-08T06:15:58.951059Z K 7 svn:log V 569 MFC r253191: The vm_fault() should not be allowed to proceed on the map entry which is being wired now. The entry wired count is changed to non-zero in advance, before the map lock is dropped. This makes the vm_fault() to perceive the entry as wired, and breaks the fragment which moves the wire count from the shadowed page, to the upper page, making the code unwiring non-wired page. On the other hand, the vm_fault() calls from vm_fault_wire() should be allowed to proceed, so only drain MAP_ENTRY_IN_TRANSITION from vm_fault() when wiring_thread is not current. END K 10 svn:author V 4 ache K 8 svn:date V 27 2013-08-08T09:04:02.082317Z K 7 svn:log V 307 According to POSIX \ in the fnmatch(3) pattern should escape any character including '\0', but our version replace escaped '\0' with '\\'. I.e. fnmatch("\\", "\\", 0) should not match while fnmatch("\\", "", 0) should (Linux and NetBSD does the same). Was vice versa. PR: 181129 MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-08-08T11:24:25.373392Z K 7 svn:log V 146 Make the check for number of entries less strict. Some partitioning tools can create GPT with number of entries less than 128. MFC after: 1 week END K 10 svn:author V 4 ache K 8 svn:date V 27 2013-08-08T11:53:47.135415Z K 7 svn:log V 300 Part of r245761 makes "grep -D skip" broken for pipes, i.e. echo xxx | grep -D skip xxx returns nothing. Instead of just removing added S_ISFIFO condition (originally absent in this version of grep), make it work as latest GNU version does: don't skip directories and devices if fd == STDIN_FILENO. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-08-08T15:59:00.710786Z K 7 svn:log V 648 When newvers.sh is run, it is possible that the svnversion (or svnliteversion) in the current lookup path is not what was used to check out the tree. If an incompatible version is used, the svn revision number is not reported in uname(1). Run ${svnversion} on newvers.sh itself when evaluating if the svn(1) in use is compatible with the tree. Fallback to an empty ${svnversion} if necessary. With this change, svnliteversion from base is only used if no compatible svnversion is found, so with this change, the version of svn(1) from the ports tree is evaluated first. Requested by: many MFC after: 3 days X-MFC-To: stable/9, releng/9.2 only END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-08-08T16:09:20.697401Z K 7 svn:log V 257 gpt_entries is used as limit for the number of partition entries in the GEOM_PART. Instead of just using number of entries from the GPT header, calculate this limit based on the reserved space between GPT header and first available LBA. MFC after: 2 weeks END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-08-08T17:20:09.033393Z K 7 svn:log V 240 MFC 253887,253977: - Use pget(PGET_CANDEBUG | PGET_NOTWEXIT) to determine if the specified PID is valid for monitoring in FILEMON_SET_PID ioctl. - Set the monitored PID to -1 when the process exits. Suggested by: jilles Tested by: sjg END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-08T17:21:59.917075Z K 7 svn:log V 67 Clearing the rxbuf flags got lost along the way... adding it back. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-08T18:16:13.884197Z K 7 svn:log V 100 MFC 253176,253179: make sure the rxbuf->flags is cleared when the RX ring is reset Approved by: re END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-08-08T18:40:19.218316Z K 7 svn:log V 47 Record r253176 and r253179 into svn:mergeinfo. END K 10 svn:author V 6 rstone K 8 svn:date V 27 2013-08-08T19:30:49.928676Z K 7 svn:log V 241 Allow drivers to return BUS_PROBE_NOWILDCARD from their attach routine to match devices where the driver class was fixed but the unit number was wildcarded. This better matches the documented behaviour in DEVICE_PROBE(9). Reviewed by: imp END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-08-08T20:30:22.582194Z K 7 svn:log V 262 MFC 253887,253977: - Use pget(PGET_CANDEBUG | PGET_NOTWEXIT) to determine if the specified PID is valid for monitoring in FILEMON_SET_PID ioctl. - Set the monitored PID to -1 when the process exits. Suggested by: jilles Tested by: sjg Approved by: re (kib) END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-08T21:33:54.442933Z K 7 svn:log V 356 Sync-up bsdinstall(8)/bsdconfig(8) list of mirrors. SVN r253543: Update mirror list to more closely match http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html SVN r253545: Sync-up with bsdinstall(8) FTP mirrorselect changes. SVN r253566: Remove ftp2.tr.freebsd.org, it is out of date. Reviewed by: gavin Approved by: re (glebius) END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-08T21:35:26.581105Z K 7 svn:log V 356 Sync-up bsdinstall(8)/bsdconfig(8) list of mirrors. SVN r253543: Update mirror list to more closely match http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html SVN r253545: Sync-up with bsdinstall(8) FTP mirrorselect changes. SVN r253566: Remove ftp2.tr.freebsd.org, it is out of date. Reviewed by: gavin Approved by: re (glebius) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-08-08T22:07:59.355058Z K 7 svn:log V 31 Small typo. MFC after: 3 days END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-08T22:09:46.192838Z K 7 svn:log V 149 Since the introduction of SVN r244048 and [follow-up] r244089, it is now safe to build upon ``boot_serial?'' functionality to make safer UI choices. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-08T22:26:03.461724Z K 7 svn:log V 464 Integrate OpenSSL commit 9fe4603b8245425a4c46986ed000fca054231253: Author: David Woodhouse Date: Tue Feb 12 14:55:32 2013 +0000 Check DTLS_BAD_VER for version number. The version check for DTLS1_VERSION was redundant as DTLS1_VERSION > TLS1_1_VERSION, however we do need to check for DTLS1_BAD_VER for compatibility. PR:2984 (cherry picked from commit d980abb22e22661e98e5cee33d760ab0c7584ecc) Approved by: benl END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-08T22:29:35.432625Z K 7 svn:log V 270 MFV r254106 (OpenSSL bugfix for RT #2984): Check DTLS_BAD_VER for version number. The version check for DTLS1_VERSION was redundant as DTLS1_VERSION > TLS1_1_VERSION, however we do need to check for DTLS1_BAD_VER for compatibility. Requested by: zi Approved by: benl END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-08T22:34:00.527128Z K 7 svn:log V 142 Update legacy static assignments in old code to support dynamic framing, plotting, and alignment coinciding with enhancements in SVN r242667. END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-08T22:49:18.579992Z K 7 svn:log V 359 Synchronize stable/9 Forth code with head via MFC of 22 revisions: 227727, 233941, 235560, 238431, 241310, 241361, 241363, 241365, 241367, 241523, 242667-242669, 242923, 243114, 243660, 244048, 244089, 244158, 253715, 254105, and 254108. This includes critical fixes that sadly should have been merged prior. Namely, SVN r244158 fixes a possible regression. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-08T23:20:54.712543Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-08T23:24:36.717683Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-08T23:38:31.122557Z K 7 svn:log V 420 MFV r254079: Illumos ZFS issues: 3957 ztest should update the cachefile before killing itself 3958 multiple scans can lead to partial resilvering 3959 ddt entries are not always resilvered 3960 dsl_scan can skip over dedup-ed blocks if physical birth != logical birth 3961 freed gang blocks are not resilvered and can cause pool to suspend 3962 ztest should print out zfs debug buffer before exiting END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-08T23:53:47.618220Z K 7 svn:log V 121 Commit missing mergeinfo for SVN r254109 (commit performed in wrong sub- dir of where the merge was done -- pointy-hat). END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-09T00:39:20.288800Z K 7 svn:log V 123 MFC 235964,236311,247505 Add the INET opt file creation, module name change, and include making the Makefile match HEAD. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-08-09T01:04:44.930027Z K 7 svn:log V 120 Add a helpful message that can help point to why a sysctl tree removal failed Obtained from: Netflix MFC after: 3 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-08-09T01:09:02.114536Z K 7 svn:log V 299 Sometimes a device misbehaves so badly that it disrupts the entire system. Add a tunable that allows such a device to be excluded from the driver. The id parameter is the target id that the driver assigns to a given device. dev.mps.X.exclude_ids=, Obtained from: Netflix MFC after: 3 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-08-09T01:10:33.260188Z K 7 svn:log V 111 Rate limit the 'out of chain frame' messages to once per 60 seconds. Obtained from: Netflix MFC after: 3 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2013-08-09T01:15:32.199629Z K 7 svn:log V 333 Fix for IPv4 fragment packets treated as RMCP. bit25 of rxMode MAC register of 5762 needs to be set for rx mgmt filter to work correctly when processing match for UDP header fields. Otherwise false positive can occur which causes IPv4 fragment to be received by APE instead of host. Reported by: Geans Pin END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-08-09T01:27:05.604349Z K 7 svn:log V 17 Fixup mergeinfo. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2013-08-09T03:24:12.094577Z K 7 svn:log V 109 - Use the correct type in the linux bitops emulation. Submitted by: Maxim Ignatenko END K 10 svn:author V 4 jeff K 8 svn:date V 27 2013-08-09T03:24:48.856924Z K 7 svn:log V 104 - Correctly handle various edge cases in sysfs emulation. Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 4 jeff K 8 svn:date V 27 2013-08-09T03:26:17.241885Z K 7 svn:log V 148 - Reserve a special AF for SDP. The one we were incorrectly using before was taken by another AF. Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 4 jeff K 8 svn:date V 27 2013-08-09T03:29:46.025269Z K 7 svn:log V 160 - Fix compile errors from the clang conversion - Grab AF_SDP_INET from sys/socket.h Submitted by: Garrett Cooper Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-08-09T05:27:38.538183Z K 7 svn:log V 80 Merge r254075 from stable/9. This fixes the ISO images. Approved by: re (gjb@) END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:01:52.546335Z K 7 svn:log V 326 MFC r253527: Move the convert_sigevent32() utility function into freebsd32_misc.c for consumption outside the vfs_aio.c. For SIGEV_THREAD_ID and SIGEV_SIGNAL notification delivery methods, also copy in the sigev_value, since librt event pumping loop compares note generation number with the value passed through sigev_value. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:20:59.449511Z K 7 svn:log V 84 MFC r253528: The freebsd32_lio_listio() compat syscall takes the struct sigevent32. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:23:22.454503Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:25:31.339748Z K 7 svn:log V 93 MFC r253529: Wrap kmq_notify(2) for compat32 to properly consume struct sigevent32 argument. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:27:20.405126Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:51:34.414980Z K 7 svn:log V 68 MFC r253530: Implement compat32 wrappers for the ktimer_* syscalls. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-08-09T06:54:52.230336Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 5 erwin K 8 svn:date V 27 2013-08-09T07:57:04.003914Z K 7 svn:log V 133 Add empty zones for Shared Address Space (RFC 6598) Approved by: delphij (mentor) MFC after: 3 days Sponsored by: DK Hostmaster A/S END K 10 svn:author V 3 avg K 8 svn:date V 27 2013-08-09T08:11:09.484055Z K 7 svn:log V 200 follow up to r254051 - update powerpc/GENERIC64 as well, suggested by mdf - update comments so that they make sense after the change, suggested by jhb X-MFC after: never (change specific to head) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-08-09T08:38:51.288790Z K 7 svn:log V 82 Add -c flag to pgrep(1) and pkill(1), to match login classes. MFC after: 1 month END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-08-09T08:40:31.960215Z K 7 svn:log V 169 Don't dereference null pointer should acl_alloc() be passed M_NOWAIT and allocation failed. Nothing in the tree passed M_NOWAIT. Obtained from: mjg MFC after: 1 month END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-08-09T09:34:11.103250Z K 7 svn:log V 32 MFC alignment fix for libcxxrt. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-08-09T09:48:05.473434Z K 7 svn:log V 229 Remove xpt_compile_path() calls form (ata|scsi)_alloc_device(). That makes last lock-irrelevant by the price of that for some time till probe start device will have protocol, etc. set to UNKNOWN, that is hopefully not a problem. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-09T11:11:11.824368Z K 7 svn:log V 1183 The soft and hard busy mechanism rely on the vm object lock to work. Unify the 2 concept into a real, minimal, sxlock where the shared acquisition represent the soft busy and the exclusive acquisition represent the hard busy. The old VPO_WANTED mechanism becames the hard-path for this new lock and it becomes per-page rather than per-object. The vm_object lock becames an interlock for this functionality: it can be held in both read or write mode. However, if the vm_object lock is held in read mode while acquiring or releasing the busy state, the thread owner cannot make any assumption on the busy state unless it is also busying it. Also: - Add a new flag to directly shared busy pages while vm_page_alloc and vm_page_grab are being executed. This will be very helpful once these functions happen under a read object lock. - Move the swapping sleep into its own per-object flag The KPI is heavilly changed this is why the version is bumped. It is very likely that some VM ports users will need to change their own code. Sponsored by: EMC / Isilon storage division Discussed with: alc Reviewed by: jeff, kib Tested by: gavin, bapt (older version) Tested by: pho, scottl END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-09T11:24:29.328980Z K 7 svn:log V 315 Give mutex(9) the ability to recurse on a per-instance basis. Now the MTX_RECURSE flag can be passed to the mtx_*_flag() calls. This helps in cases we want to narrow down to specific calls the possibility to recurse for some locks. Sponsored by: EMC / Isilon storage division Reviewed by: jeff, alc Tested by: pho END K 10 svn:author V 8 theraven K 8 svn:date V 27 2013-08-09T11:26:26.710674Z K 7 svn:log V 58 Merge alignment fix for libcxxrt header. Approved by: re END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-09T11:28:55.803951Z K 7 svn:log V 800 On all the architectures, avoid to preallocate the physical memory for nodes used in vm_radix. On architectures supporting direct mapping, also avoid to pre-allocate the KVA for such nodes. In order to do so make the operations derived from vm_radix_insert() to fail and handle all the deriving failure of those. vm_radix-wise introduce a new function called vm_radix_replace(), which can replace a leaf node, already present, with a new one, and take into account the possibility, during vm_radix_insert() allocation, that the operations on the radix trie can recurse. This means that if operations in vm_radix_insert() recursed vm_radix_insert() will start from scratch again. Sponsored by: EMC / Isilon storage division Reviewed by: alc (older version) Reviewed by: jeff Tested by: pho, scottl END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-09T11:52:22.474817Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-08-09T11:56:57.334062Z K 7 svn:log V 417 Make bus, target and device reference counting independent of SIM lock. Add new per-bus mutex to protect counters and lists from bus to periphs. This allows freely work with paths in any context, that should be helpful in attempt of decoupling async events -- the biggest locking complication. Periph reference counting still depends on SIM lock since periph methods still expect to be called with the SIM lock held. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2013-08-09T12:19:38.834986Z K 7 svn:log V 99 releng/9.2 was branched, so call this -PRERELEASE again for the duration of the 9.2-RELEASE cycle. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-08-09T12:31:02.605509Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 dteske K 8 svn:date V 27 2013-08-09T14:17:47.626208Z K 7 svn:log V 56 MFC r242688: Hook in new files menusets.4th and manual. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-08-09T15:31:50.052758Z K 7 svn:log V 1031 * Add random_adaptors.[ch] which is basically a store of random_adaptor's. random_adaptor is basically an adapter that plugs in to random(4). random_adaptor can only be plugged in to random(4) very early in bootup. Unplugging random_adaptor from random(4) is not supported, and is probably a bad idea anyway, due to potential loss of entropy pools. We currently have 3 random_adaptors: + yarrow + rdrand (ivy.c) + nehemeiah * Remove platform dependent logic from probe.c, and move it into corresponding registration routines of each random_adaptor provider. probe.c doesn't do anything other than picking a specific random_adaptor from a list of registered ones. * If the kernel doesn't have any random_adaptor adapters present then the creation of /dev/random is postponed until next random_adaptor is kldload'ed. * Fix randomdev_soft.c to refer to its own random_adaptor, instead of a system wide one. Submitted by: arthurmesh@gmail.com, obrien Obtained from: Juniper Networks Reviewed by: so (des) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-08-09T16:27:51.829545Z K 7 svn:log V 86 MFC r253173: Implement 1003.1-2001 pathconf() keys. This is based on r106058 in UFS. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2013-08-09T16:34:12.404090Z K 7 svn:log V 138 Automate inet option file creation for module build, change module name to if_ixgbe, this sync's the Makefile with HEAD. Approved by: re END K 10 svn:author V 6 obrien K 8 svn:date V 27 2013-08-09T16:43:50.557204Z K 7 svn:log V 63 Add missing 'VPO_BUSY' from r254141 to fix kernel build break. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-08-09T17:24:23.303969Z K 7 svn:log V 121 Add mkostemp() and mkostemps(). These are like mkstemp() and mkstemps() but allow passing open(2) flags like O_CLOEXEC. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-08-09T17:52:56.548803Z K 7 svn:log V 387 MFC r252435, r252437, r253163: Change i_gen in UFS to an unsigned type. In UFS, i_gen is a random generated value and there is not way for it to be negative. Actually, the value of i_gen is just used to match bit patterns and it is of no consequence if the values are signed or not. Following other filesystems, set it to unsigned, Calculation for older filesystems remains untouched. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T18:54:27.014156Z K 7 svn:log V 885 MFC: 254004 As it turns out, MSIs are broken with 2820SA so introduce an AAC_FLAGS_NOMSI quirk and apply it to these controllers [1]. The same problem was reported for 2230S, in which case it wasn't actually clear whether the culprit is the controller or the mainboard, though. In order to be on the safe side, flag MSIs as being broken with the latter type of controller as well. Given that these are the only reports of MSI-related breakage with aac(4) so far and OSes like OpenSolaris unconditionally employ MSIs for all adapters of this family, however, it doesn't seem warranted to generally disable the use of MSIs in aac(4). While at it, simplify the MSI allocation logic a bit; there's no need to check for the presence of the MSI capability on our own as pci_alloc_msi(9) will just fail when these kind of interrupts are not available. Reported and tested by: David Boyd [1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T18:57:18.244528Z K 7 svn:log V 909 MFC: r254004 As it turns out, MSIs are broken with 2820SA so introduce an AAC_FLAGS_NOMSI quirk and apply it to these controllers [1]. The same problem was reported for 2230S, in which case it wasn't actually clear whether the culprit is the controller or the mainboard, though. In order to be on the safe side, flag MSIs as being broken with the latter type of controller as well. Given that these are the only reports of MSI-related breakage with aac(4) so far and OSes like OpenSolaris unconditionally employ MSIs for all adapters of this family, however, it doesn't seem warranted to generally disable the use of MSIs in aac(4). While at it, simplify the MSI allocation logic a bit; there's no need to check for the presence of the MSI capability on our own as pci_alloc_msi(9) will just fail when these kind of interrupts are not available. Reported and tested by: David Boyd [1] Approved by: re (kib) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-08-09T19:10:56.742679Z K 7 svn:log V 117 Fix the freaddir implementation for the stand-alone interpreter. Bug pointed out by: Jan Beich END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-08-09T19:20:46.102451Z K 7 svn:log V 131 Now that we can include and at the same time withiut conflict, use the constants defined in them. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T19:44:19.012131Z K 7 svn:log V 138 MFC: r253266 Prefix the alias macros for members of struct __mcontext with an underscore in order to avoid a clash in the net80211 code. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T19:45:55.350684Z K 7 svn:log V 187 MFC: r253742 - Add const-qualifiers to the arguments of isonum_*(). - According to ISO 9660 7.1.2, isonum_712() should return a signed value. - Try to get isonum_*() closer to style(9). END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-08-09T20:08:42.933574Z K 7 svn:log V 724 Initial commit of my USB test code which can exercise connected USB devices and the FreeBSD USB stack itself. This program can be used to test compliance against well established usb.org standards, also called chapter-9 tests. The host platform can act as either USB device or USB host depending on the available hardware. The basic USB communication happens through FreeBSD's own libusb v2, and some sysctls are also used to invoke specific error conditions. This test program can be used to verify correct operation of external USB harddisks under heavy load and various other conditions. The software is driven via a simple command line interface. Main supported USB host classes are "USB mass storage" and "USB modems". END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T20:58:06.910300Z K 7 svn:log V 1292 MFC: r253899, r253920 - Implement iclear methods for QUICC and SAB 82532. With r253161 in place, this is is crucial at least for the latter. What happens is that attaching uart(4) to scc(4) causes the SAB 82532 to "receive" something and trigger a SER_INT_RXREADY interrupt, given that at least fast/filter interrupts are already enabled. Prior to r253161, uart_bus_ihand() was set up at this point and handled that condition, i. e. read the RX FIFO and issued a Receive Message Complete. Now, uart_bus_ihand() and uart_intr() are setup after attaching uart(4), leaving the SER_INT_RXREADY interrupt triggered during the latter to be handled by the iclear method. However, with that method not implement, this in turn causes SAB 82532 to not issue any further SER_INT_RXREADY interrupts until the RX FIFO is full again. Thus, 15 received bytes go to nowhere, given that "the other half" of the RX FIFO is used for status information. Hence, implementing sab82532_bfe_iclear() fixes things again. Potentially, the same problem exists for QUICC. - Remove unnecessary __RMAN_RESOURCE_VISIBLE. - Remove a superfluous header. - Use KOBJMETHOD_END. - Mark unused arguments as such. - Remove variables unused after initialization. Reviewed by: marcel (earlier version) END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T21:01:41.916513Z K 7 svn:log V 98 MFC: r253900 - Use NULL instead of 0 for pointers. - Remove unnecessary __RMAN_RESOURCE_VISIBLE. END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-09T21:04:00.114508Z K 7 svn:log V 41 MFC: r253902 Const'ify scc_driver_name. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-08-09T21:14:55.341449Z K 7 svn:log V 117 Revert the addition of VPO_BUSY and instead update vm_page_replace() to properly unbusy the page. Submitted by: alc END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-08-09T21:53:02.132464Z K 7 svn:log V 86 Make sure vm_kmem_size is aligned on a page boundary, since that's what vmem expects. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-08-09T21:56:28.696162Z K 7 svn:log V 110 - The address lies in the bus space handle, not in the cookie - Use the right address when calling kva_free() END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-08-09T22:30:54.221529Z K 7 svn:log V 149 Instead of just trying to do it for arm, make sure vm_kmem_size is properly aligned in kmeminit(), where it'll work for any arch. Suggested by: alc END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-08-09T23:13:52.875561Z K 7 svn:log V 177 Don't call sleepinit() from proc0_init(), make it a SYSINIT instead. vmem needs the sleepq locks to be initialized when free'ing kva, so we want it called as early as possible. END K 10 svn:author V 4 zont K 8 svn:date V 27 2013-08-09T23:47:43.193790Z K 7 svn:log V 62 Remove unused definition for CTL_VM_NAMES. Suggested by: bde END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-10T00:00:19.482168Z K 7 svn:log V 292 MFC: r241374 Add an unified macro to deny ability from the compiler to reorder instruction loads/stores at its will. The macro __compiler_membar() is currently supported for both gcc and clang, but kernel compilation will fail otherwise. Reviewed by: bde, kib Discussed with: dim, theraven END K 10 svn:author V 6 marius K 8 svn:date V 27 2013-08-10T00:06:56.395582Z K 7 svn:log V 220 MFC: r251782, r251783, r253994 - Remove conflicting macros from SPARC64's atomic(9) header. - Add MD (for now) atomic_store_acq_() and use it in pmap_activate() to get the semantics when setting the PMAP right. END