ĵe250771 170 117 535 128 99 121 133 279 196 146 143 210 441 3205 137 159 169 178 193 198 216 212 224 319 189 182 127 460 263 151 144 218 266 212 352 144 404 233 332 308 319 114 439 216 361 161 140 133 104 279 198 551 180 551 158 127 112 706 142 189 159 149 213 111 257 134 111 171 116 133 1116 174 143 130 143 143 142 142 151 388 307 446 372 419 104 339 170 200 322 414 298 299 197 273 212 1441 462 153 214 120 1406 2090 320 147 384 119 170 146 158 127 733 154 169 516 545 226 99 196 186 200 291 212 260 1277 444 231 111 347 118 139 178 235 176 123 2805 375 866 181 124 222 99 783 150 502 153 354 145 715 190 217 246 142 99 121 181 154 159 228 1167 1290 695 495 200 99 121 161 195 357 265 252 689 K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-18T13:15:19.999987Z K 7 svn:log V 25 Match what is in netbsd. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-18T13:19:31.950820Z K 7 svn:log V 442 MFC r249625: Introduce kern.timecounter.smp_tsc_adjust tunable (disabled by default) and respective functionality, allowing to synchronize TSC on APs to match BSP's during boot. It may be unsafe in general case due to theoretical chance of later drift if CPUs are using different clock rate or source, but it allows to use TSC in some cases when difference caused by some initialization bug, while TSCs are known to increment synchronously. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-18T13:24:53.933688Z K 7 svn:log V 36 Fix wildcard srcs for phony targets END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-18T13:37:53.793149Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-18T13:43:59.802554Z K 7 svn:log V 25 Merge from vmcontention. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-18T13:56:26.713838Z K 7 svn:log V 38 Update maintainers with ath/net80211. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-18T13:58:07.079190Z K 7 svn:log V 183 Re-add some code to exclude transmitting if we're in reset. This fixes some "transmitting during reset" bugs that crept in after I messed around with this part of the transmit path. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-18T14:05:32.114839Z K 7 svn:log V 100 Use my @freebsd.org username, rather than ${WORK} username. Pointy hat provided by: kib, thankyou! END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-05-18T17:29:32.889770Z K 7 svn:log V 49 Add routines to save and restore DBDMA channels. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-05-18T17:41:42.567356Z K 7 svn:log V 46 Save and restore openpic upon suspend/resume. END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2013-05-18T17:42:52.668900Z K 7 svn:log V 112 All files that include openpicvar.h need to include openpicreg.h now. Missed this file in the previous commit. END K 10 svn:author V 2 bz K 8 svn:date V 27 2013-05-18T18:01:21.917390Z K 7 svn:log V 349 Have the ipropd-master listen on an IPv6 socket in addition to an IPv4 socket to allow propagation of changes to a Heimdal Kerberos database from the KDC master to the slave(s) work on IPv6 as well. Update the stats logging to also handle IPv6 addresses. Reported by: peter (found on FreeBSD cluster) X-to-be-tested-by: peter MFC after: 3 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-18T18:27:53.241831Z K 7 svn:log V 3108 Be (very) careful about how to add more TX DMA work. The list-based DMA engine has the following behaviour: * When the DMA engine is in the init state, you can write the first descriptor address to the QCU TxDP register and it will work. * Then when it hits the end of the list (ie, it either hits a NULL link pointer, OR it hits a descriptor with VEOL set) the QCU stops, and the TxDP points to the last descriptor that was transmitted. * Then when you want to transmit a new frame, you can then either: + write the head of the new list into TxDP, or + you write the head of the new list into the link pointer of the last completed descriptor (ie, where TxDP points), then kick TxE to restart transmission on that QCU> * The hardware then will re-read the descriptor to pick up the link pointer and then jump to that. Now, the quirks: * If you write a TxDP when there's been no previous TxDP (ie, it's 0), it works. * If you write a TxDP in any other instance, the TxDP write may actually fail. Thus, when you start transmission, it will re-read the last transmitted descriptor to get the link pointer, NOT just start a new transmission. So the correct thing to do here is: * ALWAYS use the holding descriptor (ie, the last transmitted descriptor that we've kept safe) and use the link pointer in _THAT_ to transmit the next frame. * NEVER write to the TxDP after you've done the initial write. * .. also, don't do this whilst you're also resetting the NIC. With this in mind, the following patch does basically the above. * Since this encapsulates Sam's issues with the QCU behaviour w/ TDMA, kill the TDMA special case and replace it with the above. * Add a new TXQ flag - PUTRUNNING - which indicates that we've started DMA. * Clear that flag when DMA has been shutdown. * Ensure that we're not restarting DMA with PUTRUNNING enabled. * Fix the link pointer logic during TXQ drain - we should always ensure the link pointer does point to something if there's a list of frames. Having it be NULL as an indication that DMA has finished or during a reset causes trouble. Now, given all of this, i want to nuke axq_link from orbit. There's now HAL methods to get and set the link pointer of a descriptor, so what we should do instead is to update the right link pointer. * If there's a holding descriptor and an empty TXQ list, set the link pointer of said holding descriptor to the new frame. * If there's a non-empty TXQ list, set the link pointer of the last descriptor in the list to the new frame. * Nuke axq_link from orbit. Note: * The AR9380 doesn't need this. FIFO TX writes are atomic. As long as we don't append to a list of frames that we've already passed to the hardware, all of the above doesn't apply. The holding descriptor stuff is still needed to ensure the hardware can re-read a completed descriptor to move onto the next one, but we restart DMA by pushing in a new FIFO entry into the TX QCU. That doesn't require any real gymnastics. Tested: * AR5210, AR5211, AR5212, AR5416, AR9380 - STA mode. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2013-05-18T18:28:19.398645Z K 7 svn:log V 41 Add another obsolete file: nfs fha moved END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2013-05-18T19:06:15.554617Z K 7 svn:log V 63 MFC r250423: Retire write-only PCB_GS32BIT pcb flag on amd64. END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-05-18T19:18:03.884529Z K 7 svn:log V 72 Update location to ports INDEX file. PR: bin/164561 Approved by: bapt END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2013-05-18T19:21:33.479515Z K 7 svn:log V 81 Direct commit to update ports INDEX location. PR: bin/164561 Approved by: bapt END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2013-05-18T19:30:42.075378Z K 7 svn:log V 98 Add support for the second GPIO pin bank on the Wii and add support for shutting down the system. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-18T22:16:42.137515Z K 7 svn:log V 101 Switch vm_fault_copy_entry() locking for read-in pages. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-18T22:42:05.142131Z K 7 svn:log V 119 Convert vm_map_pmap_enter() to work with read lock for most of the cases. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2013-05-18T22:42:21.876535Z K 7 svn:log V 114 Back out r250768 until I can further investigate why it might be causing problems with the BeagleBone Black boot. END K 10 svn:author V 3 smh K 8 svn:date V 27 2013-05-18T23:36:21.974253Z K 7 svn:log V 131 Added output of device QUIRKS for CAM and AHCI devices during boot. Reviewed by: mav Approved by: pjd (mentor) MFC after: 2 weeks END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-18T23:49:45.714797Z K 7 svn:log V 222 Per-object swp_bcount can be protected by both per-object lock held in write mode or per-object lock held in read mode and swhash_mtx held at the same time. Sponsored by: EMC / Isilon storage division Discussed with: alc END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-19T00:04:24.684097Z K 7 svn:log V 93 Revert previous patch and do what r250793 asks. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-19T00:53:06.921002Z K 7 svn:log V 87 Since we're now using the ah pointer, always declare it. This fixes non-DEBUG builds. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-19T01:33:17.434719Z K 7 svn:log V 32 More non-ATH_DEBUG build fixes. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2013-05-19T01:45:29.981978Z K 7 svn:log V 364 Update snd quirks for T520, T420, X220. Group onboard mic and headphone mic jack together. Creates association that will switch between microphone inputs depending on the state of the headphone jack being connected to a live mic. Fixes onboard mic not working at all on T520. Tested on T520, T420. Suspect X220 needs this too, untested on. MFC after: 1 month END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2013-05-19T01:52:39.173930Z K 7 svn:log V 162 MFC r250290: Only check fan type once. Not only is continuously rechecking pointless, a single random failure can reprogram what control mechanism we try to use. END K 10 svn:author V 4 grog K 8 svn:date V 27 2013-05-19T01:58:00.421989Z K 7 svn:log V 58 MFH r242738: Clarify that the ' flag is an apostrophe. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-05-19T02:58:04.713319Z K 7 svn:log V 49 Add description of the CTRL_MAC_ADDR feature bit END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-05-19T03:01:33.665099Z K 7 svn:log V 122 Add support for the EVENT_IDX feature to the network driver This allows the driver to defer the Tx completion interrupt. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-05-19T03:02:41.599870Z K 7 svn:log V 170 Fix setting of the Rx filters QEMU 1.4 made the descriptor requirement stricter - the size of buffer descriptor must exactly match the number of MAC addresses provided. END K 10 svn:author V 6 bryanv K 8 svn:date V 27 2013-05-19T03:04:34.204594Z K 7 svn:log V 116 Minor changes to the multiqueue driver - Fix statistics bugs - Add couple of asserts - Remove unused typedef END K 10 svn:author V 5 jamie K 8 svn:date V 27 2013-05-19T04:10:34.940227Z K 7 svn:log V 257 Refine the "nojail" rc keyword, adding "nojailvnet" for files that don't apply to most jails but do apply to vnet jails. This includes adding a new sysctl "security.jail.vnet" to identify vnet jails. PR: conf/149050 Submitted by: mdodd MFC after: 3 days END K 10 svn:author V 3 hrs K 8 svn:date V 27 2013-05-19T05:49:21.103268Z K 7 svn:log V 52 Fix build after doc/projects/xml-tools integration. END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-19T07:44:01.671444Z K 7 svn:log V 312 Remove lint case for _Thread_local. I added this block, knowing that lint does not support _Thread_local. When linting, we could argue that we don't care about TLS (yet). It seems, however, that external pieces of software also sometimes do a -Dlint, regex the output and compile it again. Reported by: swills END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-19T14:59:24.078049Z K 7 svn:log V 136 Remove the necessity to define VM_OBJECT_LOCK_DOWNGRADE() and handle the race differently. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-19T15:26:15.935110Z K 7 svn:log V 235 Add vm object lock assertions to pmap_copy_page() which must avoid mappings destruction and page freeing while performing the copy. (Documentation will be filled promptly later about this). Sponsored by: EMC / Isilon storage division END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2013-05-19T16:06:43.564483Z K 7 svn:log V 212 Initialize the fibnum for outgoing packets to 0. This avoids crashing due to the usage of uninitialized fibnum. This bugs became visiable after http://svnweb.freebsd.org/changeset/base/250700 MFC after: 2 weeks END K 10 svn:author V 6 andrew K 8 svn:date V 27 2013-05-19T16:25:09.752523Z K 7 svn:log V 223 Add a comment explaining why stack_capture is empty for EABI and clang. While here add a comment pointing out that, while r11 is not the frame pointer on EABI as there is no frame pointer, it's value is unused so is safe. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-19T16:45:17.099735Z K 7 svn:log V 22 Automate import dance END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-19T17:14:36.972488Z K 7 svn:log V 344 Re-introduce another part of r249367. This commit fixes a register leak in dt_cg_ptrsize() and generally cleans up some of the error handling around register allocation. This change corresponds to part of illumos-gate commit e5803b76927480: 3025 register leak in D code generation Reviewed by: pfg Obtained from: illumos MFC after: 1 month END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2013-05-19T19:19:01.773953Z K 7 svn:log V 118 Finish r85740 : Make IPv6 netmask has address family set. This pleases routing daemons like bird. MFC after: 2 weeks END K 10 svn:author V 7 dchagin K 8 svn:date V 27 2013-05-19T19:19:58.945472Z K 7 svn:log V 264 Being exported through vdso the note.Linux section used by glibc to determine the kernel version (this saves one uname call). Temporarily disable the export of a note.Linux section until I figured out how to change the kernel version in the note.Linux on the fly. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2013-05-19T19:42:46.805344Z K 7 svn:log V 64 Really fix netmask address family this time. MFC with: r250813 END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-19T23:28:28.203276Z K 7 svn:log V 48 Protect SDT_PROBE() with do { } while (0) loop. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-19T23:29:22.047486Z K 7 svn:log V 41 Use SDT_PROBE1() instead of SDT_PROBE(). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2013-05-19T23:30:24.168803Z K 7 svn:log V 12 Style nits. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-20T00:33:54.124226Z K 7 svn:log V 186 Fix vdc->Secondary_Element_Count metadata field access from 16 to 8 bit. In some cases it could cause kernel panic during failed drive replacement. Reported by: trasz MFC after: 1 week END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-20T02:10:18.107114Z K 7 svn:log V 103 Remove a block of code that was not intended to be part of the previous revision. X-MFC with: r250812 END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-05-20T02:34:45.666957Z K 7 svn:log V 458 grep: change some int types. Change several int variables to size_t, ssize_t, or ptrdiff_t. This should fix the bug described in CVE-2012-5667 when an input line is so long that its length cannot be stored in an int variable. This is based on NetBSD's revision which says: This change to NetBSD's version of GNU grep 2.5.1 (licenced under GPLv2) was made without direct reference to any code licenced under GPLv3. Obtained from: NetBSD MFC after: 3 days END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-05-20T03:03:23.865920Z K 7 svn:log V 88 Revert r250821 - This was not meant to be a direct commit. (wrong tree) Pointy hat: me END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-05-20T03:15:25.254156Z K 7 svn:log V 458 grep: change some int types. Change several int variables to size_t, ssize_t, or ptrdiff_t. This should fix the bug described in CVE-2012-5667 when an input line is so long that its length cannot be stored in an int variable. This is based on NetBSD's revision which says: This change to NetBSD's version of GNU grep 2.5.1 (licenced under GPLv2) was made without direct reference to any code licenced under GPLv3. Obtained from: NetBSD MFC after: 3 days END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-20T07:10:43.324549Z K 7 svn:log V 63 Make the HT rate duration calculation work for MCS rates > 15. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-05-20T13:05:51.295962Z K 7 svn:log V 32 Add a test program for popen(). END K 10 svn:author V 5 maxim K 8 svn:date V 27 2013-05-20T15:11:30.308194Z K 7 svn:log V 18 NetBSD 6.1 added. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2013-05-20T17:31:18.429690Z K 7 svn:log V 610 popen(): Add 'e' mode character to set close-on-exec on the new fd. If 'e' is used, the kernel must support the recently added pipe2() system call. The use of pipe2() with O_CLOEXEC also fixes race conditions between concurrent popen() calls from different threads, even if the close-on-exec flag on the fd of the returned FILE is later cleared (because popen() closes all file descriptors from earlier popen() calls in the child process). Therefore, this approach should be used in all cases when pipe2() can be assumed present. The old version of popen() rejects "re" and "we" but treats "r+e" like "r+". END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-20T19:41:34.072325Z K 7 svn:log V 47 Spell extensions correctly. Submitted by: dim END K 10 svn:author V 6 julian K 8 svn:date V 27 2013-05-20T20:14:12.186803Z K 7 svn:log V 94 Remove accidentally included line.. No effect as it wasn't used but was a) wrong b) clutter END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-20T20:32:58.779260Z K 7 svn:log V 64 Cleanups and markup improvements suggested by trociny and joel. END K 10 svn:author V 6 julian K 8 svn:date V 27 2013-05-20T20:47:40.498493Z K 7 svn:log V 54 Update the setfib man page to reflect recent changes. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-20T21:16:38.649099Z K 7 svn:log V 117 Fix distributekernel in the non NO_ROOT case. PR: conf/178775 Submitted by: Garrett Cooper END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-20T22:10:01.010727Z K 7 svn:log V 18 Fix white spaces. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-20T22:18:18.174075Z K 7 svn:log V 163 - Prefer ACPI_COMPARE_NAME(a, b) macro over strncmp(a, b, ACPI_NAME_SIZE). - Make sure the predefined name is a string type. - Return slightly more useful errors. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-20T22:35:32.486688Z K 7 svn:log V 42 Import bmake-20130520 to keep us in sync. END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-20T22:37:10.412484Z K 7 svn:log V 19 Tag bmake-20130520 END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-20T22:51:11.550779Z K 7 svn:log V 79 Sync with upstream version (20130520) that includes same fixes made last week. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-20T23:52:49.360003Z K 7 svn:log V 23 Merge ACPICA 20130517. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-21T00:41:49.441350Z K 7 svn:log V 37 BMAKE is now being built by default. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-21T03:05:49.930963Z K 7 svn:log V 1019 Add basic support for FDT to i386 & amd64. This change includes: 1. Common headers for fdt.h and ofw_machdep.h under x86/include with indirections under i386/include and amd64/include. 2. New modinfo for loader provided FDT blob. 3. Common x86_init_fdt() called from hammer_time() on amd64 and init386() on i386. 4. Split-off FDT specific low-level console functions from FDT bus methods for the uart(4) driver. The low-level console logic has been moved to uart_cpu_fdt.c and is used for arm, mips & powerpc only. The FDT bus methods are shared across all architectures. 5. Add dev/fdt/fdt_x86.c to hold the fdt_fixup_table[] and the fdt_pic_table[] arrays. Both are empty right now. FDT addresses are I/O ports on x86. Since the core FDT code does not handle different address spaces, adding support for both I/O ports and memory addresses requires some thought and discussion. It may be better to use a compile-time option that controls this. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-21T05:51:49.092784Z K 7 svn:log V 79 Extend the TXOP enforce capability to support checking whether it's supported. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:01:41.066010Z K 7 svn:log V 46 MFC r248566: Add new USB ID. PR: usb/177173 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:03:32.460417Z K 7 svn:log V 33 Add new USB ID. PR: usb/177173 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:06:16.078174Z K 7 svn:log V 46 MFC r248499: Add new USB ID. PR: usb/177105 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:06:52.649636Z K 7 svn:log V 46 MFC r248499: Add new USB ID. PR: usb/177105 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:09:19.413805Z K 7 svn:log V 45 MFC r248458: Add new USB ID. PR: usb/177013 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:10:26.636232Z K 7 svn:log V 45 MFC r248458: Add new USB ID. PR: usb/177013 END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2013-05-21T06:13:38.126688Z K 7 svn:log V 54 Add new USB quirk. MFC after: 1 week PR: usb/178771 END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-21T11:04:00.047357Z K 7 svn:log V 295 Add ddb command 'show pginfo' which provides useful information about a vm page, denoted either by an address of the struct vm_page, or, if the '/p' modifier is specified, by a physical address of the corresponding frame. Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-21T11:07:12.006906Z K 7 svn:log V 214 Add amd64-specific ddb command 'show phys2dmap', which calculates the address in the direct map corresponding to the given physical address. Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-21T11:24:32.110394Z K 7 svn:log V 353 Fix the hardware watchpoints on SMP amd64. Load the updated %dr registers also on other CPUs, besides the CPU which happens to execute the ddb. The debugging registers are stored in the pcpu area, together with the command which is executed by the IPI stop handler upon resume. Reviewed by: jhb Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-21T11:31:56.589555Z K 7 svn:log V 279 Do not leak the NULLV_NOUNLOCK flag from the nullfs_unlink_lowervp(), for the case when the nullfs vnode is not reclaimed. Otherwise, later reclamation would not unlock the lower vnode. Reported by: antoine Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-21T11:40:16.278920Z K 7 svn:log V 326 Fix the wait6(2) on 32bit architectures and for the compat32, by using the right type for the argument in syscalls.master. Also fix the posix_fallocate(2) and posix_fadvise(2) compat32 syscalls on the architectures which require padding of the 64bit argument. Noted and reviewed by: jhb Pointy hat to: kib MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-21T11:41:08.235390Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T13:02:37.811371Z K 7 svn:log V 242 o Take into account the possibility of busy pages. o Remove the asserts on the dest page. There could be some legittimate reasons that have the dst page out of whatever race for the time being. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-21T14:28:05.493283Z K 7 svn:log V 75 Fix build break - the SetCapability calls return HAL_BOOL, not HAL_STATUS. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T15:48:35.301300Z K 7 svn:log V 103 Relax and complete object assert for pmap_enter_object(). Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T16:34:44.944830Z K 7 svn:log V 225 o Relax assert in vfs_buf_test_cache() (even if it is unlikely to be exploited, it is more fair). o Use read-locking in vfs_bio_bzero_buf() because it should be fine to do so. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 6 brooks K 8 svn:date V 27 2013-05-21T16:58:23.454684Z K 7 svn:log V 318 Restore the ability to build on systems with 32-bit compat when the system compiler is not clang. clang and gcc appear to differ signficantly in their interpretation of -isystem and --sysroot. Further work is likely required to support an external gcc. Reported by: andreast, fidaj@ukr.net, sergey.dyatko@gmail.com END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-21T17:28:19.374839Z K 7 svn:log V 202 Don't look for headers outside of the source or object directories. In particular, don't use DESTDIR. Such creates an unnecessary dependency on the build machine. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-21T17:30:27.844676Z K 7 svn:log V 203 Don't look for headers outside of the source or object directories. In particular, don't use DESTDIR. Such creates an unnecessary dependency on the build machine. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T17:40:22.489122Z K 7 svn:log V 100 Reinsert VM_OBJECT_LOCK_DOWNGRADE(). Sponsored by: EMC / Isilon storage division Requested by: alc END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-21T17:47:53.668705Z K 7 svn:log V 177 Add a makefle that recurses into the right architecture-specific sub-directory. This to allow simpler logic outside of the csu directory. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-21T18:00:47.470710Z K 7 svn:log V 116 Fix the PowerPC Book-E register definitions used by the remote GDB protocol. Obtained from: Juniper Networks, Inc. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-21T18:02:54.588984Z K 7 svn:log V 1344 Enable the use of TDMA on an 802.11n channel (with aggregation disabled, of course.) There's a few things that needed to happen: * In case someone decides to set the beacon transmission rate to be at an MCS rate, use the MCS-aware version of the duration calculation to figure out how long the received beacon frame was. * If TxOP enforcing is available on the hardware and we're doing TDMA, enable it after a reset and set the TDMA guard interval to zero. This seems to behave fine. TODO: * Although I haven't yet seen packet loss, the PHY errors that would be triggered (specifically Transmit-Override-Receive) aren't enabled by the 11n HAL. I'll have to do some work to enable these PHY errors for debugging. What broke: * My recent changes to the TX queue handling has resulted in the driver not keeping the hardware queue properly filled when doing non-aggregate traffic. I have a patch to commit soon which fixes this situation (albeit by reminding me about how my ath driver locking isn't working out, sigh.) So if you want to test this without updating to the next set of patches that I commit, just bump the sysctl dev.ath.X.hwq_limit from 2 to 32. Tested: * AR5416 <-> AR5416, with ampdu disabled, HT40, 5GHz, MCS12+Short-GI. I saw 30mbit/sec in both directions using a bidirectional UDP test. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-21T18:13:57.905697Z K 7 svn:log V 366 Implement a separate hardware queue threshold for aggregate and non-aggr traffic. When transmitting non-aggregate traffic, we need to keep the hardware busy whilst transmitting or small bursts in txdone/tx latency will kill us. This restores non-aggregate iperf performance, especially when doing TDMA. Tested: * AR5416<->AR5416, TDMA * AR5416 STA <-> AR9280 AP END K 10 svn:author V 3 sjg K 8 svn:date V 27 2013-05-21T18:38:09.199304Z K 7 svn:log V 61 Mention the switch to bmake by default. Reviewed by: obrien END K 10 svn:author V 2 jh K 8 svn:date V 27 2013-05-21T18:40:54.018153Z K 7 svn:log V 122 Remove an extra semicolon from the DOT language output. PR: kern/178540 Submitted by: Trond Endrestol MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T18:52:37.437206Z K 7 svn:log V 27 Disable keyword expansion. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-21T19:04:16.919861Z K 7 svn:log V 1308 MFC r249666, r249667, r249670, r249672, r249674, r249676, r249677, r249679, r249681, r249684, r249688, r249711, r249731, r250146 r249666, r249682: Make libprocstat(3) extract procstat notes from a process core file. PR: kern/173723 Suggested by: jhb Glanced by: kib r249667: Add procstat_getvmmap function to get VM layout of a process. r249670: Add procstat_getgroups function to retrieve process groups. r249672: Add procstat_getumask function to retrieve a process umask. r249674: Add procstat_getrlimit function to retrieve a process resource limits info. r249676: Add procstat_getpathname function to retrieve a process executable. r249677: Add procstat_getosrel function to retrieve a process osrel info. r249679: Extend libprocstat with functions to retrieve process command line arguments and environment variables. Suggested by: stas Reviewed by: jhb and stas (initial version) r249681: Add procstat_getauxv function to retrieve a process auxiliary vector. r249684: Add procstat_getkstack function to dump kernel stacks of a process. r249688: Bump date. r249711 (joel): mdoc: end function context properly. r249731: Embed revision id in the library. r250146: KVM method support for procstat_getgroups, procstat_getumask, procstat_getrlimit, and procstat_getosrel. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-21T19:05:27.804530Z K 7 svn:log V 1992 MFC r249668, r249669, r249671, r249673, r249675, r249678, r249680, r249683, r249685, r249686: r249668: Use procstat_getprocs(3) for retrieving thread information instead of direct sysctl calls. r249669: Use more generic procstat_getvmmap(3) for retrieving VM layout of a process. r249671: Use procstat_getgroups(3) for retrieving groups information instead of direct sysctl. r249673: Use procstat_getumask(3) for retrieving umaks information instead of direct sysctl. r249675: Use procstat_getrlimit(3) for retrieving rlimit information instead of direct sysctl calls. r249678: Use libprocstat(3) when retrieving binary information for a process. r249680: Use libprocstat(3) to retrieve process command line arguments and environment variables. r249683: Use libprocstat(3) to retrieve ELF auxiliary vector. r249685: Use procstat_getkstack(3) for retrieving process kernel stacks instead of direct sysctl calls. r249686: Make use of newly added libprocstat(3) ability to extract procstat info from a process core file. So now one can run procstat(1) on a process core e.g. to get a list of files opened by a process when it crashed: root@lisa:/ # procstat -f /root/vi.core PID COMM FD T V FLAGS REF OFFSET PRO NAME 658 vi text v r r-------- - - - /usr/bin/vi 658 vi ctty v c rw------- - - - /dev/pts/0 658 vi cwd v d r-------- - - - /root 658 vi root v d r-------- - - - / 658 vi 0 v c rw------- 11 3208 - /dev/pts/0 658 vi 1 v c rw------- 11 3208 - /dev/pts/0 658 vi 2 v c rw------- 11 3208 - /dev/pts/0 658 vi 3 v r r----n-l- 1 0 - /tmp/vi.0AYKz3Lps7 658 vi 4 v r rw------- 1 0 - /var/tmp/vi.recover/vi.GaGYsz 658 vi 5 v r rw------- 1 0 - - PR: kern/173723 Suggested by: jhb END K 10 svn:author V 7 trociny K 8 svn:date V 27 2013-05-21T19:06:17.430829Z K 7 svn:log V 223 MFC r249687, r249704, r250511: r249687, r249704: Sync gcore(1) with the recent changes in kernel code aimed at adding procstat notes to a process core file. Suggested by: jhb r250511 (antoine): Add some missing DPADD. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:09:30.302175Z K 7 svn:log V 54 Add flex 2.5.37 from flex.sourceforge.net to contrib. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:11:11.676112Z K 7 svn:log V 290 Apply still relevant local changes. r124183: Work around a `label defined but not used' warning. r179549: De-register declarations. r179657: De-register declarations in non-dot-c files. r181269: Mark yy_fatal_error() as __dead2. r228992: Spelling fixes. r240518: Correct double "the the". END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:17:02.493094Z K 7 svn:log V 26 Reduce compiler warnings. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:20:03.547676Z K 7 svn:log V 77 Do not use log10(3) to get rid of libm dependency. It is really not useful. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:21:26.700390Z K 7 svn:log V 53 Define yy_current_buffer for backward compatibility. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:22:42.963617Z K 7 svn:log V 65 Allow YY_NO_UNPUT to disable unput() for backward compatibility. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:23:49.600494Z K 7 svn:log V 34 Enable GNU m4 compatibility mode. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2013-05-21T19:25:19.660410Z K 7 svn:log V 640 MFC 238450,250152-250153,250415: - Add support for the XSAVEOPT instruction use. - The check to ensure that xstate_bv always has XFEATURE_ENABLED_X87 and XFEATURE_ENABLED_SSE bits set is not needed. CPU correctly handles any bitmask which is subset of the enabled bits in %XCR0. - Partially saved extended state must be handled always, i.e. for both fpu-owned context, and for pcb-saved one. - Correct the type for the literal used on the left side of the shift up to 63 bit positions. Do not fill the save area and do not set the saved bit in the xstate bit vector for the state which is not marked as enabled in xsave_mask. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-21T19:32:35.822100Z K 7 svn:log V 61 Connect flex 2.5.37 to the build and bump __FreeBSD_version. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2013-05-21T19:56:03.617691Z K 7 svn:log V 74 Avoid signed overflow in error handling code. Reviewed by: cperciva, bjk END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-21T19:59:37.264631Z K 7 svn:log V 424 Add . The header, part of C11, adds a small number of utility functions for 16/32-bit "universal" characters, which may or may not be UTF-16/32. As our wchar_t is already ISO 10646, simply add light-weight wrappers around wcrtomb() and mbrtowc(). While there, also add (non-yet-standard) _l functions, similar to the ones we already have for the other locale-dependent functions. Reviewed by: theraven END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T20:38:19.846777Z K 7 svn:log V 448 o Relax locking assertions for vm_page_find_least() o Relax locking assertions for pmap_enter_object() and add them also to architectures that currently don't have any o Introduce VM_OBJECT_LOCK_DOWNGRADE() which is basically a downgrade operation on the per-object rwlock o Use all the mechanisms above to make vm_map_pmap_enter() to work mostl of the times only with readlocks. Sponsored by: EMC / Isilon storage division Reviewed by: alc END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T20:54:03.043212Z K 7 svn:log V 129 vm_object locking is not needed there as pages are already wired. Sponsored by: EMC / Isilon storage division Submitted by: alc END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-21T20:56:27.695073Z K 7 svn:log V 4 MFC END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-21T21:20:10.086156Z K 7 svn:log V 104 Allow certain headers to be included more easily. Spotted by: http://hacks.owlfolio.org/header-survey/ END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-21T21:39:18.804982Z K 7 svn:log V 95 Update manpages for r250887. Remove the lists of unneeded header files. Requested by: eadler END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-21T21:50:11.804839Z K 7 svn:log V 108 Add proper prerequisites for even two more headers. Spotted by: http://hacks.owlfolio.org/header-survey/ END K 10 svn:author V 3 mjg K 8 svn:date V 27 2013-05-21T21:58:00.953997Z K 7 svn:log V 198 passing fd over unix socket: fix a corner case where caller wants to pass no descriptors. Previously the kernel would leak memory and try to free a potentially arbitrary pointer. Reviewed by: pjd END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-22T00:17:50.096014Z K 7 svn:log V 114 Properly spell sentinel (not sintenel or sentinal). No functional changes. Spotted by: kib MFC after: 2 weeks END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-22T00:30:34.594541Z K 7 svn:log V 162 Remove a bogus check for a NULL buffer pointer. Add a KASSERT that it is not NULL. Found by: Coverity Scan, CID 1009114 Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-22T00:31:33.480382Z K 7 svn:log V 1179 MFC r250374: According to the documentation, on Linux, cancel_delayed_work() does not do drain (flush_workqueue() in Linux terms) but instead returns true if the work was removed before it is run, or false otherwise. Simulate this by removing the taskqueue_drain() and return the value derived from taskqueue_cancel()'s return value. This would solve a witness warning caused by calling taskqueue_drain() with a non-sleepable lock held, like: taskqueue_drain with the following non-sleepable locks held: exclusive rw lle (lle) r = 0 (0xfffffe001450b410) locked @ /usr/src/sys/netinet/in.c:1484 KDB: stack backtrace: db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xffffff848d4f7690 kdb_backtrace() at kdb_backtrace+0x39/frame 0xffffff848d4f7740 witness_warn() at witness_warn+0x4a8/frame 0xffffff848d4f7800 taskqueue_drain() at taskqueue_drain+0x3a/frame 0xffffff848d4f7840 set_timeout() at set_timeout+0x4a/frame 0xffffff848d4f7860 netevent_callback() at netevent_callback+0x16/frame 0xffffff848d4f7870 arpintr() at arpintr+0x9b5/frame 0xffffff848d4f7930 This do not affect kernel without OFED compiled in. Reported by: Garrett Cooper END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-22T00:40:26.890137Z K 7 svn:log V 346 Null a pointer after it is freed so that when it is returned the return value is NULL. Based on the returned flags, the return value should never be inspected in the case where NULL is returned, but it is good coding practice not to return a pointer to freed memory. Found by: Coverity Scan, CID 1006096 Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-22T00:48:24.299369Z K 7 svn:log V 133 Add missing 28th element to softdep types name array. Found by: Coverity Scan, CID 1007621 Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-22T00:54:57.267592Z K 7 svn:log V 16 Merge from HEAD END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-22T00:57:22.773655Z K 7 svn:log V 249 Add missing buffer releases (brelse) after bread calls that return an error. One could argue that returning a buffer even when it is not valid is incorrect, but bread has always returned a buffer valid or not. Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-22T00:58:03.769256Z K 7 svn:log V 23 Re-sync against -HEAD. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-22T01:03:41.812134Z K 7 svn:log V 44 Implement beacon event debugging in athalq. END K 10 svn:author V 3 mav K 8 svn:date V 27 2013-05-22T02:15:07.730015Z K 7 svn:log V 86 Fix NULL-dereference kernel panic in case of mps_attach() failure. MFC after: 1 week END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2013-05-22T05:07:55.329262Z K 7 svn:log V 137 Properly spell sentinel (missed in 250891) No functional changes. Spotted by: Navdeep Parhar and Alexey Dokuchaev MFC after: 2 weeks END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-22T05:16:07.978619Z K 7 svn:log V 80 Regenerate with manual fixup for WITH_LDNS_UTILS inheriting WITHOUT_BIND_UTILS. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2013-05-22T05:21:19.643338Z K 7 svn:log V 27 Fix a copy-and-paste typo. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2013-05-22T05:43:14.939284Z K 7 svn:log V 2708 First cut at deferred transmit for the VAP path. The aim here is to eventually do a hybrid direct dispatch if there's no transmitter, or a deferred dispatch if the transmitter is currently busy. But for now this will just have to do. It'll add a little more latency on top of things but it'll at least make things a bit more sane. * Create a new vap task for transmit * Add transmit and qflush for the vap interface; kill the if_start() version of the method. * The transmit/qflush routines still use the vap ifp if_snd queue, but they themselves do the packet setup, enqueue and dequeue/dispatch. Things are nicely separated enough to hopefully make it easier for me to figure out a better, flexible queue+dispatch framework. What's next: * Create a different taskqueue, one for each VAP, that handles transmit. Sticking it in the ic queue unfortunately serialises the VAP transmit with the ic transmit and stops multiple, overlapping VAPs from transmitting. This makes things much easier but it also hides a bunch of potential race conditions. So, let's break things out into a race-prone setup which somewhat matches the existing scenario in -HEAD - indepedent VAP and driver transmit threads. * .. it may be that instead of doing per-VAP methods, we do a per-IC transmit taskqueue but create a separate one just for transmit. That way if the driver wishes to serialise its own software queue mechanism with the net80211 transmit path - eg because it wishes to allocate its own sequence numbers w/ A-MPDU - then the driver code can just keep the global ic vap transmit lock held, rather than trying to keep some per-VAP transmit lock held. * .. and it's still not clear how to setup the TX, node (comlock) and driver locking in a way that isn't ugly and/or cause LORs. * Push frames from the raw transmit path into the VAP path directly, rather than doing a call to ic_raw_xmit() from here. Then the dispatch task can decide whether to call the vap transmit method or the device ic_raw_xmit method. Serialising both of these calls together will go a long way towards ensuring the driver state is kept sane. * Figure out how to shoehorn management traffic frame generation into this. Right now it grabs the TX path lock and then sets up the frame state independent of the VAP transmit path. It then calls ic_raw_xmit(). There's LOR problems doing it this way; it would just plain be nicer if we could setup these frames in the caller context and then assign 802.11 state (eg sequence number, tag with power save info, feed into FF/AMSDU/powersave/etc) state from inside the serialised VAP transmit path. Anyway, still lots to do. END K 10 svn:author V 4 grog K 8 svn:date V 27 2013-05-22T07:52:41.819396Z K 7 svn:log V 281 MFH revisions 242743 to 243202: Make parameters to -c and -k options optional. If no parameters are supplied, print information for all keywords. Improve output of -c option, in particular in conjunction with -k option. Complete man page. Add comment on standards conformity. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-05-22T08:44:21.386211Z K 7 svn:log V 770 MFC r250327 Add a sysctl vfs.read_min to complement the exiting vfs.read_max. It defaults to 1, meaning that it's off. When read-ahead is enabled on a file, the vfs cluster code deliberately breaks a read into 2 I/O transactions; one to satisfy the actual read, and one to perform read-ahead. This makes sense in low-latency circumstances, but often produces unbalanced i/o transactions that penalize disks. By setting vfs.read_min, we can tell the algorithm to fetch a larger transaction that what we asked for, achieving the same effect as the read-ahead but without the doubled, unbalanced transaction and the slightly lower latency. This significantly helps our workloads with video streaming. Submitted by: emax Reviewed by: kib Obtained from: Netflix END K 10 svn:author V 6 scottl K 8 svn:date V 27 2013-05-22T10:37:28.203604Z K 7 svn:log V 86 MFC r248830, r250027, r250409 Submitted by: gibbs, andre, kib Obtained from: Netflix END K 10 svn:author V 3 pho K 8 svn:date V 27 2013-05-22T12:59:39.080277Z K 7 svn:log V 32 Added a nullfs regression test. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-22T15:11:00.762008Z K 7 svn:log V 125 Acquire read lock on the src object for vm_fault_copy_entry(). Sponsored by: EMC / Isilon storage division Reviewed by: alc END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-22T15:15:05.793863Z K 7 svn:log V 4 MFC END K 10 svn:author V 5 luigi K 8 svn:date V 27 2013-05-22T16:32:18.607440Z K 7 svn:log V 688 Increase the (arbitrary) limit for the number of packets per tick from 1k to 20k The previous value was good 10 years ago, but not anymore now. More importantly, lots of good surprises: polling is incredibly effective under virtualization, and not only prevents livelock but also saves most of the VM exit overhead in receive mode. Using polling, a FreeBSD instance under qemu-kvm remains perfectly responsive even when bombed with 10 Mpps over an emulated e1000, and happily processes 1.7 Mpps through ipfw. Note that some incompatibilities still remain: e.g. polling is not (yet) compatible with netmap, and seems to freeze the guest when kern.polling.idle_poll=1 MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2013-05-22T16:33:28.744260Z K 7 svn:log V 55 Remove reference to removed !MPSAFE filesystem support END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-05-22T17:13:03.545339Z K 7 svn:log V 407 Correct panic on detach of Xen PV network interfaces. dev/xen/netfront: In netif_free(), properly stop the interface and drain any pending timers prior to disconnecting from the backend device. Remove all media and detach our interface object from the system prior to deleting it. PR: kern/176471 Submitted by: Roger Pau Monne Reviewed by: gibbs MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-22T17:47:45.800457Z K 7 svn:log V 60 Improve compatibility with old flex and fix build with GCC. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2013-05-22T18:26:12.271308Z K 7 svn:log V 259 MFC r250804: Refine the "nojail" rc keyword, adding "nojailvnet" for files that don't apply to most jails but do apply to vnet jails. This includes adding a new sysctl "security.jail.vnet" to identify vnet jails. PR: conf/149050 Submitted by: mdodd END K 10 svn:author V 5 peter K 8 svn:date V 27 2013-05-22T19:00:05.146074Z K 7 svn:log V 51 Don't mess with /etc/localtime if it is a symlink. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2013-05-22T19:22:44.923351Z K 7 svn:log V 620 Fix loss of the emulated keyboard on Xen PV HVM domains. xen/xenbus/xenbusb.c: In xenbusb_probe_children(), do not modify the XenBus state of devices for which we have no PV driver support. An emulated device we do support may share this backend. Hide the node from XenBus instead. This prevents closing the vkbd device, which Qemu's emulated keyboard device is using as the source for keyboard events. Tested with qemu-xen-traditional, qemu-xen and qemu stubdomains, all working as expected. Submitted by: Roger Pau Monne Reviewed by: gibbs MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-05-22T22:34:09.719842Z K 7 svn:log V 93 Fix nfscl_packrats.c so that it builds on 64bit arches. Reported by: outbackdingo@gmail.com END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-22T22:34:48.918446Z K 7 svn:log V 125 Don't depend on the touch binary being present. We can simply create an empty file by doing a no-op and redirecting stdout. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-05-23T00:09:38.813165Z K 7 svn:log V 148 Update packrats to add some of the code needed for client reboot recovery. Also enable read delegations, since they are useful for packrat caching. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-05-23T00:21:43.405820Z K 7 svn:log V 45 Update the packrat kernel to a current head. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-23T00:49:52.452675Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-23T00:52:48.087166Z K 7 svn:log V 25 Merge from vmcontention. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2013-05-23T00:58:56.084297Z K 7 svn:log V 84 Add two generic i/o calls to vfs_subr.c that are required by the new packrats code. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-23T01:37:34.365033Z K 7 svn:log V 58 Fix-up tmpfs Sponsored by: EMC / Isilon storage division END K 10 svn:author V 4 jkim K 8 svn:date V 27 2013-05-23T05:42:35.271050Z K 7 svn:log V 66 Work around build breakages with GCC 4.2. Reported by: tinderbox END K 10 svn:author V 4 oleg K 8 svn:date V 27 2013-05-23T11:29:28.423304Z K 7 svn:log V 134 MFC: r249628, r249742 - recover missing arp_ifinit() call. - plug static llentry leak (ipv4 & ipv6 were affected). PR: kern/172985 END K 10 svn:author V 4 gber K 8 svn:date V 27 2013-05-23T12:07:41.858196Z K 7 svn:log V 1072 Switch to AP[2:1] access permissions model. Store "referenced" bit in PTE. Enable Access Flag in CPU control. With AF enabled each valid mapping needs to have referenced bit in PTE set in order to be able to cache it in the TLB. AP[0] bit is to be used as reference flag. All access permissions are encoded by AP[2:1] wherein AP[1] is in fact "user enable" and AP[2](APX) is "write disable". All mappings are always set to be valid. Reference emulation is performed by setting/clearing reference flag in PTE. md.pvh_attrs are no longer necessary however pv_flags are still being used for now. Marking vm_page as "dirty" or "referenced" is being performed on: - page or flag fault servicing in pmap_fault_fixup(), basing on the fault type - vm_fault servicing in pmap_enter() according to the desired protections and faulty access type Redundant page marking has been removed as on ARM we know exactly when the particular page is referenced or is going to be written. Submitted by: Zbigniew Bodek Sponsored by: The FreeBSD Foundation, Semihalf END K 10 svn:author V 4 gber K 8 svn:date V 27 2013-05-23T12:15:23.439580Z K 7 svn:log V 1195 Improve, optimize and clean-up ARMv6/v7 memory management related code. Use pmap_find_pv if needed instead of multiplying its code throughout pmap-v6. Avoid possible NULL pointer dereference in pmap_enter_locked() When trying to get m->md.pv_memattr, make sure that m != NULL, in particular that vector_page is set to be NULL. Do not set PGA_REFERENCED flag in pmap_enter_pv(). On ARM any new page reference will result in either entering the new mapping by calling pmap_enter, etc. or fixing-up the existing mapping in pmap_fault_fixup(). Therefore we set PGA_REFERENCED flag in the earlier mentioned cases and setting it later in pmap_enter_pv() is just waste of cycles. Delete unused pm_pdir pointer from the pmap structure. Rearrange brackets in the fault cause detection in trap.c Place the brackets correctly in order to see course of the conditions instantaneously. Unify naming in pmap-v6.c and improve style Use naming common for whole pmap and compatible with other pmaps, improve style where possible: pm -> pmap pg -> m opg -> om *pt -> *ptep *pte -> *ptep *pde -> *pdep Submitted by: Zbigniew Bodek Sponsored by: The FreeBSD Foundation, Semihalf END K 10 svn:author V 4 gber K 8 svn:date V 27 2013-05-23T12:23:18.322998Z K 7 svn:log V 601 Stop using PVF_MOD, PVF_REF & PVF_EXEC flags in pv_entry, use PTE. Using PVF_MOD, PVF_REF and PVF_EXEC is redundant as we can get the proper info from PTE bits. When the mapping is marked as executable and has been referenced we assume that it has been executed. Similarly, when the mapping is set to be writable and is referenced, it must have been due to write access to it. PVF_MOD and PVF_REF flags are kept just for pmap_clearbit() usage, to pass the information on which bit should be cleared. Submitted by: Zbigniew Bodek Sponsored by: The FreeBSD Foundation, Semihalf END K 10 svn:author V 4 gber K 8 svn:date V 27 2013-05-23T12:24:46.611419Z K 7 svn:log V 401 Rework and organize pmap_enter_locked() function. pmap_enter_locked() implementation was very ambiguous and confusing. Rearrange it so that each part of the mapping creation is separated. Avoid walking through the redundant conditions. Extract vector_page specific PTE setup from normal PTE setting. Submitted by: Zbigniew Bodek Sponsored by: The FreeBSD Foundation, Semihalf END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-23T14:31:42.818046Z K 7 svn:log V 103 Bring back vm_page_sleep_if_busy() to a single hard-call. Sponsored by: EMC / Isilon storage division END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-23T14:34:34.517351Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2013-05-23T14:37:08.270282Z K 7 svn:log V 25 Merge from vmcontention. END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2013-05-23T15:41:09.360210Z K 7 svn:log V 64 Correct typo s/with/wish. Spaces to tabs at SOL while I'm here. END K 10 svn:author V 3 kib K 8 svn:date V 27 2013-05-23T16:37:43.904784Z K 7 svn:log V 102 Fix typo in the definition of the TWS_DATA_CCB. Submitted by: Andreas Turriff END K 10 svn:author V 3 pfg K 8 svn:date V 27 2013-05-23T16:39:42.813844Z K 7 svn:log V 264 MFC r250823: grep: change some int types. Change several int variables to size_t, ssize_t, or ptrdiff_t. This should fix the bug described in CVE-2012-5667 when an input line is so long that its length cannot be stored in an int variable. Obtained from: NetBSD END K 10 svn:author V 2 ed K 8 svn:date V 27 2013-05-23T18:07:01.754242Z K 7 svn:log V 173 Let iconv build on -HEAD properly. - Add NO_WMISSING_VARIABLE_DECLARATIONS where we use Yacc/Lex. - Add variable declarations where possible. - Add missing static keyword. END K 10 svn:author V 5 markj K 8 svn:date V 27 2013-05-23T19:47:35.622137Z K 7 svn:log V 157 Correct the description of the -a option: rtsol(d) -a will in fact send out router solicitations on multiple interfaces. Reviewed by: hrs MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2013-05-23T19:47:37.631396Z K 7 svn:log V 593 Change the copyright notice to a standard BSD 2-clause license and assign ownership to the FreeBSD foundation for the years this file has been in the FreeBSD repository. This file was originally created by Juniper as part of upgrading to FreeBSD 4.10 (which had no MIPS support) and held functions found on other machines It grew actual functionality over time. The functionaliy was copied from other architectures and ported to MIPS on a as-needed basis. Approved by: Mark Baushke (Juniper IP) Approved by: Megan Sugiyama (Juniper legal) Pointed out by: jmallett@ Requested by: core (jhb@) END