Ħ1227480 150 274 204 748 326 145 917 198 277 314 193 194 189 234 304 238 291 137 460 163 152 171 139 365 172 150 356 130 189 131 1189 680 140 2229 161 126 237 255 614 191 441 890 271 209 217 170 129 98 139 285 171 1023 140 299 404 404 256 226 1476 518 370 204 209 99 404 271 182 161 423 377 600 266 345 345 275 278 404 944 959 157 160 637 640 362 404 921 252 252 504 1347 636 343 343 695 539 129 98 136 168 111 177 171 179 1251 239 99 164 591 225 309 265 229 143 125 485 125 119 893 130 124 898 130 1038 124 898 287 215 127 804 804 122 230 398 158 153 1834 161 161 148 151 252 255 229 143 678 354 354 232 161 310 346 K 10 svn:author V 3 gjb K 8 svn:date V 27 2011-11-13T01:47:31.042718Z K 7 svn:log V 181 Revert 227466: - mvs.4 uses nested '.Bl' tags which appears to confuse man2hwnotes.pl for hardware note generation - mps.4 also breaks the build, but I haven't yet identified why END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-13T02:32:10.561251Z K 7 svn:log V 112 Return the correct value for the IPV6_MULTICAST_HOPS getsockopt() call. Submitted by: rpaulo MFC after: 3 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-13T03:01:58.869265Z K 7 svn:log V 653 The default setting, daily_accounting_compress="NO", was causing only 1 old file to be saved, so fix this. Problem raised in the PR, but actually required a different solution. While I'm here, fix a very old off-by-one error causing 1 more file than specified in daily_accounting_save to be saved because acct.0 was not taken into account (pun intended). Change that, and use a more thorough method of finding old files to delete. Partly just because this is the right thing to do, but also to silently fix the extra log that would have been left behind forever with the previous method. PR: conf/160848 Submitted by: Andrey Zonov END K 10 svn:author V 6 alfred K 8 svn:date V 27 2011-11-13T03:18:57.679067Z K 7 svn:log V 230 Utilize shell's IFS instead of forking ~6 processes to handle splitting input files on a '|'. This greatly reduces the time taken to process several databases during the update process. Additionally add some more debug logging. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2011-11-13T06:39:49.839453Z K 7 svn:log V 50 Fix spelling of extract. Pointed out by: gcooper END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-13T10:28:01.326792Z K 7 svn:log V 824 To limit amount of the kernel memory allocated, and to optimize the iteration over the fdsets, kern_select() limits the length of the fdsets copied in by the last valid file descriptor index. If any bit is set in a mask above the limit, current implementation ignores the filedescriptor, instead of returning EBADF. Fix the issue by scanning the tails of fdset before entering the select loop and returning EBADF if any bit above last valid filedescriptor index is set. The performance impact of the additional check is only imposed on the (somewhat) buggy applications that pass bad file descriptors to select(2) or pselect(2). PR: kern/155606, kern/162379 Discussed with: cognet, glebius Tested by: andreast (powerpc, all 64/32bit ABI combinations, big-endian), marius (sparc64, big-endian) MFC after: 2 weeks END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-11-13T11:53:18.247404Z K 7 svn:log V 102 Don't copy uninitialized memory. Also simplify the comparison of interface names. MFC after: 3 days. END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-11-13T16:18:48.219997Z K 7 svn:log V 179 The spec says that FILE must be defined in wchar.h, but it wasn't. It is now. Also hide some macros in C++ mode that will break C++ namespaced calls. Approved by: dim (mentor) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-13T16:35:47.507932Z K 7 svn:log V 218 - add "check" option to MD5 and friends to compare files against known hash. PR: bin/146541 Submitted by: eadler Reviewed by: jhell@dataix.net Approved by: secteam (cperciva) Approved by: cperciva MFC after: 3 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-13T17:06:33.630814Z K 7 svn:log V 98 - fix duplicate "a a" in some comments Submitted by: eadler Approved by: simon MFC after: 3 days END K 10 svn:author V 8 theraven K 8 svn:date V 27 2011-11-13T17:07:26.793639Z K 7 svn:log V 97 Hide some more macros that will break C++ when compiling in C++ mode. Approved by: dim (mentor) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-13T17:07:43.478540Z K 7 svn:log V 94 - new sentence should start on new line. PR: bin/146541 Submitted by: bjk Approved by: bjk END K 10 svn:author V 6 cognet K 8 svn:date V 27 2011-11-13T21:36:20.733681Z K 7 svn:log V 138 Use isb at the end of the various i-cache syncing routines, just to be sure. Suggested by: Mark Tinguely END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-13T23:09:26.532365Z K 7 svn:log V 206 Move the assignment of default values for some mount options to before the nfs_decode_args() call in the new NFS client, so they don't overwrite the value specified on the command line. MFC after: 2 weeks END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-14T00:10:11.654962Z K 7 svn:log V 140 Since NFSv4 byte range locking only works for regular files, add a sanity check for the vnode type to the NFSv4 client. MFC after: 2 weeks END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2011-11-14T00:45:25.375786Z K 7 svn:log V 193 The releng/9.0 release branch has been created so convert stable/9 over to our standard "Politically Correct" name for the balance of the 9.0-RELEASE release cycle. Approved by: re (implicit) END K 10 svn:author V 6 alfred K 8 svn:date V 27 2011-11-14T07:12:10.119321Z K 7 svn:log V 42 Constify args to copyiniov and copyinuio. END K 10 svn:author V 2 mm K 8 svn:date V 27 2011-11-14T08:29:49.565593Z K 7 svn:log V 368 Import upstream changesets for the output of the "zpool" command: 952 separate intent logs should be obvious in 'zpool iostat' output 1337 `zpool status -D' should tell if there are no DDT entries References: https://www.illumos.org/issues/952 https://www.illumos.org/issues/1337 Obtained from: Illumos (issues 952, 1337; changesets 13384, 13432) MFC after: 1 week END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-14T15:10:01.616607Z K 7 svn:log V 71 MFC: r226987 Added missing cache purge of from argument for rename(). END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-11-14T15:10:42.623437Z K 7 svn:log V 58 Note the ip_len bug fixed in r226105 in the BUGS section. END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-11-14T15:14:42.544715Z K 7 svn:log V 77 Remove mention of ss_fltsz and ss_fltsz_local which were retired in r226447. END K 10 svn:author V 5 andre K 8 svn:date V 27 2011-11-14T15:57:03.764454Z K 7 svn:log V 45 mdoc fix for r227499. Reported by: brueffer END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-14T18:00:15.208583Z K 7 svn:log V 272 - Split out a kern_posix_fadvise() from the posix_fadvise() system call so it can be used by in-kernel consumers. - Make kern_posix_fallocate() public. - Use kern_posix_fadvise() and kern_posix_fallocate() to implement the freebsd32 wrappers for the two system calls. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2011-11-14T18:21:27.106054Z K 7 svn:log V 80 Remove a few bits of FreeBSD 2.x compatibility code. Approved by: kib (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-14T18:23:50.978522Z K 7 svn:log V 58 Sync with the old NFS client: Remove an obsolete comment. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-14T18:40:04.062636Z K 7 svn:log V 259 It's bad idea to allocate large memory, 4KB, from stack. Pre-allocate the memory in device attach time. While I'm here remove unnecessary reassignment of error variable as it was already initialized. Also added a missing driver lock in TIIOCSETTRACE handler. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-14T18:51:39.185759Z K 7 svn:log V 35 Add DTS for the Freescale P3041DS. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-14T18:52:07.243287Z K 7 svn:log V 97 Finish making 'wcommitsize' an NFS client mount option. Reviewed by: rmacklem MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-14T19:06:28.821343Z K 7 svn:log V 36 Add DTS for the Freescale P1020RDB. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-14T19:10:20.705660Z K 7 svn:log V 1091 Export sysctl node for various interrupt moderation parameters and have administrators control them. ti(4) provides a character device to control various other features of driver via ioctls but users had to write their own code to manipulate these parameters. It seems some default values for these parameters are not optimal on today's system but leave it as it was and let administrators change them. The following parameters could be changed: dev.ti.%d.rx_coal_ticks dev.ti.%d.rx_max_coal_bds dev.ti.%d.tx_coal_ticks dev.ti.%d.tx_max_coal_bds dev.ti.%d.tx_buf_ratio dev.ti.%d.stat_ticks The interface has to be brought down and up again before a change takes effect. ti(4) controller supports hardware MAC counters with additional DMA statistics. So it's doable to export these counters via sysctl interface. Unfortunately, these counters are cumulative such that driver have to either send an explicit clear command to controller after extracting them or have to maintain internal counters to get actual changes. Neither look good to me so counters were not exported via sysctl. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-11-14T19:32:05.538785Z K 7 svn:log V 587 Temporary revert r227009 to fix freeze on UP systems without PREEMPTION. Before r215687, if some withered geom or provider could not be destroyed, g_event thread went to sleep for 0.1s before retrying. After that change it is just restarting immediately. r227009 made orphaned (withered) provider to not detach immediately, but only after context switch. That made loop inside g_event thread infinite on UP systems without PREEMPTION. To address original problem with possible dead lock addressed by r227009 we have to fix r215687 change first, that needs some time to think and test. END K 10 svn:author V 2 rm K 8 svn:date V 27 2011-11-14T20:32:39.590415Z K 7 svn:log V 49 - add my co-mentors Approved by: novel (mentor) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-14T20:38:14.646374Z K 7 svn:log V 2131 Overhaul bus_dma(9) usage in driver: - Don't use a single big DMA block for all rings. Create separate DMA area for each ring instead. Currently the following DMA areas are created: Event ring, standard RX ring, jumbo RX ring, RX return ring, hardware MAC statistics and producer/consumer status area. For Tigon II, mini RX ring and TX ring are additionally created. - Added missing bus_dmamap_sync(9) in various TX/RX paths. - TX ring is no longer created for Tigon 1 such that it saves more resources on Tigon 1. - Data sheet is not clear about alignment requirement of each ring so use 32 bytes alignment for normal DMA area but use 64 bytes alignment for jumbo RX ring where the extended RX descriptor size is 64 bytes. - For each TX/RX buffers use separate DMA tag(e.g. the size of a DMA segment, total size of DMA segments etc). - Tigon allows separate DMA area for event producer, RX return producer and TX consumer which is really cool feature. This means TX and RX path could be independently run in parallel. However ti(4) uses a single driver lock so it's meaningless to have separate DMA area for these producer/consumer such that this change creates a single status DMA area. - It seems Tigon has no limits on DMA address space and I also don't see any problem with that but old comments in driver indicates there could be issues on descriptors being located in 64bit region. Introduce a tunable, dev.ti.%d.dac, to disable using 64bit DMA in driver. The default is 0 which means it would use full 64bit DMA. If there are DMA issues, users can disable it by setting the tunable to 0. - Do not increase watchdog timer in ti_txeof(). Previously driver increased the watchdog timer whenever there are queued TX frames. - When stat ticks is set to 0, skip processing ti_stats_update(), avoiding bus_dmamap_sync(9) and updating if_collisions counter. - MTU does not include FCS bytes, replace it with ETHER_VLAN_ENCAP_LEN. With these changes, ti(4) should work on PAE environments. Many thanks to Jay Borkenhagen for remote hardware access. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-14T21:59:49.369258Z K 7 svn:log V 65 Document newly introduced a loader tunable and sysctl variables. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-14T22:16:12.548367Z K 7 svn:log V 30 Clarify hw.ti.%d.dac tunable. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-14T22:57:47.045330Z K 7 svn:log V 139 Remove list nesting in the hardware notes section, thus making it compatible with the hardware notes generation script. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-14T23:01:08.152255Z K 7 svn:log V 157 Re-apply r227466 to generate hardware notes for mps(4) and mvs(4), the issues were fixes. Thanks to: gjb, manolis Pointy hat ++: brueffer MFC after: 3 days END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-15T01:39:02.311238Z K 7 svn:log V 516 Move the setting of the default value for nm_wcommitsize to before the nfs_decode_args() call in the new NFS client, so that a specfied command line value won't be overwritten. Also, modify the calculation for small values of desiredvnodes to avoid an unusually large value or a divide by zero crash. It seems that the default value for nm_wcommitsize is very conservative and may need to change at some time. PR: kern/159351 Submitted by: onwahe at gmail.com (earlier version) Reviewed by: jhb MFC after: 2 weeks END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-15T01:48:53.439134Z K 7 svn:log V 96 Reformat comment to be more readable in standard Xterm. (while I'm here, wrap other long lines) END K 10 svn:author V 3 das K 8 svn:date V 27 2011-11-15T05:45:46.857650Z K 7 svn:log V 348 Sync the style, comments, and variable names of arc4random.c with OpenBSD's version (r1.22). While some of our style changes were indeed small improvements, being able to easily track functionality changes in OpenBSD seems more useful. Also fix style bugs in the FreeBSD-specific parts of this file. No functional changes, as verified with md5. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-11-15T05:49:24.304267Z K 7 svn:log V 797 Further reduce diffs with OpenBSD's arc4random. The main functional change here is to ensure that when a process forks after arc4random is seeded, the parent and child don't observe the same random sequence. OpenBSD's fix introduces some additional overhead in the form of a getpid() call. This could be improved upon, e.g., by setting a flag in fork(), if it proves to be a problem. This was discussed with secteam (simon, csjp, rwatson) in 2008, shortly prior to my going out of town and forgetting all about it. The conclusion was that the problem with forks is worrisome, but it doesn't appear to have introduced an actual vulnerability for any known programs. The only significant remaining difference between our arc4random and OpenBSD's is in how we seed the generator in arc4_stir(). END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-15T05:49:34.708820Z K 7 svn:log V 175 Create a new branch, called altix2, for SGI Altix work. This is the continuation of the altix branch, which got increasingly harder to merge from head due to metadata bogons. END K 10 svn:author V 3 das K 8 svn:date V 27 2011-11-15T05:55:15.971685Z K 7 svn:log V 116 A regression test to ensure that arc4random returns different sequences in parent and child processes after a fork. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-15T06:35:21.368405Z K 7 svn:log V 121 Bring over all the changes from the altix branch. This is deliberately not a merge, so prevent poisoning the merge data. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-15T06:44:07.474694Z K 7 svn:log V 75 Improve the chances of matching an outputted string with the line of code. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-15T06:45:51.679550Z K 7 svn:log V 34 Garbage-collect opt_comconsole.h. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-15T06:50:10.550481Z K 7 svn:log V 4 KNF END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-15T09:23:21.691706Z K 7 svn:log V 47 Removed extra PRELE() call. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2011-11-15T12:59:07.342698Z K 7 svn:log V 188 On some laptops it is important to re-open /dev/psm after resume. moused(8) was capable to do this upon SIGHUP for more than a decade. Automate this via rc.resume in default installation. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-15T14:09:53.080092Z K 7 svn:log V 79 Remove the condition that is always true. Submitted by: alc MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-15T14:40:00.674000Z K 7 svn:log V 930 Update the device pager interface, while keeping the compatibility layer for old KPI and KBI. New interface should be used together with d_mmap_single cdevsw method. Device pager can be allocated with the cdev_pager_allocate(9) function, which takes struct cdev_pager_ops, containing constructor/destructor and page fault handler methods supplied by driver. Constructor and destructor, called at the pager allocation and deallocation time, allow the driver to handle per-object private data. The pager handler is called to handle page fault on the vm map entry backed by the driver pager. Driver shall return either the vm_page_t which should be mapped, or error code (which does not cause kernel panic anymore). The page handler interface has a placeholder to specify the access mode causing the fault, but currently PROT_READ is always passed there. Sponsored by: The FreeBSD Foundation Reviewed by: alc MFC after: 1 month END K 10 svn:author V 3 des K 8 svn:date V 27 2011-11-15T16:20:39.396816Z K 7 svn:log V 48 Add netcat (nc) to /rescue. MFC after: 3 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-15T17:15:09.393891Z K 7 svn:log V 203 - add support for Broadcom 802.11bg/EDGE/GPRS CardBus (Serial) - correct mislabeling of 0x432214e4 device PR: kern/119606 Submitted by: Joe Greco Approved by: jhb MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-15T17:30:03.708682Z K 7 svn:log V 307 MFC r227409: Do a dummy read to flush the interrupt ACK that we just performed, ensuring that everything is really, truly consistent. This fixes certain cases where one will see various: mfi0: COMMAND 0xffffffXXXXXXXXXX TIMEOUT AFTER XX SECONDS Submitted by: scottl Ok'ed by: jhb Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-15T17:42:00.192261Z K 7 svn:log V 307 MFC r227409: Do a dummy read to flush the interrupt ACK that we just performed, ensuring that everything is really, truly consistent. This fixes certain cases where one will see various: mfi0: COMMAND 0xffffffXXXXXXXXXX TIMEOUT AFTER XX SECONDS Submitted by: scottl Ok'ed by: jhb Approved by: re (kib) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-15T17:53:29.571286Z K 7 svn:log V 160 - add support for Titan VScom PCIex-800H PR: kern/124128 Submitted by: Maxim Frolov (original) Approved by: jhb MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-11-15T18:49:27.356072Z K 7 svn:log V 125 Further automate production release generation by naming files the right things and generating checksums. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-15T20:11:03.218685Z K 7 svn:log V 1379 As it turns out, r186347 actually is insufficient to avoid the use of the curthread-accessing part of mtx_{,un}lock(9) when using a r210623-style curthread implementation on sparc64, crashing the kernel in its early cycles as PCPU isn't set up, yet (and can't be set up as OFW is one of the things we need for that, which leads to a chicken-and-egg problem). What happens is that due to the fact that the idea of r210623 actually is to allow the compiler to cache invocations of curthread, it factors out obtaining curthread needed for both mtx_lock(9) and mtx_unlock(9) to before the branch based on kobj_mutex_inited when compiling the kernel without the debugging options. So change kobj_class_compile_static(9) to just never acquire kobj_mtx, effectively restricting it to its documented use, and add a kobj_init_static(9) for initializing objects using a class compiled with the former and that also avoids using mutex(9) (and malloc(9)). Also assert in both of these functions that they are used in their intended way only. While at it, inline kobj_register_method() and kobj_unregister_method() as there wasn't much point for factoring them out in the first place and so that a reader of the code has to figure out the locking for fewer functions missing a KOBJ_ASSERT. Tested on powerpc{,64} by andreast. Reviewed by: nwhitehorn (earlier version), jhb MFC after: 3 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-11-15T20:15:58.738009Z K 7 svn:log V 425 LLVM uses atomic operations, which are not supported on i386 and GCC emits calls for them, rather than expanding them inline. Older FreeBSD versions compile for i386 by default and as such we end up with unresolved symbols when we build LLVM's TableGen utility as a build tool on them. Add the functions that GCC emits here, but don't bother to make them atomic. Such is not needed. Submitted by: marcel MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2011-11-15T20:17:18.933065Z K 7 svn:log V 274 Define curthread as an inline function that loads the thread pointer directly from g7, the pcpu pointer. This guarantees correct behavior when the thread migrates to a different CPU. Commit message stolen from r205431. Additional testing by Peter Jeremy. MFC after: 3 days END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2011-11-15T20:41:50.962720Z K 7 svn:log V 108 Set the MTU of an path to an approriate value if the interface MTU can't be determined. MFC after: 3 days. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-11-15T20:48:57.422223Z K 7 svn:log V 111 Some brands of XHCI controllers needs more time to reset. Reported by: Jan Henrik Sylvester MFC after: 1 week END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-15T23:32:30.490230Z K 7 svn:log V 4 MFC END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-15T23:35:43.617425Z K 7 svn:log V 306 Modify the new NFS client so that nfs_fsync() only calls ncl_flush() for regular files. Since other file types don't write into the buffer cache, calling ncl_flush() is almost a no-op. However, it does clear the NMODIFIED flag and this shouldn't be done by nfs_fsync() for directories. MFC after: 2 weeks END K 10 svn:author V 7 attilio K 8 svn:date V 27 2011-11-15T23:37:15.742578Z K 7 svn:log V 174 Fix compilation for userland: - Use CTASSERT() only in the kernel. - the root pointer is required by struct vm_object which is accessible (maybe incorrectly?) by userland. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-15T23:46:25.916319Z K 7 svn:log V 87 MFC: r220954 & r221469: Note which of the built kernels is being installed. PR: 156579 END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-16T02:00:27.756756Z K 7 svn:log V 66 Remove the altix branch. It's been replaced by the altix2 branch. END K 10 svn:author V 2 bz K 8 svn:date V 27 2011-11-16T02:00:55.701801Z K 7 svn:log V 331 The maximum TSO frame size should be: maximum IP datagram size (65535 bytes) + Ethernet header size (14 bytes) + 2 * VLAN tag size (4 bytes) [1]. [1] We need to multiply by 2 to account for the double VLAN tag provision added in IEEE 802.1ad. Submitted by: David Somayajulu (david.somayajulu qlogic.com) MFC after: 4 days END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2011-11-16T02:52:24.557555Z K 7 svn:log V 281 Was chasing down a failure to load f/w on a 2400. It turns out that the card is actually broken, or needs a BIOS upgrade for 64 bit loads, but this uncovered a couple of misplaced opcode definitions and some missing continual mbox command cases, so might as well update them here. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-16T05:05:13.325765Z K 7 svn:log V 502 MFC: r224604 Fix a LOR in the NFS client which could cause a deadlock. This was reported to the mailing list freebsd-net@freebsd.org on July 21, 2011 under the subject "LOR with nfsclient sillyrename". The LOR occurred when nfs_inactive() called vrele(sp->s_dvp) while holding the vnode lock on the file in s_dvp. This patch modifies the client so that it performs the vrele(sp->s_dvp) as a separate task to avoid the LOR. This fix was discussed with jhb@ and kib@, who both proposed variations of it. END K 10 svn:author V 3 pho K 8 svn:date V 27 2011-11-16T10:11:55.616451Z K 7 svn:log V 173 Handle invalid large values for getdirentries(2) data buffer size. In collaboration with: kib Reviewed by: des Reported by: The iknowthis syscall fuzzer. MFC after: 1 week END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-11-16T14:33:30.034628Z K 7 svn:log V 248 MFC r227391: Import gcc fix for -fstack-protector that produces segfaulting binaries on arm/armel. Related gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35965 Author kindly accepted that all of his patches can be use as GPLv2. PR: 161128 END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-11-16T14:37:47.979444Z K 7 svn:log V 248 MFC r227391: Import gcc fix for -fstack-protector that produces segfaulting binaries on arm/armel. Related gcc bug: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35965 Author kindly accepted that all of his patches can be use as GPLv2. PR: 161128 END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:23:19.371716Z K 7 svn:log V 183 MFC r227274: Add reference to gpart(8). MFC r227298: Remove a note about disabling of GEOM protection mechanism. boot0cfg should work without such hack. Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:23:42.320950Z K 7 svn:log V 186 MFC r227274: Add reference to gpart(8). MFC r227298: Remove a note about disabling of GEOM protection mechanism. boot0cfg should work without such hack. Approved by: re (kib) END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-11-16T15:25:12.935584Z K 7 svn:log V 307 MFC r226514,r226526,r226986: Add a flush of the current PMC log buffer before displaying the next top. As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:32:32.235005Z K 7 svn:log V 852 MFC r227231: To be in sync with GEOM_PART_BSD limit the maximum number of supported partitions to 20. MFC r227248: bsdlabel(8) could automatically fill many of disklabel's deprecated fields, but user could specify some of those fields when edits disklabel with `bsdlabel -e`. But without -A flag these fields might be overwritten with default values from the virgin disklabel. So, don't overwrite such fields if they are not zero. Also add checks to prevent creating disklabel with less than DEFPARTITIONS and more than MAXPARTITIONS partitions. PR: bin/162332 Tested by: Eugene Grosbein MFC r227262: Remove unneeded checks. MFC r227270: Add recommendation to use gpart(8) when user tries write disklabel or bootcode to already opened provider. MFC r227296: Fix multi-line comment formatting. Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:32:52.898894Z K 7 svn:log V 867 MFC r227231: To be in sync with GEOM_PART_BSD limit the maximum number of supported partitions to 20. MFC r227248: bsdlabel(8) could automatically fill many of disklabel's deprecated fields, but user could specify some of those fields when edits disklabel with `bsdlabel -e`. But without -A flag these fields might be overwritten with default values from the virgin disklabel. So, don't overwrite such fields if they are not zero. Also add checks to prevent creating disklabel with less than DEFPARTITIONS and more than MAXPARTITIONS partitions. PR: bin/162332 Tested by: Eugene Grosbein MFC r227262: Remove unneeded checks. MFC r227270: Add recommendation to use gpart(8) when user tries write disklabel or bootcode to already opened provider. MFC r227296: Fix multi-line comment formatting. Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:35:05.445337Z K 7 svn:log V 66 MFC rr227273: Add reference to gpart(8). Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:35:22.238384Z K 7 svn:log V 69 MFC rr227273: Add reference to gpart(8). Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:36:53.484401Z K 7 svn:log V 545 MFC r227272: Add reference to gpart(8). MFC r227280: Initialize "acc" value inside the loop to reset failed attempts. PR: misc/162262 MFC r227292: Improve error reporting when MBR can not be written. Remove obsolete code which uses DIOCSMBR ioctl. When writing MBR first check that GEOM_MBR is available, if it is not available, then try write MBR directly to provider. If both are failed, then recommend to use gpart(8). MFC r227295: Fix multi-line comment formatting. Pointed by: jh Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T15:37:13.959004Z K 7 svn:log V 548 MFC r227272: Add reference to gpart(8). MFC r227280: Initialize "acc" value inside the loop to reset failed attempts. PR: misc/162262 MFC r227292: Improve error reporting when MBR can not be written. Remove obsolete code which uses DIOCSMBR ioctl. When writing MBR first check that GEOM_MBR is available, if it is not available, then try write MBR directly to provider. If both are failed, then recommend to use gpart(8). MFC r227295: Fix multi-line comment formatting. Pointed by: jh Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-16T15:39:27.197850Z K 7 svn:log V 269 Add single-message MSI support to mfi(4). It is disabled by default but can be enabled via the hw.mfi.msi tunable. Many mfi(4) controllers also support MSI-X, but in testing it seems that many adapters do not work with MSI-X but do work with MSI. MFC after: 2 weeks END K 10 svn:author V 7 fabient K 8 svn:date V 27 2011-11-16T16:15:31.906417Z K 7 svn:log V 307 MFC r226514,r226526,r226986: Add a flush of the current PMC log buffer before displaying the next top. As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T16:24:36.515252Z K 7 svn:log V 829 MFC r227231: To be in sync with GEOM_PART_BSD limit the maximum number of supported partitions to 20. MFC r227248: bsdlabel(8) could automatically fill many of disklabel's deprecated fields, but user could specify some of those fields when edits disklabel with `bsdlabel -e`. But without -A flag these fields might be overwritten with default values from the virgin disklabel. So, don't overwrite such fields if they are not zero. Also add checks to prevent creating disklabel with less than DEFPARTITIONS and more than MAXPARTITIONS partitions. PR: bin/162332 Tested by: Eugene Grosbein MFC r227262: Remove unneeded checks. MFC r227270: Add recommendation to use gpart(8) when user tries write disklabel or bootcode to already opened provider. M2C r227296: Fix multi-line comment formatting. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-16T16:27:53.883882Z K 7 svn:log V 156 MFC r226404: - add support for I-O DATA RSA-PCI2/R PR: kern/142999 Submitted by: Takefu Kenji Approved by: jhb Approved by: re (kib) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-16T16:29:05.416937Z K 7 svn:log V 156 MFC r226404: - add support for I-O DATA RSA-PCI2/R PR: kern/142999 Submitted by: Takefu Kenji Approved by: jhb Approved by: re (kib) END K 10 svn:author V 2 ae K 8 svn:date V 27 2011-11-16T16:42:23.574111Z K 7 svn:log V 412 MFC r227272: Add reference to gpart(8). MFC r227292: Improve error reporting when MBR can not be written. Remove obsolete code which uses DIOCSMBR ioctl. When writing MBR first check that GEOM_MBR is available, if it is not available, then try write MBR directly to provider. If both are failed, then recommend to use gpart(8). MFC r227295: Fix multi-line comment formatting. Pointed by: jh END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-11-16T16:46:09.867609Z K 7 svn:log V 1253 Refactor the code that performs physically contiguous memory allocation, yielding a new public interface, vm_page_alloc_contig(). This new function addresses some of the limitations of the current interfaces, contigmalloc() and kmem_alloc_contig(). For example, the physically contiguous memory that is allocated with those interfaces can only be allocated to the kernel vm object and must be mapped into the kernel virtual address space. It also provides functionality that vm_phys_alloc_contig() doesn't, such as wiring the returned pages. Moreover, unlike that function, it respects the low water marks on the paging queues and wakes up the page daemon when necessary. That said, at present, this new function can't be applied to all types of vm objects. However, that restriction will be eliminated in the coming weeks. From a design standpoint, this change also addresses an inconsistency between vm_phys_alloc_contig() and the other vm_phys_alloc*() functions. Specifically, vm_phys_alloc_contig() manipulated vm_page fields that other functions in vm/vm_phys.c didn't. Moreover, vm_phys_alloc_contig() knew about vnodes and reservations. Now, vm_page_alloc_contig() is responsible for these things. Reviewed by: kib Discussed with: jhb END K 10 svn:author V 6 philip K 8 svn:date V 27 2011-11-16T17:11:13.672804Z K 7 svn:log V 540 Add the sfxge(4) device driver, providing support for 10Gb Ethernet adapters based on Solarflare SFC9000 family controllers. The driver supports jumbo frames, transmit/receive checksum offload, TCP Segmentation Offload (TSO), Large Receive Offload (LRO), VLAN checksum offload, VLAN TSO, and Receive Side Scaling (RSS) using MSI-X interrupts. This work was sponsored by Solarflare Communications, Inc. My sincere thanks to Ben Hutchings for doing a lot of the hard work! Sponsored by: Solarflare Communications, Inc. MFC after: 3 weeks END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-11-16T17:39:59.823139Z K 7 svn:log V 245 MFC r226679: Let net80211 also know about stopped BA sessions. This fixes some issues where the driver assumed that BA resources are still available due to net80211 saying so. PR: 161407, 159768 Tested by: cperciva, rene Approved by: re (kib) END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2011-11-16T17:41:31.718049Z K 7 svn:log V 245 MFC r226679: Let net80211 also know about stopped BA sessions. This fixes some issues where the driver assumed that BA resources are still available due to net80211 saying so. PR: 161407, 159768 Tested by: cperciva, rene Approved by: re (kib) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-16T17:48:05.267513Z K 7 svn:log V 602 Partially MFC 218195, 218424, and 221829: - Put the general logic for being a CPU hog into a new function should_yield(). - Encapsulate the common case of check-and-yield into a new function maybe_yield(). - Add kern_yield() as a more generic version of uio_yield() and reimplement uio_yield() in terms of kern_yield(). To preserve the ABI of struct thread, should_yield() in 8 continues to use PCPU_GET(switchticks) rather than the td_swvolticks added in 9. Also, existing users of uio_yield() are left unchanged. Instead, the routines are merely added for use by new code. Reviewed by: mdf END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-16T18:33:17.676263Z K 7 svn:log V 446 MFC 220791,220793,220846,221836,226364: Add the posix_fallocate(2) syscall. The default implementation in vop_stdallocate() is filesystem agnostic and will run as slow as a read/write loop in userspace; however, it serves to correctly implement the functionality for filesystems that do not implement a VOP_ALLOCATE. Allow VOP_ALLOCATE to be iterative, and have kern_posix_fallocate(9) drive looping and potentially yielding. Reviewed by: mdf END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-11-16T18:34:06.384451Z K 7 svn:log V 37 Tune style for the new declarations. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-16T18:36:27.955700Z K 7 svn:log V 7 Regen. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-16T18:41:59.571090Z K 7 svn:log V 44 Fix build, use %d for int value formatting. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-16T18:42:39.834998Z K 7 svn:log V 76 The sys/sysctl.h header is needed when MFI_DEBUG is defined. Nod from: jhb END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-11-16T18:42:43.731312Z K 7 svn:log V 19 Fix make universe. END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-11-16T18:43:58.691693Z K 7 svn:log V 85 Use bus_addr_t instead of uintXX_t and ifdefs for bus addresses. Do some formatting. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2011-11-16T18:53:52.043165Z K 7 svn:log V 79 MFC: Add single-message MSI support to mfi(4). Reviewed by: ambrisko, delphij END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-11-16T19:06:55.634653Z K 7 svn:log V 87 Constify stack argument for functions that don't modify it. Reviewed by: ed, kib, jhb END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-16T19:25:26.254213Z K 7 svn:log V 1153 Enable 64bit DMA addressing support for all msk(4) controllers. Unnecessarily complex LE format used on Marvell controller was main reason not to enable 64bit DMA addressing in driver. If high 32bit address of DMA address of TX/RX buffer is changed, driver has to generate a new LE. In TX path, driver will keep track of lastly used high 32bit address of DMA address and generate a new LE whenever it sees high address change in the DMA address. In RX path, driver will always use two LEs to specify 64bit DMA address of RX buffer. If the high 32bit address of DMA address of RX buffer is the same as previous DMA address of RX buffer, driver does not have to use two LEs but driver will use two LEs for simplicity in RX ring management. One of draw back for switching to 64bit DMA addressing is that the large amount of LEs are used to specify 64bit DMA address such that number of available LEs for TX/RX buffers are considerably reduced. To mitigate the issue, increase number of available LEs from 256 to 384 for TX and from 256 to 512 for RX. For 32bit architectures, msk(4) does not use 64bit DMA addressing to save resources. Tested by: das END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-16T20:16:21.307210Z K 7 svn:log V 143 Support FreeBSD 9.0+. Catch up with r225617 ("sys_" syscall routine prefixing), and r224778 (capability mask argument to fget(9) and friends). END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-16T20:17:26.633446Z K 7 svn:log V 5 KNF. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-16T20:18:25.290820Z K 7 svn:log V 69 * Don't need to add -Werror, WARNS does that. * Avoid needless exec. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2011-11-16T21:22:51.304120Z K 7 svn:log V 493 Copy over the ASM_DECLARE_FUNCTION_SIZE macro from linux64.h. This macro declares the proper size of a function. Without this macro recent GNU as will complain about with: 'Error: .size expression for main does not evaluate to a constant.' Up to now we produce this: .L.main: .... .size main, .-main With the macro defined the output is this: .L.main: .... .size main,.-.L.main This affects only the 64-bit compiler. Tested with world and kernel on both, 32 and 64-bit powerpc. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-16T21:37:45.876741Z K 7 svn:log V 128 Add preliminary support for RTL8402 PCIe FastEthernet with integrated card reader. H/W donated by: RealTek Semiconductor Corp. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2011-11-16T21:51:17.697966Z K 7 svn:log V 216 Constify arguments for locking KPIs where possible. This enables locking consumers to pass their own structures around as const and be able to assert locks embedded into those structures. Reviewed by: ed, kib, jhb END K 10 svn:author V 3 imp K 8 svn:date V 27 2011-11-16T22:02:59.922454Z K 7 svn:log V 172 Add helpful clarification text. While not strictly necessary, these few words make this man page much easier to understand without re-reading prior parts of the man page. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-16T22:05:38.672759Z K 7 svn:log V 132 Add preliminary support for RTL8411 PCIe Gigabit ethernet with integrated card reader. H/W donated by: RealTek Semiconductor Corp. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-16T22:09:14.533428Z K 7 svn:log V 47 Add missing driver lock in SIOCSIFCAP handler. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2011-11-16T22:14:13.057003Z K 7 svn:log V 30 Additional 8.x compatibility. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2011-11-16T23:29:27.572923Z K 7 svn:log V 388 Disable PCIe ASPM (Active State Power Management) for all controllers. More and more RealTek controllers started to implement EEE feature. Vendor driver seems to load a kind of firmware for EEE with additional PHY fixups. It is known that the EEE feature may need ASPM support. Unfortunately there is no documentation for EEE of the controller so enabling ASPM may cause more problems. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T00:16:15.446280Z K 7 svn:log V 31 Vendor import of BIND 9.8.1-P1 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T00:16:44.745662Z K 7 svn:log V 25 Tag the 9.8.1-P1 release END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T00:25:35.642103Z K 7 svn:log V 798 Upgrade to BIND 9.8.1-P1 to address the following DDOS bug: Recursive name servers are failing with an assertion: INSIST(! dns_rdataset_isassociated(sigrdataset)) At this time it is not thought that authoritative-only servers are affected, but information about this bug is evolving rapidly. Because it may be possible to trigger this bug even on networks that do not allow untrusted users to access the recursive name servers (perhaps via specially crafted e-mail messages, and/or malicious web sites) it is recommended that ALL operators of recursive name servers upgrade immediately. For more information see: https://www.isc.org/software/bind/advisories/cve-2011-tbd which will be updated as more information becomes available. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4313 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T00:33:38.436695Z K 7 svn:log V 36 Vendor import of BIND 9.6-ESV-R5-P1 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T00:34:31.048605Z K 7 svn:log V 30 Tag the 9.6-ESV-R5-P1 release END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T00:36:10.948810Z K 7 svn:log V 803 Upgrade to BIND 9.6-ESV-R5-P1 to address the following DDOS bug: Recursive name servers are failing with an assertion: INSIST(! dns_rdataset_isassociated(sigrdataset)) At this time it is not thought that authoritative-only servers are affected, but information about this bug is evolving rapidly. Because it may be possible to trigger this bug even on networks that do not allow untrusted users to access the recursive name servers (perhaps via specially crafted e-mail messages, and/or malicious web sites) it is recommended that ALL operators of recursive name servers upgrade immediately. For more information see: https://www.isc.org/software/bind/advisories/cve-2011-tbd which will be updated as more information becomes available. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4313 END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T01:02:33.655507Z K 7 svn:log V 36 Vendor import of BIND 9.4-ESV-R5-P1 END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2011-11-17T01:02:45.793415Z K 7 svn:log V 940 MFC: r227059 Both a crash reported on freebsd-current on Oct. 18 under the subject heading "mtx_lock() of destroyed mutex on NFS" and PR# 156168 appear to be caused by clnt_dg_destroy() closing down the socket prematurely. When to close down the socket is controlled by a reference count (cs_refs), but clnt_dg_create() checks for sb_upcall being non-NULL to decide if a new socket is needed. I believe the crashes were caused by the following race: clnt_dg_destroy() finds cs_refs == 0 and decides to delete socket clnt_dg_destroy() then loses race with clnt_dg_create() for acquisition of the SOCKBUF_LOCK() clnt_dg_create() finds sb_upcall != NULL and increments cs_refs to 1 clnt_dg_destroy() then acquires SOCKBUF_LOCK(), sets sb_upcall to NULL and destroys socket This patch fixes the above race by changing clnt_dg_destroy() so that it acquires SOCKBUF_LOCK() before testing cs_refs. Tested by: bz Reviewed by: dfr END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T01:05:57.164885Z K 7 svn:log V 30 Tag the 9.4-ESV-R5-P1 release END K 10 svn:author V 5 dougb K 8 svn:date V 27 2011-11-17T01:10:16.337384Z K 7 svn:log V 803 Upgrade to BIND 9.4-ESV-R5-P1 to address the following DDOS bug: Recursive name servers are failing with an assertion: INSIST(! dns_rdataset_isassociated(sigrdataset)) At this time it is not thought that authoritative-only servers are affected, but information about this bug is evolving rapidly. Because it may be possible to trigger this bug even on networks that do not allow untrusted users to access the recursive name servers (perhaps via specially crafted e-mail messages, and/or malicious web sites) it is recommended that ALL operators of recursive name servers upgrade immediately. For more information see: https://www.isc.org/software/bind/advisories/cve-2011-tbd which will be updated as more information becomes available. https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2011-4313 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2011-11-17T01:43:50.551605Z K 7 svn:log V 190 Pass CVWAIT flags to kernel, this should handle timeout correctly for pthread_cond_timedwait when it uses kernel-based condition variable. PR: 162403 Submitted by: jilles MFC after: 3 days END K 10 svn:author V 7 linimon K 8 svn:date V 27 2011-11-17T03:34:48.569939Z K 7 svn:log V 118 Automatically add new src branches after they are created. While here, improve error handling and make more verbose. END K 10 svn:author V 3 alc K 8 svn:date V 27 2011-11-17T06:54:49.921726Z K 7 svn:log V 35 Eliminate end-of-line white space. END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-11-17T08:07:16.942575Z K 7 svn:log V 711 MFC r227112: Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf, the /etc/rc.d/nfsd script sets vfs.nfsd.server_max_nfsvers to 3. Then, when you set nfsv4_server_enable=YES in rc.conf, and restart nfsd via the rc.d script, without rebooting, the sysctl does *not* get reset to max version 4, so NFSv4 still doesn't work. Fix this by explicitly setting vfs.nfsd.server_max_nfsvers to 4 when NFSv4 is requested. I also added resetting of the nfs_privport sysctls, since this has the same issue: nfs_reserved_port_only=YES in rc.conf sets the nfs_privport sysctl to 1, but in the other case, the sysctl doesn't get reset to 0. Reviewed by: rmacklem Silence from: rc@ Approved by: re (kib) END K 10 svn:author V 3 dim K 8 svn:date V 27 2011-11-17T08:12:12.832797Z K 7 svn:log V 711 MFC r227112: Whenever you boot with nfsv4_server_enable=NO (the default) in rc.conf, the /etc/rc.d/nfsd script sets vfs.nfsd.server_max_nfsvers to 3. Then, when you set nfsv4_server_enable=YES in rc.conf, and restart nfsd via the rc.d script, without rebooting, the sysctl does *not* get reset to max version 4, so NFSv4 still doesn't work. Fix this by explicitly setting vfs.nfsd.server_max_nfsvers to 4 when NFSv4 is requested. I also added resetting of the nfs_privport sysctls, since this has the same issue: nfs_reserved_port_only=YES in rc.conf sets the nfs_privport sysctl to 1, but in the other case, the sysctl doesn't get reset to 0. Reviewed by: rmacklem Silence from: rc@ Approved by: re (kib) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-17T08:57:39.536285Z K 7 svn:log V 26 Install zfsd rc.d script. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2011-11-17T10:46:51.471683Z K 7 svn:log V 132 Quirk all of ALCOR's mass storage devices instead of quirking individual devices. Submitted by: Dmitry Luhtionov MFC after: 1 week END K 10 svn:author V 7 delphij K 8 svn:date V 27 2011-11-17T11:16:56.972011Z K 7 svn:log V 301 MFC r227409: Do a dummy read to flush the interrupt ACK that we just performed, ensuring that everything is really, truly consistent. This fixes certain cases where one will see various: mfi0: COMMAND 0xffffffXXXXXXXXXX TIMEOUT AFTER XX SECONDS Requested by: Vincent Hoffman END K 10 svn:author V 3 mav K 8 svn:date V 27 2011-11-17T11:47:19.540181Z K 7 svn:log V 66 Use bus_addr_t in more places. Remove most of "#ifdef __amd64__". END K 10 svn:author V 3 raj K 8 svn:date V 27 2011-11-17T12:08:12.668391Z K 7 svn:log V 61 Add DTS for the Freescale P2020DS. Obtained from: Freescale END K 10 svn:author V 5 luigi K 8 svn:date V 27 2011-11-17T12:17:39.930073Z K 7 svn:log V 1738 Bring in support for netmap, a framework for very efficient packet I/O from userspace, capable of line rate at 10G, see http://info.iet.unipi.it/~luigi/netmap/ At this time I am bringing in only the generic code (sys/dev/netmap/ plus two headers under sys/net/), and some sample applications in tools/tools/netmap. There is also a manpage in share/man/man4 [1] In order to make use of the framework you need to build a kernel with "device netmap", and patch individual drivers with the code that you can find in sys/dev/netmap/head.diff The file will go away as the relevant pieces are committed to the various device drivers, which should happen in a few days after talking to the driver maintainers. Netmap support is available at the moment for Intel 10G and 1G cards (ixgbe, em/lem/igb), and for the Realtek 1G card ("re"). I have partial patches for "bge" and am starting to work on "cxgbe". Hopefully changes are trivial enough so interested third parties can submit their patches. Interested people can contact me for advice on how to add netmap support to specific devices. CREDITS: Netmap has been developed by Luigi Rizzo and other collaborators at the Universita` di Pisa, and supported by EU project CHANGE (http://www.change-project.eu/) The code is distributed under a BSD Copyright. [1] In my opinion is a bad idea to have all manpage in one directory. We should place kernel documentation in the same dir that contains the code, which would make it much simpler to keep doc and code in sync, reduce the clutter in share/man/ and incidentally is the policy used for all of userspace code. Makefiles and doc tools can be trivially adjusted to find the manpages in the relevant subdirs. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:22:09.074836Z K 7 svn:log V 64 MFC: r227271 Write QLogic consistently. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:23:24.076532Z K 7 svn:log V 64 MFC: r227271 Write QLogic consistently. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:25:15.664113Z K 7 svn:log V 51 MFC: r227276 Add qlxgb(4). Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:25:38.791176Z K 7 svn:log V 54 MFC: r227276 Add qlxgb(4). Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:27:20.169483Z K 7 svn:log V 154 MFC: r227448 Reword a sentence in the HARDWARE section a little to make it more suitable for automatic hardware notes generation. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:28:00.303571Z K 7 svn:log V 157 MFC: r227448 Reword a sentence in the HARDWARE section a little to make it more suitable for automatic hardware notes generation. Approved by: re (kib) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2011-11-17T12:37:50.623537Z K 7 svn:log V 131 MFC: r227448 Reword a sentence in the HARDWARE section a little to make it more suitable for automatic hardware notes generation. END K 10 svn:author V 3 kib K 8 svn:date V 27 2011-11-17T13:14:07.109568Z K 7 svn:log V 51 Fix typo. Submitted by: arundel MFC after: 3 days END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2011-11-17T13:14:59.605440Z K 7 svn:log V 580 Do pmap update only on active CPUs. The pmap update_page/invalidate_page/invalidate_all operations has to be done only on active cpus. In the simplest case, if the process is not active on any other CPUs, we can just do the operation on the current CPU. This change replaces the call to smp_rendezvous() for these operations with smp_rendezvous_cpus() in case there more than one active CPU, or with a direct function call if there is just one active CPU. This change give significant performance increase in fork/exec benchmarks on XLR/XLS/XLP with 32 cpus. Reviewed by: alc END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-17T14:05:59.525888Z K 7 svn:log V 258 Record the merge of r227457, which was done as part of r227565 but not mentioned in the commit log PR: kern/142999 PR: kern/151365 Submitted by: Takefu Kenji Submitted by: Joerg Niendorf Approved by: re (kib) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-17T14:06:39.329873Z K 7 svn:log V 258 Record the merge of r227457, which was done as part of r227565 but not mentioned in the commit log PR: kern/142999 PR: kern/151365 Submitted by: Takefu Kenji Submitted by: Joerg Niendorf Approved by: re (kib) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2011-11-17T15:46:37.399498Z K 7 svn:log V 136 - be more precise about the unit of measurement Submitted by: Oliver Pinter Approved by: jhb MFC after: 3 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-11-17T15:48:12.885993Z K 7 svn:log V 61 Add an extra invariant here which was useful on 64-bit CPUs. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2011-11-17T15:49:42.579793Z K 7 svn:log V 209 Use a global __pure2 function instead of a global register variable for curthread, like on x86 and sparc64. This makes the kernel somewhat more clang friendly, which doesn't support global register variables. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2011-11-17T15:51:03.059048Z K 7 svn:log V 250 Wire the kernel text RWX, rather than RX. We're not quite ready for having kernel text non-writable, because we still need to apply relocations. On top of that, the PBVM page table has all pages marked as RWX, so it's an inconsistency to begin with. END