Ħ*234000 164 398 328 169 311 352 151 165 376 99 497 256 182 149 460 292 126 135 121 132 144 152 195 164 325 246 169 330 209 174 174 149 106 369 126 405 99 280 128 354 175 374 199 199 183 193 179 326 186 404 198 733 604 229 484 224 524 1675 480 297 205 215 248 292 201 340 202 263 325 162 126 181 212 389 282 519 325 297 270 296 122 125 127 307 120 353 795 182 182 169 246 259 156 132 155 688 178 242 306 191 239 124 222 354 365 289 152 507 961 862 141 167 243 141 146 186 436 320 155 384 185 185 335 219 1740 1740 1740 1009 1009 1009 176 342 336 248 406 327 208 99 871 369 167 1016 441 441 99 697 292 292 494 176 289 386 488 519 115 678 482 199 117 427 228 288 186 320 402 K 10 svn:author V 4 gleb K 8 svn:date V 27 2012-04-07T15:30:46.532582Z K 7 svn:log V 304 tmpfs supports only INT_MAX nodes due to limitations of unit number allocator. Replace UINT32_MAX checks with INT_MAX. Keeping more than 2^31 nodes in memory is not likely to become possible in foreseeable feature and would require new unit number allocator. Discussed with: delphij MFC after: 2 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-04-07T20:52:21.597436Z K 7 svn:log V 232 sh: Allow variables starting with underscores in arithmetic. This is a direct commit because I do not want to merge the totally rewritten arithmetic expression code from 9.x where this already works. Example: _x=1; _x=$((_x+1)) END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-04-07T20:56:29.115667Z K 7 svn:log V 74 MFC r232839: sh: Add a test for variables with underscores in arithmetic. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-07T22:28:50.070440Z K 7 svn:log V 210 Properly resolve the _ctx_start function descriptor (the symbol _ctx_start is a descriptor, not a code address), which prevents crashes when starting a context. This fixes QEMU on powerpc64. MFC after: 3 days END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-07T23:47:08.309224Z K 7 svn:log V 258 - Add new ARM kernel option QEMU_WORKAROUNDS which can be used in the code which needs to implement some specific behaviour when being run under QEMU. - Make PXA UART probe code to work under QEMU gumstix, which doesn't emulate all the ports properly. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-07T23:48:51.112033Z K 7 svn:log V 58 - Add kernel config file for QEMU-emulated gumstix board. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-07T23:51:16.376462Z K 7 svn:log V 72 - Revert part of r234005, which I did not intend to commit. Sorry! :( END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-07T23:58:49.152324Z K 7 svn:log V 279 If we already had a page with pindex == 0 in the device pager object (if not already fictious) the code can panic when trying to first insert a fictious page because of the overridden pindex. Fix this by applying the same spinning pattern of vm_page_rename(). Reported by: pho END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-08T00:14:15.240569Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-08T00:40:16.390322Z K 7 svn:log V 401 After reviewing the mcast/sleep station code a little, undo some brain damage which I committed when I had less clue about such things. Don't ever put normal data frames on the mcast software queue. Just put mcast frames there if needed. Pass the txq decision into ath_tx_normal_setup(), as we've already made the decision. Don't re-do it. Whilst i'm here, add another random debugging statement. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-04-08T01:43:41.199633Z K 7 svn:log V 161 MFC r233909: Add Bv9ARM.pdf to the list of docs to install. MFV/MFC r233914: Update to version 9.8.2, the latest from ISC, which contains numerous bug fixes. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-08T03:55:25.395300Z K 7 svn:log V 89 - Use __NO_TLS preprocessor value to make assumptions about TLS support on a platform. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-08T04:09:55.008933Z K 7 svn:log V 57 MFC r233927: Properly handle absent AT_CANARY aux entry. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-08T04:22:09.507962Z K 7 svn:log V 366 - Add a "real" symbol version map to libasn1. The upstream version of the version map just exported all the symbols, which caused a binutils bug being triggered when ld fails to link two objects, one of which exports a versioned version of the symbol, and another -- unversioned. [1] - Also add version map for libkafs5. Submitted by: jchandra@ (based on) END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-04-08T04:36:27.295852Z K 7 svn:log V 196 Unlike other functions __aeabi_read_tp function must preserve r1-r3. The currently generated code clobbers r3. Fix this by loading ARM_TP_ADDRESS using inline assembly. Approved by: imp (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-08T04:42:53.771649Z K 7 svn:log V 31 Add AR_ISR_S5 and AR_ISR_S5_S. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-08T04:47:53.603766Z K 7 svn:log V 42 - Update vendor tree of heimdal to 1.5.2. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-08T04:48:59.268777Z K 7 svn:log V 28 - Tag heimdal 1.5.2 import. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-08T04:51:25.370310Z K 7 svn:log V 37 Add some statistics to track BAR TX. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-08T04:51:43.936612Z K 7 svn:log V 49 Teach wlanstats about the new BAR TX statistics. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-04-08T05:03:46.567252Z K 7 svn:log V 55 Guess at when we will be able to announce 8.3-RELEASE. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-04-08T05:07:40.128513Z K 7 svn:log V 98 MFS r234020: > Guess at when we will be able to announce 8.3-RELEASE. Approved by: re (implicit) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-04-08T05:09:40.476110Z K 7 svn:log V 67 Ready for 8.3-RELEASE builds to start. Approved by: re (implicit) END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-04-08T05:36:40.476203Z K 7 svn:log V 232 MFC: r233923 Fix a typo in GCC affecting calculations with -ffast-math. The fix is similar to the one applied in GCC-4.3 in GCCSVN-r117929 under the GPLv2. Submitted by: Andrey Simonenko Reviewed by: mm Approved by: jhb (mentor) END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-04-08T06:14:49.978494Z K 7 svn:log V 148 Drop an unnecessary setting of si_mountpt when updating a UFS mount point. Clearly it must have been set when the mount was done. Reviewed by: kib END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-04-08T06:18:18.622552Z K 7 svn:log V 72 Add I/O accounting to msdos filesystem. Suggested and reviewed by: kib END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-04-08T06:20:21.456594Z K 7 svn:log V 232 Expand locking around identification of filesystem mount point when accounting for I/O counts at completion of I/O operation. Also switch from using global devmtx to vnode mutex to reduce contention. Suggested and reviewed by: kib END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-08T08:19:17.395027Z K 7 svn:log V 115 - Update FreeBSD's Heimdal distribution to 1.5.2. This is a bugfix release, which fixes a DoS issue in libkrb5. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-04-08T09:33:22.730169Z K 7 svn:log V 77 MFC r233284: Update the firmware to version 0.236 Submitted by: PseudoCylon END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-04-08T09:33:50.711435Z K 7 svn:log V 77 MFC r233284: Update the firmware to version 0.236 Submitted by: PseudoCylon END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-04-08T09:38:20.217186Z K 7 svn:log V 54 Update the __aeabi_* floating point functions to work END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-04-08T10:15:56.441482Z K 7 svn:log V 11 IFC 234027 END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2012-04-08T11:01:49.086362Z K 7 svn:log V 272 When allocation of labels on files is implicitly disabled due to MAC policy configuration, avoid leaking resources following failed calls to get and set MAC labels by file descriptor. Reported by: Mateusz Guzik + clang scan-build MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-08T11:04:08.422872Z K 7 svn:log V 30 Fix a typo. Reported by: pho END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2012-04-08T11:05:22.357097Z K 7 svn:log V 308 Merge a local fix to OpenBSM's libauditd to avoid a directory descriptor leak when iterating over possible audit trail directories. This fix will be merged upstream in an identical form, but hasn't yet appeared in an OpenBSM release. Submitted by: guido Obtained from: TrustedBSD Project MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-08T11:09:08.791107Z K 7 svn:log V 4 MFC END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-04-08T13:44:55.930030Z K 7 svn:log V 185 Fix panic in ffs_reload(), which may happen when read-only filesystem gets resized and then reloaded. Reviewed by: kib, mckusick (earlier version) Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-04-08T16:26:26.758498Z K 7 svn:log V 36 MFC: r232860 Allways call fdrop(). END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-04-08T17:00:46.165491Z K 7 svn:log V 261 If a page belonging a reservation is cached, then mark the reservation so that it will be freed to the cache pool rather than the default pool. Otherwise, the cached pages within the reservation may be recycled sooner than necessary. Reported by: Andrey Zonov END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-04-08T18:25:12.955215Z K 7 svn:log V 83 Fix mincore(2) so that it reports PG_CACHED pages as resident. MFC after: 2 weeks END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-04-08T19:58:38.651606Z K 7 svn:log V 281 intpm: reflect the fact that SB800 and later AMD chipsets are not supported They do not have compatible configuration registers in PCI configuration space. Instead their configuration resides in AMD "PM I/O" space (accessed via a pair of I/O space registers). MFC after: 5 days END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-08T20:40:26.150172Z K 7 svn:log V 103 MFC: r229469 Add missing MSR programming for some events. Submitted by: me Approved by: gnn (mentor) END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-08T20:44:57.556084Z K 7 svn:log V 103 MFC: r229469 Add missing MSR programming for some events. Submitted by: me Approved by: gnn (mentor) END K 10 svn:author V 3 avg K 8 svn:date V 27 2012-04-08T20:48:39.126947Z K 7 svn:log V 91 intpm: return only SMB bus error codes from SMB methods PR: kern/25733 MFC after: 5 days END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-08T20:51:37.329547Z K 7 svn:log V 98 MFC: r229470 Update PMC events from October 2011 Intel documentation. Approved by: gnn (mentor) END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-08T20:56:47.433360Z K 7 svn:log V 84 Update PMC events from October 2011 Intel documentation. Approved by: gnn (mentor) END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-04-08T21:29:48.529673Z K 7 svn:log V 230 MFC: r232366 - Add support for the Intel Sandy Bridge microarchitecture (both core and uncore counting events) - New manpages with event lists. - Add MSRs for the Intel Sandy Bridge microarchitecture Approved by: gnn (mentor) END K 10 svn:author V 3 bjk K 8 svn:date V 27 2012-04-09T01:20:50.959070Z K 7 svn:log V 94 Fix a couple of style issues. Tweak grammar and markup while here. Approved by: hrs (mentor) END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-04-09T01:37:57.594260Z K 7 svn:log V 308 We only need a subset of the header files from sys. We can link to the three header files we need rather than everything under sys. This fixes an issue where, while bootstrapping, a header file in sys/ includes a machine dependent header that has changed from the FreeBSD version we are bootstrapping from. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-09T03:08:22.841459Z K 7 svn:log V 100 MFC: r231805 Delete a couple of out of date comments that are no longer true in the new NFS client. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-09T03:39:50.710903Z K 7 svn:log V 635 MFC: r232050 hrs@ reported a panic to freebsd-stable@ under the subject line "panic in 8.3-PRERELEASE" on Feb. 22, 2012. This panic was caused by use of a mix of tsleep() and msleep() calls on the same event in the new NFS server DRC code. It did "mtx_unlock(); tsleep();" in two places, which kib@ noted introduced a slight risk that the wakeup() would occur before the tsleep(), resulting in a 10sec delay before waking up. This patch fixes the problem by replacing "mtx_unlock(); tsleep();" with mtx_sleep(..PDROP..). It also changes a nfsmsleep() call to mtx_sleep() so that the code uses mtx_sleep() consistently within the file. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-09T04:05:22.296190Z K 7 svn:log V 506 MFC: r2323467 The name caching changes of r230394 exposed an intermittent bug in the new NFS server for NFSv4, where it would report ENOENT when the file actually existed on the server. This turned out to be caused by not initializing ni_topdir before calling lookup() and there was a rare case where the value on the stack location assigned to ni_topdir happened to be a pointer to a ".." entry, such that "dp == ndp->ni_topdir" succeeded in lookup(). This patch initializes ni_topdir to fix the problem. END K 10 svn:author V 3 hrs K 8 svn:date V 27 2012-04-09T04:44:39.171063Z K 7 svn:log V 136 - Fix revision numbers to ones in RELENG_8*. - Document posix_fadvise(2)[*] - xz 5.0.1. Spotted by: jhb [*] Approved by: re (implicit) END K 10 svn:author V 6 andrew K 8 svn:date V 27 2012-04-09T08:01:17.528612Z K 7 svn:log V 388 Switch the syscall interface on EABI. The syscall we are after is now passed in r7. The value, while still placed in the instruction, is unused. r7 was chosen as it is what Linux uses and there is no point being different. This should help someone add Thumb support as we can now express all possible syscall values. The Thumb swi instruction only has 8 bits for the the syscall value. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-04-09T13:29:24.051401Z K 7 svn:log V 128 MFC r219418: Remove stray semicolon. This fix appears in later upstream gdb versions. PR: gnu/136705 Submitted by: eadler END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-04-09T14:05:01.504691Z K 7 svn:log V 426 MFC r233783: - Write the ISO9660 descriptor after the apm partition entries. - Fill the needed pmPartStatus flags. At least the OpenBIOS implementation relies on these flags. This commit fixes the panic seen on OS-X when inserting a FreeBSD/ppc disc. Additionally OpenBIOS recognizes the partition where the boot code is located. This lets us load a FreeBSD/ppc PowerMac kernel inside qemu. PR: powerpc/16209 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-09T14:16:24.012688Z K 7 svn:log V 1577 Locking pfsync(4): - We have a couple of mutexes for pfsync, main softc mutex that locks all softc queues and configuration. It can be obtained when holding lock on a state ID hash row in pf(4). And a separate mutex for bulk updates configuration in softc. The bulk update code needs to lock its mutex prior to PF_STATE_LOCK(st), thus I used a separate one. - The deferral code was a tricky one, and its locking still has problems: pfsync_defer_tmo() modifies state flags w/o obtaining PF_STATE_LOCK, since that would be lock order violation. - Deferred packets, when sent, are queued and sent in pfsyncintr(), since sending them directly from pf(4) processing path or from callout leads to LORs and recursions. Dropping PF_LOCK() as old code did, isn't safe either. - Deferring timeouts are drained in pfsync_clone_destroy(). - pfsync_ioctl() and its descendants rewritten, so that we don't need unsafe temporary lock drop. Cleaning pfsync(4): - Removed UMA zone. It was used to allocate 32 byte update requests, and 104 byte deferrals. Since deferrals are off by default, using a > 100 byte zone for 32 byte items is a memory waste. And since malloc(9) for small chunks is backed by UMA, and our update requests aren't any special, it is more efficient to use malloc for them. - Sorted softc fields by their meaning, easier to read by newcomer now. - Removed pfsync_up(), pfsync_timeout(), pfsync_sysctl(). - Removed some write only variables. - Removed pfsyncstart(), pfsync_if_dequeue(). Shouldn't pfsync_output() be removed, too? END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-04-09T14:17:22.415739Z K 7 svn:log V 384 sem_open: Make sure to fail an O_CREAT|O_EXCL open, even if that semaphore is already open in this process. If the named semaphore is already open, sem_open() only increments a reference count and did not take the flags into account (which otherwise happens by passing them to open()). Add an extra check for O_CREAT|O_EXCL. PR: kern/166706 Reviewed by: davidxu MFC after: 10 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-09T14:47:18.228318Z K 7 svn:log V 204 In kdump's mkioctls script, use '${CPP}' instead of hardcodedly using 'gcc -E'. This fixes building when WITH_CLANG_IS_CC is in effect. Report by: Niclas Zeising MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-09T15:20:16.775857Z K 7 svn:log V 112 Recognize the RDRAND instruction feature. Submitted by: Michael Fuckner michael fuckner net MFC after: 3 days END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-04-09T15:34:22.182680Z K 7 svn:log V 122 Since truss also uses kdump's mkioctls script, pass the value of ${CPP} there too, similar to r234058. MFC after: 1 week END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-09T15:34:23.554621Z K 7 svn:log V 150 MFC: r232327 Fix the NFS clients so that they use copyin() instead of bcopy(), when doing direct I/O. This direct I/O code is not enabled by default. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-04-09T16:14:58.573999Z K 7 svn:log V 199 MFC: 232612 Properly mask off bits that are not supported in the IAP counters. This fixes a bug where users would see massively large counts, near to 2**64 -1, due to the bits not being cleared. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2012-04-09T16:18:55.515619Z K 7 svn:log V 103 Copy releng/8.3 to release/8.3.0 as part of the 8.3-RELEASE build process. Approved by: re (implicit) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-09T17:05:18.656735Z K 7 svn:log V 243 - Introduce a cache-miss optimization for consistency with other accesses of the cache member of vm_object objects. - Use novel vm_page_is_cached() for checks outside of the vm subsystem. Reviewed by: alc MFC after: 2 weeks X-MFC: r234039 END K 10 svn:author V 5 bgray K 8 svn:date V 27 2012-04-09T17:33:35.110013Z K 7 svn:log V 107 Merged in SMSC driver changes, includes support for H/W checksuming and multiple frames in the RX/TX urbs. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-04-09T18:24:58.458418Z K 7 svn:log V 170 Microoptimize cpu_search(). According to profiling, it makes one take 6% of CPU time on hackbench with its million of context switches per second, instead of 8% before. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-04-09T18:33:59.102556Z K 7 svn:log V 232 MFC: r233923 Fix a typo in GCC affecting calculations with -ffast-math. The fix is similar to the one applied in GCC-4.3 in GCCSVN-r117929 under the GPLv2. Submitted by: Andrey Simonenko Reviewed by: mm Approved by: jhb (mentor) END K 10 svn:author V 5 bgray K 8 svn:date V 27 2012-04-09T19:40:52.603411Z K 7 svn:log V 68 Added the missing smsc module makefile for the USB ethernet device. END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-04-09T20:55:23.605083Z K 7 svn:log V 34 Include (for SIGINFO). END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-04-09T20:59:14.051142Z K 7 svn:log V 89 Improve error reporting when no cpufreq(4) support is available. Reviewed by: njl, acpi END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-04-09T21:29:58.180539Z K 7 svn:log V 116 I forgot this file when committing the new TLS bits for arm, so implement both the old and the new method here too. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-04-09T21:58:58.234928Z K 7 svn:log V 293 Remove unused and wrong SA_PROC internal signal property. The SA_PROC signal property indicated whether each signal number is directed at a specific thread or at the process in general. However, that depends on how the signal was generated and not on the signal number. SA_PROC was not used. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-04-09T22:01:43.669322Z K 7 svn:log V 186 MFC r233516: libthr: In the atfork handlers for signals, do not skip the last signal. _SIG_MAXSIG works a bit unexpectedly: signals 1 till _SIG_MAXSIG are valid, both bounds inclusive. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-09T22:41:19.556647Z K 7 svn:log V 422 BSP is not added to the mask of valid target CPUs for interrupts in set_apic_interrupt_ids(). Besides, set_apic_interrupts_ids() is not called in the !SMP case too. Fix this by: - Adding the BSP as an interrupt target directly in cpu_startup(). - Remove an obsolete optimization where the BSP are skipped in set_apic_interrupt_ids(). Reported by: jh Reviewed by: jhb MFC after: 3 days X-MFC: r233961 Pointy hat to: me END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-10T01:20:32.636207Z K 7 svn:log V 229 MFC 231814 233135: Add a timestamp to the msgbuf output in order to determine when when messages were printed. This can be enabled with the kern.msgbuf_show_timestamp sysctl PR: kern/161553 Approved by: cperciva (implicit) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-04-10T01:26:58.320516Z K 7 svn:log V 199 Add a "pnfs" mount option, so that pnfs support won't be enabled by default. This is needed because pnfs support will be experimental for quite a while. Or, it may crash when enabled, if you prefer. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-10T01:49:31.251835Z K 7 svn:log V 174 Update examples with corrections from the author PR: ports/160689 Submitted by: mickael.maillot@gmail.com Approved by: cperciva (implicit) MFC after: 1 days (with r233429) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-04-10T01:53:06.220759Z K 7 svn:log V 200 Please welcome Devin Teske (dteske) as a new src committer. Devin will be working on and maintaining user experience improvements such as the boot menu, tzsetup, and instal tools. Approved by: core END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-10T02:00:36.817917Z K 7 svn:log V 27 Add user/marcel directory. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-10T02:05:10.762499Z K 7 svn:log V 30 Bootstrap the vtc.sys branch. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-10T02:11:09.408325Z K 7 svn:log V 32 Add header for VGA definitions. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-10T02:17:58.133322Z K 7 svn:log V 211 Add the vtc(4) driver. A driver for standard VGA is provided for the low-level console. A logo of beastie (4.4BSD daemon without the Sun) is displayed when vtc(4) is not the console and the vga driver attaches. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-10T02:29:11.280497Z K 7 svn:log V 25 Add vtc(4) to the build. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T05:42:48.868521Z K 7 svn:log V 256 CARP should be capable to run on if_bridge(4). Unfortunately, this commit is not enough to enable CARP operation on if_bridge(4), because the latter doesn't handle or even initialize its ifp->if_link_state. Reported by: Alexander Lunev END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T06:25:11.726143Z K 7 svn:log V 699 * Since the API changed along the -CURRENT path (december 2011), add a FreeBSD_version check. It should work fine for compiling on -HEAD, 9.x and 8.x. * Conditionally compile the 11n options only when 11n is enabled. The above changes allow the ath(4) driver to compile and run on 8.1-RELEASE (Hi old PC-BSD!) but with the 11n stuff disabled. I've done a test against the net80211 and tools in 8.1-RELEASE. The NIC used in testing is the AR2427 in an EEEPC. Just to be clear - this change is to allow the -HEAD ath/hal/rate code to run on 9.x _and_ 8.x with no source changes. However, when running on earlier kernels, it should only be used for legacy mode. (Don't define ATH_ENABLE_11N.) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T06:52:21.063769Z K 7 svn:log V 86 M_DONTWAIT is a flag from historical mbuf(9) allocator, not malloc(9) or uma(9) flag. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T06:52:39.703497Z K 7 svn:log V 86 M_DONTWAIT is a flag from historical mbuf(9) allocator, not malloc(9) or uma(9) flag. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T07:11:33.428423Z K 7 svn:log V 74 Squirrel away the SYNC interrupt in case we're doing interrupt debugging. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T07:16:28.922052Z K 7 svn:log V 150 Revert this for now - it may work for -8 and -9 and -HEAD, but not "-HEAD driver + net80211 on -9 kernel." I'll figure this out at some later stage. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T07:23:37.341592Z K 7 svn:log V 163 Squirrel away SYNC interrupt debugging if it's enabled in the HAL. Bus errors will show up as various SYNC interrupts which will be passed back up to ath_intr(). END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T07:27:42.876046Z K 7 svn:log V 61 Blank the aggregate stats whenever the zero ioctl is called. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T07:38:58.639436Z K 7 svn:log V 36 Merge head r233826 through r234091. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-04-10T09:27:41.380164Z K 7 svn:log V 62 - Add rc.d script for kfd, kerberos forwarded tickets daemon. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-10T10:44:41.947673Z K 7 svn:log V 595 MFC r233100: In vm_object_page_clean(), do not clean OBJ_MIGHTBEDIRTY object flag if the filesystem performed short write and we are skipping the page due to this. Propogate write error from the pager back to the callers of vm_pageout_flush(). Report the failure to write a page from the requested range as the FALSE return value from vm_object_page_clean(), and propagate it back to msync(2) to return EIO to usermode. While there, convert the clearobjflags variable in the vm_object_page_clean() and arguments of the helper functions to boolean. PR: kern/165927 Tested by: David Wolfskill END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-10T10:50:55.202672Z K 7 svn:log V 86 MFC r233102: Do not claim that msync(2) is obsoleted [1]. Document EIO from msync(2). END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T13:31:38.359629Z K 7 svn:log V 145 Get rid of unsafe PF_COPYIN() and PF_COPYOUT, that drop locks. Achieve this mostly by allocating enough temporary memory before obtaining locks. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-10T13:37:43.072940Z K 7 svn:log V 205 MFC r234003: Properly resolve the _ctx_start function descriptor (the symbol _ctx_start is a descriptor, not a code address), which prevents crashes when starting a context. This fixes QEMU on powerpc64. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-10T13:59:35.149733Z K 7 svn:log V 99 Add media types for 40G media that might be used with FreeBSD. Reviewed by: bz MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-10T14:01:09.009883Z K 7 svn:log V 146 Properly parse 40G media types from newer Mellanox adapters that are 40G capable. For now, map all 40G links to 40GBase-CR4. MFC after: 2 weeks END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T14:29:56.723299Z K 7 svn:log V 28 Simplify code from r234096. END K 10 svn:author V 8 schweikh K 8 svn:date V 27 2012-04-10T15:29:28.777569Z K 7 svn:log V 124 Parenthesize args in yyless() and unput() replacement text so they are safer when used with expressions. MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-10T15:58:22.922911Z K 7 svn:log V 258 In vtc_tty_outwakeup: get 80 characters at a time and loop until we drained the outq. In vtc_tty_ioctl: return ENOIOCTL by default to have the generic TTY code handle the request. In vtc_tty_param: set CLOCAL so that the TTY isn't trying to wait for DCD. END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-04-10T15:59:37.497575Z K 7 svn:log V 273 - Return EPERM from ufs_setattr() when an user without PRIV_VFS_SYSFLAGS privilege attempts to toggle SF_SETTABLE flags. - Use the '^' operator in the SF_SNAPSHOT anti-toggling check. Flags are now stored to ip->i_flags in one place after all checks. Submitted by: bde END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-04-10T16:05:52.335651Z K 7 svn:log V 197 Apply changes from r233787 to ext2fs: - Use more natural ip->i_flags instead of vap->va_flags in the final flags check. - Style improvements. No functional change intended. MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-04-10T16:08:46.656587Z K 7 svn:log V 57 Fix !SMP build after r234074. Reviewed by: attilio, jhb END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-04-10T16:33:19.192419Z K 7 svn:log V 408 Queue CCBs internally instead of using CAM_REQUEUE_REQ status. This fixes problem where userspace apps such as smartctl fail due to CAM_REQUEUE_REQ status getting returned when tagged commands are outstanding when smartctl sends its I/O using the pass(4) interface. Sponsored by: Intel Found and tested by: Ravi Pokala Reviewed by: scottl Approved by: scottl MFC after: 1 week END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2012-04-10T17:37:24.312036Z K 7 svn:log V 863 Back out r233646. Although it fixed most libgeom consumers under 32-bit compatibility, it broke programs using devstat, under 32-bit compatibility and not. It's very difficult to fix the identifiers used by devstat, so this change is simply being backed out. Since changes to 3rd-party code seem likely, and may be necessary to properly fix 32-bit binaries on 64-bit kernel, it would seem better to make more invasive changes to fix GEOM's problems with 32-bit compatibility in general. The right thing to do is to replace all of the use of pointers as opaque identifiers with a fixed-size (64-bit or even 32-bit should be enough for tracking unique GEOM elments) field. That probably maintains source compatibility with most GEOM consumers, and allows xml2tree to make better assumptions about how to decode the identifiers. Submitted by: Anton Yuzhaninov END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-10T19:11:09.777309Z K 7 svn:log V 765 Get rid of copyin/copyout under locks in the pf table ioctls. This is done by allocation enough memory before entering the locked code. Ioctls fixed: DIOCRADDTABLES + DIOCRDELTABLES + DIOCRGETTABLES + DIOCRGETTSTATS + DIOCRCLRTSTATS + DIOCRSETTFLAGS DIOCRADDADDRS + DIOCRDELADDRS + DIOCRSETADDRS + DIOCRGETADDRS + DIOCRCLRASTATS DIOCRTSTADDRS + DIOCRINADEFINE + Lack of + means that the ioctl wasn't tested, due to absence of it in the pfctl. However, code is quite similar, so I think these couple is also okay. While here, clean up some more code: - Don't pretend that we can use M_WAITOK in ioctl path. We can't. We need to acquire lock quite prior to allocating memory, and to fix that quite a lot needs to be redesigned. - Remove spl(9) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T19:25:43.343211Z K 7 svn:log V 46 Convert the flags over to a set of bit flags. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T19:47:44.805843Z K 7 svn:log V 72 Fix compilation with IEEE80211_ENABLE_SUPERG defined. PR: kern/164951 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-10T21:23:28.032772Z K 7 svn:log V 147 MFC r226294 / r226793 from HEAD - Only call fixup_filename() when printing. This reduces CPU overhead on lock-happy workloads when using WITNESS. END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-04-10T22:12:04.177397Z K 7 svn:log V 45 I missed this during ti_mmchs driver rename. END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-04-10T22:14:49.630386Z K 7 svn:log V 51 Set descriptor limit from limit variable, not base END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-04-10T22:46:40.223357Z K 7 svn:log V 91 Reload the tls registers after the new GDT has been loaded. Approved by: gibbs (implicit) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-11T00:00:40.737004Z K 7 svn:log V 335 Do not restore the register holding the TLS pointer when doing various usermode context switches (long jumps and ucontext operations). If these are used across threads, multiple threads can end up with the same TLS base. Madness will then result. This makes behavior on PPC match that on x86 systems and on Linux. MFC after: 10 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-11T00:28:44.832661Z K 7 svn:log V 219 MFC r233948: Give the kernel pmap lock a different name than user pmap locks. It has (slightly) different semantics and renaming it prevents a (harmless) WITNESS warning during bootup for 32-bit kernels on 64-bit CPUs. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-04-11T02:34:32.477621Z K 7 svn:log V 60 Fix the default, non-superg compile. Pointy-hat-to: adrian END K 10 svn:author V 6 marcel K 8 svn:date V 27 2012-04-11T02:42:01.311253Z K 7 svn:log V 288 uart_cpu_amd64.c and uart_cpu_i386.c (under sys/dev/uart) are identical now that the bus spaces are unified under sys/x86. Replace them with a single uart_cpu_x86.c. o delete uart_cpu_i386.c o move uart_cpu_amd64.c to uart_cpu_x86.c o update files.amd64 and files.i386 accordingly. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-11T04:57:11.462552Z K 7 svn:log V 93 MFC r233609, r233610: Restore the writes of atimes, quotas and superblock from syncer vnode. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-04-11T05:11:33.380091Z K 7 svn:log V 93 MFC r233609, r233610: Restore the writes of atimes, quotas and superblock from syncer vnode. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T06:34:25.704055Z K 7 svn:log V 238 Back out r228476. r228476 fixed superfluous link UP/DOWN messages but broke IPMI access during boot. It's not clear why r228476 breaks IPMI and should be revisited. Reported by: Paul Guyot ieee dot org > MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-04-11T06:35:13.518487Z K 7 svn:log V 127 It seems that libdisk(3) incorrectly sets d_secperunit value. Automatically fix it like GEOM_PART_BSD does. MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T07:08:41.793937Z K 7 svn:log V 1642 MFC r233585-233587: r233585: Partially revert r223608 and selectively allow microcode loading for 82550C. For 82550 controllers this change restores CPUSaver microcode loading. Due to silicon bug on 82550 and 82550C with server extension, these controllers seem to require CPUSaver microcode to receive fragmented UDP datagrams. However the microcode shouldn't be used on client featured 82550C as it locks up the controller. In addition, client featured 82550C does not have the silicon bug. Also clear temporary memory used for microcode loading since the same memory area is used for other commands. While I'm here use 82550C in probe message instead of generic 82550. Reported by: Andreas Longwitz incore de> Tested by: Andreas Longwitz incore de> r233586: Load entire EEPROM contents in device attach time and verify whether the checksum of EEPROM is valid or not. Because driver heavily relies on EEPROM information when it selectively enables features/workarounds, it would be helpful to know whether driver sees valid EEPROM. While I'm here remove all other EEPROM accesses since the entire EEPROM is loaded at device attach time. r233587: Remove unnecessary #if as the software workaround for PCI protocol violation should be activated unless the system is cold-booted after updating EEPROM. The PCI protocol violation happens only when established link is 10Mbps so the workaround should be updated whenever link state change is detected. Previously the workaround was activated only when user checks current media status with ifconfig(8). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T07:10:58.201152Z K 7 svn:log V 1642 MFC r233585-233587: r233585: Partially revert r223608 and selectively allow microcode loading for 82550C. For 82550 controllers this change restores CPUSaver microcode loading. Due to silicon bug on 82550 and 82550C with server extension, these controllers seem to require CPUSaver microcode to receive fragmented UDP datagrams. However the microcode shouldn't be used on client featured 82550C as it locks up the controller. In addition, client featured 82550C does not have the silicon bug. Also clear temporary memory used for microcode loading since the same memory area is used for other commands. While I'm here use 82550C in probe message instead of generic 82550. Reported by: Andreas Longwitz incore de> Tested by: Andreas Longwitz incore de> r233586: Load entire EEPROM contents in device attach time and verify whether the checksum of EEPROM is valid or not. Because driver heavily relies on EEPROM information when it selectively enables features/workarounds, it would be helpful to know whether driver sees valid EEPROM. While I'm here remove all other EEPROM accesses since the entire EEPROM is loaded at device attach time. r233587: Remove unnecessary #if as the software workaround for PCI protocol violation should be activated unless the system is cold-booted after updating EEPROM. The PCI protocol violation happens only when established link is 10Mbps so the workaround should be updated whenever link state change is detected. Previously the workaround was activated only when user checks current media status with ifconfig(8). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T07:12:20.093798Z K 7 svn:log V 1642 MFC r233585-233587: r233585: Partially revert r223608 and selectively allow microcode loading for 82550C. For 82550 controllers this change restores CPUSaver microcode loading. Due to silicon bug on 82550 and 82550C with server extension, these controllers seem to require CPUSaver microcode to receive fragmented UDP datagrams. However the microcode shouldn't be used on client featured 82550C as it locks up the controller. In addition, client featured 82550C does not have the silicon bug. Also clear temporary memory used for microcode loading since the same memory area is used for other commands. While I'm here use 82550C in probe message instead of generic 82550. Reported by: Andreas Longwitz incore de> Tested by: Andreas Longwitz incore de> r233586: Load entire EEPROM contents in device attach time and verify whether the checksum of EEPROM is valid or not. Because driver heavily relies on EEPROM information when it selectively enables features/workarounds, it would be helpful to know whether driver sees valid EEPROM. While I'm here remove all other EEPROM accesses since the entire EEPROM is loaded at device attach time. r233587: Remove unnecessary #if as the software workaround for PCI protocol violation should be activated unless the system is cold-booted after updating EEPROM. The PCI protocol violation happens only when established link is 10Mbps so the workaround should be updated whenever link state change is detected. Previously the workaround was activated only when user checks current media status with ifconfig(8). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T07:18:41.275215Z K 7 svn:log V 912 MFC r233688-233689: r233688: Remove task queue based link state change handler. Driver no longer needs to defer link state handling. While I'm here, mark IFF_DRV_RUNNING before changing media. If link is established without any delay, that link state change handling could be lost. r233689: Do not report current link status if driver is not running. This change also workarounds dhclient's link state handling bug by not giving current link status. Unlike other controllers, ale(4)'s PHY hibernation perfectly works such that driver does not see a valid link if the controller is not brought up. If dhclient(8) runs on ale(4) it will blindly waits until link UP and then gives up after 10 seconds. Because dhclient(8) still thinks interface got a valid link when IFM_AVALID is not set for selected media, this change makes dhclient initiate DHCP without waiting for link UP. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T07:19:46.909098Z K 7 svn:log V 912 MFC r233688-233689: r233688: Remove task queue based link state change handler. Driver no longer needs to defer link state handling. While I'm here, mark IFF_DRV_RUNNING before changing media. If link is established without any delay, that link state change handling could be lost. r233689: Do not report current link status if driver is not running. This change also workarounds dhclient's link state handling bug by not giving current link status. Unlike other controllers, ale(4)'s PHY hibernation perfectly works such that driver does not see a valid link if the controller is not brought up. If dhclient(8) runs on ale(4) it will blindly waits until link UP and then gives up after 10 seconds. Because dhclient(8) still thinks interface got a valid link when IFM_AVALID is not set for selected media, this change makes dhclient initiate DHCP without waiting for link UP. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-04-11T07:21:51.795499Z K 7 svn:log V 912 MFC r233688-233689: r233688: Remove task queue based link state change handler. Driver no longer needs to defer link state handling. While I'm here, mark IFF_DRV_RUNNING before changing media. If link is established without any delay, that link state change handling could be lost. r233689: Do not report current link status if driver is not running. This change also workarounds dhclient's link state handling bug by not giving current link status. Unlike other controllers, ale(4)'s PHY hibernation perfectly works such that driver does not see a valid link if the controller is not brought up. If dhclient(8) runs on ale(4) it will blindly waits until link UP and then gives up after 10 seconds. Because dhclient(8) still thinks interface got a valid link when IFM_AVALID is not set for selected media, this change makes dhclient initiate DHCP without waiting for link UP. END K 10 svn:author V 5 jceel K 8 svn:date V 27 2012-04-11T09:25:20.612084Z K 7 svn:log V 82 Fix #ifdef ARM_TP_ADDRESS at PULLFRAMEFROMSVCANDEXIT to bring ARMv5 back to work. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-04-11T12:26:30.294960Z K 7 svn:log V 245 It is a logical error that in carp_multicast_cleanup() we look at count of addresses on a particular vhid, we should account number of addresses on cif. To achieve this we need to run carp_attach() and carp_detach() under appropriate cif lock. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-11T14:08:09.772639Z K 7 svn:log V 240 Return EBADF instead of EMFILE from dup2 when the second argument is outside the range of valid file descriptors PR: kern/164970 Submitted by: Peter Jeremy Reviewed by: jilles Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-11T14:12:28.864163Z K 7 svn:log V 152 Make the item numbers match the crypt magic number PR: docs/166497 Submitted by: Mike Kelly Approved by: cperciva MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-11T14:13:22.309893Z K 7 svn:log V 310 - remove the length shortening on the path - make the default prompt a bit more like scp - make the user show as root even when using 'su' instead of 'su -' - the key bindings didn't hurt anything but likely hide a bug - merge history instead of overwriting it Submitted by: gavin, joel Approved by: cperciva END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-11T14:18:18.218992Z K 7 svn:log V 231 s/Free Memory Pages/Free Memory/ to avoid confusion, since we're reporting a number of bytes rather than a number of pages PR: misc/165208 Submitted by: Arnaud Lacombe Approved by: cperciva MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-11T14:36:05.463176Z K 7 svn:log V 112 Fix typo (add a missing '%/' in sed) Submitted by: jmallett Approved by: cperciva (implicit) MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-11T14:54:06.582120Z K 7 svn:log V 4 MFC END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-04-11T15:02:14.321126Z K 7 svn:log V 776 Enable prefetching of descriptors on the TX ring, using the same values as in the Intel driver 3.8.21 for linux. The fact that it is standard in the above driver suggests that it has no bad side effects. But of course there must be a reason for enabling features, not just "it does not harm", so here it is a good one: Prefetching enables full line rate even using a single queue (14.88 Mpps, compared to ~12 Mpps without prefetch). This in turn is terribly useful when one wants to schedule traffic. For obvious reasons the difference is only visible with netmap or other high speed solutions, but presumably the advantage should be in the order of a fraction of a microsecond when starting transmission on an empty queue. Discussed with Jack Vogel. MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-04-11T15:42:02.943872Z K 7 svn:log V 273 Support percent-encoded user and password RFC 1738 specifies that any ":", "@", or "/" within a user name or password in a URL is percent-encoded, to avoid ambiguity with the use of those characters as URL component separators. Reviewed by: rstone@ MFC after: 1 month END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-04-11T15:48:50.315864Z K 7 svn:log V 76 Restore the blank line incorrectly removed in r234104. Pointed out by: bde END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-04-11T16:11:08.462650Z K 7 svn:log V 921 A couple of changes related to ixgbe operation in netmap mode: - add a sysctl, dev.netmap.ix_crcstrip, to control whether ixgbe should strip the CRC on received frames. Defaults to 0, which keeps the CRC. and improves performance when receiving min-sized (64-byte) frames. This matters because min-sized frames is one of the standard benchmarks for switches and routers, some chipsets seem to issue read-modify-write cycles for PCIe transactions that are not a full cache line, and a min-sized frame triggers the bug, resulting in reduced throughput -- 9.7 instead of 14.88 Mpps -- and heavy bus load. - for the time being, always look for incoming packets on a select/poll even if there has not been an interrupt in the meantime. This is only a temporary workaround for a probable race condition in keeping track of rx interrupts. Add a couple of diagnostic vars to help studying the problem. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T19:37:08.814841Z K 7 svn:log V 348 MFC 232742: MFamd64: - Return failure for a suspend attempt if we have no wake address. - Use intr_disable()/intr_restore() instead of ACPI_DISABLE_IRQS(). - Invoke intr_suspend() earlier and call intr_resume() if suspend fails. - Use pause in the loop waiting for CPU to suspend. - Restore PAT MSR, switchtime, switchticks, and MTRRs on resume. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T19:37:36.322706Z K 7 svn:log V 348 MFC 232742: MFamd64: - Return failure for a suspend attempt if we have no wake address. - Use intr_disable()/intr_restore() instead of ACPI_DISABLE_IRQS(). - Invoke intr_suspend() earlier and call intr_resume() if suspend fails. - Use pause in the loop waiting for CPU to suspend. - Restore PAT MSR, switchtime, switchticks, and MTRRs on resume. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-04-11T19:58:29.398366Z K 7 svn:log V 4 MFC END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:04:31.607432Z K 7 svn:log V 604 MFC 232744,232747,233031: - Allow a native i386 kernel to be built with 'nodevice atpic'. Just as on amd64, if 'device isa' is present quiesce the 8259A's during boot and resume from suspend. - Move i386's intr_machdep.c to the x86 tree and share it with amd64. - Merge r232744 changes to pc98. (Allow a kernel to be built with 'nodevice atpic'.) - Move ICU related defines from x86/isa/atpic.c to x86/isa/icu.h and use them in x86/x86/intr_machdep.c. Note, I normally would have merged 232747 separately, but 233031 assumed 232747 was already merged and 232744 needs to be merged with 233031. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:19:07.903131Z K 7 svn:log V 199 MFC 232228,233613: Move the DTrace return IDT vector back up from 0x20 to 0x92. The 0x20 vector is currently dedicated to servicing IRQ 0 from the 8259A's, so it shouldn't be overloaded for DTrace. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:19:29.638129Z K 7 svn:log V 199 MFC 232228,233613: Move the DTrace return IDT vector back up from 0x20 to 0x92. The 0x20 vector is currently dedicated to servicing IRQ 0 from the 8259A's, so it shouldn't be overloaded for DTrace. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:25:01.027247Z K 7 svn:log V 401 MFC 233305,233623: - Mark the 'lapics' and 'ioapics' arrays here static since they are private to this file. The 'lapics' array was actually shadowing a completely different 'lapics' array that is private to local_apic.c. - Allocate the ioapics[] array dynamically since it is only needed for the duration of madt_setup_io(). This avoids having the array take up permanent space in the BSS. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:26:50.960804Z K 7 svn:log V 84 MFC 233893: Disable INET6 support in modules when building the LINT-NOINET6 kernel. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-11T20:28:05.387164Z K 7 svn:log V 188 Fix error in r233949. Synchronizing icaches on uncacheable pages turns out not to be a good idea, and of course the PV entry list for a page is never empty after the page has been mapped. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:50:17.611423Z K 7 svn:log V 293 MFC 233676: Use a more proper fix for enabling HT MSI mapping windows on Host-PCI bridges. Rather than blindly enabling the windows on all of them, only enable the window when an MSI interrupt is enabled for a device behind the bridge, similar to what already happens for HT PCI-PCI bridges. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:55:21.116439Z K 7 svn:log V 395 MFC 219737,219740,233676: Improve handling of MSI interrupts with HyperTransport devices: - Always enable the HyperTransport MSI mapping window for HyperTransport to PCI bridges (these show up as HyperTransport slave devices) on powerpc. - Enable the HyperTransport MSI mapping window for HyperTransport to PCI bridges when an interrupt is configured via the PCIB_MAP_MSI() call on x86. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T20:57:41.362348Z K 7 svn:log V 426 Allow device_busy() and device_unbusy() to be invoked while a device is being attached. This is implemented by adding a new DS_ATTACHING state while a device's DEVICE_ATTACH() method is being invoked. A driver is required to not fail an attach of a busy device. The device's state will be promoted to DS_BUSY rather than DS_ACTIVE() if the device was marked busy during DEVICE_ATTACH(). Reviewed by: kib MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T21:00:33.574997Z K 7 svn:log V 23 Trim stray blank line. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-04-11T21:33:45.603551Z K 7 svn:log V 585 Reapply r223198 which was reverted in the previous vendor import. Some portions were already reapplied in r233708: - Use a dedicated task to handle deferred transmits from the if_transmit method instead of reusing the existing per-queue interrupt task. Reusing the per-queue interrupt task could result in both an interrupt thread and the taskqueue thread trying to handle received packets on a single queue resulting in out-of-order packet processing. - Call ether_ifdetach() earlier in igb_detach(). - Drain tasks and free taskqueues during igb_detach(). MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-11T21:56:55.554082Z K 7 svn:log V 381 Only manipulate the PGA_EXECUTABLE flag on managed pages. This is a proxy for whether the page is physical. On dense phys mem systems (32-bit), VM_PHYS_TO_PAGE will not return NULL for device memory pages if device memory is above physical memory even if there is no allocated vm_page. Attempting to use the returned page could then cause either memory corruption or a page fault. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-11T22:23:50.637584Z K 7 svn:log V 99 We don't need kcopy() in any of the remaining places it is used, so remove it. MFC after: 2 weeks END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-04-11T22:43:40.702687Z K 7 svn:log V 20 Whitespace cleanup. END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-04-11T23:01:11.886377Z K 7 svn:log V 329 Export vinactive() from kern/vfs_subr.c (e.g., make it no longer static and declare its prototype in sys/vnode.h) so that it can be called from process_deferred_inactive() (in ufs/ffs/ffs_snapshot.c) instead of the body of vinactive() being cut and pasted into process_deferred_inactive(). Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-04-12T00:12:17.775225Z K 7 svn:log V 132 Sort completions Add a new one for sysctl Submitted by: rm (the new completion) Approved by: cperciva (implicit) MFC after: 3 days END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-04-12T00:38:34.223246Z K 7 svn:log V 187 MFC r233018: Make ofw_bus_get_node() consistently return -1 when there is no associated OF node, instead of a random mixture of 0 and -1. Update all checks for 0 to check for -1 instead. END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-04-12T00:45:43.087349Z K 7 svn:log V 91 Map in the xen shared_info page into kernel virtual memory. Approved by: gibbs (implicit) END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-04-12T00:59:30.660892Z K 7 svn:log V 224 PV kernels cannot use the cli/sti privileged opcodes to mask/unmask interrupts (known as "events" in xenspeak). We mask/unmask interrupts by notifying the hypervisor via the shared_info page. Approved by: gibbs (implicit) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-04-12T01:07:17.196551Z K 7 svn:log V 305 Set the proto to LAGG_PROTO_NONE before calling the detach routine so packets are discarded, this is an issue because lacp drops the lock which may allow network threads to access freed memory. Expand the lock coverage so the detach/attach happen atomically. Submitted by: Andrew Boyer (earlier version) END