ƒ³V239179 183 779 446 148 124 235 800 502 127 239 116 194 143 330 378 429 680 268 134 1609 398 196 219 887 131 213 1407 413 126 142 191 138 116 118 149 490 1433 130 157 195 241 142 160 151 141 180 121 127 135 201 207 223 294 196 248 251 131 318 639 183 174 157 177 496 153 365 862 118 617 334 246 104 547 574 599 320 240 178 231 261 450 171 531 157 379 123 214 122 435 127 360 160 160 160 874 154 665 269 223 193 479 219 244 280 268 129 382 149 173 170 141 164 898 121 141 146 221 140 166 104 165 420 102 312 194 890 561 131 205 205 139 130 180 116 508 180 117 138 128 323 401 142 211 264 113 196 129 157 222 409 141 216 218 348 117 114 218 208 176 152 431 234 116 802 384 152 645 200 997 308 493 102 218 246 946 355 425 846 361 131 155 235 171 136 K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T15:21:12.569876Z K 7 svn:log V 681 Switch unit management in UCOM to unrhdr. Extend the callback table of UCOM to include a "ucom_free" function pointer which is called when all refs on a UCOM super structure is gone. Implement various helper functions to handle refcounting and draining on the UCOM super structure. Implement macro which can be used in device drivers to avoid module unload before all pending TTY references are gone. The UCOM API is backwards compatible after this change and device drivers require no changes to function with this change. Only a recompilation of UCOM device drivers is required. The FreeBSD version has been bumped in that regard. Discussed with: kib, ed MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T15:29:41.210773Z K 7 svn:log V 348 Take advantage of new UCOM and bus functionality so that the device_detach() function doesn't block on UCOM device drivers until the TTY handle is closed by the userspace application. This is implemented by a postpone of the softc free where the UCOM structures reside until the TTY references are gone. Discussed with: kib, ed MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T17:42:14.089618Z K 7 svn:log V 51 Remove unused structure field. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-10T17:43:20.601462Z K 7 svn:log V 27 Style. MFC after: 2 weeks END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-10T18:19:57.118869Z K 7 svn:log V 142 sched_rr_interval() seems always returned period in hz ticks, but same always it was used as rate. Fix use side units to period in hz ticks. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2012-08-10T18:43:29.620197Z K 7 svn:log V 707 Always initialize sc_ekey, because as of r238116 it is always used. If GELI provider was created on FreeBSD HEAD r238116 or later (but before this change), it is using very weak keys and the data is not protected. The bug was introduced on 4th July 2012. One can verify if its provider was created with weak keys by running: # geli dump | grep version If the version is 7 and the system didn't include this fix when provider was initialized, then the data has to be backed up, underlying provider overwritten with random data, system upgraded and provider recreated. Reported by: Fabian Keil Tested by: Fabian Keil Discussed with: so MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-10T19:02:49.836759Z K 7 svn:log V 409 Some minor tunings/cleanups inspired by bde@ after previous commits: - remove extra dynamic variable initializations; - restore (4BSD) and implement (ULE) hogticks variable setting; - make sched_rr_interval() more tolerant to options; - restore (4BSD) and implement (ULE) kern.sched.quantum sysctl, a more user-friendly wrapper for sched_slice; - tune some sysctl descriptions; - make some style fixes. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-08-10T21:11:00.160371Z K 7 svn:log V 31 One more fallout from r238421. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-11T00:06:56.570142Z K 7 svn:log V 142 tvtohz will print out an error message if a negative value is given to it, avoid this problem by detecting timeout earlier. Reported by: pho END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-11T05:03:30.201186Z K 7 svn:log V 24 Don't use C++ comments. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-11T05:12:46.214860Z K 7 svn:log V 101 Update comments about setting PLLA and refernce the tables in the datasheet that express the limits. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-11T05:45:19.444161Z K 7 svn:log V 51 Correct the PLLA setting functions and centralize. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-11T05:58:56.166061Z K 7 svn:log V 234 Move the decoding of the swi instruction to the syscall function. With the ARM EABI the syscall value will be moved to a register to ease adding thumb support. When this happens decoding of the instruction will no longer be required. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-11T11:13:48.686427Z K 7 svn:log V 285 Change a few extern inline functions in libm to static inline, since they need to refer to static constants, which C99 does not allow for extern inline functions. While here, change a comment in e_rem_pio2f.c to mention the correct number of bits. Reviewed by: bde MFC after: 1 week END K 10 svn:author V 2 ed K 8 svn:date V 27 2012-08-11T12:07:24.610883Z K 7 svn:log V 337 Rename aux.c to auxv.c. On Windows, AUX is the auxiliary device, usually pointing to COM1. Therefore it is forbidden to create a file named aux.c. To make it a bit easier for Windows users to check out our source code, rename this file to auxv.c. MFC after: 1 month Discussed with: kib Suggested by: Eric van Gyzen END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-11T15:08:19.442354Z K 7 svn:log V 587 Allow idle threads to steal second threads from other cores on systems with 8 or more cores to improve utilization. None of my tests on 2xXeon (2x6x2) system shown any slowdown from mentioned "excess thrashing". Same time in pbzip2 test with number of threads more then number of CPUs I see up to 10% speedup with SMT disabled and up 5% with SMT enabled. Thinking about trashing I was trying to limit that stealing within same last level cache, but got only worse results. Present code any way prefers to steal threads from topologically closer cores. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-11T15:47:22.744113Z K 7 svn:log V 175 Add __always_inline to __ieee754_rem_pio2() and __ieee754_rem_pio2f(), since some older versions of gcc refuse to inline these otherwise. Requested by: bde MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-11T20:24:39.916124Z K 7 svn:log V 42 Some more minor tunings inspired by bde@. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-11T22:20:28.778048Z K 7 svn:log V 1512 Begin fleshing out the TX FIFO support. * Add ATH_TXQ_FIRST() for easy tasting of what's on the list; * Add an "axq_fifo_depth" for easy tracking of how deep the current FIFO is; * Flesh out the handoff (mcast, hw) functions; * Begin fleshing out a TX ISR proc, which tastes the TX status FIFO. The legacy hardware stuffs the TX completion at the end of the final frame descriptor (or final sub-frame when doing aggregate.) So it's feasible to do a per-TXQ drain and process, as the needed info is right there. For EDMA hardware, there's a separate TX completion FIFO. So the TX process routine needs to read the single FIFO and then process the frames in each hardware queue. This makes it difficult to do a per-queue process, as you'll end up with frames in the TX completion FIFO for a different TXQ to the one you've passed to ath_tx_draintxq() or ath_tx_processq(). Testing: I've tested the TX queue and TX completion code in hostap mode on an AR9380. Beacon frames successfully transmit and the completion routine is called. Occasional data frames end up in TXQ 1 and are also successfully completed. However, this requires some changes to the beacon code path as: * The AR9380 beacon configuration API is now in TU/8, rather than TU; * The AR9380 TX API requires the rate control is setup using a call to setup11nratescenario, rather than having the try0 series setup (rate/tries for the first series); so the beacon won't go out. I'll follow this up with commits to the beacon code. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-11T22:25:28.458382Z K 7 svn:log V 302 Add the AR9300 HAL ID in to the 11n check routine. I was having TX hang issues, which I root caused to having the legacy ath_hal_setupxtxdesc() called, rather than the 11n rate scenario setup code. This meant that rate control information wasn't being put into frames, causing the MAC to stall/hang. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-11T22:39:27.421571Z K 7 svn:log V 100 Add the AR9380 HAL to the TX descriptor debugging, in order to dump all of the descriptor contents. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-11T23:17:02.813638Z K 7 svn:log V 122 MFp4: Further decreases unexpected context switches by defering mutex wakeup until internal sleep queue lock is released. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-11T23:26:19.389007Z K 7 svn:log V 791 Extend the beacon code slightly to support AP mode beaconing for the EDMA HAL hardware. * The EDMA HAL code assumes the nexttbtt and intval values are in TU/8 units, rather than TU. For now, just "hack" around that here, at least until I code up something to translate it in the HAL. * Setup some different TXQ flags for EDMA hardware. * The EDMA HAL doesn't support setting the first rate series via ath_hal_setuptxdesc() - instead, a call to ath_hal_set11nratescenario() is always required. So for now, just do an 11n rate series setup for EDMA beacon frames. This allows my AR9380 to successfully transmit beacon frames. However, CABQ TX and all normal data frame TX and TX completion is still not functional and will require some more significant code churn to make work. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-11T23:48:39.407705Z K 7 svn:log V 35 Some style fixes inspired by @bde. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-12T00:25:35.433174Z K 7 svn:log V 117 Start to support building either ABI. There is currently no way to choose to use the old ABI but that will be fixed. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-12T00:37:29.031084Z K 7 svn:log V 1310 Break out ath_draintxq() into a method and un-methodize ath_tx_processq(). Now that I understand what's going on with this, I've realised that it's going to be quite difficult to implement a processq method in the EDMA case. Because there's a separate TX status FIFO, I can't just run processq() on each EDMA TXQ to see what's finished. i have to actually run the TX status queue and handle individual TXQs. So: * unmethodize ath_tx_processq(); * leave ath_tx_draintxq() as a method, as it only uses the completion status for debugging rather than actively completing the frames (ie, all frames here are failed); * Methodize ath_draintxq(). The EDMA ath_draintxq() will have to take care of running the TX completion FIFO before (potentially) freeing frames in the queue. The only two places where ath_tx_draintxq() (on a single TXQ) are used: * ath_draintxq(); and * the CABQ handling in the beacon setup code - it drains the CABQ before populating the CABQ with frames for a new beacon (when doing multi-VAP operation.) So it's quite possible that once I methodize the CABQ and beacon handling, I can just drop ath_tx_draintxq() in its entirety. Finally, it's also quite possible that I can remove ath_tx_draintxq() in the future and just "teach" it to not check the status when doing EDMA. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-12T00:46:15.522131Z K 7 svn:log V 317 Revert the ath_tx_draintxq() method, and instead teach it the minimum necessary to "do" EDMA. It was just using the TX completion status for logging information about the descriptor completion. Since with EDMA we don't know this without checking the TX completion FIFO, we can't provide this information. So don't. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-12T00:56:56.022882Z K 7 svn:log V 30 Do defered mutex wakeup once. END K 10 svn:author V 7 linimon K 8 svn:date V 27 2012-08-12T02:51:28.716205Z K 7 svn:log V 46 Add entry for mips. Won't do much right now. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-12T04:50:26.472971Z K 7 svn:log V 96 Document __aeabi_ldivmod and __aeabi_uldivmod. Add a comment of what these functions are doing. END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-08-12T09:23:55.297156Z K 7 svn:log V 43 Remove an unused file that is not in HEAD. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-12T14:16:21.484620Z K 7 svn:log V 25 Add more debug messages. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-12T14:32:30.344958Z K 7 svn:log V 27 Add another debug message. END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-12T16:58:38.061944Z K 7 svn:log V 54 Add missing VERIFY_10 definition. MFC after: 1 month END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-12T17:01:07.006922Z K 7 svn:log V 394 1. Remove SEN support. I doubt there are any working examples of this hardware still running (close to twenty years now). 2. Quiesece and use ENC_VLOG instead of ENC_LOG for most complaints. That is, they're visible with bootverbose, but otherwise quiesced and not repeatedly spamming messages with constant reminders that hardware in this space is rarely fully compliant. MFC after: 1 month END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-12T17:53:06.557516Z K 7 svn:log V 1334 Add support for the so-called streams feature of BULK endpoints in SUPER-speed mode, USB 3.0. This feature has not been tested yet, due to lack of hardware. This feature is useful when implementing protocols like UASP, USB attached SCSI which promises higher USB mass storage throughput. This patch also implements support for hardware processing of endpoints for increased performance. The switching to hardware processing of an endpoint is done via a callback to the USB controller driver. The stream feature is implemented like a variant of a hardware USB protocol. USB controller drivers implementing device mode needs to be updated to implement the new "xfer_stall" USB controller method and remove the "xfer" argument from the "set_stall" method. The API's toward existing USB drivers are preserved. To setup a USB transfer in stream mode, set the "stream_id" field of the USB config structure to the desired value. The maximum number of BULK streams is currently hardcoded and limited to 8 via a define in usb_freebsd.h. All USB drivers should be re-compiled after this change. LibUSB will be updated next week to support streams mode. A new IOCTL to setup BULK streams as already been implemented. The ugen device nodes currently only supports stream ID zero. The FreeBSD version has been bumped. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-12T19:58:56.413610Z K 7 svn:log V 33 Compile fix. MFC after: 2 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-08-12T20:23:59.305796Z K 7 svn:log V 65 Remove a leading space that breaks rendering. MFC after: 3 days END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-08-12T20:30:15.566792Z K 7 svn:log V 102 - Fix source dataset snapshot name in Example 15. - Bump date. MFC after: 3 days X-MFC-With: r239216 END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-12T20:45:47.906459Z K 7 svn:log V 145 Fix an oops where we wiped out DMA maps. Don't allocate extended command space for anything less than a 2300. MFC after: 1 month X-MFC: 238869 END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-12T20:49:25.557355Z K 7 svn:log V 47 Remove extraneous newline. MFC after: 1 month END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-12T23:48:02.696581Z K 7 svn:log V 66 Add missing XXX_long atomic ops for ARM Submitted by: Ian Lepore END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T00:10:36.574431Z K 7 svn:log V 57 CPU_ID_ARM926ES is not defined Submitted by: Ian Lepore END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T00:51:11.718793Z K 7 svn:log V 47 Remove extra bracket Submitted by: Ian Lepore END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T01:14:00.255684Z K 7 svn:log V 86 Add interrupt handling code for non-armv6 marvell platforms Submitted by: Ian Lepore END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T01:20:23.968324Z K 7 svn:log V 27 Remove duplicated #defines END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T01:33:10.530817Z K 7 svn:log V 33 Use init_proc0 for new platforms END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T01:33:56.107262Z K 7 svn:log V 41 Remove --save-temps command-line options END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-13T02:16:37.244446Z K 7 svn:log V 106 Merge Ian's patch and fix some usage of PCI/PCIE defines in Orion/Kirkwood code Submitted by: Ian Lepore END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2012-08-13T07:36:57.954458Z K 7 svn:log V 109 Build modules along with the XENHVM kernels. No objections from: freebsd-xen mailing list MFC after: 1 week END K 10 svn:author V 5 erwin K 8 svn:date V 27 2012-08-13T08:16:30.002470Z K 7 svn:log V 128 - Bump minimum release for 8 branch to 8.3 as 8.1 and 8.2 are no longer supported - While here, belatedly do the same for 7.4 END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-13T13:08:30.481729Z K 7 svn:log V 202 Unbreak booting from the true dedicated disks. When we open the disk, check the type of partition table, that has been detected. If this is BSD label, then we assume this is DD mode. Reported by: dim@ END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-13T13:10:50.581352Z K 7 svn:log V 104 Remove colons from the debug message, device name returned by the disk_fmtdev() already has the colons. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-13T13:33:21.408178Z K 7 svn:log V 156 Restore the old behaviour. If requested partition is a BSD slice, but d_partition isn't explicitly set, then try to open BSD label and its first partition. END K 10 svn:author V 6 wblock K 8 svn:date V 27 2012-08-13T15:16:25.998458Z K 7 svn:log V 155 Correct description of minfree to kilobytes rather than blocks. PR: 125921 Submitted by: Andre Albsmeier MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-13T16:03:30.495701Z K 7 svn:log V 36 Use array notation for consistency. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-13T16:33:22.012972Z K 7 svn:log V 225 Add a 10 millisecond delay after sending the initial INIT IPI. This matches the algorithm in the MP specification (1.4). Previously we were sending out the deassert INIT IPI immediately after the initial INIT IPI was sent. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-13T17:38:38.992340Z K 7 svn:log V 546 Port the new PV entry allocator from amd64/i386. This allocator has two advantages. First, PV entries are roughly half the size. Second, this allocator doesn't access the paging queues, and thus it will allow for the removal of the page queues lock from this pmap. Fix a rather serious bug in pmap_remove_write(). After removing write access from the specified page's first mapping, pmap_remove_write() then used the wrong "next" pointer. Consequently, the page's second, third, etc. mappings were not write protected. Tested by: jchandra END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-13T18:00:34.727540Z K 7 svn:log V 86 Improve auto-quirks detection for certain Kingston memory sticks. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-13T18:09:19.567067Z K 7 svn:log V 77 Rename new IOCTL to singular form of the noun "streams". MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-13T18:10:52.985192Z K 7 svn:log V 60 Add support for streams to LibUSB v2.0. MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-13T18:34:04.124132Z K 7 svn:log V 80 Fix for missing locks due to recent change. PR: usb/170606 MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-13T18:52:51.678487Z K 7 svn:log V 403 Remove the deassert INIT IPI from the IPI startup sequence for APs. It is not listed in the boot sequence in the MP specification (1.4), and it is explicitly ignored on modern CPUs. It was only ever required when bootstrapping systems with external APICs (that is, SMP machines with 486s), which FreeBSD has never supported (and never will). While here, tidy some comments and remove some banal ones. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-08-13T19:14:45.603903Z K 7 svn:log V 58 Reword comment to try to improve clarity, and fix a typo. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-13T21:04:01.703533Z K 7 svn:log V 272 After r239066, reinitialize v86.ctl and v86.addr for int 13 EDD probing in sys/boot/i386/libi386/biosdisk.c. Otherwise, when DISK_DEBUG is enabled, the DEBUG() macros will clobber those fields, and cause the probing to always fail mysteriously when debugging is enabled. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-13T21:29:34.601734Z K 7 svn:log V 769 Add locking to the twe(4) driver and make it MPSAFE: - Add per-controller configuration (sx) and I/O (mutex) locks. The configuration lock protects the relationship of volumes and drives while the I/O lock protects access to the controller's registers and the main I/O path. - Remove some checks for M_WAITOK malloc()'s failing. - Remove the explicit bus space tag/handle from the softc and use bus_*() rather than bus_space_*(). - Reuse the existing new-bus sysctl context instead of creating a new one. - Remove compat shims for FreeBSD 4.x. - Use pci_enable_busmaster() rather than doing it by hand, and rely on bus_alloc_resource() to enable PCI I/O decoding. Tested by: Mike Tancsa mike sentex net Reviewed by: scottl (partially) MFC after: 1 month END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-08-14T05:16:35.421385Z K 7 svn:log V 21 Fix typo in comment. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T11:45:47.520856Z K 7 svn:log V 524 Do not leave invalid pages in the object after the short read for a network file systems (not only NFS proper). Short reads cause pages other then the requested one, which were not filled by read response, to stay invalid. Change the vm_page_readahead_finish() interface to not take the error code, but instead to make a decision to free or to (de)activate the page only by its validity. As result, not requested invalid pages are freed even if the read RPC indicated success. Noted and reviewed by: alc MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T11:47:07.232021Z K 7 svn:log V 241 Adjust the r205536, by allowing a non-zero offset for anonymous mappings for a.out binaries. Apparently, a.out ld.so from FreeBSD 1.1.5.1 can issue such requests. Reported and tested by: Dan Plassche MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T12:09:09.835995Z K 7 svn:log V 153 Implement the old mmap syscall for compat32, when COMPAT_43 option is enabled. The syscall is used by FreeBSD 1.1.5.1 dynamic linker. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T12:09:36.855726Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T12:11:48.718281Z K 7 svn:log V 454 For old mmap syscall, when executing on amd64 or ia64, enforce the PROT_EXEC if prot is non-zero, process is 32bit and kern.elf32.i386_read_exec syscal is enabled. This workaround is needed for old i386 a.out binaries, where dynamic linker did not specified PROT_EXEC for mapping of the text. The kern.elf32.i386_read_exec MIB name looks weird for a.out binaries, but I reused the existing knob which already has the needed semantic. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T12:13:27.068283Z K 7 svn:log V 481 Real hardware, as opposed to QEMU, does not allow to have a call gate in long mode which transfers control to 32bit code segment. Unbreak the lcall $7,$0 implementation on amd64 by putting the 64bit user code segment' selector into call gate, and execute the 64bit trampoline which converts the return frame into 32bit format and switches back to 32bit mode for executing int $0x80 trampoline. Note that all jumps over the hoops are performed in the user mode. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-14T12:15:01.326483Z K 7 svn:log V 506 Add a hackish debugging facility to provide a bit of information about reason for generated trap. The dump of basic signal information and 8 bytes of the faulting instruction are printed on the controlling terminal of the process, if the machdep.uprintf_signal syscal is enabled. The print is the only practical way to debug traps from a.out processes I am aware of. Because I have to reimplement it each time I debug an issue with a.out support on amd64, commit the hack to main tree. MFC after: 1 week END K 10 svn:author V 3 kan K 8 svn:date V 27 2012-08-14T13:28:30.332820Z K 7 svn:log V 227 Pospone the DF_1_NODELETE processing until object DAG is fully loaded. Trying to up the reference from the load loop risks missing dependencies that have not been loaded yet. MFC afer: 1 week Reported by: nox Reviewd by: kib END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-14T14:07:34.049110Z K 7 svn:log V 147 Fix multichannel input signals tracing on some CODECs like ALC260. Reported and tested by: Slawa Olhovchenkov MFC after: 1 month END K 10 svn:author V 3 des K 8 svn:date V 27 2012-08-14T17:01:21.385498Z K 7 svn:log V 86 As discussed on -current, remove the hardcoded default maxswzone. MFC after: 3 weeks END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-14T17:53:52.007521Z K 7 svn:log V 136 Mark arm_pmap_devmap as weak reference, to allow it being NULL on ports which not use new machdep infrastructure. Fix one debug printf. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-08-14T19:16:30.083500Z K 7 svn:log V 169 Reserve room for the terminating NUL when setting or getting kernel environment variables. KENV_MNAMELEN and KENV_MVALLEN doesn't include space for the terminating NUL. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-14T21:47:41.752597Z K 7 svn:log V 358 Convert some fixed parameters to tunables (with reasonable default values). - cong_drop specifies what to do on congestion: nothing, backpressure, or drop. - fl_pktshift specifies the padding before Ethernet payload. - fl_pad specifies the boundary upto which to pad Ethernet payload. - spg_len controls the length of the status page. MFC after: 2 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-14T22:15:12.591561Z K 7 svn:log V 80 if_iqdrops should include frames truncated within the chip. MFC after: 2 weeks END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-08-14T22:21:46.983415Z K 7 svn:log V 436 Rename command defines to match names used in the datasheet, in order to make maintaining this driver from the documentation easier in the future. This is a mostly mechanical change. In uslcom_param(), move the zeroing of the final two fields of the flowctrl structure outside of the "if CRTSCTS" section - not only were they being zeroed in both the clauses, but these two fields have nothing to do with hardware flow control anyway. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-14T22:30:17.187997Z K 7 svn:log V 62 Add an assertion to check that the given TXQ is _not_ locked. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-14T22:32:20.656348Z K 7 svn:log V 283 Break out the TX completion code into a separate function, so it can be re-used by the upcoming EDMA TX completion code. Make ath_stoptxdma() public, again so the EDMA TX code can use it. Don't check for the TXQ bitmap in the ISR when doing EDMA work as it doesn't apply for EDMA. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-14T22:34:22.672831Z K 7 svn:log V 28 Dump out the TX FIFO depth. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-14T23:08:49.940117Z K 7 svn:log V 122 Assume INET, INET6, and TCP_OFFLOAD when the driver is built out of tree and KERNBUILDDIR is not set. MFC after: 2 weeks END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-15T00:45:15.900719Z K 7 svn:log V 28 Bring mv port back to work. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-15T01:03:13.112417Z K 7 svn:log V 343 The size of the buffers in an Ethernet freelist has to be higher than the interface's MTU. Initialize such freelists with correct values. This wasn't a problem for common MTUs (1500 and 9000) as the buffers (2048 and 9216 in size) happened to have enough spare room. I ran into it when playing around with unusual MTUs. MFC after: 2 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T02:42:09.513902Z K 7 svn:log V 33 Specify architecture explicitely END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:03:03.016678Z K 7 svn:log V 265 Merging projects/armv6, part 1 Cummulative patch of changes that are not vendor-specific: - ARMv6 and ARMv7 architecture support - ARM SMP support - VFP/Neon support - ARM Generic Interrupt Controller driver - Simplification of startup code for all platforms END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:07:41.286824Z K 7 svn:log V 66 Merging of projects/armv6, part 2 Handle TLS for ARMv6 and ARMv7 END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:08:29.514591Z K 7 svn:log V 66 Merging of projects/armv6, part 2 Handle TLS for ARMv6 and ARMv7 END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:09:00.306198Z K 7 svn:log V 66 Merging of projects/armv6, part 2 Handle TLS for ARMv6 and ARMv7 END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:21:56.991510Z K 7 svn:log V 779 Merging of projects/armv6, part 3 r238211: Support TARGET_ARCH=armv6 and TARGET_ARCH=armv6eb This adds a new TARGET_ARCH for building on ARM processors that support the ARMv6K multiprocessor extensions. In particular, these processors have better support for TLS and mutex operations. This mostly touches a lot of Makefiles to extend existing patterns for inferring CPUARCH from ARCH. It also configures: * GCC to default to arm1176jz-s * GCC to predefine __FreeBSD_ARCH_armv6__ * gas to default to ARM_ARCH_V6K * uname -p to return 'armv6' * make so that MACHINE_ARCH defaults to 'armv6' It also changes a number of headers to use the compiler __ARM_ARCH_XXX__ macros to configure processor-specific support routines. Submitted by: Tim Kientzle END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:33:57.165100Z K 7 svn:log V 60 Merging of projects/armv6, part 4 r232281: Fix byte order. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T03:49:10.959477Z K 7 svn:log V 570 Merging of projects/armv6, part 4 r233822: Remove useless and wrong piece of code in fdt_get_range() which i overwrites passed phandle_t node. Modify debug printf in fdt_reg_to_rl() to be consistent (that is, print start and end *virtual* addresses). r230560: Handle "ranges;" Make fdt_reg_to_rl() responsible for mapping the device memory, instead on just hoping that there's only one simplebus, and using fdt_immr_va as the base VA. r230315 Add a function to get the PA from range, instead of (ab)using fdt_immr_pa, and use it for the UART driver END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T04:03:55.269353Z K 7 svn:log V 174 Merging of projects/armv6, part 5 - Driver for SMSC LAN95XX and LAN8710A ethernet controllers - Driver for LAN8710A PHY Submitted by: Ben Gray, Damjan Marion, Tim Kientzle END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T04:07:18.760612Z K 7 svn:log V 128 Merging of projects/armv6, part 6 r229271: Import files needed to build ARMADA XP kernel. Submitted by: Grzegorz Bernacki END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T05:15:49.024387Z K 7 svn:log V 99 Merging of projects/armv6, part 7 Add Marvell ARMADA XP support Obtained from: Marvell, Semihalf END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T05:37:10.601804Z K 7 svn:log V 384 Merging of projects/armv6, part 8 r235162: Initial LPC32x0 support. Includes DTS file for Embedded Artists EA3250 board. Peripherals currently supported: - Serial ports - Interrupt controller - Timers - Ethernet - USB host - Framebuffer (in conjunction with SSD1289 LCD controller) - RTC - SPI - GPIO Submitted by: Jakub Wojciech Klama END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T05:55:16.422548Z K 7 svn:log V 124 Merging of projects/armv6, intermission Add configs missed in previous commits: - ARMADA XP - Embedded Artists EA3250 END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T06:06:43.536229Z K 7 svn:log V 149 Merging of projects/armv6, part 9 Very basic support for Nvidia Tegra2: timer, interrupts, UART. Submitted by: Damjan Marion END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T06:31:32.726781Z K 7 svn:log V 185 Merging of projects/armv6, part 10 - Support for Texas Instruments SoCs: - AM335x - OMAP4 - Kernel configs, DTS for Beaglebone and Pandaboard Submitted by: Ben Gray, Damjan Marion END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T06:48:34.030919Z K 7 svn:log V 172 Implement a sequential descriptor ID value and stuff it in the ath_buf. This will be used by the EDMA TX code to assign descriptor IDs in order to provide some debugging. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T07:00:34.358525Z K 7 svn:log V 35 Specify architecture for assembler END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T07:10:10.594700Z K 7 svn:log V 286 Extend the sample mask from 32 bits to 64 bits. This is required to support > MCS15 as more than 32 bit rate entries are suddenly available. This is quite messy - instead of doing typecasts at each mask operation, this should be migrated to use a macro and have that do the typecast. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T07:32:34.376361Z K 7 svn:log V 54 Add 3 stream rates to the sample rate control module. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T07:50:42.427615Z K 7 svn:log V 78 Add a missing comma. Pointy hat to: me, for not doing a 'clean' build first. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T07:52:49.642219Z K 7 svn:log V 75 Extend the duration calculations to work with three and four stream rates. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T07:56:48.947968Z K 7 svn:log V 46 Remove this comment, it's no longer relevant. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T08:06:06.966482Z K 7 svn:log V 69 Bump up the rate control table size to incorporate 3 stream entries. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T08:14:16.495031Z K 7 svn:log V 802 Extend the non-aggregate TX descriptor chain routine to be aware of: * the descriptor ID, and * the multi-buffer support that the EDMA chips support. This is required for successful MAC transmission of multi-descriptor frames. The MAC simply hangs if there are NULL buffers + 0 length pointers, but the descriptor did have TxMore set. This won't be done for the 11n aggregate path, as that will be modified to use the newer API (ie, ath_hal_filltxdesc() and then set first|middle| last_aggr), which will deprecate some of the current code. TODO: * Populate the numTxMaps field in the HAL, then make sure that's fetched by the driver. Then I can undo that hack. Tested: * AR9380, AP mode, TX'ing non-aggregate 802.11n frames; * AR9280, STA/AP mode, doing aggregate and non-aggregate traffic. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T08:34:31.668140Z K 7 svn:log V 27 Unbreak ATMEL kernel build END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-15T09:18:49.777077Z K 7 svn:log V 50 Explicitly terminate the string after strncpy(3). END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-15T10:11:29.170485Z K 7 svn:log V 55 Rework r239232 to unbreak ZFS detection on MBR slices. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-15T12:01:13.746119Z K 7 svn:log V 129 Some BIOSes return incorrect number of sectors, make checks less strictly, to do not lost some partitions. Reported by: swills@ END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-08-15T14:18:54.324377Z K 7 svn:log V 45 Don't include opt_ddb.h & twice. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-15T15:17:56.386652Z K 7 svn:log V 74 Provide 32bit compat for truncate(2) and ftruncate(2). MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-15T15:18:20.719936Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-15T15:35:20.601344Z K 7 svn:log V 68 Add new USB device quirk. Submitted by: Kra OTN MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-15T15:42:57.676220Z K 7 svn:log V 322 Revert r239178 and implement two new functions, namely "device_free_softc()" and "device_claim_softc()", to allow USB serial drivers refcounting the softc. These functions are used to grab the softc from auto-free and to free the softc back to the correct malloc type, respectivly. Discussed with: jhb MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-15T15:53:27.786481Z K 7 svn:log V 10 Fix build END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-15T15:56:21.150321Z K 7 svn:log V 219 Add a sysctl kern.pid_max, which limits the maximum pid the system is allowed to allocate, and corresponding tunable with the same name. Note that existing processes with higher pids are left intact. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-15T16:01:45.540608Z K 7 svn:log V 101 Add a short man page describing how to run a.out binaries on the current kernels. MFC after: 1 week END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-15T16:19:39.723392Z K 7 svn:log V 792 Streamline use of cdevpriv and correct some corner cases. 1) It is not useful to call "devfs_clear_cdevpriv()" from "d_close" callbacks, hence for example read, write, ioctl and so on might be sleeping at the time of "d_close" being called and then then freed private data can still be accessed. Examples: dtrace, linux_compat, ksyms (all fixed by this patch) 2) In sys/dev/drm* there are some cases in which memory will be freed twice, if open fails, first by code in the open routine, secondly by the cdevpriv destructor. Move registration of the cdevpriv to the end of the drm open routines. 3) devfs_clear_cdevpriv() is not called if the "d_open" callback registered cdevpriv data and the "d_open" callback function returned an error. Fix this. Discussed with: phk MFC after: 2 weeks END K 10 svn:author V 3 jfv K 8 svn:date V 27 2012-08-15T17:12:40.289584Z K 7 svn:log V 468 Customer report of a panic on boot due to the old "m_getjcl:invalid cluster type" that occurred some time back with the igb driver. This happens often when booting over the net. I believe the NIC hardware is left in a warm state when handed over to the driver, and a stray RX interrupt happens earlier than the code is prepared for it to happen. This change was verified to fix the problem, its kind of a bandaid... but it is similar to what was done in the igb code. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-08-15T17:29:05.013877Z K 7 svn:log V 38 Minor mdoc fixes and language tweaks. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-15T18:00:52.585154Z K 7 svn:log V 112 Small tweaks: - fix macro argument - wrap long line - be more explicit about old pid_t type. MFC after: 1 week END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-08-15T18:18:29.557863Z K 7 svn:log V 110 Switch lpc initarm() to use struct arm_boot_params and therefore fix EA3250 kernel build. Approved by: gonzo END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T18:33:58.642790Z K 7 svn:log V 45 Unbreak build for the rest of AT91 platforms END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-15T18:37:01.990005Z K 7 svn:log V 36 Fix argument type for bus_space_map END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-15T19:34:23.852118Z K 7 svn:log V 88 Vendor import of llvm trunk r161861: http://llvm.org/svn/llvm-project/llvm/trunk@161861 END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-15T19:59:13.822589Z K 7 svn:log V 24 Tag llvm trunk r161861. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-15T20:01:28.098479Z K 7 svn:log V 412 Don't call the node iteration function inside the node table / node iterate lock. This causes LORs and deadlocks as some code paths will have the com lock held when calling ieee80211_iterate_nodes(). Here, the comlock isn't held during the node table and node iteration locks; and the callback isn't called with any (extra) lock held. PR: kern/170098 Submitted by: moonlightakkiy@yahoo.ca MFC after: 4 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-15T20:02:54.019985Z K 7 svn:log V 88 Vendor import of clang trunk r161861: http://llvm.org/svn/llvm-project/cfe/trunk@161861 END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-08-15T20:03:47.359742Z K 7 svn:log V 25 Tag clang trunk r161861. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-15T22:12:01.919518Z K 7 svn:log V 46 Correct a KASSERT message. Submitted by: bde END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-15T22:25:57.822969Z K 7 svn:log V 36 Eliminate some unused declarations. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-15T22:51:01.490733Z K 7 svn:log V 230 Replace all uses of the vm page queues lock by a r/w lock that is private to this pmap. Tidy up the #include's. Remove the (now) unused #define PMAP_SHPGPERPROC. (This should have been removed in r239236.) Tested by: jchandra END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-16T00:51:50.032470Z K 7 svn:log V 306 Merge somewhat modified r230399 from projects/armv6: Add timeout to wait for network controllers to appear when netbooting. USB ethernet adapter initialization usually is delayed and they're not available immidiately after autoconfiguration. So we need to wait a bit before giving up Reviewed by: stas@ END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-08-16T00:53:23.382970Z K 7 svn:log V 47 Fix an incorrect comparison. PR: kern/170098 END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-16T02:35:44.651914Z K 7 svn:log V 118 Limit popcorn limit to something sane (either 2ns or 2 ticks if that's longer). PR: 156481 Submitted by: Ian Lepore END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-16T04:41:15.939457Z K 7 svn:log V 171 Eliminate an unused parameter from init_pte_prot(). Eliminate stray whitespace within init_pte_prot(). Eliminate a gratuitous variable initialization from pmap_enter(). END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-16T04:49:23.091925Z K 7 svn:log V 21 Remove unused hints. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-16T04:53:30.042120Z K 7 svn:log V 103 Hmmm, somehow this file was completely deleted, rather than just having the bogus lines being removed. END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-08-16T05:03:59.743120Z K 7 svn:log V 37 Preliminary Embest ATEB9200 support. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-08-16T06:45:58.576208Z K 7 svn:log V 66 Add comment why the code has been disabled. Requested by: rpaulo END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-08-16T07:43:15.652597Z K 7 svn:log V 129 Fix "speaker" volume control, broken at r230451. Reported and tested by: Slawa Olhovchenkov MFC after: 1 month END K 10 svn:author V 3 des K 8 svn:date V 27 2012-08-16T08:29:49.389018Z K 7 svn:log V 316 - When running out of swzone, instead of spewing an error message every tick until the situation is resolved (if ever), just print a single message when running out and another when space becomes available. - When adding more swap, warn if the total amount exceeds half the theoretical maximum we can handle. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-16T13:01:56.883703Z K 7 svn:log V 49 Fix grammar. Submitted by: jh MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-08-16T13:04:21.527611Z K 7 svn:log V 123 As a safety measure, disable lowering pid_max too much. Requested by: Peter Jeremy MFC after: 1 week END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2012-08-16T15:32:16.545156Z K 7 svn:log V 122 On lun disable, complete all INOTs and ATIOs with CAM_REQ_ABORTED. Reviewed by: ken (silently), chuck MFC after: 3 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-16T17:17:08.980480Z K 7 svn:log V 255 Add locking for sscdisk(4) and mark it MPSAFE. Since this driver just makes calls out to the emulator, the locking is fairly simple. A global mutex protects the list of ssc disks, and each ssc disk has a mutex to protect it's bioq. Approved by: marcel END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-08-16T17:26:22.572235Z K 7 svn:log V 24 Import ACPICA 20120816. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-08-16T17:27:11.319111Z K 7 svn:log V 21 Tag ACPICA 20120816. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2012-08-16T17:55:16.938983Z K 7 svn:log V 125 Its never a good idea to double free the same address. MFC after: 1 week (after the other commits ahead of this gets MFC'd) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-16T18:04:33.396497Z K 7 svn:log V 115 Remove D_NEEDGIANT from dead_devsw. biofinish() (and thus dead_strategy) does not need Giant. MFC after: 1 month END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-16T18:31:50.291798Z K 7 svn:log V 85 Allow for a different handler for each type of firmware message. MFC after: 2 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-08-16T19:22:34.732716Z K 7 svn:log V 58 - Typo fix - style(9) fix Spotted by: kib@, Andrey Zonov END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-16T20:15:29.100189Z K 7 svn:log V 339 Add a routine (t4_set_tcb_field) to update arbitrary parts of a hardware TCB. Filters are programmed by modifying the TCB too (via a different routine) and the reply to any TCB update is delivered via a CPL_SET_TCB_RPL. Figure out whether the reply is for a filter-write or something else and route it appropriately. MFC after: 2 weeks END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-16T20:30:14.409384Z K 7 svn:log V 142 Make room for DDP page pods in the default configuration profile. While here, bump up the L2 table's size to 4K entries. MFC after: 2 weeks END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-08-16T20:54:52.375302Z K 7 svn:log V 23 Merge ACPICA 20120816. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-16T22:33:56.089748Z K 7 svn:log V 710 Initialize various DDP parameters in the main cxgbe(4) driver: - Setup multiple DDP page sizes. When the driver attempts DDP it will try to combine physically contiguous pages into regions of these sizes. - Set the indicate size such that the payload carried in the indicate can be copied in the header mbuf (and the 16K rx buffer can be recycled). - Set DDP threshold to the max payload that the chip will coalesce and deliver to the driver (this is ~16K by default, which is also why the offload rx queue is backed by 16K buffers). If the chip is able to coalesce up to the max it's allowed to, it's a good sign that the peer is transmitting in bulk without any TCP PSH. MFC after: 2 weeks END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-08-16T23:52:08.176248Z K 7 svn:log V 288 MF9: r237134 MFC r226342, r226343, r226347, r226348, r226349, r226353, r226388 When building for amd64 or ia64, add the "kern.elf32.read_exec" sysctl to enable PROT_EXECUTE for elf32 binaries when reading is allowed. The JDK 1.4.x requires the ability to execute in the heap. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-08-16T23:59:29.626877Z K 7 svn:log V 57 Regen for correct file headers after committing r239342. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-08-17T00:49:29.713295Z K 7 svn:log V 553 Support for TCP DDP (Direct Data Placement) in the T4 TOE module. Basically, this is automatic rx zero copy when feasible. TCP payload is DMA'd directly into the userspace buffer described by the uio submitted in soreceive by an application. - Works with sockets that are being handled by the TCP offload engine of a T4 chip (you need t4_tom.ko module loaded after cxgbe, and an "ifconfig +toe" on the cxgbe interface). - Does not require any modification to the application. - Not enabled by default. Use hw.t4nex..toe.ddp="1" to enable it. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-08-17T01:05:56.074301Z K 7 svn:log V 105 Make 'junk' volatile so that compilers won't be tempted to optimize Reviewed by: ache MFC after: 3 days END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2012-08-17T01:49:51.209450Z K 7 svn:log V 899 The TCP PAWS fix for kernels with fast tick rates (r231767) changed the TCP timestamp related stack variables to reference ms directly instead of ticks. The h_ertt(4) Khelp module relies on TCP timestamp information in order to calculate its enhanced RTT estimates, but was not updated as part of r231767. Consequently, h_ertt has not been calculating correct RTT estimates since r231767 was comitted, which in turn broke all delay-based congestion control algorithms because they rely on the h_ertt RTT estimates. Fix the breakage by switching h_ertt to use tcp_ts_getticks() in place of all previous uses of the ticks variable. This ensures all timestamp related variables in h_ertt use the same units as the TCP stack and therefore results in meaningful comparisons and RTT estimate calculations. Reported & tested by: Naeem Khademi (naeemk at ifi uio no) Discussed with: bz MFC after: 3 days END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-17T02:26:31.377313Z K 7 svn:log V 211 Implement syscall clock_getcpuclockid2, so we can get a clock id for process, thread or others we want to support. Use the syscall to implement POSIX API clock_getcpuclock and pthread_getcpuclockid. PR: 168417 END K 10 svn:author V 5 mckay K 8 svn:date V 27 2012-08-17T02:27:17.796503Z K 7 svn:log V 398 Correct a regression introduced during the import of file(1) 5.11. Magic tests containing "search" or "regex" directives were incorrectly compiled by "mkmagic" and were effectively ignored. This caused troff files (for example) to be detected as simply "ASCII text" instead of as "troff or preprocessor input, ASCII text". PR: bin/170415 Approved by: consensus on developers@ MFC after: 3 days END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-08-17T02:47:16.713474Z K 7 svn:log V 7 regen. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-08-17T03:10:48.363069Z K 7 svn:log V 122 Minor cleanup: remove a couple of unused include and a comment that isn't necessary true after the changes recently made. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2012-08-17T04:44:57.871229Z K 7 svn:log V 150 The GPIO drivers were initialising their mutexes with type of MTX_NETWORK_LOCK. This is wrong since these mutexes have nothing to do with networking. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-17T05:02:29.016651Z K 7 svn:log V 853 Fix two problems with pmap_clear_modify(). First, pmap_clear_modify() is write protecting all mappings to the specified page, not just clearing the modified bit. Specifically, it sets PTE_RO on the PTE, which is wrong. Moreover, it is calling vm_page_dirty(), which is not the expected behavior for pmap_clear_modify(). Generally speaking, the machine-independent VM layer masks these mistakes. For example, setting PTE_RO will result in additional soft faults, but not a catastrophe. Second, pmap_clear_modify() may not clear the modified bits because it only iterates over the PV list when the page has the PV_TABLE_MOD flag set and elsewhere the pmap clears the PV_TABLE_MOD flag anytime a modified mapping is write protected or destroyed. However, the page may still have other mappings with the modified bit set. Eliminate a stale comment. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2012-08-17T05:51:46.290999Z K 7 svn:log V 262 Ok jhb, lets move the ifa_free() down to the bottom to assure that *all* tables and such are removed before we start to free. This won't protect the Hash in ip_input.c but in theory should protect any other uses that *do* use locks. MFC after: 1 week (or more) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-17T14:14:25.629711Z K 7 svn:log V 332 Allow static DMA allocations that allow for enough segments to do page-sized segments for the entire allocation to use kmem_alloc_attr() to allocate KVM rather than using kmem_alloc_contig(). This avoids requiring a single physically contiguous chunk in this case. Submitted by: Peter Jeremy (original version) MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-17T14:22:56.841284Z K 7 svn:log V 753 MFC 230547: Add a timeout on positive name cache entries in the NFS client. That is, we will only trust a positive name cache entry for a specified amount of time before falling back to a LOOKUP RPC, even if the ctime for the file handle matches the cached copy in the name cache entry. The timeout is configured via a global 'vfs.nfs.name_timeout' sysctl and defaults to 60 seconds. It may be set to zero to disable positive name caching entirely. Note that this can result in increased NFS traffic under certain workloads. Increasing the threshold can mitigate this somewhat. Also, to match the existing 'vfs.nfs.negative_name_timeout' sysctl in 7, this version uses a sysctl rather than a mount option as in 8.x and later. Tested by: Mark Saad END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-17T15:53:43.278928Z K 7 svn:log V 268 Fix dhclient to properly exit and teardown the configured lease when link is lost. devd will start a new dhclient instance when link is restored. PR: bin/166656 Submitted by: Peter Jeremy (mostly) Reviewed by: brooks (earlier version from Peter) MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-08-17T16:01:24.022558Z K 7 svn:log V 39 Unexpand a couple of TAILQ_FOREACH()s. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-08-17T16:27:11.983667Z K 7 svn:log V 58 Add new USB device ID. PR: usb/170688 MFC after: 1 week END K 10 svn:author V 3 mjg K 8 svn:date V 27 2012-08-17T17:45:27.468208Z K 7 svn:log V 142 Remove unused member of struct indir (in_exists) from UFS and EXT2 code. Reviewed by: mckusick Approved by: trasz (mentor) MFC after: 1 week END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-08-17T18:20:38.053917Z K 7 svn:log V 76 Catch up with the subversion conversion and apply these build-time patches. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-08-17T20:15:01.280045Z K 7 svn:log V 44 Eliminate another vestige of page coloring. END