ƒ¸%269000 148 1104 383 327 155 259 160 175 178 230 229 911 679 253 171 533 635 125 285 155 156 277 204 166 285 1024 817 138 929 260 201 234 771 442 315 396 647 226 281 316 236 330 2849 593 262 305 160 148 177 257 269 1366 847 1448 360 397 209 175 209 166 135 296 555 555 137 154 161 140 151 162 150 142 129 173 975 230 187 329 665 314 353 507 121 388 388 386 277 368 126 304 228 244 272 491 195 358 384 134 167 168 193 148 321 595 579 274 322 822 119 291 601 155 145 260 1316 225 189 301 282 628 385 541 1059 172 652 388 680 471 142 290 417 217 340 129 161 1154 311 212 159 158 292 261 142 848 328 212 173 160 131 K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-22T23:16:28.476262Z K 7 svn:log V 1007 MFC debug info for variadic functions r264826: Merge LLVM r202188: Debug info: Support variadic functions. Variadic functions have an unspecified parameter tag after the last argument. In IR this is represented as an unspecified parameter in the subroutine type. Paired commit with CFE r202185. rdar://problem/13690847 This re-applies r202184 + a bugfix in DwarfDebug's argument handling. This merge includes a change to use the LLVM 3.4 API in lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp: DwarfUnit -> CompileUnit r264827: Merge Clang r202185: Debug info: Generate debug info for variadic functions. Paired commit with LLVM. rdar://problem/13690847 This merege includes changes to use the Clang 3.4 API (revisions 199686 and 200082) in lib/CodeGen/CGDebugInfo.cpp: getParamType -> getArgType getNumParams -> getNumArgs getReturnType -> getResultType r264828: Add patches corresponding to r264826 and r264827 Sponsored by: DARPA, AFRL END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-22T23:29:54.899160Z K 7 svn:log V 290 Avoid possible cast degradation. For consistency with r268985 for fputs.c, assign iov_len first, avoiding the cast to uio_resid (int in stdio) from degrading the value. We currently don't support lengths higher than INT_MAX so this change is little more than cosmetic. MFC after: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-23T00:35:06.549828Z K 7 svn:log V 230 MFC r268464: MFV r268452: Explicitly mark file removal transactions as "presumed to result in a net free of space" so they will not fail with ENOSPC. Illumos issue: 4950 files sometimes can't be removed from a full filesystem END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-23T00:38:23.771838Z K 7 svn:log V 59 MFC r268469: MFV r268453: Diff reduction against Illumos. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-23T00:41:11.657501Z K 7 svn:log V 162 MFC r268470: MFV r268454: Refresh zpool list for each interval in order to produce fresh output. Illumos issue: 4966 zpool list iterator does not update output END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-23T00:46:56.780992Z K 7 svn:log V 64 MFC r260156: MFV r260152: 4208 Typo in zfs_main.c: "posxiuser" END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-23T00:49:35.683224Z K 7 svn:log V 79 MFC r268473: MFV r268455: Use reserved space for ZFS administrative commands. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-23T02:55:03.789203Z K 7 svn:log V 86 MFC r268928: Const-ify a character string. Obtained from: Apple Inc. (Libc 997.90.3) END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-23T04:28:51.173577Z K 7 svn:log V 136 Emulate instructions emitted by OpenBSD/i386 version 5.5: - CMP REG, r/m - MOV AX/EAX/RAX, moffset - MOV moffset, AX/EAX/RAX - PUSH r/m END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-23T05:40:28.678998Z K 7 svn:log V 133 Fix the igb(4) redirection table to correctly populate. This is similar to the ixgbe(4) fix. Tested: * Intel I350 gigabit adapter END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-23T08:00:34.776243Z K 7 svn:log V 814 4976 zfs should only avoid writing to a failing non-redundant top-level vdev 4977 mdb error in ::spa_space from space_cb() if a metaslab's ms_sm is NULL 4978 ztest fails in get_metaslab_refcount() 4979 extend free space histogram to device and pool 4980 metaslabs should have a fragmentation metric 4981 remove fragmented ops vector from block allocator 4982 space_map object should proactively upgrade when feature is enabled 4983 need to collect metaslab information via mdb 4984 device selection should use fragmentation metric Reviewed by: Matthew Ahrens Reviewed by: Adam Leventhal Reviewed by: Christopher Siden Approved by: Garrett D'Amore illumos/illumos-gate@2e4c998613148111f2fc5371085331ffb39122ff END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T14:25:47.973193Z K 7 svn:log V 583 MFC r265477: Merge -fstandalone-debug from Clang r198655: Implement a new -fstandalone-debug option. rdar://problem/15685848 It controls everything that -flimit-debug-info used to, plus the vtable type optimization. The old -fno-limit-debug-info option is now an alias to -fstandalone-debug and vice versa. Standalone is the default on Darwin until dtrace is updated to work with non-standalone debug info (rdar://problem/15758808). Note: I kept the LimitedDebugInfo name in CodeGenOptions::DebugInfoKind because NoStandaloneDebugInfo sounded even more confusing. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T14:27:04.048467Z K 7 svn:log V 157 MFC r266630 by dim: Add the clang patch for r265477. While here, add a description to the patch for r263619, and unify all the URLs to point to svnweb END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T14:29:28.574863Z K 7 svn:log V 76 MFC r261799: Add bounds check for pteindex / pdeindex to amd64 kvm_minidump END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T14:30:58.598542Z K 7 svn:log V 437 MFC r265157: kldxref: Clean up error reporting Omit "too many sections" warnings if the ELF file is not dynamically linked (and is therefore skipped anyway), and otherwise output it only once. An errant core file would previously cause kldxref to output a number of warnings. Also introduce a MAXSEGS #define and replace literal 2 with it, to make comparisons clear. Reviewed by: kib Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-23T14:57:15.077947Z K 7 svn:log V 542 fparseln(3): Update from NetBSD sources. -fix a condition so that fparseln() doesn't report spurious empty lines eg after 2 comment lines, or on EOF after a single comment line -no escape character means no escaped characters modify the previous fix so that no pointless realloc()s are done in the case of multiple empty continuation lines, and comment the code to make the logics obvious fparseln is now part of libc in NetBSD so this changes the previous revision numbering. Obtained from: NetBSD (CVS Rev. 1.6-1.7) MFC after: 2 weeks END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-23T15:12:17.495995Z K 7 svn:log V 33 Fix mismatch. MFC after: 3 days END K 10 svn:author V 6 royger K 8 svn:date V 27 2014-07-23T15:53:29.283409Z K 7 svn:log V 189 don't set CR4 PSE bit on amd64 Setting PSE together with PAE or in long mode just makes the PSE bit completely ignored, so don't set it. Sponsored by: Citrix Systems R&D Reviewed by: kib END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-07-23T16:18:51.992671Z K 7 svn:log V 63 Fix typo in comment: noone -> no one. Fix minor style(9) nits. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-07-23T16:18:54.508003Z K 7 svn:log V 64 Simplify comment to remove multiple negative and passive voice. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-23T18:04:52.033773Z K 7 svn:log V 184 Cosmetic changes to unp_internalize Don't throw away the result of fget_unlocked. Move fdp increment to for loop to make it consistent with similar code elsewhere. MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-23T18:05:39.442206Z K 7 svn:log V 108 Fix builds on older FreeBSD versions and/or non-FreeBSD machines: don't use _Static_assert unconditionally. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2014-07-23T18:54:18.810136Z K 7 svn:log V 70 - Use Rs/Re mdoc macros. - Remove duplicate and/or redundant content. END K 10 svn:author V 3 mjg K 8 svn:date V 27 2014-07-23T19:33:49.315812Z K 7 svn:log V 192 Prepare fget_unlocked for reading fd table only once. Some capsicum functions accept fdp + fd and lookup fde based on that. Add variants which accept fde. Reviewed by: pjd MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T19:35:02.140003Z K 7 svn:log V 928 MFC r262528: Update LLDB snapshot to upstream r202189 Highlights include (upstream revs in parens): - Improvements to the remote GDB protocol client (r196610, r197579, r197857, r200072, and others) - Bug fixes for big-endian targets (r196808) - Initial support for libdispatch (GCD) queues in the debuggee (r197190) - Add "step-avoid-libraries" setting (r199943) - IO subsystem improvements (including initial work on a curses gui) (r200263) - Support hardware watchpoints on FreeBSD (r201706) - Improved unwinding through hand-written assembly functions (r201839) - Handle DW_TAG_unspecified_parameters for variadic functions (r202061) - Fix Ctrl+C interrupting a running inferior process (r202086, r202154) - Various bug fixes for memory leaks, LLDB segfaults, the C++ demangler, ELF core files, DWARF debug info, and others. Sponsored by: DARPA, AFRL END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T19:37:24.276131Z K 7 svn:log V 721 MFC r263678: lldb: Invoke PT_KILL from ProcessPosix::DoDestroy We previously sent SIGKILL to the debuggee in DoDestroy, but did not actually detach or kill via ptrace. It seems that this somehow didn't matter on Linux, but did on FreeBSD. This would happen when quitting LLDB while stopped at a breakpoint, for example. The debuggee remained stopped in ptrace (with the signal either pending or lost). After a timeout of a second or two LLDB exits, which caused the debuggee to resume and dump core from an unhandled SIGTRAP. BringProcessIntoLimbo is a poorly named wrapper for ptrace(PT_KILL) which is the desired behaviour from DoDestroy. http://llvm.org/pr18894 Sponsored by: DARPA, AFRL END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-23T19:38:29.183213Z K 7 svn:log V 43 MFC r268527: Remove unused readline header END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-23T21:08:04.442417Z K 7 svn:log V 833 Fix a bug where include file `networking/services.subr' was not being properly clustered. Change `fixedsize' to `fixedsize = true' to satisfy newer versions of dot(1) generating error "Warning: : syntax error in line 27 near ','". Remove bounding cluster surrounding various include-groupings, allowing groups of include files to float freely to the greatest consumer (reducing the density of rendered diagrams). While here, change the bgcolor of include clusters from white to X11 color `thistle' (a light purple). Also, add the word "Subroutines" after include cluster labels. Do not terminate the digraph definition with a semi-colon [;] after the ending brace to satisfy newer versions of dot(1) generating error "Warning: : syntax error in line 940 near ';'". MFC after: 3 days X-MFC-to: stable/10, stable/9 END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-23T22:10:34.331339Z K 7 svn:log V 164 MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not work if ifname has any of [.-/+]. PR: conf/191961 Spotted by: jhay MFC after: 3 days END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-23T22:11:04.358623Z K 7 svn:log V 105 Update so that clean target in sys/boot will delete the symlink created for machine Reviewed by: emaste END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-23T22:12:05.236994Z K 7 svn:log V 138 Add .NOPATH to the machine target so that builds in sys/boot work and don't error out building zfs loader. Submitted by: sjg@freebsd.org END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-23T22:18:43.747742Z K 7 svn:log V 675 Deprecate the use of XDEV and XDEV_ARCH and just use TARGET/TARGET_ARCH for the xdev build target, which is awesome and totally works. Reapply svn R268377 with correct name of libsupc++ here as this does resolve one dependancy race when building the xdev target. the xdev target builds for amd64, i386, mips, mips64 and armv6 with this commit, must be built as root, must be built from /usr/src, must not have a /usr/obj and places the xdev tools in /usr/$TARGET_ARCH-freebsd the xdev target still leaves some assorted files strewn about your /usr/src when this is done and needs to be investigated further. Phabric: https://phabric.freebsd.org/D385 Submitted by: bsdimp END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-23T22:29:22.024667Z K 7 svn:log V 350 cxgbe(4): Keep track of the clusters that have to be freed by the custom free routine (rxb_free) in the driver. Fail MOD_UNLOAD with EBUSY if any such cluster has been handed up to the kernel but hasn't been freed yet. This prevents a panic later when the cluster finally needs to be freed but rxb_free is gone from the kernel. MFC after: 1 week END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-07-23T22:35:23.918247Z K 7 svn:log V 222 Fake out the deprecation of XDEV and XDEV_ARCH by continuing to use the variables in the configuration file, but switch XDEV= and XDEV_ARCH= to TARGET= and TARGET_ARCH= appropriately. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-23T22:41:07.110200Z K 7 svn:log V 300 MFC r266475 (rea): Fix warning messages after r252015 $alias used to hold alias number, but now it carries full variable name, so messages were tuned to account for that. Other fixes: - eliminate unneeded double spaces; - tell user where inet/inet6 keywords are expected to be. Reviewed by: hrs END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-23T22:47:00.459748Z K 7 svn:log V 551 MFC r267812 (hrs): Fix ifname normalization. ifconfig_IF_alias{es,N} did not work if ifname has any of [.-/+]. While here, also perform the following to reduce diff size between major branches for etc/network.subr: MFC r266475 (rea): Fix warning messages after r252015 $alias used to hold alias number, but now it carries full variable name, so messages were tuned to account for that. Other fixes: - eliminate unneeded double spaces; - tell user where inet/inet6 keywords are expected to be. Reviewed by: hrs Spotted by: jhay PR: conf/191961 END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-23T22:58:00.568522Z K 7 svn:log V 130 Delete the entire cleandepend/cleanmachine target thing now that its been cleared out in r269029 Reviewed by: emaste@freebsd.org END K 10 svn:author V 6 dteske K 8 svn:date V 27 2014-07-23T23:01:54.184925Z K 7 svn:log V 185 When producing fmake(1), `make clean' should remove fmake.1 (a copy of make.1). Introduced initially via SVN r250699 (sjg). Reviewed by: sjg, gjb MFC after: 3 days X-MFC-to: stable/10 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-24T00:02:39.200148Z K 7 svn:log V 223 MFC 267883: Expand r261243 even further and ignore any I/O port resources assigned to PCI root bridges except for the one known-valid case on x86 where bridges claim the I/O port registers used for PCI config space access. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-24T00:25:25.916831Z K 7 svn:log V 140 Clean symlinks created in sys/modules dirs when a make clean is invoked. Phabric: https://phabric.freebsd.org/D474 Reviewed by: grehan sjg END K 10 svn:author V 5 markj K 8 svn:date V 27 2014-07-24T01:08:02.162979Z K 7 svn:log V 235 MFC r262329: Define the KM_NORMALPRI flag for kmem_alloc(), as it is used in some upstream DTrace code. MFC r262330: 1452 DTrace buffer autoscaling should be less violent illumos/illumos-gate@6fb4854bed54ce82bd8610896b64ddebcd4af706 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-24T01:35:41.342170Z K 7 svn:log V 2752 MFC vtfontcvt improvements: r267011: Make height and width optional arguments Now defaults to a 16x8 font size. The height and width can be specified using -h and -w respectively. r267012: Make the bold font optional r267035: Use a hash to speed up glyph deduplication Walking a linked list of all glyphs to look for a duplicate is very slow for large fonts (e.g., for CJK character sets). In my test the runtime for a sample 40000 character font went from just over 80 seconds on average to just over 2 seconds. r267119: -w sets the width, not height r267123: Support "GNU Unifont" format font data The GNU Unifont .hex format is a text file. Each line represents one glyph and consists of a four-digit hex code point, a colon, and pairs of hex digits representing the bitmap. By default an 8x16 font is assumed, with 16x16 double-width glyphs, resulting in either 32 or 64 hex digits for the bitmap. Our version of the file format supports comments at the top of the file to set the height and width: Each row of bitmap data is rounded up to byte width - for example, a 10-pixel wide font uses 4 characters per row. See http://czyborra.com/unifont/ for more background on the original format. r267126: Accept space after BITMAP in .bdf parser The Unifont BDF generator incorrectly adds a space after BITMAP, and and that error has been widely propagated. r267173: use -h height and -w width args r267298: Hide stats by default and improve error handling The font stats are interesting, but rather verbose. r267301: Speed up bold glyph map deduplication Perform an O(n) deduplication pass over the bold maps at the end, rather than walking the normal map list to look for a duplicate glyph each time a bold mapping entry is added. r267324: handle failure writing output font r267337: move to usr.bin/vtfontcvt vtfontcvt is useful for end users to convert arbitrary bitmap fonts for use by vt(4). It can also be used as a build tool, allowing us to keep the source font data in the src tree rather than uuencoded binaries. Reviewed by: ray, wblock (D183) r267366: Avoid leaking file pointer on error CID: 1222506, 1222505 r268022: Rename the WITHOUT_VT_SUPPORT knob to WITHOUT_VT The _SUPPORT knobs have a consistent meaning which differs from the behaviour controlled by this knob. As the knob is opt-out and has not appeared in a release the impact should be low. r268172: correct width calculation (.hex files and commandline) r268948: Use the standard way of printing the usage string r268949: Remove redundant return statement after errx Also update vtfontcvt(8), based on inclusion in FreeBSD 10.1 Sponsored by: The FreeBSD Foundation END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-24T01:38:11.649485Z K 7 svn:log V 499 Fix fault injection in bhyve. The faulting instruction needs to be restarted when the exception handler is done handling the fault. bhyve now does this correctly by setting 'vmexit[vcpu].inst_length' to zero so the %rip is not advanced. A minor complication is that the fault injection APIs are used by instruction emulation code that is shared by vmm.ko and bhyve. Thus the argument that refers to 'struct vm *' in kernel or 'struct vmctx *' in userspace needs to be loosely typed as a 'void *'. END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-24T05:31:57.062038Z K 7 svn:log V 168 Reduce the proliferation of VMEXIT_RESTART in task_switch.c. This is in preparation for further simplification of the return values from VM exit handlers in bhyve(8). END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-24T05:57:33.667736Z K 7 svn:log V 210 MFC r268601: Make bind(2) and connect(2) return EAFNOSUPPORT for AF_UNIX on wrong address family. See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191586 for the original discussion. Reviewed by: terry END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-24T05:59:32.222732Z K 7 svn:log V 66 MFC r268643: Document that listen(2) can fail with EDESTADDRREQ. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-24T06:02:03.480733Z K 7 svn:log V 54 MFC r268787: Deprecate m_act. Use m_nextpkt always. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-24T06:03:45.638643Z K 7 svn:log V 83 MFC r268825: Remove deprecated definition "m_act". Suggested by: adrian, glebius END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-07-24T06:16:51.110877Z K 7 svn:log V 164 Add compat shims for XDEV and XDEV_ARCH so we don't break all the users of them. Also, add a note to updating. We'll keep these shims at least until the 12 branch. END K 10 svn:author V 5 erwin K 8 svn:date V 27 2014-07-24T09:40:31.020487Z K 7 svn:log V 174 Sync with 2014060201 which adds IPv6 to b.root-servers.net Note that this is a direct commit to stable/9 as this file is no longer in HEAD. Sponsored by: DK Hostmaster A/S END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-24T10:08:02.200345Z K 7 svn:log V 1269 - Copying and zeroing pages via temporary mappings involves updating the corresponding page tables followed by accesses to the pages in question. This sequence is subject to the situation exactly described in the "AMD64 Architecture Programmer's Manual Volume 2: System Programming" rev. 3.23, "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore, issuing the INVLPG right after modifying the PTE bits is crucial. For pmap_copy_page(), this has been broken in r124956 and later on carried over to pmap_copy_pages() derived from the former, while all other places in the i386 PMAP code use the correct order of instructions in this regard. Fixing the latter breakage solves the problem of data corruption seen with unmapped I/O enabled when running at least bare metal on AMD R-268D APUs. However, this might also fix similar corruption reported for virtualized environments. - In pmap_copy_pages(), correctly set the cache bits on the source page being copied. This change is thought to be a NOP for the real world, though. [2] 1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf Submitted by: kib [2] Reviewed by: alc, kib MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-24T10:12:22.280451Z K 7 svn:log V 751 Copying pages via temporary mappings in the !DMAP case of pmap_copy_pages() involves updating the corresponding page tables followed by accesses to the pages in question. This sequence is subject to the situation exactly described in the "AMD64 Architecture Programmer's Manual Volume 2: System Programming" rev. 3.23, "7.3.1 Special Coherency Considerations" [1, p. 171 f.]. Therefore, issuing the INVLPG right after modifying the PTE bits is crucial (see also r269050). For the amd64 PMAP code, the order of instructions was already correct. The above fact still is worth documenting, though. 1: http://amd-dev.wpengine.netdna-cdn.com/wordpress/media/2012/10/24593_APM_v21.pdf Reviewed by: alc Sponsored by: Bally Wulff Games & Entertainment GmbH END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-07-24T10:14:51.905498Z K 7 svn:log V 1351 Intel desktop Haswell CPUs may report benign corrected parity errors (see HSD131 erratum in [1]) at a considerable rate. So filter these (default), unless logging is enabled. Unfortunately, there really is no better way to reasonably implement suppressing these errors than to just skipping them in mca_log(). Given that they are reported for bank 0, they'd need to be masked in MSR_MC0_CTL. However, P6 family processors require that register to be set to either all 0s or all 1s, disabling way more than the one error in question when using all 0s there. Alternatively, it could be masked for the corresponding CMCI, but that still wouldn't keep the periodic scanner from detecting these spurious errors. Apart from that, register contents of MSR_MC0_CTL{,2} don't seem to be publicly documented, neither in the Intel Architectures Developer's Manual nor in the Haswell datasheets. Note that while HSD131 actually is only about C0-stepping as of revision 014 of the Intel desktop 4th generation processor family specification update, these corrected errors also have been observed with D0-stepping aka "Haswell Refresh". 1: http://www.intel.de/content/dam/www/public/us/en/documents/specification-updates/4th-gen-core-family-desktop-specification-update.pdf Reviewed by: jhb MFC after: 3 days Sponsored by: Bally Wulff Games & Entertainment GmbH END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T10:25:42.453475Z K 7 svn:log V 267 Correct assertion. The shadowing object cannot be tmpfs vm object, and tmpfs object cannot shadow. In other words, tmpfs vm object is always at the bottom of the shadow chain. Reported and tested by: bdrewery Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 hrs K 8 svn:date V 27 2014-07-24T10:42:47.663014Z K 7 svn:log V 304 Fix EtherIP. TOS field must be initialized when the inner protocol is PF_LINK, and multicast/broadcast flag should always be dropped because the outer protocol uses unicast even when the inner address is not for unicast. It had been broken since r236951 when gif_output() started to use IFQ_HANDOFF(). END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T10:43:15.316553Z K 7 svn:log V 116 MFC r268384: When the lock was stolen from us, retry the whole lock sequence in kernel, instead of returning EINTR. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T10:45:52.989234Z K 7 svn:log V 83 MFC r268660: Make amd64 pmap_copy_pages() functional for pages not mapped by DMAP. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T11:17:26.539164Z K 7 svn:log V 116 MFC r268384: When the lock was stolen from us, retry the whole lock sequence in kernel, instead of returning EINTR. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T14:10:58.600231Z K 7 svn:log V 74 Fix build with QUEUE_MACRO_DEBUG. Submitted by: benno@ MFC after: 3 days END K 10 svn:author V 4 bapt K 8 svn:date V 27 2014-07-24T14:11:33.628237Z K 7 svn:log V 42 Fix a typo in a comment Reported by: jhb END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-24T14:24:27.382470Z K 7 svn:log V 200 MFC r258471: Don't abort SMAP processing after an entry of length 0 Length 0 is not special and should just be skipped. This is the same behaviour as i386. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T14:55:45.410719Z K 7 svn:log V 462 MFC r268420: Remove IO_SYNC flag when writing extended file attributes on ZFS. While it is possible to create and write file, modify its permissions, etc. without ever doing sync, it looks odd that it is required for setting extended file attributes on ZFS. UFS does not do sync there too. Samba uses those extended attributes to store some its data, and doing it synchronously by many times reduces file creation performance for systems without SLOG device. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T14:57:58.368832Z K 7 svn:log V 462 MFC r268420: Remove IO_SYNC flag when writing extended file attributes on ZFS. While it is possible to create and write file, modify its permissions, etc. without ever doing sync, it looks odd that it is required for setting extended file attributes on ZFS. UFS does not do sync there too. Samba uses those extended attributes to store some its data, and doing it synchronously by many times reduces file creation performance for systems without SLOG device. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-24T15:16:03.338903Z K 7 svn:log V 42 vtfontcvt will first ship in FreeBSD 10.1 END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-24T15:18:19.898347Z K 7 svn:log V 59 MFC r268947: Hide syscons-specific workaround under DEV_SC END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:31:45.716969Z K 7 svn:log V 69 MFC r267613 (by trasz): Implement redirection handling in initiator. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:37:31.345837Z K 7 svn:log V 48 MFC r266169 (by trasz): Remove unused variable. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:38:49.884505Z K 7 svn:log V 59 MFC r267608 (by trasz): Use proper term in debug messages. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:41:16.767464Z K 7 svn:log V 70 MFC r267609 (by trasz): Improve code a little; no functional changes. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:42:32.132150Z K 7 svn:log V 58 MFC r267612 (by trasz): Get rid of unneccessary argument. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:48:18.359467Z K 7 svn:log V 50 MFC r268289: Fix minor copy-paste bug in r268284. END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-24T15:49:28.578215Z K 7 svn:log V 37 MFC r268457 (by pluknet): Fix typos. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T16:29:44.389744Z K 7 svn:log V 81 MFC r267213 (by alc): Add a page size field to struct vm_page. Approved by: alc END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T16:33:29.666011Z K 7 svn:log V 882 MFC r268466: Calculate the amount of resident pages by looking in the objects chain backing the region. Add a knob to disable the residency calculation at all. MFC r268490: Unconditionally initialize addr to handle the case of changed map timestamp while the map is unlocked. MFC r268711: Change the calculation of the kinfo_vmentry field kve_private_resident to reflect its name. MFC r268712: Followup to r268466. - Move the code to calculate resident count into separate function. It reduces the indent level and makes the operation of vmmap_skip_res_cnt tunable more clear. - Optimize the calculation of the resident page count for map entry. Skip directly to the next lowest available index and page among the whole shadow chain. - Restore the use of pmap_incore(9), only to verify that current mapping is indeed superpage. - Note the issue with the invalid pages. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-24T17:43:42.308966Z K 7 svn:log V 137 Strip the patch level from the release name before trying to fetch the distribution. PR: 170264 Approved by: nathanw MFC after: 1 week END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2014-07-24T18:06:18.222341Z K 7 svn:log V 92 Initialize notification strucuture. This was missed in an earlier commit MFC after: 3 days END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-24T18:39:08.439172Z K 7 svn:log V 237 Some hooks in cxgbe(4) for the offloaded iSCSI driver. (I'm committing this on behalf of my colleagues in the Storage team at Chelsio). Submitted by: Sreenivasa Honnur Sponsored by: Chelsio Communications. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2014-07-24T19:06:15.146144Z K 7 svn:log V 569 libstand's qdivrem.c assumes that sizeof(int) == sizeof(long), this is not true on amd64 I'm not quite positive this is the "correct" solution for this but it does seem to compile and shut up the spew of warnings when compiling libstand for userboot. Add two _Static_asserts() so that in the future somebody will get a compile failure if an architecture develops that violates the assumptions of this code. (strongly suggested by jmg) Change commetns to indicate int types instead of long. (noted by ian in phabric review) Phabric: https://phabric.freebsd.org/D443 END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-07-24T20:16:45.221213Z K 7 svn:log V 221 MFC r268957: Run mtree for BSD.tests.dist during make xdev-install, if the tests are enabled (which they are in the default configuration). Otherwise, it will fail because ${XDDESTDIR}/usr/include/atf-c does not exist. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2014-07-24T20:44:30.396218Z K 7 svn:log V 260 POSIX says that passing a location returned by telldir() to seekdir() after an intervening call to rewinddir() is undefined, so reclaim any pending telldir() cookies in the directory when rewinddir() is called. CR: D459 Reviewed by: jilles MFC after: 1 week END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-24T23:01:53.675341Z K 7 svn:log V 413 Fix a couple of issues in the PUSH emulation: It is not possible to PUSH a 32-bit operand on the stack in 64-bit mode. The default operand size for PUSH is 64-bits and the operand size override prefix changes that to 16-bits. vm_copy_setup() can return '1' if it encounters a fault when walking the guest page tables. This is a guest issue and is now handled properly by resuming the guest to handle the fault. END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-24T23:14:03.618896Z K 7 svn:log V 29 Fix typo. MFC after: 3 days END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-25T00:30:55.661593Z K 7 svn:log V 296 MFC r268640 and r268989. r268640: Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl. The firmware allows up to 48B to be read this way but the driver limits itself to 8B at a time to remain compatible with old cxgbetool binaries. r268989: Add missing newline to an error message. END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-25T00:35:43.803285Z K 7 svn:log V 296 MFC r268640 and r268989. r268640: Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl. The firmware allows up to 48B to be read this way but the driver limits itself to 8B at a time to remain compatible with old cxgbetool binaries. r268989: Add missing newline to an error message. END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-07-25T01:29:22.847138Z K 7 svn:log V 292 Fix structure of new tests (r268794) for usr.bin/units. - Make sure the tests go into the right directory. The location was wrong so they were overwriting the bin/chown tests! - Use the right naming scheme for the test program. - Remove the svn:executable property from the shell script. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-25T03:24:00.872613Z K 7 svn:log V 184 MFC r268985, r269001: Avoid possible cast degradation. Assign iov_len first, avoiding the cast to uio_resid (int in stdio) from degrading the value. Small cosmetical fix while here. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-25T06:53:20.489891Z K 7 svn:log V 271 As of r268075, the responsibility of rounding up buffer to optimal size have been transferred from zio_compress_data to its caller. Therefore, passing the 'minblocksize' down will be a no-op. Eliminate the parameter to reduce diff against upstream. MFC after: 2 weeks END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-07-25T10:27:36.520238Z K 7 svn:log V 32 Add net80211 and minor cleanup. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2014-07-25T11:29:45.115481Z K 7 svn:log V 209 Fix ctl(4) kldload failure that manifested like this: link_elf_obj: symbol icl_pdu_new_bhs undefined PR: 192031 Submitted by: Nils Beyer (earlier version) MFC after: 3 days Sponsored by: FreeBSD Foundation END K 10 svn:author V 9 allanjude K 8 svn:date V 27 2014-07-25T14:47:44.652868Z K 7 svn:log V 129 Update the freebsd-tips example to use drill instead of dig since bind is no longer in base CR: D460 Approved by: bcr (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2014-07-25T15:07:07.541023Z K 7 svn:log V 151 Partial MFC of r268466: Add a knob to disable the residency calculation for kern.proc.vmmap. Tested by: "Ivan A. Kosarev" END K 10 svn:author V 6 wblock K 8 svn:date V 27 2014-07-25T17:09:48.583648Z K 7 svn:log V 176 Fix spelling of Camellia algorithm. While here, replace blank lines between examples with actual .Pp breaks. PR: 192067 Submitted by: dmitry2004@yandex.ru MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-07-25T18:20:56.866417Z K 7 svn:log V 395 elfdump: Improve section type reporting The SHT range 0x70000000-0x7fffffff is processor-specific. Pass the ELF machine type header to sh_types so the section header type name can be reported correctly for the given processor. For all ranges report the actual value for unknown types. Add MIPS-specific type SHT_MIPS_OPTIONS. CR: D483 Reviewed by: sbruno, marcel Sponsored by: DARPA, AFRL END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-25T18:41:56.928113Z K 7 svn:log V 99 Transform the I/O when vdev_physical_ashift is greater than SPA_MINBLOCKSHIFT. MFC after: 2 weeks END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-25T20:18:35.449364Z K 7 svn:log V 264 Simplify the meaning of return values from the inout handlers. After this change 0 means success and non-zero means failure. This also helps to eliminate VMEXIT_POWEROFF and VMEXIT_RESET as return values from VM-exit handlers. CR: D480 Reviewed by: grehan, jhb END K 10 svn:author V 8 deischen K 8 svn:date V 27 2014-07-25T20:21:02.989501Z K 7 svn:log V 286 Insert new threads at the end of the thread list in the process instead of at the beginning. This allows an intra process signal to be sent to the oldest thread with the signal unmasked - which, if it still exists, is the main thread. This mimics behavior found in Linux and Solaris. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2014-07-25T20:44:04.974140Z K 7 svn:log V 42 Crude cross-build support thanks to clang END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-25T20:49:59.995678Z K 7 svn:log V 71 Use the right length. Submitted by: Sascha Wildner MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-25T20:54:10.808306Z K 7 svn:log V 72 Use the right lengths. Submitted by: Sascha Wildner MFC after: 2 weeks END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-07-25T21:10:30.475033Z K 7 svn:log V 100 Document an important, but easy to overlook without grepping the entire tree, detail about LDFLAGS. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-25T22:58:55.298441Z K 7 svn:log V 52 Diff reduction against Illumos. MFC after: 2 weeks END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-25T23:12:22.171466Z K 7 svn:log V 228 MFC r261530 Set the malloc alignment to 64 bytes on platforms that use the U-Boot API device drivers. Recent versions of u-boot run with the MMU enabled, and require DMA-based I/O to be aligned to cache line boundaries. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-25T23:21:36.940732Z K 7 svn:log V 502 MFC r263373, r268402 Add a way to apply CFLAGS only when building the given architecture. This is useful primarily on a system used for cross-building, when you have a set of flags to apply to the TARGET_ARCH being cross-built but don't want those settings applied to building the cross-tools or other components that run on the build host machine. Support CXXFLAGS.${MACHINE_ARCH} as well as CFLAGS. This allows different C++ options for toolchain versus target when cross-building. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-25T23:29:55.788762Z K 7 svn:log V 486 MFC r266565, r266651: Map device memory using PTE_DEVICE attributes, and also ensure that the shared flag is set on normal-memory mappings made via pmap_kenter() for SMP. The "shared flag" part of this change isn't obvious from the diff, here's the deal... by using the array of preformatted page table entry templates instead of constructing the PTE from scratch, we automatically get the right attribute bits set for both caching and shared. Fix whitespace glitches. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-25T23:36:39.569869Z K 7 svn:log V 181 MFC r268401, r268495: Pending interrupt status is cleared by writing to the ISR, not the data reg. Use named constant rather than '0' to access the reset controller register. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2014-07-25T23:52:53.643990Z K 7 svn:log V 227 Add error return to dumpsys(), and use it in doadump(). This commit does not add error returns to minidumpsys() or textdump_dumpsys(); those can also be added later. Submitted by: Conrad Meyer (EMC / Isilon storage division) END K 10 svn:author V 2 np K 8 svn:date V 27 2014-07-26T00:51:45.545942Z K 7 svn:log V 730 Add a 'raw' parameter to the 'modinfo' subcommand. This is handy when trying to figure out why a QSFP+/SFP+ connector or cable wasn't identified correctly by cxgbe(4). Its output looks like this: # cxgbetool t5nex0 modinfo 0 raw 00: 03 04 21 00 00 00 00 00 ..!. .... 08: 04 00 00 00 67 00 00 00 .... g... 10: 00 00 05 00 41 6d 70 68 .... Amph 18: 65 6e 6f 6c 20 20 20 20 enol 20: 20 20 20 20 00 41 50 48 .APH 28: 35 37 31 35 34 30 30 30 5715 4000 30: 33 20 20 20 20 20 20 20 3 38: 4b 20 20 20 01 00 00 fa K .... 40: 00 00 00 00 41 50 46 31 .... APF1 48: 30 30 34 30 30 33 30 30 0040 0300 50: 30 33 20 20 31 30 30 31 03 1001 58: 33 30 20 20 00 00 00 97 30 .... MFC after: 3 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-26T02:41:18.921171Z K 7 svn:log V 27 MFC r269016: Fix mismatch. END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-26T02:51:46.202957Z K 7 svn:log V 197 Don't return -1 from the push emulation handler. Negative return values are interpreted specially on return from sys_ioctl() and may cause undesirable side-effects like restarting the system call. END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-07-26T02:53:51.253818Z K 7 svn:log V 507 If a vcpu has issued a HLT instruction with interrupts disabled then it sleeps forever in vm_handle_hlt(). This is usually not an issue as long as one of the other vcpus properly resets or powers off the virtual machine. However, if the bhyve(8) process is killed with a signal the halted vcpu cannot be woken up because it's sleep cannot be interrupted. Fix this by waking up periodically and returning from vm_handle_hlt() if TDF_ASTPENDING is set. Reported by: Leon Dang Sponsored by: Nahanni Systems END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-26T03:19:13.158032Z K 7 svn:log V 63 Silence a clang warning about a while loop with an empty body. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-26T03:33:19.995866Z K 7 svn:log V 53 Eliminate "no previous prototype for main" warnings. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-26T04:09:43.958067Z K 7 svn:log V 167 The 'flags' variable is conflicting with some inline code in a header file ("variable flags shadows a global..."), just rename this variable to wish away the problem. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-26T04:16:04.245610Z K 7 svn:log V 1222 Enable at91 systems to boot from high capacity SD cards. This also fixes a few minor violations of the SD protocol, such as running the bus at high speed during the card identification sequence. The sdcard_init() routine now probes for SDHC cards so that later read requests can make needed adjustments between block and byte offsets based on card type. There is a new MCI_readblocks() function that takes block number and block count parameters instead of byte-offset values. Using this routine, boot loader code can load a kernel from any location on an SDHC or standard SD. The old MCI_read() interface remains unchanged so that existing customized boot loader code will still keep working without changes. Using this routine, boot loaders can load a kernel from anywhere in the first 4GB of an SDHC card (or of course any location on a standard SD card). A new sdcard_use4wire() routine allows boot loaders to request 4-bit transfers; it should be called after sdcard_init(). The sdcard_init() routine no longer assumes the hardware is 4-wire capable and by default sets things up for 1-bit transfers. (4-wire mode is unreliable on at91rm9200, works on later SoCs.) PR: 155894 Submitted by: me. years ago. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2014-07-26T04:38:09.543803Z K 7 svn:log V 132 Reviewed by: imp LDFLAGS is supposed to be given to CC not LD. Define _LDFLAGS as a filtered version of LDFLAGS safe to give to LD END K 10 svn:author V 3 des K 8 svn:date V 27 2014-07-26T07:40:31.513383Z K 7 svn:log V 97 Remove useless getpwnam() call. Submitted by: Arthur Mesh MFC after: 1 week END K 10 svn:author V 4 ache K 8 svn:date V 27 2014-07-26T08:41:03.446822Z K 7 svn:log V 207 In the "Too many open files" edge cases don't try to preserve old number for non-std* descriptors, but close old file and retry. Obtained from: inspired by Apple's change from pfg@ MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-26T09:09:14.440777Z K 7 svn:log V 189 Make sysctls under vfs.zfs.zfetch writeable. I don't see any reason for them to be read-only, while tuning them without reboot is much more convenient for experiments. MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-26T10:20:48.369545Z K 7 svn:log V 531 MFV r269010: Import Illumos changes to address the following Illumos issues: 4976 zfs should only avoid writing to a failing non-redundant top-level vdev 4978 ztest fails in get_metaslab_refcount() 4979 extend free space histogram to device and pool 4980 metaslabs should have a fragmentation metric 4981 remove fragmented ops vector from block allocator 4982 space_map object should proactively upgrade when feature is enabled 4984 device selection should use fragmentation metric MFC after: 2 weeks END K 10 svn:author V 2 se K 8 svn:date V 27 2014-07-26T12:17:26.328093Z K 7 svn:log V 293 Fix obvious off by one error: prefix[1] should be set to the path of the newcons specific keymap files, not prefix[2]. The result of this bug was that kbdcontrol ignored the files in the syscons keymap directory, which apparently still work under newcons, for most locales. MFC after: 1 week END K 10 svn:author V 2 se K 8 svn:date V 27 2014-07-26T13:14:28.548819Z K 7 svn:log V 449 The previous commit (r269119) introduced a regression: It removed the ability to specify the the full path name of the keymap file. Instead leave the original search order intact, but insert the path for newcons-specific fonts (if run on a system using newcons): - KEYMAP_PATH in environment - full path name - /usr/share/vt/keymaps (only if newcons is in use!) - /usr/share/syscons/keymaps (also as fall-back for newcons) MFC after: 1 week END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-07-26T13:37:25.511533Z K 7 svn:log V 961 * Require explicit table creation before use on kernel side. * Add resize callbacks for upcoming table-based algorithms. Kernel changes: * s/ipfw_modify_table/ipfw_manage_table_ent/ * Simplify add_table_entry(): make table creation a separate piece of code. Do not perform creation if not in "compat" mode. * Add ability to perform modification of algorithm state (like table resize). The following callbacks were added: - prepare_mod (allocate new state, without locks) - fill_mod (UH_WLOCK, copy old state to new one) - modify (UH_WLOCK + WLOCK, switch state) - flush_mod (no locks, flushes allocated data) Given callbacks are called if table modification has been requested by add or delete callbacks. Additional u64 tc->'flags' field was added to pass these requests. * Change add/del table ent format: permit adding/removing multiple entries at once (only 1 supported at the moment). Userland changes: * Auto-create tables with warning END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-26T13:43:25.526880Z K 7 svn:log V 80 Fix infinite loop, when doing WRITE SAME on file-backed LUN. MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2014-07-26T13:56:50.214314Z K 7 svn:log V 559 Implement separate I/O dispatch method for ZVOLs in "dev" mode. Unlike disk devices ZVOLs process all requests synchronously. That makes impossible sending multiple requests to them from single thread. From the other side ZVOLs have real d_read/d_write methods, which unlike d_strategy can handle uio scatter/gather and have no strict I/O size limitations. So, if ZVOL in "dev" mode is detected, use of d_read/d_write methods instead of d_strategy allows to avoid pointless splitting of large requests into MAXPHYS (128K) sized chunks. MFC after: 1 week END K 10 svn:author V 3 pfg K 8 svn:date V 27 2014-07-26T14:24:13.178802Z K 7 svn:log V 295 strftime() xlocale cleanups. Replace fprintf_l with fputs when output is unformatted. Use locale_t in _conv() since it was using sprintf (now sprintf_l) Use locale_t on _yconv() sinci it calls _conv() Obtained from: Apple Inc. (Libc 997.90.3) CR: D482 Reviewed by: theraven MFC after: 1 week END K 10 svn:author V 3 dim K 8 svn:date V 27 2014-07-26T15:33:20.961264Z K 7 svn:log V 587 In r232153, libarchive 3.0.3 was imported, replacing the archive_hash.h header with archive_crypto_private.h, and its ARCHIVE_HASH_xxx macros were renamed to ARCHIVE_CRYPTO_xxx. Rename these macros in lib/libarchive/config_freebsd.h, to re-enable the hashes for libarchive again. This affects the mtree format writer, and the xar format reader and writer modules. This also requires changes in the library order for statically linking rescue, otherwise ld would complain about redefined symbols. Thanks to jkim for pointing out the solution. Reviewed by: kientzle MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T15:46:41.506301Z K 7 svn:log V 375 Don't return ERESTART when the device is gone. In ttydev_leave() ERESTART is the indication that draining got interrupted due to a revoke(2) and that tty_drain() is to be called again for draining to complete. If the device is flagged as gone, then waiting/draining is not possible. Only return ERESTART when waiting is still possible. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-26T16:06:01.095656Z K 7 svn:log V 45 Fix for division by zero. MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T16:45:11.167795Z K 7 svn:log V 194 Create 32-bit core files for 32-bit processes on 64-bit machines. The 64-bit machine supported right now is amd64, but it's not too hard to add powerpc64. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T17:07:32.084899Z K 7 svn:log V 321 Fix relocations related to dpcpu and vnet sets. The address is rebased to point to the allocated memory, but for architectures that have non-zero relocation addends, the address comparison happens on the "unfinalized" address. After the addend is taken into account, call elf_relocaddr() to make sure we rebase properly. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T17:24:58.405318Z K 7 svn:log V 121 Avoid using ${.CURDIR} so that the module can be built from multiple directories. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T17:49:40.121642Z K 7 svn:log V 244 Do not fail the low-level device probe simply because the kernel doesn't have support for the Z8530. Embedded PowerPC platforms typically don't. Fail when the device class we actually need is not present. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T17:57:13.634796Z K 7 svn:log V 34 Remove bogus module dependencies. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T17:59:25.169517Z K 7 svn:log V 66 Build tsec(4) as a module. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 3 alc K 8 svn:date V 27 2014-07-26T18:10:18.237719Z K 7 svn:log V 1060 When unwiring a region of an address space, do not assume that the underlying physical pages are mapped by the pmap. If, for example, the application has performed an mprotect(..., PROT_NONE) on any part of the wired region, then those pages will no longer be mapped by the pmap. So, using the pmap to lookup the wired pages in order to unwire them doesn't always work, and when it doesn't work wired pages are leaked. To avoid the leak, introduce and use a new function vm_object_unwire() that locates the wired pages by traversing the object and its backing objects. At the same time, switch from using pmap_change_wiring() to the recently introduced function pmap_unwire() for unwiring the region's mappings. pmap_unwire() is faster, because it operates a range of virtual addresses rather than a single virtual page at a time. Moreover, by operating on a range, it is superpage friendly. It doesn't waste time performing unnecessary demotions. Reported by: markj Reviewed by: kib Tested by: pho, jmg (arm) Sponsored by: EMC / Isilon Storage Division END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-26T18:14:16.836367Z K 7 svn:log V 218 Remove completely bogus alignment check -- it's the physical address that needs to be aligned, not the virtual, and it doesn't seem worth the cost of a vtophys() call just to see if kmem_alloc_contig() works properly. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-07-26T18:19:43.762643Z K 7 svn:log V 119 Pull in the armv4 "fast out" code for checking whether busdma can bounce due to an excluded region of physical memory. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T18:52:23.101851Z K 7 svn:log V 64 Add missing definition of ELF_MACHINE_OK, now used by gcore(1). END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-07-26T19:07:08.712543Z K 7 svn:log V 62 Add two sysctls for newly added tunables. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-07-26T19:08:52.265750Z K 7 svn:log V 194 Split the XHCI TRB allocations into smaller parts, so that we don't end up allocating contiguous busdma buffers above PAGE_SIZE bytes. MFC after: 1 week Tested by: Ruslan Bukin END K 10 svn:author V 3 gnn K 8 svn:date V 27 2014-07-26T19:21:53.268295Z K 7 svn:log V 168 Port the rwsnoop DTrace Toolkit script to FreeBSD. Remove dependency on the Korn Shell. Remove Zones in favor of Jails. Remove support (for now) for filename printing. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2014-07-26T19:25:52.933478Z K 7 svn:log V 50 Remove debugging options from the rwsnoop script. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2014-07-26T19:27:34.809956Z K 7 svn:log V 752 The accept filter code is not specific to the FreeBSD IPv4 network stack, so it really should not be under "optional inet". The fact that uipc_accf.c lives under kern/ lends some weight to making it a "standard" file. Moving kern/uipc_accf.c from "optional inet" to "standard" eliminates the need for #ifdef INET in kern/uipc_socket.c. Also, this meant the net.inet.accf.unloadable sysctl needed to move, as net.inet does not exist without networking compiled in (as it lives in netinet/in_proto.c.) The new sysctl has been named net.accf.unloadable. In order to support existing accept filter sysctls, the net.inet.accf node has been added netinet/in_proto.c. Submitted by: Steve Kiernan Obtained from: Juniper Networks, Inc. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2014-07-26T19:44:45.997243Z K 7 svn:log V 230 Further improvements on elfdump, to follow up r269092: - Add ARM specific section header types. - Add SHT_GNU_HASH section header type. - Improve reporting of undefined tags in d_tags. - Add DT_GNU_HASH tag. Reviewed by: emaste END K 10 svn:author V 3 gnn K 8 svn:date V 27 2014-07-26T20:11:36.641072Z K 7 svn:log V 119 Since we cannot yet display the name print the file descriptor so that it can be looked up manually using procstat(1). END K 10 svn:author V 3 gnn K 8 svn:date V 27 2014-07-26T20:42:54.292815Z K 7 svn:log V 81 Update the header printing to match the rest of the output. Pointed out by: mdf END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-26T21:32:03.817032Z K 7 svn:log V 65 store the AR9300 interrupts away when doing interrupt debugging. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-07-26T21:33:17.041851Z K 7 svn:log V 36 Add another revision of the AR8327. END