ĻN211373 162 557 557 202 202 197 197 156 156 651 651 737 737 678 678 242 242 489 341 188 172 365 299 178 614 286 155 349 223 202 154 143 114 153 155 301 156 623 130 486 334 857 295 301 357 497 362 356 301 113 301 300 161 300 300 351 1075 1161 502 235 133 402 258 171 318 550 247 222 176 195 312 252 330 211 251 413 182 159 155 344 316 759 385 164 188 233 221 188 233 233 618 370 750 353 353 140 277 277 881 232 254 254 104 270 708 176 201 143 145 174 120 265 126 261 197 237 216 213 340 394 137 274 143 1012 108 121 116 153 201 896 514 321 119 408 1238 313 157 131 389 190 279 176 339 123 240 181 323 374 264 197 202 244 1825 446 138 446 476 189 110 592 191 691 129 K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T22:57:50.441001Z K 7 svn:log V 460 MFC r210083,210152: r210083: Remove enabling Data FIFO protection with indirect memory access. r165114 added that code and that change ignored the same logic committed in r135772. In addition, data FIFO protection should be selectively enabled instead of applying to all PCIe devices. While I'm here add BCM5785 to devices that do not require this fix. r210152: Use Miscellaneous Configuration Register bit definition instead of magic number. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T22:59:35.998111Z K 7 svn:log V 460 MFC r210083,210152: r210083: Remove enabling Data FIFO protection with indirect memory access. r165114 added that code and that change ignored the same logic committed in r135772. In addition, data FIFO protection should be selectively enabled instead of applying to all PCIe devices. While I'm here add BCM5785 to devices that do not require this fix. r210152: Use Miscellaneous Configuration Register bit definition instead of magic number. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:02:41.167996Z K 7 svn:log V 105 MFC r205651: Use pci_get_max_read_req() and pci_set_max_read_req() to set maximim read request size. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:07:06.394054Z K 7 svn:log V 105 MFC r205651: Use pci_get_max_read_req() and pci_set_max_read_req() to set maximim read request size. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:11:38.219536Z K 7 svn:log V 100 MFC r210244: Implement WOL. WOL is supported on RTL8139B or newer controllers. PR: kern/148013 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:13:09.111040Z K 7 svn:log V 100 MFC r210244: Implement WOL. WOL is supported on RTL8139B or newer controllers. PR: kern/148013 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:26:46.840954Z K 7 svn:log V 60 MFC r207391: - Pass flow control settings back to bce(4). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:28:11.712245Z K 7 svn:log V 60 MFC r207391: - Pass flow control settings back to bce(4). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:30:53.817231Z K 7 svn:log V 554 MFC r207411: - Enable flow control. - Print device details only when verbose boot is enabled. - Add debug output for shared memory access. - Add debug statistics (checksum offload & VLAN frame counters). - Modify TX path to update consumer index for each frame completed rather than updating the consumer index only once for a group of frames to improve small packet performance. - Print driver/firmware pulse messages only when verbose boot is enabled. - Add debug sysctl to clear statistics. - Fix more style(9) violations. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:32:23.549116Z K 7 svn:log V 554 MFC r207411: - Enable flow control. - Print device details only when verbose boot is enabled. - Add debug output for shared memory access. - Add debug statistics (checksum offload & VLAN frame counters). - Modify TX path to update consumer index for each frame completed rather than updating the consumer index only once for a group of frames to improve small packet performance. - Print driver/firmware pulse messages only when verbose boot is enabled. - Add debug sysctl to clear statistics. - Fix more style(9) violations. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:38:49.701716Z K 7 svn:log V 640 MFC r210257,210259-210261: r210257: When we didn't find a matching flash device, do not touch flash config data. While I'm here, use return code of bce_init_nvram() to set error instead of directly setting ENODEV. r210259: Have bce_init_ctx() return error code and make caller check the return code. If context was not setup correctly give up initialization. While I'm here move variable declarations to the beginning of the function. r210260: Don't change current media in bce_stop(). There is no need to do this here. r210261: Correctly check the result of media selection. Previously it always returned success. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:40:44.131564Z K 7 svn:log V 640 MFC r210257,210259-210261: r210257: When we didn't find a matching flash device, do not touch flash config data. While I'm here, use return code of bce_init_nvram() to set error instead of directly setting ENODEV. r210259: Have bce_init_ctx() return error code and make caller check the return code. If context was not setup correctly give up initialization. While I'm here move variable declarations to the beginning of the function. r210260: Don't change current media in bce_stop(). There is no need to do this here. r210261: Correctly check the result of media selection. Previously it always returned success. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:47:04.106627Z K 7 svn:log V 581 MFC r210263,210267,210269-210270: r210263: Do not report current link state if interface is not UP. r210267: Add KASSERT to check number of returned DMA segments. r210269: Use bus_get_dma_tag() to get parent tag. Also use BUS_SPACE_MAXSIZE_32BIT to specify sum of all segment lengths. Previously it used MAXBSIZE which was wrong. r210270: Specify BUS_DMA_ZERO flag to bus_dmamem_alloc(9) and remove bzero() calls. Also add BUS_DMA_COHERENT flag to bus_dmamem_alloc(9) to take advantage of efficient synchronization for architectures that support that feature. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:48:58.702074Z K 7 svn:log V 581 MFC r210263,210267,210269-210270: r210263: Do not report current link state if interface is not UP. r210267: Add KASSERT to check number of returned DMA segments. r210269: Use bus_get_dma_tag() to get parent tag. Also use BUS_SPACE_MAXSIZE_32BIT to specify sum of all segment lengths. Previously it used MAXBSIZE which was wrong. r210270: Specify BUS_DMA_ZERO flag to bus_dmamem_alloc(9) and remove bzero() calls. Also add BUS_DMA_COHERENT flag to bus_dmamem_alloc(9) to take advantage of efficient synchronization for architectures that support that feature. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:56:57.510835Z K 7 svn:log V 145 MFC r210271: Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4) controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-15T23:58:21.727212Z K 7 svn:log V 145 MFC r210271: Specify BCE_RX_BUF_ALIGN alignment for RX buffers. All bce(4) controllers require RX buffers aligned on BCE_RX_BUF_ALIGN bytes. END K 10 svn:author V 5 dougb K 8 svn:date V 27 2010-08-16T04:22:29.126764Z K 7 svn:log V 394 Dramatic (9-10 times) speedup in iport_from_origin() by making an intelligent guess about what director{y|ies] to search in based on the origin directory name. This algorithm only misses on 2 out of my 489 currently installed ports which means we're almost always looking in either exactly the right directory the first time, or at worst (such as the py-* ports) a dramatically smaller subset. END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-08-16T08:48:39.475249Z K 7 svn:log V 249 MFC r210746: Release access for consumers that are opened, but will be destroyed indirectly by orphan method. PR: 148688 MFC r210792: Check that table is not NULL before access, it can be NULL for some cases. Approved by: kib (mentor) END K 10 svn:author V 2 ae K 8 svn:date V 27 2010-08-16T08:51:35.557986Z K 7 svn:log V 97 MFC r210747: Forward ioctl requests to original geom. PR: 148540 Approved by: kib (mentor) END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-16T11:22:12.027810Z K 7 svn:log V 80 Old patch I had lying around: clean up and use stpcpy(3) instead of sprintf(3). END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-16T11:32:20.288220Z K 7 svn:log V 272 In setusercontext(), do not apply user settings unless running as the user in question (usually but not necessarily because we were called with LOGIN_SETUSER). This plugs a hole where users could raise their resource limits and expand their CPU mask. MFC after: 3 weeks END K 10 svn:author V 2 ed K 8 svn:date V 27 2010-08-16T12:19:36.285946Z K 7 svn:log V 207 Mark functions and variables as static. All these functions and variables are local to this compilation unit, so there is no reason why we shouldn't mark them static. This slightly reduces the binary size. END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-08-16T12:37:17.553831Z K 7 svn:log V 85 Fix .Dd from last commit. Submitted by Nobuyuki Koganemaru END K 10 svn:author V 5 andre K 8 svn:date V 27 2010-08-16T14:24:00.540044Z K 7 svn:log V 519 Add uma_zone_get_max() to obtain the effective limit after a call to uma_zone_set_max(). The UMA zone limit is not exactly set to the value supplied but rounded up to completely fill the backing store increment (a page normally). This can lead to surprising situations where the number of elements allocated from UMA is higher than the supplied limit value. The new get function reads back the effective value so that the supplied limit value can be adjusted to the real limit. Reviewed by: jeffr MFC after: 1 week END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-08-16T15:18:30.156390Z K 7 svn:log V 192 Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-08-16T15:51:41.424583Z K 7 svn:log V 59 Add some assertions in order to verify arguments passings. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-08-16T17:18:08.914156Z K 7 svn:log V 253 sh: Get rid of unnecessary non-standard empty lists. POSIX does not allow constructs like: if cmd; then fi { } Add a colon dummy command, except in a test that verifies that such empty lists do not cause crashes when used as a function definition. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2010-08-16T17:48:55.711102Z K 7 svn:log V 126 Remove unnecessary clean target in em(4), igb(4) and ixgbe(4). While here also remove man target in igb(4). Reviewed by: jfv END K 10 svn:author V 3 uqs K 8 svn:date V 27 2010-08-16T18:47:35.498710Z K 7 svn:log V 109 Wordsmithing of bsnmpd.1 PR: docs/149157 Submitted by: Warren Block MFC after: 1 week END K 10 svn:author V 3 uqs K 8 svn:date V 27 2010-08-16T19:05:10.415015Z K 7 svn:log V 62 Bump document date after content changes. Pointy hat to: uqs END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-16T20:22:06.901779Z K 7 svn:log V 51 Hoist mergeinfo for sys/dev/e1000 back up to sys/. END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-08-16T21:12:26.239163Z K 7 svn:log V 21 Fix two minor typos. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-08-16T21:14:49.747511Z K 7 svn:log V 58 sh: Split off a more dubious test from parser/heredoc2.0. END K 10 svn:author V 4 joel K 8 svn:date V 27 2010-08-16T21:26:47.699361Z K 7 svn:log V 62 Put parentheses around a few macros to prevent mdoc warnings. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-08-16T21:59:56.220502Z K 7 svn:log V 208 The 'size' variable is there to limit how many bytes we want to copy from 'addr'. It is very likely that size of 'addr' is larger than 'size', so checking strlcpy() return value is bogus. MFC after: 3 weeks END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-08-16T22:23:19.775842Z K 7 svn:log V 61 sh: Reduce unnecessary testsuite failures with other shells. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-08-17T02:50:12.782708Z K 7 svn:log V 526 Tweak code a bit to be POSIX compatible, when a cancellation request is acted upon, or when a thread calls pthread_exit(), the thread first disables cancellation by setting its cancelability state to PTHREAD_CANCEL_DISABLE and its cancelability type to PTHREAD_CANCEL_DEFERRED. The cancelability state remains set to PTHREAD_CANCEL_DISABLE until the thread has terminated. It has no effect if a cancellation cleanup handler or thread-specific data destructor routine changes the cancelability state to PTHREAD_CANCEL_ENABLE. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-08-17T06:08:09.863702Z K 7 svn:log V 38 More tests, especially for lchown(2). END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-08-17T07:58:10.333758Z K 7 svn:log V 394 MFC r211301: In rip6_input(), in case of multicast, we might skip the normal processing and go to the next iteration early if multicast filtering would decide that this socket shall not receive the data. Unlock the pcb in that case or we leak the read lock and next time trying to get a write lock, would hang forever. PR: kern/149608 Submitted by: Chris Luke (chrisy flirble.org) END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-08-17T08:55:45.114929Z K 7 svn:log V 241 Supply some useful information to the started image using ELF aux vectors. In particular, provide pagesize and pagesizes array, the canary value for SSP use, number of host CPUs and osreldate. Tested by: marius (sparc64) MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-08-17T09:05:39.767581Z K 7 svn:log V 764 Use the newly provided aux vectors to get pagesize and osreldate information. Use local version of getpagesize(), rtld_getpagesize() in private allocator. Override the __getosreldate() previously fetched from libc_pic.a with local version that uses aux value if present. Note that __getosreldate() is used by rtld indirectly, by mmap(2) libc wrapper. To be able to utilize aux, split digest_dynamic() for use by init_rtld() into two parts, where the first one does not call malloc(), and the second part uses it. init_rtld() is able to initialize global variables before digest_dynamic2() calls. In particular, pagesize and osreldate are set up from the aux values. Now, rtld avoids (two) sysctl calls in startup. Tested by: marius (sparc64) MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-08-17T09:08:28.251330Z K 7 svn:log V 202 Provide the starting image with the pointer to ELF aux vector. It is written into the __elf_aux_vector variable, if the symbol is present. Idea from: kan Tested by: marius (sparc64) MFC after: 1 month END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-08-17T09:11:38.280030Z K 7 svn:log V 205 Add -m and -M options to control the minimum and maximum frequency. PR: bin/145063 Submitted by: Boris Kochergin Reviewed by: cperciva Approved by: rrs (mentor) MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-08-17T09:13:26.066786Z K 7 svn:log V 264 Use aux vector to get values for SSP canary, pagesize, pagesizes array, number of host CPUs and osreldate. This eliminates the last sysctl(2) calls from the dynamically linked image startup. No objections from: kan Tested by: marius (sparc64) MFC after: 1 month END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-08-17T09:39:06.677900Z K 7 svn:log V 401 To restart, sysinstall calls execl. Since it will create a new process, we can't check to see if sysinstall is running as init just by checking if the PID is 0. Introduce a new option that sets the RunningAsInit flag, and update the code to check RunningAsInit intstead of getpid(). PR: bin/38854 Submitted by: Peter Sedeffow Approved by: rrs (mentor) MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-08-17T09:42:50.151378Z K 7 svn:log V 269 Add simple test to check the functioning of retrieval of pagesize()/pagesizes() after change to use aux vector. Note that public function getosreldate() is different from libc-internal __getosreldate() and does not use aux to fetch osreldate value. MFC after: 1 month END K 10 svn:author V 6 brucec K 8 svn:date V 27 2010-08-17T09:51:08.546293Z K 7 svn:log V 260 Since top displays the uptime including seconds, there is no need to add 30 onto it, which may have been used for rounding purposes in other utilities. PR: bin/147934 Submitted by: Janne Snabb Approved by: rrs (mentor) MFC after: 2 weeks END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-17T12:04:17.325536Z K 7 svn:log V 206 Vendor import of tzdata2010l - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-17T12:05:48.900382Z K 7 svn:log V 19 Tag of tzdata2010l END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-17T12:10:35.016149Z K 7 svn:log V 206 MFV of r211420, tzdata2010l - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-17T12:16:06.446362Z K 7 svn:log V 205 MFC of 211422, tzdata2010l - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 4 gahr K 8 svn:date V 27 2010-08-17T12:17:24.289795Z K 7 svn:log V 68 - The iMac9,1 needs the PAT workaround as well Approved by: cognet END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-17T12:17:32.344728Z K 7 svn:log V 205 MFC of 211422, tzdata2010l - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-17T12:17:42.622070Z K 7 svn:log V 205 MFC of 211422, tzdata2010l - Fix start times of DST for Egypt. - clocks were set back one hour at 2010-08-11 00:00:00 local time in Gaza and the West Bank. Obtained from: ftp://elsie.nci.nih.gov/pub/ END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-08-17T13:02:08.046616Z K 7 svn:log V 255 Make sure any -U CFLAGS are not filtered out when calling mkdep, as gnu/usr.bin/cc/libiberty first defines the PREFIX macro, and then undefines it again, so mkdep with clang complains. Submitted by: Dimitry Andric Reviewed by: ru END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-08-17T15:02:33.482100Z K 7 svn:log V 983 MFC r200442: Don't read the newline character to line buffer because lines are passed to wcscoll(3). Newline characters could cause incorrect results when comparing lines. Also, if an input line didn't contain a newline character, it was omitted from the output. According to my interpretation, SUSv3 requires that the newline is always printed. Add regression tests for the cases. PR: bin/140976 MFC r200604: - Prevent overflowing of the buffer length variable in getline() by limiting its maximum value. - Exit if reallocf(3) fails in getline(). Failure was silently considered as end-of-file. MFC r204896 by ache: Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to "binary comparison" instead. POSIX says: "The input files shall be text files", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too. MFC r204928 by ache: Add SIZE_MAX overflow check END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-08-17T15:07:23.064036Z K 7 svn:log V 1068 MFC r200633: Sync getline() with comm(1): - Prevent overflowing of the buffer length variable in getline() by limiting its maximum value. - Exit if reallocf(3) fails in getline(). Failure was silently considered as end-of-file. MFC r204803 by ache: 1) Rewrite input processing to not exit with error on the first EILSEQ found in the input data but fallback to "binary equal" check instead. POSIX says: "The input file shall be a text file", nothing more, so the text file with illegal sequence is valid input. BTW, GNU sort does not fails on EILSEQ too. 2) Speedup input processing a bit in complex cases like skipping fields, chars or ignore case. 3) Enforce the implied LINE_MAX limit (from POSIX definition of "text file" and POSIX uniq(1) description). MFC r204811 by ache: Remove vestiges of old %-format which prevents build on amd64 MFC r204876 by ache: 1) Reimplement (differently) unlimited line length restricted in prev. commit. 2) Honor missing the very last \n (if absent) on output. MFC r204927 by ache: Add SIZE_MAX overflow check END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-17T15:44:52.472295Z K 7 svn:log V 409 Add a new method to the PCI bridge interface, PCIB_POWER_FOR_SLEEP(). This method is used by the PCI bus driver to query the power management system to determine the proper device state to be used for a device during suspend and resume. For the ACPI PCI bridge drivers this calls acpi_device_pwr_for_sleep(). This removes ACPI-specific knowledge from the PCI and PCI-PCI bridge drivers. Reviewed by: jkim END K 10 svn:author V 3 uqs K 8 svn:date V 27 2010-08-17T16:25:44.525639Z K 7 svn:log V 142 MFC r203920,210755,210809,210827: - WARNS?=6 cleanup - fix timekeeping for user-supplied value n - de-obfuscate the timekeeping of now/delay END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-17T16:27:13.508569Z K 7 svn:log V 38 Add s25sl064a, an 8mb SPI flash part. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-17T16:41:16.572030Z K 7 svn:log V 309 Ensure a minimum "slop" of 10 extra pcb structures when providing a memory size estimate to userland for pcb list sysctls. The previous behavior of a "slop" of n/8 does not work well for small values of n (e.g. no slop at all if you have less than 8 open UDP connections). Reviewed by: bz MFC after: 1 week END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2010-08-17T17:11:15.067008Z K 7 svn:log V 162 Now is as good a time as any to find out if we induce breakage by issueing aborts for any pending commands when we're decommssioning a disk. MFC after: 3 months END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-08-17T17:30:56.070985Z K 7 svn:log V 79 Make `ping6 -I' work with net.inet6.ip6.use_defaultzone=1. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-17T20:26:17.001951Z K 7 svn:log V 225 Split kernel stage 3.2 (build everything) into 3.2 (build the kernel) and 3.3 (build the modules). IMHO, this makes it a little easier to track the progress of a kernel build using whereintheworld et al. MFC after: 3 weeks END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-08-17T20:39:28.643773Z K 7 svn:log V 454 For every instance of '.if ${CC} == "foo"' or '.if ${CC} != "foo"' in Makefiles or *.mk files, use ${CC:T:Mfoo} instead, so only the basename of the compiler command (excluding any arguments) is considered. This allows you to use, for example, CC="/nondefault/path/clang -xxx", and still have the various tests in bsd.*.mk identify your compiler as clang correctly. ICC if cases were also changed. Submitted by: Dimitry Andric END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-17T21:28:40.725163Z K 7 svn:log V 154 MFC 175682,175683,175686: Generally, anything that runs rc.d scripts internally should start using the quiet prefix (i.e. quietstart, quietstop, etc...). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-17T21:34:19.082693Z K 7 svn:log V 129 Keep the process locked when calling ktrops() or ktrsetchildren() instead of dropping the lock only to immediately reacquire it. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-18T00:26:14.015856Z K 7 svn:log V 81 Import initial AR91XX and AR724X CPU register definitions. Obtained from: Linux END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-08-18T07:31:28.652715Z K 7 svn:log V 101 - Correct the byte order of gids in sysctl. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-08-18T07:32:24.437421Z K 7 svn:log V 218 - Properly initialize the free dr bitmap. - Reset the leaf bitmap when freeing an idr item. - Add a lookup and assert after add to catch any other bugs early. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-08-18T07:34:58.571502Z K 7 svn:log V 158 - selwakeup() when we wakeup the recv_wait waiters as bsd select can not use the linux waitqueue. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-08-18T07:37:16.581240Z K 7 svn:log V 236 - Simplify makefiles now that /usr/include/infiniband exists. - Don't duplicate byteswap functionality contained elsewhere. - Disable umad debugging, it seems to work well now. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2010-08-18T07:38:13.371458Z K 7 svn:log V 113 Make return statements style(9) compliant in MIPS pmap.c Reported by: neel Reviewed by: neel (earlier version) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2010-08-18T07:39:18.711241Z K 7 svn:log V 157 - Linux uses __BYTE_ORDER and __*_ENDIAN. Define these from the single-underscore bsd versions. Sponsored by: Isilon Systems, iX Systems, and Panasas. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-18T08:22:09.157052Z K 7 svn:log V 317 Bring over the first cut of the Atheros-specific SoC operations. Each of these SoCs have different devices, different hardware initialisation methods and, quite likely, different quirks. These functions will abstract out the SoC differences and keep these differences out of the drivers (eg USB init, if_arge, etc.) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-18T08:22:58.405358Z K 7 svn:log V 87 Add a further register definition for USB device initialisation. Obtained from: Linux END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-18T09:11:45.284915Z K 7 svn:log V 64 Add a DDR flush function, inspired by both Linux and if_arge.c. END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-18T09:18:37.434784Z K 7 svn:log V 63 Revert r211436; it was a good idea, but not fully thought out. END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-08-18T09:28:12.042997Z K 7 svn:log V 252 When calculating the expected memory size for userspace, also take the number of syncache entries into account for the surplus we add to account for a possible increase of records in the re-entry window. Discussed with: jhb, silby MFC after: 1 week END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-08-18T12:09:27.877565Z K 7 svn:log V 223 For some setups sending data in 128kB chunks makes communication very slow. No idea why. 32kB on the other hand seems to work properly everywhere. Reported by: Thomas Steen Rasmussen MFC after: 3 weeks END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2010-08-18T12:52:21.870163Z K 7 svn:log V 661 MIPS n64 support - continued... 1. On n64, use XKPHYS to map page table pages instead of KSEG0. Maintain just one freepages list on n64. The changes are mainly to introduce MIPS_PHYS_TO_DIRECT(pa), MIPS_DIRECT_TO_PHYS(), which will use KSEG0 in 32 bit compilation and XKPHYS in 64 bit compilation. 2. Change macro based PMAP_LMEM_MAP1(), PMAP_LMEM_MAP2(), PMAP_LMEM_UNMAP() to inline functions. 3. Introduce MIPS_DIRECT_MAPPABLE(pa), which will further reduce the cases in which we will need to have a special case for 64 bit compilation. 4. Update CP0 hazard definitions for CPU_RMI - the cpu does not need any nops Reviewed by: neel END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-08-18T14:41:34.608394Z K 7 svn:log V 293 MFC r209614: - Don't assign the return value from read(2) to a variable of type int. - Use errx(3) instead of err(3) to print the error message on short reads in readlabel(). errno won't be set on short reads which can easily occur here due to the fixed size read request. PR: 144307 END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:38:10.929262Z K 7 svn:log V 72 Remove bintime_cmp() function, unused since r200086. MFC after: 1 week END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:49:44.616884Z K 7 svn:log V 96 MFC r208813: Fix attach errors handling. Found with: Coverity Prevent(tm) CID: 3424 END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:51:32.809688Z K 7 svn:log V 140 MFC r208814: Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4130 END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:52:38.154647Z K 7 svn:log V 128 MFC r208907: Disable NCQ and PMP support for VIA VT8251 AHCI. It was reported to be unreliable under load. Linux does the same. END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:55:20.714554Z K 7 svn:log V 96 MFC r208816: Fix attach errors handling. Found with: Coverity Prevent(tm) CID: 3477 END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:56:09.381810Z K 7 svn:log V 140 MFC r208817: Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4196 END K 10 svn:author V 3 mav K 8 svn:date V 27 2010-08-18T15:58:26.734359Z K 7 svn:log V 140 MFC r208818: Plug memory leak to silent Coverity. Error is still not really handled. Found with: Coverity Prevent(tm) CID: 4137 END K 10 svn:author V 5 andre K 8 svn:date V 27 2010-08-18T17:39:47.518366Z K 7 svn:log V 523 Untangle the net.inet.tcp.log_in_vain and net.inet.tcp.log_debug sysctl's and remove any side effects. Both sysctl's share the same backend infrastructure and due to the way it was implemented enabling net.inet.tcp.log_in_vain would also cause log_debug output to be generated. This was surprising and eventually annoying to the user. The log output backend is kept the same but a little shim is inserted to properly separate log_in_vain and log_debug and to remove any side effects. PR: kern/137317 MFC after: 1 week END K 10 svn:author V 5 gabor K 8 svn:date V 27 2010-08-18T17:40:10.066965Z K 7 svn:log V 275 - Refactor file reading code to use pure syscalls and an internal buffer instead of stdio. This gives BSD grep a very big performance boost, its speed is now almost comparable to GNU grep. Submitted by: Dimitry Andric Approved by: delphij (mentor) END K 10 svn:author V 5 andre K 8 svn:date V 27 2010-08-18T18:05:54.759324Z K 7 svn:log V 655 If a TCP connection has been idle for one retransmit timeout or more it must reset its congestion window back to the initial window. RFC3390 has increased the initial window from 1 segment to up to 4 segments. The initial window increase of RFC3390 wasn't reflected into the restart window which remained at its original defaults of 4 segments for local and 1 segment for all other connections. Both values are controllable through sysctl net.inet.tcp.local_slowstart_flightsize and net.inet.tcp.slowstart_flightsize. The increase helps TCP's slow start algorithm to open up the congestion window much faster. Reviewed by: lstewart MFC after: 1 week END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T20:23:47.249165Z K 7 svn:log V 258 Merge 210839 from head: Do not free sc if attach failed, as it was allocated by the bus infrastructure, not us. This appears to be a leftover from an older version of the driver. Submitted by: avg Tested by: Anton Shterenlikht END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T20:23:55.868975Z K 7 svn:log V 258 Merge 210839 from head: Do not free sc if attach failed, as it was allocated by the bus infrastructure, not us. This appears to be a leftover from an older version of the driver. Submitted by: avg Tested by: Anton Shterenlikht END K 10 svn:author V 6 jilles K 8 svn:date V 27 2010-08-18T20:26:50.337978Z K 7 svn:log V 45 sh: Add a test for break from a trap action. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T20:38:47.411949Z K 7 svn:log V 182 Merge r211077, r211079 from head: Correct two error messages to match the failure they are reporting. Correct the login.conf variable name used for obtaining the login prompt. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T20:39:00.113315Z K 7 svn:log V 182 Merge r211077, r211079 from head: Correct two error messages to match the failure they are reporting. Correct the login.conf variable name used for obtaining the login prompt. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T21:17:57.211139Z K 7 svn:log V 786 Merge r210524 from head: - Support two devices made by West Mountain Radio in uslcom(4) [1] - Remove duplicate SILABS CP2102 define from usbdevs Merge r211022 from head: Sync the list of devices supported by uslcom(4) with NetBSD, Linux, OpenBSD and BeOS. The devices supported by uslcom(4) are now in sync with: NetBSD src/sys/dev/usb/uslsa.c 1.11 OpenBSD src/sys/dev/usb/uslcom.c 1.20 Linux source/drivers/usb/serial/cp210x.c from kernel 2.6.35 BeOS usb_serial/driver.c 1.32 Two vendor/product IDs from Linux have not been added to uslcom(4): SILABS SAEL - This device has special code in u3g to support it SILABS GSM2228 - I suspect this should also be covered by u3g(4). PR: usb/131912 [1] Submitted by: Jack Twilley [1] END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T21:39:42.489069Z K 7 svn:log V 137 Merge r210556 from head: Support the Pyramid KBS USB LCD under uftdi(4) PR: usb/129758 Submitted by: joao lima END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T21:44:50.781041Z K 7 svn:log V 159 Merge r210571 from head: Add support for the Corega CG-USBRS232R to uplcom(4) PR: usb/129173 Submitted by: SHIMAOKA Shunsuke END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-18T21:51:05.867789Z K 7 svn:log V 159 Merge r210571 from head: Add support for the Corega CG-USBRS232R to uplcom(4) PR: usb/129173 Submitted by: SHIMAOKA Shunsuke END K 10 svn:author V 3 pjd K 8 svn:date V 27 2010-08-18T22:06:43.973319Z K 7 svn:log V 12 More tests. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-08-19T01:34:00.962133Z K 7 svn:log V 173 Check return value of dup(), it could be -1 when the system is running out of file descriptors for instance. Found with: Coverity Prevent(tm) CID: 6084 MFC after: 1 month END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:03:12.098434Z K 7 svn:log V 612 Preparation work for supporting the AR91xx and AR724x. * Implement a SoC probe function, from Linux, which determines the SoC family, type and revision. This only probes the AR71xx series SoC and (currently) panics on others. * Migrate some of the AR71XX specific hardware init (USB device, determining system frequencies) into using the cpuops introduced in an earlier commit. Other SoC specific hardware stuff (per-device flush/WB, GPIO pin wiring, Ethernet PLL setup, other things I've likely missed) will be introduced in subsequent commits. Reviewed by: imp@ Obtained from: (partially) Linux END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:04:35.108028Z K 7 svn:log V 81 Make if_arge use the new cpuops rather than hard coding the DDR flush registers. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:05:16.773482Z K 7 svn:log V 105 Make the PCI initialisation path use the new cpuops rather than directly programming the reset register. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:10:05.937619Z K 7 svn:log V 48 Remove the now-unused DDR flush register value. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:12:04.717253Z K 7 svn:log V 50 Migrate the CPU reset path to use the new cpuops. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:14:53.691229Z K 7 svn:log V 79 Initialise the USB system using cpuops rather than the AR71XX specific method. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T02:15:39.877963Z K 7 svn:log V 25 Remove now unused 'reg'. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-08-19T03:19:26.365724Z K 7 svn:log V 164 Unbreak the LINT kernel on powerpc64. Note that the LINT kernel configuration is TARGET_ARCH specific and must be generated with TARGET_ARCH set. Reviewed by: imp END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T03:31:26.614037Z K 7 svn:log V 34 First cut at mips n64 ABI support END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T05:59:27.931322Z K 7 svn:log V 168 Various updates to support new pc-sysinstall directive "installPackages" that will install packages and all package dependencies. PR: 148606 Submitted by: John Hixon END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T06:01:25.183590Z K 7 svn:log V 104 Updates to pc-sysinstall that allow FTP installation of FreeBSD. PR: 148661 Submitted by: John Hixson END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T06:02:31.675515Z K 7 svn:log V 144 Some cleanup, changed some echo's to echo_log, check for PROGDIR so that different PROGDIR's can be set. PR: 148806 Submitted by: John Hixson END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T06:05:05.317386Z K 7 svn:log V 123 Simple patch to add support zpool virtual devices that are not currently supported. PR: 149599 Submitted by: John Hixson END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T06:07:49.514835Z K 7 svn:log V 120 Added "-m" option to "disk-list" to list memory disks along with standard disks. PR: 149749 Submitted by: John Hixson END K 10 svn:author V 3 imp K 8 svn:date V 27 2010-08-19T06:11:06.840995Z K 7 svn:log V 247 This patch to pc-sysinstall allows the setting of a new config variable for installation, which lets the user/front-end select between MBR or GPT partitioning schemes when doing a dedicated disk installation. PR: 149772 Submitted by: Kris Moore END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-19T07:54:15.287166Z K 7 svn:log V 299 Merge r208016 from head: Add new FTDI USB device ID for the Gamma-Scout radioactivity meter. [1] Merge r210556 from head: Support the Pyramid KBS USB LCD under uftdi(4) [2] PR: kern/146483 [1] usb/129758 [2] Submitted by: Andre Albsmeier [1] Submitted by: joao lima [2] END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-19T08:03:35.989861Z K 7 svn:log V 43 Mark r210571 as merged, missed in r211473. END K 10 svn:author V 5 gavin K 8 svn:date V 27 2010-08-19T08:11:07.005115Z K 7 svn:log V 179 Merge r186427 from head (original commit by remko): Add support for the MaxSream USB test carrier. PR: usb/117546 Submitted by: Daniel J. O'Connor END K 10 svn:author V 3 kib K 8 svn:date V 27 2010-08-19T08:50:11.508927Z K 7 svn:log V 51 MFC r210631: Add compat32 shims for opencrypto(4). END K 10 svn:author V 8 netchild K 8 svn:date V 27 2010-08-19T09:00:17.990609Z K 7 svn:log V 914 MFC r209195: Add a periodic zfs scrub script. Features: - configurable amount of days between scrubs (default value or per pool) - do not scrub directly after pool creation (respects the configured number of days between scrubs) - do not scrub if a scrub is in progress - tells how to see the status of the scrub - tells how many days since the last scrub if it skips the scrubbing - warns if a non-existent pool is specified explicitely (default: no pools specified -> all currently imported pools are handled) - runs late in the periodic run to not slow down the other periodic daily scripts r209250: - connect the zfs scrub script - move the zfs status script into the MK_ZFS conditional to respect WITHOUT_ZFS r209253: Add the ZFS periodic daily scripts to the ZFS part. (make delete-old) Requested by: "J. Hellenthal" PR: 149271 END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-19T09:28:59.829796Z K 7 svn:log V 16 UTFize my name. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T11:16:52.262429Z K 7 svn:log V 26 style(9) pick from imp@ . END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T11:18:50.305773Z K 7 svn:log V 21 Add missing licence. END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-19T11:19:21.598203Z K 7 svn:log V 61 expand_number(3) takes a uint64_t * now. MFC after: 3 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2010-08-19T11:20:24.865860Z K 7 svn:log V 108 expand_number(3) takes a uint64_t * now; intmax_t was never correct except by accident. MFC after: 3 weeks END K 10 svn:author V 6 anchie K 8 svn:date V 27 2010-08-19T11:31:03.935172Z K 7 svn:log V 800 MFp4: anchie_soc2009 branch: Add kernel side support for Secure Neighbor Discovery (SeND), RFC 3971. The implementation consists of a kernel module that gets packets from the nd6 code, sends them to user space on a dedicated socket and reinjects them back for further processing. Hooks are used from nd6 code paths to divert relevant packets to the send implementation for processing in user space. The hooks are only triggered if the send module is loaded. In case no user space application is connected to the send socket, processing continues normaly as if the module would not be loaded. Unloading the module is not possible at this time due to missing nd6 locking. The native SeND socket is similar to a raw IPv6 socket but with its own, internal pseudo-protocol. Approved by: bz (mentor) END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T11:40:10.021247Z K 7 svn:log V 418 Add initial Atheros AR91XX support. This works well enough to bring a system up to single-user mode using an MDROOT. Known Issues: * The EHCI USB doesn't currently work and will panic the kernel during attach. * The onboard ethernet won't work until the PLL routines have been fleshed out and shoe-horned into if_arge. * The WMAC device glue (and quite likely the if_ath support) hasn't yet been implemented. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T11:53:55.308765Z K 7 svn:log V 225 Add some initial AR724X chipset support. This is untested but should at least allow an AR724X to boot. The current code is lacking the detail needed to expose the PCIe bus. It is also lacking any NIC, PLL or flush/WB code. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T12:52:49.794313Z K 7 svn:log V 24 Fix mistaken indenting. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2010-08-19T12:59:57.238172Z K 7 svn:log V 312 Remove unneeded casts in inline assembly in contrib/gcc/longlong.h, which are apparently "heinous" GNU extensions, so clang can compile this without using the -fheinous-gnu-extensions option. Results in *no* binary change, neither with clang, nor with gcc. Submitted by: Dimitry Andric END K 10 svn:author V 8 netchild K 8 svn:date V 27 2010-08-19T13:24:13.941015Z K 7 svn:log V 1139 sort of MFC: r211495 was supposed to add this script from HEAD, and while the merge seems to have been successful, the script does not show up in releng-8. This is a "svn copy head/.../800.zfs-scrub ." as retrying the svn merge does not result in the file showing up. This may not be the best way to fix the problem in svn, but it is the only way I'm aware of to fix the stable branch (which is IMO more important than to use a potential best way I'm not aware of). Relevant commit log for this file (r209195): Add a periodic zfs scrub script. Features: - configurable amount of days between scrubs (default value or per pool) - do not scrub directly after pool creation (respects the configured number of days between scrubs) - do not scrub if a scrub is in progress - tells how to see the status of the scrub - tells how many days since the last scrub if it skips the scrubbing - warns if a non-existent pool is specified explicitely (default: no pools specified -> all currently imported pools are handled) - runs late in the periodic run to not slow down the other periodic daily scripts END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-08-19T15:33:43.652566Z K 7 svn:log V 221 MFC r208951: Add a new function devfs_parent_dirent() for resolving devfs parent directory entry. Use the new function in devfs_fqpn(), devfs_lookupx() and devfs_vptocnp() instead of manually resolving the parent entry. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-19T15:55:50.923734Z K 7 svn:log V 65 Remove an unused macro. exit1() invokes ktrprocexit() directly. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T16:15:30.898555Z K 7 svn:log V 36 add the PLL set functions to cpuops END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T16:25:15.462197Z K 7 svn:log V 293 Implement PLL generalisation in preparation for use in if_arge. * Add a function to write to the relevant PLL register * Break out the PLL configuration for the AR71XX into the CPU ops, lifted from if_arge.c. * Add the AR91XX PLL configuration ops, using the AR91XX register definitions. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2010-08-19T16:29:08.645301Z K 7 svn:log V 95 Migrate if_arge to use the PLL cpuops. This has been lightly tested on the AR7161 and AR9132. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-19T16:38:58.545247Z K 7 svn:log V 186 Fix a whitespace nit and remove a questioning comment. STAILQ_CONCAT() does require the STAILQ the existing list is being added to to already be initialized (it is CONCAT() vs MOVE()). END K 10 svn:author V 2 jh K 8 svn:date V 27 2010-08-19T16:39:00.471222Z K 7 svn:log V 85 Call dev_rel() in error paths. Reported by: kib Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-19T16:40:30.898650Z K 7 svn:log V 246 There isn't really a need to hold the ktrace mutex just to read the value of p_traceflag that is stored in the kinfo_proc structure. It is still racey even with the lock and the code will read a consistent snapshot of the flag without the lock. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-19T16:41:27.841756Z K 7 svn:log V 31 Remove unused KTRACE includes. END K 10 svn:author V 3 jfv K 8 svn:date V 27 2010-08-19T17:00:33.525755Z K 7 svn:log V 147 Eliminate the ambiguous queue setting logic for the VF, it made it possible to have 2 queues which we don't want, the HOST is unable to handle it. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2010-08-19T21:59:39.625099Z K 7 svn:log V 87 '\0' -> 0 Fix silly mistake by being overly zeaolous[sp] of applying the style rules. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-08-19T22:37:43.460700Z K 7 svn:log V 226 Revert part of the r211149 as I erroneously ported the logical_cpus from Yahoo! patchset as a mask (and according manipulating variables) while it is actually a CPU count. Submitted by: neel MFC after: 1 month X-MFC: 211149 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2010-08-19T22:55:17.972699Z K 7 svn:log V 277 Revert a minor part of revision 211364: - Imply -h if single file is grepped, this is the GNU behaviour This is already done by code above the change and have caused a regression since this instance of code does not check Hflag. Reported by: davidxu Pointy hat to: delphij END K 10 svn:author V 6 anchie K 8 svn:date V 27 2010-08-19T23:16:44.845394Z K 7 svn:log V 168 Fix mbuf leakages and remove unneccessary duplicate mbuf frees. Use the right copy of an mbuf for the IP6_EXTHDR_CHECK. Reported by: zec, hrs Approved by: bz (mentor) END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2010-08-20T01:23:17.309485Z K 7 svn:log V 97 FPU EMU is 32-bit only for now, so mark it as a powerpc-only feature. This fixes powerpc64 LINT. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-08-20T04:15:05.381026Z K 7 svn:log V 105 According to specification, function fcntl() is a cancellation point only when cmd argument is F_SETLKW. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-08-20T04:28:30.373428Z K 7 svn:log V 147 If thread set a TDP_WAKEUP for itself, clears the flag and returns EINTR immediately, this is used for implementing reliable pthread cancellation. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-08-20T05:15:39.765323Z K 7 svn:log V 1727 In current implementation, thread cancellation is done in signal handler, which does not know what is the state of interrupted system call, for example, open() system call opened a file and the thread is still cancelled, result is descriptor leak, there are other problems which can cause resource leak or undeterminable side effect when a thread is cancelled. However, this is no longer true in new implementation. In defering mode, a thread is canceled if cancellation request is pending and later the thread enters a cancellation point, otherwise, a later pthread_cancel() just causes SIGCANCEL to be sent to the target thread, and causes target thread to abort system call, userland code in libthr then checks cancellation state, and cancels the thread if needed. For example, the cancellation point open(), the thread may be canceled at start, but later, if it opened a file descriptor, it is not canceled, this avoids file handle leak. Another example is read(), a thread may be canceled at start of the function, but later, if it read some bytes from a socket, the thread is not canceled, the caller then can decide if it should still enable cancelling or disable it and continue reading data until it thinks it has read all bytes of a packet, and keeps a protocol stream in health state, if user ignores partly reading of a packet without disabling cancellation, then second iteration of read loop cause the thread to be cancelled. An exception is that the close() cancellation point always closes a file handle despite whether the thread is cancelled or not. The old mechanism is still kept, for a functions which is not so easily to fix a cancellation problem, the rough mechanism is used. Reviewed by: kib@ END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-08-20T12:26:02.857715Z K 7 svn:log V 354 MFC r211115: MFp4 CH180235: Add proto spacers to inet6sw like we have for legacy IP. This allows us to dynamically pf_proto_register() for INET6 from modules, needed by upcoming CARP changes and SeND. MC and SCTP could make use of it as well in theory in the future after upcoming VIMAGE vnet teardown work. Discussed with: will, anchie END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-08-20T13:42:48.507587Z K 7 svn:log V 42 Reduce redundant code. Submitted by: kib END K 10 svn:author V 2 bz K 8 svn:date V 27 2010-08-20T15:26:09.234832Z K 7 svn:log V 354 MFC r211115: MFp4 CH180235: Add proto spacers to inet6sw like we have for legacy IP. This allows us to dynamically pf_proto_register() for INET6 from modules, needed by upcoming CARP changes and SeND. MC and SCTP could make use of it as well in theory in the future after upcoming VIMAGE vnet teardown work. Discussed with: will, anchie END K 10 svn:author V 7 attilio K 8 svn:date V 27 2010-08-20T16:00:36.547109Z K 7 svn:log V 379 - Daemonize the server after the initial setup. - Use syslog(3) interface in order to store the errors, warnings and normal output after the daemonization. TODO (in this area): - Fix eventual unhandled/mishandled error conditions - Fix message ordering/printout of error conditions and make them uniform - Offer structured API for dealing with prints on infofile and corefile END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2010-08-20T17:20:05.812105Z K 7 svn:log V 94 Revert r211434. Offline discussions have convinced me that this should be left alone for now. END K 10 svn:author V 3 ume K 8 svn:date V 27 2010-08-20T17:52:49.105105Z K 7 svn:log V 18 optp may be NULL. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-20T19:46:50.489458Z K 7 svn:log V 499 Add dedicated routines to toggle lockmgr flags such as LK_NOSHARE and LK_CANRECURSE after a lock is created. Use them to implement macros that otherwise manipulated the flags directly. Assert that the associated lockmgr lock is exclusively locked by the current thread when manipulating these flags to ensure the flag updates are safe. This last change required some minor shuffling in a few filesystems to exclusively lock a brand new vnode slightly earlier. Reviewed by: kib MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-20T20:33:13.644504Z K 7 svn:log V 99 MFC: Use VN_LOCK_AREC() and VN_LOCK_ASHARE() rather than manipulating lockmgr lock flags directly. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2010-08-20T20:58:57.776036Z K 7 svn:log V 598 Revert 210173 as it did not properly fix the bug. It assumed that the VI_LOCK() for a given vnode was used as the internal interlock for that vnode's v_lock lockmgr lock. This is not the case. Instead, add dedicated routines to toggle the LK_NOSHARE and LK_CANRECURSE flags. These routines lock the lockmgr lock's internal interlock to synchronize the updates to the flags member with other threads attempting to acquire the lock. The VN_LOCK_A*() macros now invoke these routines, and the softupdates code uses these routines to temporarly enable recursion on buffer locks. Reviewed by: kib END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2010-08-20T23:51:34.296306Z K 7 svn:log V 33 make sure thread lock is locked. END