ƒ´;232191 173 124 121 119 112 145 278 332 161 173 292 190 302 150 110 121 134 1628 200 213 358 115 217 189 262 173 114 165 548 167 148 151 181 196 171 290 118 138 177 445 142 157 369 234 291 155 316 97 1451 329 483 979 207 180 155 132 980 158 137 142 192 291 184 157 104 162 177 146 109 733 398 205 199 742 199 236 532 576 173 132 281 551 156 223 124 169 169 367 171 378 147 143 189 182 181 252 204 177 359 324 1099 160 448 147 179 268 145 142 209 647 241 303 228 477 223 201 185 221 472 319 469 209 226 167 399 239 217 821 167 135 381 319 452 150 225 99 361 307 351 152 839 140 168 145 172 214 233 289 202 173 269 287 188 132 282 530 954 222 845 239 244 2321 4114 178 625 137 644 132 196 152 327 186 118 387 K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-26T19:05:17.285674Z K 7 svn:log V 30 - Add handling single pattern END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-02-26T19:10:14.229770Z K 7 svn:log V 29 Fix typo. MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-26T19:24:39.882327Z K 7 svn:log V 25 - Fix length calculation END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-26T19:25:42.325664Z K 7 svn:log V 18 - Fix compilation END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-02-26T20:05:35.385327Z K 7 svn:log V 50 This is really a spin lock, so use mtx_lock_spin. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-02-26T20:30:21.788856Z K 7 svn:log V 182 Completely butcherize the locking, it's completely wrong, but so is calling malloc() or the iicbus stuff while holding locks, this requires careful review, and eventually rewriting. END K 10 svn:author V 3 phk K 8 svn:date V 27 2012-02-26T20:56:49.289195Z K 7 svn:log V 239 Also call the low-level driver if ->c_iflag & (IXON|IXOFF|IXANY) changes. Uftdi(4) examines (c_iflag & (IXON|IXOFF)) to control hw XON-XOFF support. This is obviously no good, if changes to those bits are not communicated down the stack. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-02-26T21:24:02.698349Z K 7 svn:log V 64 MFC r232039: Avoid creating PCM devices for MIDI only adapters. END K 10 svn:author V 3 kan K 8 svn:date V 27 2012-02-26T21:24:27.166439Z K 7 svn:log V 81 Fix apparent logic reversal in setting the 'auto_mode' flag. MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-02-26T22:09:21.655675Z K 7 svn:log V 191 Fix segfault if distfetch and distextract binaries are run standalone without the DISTRIBUTIONS environment variable set. PR: bin/165492 Submitted by: Fernando Apesteguia MFC after: 4 days END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-02-26T23:06:30.267769Z K 7 svn:log V 95 xargs: Remove an unclear comment that only tried to repeat what the code did Reported by: bde END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-02-27T05:49:00.064915Z K 7 svn:log V 205 Drop setuid status while doing file operations to prevent potential information leak. This changeset is intended to be a minimal one to make backports easier. Reviewed by: kevlo, remko MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-27T08:55:32.418013Z K 7 svn:log V 56 Remove duplicate assignment of SF_IMR_RXDQ2_DMADONE bit END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-27T08:57:02.859262Z K 7 svn:log V 16 Fix logic error END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T09:09:07.025076Z K 7 svn:log V 27 - Properly add mregerror() END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T09:10:24.675651Z K 7 svn:log V 40 - Define weak reference for mregerror() END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-02-27T10:31:54.540254Z K 7 svn:log V 1534 Rework CPU load balancing in SCHED_ULE: - In sched_pickcpu() be more careful taking previous CPU on SMT systems. Do it only if all other logical CPUs of that physical one are idle to avoid extra resource sharing. - In sched_pickcpu() change general logic of CPU selection. First look for idle CPU, sharing last level cache with previously used one, skipping SMT CPU groups. If none found, search all CPUs for the least loaded one, where the thread with its priority can run now. If none found, search just for the least loaded CPU. - Make cpu_search() compare lowest/highest CPU load when comparing CPU groups with equal load. That allows to differentiate 1+1 and 2+0 loads. - Make cpu_search() to prefer specified (previous) CPU or group if load is equal. This improves cache affinity for more complicated topologies. - Randomize CPU selection if above factors are equal. Previous code tend to prefer CPUs with lower IDs, causing unneeded collisions. - Rework periodic balancer in sched_balance_group(). With cpu_search() more intelligent now, make balansing process flat, removing recursion over the topology tree. That fixes double swap problem and makes load distribution more even and predictable. All together this gives 10-15% performance improvement in many tests on CPUs with SMT, such as Core i7, for number of threads is less then number of logical CPUs. In some tests it also gives positive effect to systems without SMT. Reviewed by: jeff Tested by: flo, hackers@ MFC after: 1 month Sponsored by: iXsystems, Inc. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-02-27T13:04:09.677626Z K 7 svn:log V 102 Move UART device to dev/ directory. Other drivers for the XLP SoC devices will be added here as well END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-02-27T13:38:52.179791Z K 7 svn:log V 116 Follow changes made in revision 232144, pass absolute timeout to kernel, this eliminates a clock_gettime() syscall. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-02-27T13:57:14.252953Z K 7 svn:log V 260 CFI fixes for big endian architectures. The commands and responses are little-endian which has to be bswapped, while raw read of data need not be. Make the default cfi_read and cfi_write do 'htole', and provide a cfi_read_raw which is used for reading data. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-02-27T14:03:49.708215Z K 7 svn:log V 18 Use DEVMETHOD_END END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-02-27T14:12:49.718980Z K 7 svn:log V 119 NOR flash driver for XLP The NOR interface on the SoC appears on the top level PCI bus. Add a simple driver for this. END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-27T15:14:36.979908Z K 7 svn:log V 93 ti_i2c: allow different clock configuration on different SoCs Approved by: cognet (mentor) END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-27T15:42:47.967136Z K 7 svn:log V 165 Add support for AM335x power management IC. So far it only detects power source but later should be extended to provide some sysctls. Approved by: cognet (mentor) END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-27T15:47:41.018472Z K 7 svn:log V 77 Few more register macros inside am335x_prcm.c Approved by: cognet (mentor) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T15:58:38.525405Z K 7 svn:log V 20 - Fix infinite loop END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T15:59:17.796198Z K 7 svn:log V 71 - Use mregerror() to determine which pattern compilation fails and why END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T16:08:18.066639Z K 7 svn:log V 455 Clear the a device's description string anytime it's driver changes. Descriptions are specific to drivers and we don't change drivers on attached devices. This fixes a few places where we were not clearing the description when detaching a driver (e.g. with device_attach() failed). While here, fix a few other nits: - Remove spurious call to remove a device's driver from devclass_driver_deleted(). device_detach() removes it already. - Fix a typo. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-27T16:10:26.478890Z K 7 svn:log V 73 Remove unused variable count. This variable is initialized but not used. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T16:10:44.613295Z K 7 svn:log V 54 - Use fast matcher when possible (add missing return) END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T16:12:00.608490Z K 7 svn:log V 57 - When the pattern is too short no need to free anything END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T16:12:49.815531Z K 7 svn:log V 87 - Avoid segfaults by adding and extra condition and initializing variables with NULL END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T16:15:56.504310Z K 7 svn:log V 101 - When having a match that is not a full match we cannot have a full match later in the same line. END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-27T16:18:49.273181Z K 7 svn:log V 77 - mregerror() (and regerror()) can also be used after regexec() and the rest END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-02-27T17:04:18.709039Z K 7 svn:log V 194 Update PCI-IDs with devices found on Intel SDP Return BUS_PROBE_DEFAULT so that non-default drivers may be loaded Reviewed by: jharris@ Obtained from: Yahoo! Inc. and Intel MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T17:28:22.791643Z K 7 svn:log V 26 Update incorrect comment. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T17:28:47.990384Z K 7 svn:log V 46 Correct function prototype for read_rflags(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T17:29:37.176250Z K 7 svn:log V 85 Resort the IDT_DTRACE_RET constant after it was changed to be less than IDT_SYSCALL. END K 10 svn:author V 6 sbruno K 8 svn:date V 27 2012-02-27T17:29:42.662112Z K 7 svn:log V 349 MFC r231860 During work to port isci(4) to stable/7 I noted that the maxio portion of struct ccb_pathinq from sys/cam/cam_ccb.h wasn't added to stable/7 at all and didn't appear in stable/8 until svn R195534. Since __FreeBSD_version did not get bumped until svn R195634, assume that maxio is valid at 800102 or higher. Obtained from: Yahoo! Inc. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T17:30:21.221989Z K 7 svn:log V 50 Remove completely duplicate '#ifdef XEN' section. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T17:31:38.232609Z K 7 svn:log V 65 MFamd64: Don't whine about interrupts being disabled for an NMI. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T17:33:16.404395Z K 7 svn:log V 276 - Panic up front if a kernel does not include 'device atpic' and an APIC is not found. - Don't panic if lapic_enable_cmc() is called and the APIC is not enabled. This can happen due to booting a kernel with APIC disabled on a CPU that supports CMCI. - Wrap a long line. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-02-27T17:39:34.070316Z K 7 svn:log V 137 Backout r230934 which didn't work with unix sockets and several filesystem layers mounted at the specified path. Pointy hat to: pluknet END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-02-27T17:41:23.572998Z K 7 svn:log V 194 Backout r230934 (MFCed as r231859) which didn't work with unix sockets and several filesystem layers mounted at the specified path. Pointy hat to: pluknet Reported by: flo via broken tinderbox END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-02-27T18:17:03.487518Z K 7 svn:log V 62 MFC: r231841, r231842 Properly check VESA video mode number. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-02-27T18:28:18.233698Z K 7 svn:log V 222 MFC: r231843, r232061, r232063, r232065, r232069 - Set the initial mode for the adapter after executing VESA BIOS POST. - Probe supported states for save/restore function. - Defer to VGA methods if no state is supported. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-27T18:28:31.165451Z K 7 svn:log V 6 Typo. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-02-27T19:05:01.854702Z K 7 svn:log V 1355 A bunch of netmap fixes: USERSPACE: 1. add support for devices with different number of rx and tx queues; 2. add better support for zero-copy operation, adding an extra field to the netmap ring to indicate how many buffers we have already processed but not yet released (with help from Eddie Kohler); 3. The two changes above unfortunately require an API change, so while at it add a version field and some spares to the ioctl() argument to help detect mismatches. 4. update the manual page for the two changes above; 5. update sample applications in tools/tools/netmap KERNEL: 1. simplify the internal structures moving the global wait queues to the 'struct netmap_adapter'; 2. simplify the functions that map kring<->nic ring indexes 3. normalize device-specific code, helps mainteinance; 4. start exploring the impact of micro-optimizations (prefetch etc.) in the ixgbe driver. Use 'legacy' descriptors on the tx ring and prefetch slots gives about 20% speedup at 900 MHz. Another 7-10% would come from removing the explict calls to bus_dmamap* in the core (they are effectively NOPs in this case, but it takes expensive load of the per-buffer dma maps to figure out that they are all NULL. Rx performance not investigated. I am postponing the MFC so i can import a few more improvements before merging. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-27T20:52:20.131031Z K 7 svn:log V 236 Fix a race in top non-interactive mode. Use plain sleep(3) call instead of arming timer and then pausing. If SIGALRM is delivered before pause(3) is entered, top hangs. Submitted by: Andrey Zonov MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-27T21:10:10.907892Z K 7 svn:log V 390 Currently, the debugger attached to the process executing vfork() does not get syscall exit notification until the child performed exec of exit. Swap the order of doing ptracestop() and waiting for P_PPWAIT clearing, by postponing the wait into syscallret after ptracestop() notification is done. Reported, tested and reviewed by: Dmitry Mikulin MFC after: 2 weeks END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-02-27T22:28:38.523101Z K 7 svn:log V 884 From r224286: Document the potential for jail escape. From r224615: Always disable mount and unmount for jails with enforce_statfs==2. From r231267: A new jail(8) option "devfs_ruleset" defines the ruleset enforcement for mounting devfs inside jails. A value of -1 disables mounting devfs in jails, a value of zero means no restrictions. Nested jails can only have mounting devfs disabled or inherit parent's enforcement as jails are not allowed to view or manipulate devfs(8) rules. From r232059: To improve control over the use of mount(8) inside a jail(8), introduce a new jail parameter node with the following parameters: allow.mount.devfs: allow mounting the devfs filesystem inside a jail allow.mount.nullfs: allow mounting the nullfs filesystem inside a jail From r232186: allow.mount.zfs: allow mounting the zfs filesystem inside a jail END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-02-27T22:37:35.042314Z K 7 svn:log V 112 Use the defvs_ruleset paramater when mounting a jail's /dev, instead of a mount.devfs.ruleset pseudo-parameter. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2012-02-28T03:11:02.725902Z K 7 svn:log V 88 Fix a few rendering nits in rc.conf(5) with regards to mentioning jail_parallel_enable. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-02-28T04:05:35.873528Z K 7 svn:log V 60 Track the number of bad beacons received. PR: kern/165517 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-02-28T04:06:42.867039Z K 7 svn:log V 37 Add is_beacon_bad. PR: kern/165517 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-02-28T05:23:29.456191Z K 7 svn:log V 883 Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to extract a link status of PHY when parent driver is re(4). RGEPHY_MII_SSR register does not seem to report correct PHY status on some integrated PHYs used with re(4). Unfortunately, RealTek PHYs have no additional information to differentiate integrated PHYs from external ones so relying on PHY model number is not enough to know that. However, it seems RGEPHY_MII_SSR register exists for external RealTek PHYs so checking parent driver would be good indication to know which PHY was used. In other words, for non-re(4) controllers, the PHY is external one and its revision number is greater than or equal to 2. This change fixes intermittent link UP/DOWN messages reported on RTL8169 controller. Also, mii_attach(9) is tried after setting interface name since rgephy(4) have to know parent driver name. PR: kern/165509 END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-02-28T07:35:07.549852Z K 7 svn:log V 67 mdoc(7) stype - start new sentences on new line MFC after: 1 week END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-02-28T08:36:38.411880Z K 7 svn:log V 45 New nullfs scenario added. PR: kern/164261 END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-02-28T11:06:52.121656Z K 7 svn:log V 46 Add lib32 part after libarchive 3.0.3 update. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2012-02-28T13:19:34.424888Z K 7 svn:log V 98 Correct capitalization of "Hz" in user-visible text (manpages, printf(), etc). MFC after: 3 days END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-28T13:28:50.192582Z K 7 svn:log V 196 - Fix some shifts in the Wu-Manber algorithms - Actually update shifts if there is a lower one for the same fragment - Fix saving patterns - Initialize some pointers with NULL and avoid segfaults END K 10 svn:author V 5 gabor K 8 svn:date V 27 2012-02-28T14:22:54.945915Z K 7 svn:log V 90 - Fix return when match found - Remove a superfluous else - Initialize pointers with NULL END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-02-28T14:35:36.712468Z K 7 svn:log V 61 Correct pathname for manpages after libarchive 3.0.3 update. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-28T15:07:05.448607Z K 7 svn:log V 10 Fix typos END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-28T15:09:56.445151Z K 7 svn:log V 68 Fix checks for error return from amr_sglist_map() and amr_ccb_map() END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-28T15:12:26.009057Z K 7 svn:log V 83 Add missing MODULE_DEPEND() so that acpi.ko and aibs.ko can be loaded dynamically. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-28T15:45:42.164712Z K 7 svn:log V 52 Add support for the MCS7832 Obtained from: OpenBSD END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2012-02-28T15:47:39.257004Z K 7 svn:log V 15 Mention mos(4) END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-02-28T15:52:01.996523Z 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 6 emaste K 8 svn:date V 27 2012-02-28T17:29:31.437814Z K 7 svn:log V 302 Avoid transfers crossing a 4GB boundary, which can lead to data corruption. Thanks to scottl@ for the suggestion. This change will likely be revised after consideration of a general method to address this type of issue for other drivers. Sponsored by: Sandvine Incorporated MFC after: 3 days END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-02-28T18:15:28.452224Z K 7 svn:log V 111 Copy amd64 _types.h to x86 and merge with i386 _types.h. Replace existing amd64/i386/pc98 _types.h with stubs. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-02-28T18:24:28.693810Z K 7 svn:log V 105 Copy amd64 _limits.h to x86 and merge with i386 _limits.h. Replace amd64/i386/pc98 _limits.h with stubs. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-02-28T18:30:18.243147Z K 7 svn:log V 649 Define several extra macros in bsd.sys.mk and sys/conf/kern.pre.mk, to get rid of testing explicitly for clang (using ${CC:T:Mclang}) in individual Makefiles. Instead, use the following extra macros, for use with clang: - NO_WERROR.clang (disables -Werror) - NO_WCAST_ALIGN.clang (disables -Wcast-align) - NO_WFORMAT.clang (disables -Wformat and friends) - CLANG_NO_IAS (disables integrated assembler) - CLANG_OPT_SMALL (adds flags for extra small size optimizations) As a side effect, this enables setting CC/CXX/CPP in src.conf instead of make.conf! For clang, use the following: CC=clang CXX=clang++ CPP=clang-cpp MFC after: 2 weeks END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-02-28T18:38:33.788671Z K 7 svn:log V 105 Copy amd64 _stdint.h to x86 and merge with i386 _stdint.h. Replace amd64/i386/pc98 _stdint.h with stubs. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-28T19:16:02.072757Z K 7 svn:log V 143 Properly clear a device's devclass if DEVICE_ATTACH() fails if the device does not have a fixed devclass. Reviewed by: imp MFC after: 2 weeks END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-02-28T19:39:54.646544Z K 7 svn:log V 438 Copy amd64 endian.h to x86 and merge with i386 endian.h. Replace amd64/i386/pc98 endian.h with stubs. In __bswap64_const(x) the conflict between 0xffUL and 0xffULL has been resolved by reimplementing the macro in terms of __bswap32(x). As a side effect __bswap64_var(x) is now implemented using two bswap instructions on i386 and should be much faster. __bswap32_const(x) has been reimplemented in terms of __bswap16(x) for consistency. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-02-28T19:42:40.026576Z K 7 svn:log V 480 Workaround for PCIe 4GB boundary issue Enforce a boundary of no more than 4GB - transfers crossing a 4GB boundary can lead to data corruption due to PCIe limitations. This change is a less-intrusive workaround that can be quickly merged back to older branches; a cleaner implementation will arrive in HEAD later but may require KPI changes. This change is based on a suggestion by jhb@. Reviewed by: scottl, jhb Sponsored by: Sandvine Incorporated MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-02-28T19:50:14.991343Z K 7 svn:log V 78 Revert r232260. The problem is now fixed by a general workaround in r232267. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-02-28T21:41:47.923569Z K 7 svn:log V 37 Print out the bogus beacon interval. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-02-28T21:43:29.247752Z K 7 svn:log V 185 Only increment is_beacon_bad if we're not scanning. Otherwise things such as off-channel probe responses and beacons are also silently discarded and logged against this error counter. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-02-28T21:45:21.502560Z K 7 svn:log V 458 Change definition of pipe_chmod() from K&R to C99, to avoid the following clang warning: sys/kern/sys_pipe.c:1556:10: error: promoted type 'int' of K&R function parameter is not compatible with the parameter type 'mode_t' (aka 'unsigned short') declared in a previous prototype [-Werror] mode_t mode; ^ sys/kern/sys_pipe.c:155:19: note: previous declaration is here static fo_chmod_t pipe_chmod; ^ END K 10 svn:author V 4 oleg K 8 svn:date V 27 2012-02-28T21:53:39.440877Z K 7 svn:log V 63 lookup_dyn_rule_locked(): style(9) cleanup MFC after: 1 month END K 10 svn:author V 4 oleg K 8 svn:date V 27 2012-02-28T22:00:41.276882Z K 7 svn:log V 129 - Refresh dynamic tcp rule only if both sides answered keepalive packets. - Remove some useless assignments. MFC after: 1 month END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-02-28T22:15:46.550898Z K 7 svn:log V 29 Document the 'URL' argument. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-02-28T22:17:52.858535Z K 7 svn:log V 76 Copy amd64 setjmp.h to x86 and replace amd64/i386/pc98 setjmp.h with stubs. END K 10 svn:author V 4 tijl K 8 svn:date V 27 2012-02-28T22:30:58.361643Z K 7 svn:log V 76 Copy amd64 stdarg.h to x86 and replace amd64/i386/pc98 stdarg.h with stubs. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-02-28T23:30:19.166204Z K 7 svn:log V 270 MFC r228924: In POSIX.1-2008: P_tmpdir [OB XSI] Default directory prefix for tempnam(). This macro is used in a lot of places in legacy applications, and is why we see a lot of programs written for e.g. Linux store volatile temporary files in /var/tmp and not /tmp. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-02-29T00:30:18.369717Z K 7 svn:log V 80 Add procfs to jail-mountable filesystems. Reviewed by: jamie MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-02-29T00:52:56.665425Z K 7 svn:log V 281 MFC r232008,232010,232080,232089 Using the flowid in the mbuf assumes the network card is giving a good hash for the traffic flow, this may not be the case giving poor traffic distribution. Add a sysctl which allows us to fall back to our own flow hash code. PR: kern/164901 END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-02-29T01:04:37.950022Z K 7 svn:log V 56 IF stable/9 @r232279 Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-29T01:32:09.967490Z K 7 svn:log V 47 Fix byte order. Approved by: cognet (mentor) END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-29T01:35:21.378330Z K 7 svn:log V 93 Probe i2c devices based on FDT data. Patch provided by gonzo. Approved by: cognet (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T01:36:00.711197Z K 7 svn:log V 90 MFC r231998: Use DOINGASYNC() to test for async allowance, to honor VFS syncing requests. END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-29T01:38:36.755130Z K 7 svn:log V 85 am335x_pmic driver should be probed based on FDT data. Approved by: cognet (mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T01:39:39.441986Z K 7 svn:log V 159 MFC r232003: Properly lock DQREF() with dqhlock. Missed locking caused counter corruption. Assert that the dq reference value is sane before decrementing it. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-02-29T02:01:48.530608Z K 7 svn:log V 107 initialize clock ID and flags only when copying timespec, a _umtx_time copy already contains these fields. END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-29T02:04:41.211857Z K 7 svn:log V 81 Use files.ti for common code between TI platforms. Approved by: cognet (mentor) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-02-29T05:41:29.733671Z K 7 svn:log V 266 Simplify kmem_alloc() by eliminating code that existed on account of external pagers in Mach. FreeBSD doesn't implement external pagers. Moreover, it don't pageout the kernel object. So, the reasons for having code don't hold. Reviewed by: kib MFC after: 6 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-02-29T05:48:29.809749Z K 7 svn:log V 229 Revert part of old logic of assigning MAC addressess: - Reserver respective number of addresses for managment port - octm uses base address directly - other drivers get MACs on "first come first served" basis Reviewed by: juli END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-02-29T06:19:00.460339Z K 7 svn:log V 1001 MFC 230857: If multiple threads call kevent() to get AIO events on same kqueue fd, it is possible that a single AIO event will be reported to multiple threads, it is not threading friendly, and the existing API can not control this behavior. Allocate a kevent flags field sigev_notify_kevent_flags for AIO event notification in sigevent, and allow user to pass EV_CLEAR, EV_DISPATCH or EV_ONESHOT to AIO kernel code, user can control whether the event should be cleared once it is retrieved by a thread. This change should be comptaible with existing application, because the field should have already been zero-filled, and no additional action will be taken by kernel. PR: kern/156567 MFC 231006: Add 32-bit compat code for AIO kevent flags introduced in revision 230857. MFC 231724: Add notes about sigev_notify_kevent_flags introduced in revision 230857 which enables thread-friendly polling on same fd for AIO events. Reviewed by: delphij MFC 231777: Bump .Dd date for previous revision. END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-02-29T07:33:07.860163Z K 7 svn:log V 69 Bump .Dd to reflect latest update Reported by: bz MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-02-29T09:47:26.950761Z K 7 svn:log V 356 MFC r231852,232127: Merge multi-FIB IPv6 support. Extend the so far IPv4-only support for multiple routing tables (FIBs) introduced in r178888 to IPv6 providing feature parity. This includes an extended rtalloc(9) KPI for IPv6, the necessary adjustments to the network stack, and user land support as in netstat. Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-02-29T09:52:35.184014Z K 7 svn:log V 56 IF stable/8 @r232292 Sponsored by: Cisco Systems, Inc. END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-02-29T12:13:05.323389Z K 7 svn:log V 88 Record MFC of r230981 (by hrs) done with r232292: Fix input validation in SO_SETFIB. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-02-29T12:44:34.977788Z K 7 svn:log V 172 Make sure we do not provide the page 0 to the VM. It can't handle it properly, because pmap_extract() returns 0 when there's no mapping. PR: arm/154227 MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T14:43:27.178881Z K 7 svn:log V 53 Merge a split multi-line comment. MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-02-29T14:44:42.482251Z K 7 svn:log V 47 Grammar: tzsetup now has more than one option. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-02-29T14:50:17.484577Z K 7 svn:log V 112 Make local functions static. Not only a perfectionism, but also improves readability and understanding of code. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T15:06:00.108441Z K 7 svn:log V 554 Move the code to destroy half-contructed nullfs vnode into helper function null_destroy_proto() from null_insmntque_dtr(). Also apply null_destroy_proto() in null_nodeget() when we raced and a vnode is found in the hash, so the currently allocated protonode shall be destroyed. Lock the vnode interlock around reassigning the v_vnlock. In fact, this path will not be exercised after several later commits, since null_nodeget() cannot take shared-locked lowervp at all due to insmntque() requirements. Reported by: rea Tested by: pho MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-02-29T15:06:40.167082Z K 7 svn:log V 144 Update the description for -s flag after r232182. When displaying security credential information show also process umask. X-MFC-with: r232182 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T15:09:20.466794Z K 7 svn:log V 210 Always request exclusive lock for the lower vnode in nullfs_vget(). The null_nodeget() requires exclusive lock on lowervp to be able to insmntque() new vnode. Reported by: rea Tested by: pho MFC after: 1 week END K 10 svn:author V 5 remko K 8 svn:date V 27 2012-02-29T15:10:34.821435Z K 7 svn:log V 133 MFC r124468 Move the sticky manual from section 8 to section 7 like NetBSD has, since this is not a command on itself. PR: 124468 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T15:15:36.283533Z K 7 svn:log V 384 In null_reclaim(), assert that reclaimed vnode is fully constructed, instead of accepting half-constructed vnode. Previous code cannot decide what to do with such vnode anyway, and although processing it for hash removal, paniced later when getting rid of nullfs reference on lowervp. While there, remove initializations from the declaration block. Tested by: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T15:18:04.711522Z K 7 svn:log V 130 Document that null_nodeget() cannot take shared-locked lowervp due to insmntque() requirements. Tested by: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-02-29T15:18:53.484175Z K 7 svn:log V 108 Allow shared locks for reads when lower filesystem accept shared locking. Tested by: pho MFC after: 1 week END K 10 svn:author V 7 dmarion K 8 svn:date V 27 2012-02-29T16:16:00.504729Z K 7 svn:log V 89 Rename as MMCHS driver will be used on non-omap platforms. Approved by: cognet (mentor) END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-02-29T16:16:36.482066Z K 7 svn:log V 129 Add "export" to devfs_opts[] and return EOPNOTSUPP if called with it. Fixes mountd warnings. Reported by: kib MFC after: 1 week END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-02-29T17:47:01.132401Z K 7 svn:log V 377 blkif interface comment cleanups. No functional changes sys/xen/interface/io/blkif.h: o Insert space in "Red Hat". o Fix typo "discard-aligment" -> "discard-alignment" o Fix typo "unamp" -> "unmap" o Fix typo "formated" -> "formatted" o Clarify the text for "params". o Clarify the text for "sector-size". o Clarify the text for "max-requests" in the backend section. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-02-29T18:11:33.777540Z K 7 svn:log V 225 Fix a long standing bug. The caller expects a non-zero value for success. Luckily keyboard probing was turned off by default from the first revision. Submitted by: Alexander Sack (asack at niksun dot com) MFC after: 3 days END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-02-29T18:41:59.443756Z K 7 svn:log V 374 MFC r231883 =========== Fix regression in the handling of blkback close events for devices that are unplugged via QEMU. sys/dev/xen/blkback/blkback.c: Toolstack initiated closures change the frontend's state to Closing. The backend must change to Closing as well, even if we can't actually close yet, in order for the frontend to notice and start the closing process. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-02-29T19:18:32.419156Z K 7 svn:log V 116 Regenerate src.conf(5) after r231530 (and to correct a little screwup with the WITH_CLANG_EXTRAS fragment I added). END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-02-29T19:50:49.832500Z K 7 svn:log V 128 Fix order of arguments to lseek(). PR: 160867 Submitted by: Henning Petersen MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-02-29T20:13:53.486799Z K 7 svn:log V 71 Add myself, and show marck@ as my mentor. Approved by: marck (mentor) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-02-29T20:22:45.060262Z K 7 svn:log V 302 MFC r232008,232010,232080,232089 Using the flowid in the mbuf assumes the network card is giving a good hash for the traffic flow, this may not be the case giving poor traffic distribution. Add a sysctl which allows us to fall back to our own flow hash code. PR: kern/164901 Approved by: re (bz) END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-02-29T20:58:21.469884Z K 7 svn:log V 142 Use a more appropriate default for the maximum number of addresses in the bridge forwarding table. PR: docs/164564 Discussed with: brueffer END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-02-29T21:11:02.820569Z K 7 svn:log V 119 Update bridge(4) default values. PR: 164564 Submitted by: "Rudy (bulk)" MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-02-29T21:38:31.437503Z K 7 svn:log V 724 Introduce VOP_UNP_BIND(), VOP_UNP_CONNECT(), and VOP_UNP_DETACH() operations for setting and accessing vnode's v_socket field. The operations are necessary to implement proper unix socket handling on layered file systems like nullfs(5). This change fixes the long standing issue with nullfs(5) being in that unix sockets did not work between lower and upper layers: if we bound to a socket on the lower layer we could connect only to the lower path; if we bound to the upper layer we could connect only to the upper path. The new behavior is one can connect to both the lower and the upper paths regardless what layer path one binds to. PR: kern/51583, kern/159663 Suggested by: kib Reviewed by: arch MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-02-29T22:06:44.297913Z K 7 svn:log V 75 Use pci_printf() instead of a home-rolled version in the VPD parsing code. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-02-29T22:21:58.907435Z K 7 svn:log V 40 We shouldn't dereference curthread here END K 10 svn:author V 6 cognet K 8 svn:date V 27 2012-02-29T22:35:09.560039Z K 7 svn:log V 285 Use srandom() to init the PRNG, not srand(), since we use random(). This is harmless because srandom() is called somewhere else, with time(NULL) as a seed, but this is more correct. Obtained from: https://bitbucket.org/mux/csup Pointyhat to: not mux, somebody else MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2012-02-29T22:41:40.790489Z K 7 svn:log V 222 Correct the description for CTLFLAG_TUN and CTLFLAG_RDTUN, the declaring of a system tunable has never been implemented. This flag is only used by sysctl(8) to provide a helpful error message. Discussed with: dwhite, kan END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-02-29T22:58:51.934541Z K 7 svn:log V 359 Add a WITH_CLANG_IS_CC option for src.conf(5), disabled by default, that installs clang as /usr/bin/cc, /usr/bin/c++ and /usr/bin/cpp. Note this does *not* disable building and installing gcc, which will still be available as /usr/bin/gcc, /usr/bin/g++ and /usr/bin/gcpp. If you want to disable gcc completely, you must use WITHOUT_GCC. MFC after: 2 weeks END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-02-29T23:06:48.267045Z K 7 svn:log V 58 Regenerate src.conf(5) after r232322. MFC after: 2 weeks END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2012-03-01T00:22:52.171534Z K 7 svn:log V 127 MFC r232176: Fix the scc(4) module build. Without the file it's missing a required symbol. Approved by: nwhitehorn (mentor) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-03-01T00:27:51.044917Z K 7 svn:log V 4 MFC END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-03-01T00:54:08.178060Z K 7 svn:log V 264 - Exclude vm_radix_shrink() from the interface but retain the code still as it can be useful. - Make most of the interface private as it is unnecessary public right now. This will help in making nodes changing with arch and still avoid namespace pollution. END K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2012-03-01T03:53:07.853119Z K 7 svn:log V 209 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. Submitted by: kib (earlier version) Reviewed by: kib MFC after: 1 week END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-03-01T08:22:59.535399Z K 7 svn:log V 259 MFC r232064: Import illumos changeset 13608 [1]: add support for "-t " argument to zfs get References: https://www.illumos.org/issues/1936 Update zfs(8) manpage in respect of [1]. Fix typo in zfs(8) manpage. Obtained from: illumos (issue #1936) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-03-01T10:21:10.034845Z K 7 svn:log V 58 Use proper "maxproc" name, not "nproc". PR: docs/162172 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-01T10:55:01.700113Z K 7 svn:log V 742 Locking pf normalization code: - Make struct pf_frent, pf_frcache, pf_fragment private to pf_norm.c. - Make fragment UMA zones, TAILQs and RB-trees static to pf_norm.c - Introduce mutex pf_frag_mtx for the above fragment storage structures. - Assert the mutex in storage manipulation functions, obtain it in pf_normalize_ip() and in pf_normalize_ip6(), when we are dealing with a fragment. - TODO: lock pf_normalize_tcp_stateful() Other bits in progress: - Rename the main pf_task_mtx, to pf_mtx, description "pf Giant". - Introduce rwlock pf_rules_lock, that protects rules. - Obtain the rwlock in pf_test(), pf_test6(). - Micro-optimise pf_test(), pf_test6() obtaining the pf Giant after initial assertions and basic checks. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-01T11:03:39.207235Z K 7 svn:log V 44 Document ifnet refcount. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-01T11:55:28.864771Z K 7 svn:log V 72 Use correct size argument for V_pf_state_key_pl and V_pf_state_item_pl. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-01T12:03:52.702744Z K 7 svn:log V 49 Document ifunit_ref function. MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-01T12:16:00.861580Z K 7 svn:log V 76 Reflect that ifa_ifwithnet() gained ignore_ptp argument. MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-01T12:30:57.991542Z K 7 svn:log V 117 Refine r232333 [1] and put note about ifnet refcount caller responsibility. Spotted by: gavin [1] MFC after: 1 week END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-01T12:52:14.449760Z K 7 svn:log V 136 Changes in ifaddr refcounting: ifa_refcnt IFAREF/IFAFREE macros moved to ifa_ref()/ifa_free() refcounting functions. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-01T13:10:18.031850Z K 7 svn:log V 196 Add driver for the RME HDSPe AIO/RayDAT sound cards -- snd_hdspe(4). Cards are expensive and so rare, so leave the driver as module. Submitted by: Ruslan Bukin MFC after: 2 weeks END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-01T14:01:16.287649Z K 7 svn:log V 107 Create personal branch for tcp and network related works that should sooner or later be committed to head. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-03-01T14:39:01.299622Z K 7 svn:log V 82 Note that memory should be freed after uuid_to_string(3) call. MFC after: 1 week END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-03-01T14:42:06.868355Z K 7 svn:log V 172 o Axe intermediate struct pf_state_item, instead embed TAILQ_ENTRY right into struct pf_state. Axe associated UMA zone. - More PF_RULES_RASSERT. - Minor unrelated nits. END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-01T15:08:58.315201Z K 7 svn:log V 192 Adjust the default initial CWND upon connection establishment to the new and larger values specified by RFC5681 Section 3.1. The larger initial CWND per RFC3390, if enabled, is not affected. END K 10 svn:author V 5 jamie K 8 svn:date V 27 2012-03-01T15:09:41.351340Z K 7 svn:log V 94 Handle the case where a boolean parameter is also a node. PR: bin/165515 MFC after: 2 weeks END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-01T15:51:19.979582Z K 7 svn:log V 41 MFC r230642: Remove trailing whitespace. END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-01T16:04:25.284747Z K 7 svn:log V 187 When SYN or SYN/ACK had to be retransmitted RFC5681 requires us to reduce the initial CWND to one segment. This reduction got lost some time ago due to a change initialization ordering. END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-01T16:18:39.441749Z K 7 svn:log V 435 Increase the initial CWND to 10 segments as defined in IETF TCPM draft-ietf-tcpm-initcwnd-03 discussing why the higher initial window improves the overall performance of many web services without risking congestion collapse. As long as it remains a draft it is not enabled by default and placed under a sysctl marking it clearly as experimental: net.inet.tcp.exprimental.initcwnd10 Linux as of kernel 3.0 has enabled it by default. END K 10 svn:author V 5 andre K 8 svn:date V 27 2012-03-01T16:40:12.590072Z K 7 svn:log V 859 Work around a bug in path MTU discovery where it never managages to update to the new and lower MTU when the tcp hostcache is full. When an ICMP fragmentation needed message comes in, it is dispatched through tcp_ctlinput() which determines the tcp connection it belongs to and then updates the tcp hostcache with the new MTU. After that tcp_mtudisc() is called, recalculates the MSS from tcp hostcache for this connection and resends some data. If the tcp hostcache is full, the update with the new MTU fails and the MSS recalculation doesn't take the MTU reduction into consideration which leads to a too large segment to be sent causing an ICMP message again... The workaround abuses the errno field in tcp_mtudisc() to communicate the new MTU directly and to have it included in the MSS recalculation in any case and independent of the tcp hostcache. END K 10 svn:author V 5 luigi K 8 svn:date V 27 2012-03-01T17:35:16.850214Z K 7 svn:log V 127 remove some write-only variables. There is another block of code that is now useless as the computation is done in the kernel. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-01T17:51:15.730152Z K 7 svn:log V 752 MFC r231982: When building with clang, disable -Wformat-security for sys/dev/hpt27xx/osm_bsd.c, since it gets the following warnings: sys/dev/hpt27xx/osm_bsd.c:1180:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] S_IRUSR | S_IWUSR, driver_name); ^~~~~~~~~~~ @/dev/hpt27xx/hpt27xx_config.h:46:21: note: expanded from: #define driver_name hpt27xx_driver_name ^~~~~~~~~~~~~~~~~~~ Since 'hpt27xx_driver_name' is a constant string symbol (coming from the proprietary hpt27xx_lib.o file), there is no security problem. Because this driver is provided by the vendor, and applying changes requires re-certification and other bureaucratic exercises, just disable the warning for now. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-01T17:54:07.590720Z K 7 svn:log V 146 MFC r232074: Use a better way to silence unneeded internal declaration warnings in several sys/cam/ctl files. Suggested by: ed Reviewed by: ken END K 10 svn:author V 2 jh K 8 svn:date V 27 2012-03-01T18:17:45.004357Z K 7 svn:log V 152 Since r199137 namei() returns EINVAL for DELETE and RENAME operations if the last component of the pathname is ".". Reviewed by: kib MFC after: 1 week END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-03-01T18:45:25.617685Z K 7 svn:log V 2222 This change avoids a kernel deadlock on "snaplk" when using snapshots on UFS filesystems running with journaled soft updates. This is the first of several bugs that need to be fixed before removing the restriction added in -r230250 to prevent the use of snapshots on filesystems running with journaled soft updates. The deadlock occurs when holding the snapshot lock (snaplk) and then trying to flush an inode via ffs_update(). We become blocked by another process trying to flush a different inode contained in the same inode block that we need. It holds the inode block for which we are waiting locked. When it tries to write the inode block, it gets blocked waiting for the our snaplk when it calls ffs_copyonwrite() to see if the inode block needs to be copied in our snapshot. The most obvious place that this deadlock arises is in the ffs_copyonwrite() routine when it updates critical metadata in a snapshot and tries to write it out before proceeding. The fix here is to write the data and indirect block pointer for the snapshot, but to skip the call to ffs_update() to write the snapshot inode. To ensure that we will never have to update a pointer in the inode itself, the ffs_snapshot() routine that creates the snapshot has to ensure that all the direct blocks are allocated as part of the creation of the snapshot. A less obvious place that this deadlock occurs is when we hold the snaplk because we are deleting a snapshot. In the course of doing the deletion, we need to allocate various soft update dependency structures and allocate some journal space. If we hit a resource limit while doing this we decrease the resources in use by flushing out an existing dirty file to get it to give up the soft dependency resources that it holds. The flush can cause an ffs_update() to be done on the inode for the file that we have selected to flush resulting in the same deadlock as described above when the inode that we have chosen to flush resides in the same inode block as the snapshot inode that we hold. The fix is to defer cleaning up any time that the inode on which we are operating is a snapshot. Help and review by: Jeff Roberson Tested by: Peter Holm MFC (to 9 only) after: 2 weeks END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-03-01T19:09:28.538021Z K 7 svn:log V 4018 MFC r231743,231836-231837,231839,231883,232308 Xen PV block interface enhancements Approved by: re (kib) Reviewed by: cperciva Tested by: cperciva Sponsored by: Spectra Logic Corporation r231743 ======= Enhance documentation, improve interoperability, and fix defects in FreeBSD's front and back Xen blkif interface drivers. sys/dev/xen/blkfront/block.h: sys/dev/xen/blkfront/blkfront.c: sys/dev/xen/blkback/blkback.c: Replace FreeBSD specific multi-page ring impelementation with support for both the Citrix and Amazon/RedHat versions of this extension. sys/dev/xen/blkfront/blkfront.c: o Add a per-instance sysctl tree that exposes all negotiated transport parameters (ring pages, max number of requests, max request size, max number of segments). o In blkfront_vdevice_to_unit() add a missing return statement so that we properly identify the unit number for high numbered xvd devices. sys/dev/xen/blkback/blkback.c: o Add static dtrace probes for several events in this driver. o Defer connection shutdown processing until the front-end enters the closed state. This avoids prematurely tearing down the connection when buggy front-ends transition to the closing state, even though the device is open and they veto the close request from the tool stack. o Add nodes for maximum request size and the number of active ring pages to the exising, per-instance, sysctl tree. o Miscelaneous style cleanup. sys/xen/interface/io/blkif.h: o Add extensive documentation of the XenStore nodes used to implement the blkif interface. o Document the startup sequence between a front and back driver. o Add structures and documenatation for the "discard" feature (AKA Trim). o Cleanup some definitions related to FreeBSD's request number/size/segment-limit extension. sys/dev/xen/blkfront/blkfront.c: sys/dev/xen/blkback/blkback.c: sys/xen/xenbus/xenbusvar.h: Add the convenience function xenbus_get_otherend_state() and use it to simplify some logic in both block-front and block-back. r231836 ======= Fix "_" vs. "-" typo in a comment. No functional changes. r231837 ======= Fix typo in a printf string: "specificed" -> "specified". r231839 ======= Fix a bug in the calculation of the maximum I/O request size. The previous code did not limit the I/O request size based on the maximum number of segments supported by the back-end. In current practice, since the only back-end supporting chained requests is the FreeBSD implementation, this limit was never exceeded. sys/dev/xen/blkfront/block.h: Add two macros, XBF_SEGS_TO_SIZE() and XBF_SIZE_TO_SEGS(), to centralize the logic of reserving a segment to deal with non-page-aligned I/Os. sys/dev/xen/blkfront/blkfront.c: o When negotiating transfer parameters, limit the max_request_size we use and publish, if it is greater than the maximum, unaligned, I/O we can support with the number of segments advertised by the backend. o Don't unilaterally reduce the I/O size published to the disk layer by a single page. max_request_size is already properly limited in the transfer parameter negotiation code. o Fix typos in printf strings: "max_requests_segments" -> "max_request_segments" "specificed" -> "specified" r231883 ======= Fix regression in the handling of blkback close events for devices that are unplugged via QEMU. sys/dev/xen/blkback/blkback.c: Toolstack initiated closures change the frontend's state to Closing. The backend must change to Closing as well, even if we can't actually close yet, in order for the frontend to notice and start the closing process. r232308 ======= blkif interface comment cleanups. No functional changes sys/xen/interface/io/blkif.h: o Insert space in "Red Hat". o Fix typo "discard-aligment" -> "discard-alignment" o Fix typo "unamp" -> "unmap" o Fix typo "formated" -> "formatted" o Clarify the text for "params". o Clarify the text for "sector-size". o Clarify the text for "max-requests" in the backend section. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-03-01T19:17:56.096336Z K 7 svn:log V 83 Replace the three spaces with one tag. Reported by: pjd Approved by: gnn (mentor) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-03-01T19:43:28.163431Z K 7 svn:log V 529 MFC r232267: Workaround for PCIe 4GB boundary issue Enforce a boundary of no more than 4GB - transfers crossing a 4GB boundary can lead to data corruption due to PCIe limitations. This change is a less-intrusive workaround that can be quickly merged back to older branches; a cleaner implementation will arrive in HEAD later but may require KPI changes. This change is based on a suggestion by jhb@. Approved by: re Reviewed by: jhb (MFC) Reviewed by: jhb, scottl (original) Sponsored by: Sandvine Incorporated END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-03-01T19:54:35.187131Z K 7 svn:log V 40 Add snd_hdspe(4) to the hardware notes. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-01T19:58:34.891381Z K 7 svn:log V 551 - Change contigmalloc() to use the vm_paddr_t type instead of an unsigned long for specifying a boundary constraint. - Change bus_dma tags to use bus_addr_t instead of bus_size_t for boundary constraints. These allow boundary constraints to be fully expressed for cases where sizeof(bus_addr_t) != sizeof(bus_size_t). Specifically, it allows a driver to properly specify a 4GB boundary in a PAE kernel. Note that this cannot be safely MFC'd without a lot of compat shims due to KBI changes, so I do not intend to merge it. Reviewed by: scottl END K 10 svn:author V 2 ak K 8 svn:date V 27 2012-03-01T20:03:44.806970Z K 7 svn:log V 41 Add myself Approved by: itetcu (mentor) END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-01T20:10:54.982429Z K 7 svn:log V 99 Close a detach race. Make sure all pending CCB's get canceled at device detach. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-01T20:19:21.925049Z K 7 svn:log V 60 Update for adjusted types for boundary arguments in 232356. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-01T20:20:55.042968Z K 7 svn:log V 234 Add pci_save_state() and pci_restore_state() wrappers around pci_cfg_save() and pci_cfg_restore() for device drivers to use when saving and restoring state (e.g. to handle device-specific resets). Reviewed by: imp MFC after: 2 weeks END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2012-03-01T20:25:17.929598Z K 7 svn:log V 89 Style change: Expand redundant #if's. Remove a couple of empty lines. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-01T20:32:02.962968Z K 7 svn:log V 26 Sort function prototypes. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-01T20:36:50.115928Z K 7 svn:log V 294 Update the documentation on pci_get/set_powerstate(). These methods are not ACPI-specific at all, but deal with PCI power states. Also, pci_set_powerstate() fails with EOPNOTSUPP if a request is made that the underlying device does not support rather than falling back to somehow setting D0. END