ĵH237352 158 1206 164 264 151 122 149 235 325 171 169 169 154 321 1505 611 159 112 157 136 136 206 206 157 162 355 115 374 374 751 751 610 610 1266 1266 307 220 186 186 110 279 157 332 229 340 158 243 494 108 287 250 143 320 418 154 471 127 351 251 283 122 116 170 172 235 235 235 214 214 214 251 251 251 251 235 235 235 235 176 207 612 153 1398 555 177 163 424 113 184 338 123 106 254 222 394 261 222 3965 337 229 514 1044 131 196 193 263 263 288 240 348 415 758 249 626 147 413 99 472 348 350 163 163 1138 932 383 176 219 234 309 246 195 99 130 244 374 374 376 140 140 268 191 155 144 167 385 272 543 302 862 313 861 639 213 213 310 524 484 484 129 K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-06-21T04:02:07.006739Z K 7 svn:log V 1107 MFC of 236937 In softdep_setup_inomapdep() we may have to allocate both inodedep and bmsafemap dependency structures in inodedep_lookup() and bmsafemap_lookup() respectively. The setup of these structures must be done while holding the soft-dependency mutex. If the inodedep is allocated first, it may be freed in the I/O completion callback when the mutex is released to allocate the bmsafemap. If the bmsafemap is allocated first, it may be freed in the I/O completion callback when the mutex is released to allocate the inodedep. To resolve this problem, bmsafemap_lookup has had a parameter added that allows a pre-malloc'ed bmsafemap to be passed in so that it does not need to release the mutex to create a new bmsafemap. The softdep_setup_inomapdep() routine pre-malloc's a bmsafemap dependency before acquiring the mutex and starting to build the inodedep with a call to inodedep_lookup(). The subsequent call to bmsafemap_lookup() is passed this pre-allocated bmsafemap entry so that it need not release the mutex if it needs to create a new one. Reported by: Peter Holm Tested by: Peter Holm END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T04:28:57.921707Z K 7 svn:log V 73 Fix copy/paste bug. Also od_flags now in the bdinfo structure, fix this. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T04:39:10.573076Z K 7 svn:log V 172 BD_LABELOK flag was removed, also internal information from disklabel now isn't accessible. So, remove its last usage. It seems that doesn't matter is it SCSI or IDE disk. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T04:51:34.543503Z K 7 svn:log V 60 Connect part.c to the build. Also, GPT support needs crc32. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T04:52:26.719720Z K 7 svn:log V 31 Enable MBR support by default. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2012-06-21T04:57:59.051539Z K 7 svn:log V 56 Remove Moxa CP-132EL definition (RS422/485-only board). END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-21T07:16:12.231251Z K 7 svn:log V 139 Initial hacky qt4 experiment in plotting some pcap data. This is very dirty but it's good enough to look over some basic packet captures. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T07:19:39.404528Z K 7 svn:log V 233 When we read partition tables we use bd_read, that directly reads from device bypassing bd_strategy. So we need add od_boff if we want read nested partition tables. Also, when we open MBR slice, try to detect nested partition table. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T07:48:14.528114Z K 7 svn:log V 80 Pass additional arguments to the printing function via bd_print_args structure. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-21T08:35:47.138858Z K 7 svn:log V 77 MFC r237061: Make sure that fstab fd is not leaked on exec. PR: kern/169023 END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-21T08:55:07.425431Z K 7 svn:log V 77 MFC r237061: Make sure that fstab fd is not leaked on exec. PR: kern/169023 END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-21T09:08:11.511602Z K 7 svn:log V 58 Fix couple off-by-ones when traversing source nodes hash. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-21T09:12:33.345951Z K 7 svn:log V 224 Finish what leaked into r237363: - remove the sx lock for pf_ioctl(). I believe correct use of PF_RULES_WLOCK() is sufficient to protect concurrent ioctl() calls from each other. - inline init_pf_mutex/destroy_pf_mutex. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-21T09:19:41.638851Z K 7 svn:log V 1411 Fix locking for f_offset, vn_read() and vn_write() cases only, for now. It seems that intended locking protocol for struct file f_offset field was as follows: f_offset should always be changed under the vnode lock (except fcntl(2) and lseek(2) did not followed the rules). Since read(2) uses shared vnode lock, FOFFSET_LOCKED block is additionally taken to serialize shared vnode lock owners. This was broken first by enabling shared lock on writes, then by fadvise changes, which moved f_offset assigned from under vnode lock, and last by vn_io_fault() doing chunked i/o. More, due to uio_offset not yet valid in vn_io_fault(), the range lock for reads was taken on the wrong region. Change the locking for f_offset to always use FOFFSET_LOCKED block, which is placed before rangelocks in the lock order. Extract foffset_lock() and foffset_unlock() functions which implements FOFFSET_LOCKED lock, and consistently lock f_offset with it in the vn_io_fault() both for reads and writes, even if MNTK_NO_IOPF flag is not set for the vnode mount. Indicate that f_offset is already valid for vn_read() and vn_write() calls from vn_io_fault() with FOF_OFFSET flag, and assert that all callers of vn_read() and vn_write() follow this protocol. Extract get_advice() function to calculate the POSIX_FADV_XXX value for the i/o region, and use it were appropriate. Reviewed by: jhb Tested by: pho MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-21T09:20:07.868494Z K 7 svn:log V 518 Fix unbounded-length malloc, controlled from usermode. The added check is performed before exact size of the buffer is calculated, but the buffer cannot have size greater then the total space allocated for extended attributes. The existing check is executing with precise size, but it is too late, since buffer needs to be allocated in advance. Also, adapt to uio_resid being of ssize_t type. Use lblktosize instead of multiplying by fs block size by hand as well. Reported and tested by: pho MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-21T09:26:06.620089Z K 7 svn:log V 67 Enable deadlock avoidance code for NFS client. MFC after: 2 weeks END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-21T09:46:22.762407Z K 7 svn:log V 16 Finish r237312. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-21T09:47:05.360248Z K 7 svn:log V 61 Use the pf_rules_lock to correctly finish the expiry thread. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T09:48:13.610517Z K 7 svn:log V 41 MFC: r237234 Avoid hard sentence break. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T09:48:21.116453Z K 7 svn:log V 41 MFC: r237234 Avoid hard sentence break. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T09:57:29.627916Z K 7 svn:log V 110 MFC: r237235 Document the hw.ahci.force tunable here, too, as it's also used by ataahci(4) and atanvidia(4). END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T09:57:34.254102Z K 7 svn:log V 110 MFC: r237235 Document the hw.ahci.force tunable here, too, as it's also used by ataahci(4) and atanvidia(4). END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T10:03:48.425182Z K 7 svn:log V 66 Implement DIOSGSECTORSIZE and DIOCGMEDIASIZE ioctls for biosdisk. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T10:06:00.813076Z K 7 svn:log V 71 Teach ZFS code iterate partition tables on device probe using new API. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-21T10:21:14.265481Z K 7 svn:log V 258 - To free all rules when shutting down we need to perform a couple of scans. Do this and provide some comments to explain what is going on here. - We can't call into pf_purge_unlinked_rules() with rules lock held, since it would obtain it exclusively. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T10:21:33.878929Z K 7 svn:log V 24 Include ioctl in devsw. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-21T10:28:59.464035Z K 7 svn:log V 281 MFC r236952: - Limit r214102 workaround to only x86. On arm it causes more problems then solves because of cache coherency issues. This fixes periodic error messages on console and command timeouts. - Patch SATA PHY configuration for 65nm SoCs to improve SNR same as Linux does. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-21T10:41:27.371021Z K 7 svn:log V 281 MFC r236952: - Limit r214102 workaround to only x86. On arm it causes more problems then solves because of cache coherency issues. This fixes periodic error messages on console and command timeouts. - Patch SATA PHY configuration for 65nm SoCs to improve SNR same as Linux does. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:06:29.520233Z K 7 svn:log V 655 MFC: r230242, r237102, r237236 - Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter. This includes adding support for skipping FTDI interfaces used for JTAG leaving them for userland and just attaching to the RS232 half, similarly to how the corresponding Linux drivers handles these kind of adapters. While at it, sort uftdi_devs and return BUS_PROBE_SPECIFIC (because uftdi_probe() alters the instance variables for better or worse as do other probe routines of USB drivers) instead of 0. - Remove duplicated entries for BeagleBone. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. - Remove some stray lines. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:06:31.124909Z K 7 svn:log V 655 MFC: r230242, r237102, r237236 - Add support for the FT2232 based egnite Turtelizer 2 JTAG/RS232 Adapter. This includes adding support for skipping FTDI interfaces used for JTAG leaving them for userland and just attaching to the RS232 half, similarly to how the corresponding Linux drivers handles these kind of adapters. While at it, sort uftdi_devs and return BUS_PROBE_SPECIFIC (because uftdi_probe() alters the instance variables for better or worse as do other probe routines of USB drivers) instead of 0. - Remove duplicated entries for BeagleBone. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. - Remove some stray lines. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:10:49.892702Z K 7 svn:log V 514 MFC: r237239 Revert the part of r236495 (MFC'ed to stable/9 in r237095) that introduced checking of SPI_SR_TXEMPTY for TX transfer completion as for reasons unknown this occasionally causes SPI_SR_RXBUFF and SPI_SR_ENDRX to not rise. In any case, once the RX part of the transfer is done it's obvious that the preceding TX part had finished and checking of SPI_SR_TXEMPTY was introduced to rule out a possible cause for the data corruption mentioned in r236495 but which didn't turn out to be the problem anyway. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:10:55.280984Z K 7 svn:log V 514 MFC: r237239 Revert the part of r236495 (MFC'ed to stable/8 in r237096) that introduced checking of SPI_SR_TXEMPTY for TX transfer completion as for reasons unknown this occasionally causes SPI_SR_RXBUFF and SPI_SR_ENDRX to not rise. In any case, once the RX part of the transfer is done it's obvious that the preceding TX part had finished and checking of SPI_SR_TXEMPTY was introduced to rule out a possible cause for the data corruption mentioned in r236495 but which didn't turn out to be the problem anyway. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:16:05.438262Z K 7 svn:log V 1169 MFC: r236496 - Loop up to 3 seconds when waiting for a device to get ready. [1] - Make the device description match the driver name. - Identify the chip variant based on the JEDEC and use that information to use the proper values for page count, offset and size instead of hardcoding a AT45DB642x with 2^N byte page support disabled. - Take advantage of bioq_takefirst(). - Given that CONTINUOUS_ARRAY_READ_HF (0x0b) command isn't even mentioned in Atmel's DataFlash Application Note, as suggested by the previous comment may not work on all all devices and actually doesn't properly on at least AT45DB321D (JEDEC 0x1f2701), rewrite at45d_task() to use CONTINUOUS_ARRAY_READ (0xe8) for reading instead. This rewrite is laid out in a way allowing to easily add support for BIO_DELETE later on. - Add support for reads and writes not starting on a page boundary. - Verify the flash content after writing. - Let at45d_task() gracefully handle errors on SPI transfers and the device not becoming ready afterwards again. [1] - Use DEVMETHOD_END. [1] - Use NULL instead of 0 for pointers. [1] Additional testing by: Ian Lepore Submitted by: Ian Lepore [1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:16:13.058171Z K 7 svn:log V 1169 MFC: r236496 - Loop up to 3 seconds when waiting for a device to get ready. [1] - Make the device description match the driver name. - Identify the chip variant based on the JEDEC and use that information to use the proper values for page count, offset and size instead of hardcoding a AT45DB642x with 2^N byte page support disabled. - Take advantage of bioq_takefirst(). - Given that CONTINUOUS_ARRAY_READ_HF (0x0b) command isn't even mentioned in Atmel's DataFlash Application Note, as suggested by the previous comment may not work on all all devices and actually doesn't properly on at least AT45DB321D (JEDEC 0x1f2701), rewrite at45d_task() to use CONTINUOUS_ARRAY_READ (0xe8) for reading instead. This rewrite is laid out in a way allowing to easily add support for BIO_DELETE later on. - Add support for reads and writes not starting on a page boundary. - Verify the flash content after writing. - Let at45d_task() gracefully handle errors on SPI transfers and the device not becoming ready afterwards again. [1] - Use DEVMETHOD_END. [1] - Use NULL instead of 0 for pointers. [1] Additional testing by: Ian Lepore Submitted by: Ian Lepore [1] END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T11:23:38.375412Z K 7 svn:log V 211 MFC: r235348, r236191, r236497 Add glue/support for the SAM9XE512-based Ethernut 5 boards. Currently, all integrated and on-board peripherals except NAND Flash (missing NAND framework/integration) are working. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-21T11:39:56.969484Z K 7 svn:log V 123 Exclude dump pages for the moment. They should be mapped into the kernel virtual address area before they can really work. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T12:10:08.828836Z K 7 svn:log V 91 MFC: r231617 Add ARM relocations types used for thread-local storage Reviewed by: cognet END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T12:10:09.173659Z K 7 svn:log V 91 MFC: r231617 Add ARM relocations types used for thread-local storage Reviewed by: cognet END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T12:26:12.864973Z K 7 svn:log V 19 Add VTOC8 support. END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T12:47:21.173507Z K 7 svn:log V 187 MFC r237057: Always reconstruct partition entries in the PMBR when Boot Camp is disabled. This helps to easily recover from situations when PMBR is damaged and contains no entries. END K 10 svn:author V 6 tuexen K 8 svn:date V 27 2012-06-21T12:51:24.295496Z K 7 svn:log V 62 Remove redundant #ifdef. Reported by gnn@. MFC after: 3 days END K 10 svn:author V 6 issyl0 K 8 svn:date V 27 2012-06-21T12:52:15.591321Z K 7 svn:log V 236 Add more locale-specific functions to the relevant man pages: - libc/string/strcoll.3 - libc/string/strstr.3 - libc/string/strxfrm.3 - libc/string/strcasecmp.3 Reviewed by: theraven, gabor Approved by: gabor (mentor) MFC after: 5 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T13:01:00.675640Z K 7 svn:log V 133 MFC: r231618, r233231 (partial) Add thread-local storage support for ARM to rtld-elf Reviewed by: cognet Obtained from: NetBSD END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T13:39:56.328077Z K 7 svn:log V 244 MFC: r232582 (partial) - Switch ARM to TLS Variant I. - Fix TLS allocation for Variant I: both rtld and libc allocators assume that tls_static_space includes space for TLS structure. So increment calculated static size by the size of it. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T13:51:50.841424Z K 7 svn:log V 63 MFC: r233106, r233107 Fix TLS for statically linked binaries. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-21T13:53:28.724913Z K 7 svn:log V 147 MFC: r231619 Add thread-local storage support for arm: - Switch to Variant I TCB layout - Use function from rtld for TCB allocation/deallocation END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-21T14:35:46.768171Z K 7 svn:log V 401 In camisr() clear CAM_SIM_ON_DONEQ flag after camisr_runqueue() purged SIM done queue. Clearing it before caused extra SIM queueing in some cases. It was invisible during normal operation, but during USB device unplug and respective SIM destruction it could keep pointer on SIM without having counted reference and as result crash the system by use afer free. Reported by: hselasky MFC after: 1 week END K 10 svn:author V 2 ae K 8 svn:date V 27 2012-06-21T14:37:05.879960Z K 7 svn:log V 17 Sync with head/. END K 10 svn:author V 7 fabient K 8 svn:date V 27 2012-06-21T14:55:35.160333Z K 7 svn:log V 190 MFC r221839: Allow direct children of PCI-ISA bridges to allocate resources from the parent PCI bus. Heavily inspired by jhb@ and a similar implementation present in sys/dev/pci/vga_pci.c. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-21T15:14:51.215039Z K 7 svn:log V 157 Make cam_periph_hold() behavior consistent: drop taken reference and return ENXIO if periph was invalidated while we were waiting for it. MFC after: 1 week END K 10 svn:author V 6 obrien K 8 svn:date V 27 2012-06-21T15:47:06.017059Z K 7 svn:log V 48 Be explicit about the dependency on nsparser.h. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-21T16:21:31.394025Z K 7 svn:log V 223 Until console is not working, redirect the output of panic on the emergency console. This is a bit hackish as it uses an MD interface on MI directly, but this code is thought to be removed soon anyway. Reviewed by: cherry END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-21T16:37:36.333256Z K 7 svn:log V 325 Update the PV stats in free_pv_entry() using atomics. After which, it is no longer necessary for free_pv_entry() to be serialized by the pvh global lock. Retire pmap_insert_entry() and pmap_remove_entry(). Once upon a time, these functions were called from multiple places within the pmap. Now, each has only one caller. END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-06-21T16:48:56.596074Z K 7 svn:log V 58 MFC r237197: - Resotre LCD brightness level on resuming. END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-06-21T16:49:20.047529Z K 7 svn:log V 378 Bring a couple of fixes for gcc optimizations. The GCC4.3 branch contains some optimization fixes that were not considered regressions and therefore were never backported. We are bringing a couple of them that are under GPLv2 since they were made before the license switch upstream. While here, add the GCC revision numbers in the log. Discussed with: jkim MFC after: 1 week END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-06-21T16:53:52.975152Z K 7 svn:log V 35 Regression test for r237366 added. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-06-21T18:22:50.580798Z K 7 svn:log V 257 Fix "comparison is always true due to limited range of data type" warning from GCC in the base system. Note this patch was submitted upstream and it will appear in the next ACPICA release. Discussed with: Moore, Robert (robert dot moore at intel dot com) END K 10 svn:author V 6 issyl0 K 8 svn:date V 27 2012-06-21T18:28:48.268044Z K 7 svn:log V 155 Add the functions documented in the man pages in commit 237393 to the relevant Makefile. Reminded by: gavin Approved by: gabor (mentor) MFC after: 5 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-21T21:47:08.023014Z K 7 svn:log V 186 MFV: Update zlib to 1.2.7. (x86 assembler optimization disabled for now because it requires the new .cfi_* directives that is not supported by base system binutils). MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2012-06-21T22:06:57.463204Z K 7 svn:log V 27 Add PCI IDs for Ivy Bridge END K 10 svn:author V 4 jkim K 8 svn:date V 27 2012-06-22T00:40:44.894274Z K 7 svn:log V 23 Merge ACPICA 20120620. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-22T00:41:37.372108Z K 7 svn:log V 75 Change the plot type to be a small cross rather than a single pixel point. END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-06-22T05:01:36.249823Z K 7 svn:log V 80 Introduce CHANGE_PV_LIST_LOCK_TO_{PHYS,VM_PAGE}() to avoid duplication of code. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:23:39.762441Z K 7 svn:log V 139 MFC r237258: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:23:49.416643Z K 7 svn:log V 139 MFC r237258: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:23:49.524265Z K 7 svn:log V 139 MFC r237258: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:36:37.568883Z K 7 svn:log V 118 MFC r236376: Add characters mapping for codepages used in Germany. PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:36:42.865091Z K 7 svn:log V 118 MFC r236376: Add characters mapping for codepages used in Germany. PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:36:50.287904Z K 7 svn:log V 118 MFC r236376: Add characters mapping for codepages used in Germany. PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:40:14.869054Z K 7 svn:log V 155 MFC r237257: Remove variables which are initialized but never used thereafter reported by gcc46 warning PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:40:15.472765Z K 7 svn:log V 155 MFC r237257: Remove variables which are initialized but never used thereafter reported by gcc46 warning PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:40:15.857123Z K 7 svn:log V 155 MFC r237257: Remove variables which are initialized but never used thereafter reported by gcc46 warning PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:42:05.650020Z K 7 svn:log V 155 MFC r237254: Remove variables which are initialized but never used thereafter reported by gcc46 warning PR: bin/163847 Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:44:38.268429Z K 7 svn:log V 139 MFC r237255: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:46:43.965707Z K 7 svn:log V 139 MFC r237256: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:46:49.452254Z K 7 svn:log V 139 MFC r237256: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-22T05:48:53.934148Z K 7 svn:log V 139 MFC r237253: Remove variables which are initialized but never used thereafter reported by gcc46 warning Approved by: cperciva (implicit) END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-06-22T05:54:34.077257Z K 7 svn:log V 84 Move these #defines to at91reg.h (where I should have put them in the first place). END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-22T06:38:31.560404Z K 7 svn:log V 114 Reserve AT_TIMEKEEP auxv entry for providing usermode the pointer to timekeeping information. MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-22T06:39:28.688808Z K 7 svn:log V 519 Enchance the shared page chunk allocator. Do not rely on the busy state of the page from which we allocate the chunk, to protect allocator state. Use statically allocated sx lock instead. Provide more flexible KPI. In particular, allow to allocate chunk without providing initial data, and allow writes into existing allocation. Allow to get an sf buf which temporary maps the chunk, to allow sequential updates to shared page content without unmapping in between. Reviewed by: jhb Tested by: flo MFC after: 1 month END K 10 svn:author V 3 imp K 8 svn:date V 27 2012-06-22T06:44:22.188207Z K 7 svn:log V 61 Fix a stray debug that I committed accidentally years ago... END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-22T07:06:40.573004Z K 7 svn:log V 1304 Implement mechanism to export some kernel timekeeping data to usermode, using shared page. The structures and functions have vdso prefix, to indicate the intended location of the code in some future. The versioned per-algorithm data is exported in the format of struct vdso_timehands, which mostly repeats the content of in-kernel struct timehands. Usermode reading of the structure can be lockless. Compatibility export for 32bit processes on 64bit host is also provided. Kernel also provides usermode with indication about currently used timecounter, so that libc can fall back to syscall if configured timecounter is unknown to usermode code. The shared data updates are initiated both from the tc_windup(), where a fast task is queued to do the update, and from sysctl handlers which change timecounter. A manual override switch kern.timecounter.fast_gettime allows to turn off the mechanism. Only x86 architectures export the real algorithm data, and there, only for tsc timecounter. HPET counters page could be exported as well, but I prefer to not further glue the kernel and libc ABI there until proper vdso-based solution is developed. Minimal stubs neccessary for non-x86 architectures to still compile are provided. Discussed with: bde Reviewed by: jhb Tested by: flo MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-22T07:13:30.704527Z K 7 svn:log V 462 Use struct vdso_timehands data to implement fast gettimeofday(2) and clock_gettime(2) functions if supported. The speedup seen in microbenchmarks is in range 4x-7x depending on the hardware. Only amd64 and i386 architectures are supported. Libc uses rdtsc and kernel data to calculate current time, if enabled by kernel. Hopefully, this code is going to migrate into vdso in some future. Discussed with: bde Reviewed by: jhb Tested by: flo MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-22T07:16:29.960290Z K 7 svn:log V 85 Enable shared page on i386, now it has a use for vdso_timehands. MFC after: 1 month END K 10 svn:author V 2 np K 8 svn:date V 27 2012-06-22T07:51:15.087007Z K 7 svn:log V 72 cxgbe(4): update to firmware interface 1.5.2.0; updates to shared code. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-22T07:53:41.587550Z K 7 svn:log V 328 This is tonight's hack - a time-series version of the scatterplot. Right now this just plots data points from an existing pcap and inserts a 1ms delay in there. Don't take this as any example of good C++ (new() ? Really?), nor good QT4. I'm a very big novice. However, as a basic proof of concept, this is actually working. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-22T07:53:51.022010Z K 7 svn:log V 18 Print the packet! END K 10 svn:author V 2 np K 8 svn:date V 27 2012-06-22T08:37:33.588980Z K 7 svn:log V 93 Do not read registers with read side effects while performing a register dump for cxgbetool. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-22T10:25:12.096316Z K 7 svn:log V 241 Stop allocating the mbuf tag unconditionally in pf_test(), pf_test6(). We actually need tag only in case of: - ALTQ - "tag" rules - "route" rules - divert processing In all above cases allocate tag only by the time we are sure we need it. END K 10 svn:author V 3 pho K 8 svn:date V 27 2012-06-22T12:15:38.415199Z K 7 svn:log V 31 Added missing x bit to script. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2012-06-22T13:56:01.745504Z K 7 svn:log V 10 Spelling. END K 10 svn:author V 6 cherry K 8 svn:date V 27 2012-06-22T13:56:58.087923Z K 7 svn:log V 158 Add stub functions and global variables for xen suspend/resume code. While at it, re-arrange pmap.[ch] a bit. Fix macro abuse. Approved by: gibbs (implicit) END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-06-22T14:58:40.509265Z K 7 svn:log V 129 MFC 230063 Clean up a switch statement for uncore events on Westmere processors. Submitted by: Davide Italiano Reviewed by: gnn END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-22T16:05:56.523741Z K 7 svn:log V 301 Commit changes missed from r237435. Properly calculate the signal trampoline addresses after the shared page is enabled. Handle FreeBSD ABIs without shared page support too. Reported and tested by: David Wolfskill (previous version) Pointy hat to: kib MFC after: 1 month END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-22T16:20:13.314028Z K 7 svn:log V 168 Don't print SCSI Queue Full and CAM_REQUEUE_REQ statuses as errors if they were handled and retried. They are part of normal operation for SCSI TCQ. MFC after: 3 days END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-06-22T16:31:00.830761Z K 7 svn:log V 129 MFC 230063 Clean up a switch statement for uncore events on Westmere processors. Submitted by: Davide Italiano Reviewed by: gnn END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-06-22T18:01:22.582397Z K 7 svn:log V 3871 Merge changes from upstream libedit. Our libedit has been diverging from the mainstream version maintained in NetBSD. As a consequence it has been difficult to do an appropriate MFV and we have been bringing only partial updates. Here we update most of the files to at least match the version available in NetBSD's snapshot of 20091228. This version was chosen because it still doesn't include wide character support (UTF-8), which involves many changes and new files. From NetBSD's logs: Dec 15 22:13:33 2006 - editline.3 el.c el.h histedit.h add EL_GETFP, and EL_SETFP. Apr 5 15:53:28 2008 - editline.3 el.c histedit.h readline.c add EL_REFRESH for the benefit of readline Sep 10 15:45:37 2008 - common.c el.c read.c refresh.c sig.c term.c term.h tty.c Allow a single process to control multiple ttys (for pthreads using _REENTRANT) using multiple EditLine objects. Jan 18 12:17:24 2009 - el.c read.c readline.c fix -Wsign-compare issues Feb 6 14:40:32 2009 - history.c Plug memory leak, from MySQL. Feb 5 19:15:44 2009 - histedit.h read.c match documentation in el_push Feb 6 13:14:37 2009 - vi.c Portability fix. Feb 12 13:39:49 2009 - readline.c term.c More fixes for existing portability stuff. Feb 15 21:24:13 2009 - el.h read.c don't restart on EINTR, instead return NULL immediately. From Anon Ymous Feb 15 21:25:01 2009 - sig.c sig.h in order for read() to return EINTR we need to use sigaction, not signal, otherwise SA_RESTART is set. Feb 15 21:55:23 2009 - chared.c chared.h common.c emacs.c filecomplete.c filecomplete.h key.c key.h read.c readline.c refresh.c search.c term.c tokenizer.c tty.c vi.c pass lint on _LP64. Feb 17 21:34:26 2009 - el.c histedit.h prompt.c prompt.h allow for a prompt argument. Feb 18 15:04:40 2009 - sig.c SA_RESTART for all signals but SIGINT. From Anon Ymous. Feb 19 15:20:22 2009 - read.c sig.c sig.h reset and redraw on sigcont. From Anon Ymous. Feb 21 23:31:56 2009 - key.c key.h readline.c vi.c more size_t stuff. Mar 10 20:46:15 2009 - editline.3 read.c make el_gets set the count to -1 on error to distinguish between EOF and error. Mar 31 17:38:27 2009 - editline.3 el.c histedit.h prompt.c prompt.h refresh.c term.c term.h Implement literal prompt sequences. Now someone can implement RL_PROMPT_START_LITERAL/RL_PROMPT_END_LITERAL :-) Mar 31 21:33:17 2009 - term.c cast to size_t to avoid sign / unsigned comparison warning. Apr 23 02:03 2009 - term.c Apply patch (requested by msaitoh in ticket #2007): Coverity CID 1668: Plug memory leak when malloc() failed.:55 2009 May 11 18:33:30 2009 - editline.3 el.c histedit.h restore binary compatibility by providing new prompt functions that take an extra literal character. May 19 21:45:14 2009 - refresh.c always scroll when we advance past bottom. From Caleb Welton cwelton at greenplum dot com. Jul 17 12:27:57 2009 - term.c - off by one in the term.h case. - make code more similar to tcsh (if we want to handle wide chars, this is needed; for now it is a no-op) Jul 22 15:56:29 2009 - el.c Move filename to the scope it is being used. From Michael Cook mcook at bbn dot com Jul 22 15:57:00 2009 - read.c Always initialize nread since it is an out param. From Michael Cook mcook at bbn dot com Jul 22 18:25:26 2009 - el.c Only need path if we have issetugid... From Anon Ymous Jul 25 21:19:23 2009 - el.c Ignore comment lines in .editrc from Jess Thrysoee Sep 7 21:24:33 2009 histedit.h history.c readline.c apply apple patches from: http://opensource.apple.com/source/libedit/libedit-11/patches/ Dec 28 21:52:43 2009 - refresh.c Fix bug where tab completion on the second or > line that caused listing ended up corrupting the display by an extra space in the beginning. Reported by Mac Chan. Dec 28 22:15:36 2009 - refresh.c term.c reduce diff with tcsh Obtained from: NetBSD Tested by: bapt, jilles and current@ MFC after: 1 week END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-22T18:18:49.381809Z K 7 svn:log V 240 Remove the code for redirecting the panic message on emergency console and use it directly in vprintf() and db_printf(). This will let most of the output to get out when booting FreeBSD and when debugging directly in the emergency console. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-22T18:20:26.898908Z K 7 svn:log V 132 Add KTR_TRACE to the XEN kernel config. This is now capable of showing a backtrace of offending functions on the emergency console. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-22T18:34:11.403499Z K 7 svn:log V 417 - Add a comment explaining the locking of the cached pages pool held by vm_objects. - Add flags for the per-object lock and free pages queue mutex lock. Use the newly added flags to mark the cache root within the vm_object structure. Please note that other vm_object members should be marked with correct locking but they are left for other commits. In collabouration with: alc MFC after: 3 days3 days3 days END K 10 svn:author V 3 ken K 8 svn:date V 27 2012-06-22T18:57:06.538324Z K 7 svn:log V 951 Change 'camcontrol defects' to first probe a drive to find out how much defect information it has before grabbing the full defect list. This works around a bug with some Hitachi drives that generate data overrun errors when they are asked for more defect data than they have. The change is done in a spec-compliant way, so it should have no negative impact on drives that don't have this issue. This is based on work originally done at Sandvine. scsi_da.h: Add a define for the maximum amount of data that can be contained in a defect list. camcontrol.c: Update the readdefects() function to issue an initial command to determine the length of the defect list, and then use that length in the request for the full defect list. camcontrol.8: Add a note that some drives will report 0 defects available if you don't request either the PLIST or GLIST. Submitted by: Mark Johnston (original version) MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-22T19:09:15.565627Z K 7 svn:log V 35 Remove the WITNESS option for XEN. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-06-22T19:19:53.415821Z K 7 svn:log V 103 MFC: 234424 Set SIGCANCEL to SIGTHR as part of some cleanup of DTrace code. Reviewed by: davidxu@ END K 10 svn:author V 3 gnn K 8 svn:date V 27 2012-06-22T19:19:58.210814Z K 7 svn:log V 100 MFC: 234424 Set SIGCANCEL to SIGTHR as part of some cleanup of DTrace code. Reviewed by: davidxu@ END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-06-22T20:38:00.483946Z K 7 svn:log V 171 MFC r237119: Do not remount ZFS dataset if changing canmount property to "on" and dataset is already mounted. PR: 167905 Submitted by: Bryan Drewery END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-06-22T20:38:08.929756Z K 7 svn:log V 171 MFC r237119: Do not remount ZFS dataset if changing canmount property to "on" and dataset is already mounted. PR: 167905 Submitted by: Bryan Drewery END K 10 svn:author V 2 mm K 8 svn:date V 27 2012-06-22T20:42:11.355528Z K 7 svn:log V 196 Import Illumos revision 13736:9f1d48e1681f 2901 ZFS receive fails for exabyte sparse files References: https://www.illumos.org/issues/2901 Obtained from: illumos (issue #2901) MFC after: 1 week END K 10 svn:author V 2 bz K 8 svn:date V 27 2012-06-22T21:26:35.020804Z K 7 svn:log V 148 Just add a comment to further investigate when being closer to that code again next time. The condition of the 2nd if() is very unlikely ever met. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-22T21:46:41.965443Z K 7 svn:log V 255 Return CAM_SEL_TIMEOUT and CAM_DEV_NOT_THERE instead of CAM_TID_INVALID and CAM_LUN_INVALID for case of missing devices. In removes tons of error messages from CAM during bus scans. Reported and tested by: Mike Tancsa MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-22T22:45:34.962415Z K 7 svn:log V 318 Fix a bug where the start address is not correctly pointing to the "next" index, scanning 2 times in a row the same object. This was hidden because when cache and resident tries are merged together there is a check to skip different objects in all the vm_radix_lookupn() usages, in order to fix a race with RED nodes. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-22T22:50:50.217275Z K 7 svn:log V 662 Flesh out some basic 'live' pcap support. * Add a new method to pktsource that opens a live pcap handle and sets it to non blocking; * Correct handle the "nothing available at the moment" case from pcap rather than just erroring out. TODO: * I should create derived classes of PktSource; * I should support non-blocking socket notification of the pcap socket, as well as having an occasional "check and flush" timer. * I am only handling one event every 2ms, which is just plain stupid; I should handle all the events from pcap when in live mode, rather than only one. * I'm still rendering it on each received event, whichi is also plain stupid. END K 10 svn:author V 2 np K 8 svn:date V 27 2012-06-22T22:59:42.749307Z K 7 svn:log V 157 Do not allocate extra vectors when adapter is not TOE capable (or toecaps have been disallowed by the user). + one very minor unrelated cleanup in t4_sge.c END K 10 svn:author V 7 delphij K 8 svn:date V 27 2012-06-23T00:37:32.417491Z K 7 svn:log V 529 MFC r237348: Currently the code uses gzFile * for a zlib file descriptor, which is not correct. The code works by accident because gzFile is currently defined as void *, and internally it would be casted from or to its real type. A newer version of zlib will instead define it as a pointer to a specific type pointer (namely, struct gzFile_s *). This therefore would cause stricter checks and compiler would catch this type mismatch. This change does not cause any changes to the resulting binary, as validated with md5(1). END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-23T01:08:46.657388Z K 7 svn:log V 51 Restart the scan from the busy page rather than 0. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-23T01:30:51.488780Z K 7 svn:log V 316 Give vm_radix_lookupn() a way to specify that the whole range has been exhausted while searching and when a "maximum" value is passed as end (or end == 0). This allow for avoiding starting address overflow while searching through and avoids livelock with "start" wrapping up to "end". Reported by: pho (supposedly) END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-23T02:08:15.134742Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-06-23T04:47:41.422239Z K 7 svn:log V 376 * Migrate the pcap code to loop over the pcap if in live mode, rather than handling one every 2ms. * Move to using the QwtPlotSpectroCurve, which is an example (but does what I want, thankfully!) 3d plotting widget, which implements 'color' as the z dimension. * For now, just use RSSI as the z dimension. Eventually this should be the "density" rather than RSSI.. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-23T07:45:14.416635Z K 7 svn:log V 255 MFC r237335: Check status of cam_periph_hold() inside cdclose(). If cd device was invalidated while open, cam_periph_hold() will return error and won't get the reference. Following reference release will crash the system. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-23T07:46:33.253932Z K 7 svn:log V 257 MFC r237335: Check status of cam_periph_hold() inside cdclose(). If cd device was invalidated while open, cam_periph_hold() will return error and won't get the reference. Following reference release will crash the system. Sponsored by: iXsystems, Inc. END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-23T07:48:00.249953Z K 7 svn:log V 71 MFC r237336: Remove unused error variables in cdclose() and daclose(). END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-23T07:49:10.782959Z K 7 svn:log V 71 MFC r237336: Remove unused error variables in cdclose() and daclose(). END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-06-23T08:36:49.742285Z K 7 svn:log V 1042 Various fixes to IPC_SAVE: 1. In safe_exit() always zero out the file before writing. This is probably redundant now given the following change, but I'll leave it in to be safe for now. 2. Zero out the file after reading it. The change in r236996 could lead to the parent process reading a stale file under certain circumstances. The combination of things that need to happen for this to occur are complex, but not impossible. 3. Move the writing of $PM_BUILD_ONLY_LIST - related variables into safe_exit(). When originally put in the previous location it saved what could have been a spurious test, but that test was long ago added to safe_exit(). Also, by not writing it there it could be missed in certain circumstances where the exit happened without reaching that code in the main script. This brings all the code that writes to the file into safe_exit() 4. NB_DELETE can only be set while building, so move writing it to that section. When -F, and the port has no distfiles, report that explicitly END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-23T09:33:06.453424Z K 7 svn:log V 839 Stop updating the struct vdso_timehands from even handler executed in the scheduled task from tc_windup(). Do it directly from tc_windup in interrupt context [1]. Establish the permanent mapping of the shared page into the kernel address space, avoiding the potential need to sleep waiting for allocation of sf buffer during vdso_timehands update. As a consequence, shared_page_write_start() and shared_page_write_end() functions are not needed anymore. Guess and memorize the pointers to native host and compat32 sysentvec during initialization, to avoid the need to get shared_page_alloc_sx lock during the update. In tc_fill_vdso_timehands(), do not loop waiting for timehands generation to stabilize, since vdso_timehands is written in the same interrupt context which wrote timehands. Requested by: mav [1] MFC after: 29 days END K 10 svn:author V 5 dougb K 8 svn:date V 27 2012-06-23T09:50:41.037109Z K 7 svn:log V 288 Restore the line from -av that prints each port as we work on it. This was removed in r236996 because at that point in the development of the new term_printf() code it was indeed too verbose. But subsequent changes to that code made this no-longer redundant, and I forgot to put it back. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-23T10:14:51.271220Z K 7 svn:log V 84 Remove no longer needed forward declaration for struct sf_buf. MFC after: 29 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-23T10:15:23.336719Z K 7 svn:log V 126 Move the code dealing with shared page into a dedicated kern_sharedpage.c source file from kern_exec.c. MFC after: 29 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2012-06-23T12:32:53.328188Z K 7 svn:log V 141 Add scsi_extract_sense_ccb() -- wrapper around scsi_extract_sense_len(). It allows to remove number of duplicate checks from several places. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-06-23T12:40:24.511180Z K 7 svn:log V 211 Fix interface matching by ipfw table Submitted by: Ihor Kaharlichenko Tested by: Ihor Kaharlichenko Approved by: kib(mentor) MFC after: 3 days END K 10 svn:author V 8 jhibbits K 8 svn:date V 27 2012-06-23T13:52:44.980819Z K 7 svn:log V 148 Release the ADB keyboard mutex when handling the power button press/release. Found by WITNESS. Approved by: nwhitehorn (mentor) MFC after: 3 days END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-23T14:09:52.782800Z K 7 svn:log V 99 Fix a bug in the logic, otherwise exhausted is set everytime that outidx == cnt. Reported by: pho END K 10 svn:author V 7 attilio K 8 svn:date V 27 2012-06-23T14:15:13.231478Z K 7 svn:log V 4 MFC END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-23T14:43:25.146819Z K 7 svn:log V 35 Unbreak options ZFS after r236884. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-06-23T15:36:32.144833Z K 7 svn:log V 151 Correct device id for GPU on some server SandyBridge model. Submitted and tested by: Thomas Zander MFC after: 3 days END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-23T17:39:40.997227Z K 7 svn:log V 278 MFC r237195: The variable 'error' in sys_poll() is initialized in declaration to value zero but in any case is overwritten by successive copyin(), making the previous initialization useless. Remove this. As an added bonus this fixes a style(9) bug. Approved by: gnn (mentor) END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-23T17:42:37.491183Z K 7 svn:log V 278 MFC r237195: The variable 'error' in sys_poll() is initialized in declaration to value zero but in any case is overwritten by successive copyin(), making the previous initialization useless. Remove this. As an added bonus this fixes a style(9) bug. Approved by: gnn (mentor) END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-23T17:46:42.124763Z K 7 svn:log V 280 MFC r237196: Disable hwpmc(4) support for Intel Xeon Sandy Bridge (Model 0x2D). Due to some differences in MSRs between Xeon Sandy Bridge and Core Sandy Bridge (Model 0x2A), wrmsr() may generate in a GP# fault exception and so a panic of the machine. Approved by: gnn (mentor) END K 10 svn:author V 3 ume K 8 svn:date V 27 2012-06-23T17:59:32.934718Z K 7 svn:log V 48 MFC r235138: Add -a and -A option to the usage. END K 10 svn:author V 3 ume K 8 svn:date V 27 2012-06-23T18:07:48.132630Z K 7 svn:log V 48 MFC r235138: Add -a and -A option to the usage. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T18:26:23.990673Z K 7 svn:log V 173 MFC r234036: Fix panic in ffs_reload(), which may happen when read-only filesystem gets resized and then reloaded. MFC r234537: Fix use-after-free introduced in r234036. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-23T18:39:35.117083Z K 7 svn:log V 96 MFC: r231616, r232497, r234337 Add __aeabi_read_tp function required for thread-local storage. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-06-23T18:43:11.478342Z K 7 svn:log V 60 MFC: r231620, r237098 Enable TLS support for ARM toolchain END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-06-23T18:43:54.980285Z K 7 svn:log V 48 Add in-driver event handler. MFC after: 3 days END K 10 svn:author V 7 iwasaki K 8 svn:date V 27 2012-06-23T18:45:32.012597Z K 7 svn:log V 71 Add description about dev.acpi_ibm.0.handlerevents. MFC after: 3 days END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T18:51:33.875875Z K 7 svn:log V 290 MFC r227081 by ed@: Add missing static keywords for global variables to tools in sbin/. These tools declare global variables without using the static keyword, even though their use is limited to a single C-file, or without placing an extern declaration of them in the proper header file. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T18:54:24.955929Z K 7 svn:log V 177 MFC r230289 by ed@: Allow growfs to be built with GCC 4.7 and -Werror. The dp1 variable is only used when FSIRAND is defined. Just place the variable behind #ifdefs entirely. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T18:58:02.353177Z K 7 svn:log V 448 MFC r232548: Make growfs(8) mostly style compliant. No functional changes, verified with MD5. MFC r232858: After r232548, clang complains about the apparent '=-' operator (a left-over from ancient C times, and a frequent typo) in growfs.c: sbin/growfs/growfs.c:1550:8: error: use of unary operator that may be intended as compound assignment (-=) [-Werror] blkno =- 1; ^~ Use 'blkno = -1' instead, to silence the error. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T19:01:42.259717Z K 7 svn:log V 207 MFC r233656: Remove disklabel handling code from growfs. This should be done via geom_part(4), and it doesn't belong in growfs anyway. Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T19:03:42.666649Z K 7 svn:log V 767 MFC r234178: Remove block reallocation used to make room for the cylinder group summary structure. From now on, when there is no room for it, we simply allocate new one in a newly added cylinder group. This patch removes a conditional in updcsloc(), reindents some code there, and removes unused routines. I decided to do it this way instead of disabling reallocation when the filesystem is live and leaving it as it is otherwise, because this allows for removal of lots of complicated and hard to test code. Also, conditionally disabling it would result in a different layout in filesystems resized online and offline, which would look somewhat weird. Reviewed by: mckusick No objections from: kib Sponsored by: The FreeBSD Foundation END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T19:08:24.705816Z K 7 svn:log V 218 MFC r234189: Style. MFC r234312: Remove FSIRAND and FSMAXSWAP ifdefs, removing code unconditionally. Reviewed by: kib, mckusick Sponsored by: The FreeBSD Foundation MFC r234314: Style. MFC r234420: Style. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T19:15:12.843282Z K 7 svn:log V 766 MFC r234846: Improve growfs(8) in a few ways; unfortunately, it's somewhat hard to untangle them and commit separately. 1. Rewrite the way growfs(8) finds the device and mount point. This makes it possible to use e.g. "growfs /mnt"; it's also used to display more helpful messages. 2. Be more user-friendly, using descriptive messages, like this: OK to grow filesystem on /dev/md0, mounted on /mnt, from 9.8GB to 20GB? [Yes/No]" 3. Allow to specify the size (-s option) just like with mdconfig(8), i.e. with postfixes ("mdconfig -s 10g").4. Reload read-only filesystem after growing. Reviewed by: kib, mckusick (earlier version) Sponsored by: The FreeBSD Foundation MFC r235079: Fix offset calculation to actually rewrite the _last_ block. END K 10 svn:author V 6 davide K 8 svn:date V 27 2012-06-23T19:39:03.768042Z K 7 svn:log V 543 First commit that concerns event aggregation. Augment the callout structure so that consumers other than actual time at which callout should fire may specify a tolerance interval. Rather than looking for the next callout event in callout_tick() determine a range [t-delta;t'+delta'] deriving it from the tolerance parameter specified by clients so that's suitable for a given number of events, and schedule an interrupt in the middle of such range. Add some comments to better specify what we're doing. Suggested by: mav Reviewed by: mav END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-23T19:42:06.628414Z K 7 svn:log V 117 MFC r231992: Remove reference to gsched_as module, which doesn't actually exist. Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-06-23T19:42:06.719580Z K 7 svn:log V 117 MFC r231992: Remove reference to gsched_as module, which doesn't actually exist. Approved by: cperciva (implicit) END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-06-23T19:46:07.936730Z K 7 svn:log V 215 Make newfs(8) display "super-block backups (for fsck_ffs -b #)" instead of super-block backups (for fsck -b #), since fsck(8) doesn't accept the "-b" option; only fsck_ffs(8) does. PR: bin/82720 MFC after: 1 week END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2012-06-23T19:49:18.779637Z K 7 svn:log V 426 Merge from -CURRENT: Fix ubldr to work correctly on the TI AM335x-based BeagleBone. In particular: * Query U-Boot's memory map to automatically determine where to load the kernel, * rework a lot of the loader FDT code to correctly use copyin()/copyout() to access the in-kernel FDT, * allow ubldr to be easily rebuilt with different load addresses, * fix a few NULL pointer dereferences, * support MBR partitions END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-06-23T20:33:29.013046Z K 7 svn:log V 391 MFC: r236829 Bring a couple of libstdc++ patches from Apple's llvm-gcc project. Modified Fri Jul 10 07:44:34 2009 CDT by rafael backport part of http://gcc.gnu.org/ml/gcc-cvs/2007-10/msg00118.html The patch is for libstdc++ and it was GPL2 at the time. Modified Tue Apr 29 01:20:19 2008 CDT by asl Backport from mainline (pre-GPLv3). Fix for sizeof(const void*) > sizeof(unsigned long). END K 10 svn:author V 3 pfg K 8 svn:date V 27 2012-06-23T20:37:27.529218Z K 7 svn:log V 391 MFC: r236829 Bring a couple of libstdc++ patches from Apple's llvm-gcc project. Modified Fri Jul 10 07:44:34 2009 CDT by rafael backport part of http://gcc.gnu.org/ml/gcc-cvs/2007-10/msg00118.html The patch is for libstdc++ and it was GPL2 at the time. Modified Tue Apr 29 01:20:19 2008 CDT by asl Backport from mainline (pre-GPLv3). Fix for sizeof(const void*) > sizeof(unsigned long). END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-06-23T20:44:45.287232Z K 7 svn:log V 36 Remove superfluous paragraph macro. END