ƒ°&257176 174 366 132 829 262 171 132 123 410 864 110 459 301 132 196 179 346 655 432 671 152 351 893 125 318 340 384 222 146 166 365 303 222 110 203 204 138 527 179 523 376 912 303 127 271 199 121 333 927 302 227 194 328 430 657 484 218 301 307 206 128 434 194 150 205 262 226 380 132 581 107 138 132 118 385 115 2268 190 669 114 114 175 114 231 172 132 320 173 173 403 148 293 380 297 162 158 166 216 169 241 114 270 136 586 567 330 367 312 192 240 421 232 164 153 150 124 316 212 1960 361 287 148 161 188 131 284 337 552 116 339 407 208 569 275 464 210 235 208 123 112 259 119 179 455 437 334 617 140 315 207 233 145 394 364 167 1155 163 295 132 237 113 190 180 335 306 158 393 147 261 233 1434 236 166 361 172 K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T17:58:36.345143Z K 7 svn:log V 269 The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare to this event, adding if_var.h to files that do need it. Also, include all includes that now are included due to implicit pollution via if_var.h Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T18:03:36.064772Z K 7 svn:log V 36 Merge head r256150 through r257176. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T18:18:14.049809Z K 7 svn:log V 728 Interrelated improvements to early boot mappings: - Remove explicit requirement that the SOC registers be found except as an optimization (although the MPC85XX LAW drivers still require they be found externally, which should change). - Remove magic CCSRBAR_VA value. - Allow bus_machdep.c's early-boot code to handle non 1:1 mappings and systems not in real-mode or global 1:1 maps in early boot. - Allow pmap_mapdev() on Book-E to reissue previous addresses if the area is already mapped. Additionally have it check all mappings, not just the CCSR area. This allows the console on e500 systems to actually work on systems where the boot loader was not kind enough to set up a 1:1 mapping before starting the kernel. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T18:18:50.975317Z K 7 svn:log V 165 Provide includes that are needed in these files, and before were read in implicitly via if.h -> if_var.h pollution. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T18:19:36.859489Z K 7 svn:log V 71 Add some extra sanity checking and checks to printf format specifiers. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T18:22:16.427991Z K 7 svn:log V 36 Merge head r256150 through r257180. END K 10 svn:author V 3 jmg K 8 svn:date V 27 2013-10-26T18:23:43.983243Z K 7 svn:log V 31 bump date forgotten in r257165 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T18:25:55.913012Z K 7 svn:log V 309 Be a bit more flexible in how we find the console from the properties on /chosen, following the list of allowed console properties in ePAPR. Also do not require that stdin be defined and equal to stdout: stdin is nonstandard (for ePAPR) and console in an unexpected place is after all better than no console. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T18:40:17.060048Z K 7 svn:log V 767 The MII layer shouldn't care about administrative status of an interface. Make MII drivers forget about 'struct ifnet'. Later plan is to provide an administrative downcall from ifnet layer into drivers, to inform them about administrative status change. If someone thinks that processing MII events for an administratively down interface is a big problem, then drivers would turn MII processing off. The following MII drivers do evil things, like strcmp() on driver name, so they still need knowledge of ifnet and thus include if_var.h. They all need to be fixed: sys/dev/mii/brgphy.c sys/dev/mii/e1000phy.c sys/dev/mii/ip1000phy.c sys/dev/mii/jmphy.c sys/dev/mii/nsphy.c sys/dev/mii/rgephy.c sys/dev/mii/truephy.c Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-10-26T18:47:10.685257Z K 7 svn:log V 15 MFC to r257184 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T18:59:58.262843Z K 7 svn:log V 362 Start splitting pfvar.h into internal and external parts. - Provide pf_altq.h that has only stuff needed for ALTQ. - Start pf.h, that would have all constant values and eventually non-kernel structures. - Build ALTQ w/o pfvar.h, include if_var.h, that before came via pollution. - Build tcpdump w/o pfvar.h. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-10-26T19:02:39.656696Z K 7 svn:log V 204 MFC r257007: Update driver to version 10.0.664.0. Many thanks to Emulex for their continued support of FreeBSD. Submitted by: Venkata Duvvuru Approved by: re (glebius) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-26T19:04:43.957470Z K 7 svn:log V 36 Merge head r256150 through r257186. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-10-26T19:09:56.056897Z K 7 svn:log V 100 Fix an itt instruction. We need to execute both the mov and b instructions when building for Thumb. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T19:49:09.223640Z K 7 svn:log V 79 Bump initial TLB size. The kernel is not necessarily less than 16 MB any more. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T19:50:40.365886Z K 7 svn:log V 245 Handle (in a slightly ugly way) ePAPR-type loaders that just place a device tree into r3. Rather than worrying about mapping that tree, reserving its space in the global physical memory space, etc., just copy it to some memory after the kernel. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-10-26T19:54:28.487746Z K 7 svn:log V 558 MFC r256646, r256767, r257038: When installing updates, install new directories first and remove old directories last. Allow ~ in file names so libtool droppings in contrib don't break updates. It has happened twice now, and is likely to happen again. Be more selective when filtering for lib*.so.N files. These are deleted at the end of the upgrade process, after warning users to upgrade any 3rd party software (e.g., from the ports tree) which might link to the libraries being removed. Errata Notice: FreeBSD-EN-13:04.freebsd-update END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-10-26T19:59:42.089274Z K 7 svn:log V 334 Fix build with GCC. BIO_new_mem_buf takes a void* buf, but internally it never modifies the buf. It assigns the buffer to another pointer and then marks it as read-only. So deconsting it should be safe here. Also fix warning about 'buf' possibly being unused in parse_cert() Approved by: bapt MFC after: 2 days X-MFC-With: r257147 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-10-26T20:01:00.244348Z K 7 svn:log V 574 MFC r256646, r256767, r257038: When installing updates, install new directories first and remove old directories last. Allow ~ in file names so libtool droppings in contrib don't break updates. It has happened twice now, and is likely to happen again. Be more selective when filtering for lib*.so.N files. These are deleted at the end of the upgrade process, after warning users to upgrade any 3rd party software (e.g., from the ports tree) which might link to the libraries being removed. Errata Notice: FreeBSD-EN-13:04.freebsd-update Approved by: so END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T20:06:50.698454Z K 7 svn:log V 52 Try even harder to find a console before giving up. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T20:57:26.796791Z K 7 svn:log V 250 Make devices with registers into the KVA region work reliably. Without this, previous KVA allocations (which the PMAP lazily invalidates) in TLB0 could shadow device maps in TLB1. Add a big block comment about some of the caveats with this approach. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-26T23:13:20.321490Z K 7 svn:log V 800 Maximize available kva space by doing static device mapping from the top of the address space downwards, and then returning the lowest mapped device address from initarm_lastaddr(). This adds over 500MB of kva space compared to the old way of hardcoding the end address as 0xE0000000. Also, pre-map most of the SoC's common memory-mapped devices using 1MB section mappings so that all device access uses just a few TLB entries. Graphics devices aren't mapped this way yet, but probably should be. To provide this new functionality without pasting identical code into multiple imxNN_machdep.c files, rework the imx machdep code so that things common to the whole family of SoCs are in a new imx_machdep.c file. The rewritten imxNN_machdep.c files contain just things specific to an individual SoC. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-26T23:41:11.294062Z K 7 svn:log V 25 Fix build after r257162. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-27T00:51:46.776403Z K 7 svn:log V 225 Remove all #include from arm code. It's already included by vm/pmap.h, which is a prerequisite for arm/machine/pmap.h so there's no reason to ever include it directly. Thanks to alc@ for pointing this out. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-27T01:34:10.751524Z K 7 svn:log V 247 Remove #include from all the arm code that doesn't really need it. That would be almost everywhere it was included. Add it in a couple files that really do need it and were previously getting it by accident via another header. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-27T03:13:26.217922Z K 7 svn:log V 291 Retire arm_remap_nocache() and the data and constants associated with it. The only remaining user was the code that allocates bounce pages for armv4 busdma. It's not clear why bounce pages would need uncached memory, but if that ever changes, kmem_alloc_attr() would be the way to get it. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-27T03:24:46.318403Z K 7 svn:log V 129 Oops, one more instance of ARM_NOCACHE_KVA_SIZE was hiding under the couch. This should have been cleaned up along with r257201. END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-27T03:29:38.079824Z K 7 svn:log V 54 Eliminate a compiler warning about extraneous parens. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-10-27T04:49:40.941283Z K 7 svn:log V 71 All man pages refer to FreeBSD so there is no need to mention "In .Fx" END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-10-27T04:59:18.376566Z K 7 svn:log V 269 Mention in login.conf.5 which fields may be infinite and how to specifify infinity. The number of ways to indicate this confuses people. PR: docs/100196 Reported by: "Dr. Markus Waldeck" Reported by: Jamie Landeg Jones END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-10-27T10:09:53.732571Z K 7 svn:log V 205 Fix a deadlock when trying to power off a USB device. The deadlock happens because the code in question is trying to modify the parent USB port registers outside the USB explore thread. MFC after: 3 days END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-10-27T10:44:22.399454Z K 7 svn:log V 126 Update the hard-float version of the fenv functions to use the VFP unit. Any other floating-point unit is unsupported on ARM. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-10-27T10:51:34.476691Z K 7 svn:log V 15 MFS to r257207 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-27T14:03:51.477632Z K 7 svn:log V 102 Turn on VM_KMEM_SIZE_SCALE on 32-bit as well as 64-bit PowerPC. Requested by: alc MFC after: 1 month END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-10-27T14:27:11.671857Z K 7 svn:log V 108 Always build ubldr as a soft-float binary as there is no support for VFP this early on in the boot process. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-27T15:14:27.294137Z K 7 svn:log V 38 Get colors right on mac framebuffers. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-27T16:01:11.980276Z K 7 svn:log V 432 Convert the lockstat(1) man page to mdoc and make sure that it gets installed. Additionally, remove Solaris-specific sections and references, and replace example outputs with output from lockstat on FreeBSD, since lockstat's output contains stack traces. This change also removes some examples that don't seem to work properly on FreeBSD. The examples should be re-added when lockstat is fixed. Reported by: avg MFC after: 1 week END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-27T16:18:48.449191Z K 7 svn:log V 85 If the initial attempt to open /dev/ksyms fails, kldload the ksyms module and retry. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-27T16:20:52.101370Z K 7 svn:log V 430 When reentering kdb, typically due to a bug causing trap or assert in the code executed in the context of debugger, do not be ashamed to inform loudly about the re-entry. Also, print the backtrace before obliterating current stack with longjmp, allowing the operator to see a place which caused the bug. The change should make it less mysterious debugging the ddb itself. Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-27T16:25:57.474256Z K 7 svn:log V 279 Move new pf includes to the pf directory. The pfvar.h remain in net, to avoid compatibility breakage for no sake. The future plan is to split most of non-kernel parts of pfvar.h into pf.h, and then make pfvar.h a kernel only include breaking compatibility. Discussed with: bz END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-27T16:31:12.871764Z K 7 svn:log V 819 Several small fixes for the amd64 minidump code. In report_progress(), use nitems(progress_track) instead of manually hard-coding array size. Wrap long line. In blk_write(), code verifies that ptr and pa cannot be non-zero simultaneously. The later check for the page-alignment of the ptr argument never triggers due to pa != 0 always implying ptr == NULL. I believe that the intent was to ensure that physicall address passed is page-aligned, since the address is (temporary) mapped for the duration of the page write. Clear the progress_track.visited fields when starting minidump. If minidump is restarted or taken second time during the system lifetime, progress is not printed otherwise, making operator suspectible to the dump status. Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-27T17:09:23.603337Z K 7 svn:log V 210 Remove the last dregs of trapframe_t. It turns out only arm was using this type, so remove it to make arm code more consistant with other platforms. Thanks to bde@ for pointing out only arm used trapframe_t. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-27T17:12:31.645622Z K 7 svn:log V 31 Include lock.h before mutex.h. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-27T17:14:33.127634Z K 7 svn:log V 174 Almost all if_clone consumers do not care about if_clone_event. Do not force them to include sys/eventhandler.h. Those who utilize EVENTHANDLER(9), will see the declaration. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-27T17:27:06.512379Z K 7 svn:log V 102 Provide forward declaration for struct ifnet. Consumers of this header don't need contents of struct. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-27T18:52:09.102965Z K 7 svn:log V 29 Fix typo. MFC after: 3 days END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-27T20:39:10.187152Z K 7 svn:log V 238 Clean up the debug printing in libproc a bit. In particular: * Don't print any error messages to stderr unless DEBUG is defined. * Add a DPRINTFX macro for use when errno isn't set. * Print the error string from libelf when appropriate. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-27T20:44:42.576037Z K 7 svn:log V 833 Import pf.c 1.635 and pf_lb.c 1.4 from OpenBSD Stricter state checking for ICMP and ICMPv6 packets: include the ICMP type in one port of the state key, using the type to determine which side should be the id, and which should be the type. Also: - Handle ICMP6 messages which are typically sent to multicast addresses but recieve unicast replies, by doing fallthrough lookups against the correct multicast address. - Clear up some mistaken assumptions in the PF code: - Not all ICMP packets have an icmp_id, so simulate one based on other data if we can, otherwise set it to 0. - Don't modify the icmp id field in NAT unless it's echo - Use the full range of possible id's when NATing icmp6 echoy Difference with OpenBSD version: - C99ify the new code - WITHOUT_INET6 safe Reviewed by: glebius Obtained from: OpenBSD END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-27T20:52:09.641063Z K 7 svn:log V 208 Improt pf.c 1.636 from OpenBSD Original log: Make sure pd2 has a pointer to the icmp header in the payload; fixes panic seen with some some icmp types in icmp error message payloads. Obtained from: OpenBSD END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-27T20:56:23.410008Z K 7 svn:log V 133 Import pf.c 1.638 from OpenBSD Original log: Some ICMP types that also have icmp_id, pointed out by markus@ Obtained from: OpenBSD END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-10-27T21:06:17.866259Z K 7 svn:log V 99 edquota: Don't pass fd for temporary file to editor. The editor opens the temporary file by name. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-27T21:07:37.040855Z K 7 svn:log V 234 Import pf_print_state.c 1.54 from OpenBSD Original log: pfctl -ss printed state levels for ICMPv6. Disable this the same way it has already been done for ICMPv4. Difference with OpenBSD: - WITHOUT_INET6 safe Obtained from: OpenBSD END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-27T21:39:16.150277Z K 7 svn:log V 337 Add bus_dmamap_load_ma() function to load map with the array of vm_pages. Provide trivial implementation which forwards the load to _bus_dmamap_load_phys() page by page. Right now all architectures use bus_dmamap_load_ma_triv(). Tested by: pho (as part of the functional patch) Sponsored by: The FreeBSD Foundation MFC after: 1 month END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-10-27T21:49:52.561534Z K 7 svn:log V 561 MFC r243731,r255303: libc: Allow setting close-on-exec in fopen/freopen/ fdopen. This commit adds a new mode option 'e'. For freopen() with a non-NULL path argument and fopen(), the close-on-exec flag is set iff the 'e' mode option is specified. For freopen() with a NULL path argument and fdopen(), the close-on-exec flag is turned on if the 'e' mode option is specified and remains unchanged otherwise. Although the same behaviour for fopen() can be obtained by open(O_CLOEXEC) and fdopen(), this needlessly complicates the calling code. PR: kern/169320 END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-27T22:05:10.951848Z K 7 svn:log V 391 Add a virtual table for the busdma methods on x86, to allow different busdma implementations to coexist. Copy busdma_machdep.c to busdma_bounce.c, which is still a single implementation of the busdma interface on x86 for now. The busdma_machdep.c only contains common and dispatch code. Tested by: pho (as part of the larger patch) Sponsored by: The FreeBSD Foundation MFC after: 1 month END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-10-27T22:15:50.485912Z K 7 svn:log V 122 Make sure the PCB is aligned on 8 bytes, we may use ldrd/strd to access it, which may have strong alignment requirements. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-10-27T22:18:27.098033Z K 7 svn:log V 205 MFC r255301: libc/stdio: Provide proper TAP output for fmemopen/ open_memstream/open_wmemstream. A *.t file should provide Test Anything Protocol output so that it can be run using the Perl "prove" tool. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-10-27T23:48:59.057967Z K 7 svn:log V 211 Use the size of the MACHINE_ARCH string instead of sizeof(uint32_t). It can happen sizeof(MACHINE_ARCH) is more than 4 bytes, and bad things would happen. This should make the ctors being called again on armeb. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-28T00:20:30.268568Z K 7 svn:log V 111 With r247602, the "c" flag is no longer printed as a file descriptor flag. Reviewed by: pjd MFC after: 3 days END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-28T01:41:59.902541Z K 7 svn:log V 34 Remove an incorrect debug printf. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-10-28T02:36:34.244659Z K 7 svn:log V 338 Quiesce warning -Wmissing-variable-declarations from buildworld, which is slightly unnerving. In file included from ioctl.c:48: /var/tmp/home/sbruno/bsd/head/tmp/usr/include/dev/lmc/if_lmc.h:939:13: warning: no previous extern declaration for non-static variable 'ssi_cables' [-Wmissing-variable-declarations] const char *ssi_cables[] = END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-10-28T04:03:17.205813Z K 7 svn:log V 102 Remove in6_setscope() calls and unneeded variables. Use in6_getscopezone() to determine zone indexes. END K 10 svn:author V 2 ae K 8 svn:date V 27 2013-10-28T04:41:49.023312Z K 7 svn:log V 59 Remove in6_setscope() and handmade in6_clearscope() calls. END K 10 svn:author V 3 rea K 8 svn:date V 27 2013-10-28T05:55:47.223196Z K 7 svn:log V 112 Correct ld(1) manual page for --no-add-needed set as default after r253839 Approved by: dim MFC after: 2 weeks END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T07:18:24.729070Z K 7 svn:log V 169 Run mvs SATA driver on Armada XP instead of old mv_sata The mvs driver seems to be more functional than mv_sata and is not causing random interrupt storms during boot. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T07:29:16.118150Z K 7 svn:log V 129 Include necessary headers that now are available due to pollution via if_var.h. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T07:45:03.783167Z K 7 svn:log V 283 Instead of putting ifnet declaration into eventhandler.h, move bpf(4) and vlan(4) related event declarations to bpf.h and if_vlan_var.h. To avoid dependency on eventhandler.h, protect these declarations with ifdef SYS_EVENTHANDLER_H. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T07:47:52.401826Z K 7 svn:log V 36 Merge head r256150 through r257242. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T08:03:40.089468Z K 7 svn:log V 484 - Make the prophecy from 1997 happen and remove if_var.h inclusion from if.h. - Remove unnecessary includes and declarations from if.h - Remove unnecessary includes and declarations from if_var.h [1] - Mark some declarations that are about to be removed in near future with comments, explaning why this declaration is still necessary. - Protect eventhandler declarations with #ifdef SYS_EVENTHANDLER_H. Obtained from: bdeBSD [1] Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 5 andre K 8 svn:date V 27 2013-10-28T09:43:15.598521Z K 7 svn:log V 13 IFC @257244. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T10:12:19.156545Z K 7 svn:log V 42 - Fix VIMAGE build. - Fix build with gcc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T10:32:14.474780Z K 7 svn:log V 36 Merge head r256150 through r257246. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-28T12:42:27.498425Z K 7 svn:log V 24 Fix the build with gcc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T12:47:05.399097Z K 7 svn:log V 288 Axe ng_fec(4). It has never been a real netgraph(4) module, since it had no hooks. It has abused ifnet's if_afdata slot and actually abused every subsystem it touched. lagg(4) is a proper trunking solution at ifnet(9) layer. ng_one2many(4) is a proper trunking solution in netgraph(4). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T12:49:07.140382Z K 7 svn:log V 19 ng_fec(4) removed. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-28T13:33:29.788484Z K 7 svn:log V 2174 Import the driver for VT-d DMAR hardware, as specified in the revision 1.3 of IntelŠ±ā• Virtualization Technology for Directed I/O Architecture Specification. The Extended Context and PASIDs from the rev. 2.2 are not supported, but I am not aware of any released hardware which implements them. Code does not use queued invalidation, see comments for the reason, and does not provide interrupt remapping services. Code implements the management of the guest address space per domain and allows to establish and tear down arbitrary mappings, but not partial unmapping. The superpages are created as needed, but not promoted. Faults are recorded, fault records could be obtained programmatically, and printed on the console. Implement the busdma(9) using DMARs. This busdma backend avoids bouncing and provides security against misbehaving hardware and driver bad programming, preventing leaks and corruption of the memory by wild DMA accesses. By default, the implementation is compiled into amd64 GENERIC kernel but disabled; to enable, set hw.dmar.enable=1 loader tunable. Code is written to work on i386, but testing there was low priority, and driver is not enabled in GENERIC. Even with the DMAR turned on, individual devices could be directed to use the bounce busdma with the hw.busdma.pci:::.bounce=1 tunable. If DMARs are capable of the pass-through translations, it is used, otherwise, an identity-mapping page table is constructed. The driver was tested on Xeon 5400/5500 chipset legacy machine, Haswell desktop and E5 SandyBridge dual-socket boxes, with ahci(4), ata(4), bce(4), ehci(4), mfi(4), uhci(4), xhci(4) devices. It also works with em(4) and igb(4), but there some fixes are needed for drivers, which are not committed yet. Intel GPUs do not work with DMAR (yet). Many thanks to John Baldwin, who explained me the newbus integration; Peter Holm, who did all testing and helped me to discover and understand several incredible bugs; and to Jim Harris for the access to the EDS and BWG and for listening when I have to explain my findings to somebody. Sponsored by: The FreeBSD Foundation MFC after: 1 month END K 10 svn:author V 3 ray K 8 svn:date V 27 2013-10-28T14:00:06.369200Z K 7 svn:log V 98 Do not reset terminal state if it is not cleared on resize. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 will K 8 svn:date V 27 2013-10-28T14:27:35.605800Z K 7 svn:log V 575 MFC r248653: ZFS: Fix a panic while unmounting a busy filesystem. This particular scenario was easily reproduced using a NFS export. When the first 'zfs unmount' occurred, it returned EBUSY via this path, while vflush() had flushed references on the filesystem's root vnode, which in turn caused its v_interlock to be destroyed. The next time 'zfs unmount' was called, vflush() tried to obtain this lock, which caused this panic. Since vflush() on FreeBSD is a definitive call, there is no need to check vfsp->vfs_count after it completes. Simply #ifdef sun this check. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T14:47:33.134910Z K 7 svn:log V 18 Remove ng_fec(4). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T14:52:08.742198Z K 7 svn:log V 18 Remove ng_fec(4). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T15:11:37.216971Z K 7 svn:log V 79 Fix build. We need to include systm.h before if_var.h. Pointy hat to: glebius END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T15:17:41.044626Z K 7 svn:log V 18 Remove ng_fec(4). END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-28T15:20:17.979701Z K 7 svn:log V 138 Sweep up a bit of arm-land fallout after r257244; include necessary headers directly that are no longer available via accidental include. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T15:38:26.207252Z K 7 svn:log V 76 Remove ng_fec.4 Submitted by: Dmitry Luhtionov END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T15:38:52.691571Z K 7 svn:log V 36 Merge head r256150 through r257258. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T16:21:31.220125Z K 7 svn:log V 223 Remove more remnants of ng_fec(4). The ng_create_one() and ng_mkpeer() functions in network.subr are now not used anywhere, but I left them, since they can be useful in future in netgraph scripting. Submitted by: pluknet END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-10-28T16:27:01.319496Z K 7 svn:log V 78 repair build for dev/cs. Reported by: Outback Dingo END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-10-28T18:10:35.441994Z K 7 svn:log V 78 Quiesce warnings -Wdangling-else Thanks to jilles for some reviews and tips. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-10-28T18:24:31.638872Z K 7 svn:log V 307 Queisce two category of clang warnings: 1. missing explicit includes for string.h, stdio.h, etc 2. missing explicit declaration for some common functions I have been unable to contact the upstream maintainer for this patch, http://www.inner.net/opie appears to be the source of truth but it unreachable END K 10 svn:author V 3 ian K 8 svn:date V 27 2013-10-28T18:43:00.590454Z K 7 svn:log V 56 Follow r257244; it's now necessary to include if_var.h. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-28T19:30:09.216585Z K 7 svn:log V 200 Remove redundand assignment to error variable and check for its value [1]. Do CTR logging in the case of error as well. Noted by: rdivacky [1] Sponsored by: The FreeBSD Foundation MFC after: 1 month END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-10-28T19:46:01.757821Z K 7 svn:log V 287 MFC r255338: ext2fs: temporarily disable htree directory index. In addition to our implementation not having workarounds for hash collisions, it appears we also have a compatibility problem. For now disable the htree code until we are able to re-examine both issues. PR: kern/183230 END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-10-28T19:56:46.824115Z K 7 svn:log V 201 Enable the --sysroot=/foo option in ld by always building with a sysroot defined. When not building as a cross linker, the sysroot is set to "/". Exp-run by: bdrewery (ports/183206) MFC after: 3 days END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-10-28T20:15:59.904231Z K 7 svn:log V 67 Add a couple includes if net/if_var.h that were missed in r257176. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2013-10-28T20:26:34.631536Z K 7 svn:log V 63 Include , since we need it if ATH_DEBUG is defined. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T20:32:05.647398Z K 7 svn:log V 70 Style: s/SYS_EVENTHANDLER_H/_SYS_EVENTHANDLER_H_/g Submitted by: bde END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-10-28T20:32:37.395844Z K 7 svn:log V 120 Fix compilation if SCTP_DONT_DO_PRIVADDR_SCOPE is defined. The issue was reported by Andrew Galante. MFC after: 3 days END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2013-10-28T20:38:17.404911Z K 7 svn:log V 73 G/c unused mountrootfsname. It was replaced with rootdevnames in r52778. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-10-28T20:45:19.265809Z K 7 svn:log V 145 Fis the value of *optlen when calling getsockopt() for SCTP_REMOTE_UDP_ENCAPS_PORT. This issue was reported by Andrew Galante. MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T21:08:04.694648Z K 7 svn:log V 18 Include if_var.h. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T21:09:59.022859Z K 7 svn:log V 173 Remove dead function show_device(). It isn't buildable if DEBUG is defined, due to unknown field "xn_ifno". The field wasn't known since beginning of history of this file. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T21:11:28.103676Z K 7 svn:log V 40 Include XEN and HyperV into amd64 LINT. END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T21:31:12.777773Z K 7 svn:log V 493 Remove hard-coded mappings related to Armada XP support Armada XP initialization flow requires SoC registers to be mapped very early in order to configure Snoop Filter for SMP. Additional mapping in locore.S is redundant as proper mapping is made in pmap_devmap_bootstrap() prior to calling cpu_setup() which configures the Snoop Filter. For secondaru CPUs it is better to pass VA of the SoC registers defined in MV_BASE and PA consistent with the value in the Device Tree. Tested by: kevlo END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T21:34:32.619864Z K 7 svn:log V 474 Fix-up DTB for Armada XP registers' base according to the actual settings Depending on u-boot's flavor some boards have their SoC registers base address configured to 0xD0000000 and other to 0xF1000000. U-boot is passing currently set value via CP15 register. In order to create proper mapping for SoC registers and allow further successful initialization it is necessary to replace fdt_immr_pa with the real value and eventually fix-up device tree blob. Tested by: kevlo END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T21:37:45.141970Z K 7 svn:log V 237 Change Armada XP kernel load address to the u-boot's end address Loading kernel to 0xf00000 has no practical reason. Starting it from the u-boot's highest possible end address (2MB counting from 0x0) makes more sense. Tested by: kevlo END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T21:39:54.512013Z K 7 svn:log V 274 Remove not working and deprecated PJ4Bv6 support Sheeva PJ4Bv6 - based chips were only prototypes for V7 class Armada SoC family. Current in-tree support for PJ4Bv6 will not work and also there should be no platforms in active use that would incorporate that CPU revision. END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T21:41:44.286299Z K 7 svn:log V 219 Switch off explicit broadcasting of the TLB flush operations for PJ4B CPU Since CPU_MV_PJ4B describes ARMv7 compliant CPU there is no need for sending an IPI each time when TLB is flushed in any way. Tested by: kevlo END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-10-28T22:13:50.665082Z K 7 svn:log V 97 Only build the VFP versions of the float helper functions on architectures where we support VFP. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T22:26:03.330293Z K 7 svn:log V 143 - Provide necessary includes, that before came via if.h pollution. - Remove unnecessary ones. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2013-10-28T22:41:36.113818Z K 7 svn:log V 325 MFC r257078 Fix panic in the tap driver when a tap and vmnet interface were created after each other e.g. ifconfig tap0 ifconfig vmnet0 Appears to be a cut'n'paste error from the tap code to the vmnet code where the name string wasn't updated in the call to make_dev(). Approved by: re (glebius) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-10-28T22:49:11.214487Z K 7 svn:log V 134 MFC r257129: Remove time and date stamps from svn* binaries, in order to make the builds reproducible. Approved by: re (glebius) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2013-10-28T22:54:28.935726Z K 7 svn:log V 67 New sentence -> new line and some mdoc cleanup. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2013-10-28T23:02:12.073429Z K 7 svn:log V 56 Clean up a spurious "." in SEE ALSO. MFC after: 3 days END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T23:17:41.776455Z K 7 svn:log V 54 Provide necessary includes that before came via if.h. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-28T23:34:05.780622Z K 7 svn:log V 28 Provide necessary includes. END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-28T23:42:44.193234Z K 7 svn:log V 223 Fix condition that determines PMAP_NEEDS_PTE_SYNC value for ARM Use values of the correct defines to determine statement's result. ARM_ARCH_ symbols are always defined, hence only values are relevant. Reviewed by: cognet END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-28T23:47:52.666716Z K 7 svn:log V 111 MFC r256777-256779,256788: Add driver for POWER hypervisor interpartition ethernet. Approved by: re (glebius) END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-10-29T00:18:11.993979Z K 7 svn:log V 1865 Add support for PCI-to-ISA LPC bridge emulation. If the LPC bus is attached to a virtual machine then we implicitly create COM1 and COM2 ISA devices. Prior to this change the only way of attaching a COM port to the virtual machine was by presenting it as a PCI device that is mapped at the legacy I/O address 0x3F8 or 0x2F8. There were some issues with the original approach: - It did not work at all with UEFI because UEFI will reprogram the PCI device BARs and remap the COM1/COM2 ports at non-legacy addresses. - OpenBSD GENERIC kernel does not create a /dev/console because it expects the uart device at the legacy 0x3F8/0x2F8 address to be an ISA device. - It was functional with a FreeBSD guest but caused the console to appear on /dev/ttyu2 which was not intuitive. The uart emulation is now independent of the bus on which it resides. Thus it is possible to have uart devices on the PCI bus in addition to the legacy COM1/COM2 devices behind the LPC bus. The command line option to attach ISA COM1/COM2 ports to a virtual machine is "-s ,lpc -l com1,stdio". The command line option to create a PCI-attached uart device is: "-s ,uart[,stdio]" The command line option to create PCI-attached COM1/COM2 device is: "-S ,uart[,stdio]". This style of creating COM ports is deprecated. Discussed with: grehan Reviewed by: grehan Submitted by: Tycho Nightingale (tycho.nightingale@pluribusnetworks.com) M share/examples/bhyve/vmrun.sh AM usr.sbin/bhyve/legacy_irq.c AM usr.sbin/bhyve/legacy_irq.h M usr.sbin/bhyve/Makefile AM usr.sbin/bhyve/uart_emul.c M usr.sbin/bhyve/bhyverun.c AM usr.sbin/bhyve/uart_emul.h M usr.sbin/bhyve/pci_uart.c M usr.sbin/bhyve/pci_emul.c M usr.sbin/bhyve/inout.c M usr.sbin/bhyve/pci_emul.h M usr.sbin/bhyve/inout.h AM usr.sbin/bhyve/pci_lpc.c AM usr.sbin/bhyve/pci_lpc.h END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T00:52:02.679250Z K 7 svn:log V 260 It is perfectly possible for keyboard drivers to queue up more than one key press per notification call. Loop until there are no more queued key presses, like syscons did. This fixes stuttering observed in particular on key repeats with ADB and USB keyboards. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T00:53:17.267460Z K 7 svn:log V 186 Return NOKEY instead of 0 if there are no more key presses queued. This worked by accident if and only if akbd was part of a kbdmux (which it always was in practice). MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T00:56:21.832356Z K 7 svn:log V 48 Remove some local changes unrelated to r257294. END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-10-29T02:25:18.829999Z K 7 svn:log V 68 Remove unnecessary includes of Requested by: alc@ END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-29T03:12:31.278690Z K 7 svn:log V 94 Revert r257248 and fix the problem in a way that doesn't violate style(9). Suggested by: jmg END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-10-29T03:42:43.514434Z K 7 svn:log V 36 Digi-CCWMX53: enable ffec and uart. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-10-29T03:52:05.944781Z K 7 svn:log V 189 Fix an off-by-one error when checking whether a given address is within the extent of a symbol. Submitted by: Prashanth Kumar Reviewed by: rpaulo MFC after: 1 week END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-10-29T04:03:00.847961Z K 7 svn:log V 241 Fix the PLCP lookup code in iwn(4) to base the 11n decision on whether the rate is 11n, rather than whether the channel is 11n. This correctly allows the PLCP lookup code to return the legacy rates even on an 11n channel. PR: kern/183430 END K 10 svn:author V 3 rea K 8 svn:date V 27 2013-10-29T04:25:49.837601Z K 7 svn:log V 459 binutils/bfd: fix printf-like format strings for "bfd *" arguments There is a special format argument '%B' that directly handles values of type 'bfd *', they must be used instead of '%s'. Manifestations of this bug can be seen in ld(1) error messages, for example, http://lists.freebsd.org/pipermail/freebsd-current/2013-August/043580.html http://lists.freebsd.org/pipermail/freebsd-current/2013-October/045404.html Approved by: dim MFC after: 2 weeks END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-10-29T04:31:07.012149Z K 7 svn:log V 21 Merge ^/head@257301. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2013-10-29T05:14:38.716301Z K 7 svn:log V 242 Add support for new Gigabit PHY of RealTek. I don't have a copy of data sheet so I'm not sure exact PHY model name. Vendor's web page indicates RTL8251 is latest PHY so I used the name. This PHY is used with RTL8168G, RTL8168GU and RTL8411B. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2013-10-29T05:30:21.793065Z K 7 svn:log V 310 Add preliminary support for RTL8168G, RTL8168GU and RTL8411B. RTL8168GU has two variants(GMII and MII) but it uses the same chip revision id. Driver checks PCI device id of controller and sets internal capability flag(i.e. jumbo frame and link speed down in WOL). H/W donated by: RealTek Semiconductor Corp. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2013-10-29T05:37:05.493960Z K 7 svn:log V 111 Add preliminary support for RTL8168EP. Submitted by: Edward O'Callaghan (eocallaghan <> alterapraxis dot com) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2013-10-29T06:37:27.006275Z K 7 svn:log V 472 Fix regression introduced in r235816. r235816 triggered kernel panic or hang after warm boot. Don't blindly restore BCE_EMAC_MODE media configuration in bce_reset(). If driver is about to shutdown it will invoke bce_reset() which in turn results in restoring BCE_EMAC_MODE media configuration. This operation seems to confuse controller firmware. Reported by: Paul Herman (herman <> cleverbridge dot com) Tested by: sbruno, Paul Herman (herman <> cleverbridge dot com) END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-29T07:25:54.378623Z K 7 svn:log V 182 Remove redundand declaration, fixing the build with gcc. Reported and tested by: Michael Butler Sponsored by: The FreeBSD Foundation MFC after: 1 month END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-29T07:33:53.805091Z K 7 svn:log V 370 MFC: r256968, r256971, r256978 Improve SRV records support for the pkg(8) bootstrap: - order srv records by priorities - for all entries of the same priority, order randomly respect the weight - select the port where to fetch from respect the port provided in the SRV record Allow to bootstrap by doing pkg add ./a/path/to/a/pkg_package.txz Approved by: re (glebius) END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-29T07:33:55.573776Z K 7 svn:log V 117 MFC r256847: Print more useful information about the transfer that trigger the assertion. Approved by: re (glebius) END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-29T07:35:19.166886Z K 7 svn:log V 142 MFC r256848: Use plain register read for waiting of the reset completion notification, to avoid gt_lock recursion. Approved by: re (glebius) END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-10-29T07:48:36.836633Z K 7 svn:log V 115 MFC r256848: Use plain register read for waiting of the reset completion notification, to avoid gt_lock recursion. END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-29T08:08:57.905564Z K 7 svn:log V 30 Import byacc version 20130925 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-29T08:10:34.990995Z K 7 svn:log V 19 Tag byacc 20130925 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-29T08:21:22.904575Z K 7 svn:log V 165 Merge byacc 20130925 2 changes: - Increase default stack-size so that used to be our default stack-size prior byacc import - fix two loop-limits found by clang 3.3 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-29T08:22:38.427669Z K 7 svn:log V 26 Change warning level to 6 END K 10 svn:author V 4 bapt K 8 svn:date V 27 2013-10-29T08:55:09.445458Z K 7 svn:log V 86 Setting WARNS=6 is useless, as it is already the default Reported by: Sascha Wildner END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-10-29T09:01:37.262539Z K 7 svn:log V 357 Code for performing public-key encryption of a message. To be precise, the message is encrypted using AES256 in CBC mode; and the AES key, the CBC IV, and the SHA256 hash of the plaintext are then encrypted using RSA. In short, think GPG except without the "web of trust" and implemented as a shell script using only utilities in the FreeBSD base system. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-10-29T09:04:25.441508Z K 7 svn:log V 339 rc.d script for automatically emailing kernel panic reports. The kernel panic reports are encrypted using pkesh; and depending on the $panicmail_autosubmit variable they are either sent directly or an email is sent to root@ containing the encrypted report and a plaintext version with instructions to please forward the encrypted report. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-29T09:23:51.097752Z K 7 svn:log V 237 Merge r256537 from head: Make getutxent(3) more robust against bad utx.log files. Whenever we read zeroes, don't stop processing the file, but read until its end or valid data. In collaboration with: ed Approved by: re (kib) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-29T09:24:39.132507Z K 7 svn:log V 520 Merge r256824 from head: Provide a working example line for an interface with 1 address running with CARP. Currently, we've got a problem that interface isn't IFF_UP at the time we assign it a redundant address, and the latter gets stuck in INIT state. Additional SIOCSIFFLAGS from ifconfig(8) kicks it to a working state. A proper fix is kernel side and appeared to be non-trivial, not to be checked in before 10.0-RELEASE. Submitted by: Ole Myhre Approved by: re (kib) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2013-10-29T09:52:15.263770Z K 7 svn:log V 43 We're going to need a full path for pkesh. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2013-10-29T09:57:00.439776Z K 7 svn:log V 217 Merge r256550. Improve locking model used to protect netgraph topology: use rwlocks instead of mutexes on node traversal. Reviewed by: glebius Tested by: Eugene Grosbein Sponsored by: Yandex LLC END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-29T11:17:49.076347Z K 7 svn:log V 110 - Provide necessary includes. - Remove unnecessary includes. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-29T11:21:31.054818Z K 7 svn:log V 136 Uninline inm_lookup_locked(). Now in_var.h doesn't dereference fields of struct ifnet. Sponsored by: Netflix Sponsored by: Nginx, Inc. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2013-10-29T11:28:11.221750Z K 7 svn:log V 53 Opps, my kirkwood fix for the dreamplug missed this. END K 10 svn:author V 3 smh K 8 svn:date V 27 2013-10-29T11:36:31.686267Z K 7 svn:log V 301 MFC r257109: Add clang-CC and CC to list of hints allowing clang to identify its operating mode as c++ instead of defaulting to c for the binary names CC and clang-CC. This fixes builds that use cmake which automatically sets CXX to /usr/bin/CC by default. PR: bin/182442 Approved by: re (glebius) END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-10-29T12:25:22.125335Z K 7 svn:log V 266 MFC r257051: Add support for using "pkg+http://" for the PACKAGESITE. pkg 1.2 is adding this support as well. This should help lessen the confusion on why the default SRV PACKAGESITE does not load in a browser. Approved by: bapt Approved by: re (glebius) END K 10 svn:author V 4 nyan K 8 svn:date V 27 2013-10-29T12:34:11.060623Z K 7 svn:log V 74 Fix build. Both clang and gcc are required on pc98. X-MFC with: r256915 END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2013-10-29T12:53:23.937140Z K 7 svn:log V 1056 MFC r256624: Fix long-standing issue with incorrect radix mask calculation. Usual symptoms are messages like rn_delete: inconsistent annotation rn_addmask: mask impossibly already in tree routing daemon constantly deleting IPv6 default route or inability to flush/delete particular prefix in ipfw table. Changes: * Assume 32 bytes as maximum radix key length * Remove rn_init() * Statically allocate rn_ones/rn_zeroes * Make separate mask tree for each "normal" tree instead of system global one * Remove "optimization" on masks reusage and key zeroying * Change rn_addmask() arguments to accept tree pointer (no users in base) MFC changes: * keep rn_init() * create global mask tree, protected with mutex, for old rn_addmask users (currently 0 in base) * Add new rn_addmask_r() function (rn_addmask in head) with additional argument to accept tree pointer PR: kern/182851, kern/169206, kern/135476, kern/134531 Found by: Slawa Olhovchenkov Reviewed by: glebius (previous versions) Sponsored by: Yandex LLC Approved by: re (glebius) END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-10-29T12:56:21.277431Z K 7 svn:log V 71 Added missing "fixed in". Sponsored by: EMC / Isilon storage division END K 10 svn:author V 3 zbb K 8 svn:date V 27 2013-10-29T13:16:05.211166Z K 7 svn:log V 202 Add missing ARMv6 CPU functions to ARM Makefile Will fix RPI-B kernel build failure since it adds missing armv6_idcache_wbinv_all which was previously taken from cpufunc_asm_pj4b.S. Reviewed by: gber END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-29T13:38:44.416128Z K 7 svn:log V 36 Merge head r256150 through r257332. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T13:43:09.670362Z K 7 svn:log V 136 Hints-only devices should have BUS_PROBE_NOWILDCARD set. We probably need a better flag for this (in the driver metadata, for example). END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2013-10-29T13:44:19.332563Z K 7 svn:log V 17 OS X 10.9 added. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T13:48:41.927187Z K 7 svn:log V 90 These nexus attachments do not execute a real probe and so need BUS_PROBE_NOWILDCARD set. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T13:52:05.837953Z K 7 svn:log V 80 Hints-only devices should return BUS_PROBE_NOWILDCARD from their probe methods. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T14:07:31.491590Z K 7 svn:log V 234 Devices that rely on hints or identify routines for discovery need to return BUS_PROBE_NOWILDCARD from their probe routines to avoid claiming wildcard devices on their parent bus. Do a sweep through the MIPS tree. MFC after: 2 weeks END K 10 svn:author V 5 trasz K 8 svn:date V 27 2013-10-29T14:07:42.112261Z K 7 svn:log V 211 MFC r257061: Don't spin with mutex hold when there is not enough room in the send socket buffer. While here, make the code flow somewhat nicer. Thanks to mav@ for tracking it down. Approved by: re (glebius) END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2013-10-29T14:15:09.621034Z K 7 svn:log V 62 Fixed typo. Submitted by: Nikolai Lifanov Pointyhat: pluknet END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T14:19:42.336771Z K 7 svn:log V 292 More BUS_PROBE_NOWILDCARD sweeping. Some devices here (if_ath_ahb and siba) resist easy conversion since they implement a great deal of their attach logic inside probe(). Some of this could be fixed by moving it to attach(), but some requires something more subtle than BUS_PROBE_NOWILDCARD. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T14:32:33.484060Z K 7 svn:log V 47 A few last BUS_PROBE_NOWILDCARDs are in order. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T14:44:36.971656Z K 7 svn:log V 160 A last BUS_PROBE_NOWILDCARD. Move setting the postfilter function into the attach function probe shouldn't actually set anything up but just bid on the device. END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-10-29T15:07:54.377775Z K 7 svn:log V 135 Move /etc/keys to /usr/share/keys where users are less likely to modify them. Requested by: secteam (cperciva, des) Approved by: bapt END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-10-29T15:36:58.121623Z K 7 svn:log V 1332 Implement extended LUN support. If PIM_EXTLUNS is set by a SIM, encode the upper 32-bits of the LUN, if possible, into the target_lun field as passed directly from the REPORT LUNs response. This allows extended LUN support to work for all LUNs with zeros in the lower 32-bits, which covers most addressing modes without breaking KBI. Behavior for drivers not setting PIM_EXTLUNS is unchanged. No user-facing interfaces are modified. Extended LUNs are stored with swizzled 16-bit word order so that, for devices implementing LUN addressing (like SCSI-2), the numerical representation of the LUN is identical with and without PIM_EXTLUNS. Thus setting PIM_EXTLUNS keeps most behavior, and user-facing LUN IDs, unchanged. This follows the strategy used in Solaris. A macro (CAM_EXTLUN_BYTE_SWIZZLE) is provided to transform a lun_id_t into a uint64_t ordered for the wire. This is the second part of work for full 64-bit extended LUN support and is designed to a bridge for stable/10 to the final 64-bit LUN code. The third and final part will involve widening lun_id_t to 64 bits and will not be MFCed. This third part will break the KBI but will keep the KPI unchanged so that all drivers that will care about this can be updated now and not require code changes between HEAD and stable/10. Reviewed by: scottl MFC after: 2 weeks END K 10 svn:author V 4 loos K 8 svn:date V 27 2013-10-29T15:45:11.309783Z K 7 svn:log V 142 Fix the build of TP-WN1043ND kernel. Provide necessary includes and remove unnecessary includes for rtl8366rb. Approved by: adrian (mentor) END K 10 svn:author V 4 neel K 8 svn:date V 27 2013-10-29T17:31:16.691446Z K 7 svn:log V 73 Update copyright to include the author of the LPC bridge emulation code. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-10-29T17:34:15.915376Z K 7 svn:log V 264 Don't call arc4random_stir() explicitly. To quote arc4random(3) manual page: There is no need to call arc4random_stir() before using arc4random() functions family, since they automatically initialize themselves. No objection: des MFC after: 2 weeks END K 10 svn:author V 7 glebius K 8 svn:date V 27 2013-10-29T17:38:13.914526Z K 7 svn:log V 76 Make userland tools honor WITHOUT_PF build option. Tested by: dt71@gmx.com END