Ħ233369 138 746 133 445 459 459 691 459 121 691 215 302 302 153 227 199 199 448 448 351 242 222 190 558 125 884 884 1077 1077 218 235 193 122 131 127 1069 153 205 149 1136 315 130 137 211 245 132 185 149 160 128 146 1530 692 402 129 733 111 210 160 405 242 315 289 272 302 196 260 209 185 215 291 338 230 446 543 179 113 476 258 477 477 477 477 363 1216 605 291 129 129 129 129 129 274 274 129 137 151 1026 148 216 315 246 247 423 189 134 215 429 215 429 396 139 472 206 206 206 197 447 1247 1042 1042 629 629 629 1025 1025 1025 396 396 396 935 935 935 776 776 776 189 409 194 K 10 svn:author V 3 mav K 8 svn:date V 27 2012-03-23T16:19:14.472174Z K 7 svn:log V 653 MFC r232793: Revert r175376 and tune cpufreq(4) frequency comparison logic instead. Instead of using 25MHz equality threshold, look for the nearest value when handling dev.cpu.0.freq sysctl and for exact match when it is expected. ACPI may report extra level with frequency 1MHz above the nominal to control Intel Turbo Boost operation. It is not a bug, but feature: dev.cpu.0.freq_levels: 2934/106000 2933/95000 2800/82000 ... In this case value 2933 means 2.93GHz, but 2934 means 3.2-3.6GHz. I've found that my Core i7 based systems have Intel Turbo Boost not used by default and without this change it was absolutely invisible and hard to control. END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-23T16:24:07.958903Z K 7 svn:log V 37 Expand contraction. Spotted by: bjk END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-03-23T16:28:11.377526Z K 7 svn:log V 346 Call xpt_bus_register during attach context, then freeze and do not release until domain discovery is complete. This fixes an isci(4) bug on FreeBSD 7.x where devices weren't always appearing after boot without an explicit rescan. Sponsored by: Intel Reported and tested by: Reviewed by: scottl Approved by: scottl END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-03-23T16:59:03.553432Z K 7 svn:log V 360 MFC r233371: Call xpt_bus_register during attach context, then freeze and do not release until domain discovery is complete. This fixes an isci(4) bug on FreeBSD 7.x where devices weren't always appearing after boot without an explicit rescan. Sponsored by: Intel Reported and tested by: Reviewed by: scottl Approved by: scottl END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-03-23T17:11:36.244493Z K 7 svn:log V 360 MFC r233371: Call xpt_bus_register during attach context, then freeze and do not release until domain discovery is complete. This fixes an isci(4) bug on FreeBSD 7.x where devices weren't always appearing after boot without an explicit rescan. Sponsored by: Intel Reported and tested by: Reviewed by: scottl Approved by: scottl END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T17:22:43.210689Z K 7 svn:log V 598 MFC 232570,232754: Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel. Specifically, kname cannot be pointed at cmd[] since it's value is change to be an empty string after the initial call to parse, and cmd[]'s value can be changed (thus losing a prior setting for kname) due to user input at the boot prompt. While here, ensure that that initial boot config file text is nul-terminated, that ops is initialized to zero, and that kname is always initialized to a valid string. In addition, include other changes to ensure boot2 still builds with Clang. END K 10 svn:author V 9 jimharris K 8 svn:date V 27 2012-03-23T17:23:40.265459Z K 7 svn:log V 360 MFC r233371: Call xpt_bus_register during attach context, then freeze and do not release until domain discovery is complete. This fixes an isci(4) bug on FreeBSD 7.x where devices weren't always appearing after boot without an explicit rescan. Sponsored by: Intel Reported and tested by: Reviewed by: scottl Approved by: scottl END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T17:24:29.079052Z K 7 svn:log V 29 Record mergeinfo for 233374. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T17:24:52.097306Z K 7 svn:log V 598 MFC 232570,232754: Fix boot2 to handle boot config files that only contain a custom path to a loader or kernel. Specifically, kname cannot be pointed at cmd[] since it's value is change to be an empty string after the initial call to parse, and cmd[]'s value can be changed (thus losing a prior setting for kname) due to user input at the boot prompt. While here, ensure that that initial boot config file text is nul-terminated, that ops is initialized to zero, and that kname is always initialized to a valid string. In addition, include other changes to ensure boot2 still builds with Clang. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T17:54:06.357473Z K 7 svn:log V 120 Before jumping to application's entry point set ra == pc in order to let backtracing routine know to go no further. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T18:03:04.358252Z K 7 svn:log V 209 MFC 232360: Add pci_save_state() and pci_restore_state() wrappers around pci_cfg_save() and pci_cfg_restore() for device drivers to use when saving and restoring state (e.g. to handle device-specific resets). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T18:03:38.786647Z K 7 svn:log V 209 MFC 232360: Add pci_save_state() and pci_restore_state() wrappers around pci_cfg_save() and pci_cfg_restore() for device drivers to use when saving and restoring state (e.g. to handle device-specific resets). END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T18:07:12.995067Z K 7 svn:log V 59 Fix pmap_kextract prototype to align it with pmap.c change END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-23T18:12:25.090085Z K 7 svn:log V 129 Also fix the parameter usage in set80211meshpeering(). Submitted by: Monthadar Al Jaberi MFC after: 1 week X-MFC after: r233328 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T18:22:20.239507Z K 7 svn:log V 106 MFC 232367: Properly handle failures in igb_setup_msix() by returning 0 if MSI or MSI-X allocation fails. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T18:22:38.117827Z K 7 svn:log V 106 MFC 232367: Properly handle failures in igb_setup_msix() by returning 0 if MSI or MSI-X allocation fails. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T18:29:09.839668Z K 7 svn:log V 355 MFC 232401: Similar to the fixes in 226967 and 226987, purge any name cache entries associated with the previous vnode (if any) associated with the target of a rename(). Otherwise, a lookup of the target pathname concurrent with a rename() could re-add a name cache entry after the namei(RENAME) lookup in kern_renameat() had purged the target pathname. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T18:29:28.223588Z K 7 svn:log V 355 MFC 232401: Similar to the fixes in 226967 and 226987, purge any name cache entries associated with the previous vnode (if any) associated with the target of a rename(). Otherwise, a lookup of the target pathname concurrent with a rename() could re-add a name cache entry after the namei(RENAME) lookup in kern_renameat() had purged the target pathname. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-23T19:32:30.284163Z K 7 svn:log V 253 Use suspend/resume methods provided by net80211. This ensures that the appropriate state handling takes place, not doing so results in the device doing nothing until manual intervention. Reviewed by: iwasaki Tested by: iwasaki (iwi) MFC after: 4 weeks END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T19:37:45.439749Z K 7 svn:log V 147 Make default ABI for as(1) to be the same as target platform. This change makes object files compiled with default flags by gcc and as compatible. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-03-23T20:05:41.251866Z K 7 svn:log V 125 Add a sysctl to set and retrieve binary osreldate of another process. Suggested by: kib Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-03-23T20:09:21.498464Z K 7 svn:log V 94 When displaying binary information show also osreldate. Suggested by: kib MFC after: 2 weeks END K 10 svn:author V 8 theraven K 8 svn:date V 27 2012-03-23T20:10:56.402357Z K 7 svn:log V 460 Revert ABI breakage in libsupc++. Unfortunately, the ABI was broken upstream for the 4.2 release, which we imported. We then shipped the broken version for several years and certain ports (e.g. libobjc2) depend on it, so we're stuck with it for now... We should revisit this for 10.0, since we're allowed to break the ABI then, but until then we should keep the ABI we shipped with 8.x and 9.x. Reviewed by: kan Approved by: dim (mentor) MFC after: 1 week END K 10 svn:author V 7 trociny K 8 svn:date V 27 2012-03-23T20:18:48.210079Z K 7 svn:log V 29 Fix typo. MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T20:47:25.350627Z K 7 svn:log V 791 MFC 232403,232667: - Add a bus_dma tag to each PCI bus that is a child of a Host-PCI bridge. The tag enforces a single restriction that all DMA transactions must not cross a 4GB boundary. Note that while this restriction technically only applies to PCI-express, this change applies it to all PCI devices as it is simpler to implement that way and errs on the side of caution. - Add a softc structure for PCI bus devices to hold the bus_dma tag and a new pci_attach_common() routine that performs actions common to the attach phase of all PCI bus drivers. Right now this only consists of a bootverbose printf and the allocate of a bus_dma tag if necessary. - Adjust all PCI bus drivers to allocate a PCI bus softc and to call pci_attach_common() from their attach routines. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T20:47:49.935927Z K 7 svn:log V 791 MFC 232403,232667: - Add a bus_dma tag to each PCI bus that is a child of a Host-PCI bridge. The tag enforces a single restriction that all DMA transactions must not cross a 4GB boundary. Note that while this restriction technically only applies to PCI-express, this change applies it to all PCI devices as it is simpler to implement that way and errs on the side of caution. - Add a softc structure for PCI bus devices to hold the bus_dma tag and a new pci_attach_common() routine that performs actions common to the attach phase of all PCI bus drivers. Right now this only consists of a bootverbose printf and the allocate of a bus_dma tag if necessary. - Adjust all PCI bus drivers to allocate a PCI bus softc and to call pci_attach_common() from their attach routines. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T20:58:18.980856Z K 7 svn:log V 984 MFC 232362,232363,232463,232553,232569,232571: - Sort function prototypes. - Update the documentation on pci_get/set_powerstate(). These methods are not ACPI-specific at all, but deal with PCI power states. Also, pci_set_powerstate() fails with EOPNOTSUPP if a request is made that the underlying device does not support rather than falling back to somehow setting D0. - Document the following routines: pci_alloc_msi(), pci_alloc_msix(), pci_find_cap(), pci_get_max_read_req(), pci_get_vpd_ident(), pci_get_vpd_readonly(), pci_msi_count(), pci_msix_count(), pci_pending_msix(), pci_release_msi(), pci_remap_msix(), and pci_set_max_read_req(). - Group the functions into five sub-sections: raw configuration access, locating devices, device information, device configuration, and message signaled interrupts. - Discourage use of pci_disable_io() and pci_enable_io() in device drivers. The PCI bus driver handles this automatically as resources are activated. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T20:58:27.958024Z K 7 svn:log V 984 MFC 232362,232363,232463,232553,232569,232571: - Sort function prototypes. - Update the documentation on pci_get/set_powerstate(). These methods are not ACPI-specific at all, but deal with PCI power states. Also, pci_set_powerstate() fails with EOPNOTSUPP if a request is made that the underlying device does not support rather than falling back to somehow setting D0. - Document the following routines: pci_alloc_msi(), pci_alloc_msix(), pci_find_cap(), pci_get_max_read_req(), pci_get_vpd_ident(), pci_get_vpd_readonly(), pci_msi_count(), pci_msix_count(), pci_pending_msix(), pci_release_msi(), pci_remap_msix(), and pci_set_max_read_req(). - Group the functions into five sub-sections: raw configuration access, locating devices, device information, device configuration, and message signaled interrupts. - Discourage use of pci_disable_io() and pci_enable_io() in device drivers. The PCI bus driver handles this automatically as resources are activated. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T21:07:10.488366Z K 7 svn:log V 123 Disable IRIX compatibility flags for DWARF code generator. IRIX-compatible DWARF code is not compatible with CTF tools END K 10 svn:author V 3 jhb K 8 svn:date V 27 2012-03-23T21:19:07.223627Z K 7 svn:log V 142 MFC 232470: Use pci_find_cap() instead of pci_find_extcap() to locate PCI find capabilities as the latter API is deprecated for this purpose. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-23T22:03:46.338727Z K 7 svn:log V 98 MFC r230155: Make man page wording more clear PR: docs/164078 Approved by: cperciva (implicit) END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T22:52:23.753506Z K 7 svn:log V 28 Add define for MIPS.options END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T22:55:37.763571Z K 7 svn:log V 37 Add handler for MIPS.options section END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-23T23:07:02.429431Z K 7 svn:log V 33 Make libproc compilable for MIPS END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T00:30:17.491283Z K 7 svn:log V 973 - Use the PCI ID macros from mpi_cnfg.h rather than duplicating them here. Note that this driver additionally probes some device IDs for the most part not know to other MPT drivers, if at all. So rename the macros not present in mpi_cnfg.h to match the naming scheme in the latter and but suffix them with a _FB in order to not cause conflicts. - Like mpt_set_config_regs(), comment out mpt_read_config_regs() as the content of the registers read isn't actually used and both functions aren't exactly up to date regarding the possible layouts of the BARs (these function might be helpful for debugging though, so don't remove them completely). - Use DEVMETHOD_END. - Use NULL rather than 0 for pointers. - Remove an unusual check for the softc being NULL. - Remove redundant zeroing of the softc. - Remove an overly banal and actually partly incorrect as well as partly outdated comment regarding the allocation of the memory resource. MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T00:37:56.820822Z K 7 svn:log V 58 As it turns out, mpi_cnfg.h already is included by mpt.h. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-24T00:42:38.780350Z K 7 svn:log V 111 - Apply binutils workaround on mips.mips as well. Though this TARGET_ARCH is deprecated, tinderbox uses it. END K 10 svn:author V 4 stas K 8 svn:date V 27 2012-03-24T01:02:03.429016Z K 7 svn:log V 56 - Avoid using deprecated heimdal functions in pam_krb5. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T01:47:33.227611Z K 7 svn:log V 1040 Maintain target's byte order for multi-byte fields in CTF structures. CTF format is not cross-platform by design, e.g. it is not guaranteed that data generated by ctfconvert/ctfmerge on one architecture will be successfuly read on another. CTF structures are saved/restored using naive approach. Roughly it looks like: write(fd, &ctf_struct, sizeof(ctf_struct)) read(fd, &ctf_struct, sizeof(ctf_struct)) By sheer luck memory layout of all type-related CTF structures is the same on amd64/i386/mips32/mips64. It's different on ARM though. sparc, ia64, powerpc, and powerpc64 were not tested. So in order to get file compatible with dtrace on ARM it should be compiled on ARM. Alternative solution would be to have "signatures" for every platform and ctfmerge should convert host's reperesentation of CTF structure to target's one using "signature" as template. This patch checks byte order of ELF files used for generating CTF record and makes sure that byte order of data written to resulting files is the same as target's byte order. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T04:52:18.635812Z K 7 svn:log V 220 Add MIPS support to cddl/contrib part: - header and stub .c file for fasttrap module. It's not supported on MIPS yet, but there is no way to disable support completely - Do as amd64 trying to limit allocated memory END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:14:37.344524Z K 7 svn:log V 36 Add device part of DTrace/MIPS code END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:15:14.862483Z K 7 svn:log V 43 Make lockstat and profile modules x86-only END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:16:26.795681Z K 7 svn:log V 116 Jusy use i386 version of cyclic_machdep.c on all supported architectures. It's generic enough to cover all of them. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:17:38.645002Z K 7 svn:log V 150 Add DTrace-related part to machine-dependent code: - DTrace trap handler - invop-related variables (unused on MIPS but still referenced from dtrace) END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:18:27.967268Z K 7 svn:log V 38 Build libproc and librtld_db for MIPS END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:27:39.979766Z K 7 svn:log V 91 Add stub file for pid probe. It's required although pid probe is not supported on MIPS yet END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:29:07.684759Z K 7 svn:log V 55 Enable build of DTrace-related userland parts for MIPS END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T05:30:13.390953Z K 7 svn:log V 66 Build CTF tools as a part of toolchain for cross-compilation case END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-24T06:28:15.723065Z K 7 svn:log V 34 Remap PMC interrupt for all cores END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-24T06:40:41.601236Z K 7 svn:log V 53 Document the show alias and add an EXAMPLES section. END K 10 svn:author V 3 dim K 8 svn:date V 27 2012-03-24T10:07:21.891581Z K 7 svn:log V 1436 Fix the following clang warning in sys/dev/dcons/dcons.c, caused by the recent changes in sys/x86/include/endian.h: sys/dev/dcons/dcons.c:190:15: error: implicit conversion from '__uint32_t' (aka 'unsigned int') to '__uint16_t' (aka 'unsigned short') changes value from 1684238190 to 28526 [-Werror,-Wconstant-conversion] buf->magic = ntohl(DCONS_MAGIC); ^~~~~~~~~~~~~~~~~~ sys/sys/param.h:306:18: note: expanded from: #define ntohl(x) __ntohl(x) ^ ./x86/endian.h:128:20: note: expanded from: #define __ntohl(x) __bswap32(x) ^ ./x86/endian.h:78:20: note: expanded from: __bswap32_gen((__uint32_t)(x)) : __bswap32_var(x)) ^ ./x86/endian.h:68:26: note: expanded from: (((__uint32_t)__bswap16(x) << 16) | __bswap16((x) >> 16)) ^ ./x86/endian.h:75:53: note: expanded from: __bswap16_gen((__uint16_t)(x)) : __bswap16_var(x))) ~~~~~~~~~~~~~ ^ This is because the __bswapXX_gen() macros (for x86) call the regular __bswapXX() macros. Since the __bswapXX_gen() variants are only called when their arguments are constant, there is no need to do that constancy check recursively. Also, it causes the above error with clang. Fix it by calling __bswap16_gen() from __bswap32_gen(), and similarly, __bswap32_gen() from __bswap64_gen(). While here, add extra parentheses around the __bswap16_gen() macro expansion, to prevent unexpected side effects. END K 10 svn:author V 8 jchandra K 8 svn:date V 27 2012-03-24T10:19:40.917231Z K 7 svn:log V 594 Update memory and resource allocation code for SoC devices The XLP on-chip devices have PCI headers, but some devices will need custom resource allocation code. - devices with no MEM/IO BARs with registers in PCIe extended reg space have to be handled in resource allocation - devices without INTPIN/INTLINE in PCI header can be supported by having these faked with a shadow register. - Some devices does not allow 8/16 bit access to the register space. Subclass pci and override attach and resource allocation methods to take care of this. Remove earlier code which did this partially. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T13:11:58.452650Z K 7 svn:log V 306 Given that this is a host-PCI-Express bridge driver, create the parent DMA tag with a 4 GB boundary as required by PCI-Express. With r232403 in place this actually is redundant. However, the host-PCI-Express bridge driver is the more appropriate place for implementing this restriction. MFC after: 3 days END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-24T13:37:57.386906Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T15:15:34.096625Z K 7 svn:log V 637 Initialize the mutexes used for the NVM and the swflag as MTX_DUPOK in order to avoid otherwise harmless witness warnings when these are acquired at the same time and due to both using MTX_NETWORK_LOCK as their type. The right fix actually would be to use different, descriptive types for these. However, the latter would require undesirable changes to the shared code base. Another approach would be to just supply NULL as the type, which was deemed as less desirable though as it would cause the unique but cryptic name also to be used for the type and to diverge from the type used by other network device drivers. MFC after: 1 week END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-24T15:17:18.852939Z K 7 svn:log V 18 Minor mdoc fixes. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T16:23:21.276623Z K 7 svn:log V 114 Consistently update to the MPI header set version 01.05.20 after r224761. Requested by: mjacob MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T18:06:48.648685Z K 7 svn:log V 65 Add QGE-X to the list of known-working cards. MFC after: 1 week END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-24T18:08:28.355056Z K 7 svn:log V 309 Add cas(4), gem(4) and hme(4) to x86 GENERICs as suggested by netchild@ in <20120222095239.Horde.0hpYHJjmRSRPRKzXsoFRbYk@webmail.leidinger.net>. According to some private emails received, it apparently is not unpopular to use at least Quad GigaSwift cards driven by cas(4) in x86 machines. MFC after: 1 week END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-24T18:25:16.763381Z K 7 svn:log V 146 Direct users to csup instead of cvsup in the csup-file boilerplate text. Reviewed by: maxim, des, swills Approved by: cperciva MFC after: 3 days END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-24T18:43:18.450235Z K 7 svn:log V 219 - Make the default values for tcsh more user friendly - Add an examples file with many of the not accepted suggestions from the discussion PR: conf/160689 Reviewed by: many Discussed on: current Approved by: cperciva END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-24T19:13:10.043771Z K 7 svn:log V 196 Provide short-circuit exit(3) implementation for rtld. There is no atexit finalizers in rtld to call on rtld exiting (due to errors). Submitted by: bde No objections from: kan MFC after: 2 weeks END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-24T19:14:44.011572Z K 7 svn:log V 179 Remove libssp_nonshared from the rtld linking set. The only use for the library was definition for the weak alias of __stack_chk_fail. No objections from: kan MFC after: 2 weeks END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-24T19:41:43.320853Z K 7 svn:log V 206 Restore the ability to use a non-standard LOCALBASE to sshd Add the ability to use a non-standard LOCALBASE to ssh Submitted by: jhb Reviewed by: des Approved by: cperciva MFC after: 0 days (with r233136) END K 10 svn:author V 3 alc K 8 svn:date V 27 2012-03-24T19:43:49.345692Z K 7 svn:log V 103 Disable detailed PV entry accounting by default. Add a config option to enable it. MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-24T19:59:14.727542Z K 7 svn:log V 159 Following suggestions from alc, skip wired mappings in pmap_remove_pages() and remove moea64_attr_*() in favor of direct calls to vm_page_dirty() and friends. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-24T21:10:19.550598Z K 7 svn:log V 113 Fix build by adding new directory to mtree in r233429 Submitted by: flo Approved by: cperciva MFC after: 1 week END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-24T22:32:19.512165Z K 7 svn:log V 85 Only call vm_page_dirty() on pages that are writable in order not to confuse the VM. END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-24T23:10:18.074199Z K 7 svn:log V 119 Add a few more examples Submitted by: jmallett Approved by: cperciva (implicit) MFC after: 3 days X-MFC-With: r233429 END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2012-03-25T00:02:37.403223Z K 7 svn:log V 193 Add a third flags argument to ffs_syncvnode to avoid a possible conflict with MNT_WAIT flags that passed in its second argument. This will be MFC'ed together with r232351. Discussed with: kib END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-25T00:44:54.120440Z K 7 svn:log V 245 MFC r232834: In ffs_syncvnode(), pass boolean false as second argument of ffs_update(). Synchronous inode block update is not needed for MNT_LAZY callers (syncer), and since waitfor values are not zero, code did unneccessary synchronous update. END K 10 svn:author V 3 kib K 8 svn:date V 27 2012-03-25T01:00:31.224335Z K 7 svn:log V 137 MFC r232836: Do schedule delayed writes for async mounts. While there, make some style adjustments, like missed () around return values. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-25T02:01:17.702774Z K 7 svn:log V 349 Too eliminate overhead in revision 233103 which enters kernel to unlock a contested mutex which results holding mutex too long, we use 3 state simple mutex when possible, it is purely implemented in userland. The unlocking thread only wakes sleeping thread up but not writes memory, the error in kernel caused by memory error can be safely ignored. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:03:22.203896Z K 7 svn:log V 448 Vendor import of tzdata2012a Update to 2012a - Updates to various locations in Antarctica. - Armenia will abolish DST this year. - Not only Samoa has moved to UTC+14, also Fakaofo did. - There will be a leap second in 30 June 2012. - Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston. - Chili stays on DST until 28 April 2012 - The Falkland islands will stay on DST this year. Obtained from: ftp://ftp.iana.org/tz/releases/ END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2012-03-25T02:05:43.164116Z K 7 svn:log V 83 Use optimistic version of THR_LOCK_RELEASE which is better when lock is contented. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:07:47.483547Z K 7 svn:log V 19 Tag of tzdata2012a END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:10:31.216232Z K 7 svn:log V 381 MFV of 233442, tzdata2012a - Updates to various locations in Antarctica. - Armenia will abolish DST this year. - Not only Samoa has moved to UTC+14, also Fakaofo did. - There will be a leap second in 30 June 2012. - Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston. - Chili stays on DST until 28 April 2012 - The Falkland islands will stay on DST this year. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:16:57.274901Z K 7 svn:log V 163 MFC of 226976, tzdata2011n - Fiji will end DST on 22 January 2012. - Moldova split into two timezones has been cancelled. - Cuba will end DST on 13 November 2011 END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:18:22.782152Z K 7 svn:log V 382 MFC of r233445, tzdata2012a - Updates to various locations in Antarctica. - Armenia will abolish DST this year. - Not only Samoa has moved to UTC+14, also Fakaofo did. - There will be a leap second in 30 June 2012. - Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston. - Chili stays on DST until 28 April 2012 - The Falkland islands will stay on DST this year. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:19:02.211967Z K 7 svn:log V 382 MFC of r233445, tzdata2012a - Updates to various locations in Antarctica. - Armenia will abolish DST this year. - Not only Samoa has moved to UTC+14, also Fakaofo did. - There will be a leap second in 30 June 2012. - Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston. - Chili stays on DST until 28 April 2012 - The Falkland islands will stay on DST this year. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:19:39.165932Z K 7 svn:log V 382 MFC of r233445, tzdata2012a - Updates to various locations in Antarctica. - Armenia will abolish DST this year. - Not only Samoa has moved to UTC+14, also Fakaofo did. - There will be a leap second in 30 June 2012. - Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston. - Chili stays on DST until 28 April 2012 - The Falkland islands will stay on DST this year. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2012-03-25T02:20:18.275802Z K 7 svn:log V 382 MFC of r233445, tzdata2012a - Updates to various locations in Antarctica. - Armenia will abolish DST this year. - Not only Samoa has moved to UTC+14, also Fakaofo did. - There will be a leap second in 30 June 2012. - Historical updates of 1918 to Canada, Winn, Regina, Edm, Vanc, Creston. - Chili stays on DST until 28 April 2012 - The Falkland islands will stay on DST this year. END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-25T02:22:32.028882Z K 7 svn:log V 268 Update manual pages for MIPS-related CPUs: - Rename pmc.mips to pmc.mips24k since it covers just one CPU, no whole architecture - Add documetnations for Octeon's PMC counters - Remove CAVEATS section from pmc.mips24k page: PMC for MIPS supports sampling now. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-25T03:11:57.171076Z K 7 svn:log V 1119 Create a new task to handle 802.11n channel width changes. Currently, a channel width change updates the 802.11n HT info data in net80211 but it doesn't trigger any device changes. So the device driver may decide that HT40 frames can be transmitted but the last device channel set only had HT20 set. Now, a task is scheduled so a hardware reset or change isn't done during any active ongoing RX. It also means that it's serialised with the other task operations (eg channel change.) This isn't the final incantation of this work, see below. For now, any unmodified drivers will simply receive a channel change log entry. A subsequent patch to ath(4) will introduce some basic channel change handling (by resetting the NIC.) Other NICs may need to update their rate control information. TODO: * There's still a small window at the present moment where the channel width has been updated but the task hasn't been fired. The final version of this should likely pass in a channel width field to the driver and let the driver atomically do whatever it needs to before changing the channel. PR: kern/166286 END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-25T03:14:31.133592Z K 7 svn:log V 509 Add the new channel width change field to the ath(4) driver. This is not entirely correct as it simply resets the channel, flushing whatever is in the TX/RX queue. This can and will break aggregation BAW tracking. But the alternative (HT40 frames being sent with the hardware in HT20 mode) is even worse. There's still a small window between the htinfo being received (and the ni_chw field being updated) which could cause problems. I'll look at fleshing this out in follow-up commits. PR: kern/166286 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2012-03-25T06:01:34.342294Z K 7 svn:log V 190 More PMAP performance improvements: on powerpc64, when TLBIE can be run with exceptions enabled, leave them enabled and use a regular mutex to guard TLB invalidations instead of a spinlock. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T09:18:34.770404Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T09:19:25.771656Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T09:20:14.697034Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T09:21:09.826021Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T09:23:10.432538Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-25T10:59:40.122180Z K 7 svn:log V 176 MFC r233283: Load the firmware during init not attach, as a root filesystem might not yet be available. While here, also print the firmware version. Submitted by: PseudoCylon END K 10 svn:author V 8 bschmidt K 8 svn:date V 27 2012-03-25T11:42:59.494730Z K 7 svn:log V 176 MFC r233283: Load the firmware during init not attach, as a root filesystem might not yet be available. While here, also print the firmware version. Submitted by: PseudoCylon END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T12:13:24.092020Z K 7 svn:log V 36 Remove superfluous paragraph macro. END K 10 svn:author V 5 trasz K 8 svn:date V 27 2012-03-25T12:53:19.113442Z K 7 svn:log V 43 Remove unused define. Discussed with: kib END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2012-03-25T13:20:38.699182Z K 7 svn:log V 54 MFC: r232355 Add snd_hdspe(4) to the hardware notes. END K 10 svn:author V 5 gibbs K 8 svn:date V 27 2012-03-25T14:20:43.960368Z K 7 svn:log V 931 Correct failure to attach the PV block front device on Citrix XenServer configurations that advertise the multi-page ring extension, but only allow a single page of ring space. sys/dev/xen/blkfront/blkfront.c: If only one page of ring space is being used, do not publish in the XenStore the number of pages in use (1), via either of the supported multi-page ring extension schemes. Single page operation is the same with or without the ring-page extension being negotiated. Relying on the legacy behavior avoids an incompatible difference in how the two ring-page extension schemes that are out in the wild, deal with the base case of a single page. The Amazon/Red Hat drivers use the same XenStore variable as if the extension was not negotiated. The Citrix drivers assume the new ring reference XenStore variables will be available Reported by: Oliver Schonefeld MFC after: 3 days END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T16:00:56.453598Z K 7 svn:log V 55 Make sure sections are sorted into conventional order. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-25T16:20:01.370371Z K 7 svn:log V 120 MFC: r232754 (remaining part) Make boot2 build with Clang again. Submitted by: dim (bsd.sys.mk) Reviewed by: dim, jhb END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-25T16:24:42.100392Z K 7 svn:log V 219 MFC: r233105 Declare some variables static in order to reduce the object size and redo r232822 (MFC'ed to stable/9 in r232962) in a less hackish way. The latter now no longer breaks compiling the x86 boot2 with clang. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-25T16:24:53.287054Z K 7 svn:log V 150 MFC: r233105 Declare some variables static in order to reduce the object size and redo r232822 (MFC'ed to stable/8 in 232963) in a less hackish way. END K 10 svn:author V 6 marius K 8 svn:date V 27 2012-03-25T16:25:18.089752Z K 7 svn:log V 151 MFC: r233105 Declare some variables static in order to reduce the object size and redo r232822 (MFC'ed to stable/7 in r232966) in a less hackish way. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-03-25T18:42:19.513396Z K 7 svn:log V 325 MFC: r232482 Add support for PWM controlled fans. I found these fans on my PowerMac9,1. These fans are not located under the same node as the the RPM controlled ones, So I had to adapt the current source to parse and fill the properties correctly. To control the fans we can set the PWM ratio via sysctl between 20 and 100%. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2012-03-25T18:43:14.806406Z K 7 svn:log V 92 MFC: r233188 Provide a fix for certain PowerMacs where the U3 i2c lacks the interrupt info. END K 10 svn:author V 4 joel K 8 svn:date V 27 2012-03-25T19:34:05.072939Z K 7 svn:log V 41 mdoc: document title should be all caps. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-03-25T20:01:03.624494Z K 7 svn:log V 119 MFC r233130: fts(3): Document cases where FTS_NOCHDIR is set implicitly. PR: docs/166091 Submitted by: Matthew Story END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-03-25T20:03:13.061515Z K 7 svn:log V 333 MFC r233132: fts(3): Mention that FTS_NOCHDIR imposes {PATH_MAX} limits on the returned pathnames. With the current API (no *at functions), FTS_NOCHDIR requires that the fts_accpath start with the original path passed to fts_open(); therefore, the depth that can be reached is limited by the {PATH_MAX} constraint on this pathname. END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-03-25T20:07:50.426610Z K 7 svn:log V 119 MFC r233130: fts(3): Document cases where FTS_NOCHDIR is set implicitly. PR: docs/166091 Submitted by: Matthew Story END K 10 svn:author V 6 jilles K 8 svn:date V 27 2012-03-25T20:09:02.374728Z K 7 svn:log V 333 MFC r233132: fts(3): Mention that FTS_NOCHDIR imposes {PATH_MAX} limits on the returned pathnames. With the current API (no *at functions), FTS_NOCHDIR requires that the fts_accpath start with the original path passed to fts_open(); therefore, the depth that can be reached is limited by the {PATH_MAX} constraint on this pathname. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-03-25T20:37:59.397254Z K 7 svn:log V 298 - Permit number of ipfw tables to be changed in runtime. net.inet.ip.fw.tables_max is now read-write. - Bump IPFW_TABLES_MAX to 65535 Default number of tables is still 128 - Remove IPFW_TABLES_MAX from ipfw(8) code. Sponsored by Yandex LLC Approved by: kib(mentor) MFC after: 2 weeks END K 10 svn:author V 3 rmh K 8 svn:date V 27 2012-03-25T21:54:36.183647Z K 7 svn:log V 47 Follow non-BSD case when GNU/Hurd is detected. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2012-03-25T23:50:34.126938Z K 7 svn:log V 376 Add some more debugging to try and nail down exactly what's going on when I see traffic stalls. It turns out that the bug isn't because the first and last frame in the BAW is in the software queue. It is more likely that it's because the first frame in the BAW is still in the software queue and thus there's no more room to allocate and do subsequent TX. PR: kern/166357 END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-26T01:15:38.887619Z K 7 svn:log V 110 MFC r233138: draft-ietf-ipv6-scoping-arch-02.txt is now RFC 4007 PR: phk Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-26T01:16:34.448587Z K 7 svn:log V 110 MFC r233138: draft-ietf-ipv6-scoping-arch-02.txt is now RFC 4007 PR: phk Approved by: cperciva (implicit) END K 10 svn:author V 6 eadler K 8 svn:date V 27 2012-03-26T01:16:56.587390Z K 7 svn:log V 110 MFC r233138: draft-ietf-ipv6-scoping-arch-02.txt is now RFC 4007 PR: phk Approved by: cperciva (implicit) END K 10 svn:author V 5 gonzo K 8 svn:date V 27 2012-03-26T01:26:33.956121Z K 7 svn:log V 102 Use macroses to load/store pointers and increase indexes instead of hardcoded MIPS64 instructions END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T02:40:54.663111Z K 7 svn:log V 350 MFC r232015-232016: r232015: Add Seeq Technology 80220 PHY support to smcphy(4). This PHY is found on Adaptec AIC-6915 Starfire ethernet controller. While here, use status register to know resolved speed/duplex. With this change, sf(4) correctly reports speed/duplex of established link. r232016: Connect smcphy(4) to mii module build. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T03:45:46.370401Z K 7 svn:log V 1149 MFC r232019,232021,232025,232027,232029,232031,232040: r232019: Give hardware chance to drain active DMA cycles. r232021: If there are not enough RX buffers, release partially allocated RX buffers. r232025: Introduce sf_ifmedia_upd_locked() and have driver reset PHY before switching to selected media. While here, set if_drv_flags before switching to selected media. r232027: No need to reprogram hardware RX filter when driver is not running. r232029: Remove taskqueue based MII stat change handler. Driver does not need deferred link state change processing. While I'm here, do not report current link status if interface is not UP. r232031: With r232015, sf(4) gets correct speed/duplex of established link. Add more strict speed check in sf_miibus_statchg() and do not touch MAC config registers when driver lost a link. r232040: Add check for IFF_DRV_RUNNING flag after serving an interrupt and don't give RX path more priority than TX path. Also remove infinite loop in interrupt handler and limit number of iteration to 32. This change addresses system load fluctuations under high network load. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T03:48:21.519026Z K 7 svn:log V 945 MFC r232019,232021,232025,232027,232029,232040: r232019: Give hardware chance to drain active DMA cycles. r232021: If there are not enough RX buffers, release partially allocated RX buffers. r232025: Introduce sf_ifmedia_upd_locked() and have driver reset PHY before switching to selected media. While here, set if_drv_flags before switching to selected media. r232027: No need to reprogram hardware RX filter when driver is not running. r232029: Remove taskqueue based MII stat change handler. Driver does not need deferred link state change processing. While I'm here, do not report current link status if interface is not UP. r232040: Add check for IFF_DRV_RUNNING flag after serving an interrupt and don't give RX path more priority than TX path. Also remove infinite loop in interrupt handler and limit number of iteration to 32. This change addresses system load fluctuations under high network load. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T03:49:46.010523Z K 7 svn:log V 945 MFC r232019,232021,232025,232027,232029,232040: r232019: Give hardware chance to drain active DMA cycles. r232021: If there are not enough RX buffers, release partially allocated RX buffers. r232025: Introduce sf_ifmedia_upd_locked() and have driver reset PHY before switching to selected media. While here, set if_drv_flags before switching to selected media. r232027: No need to reprogram hardware RX filter when driver is not running. r232029: Remove taskqueue based MII stat change handler. Driver does not need deferred link state change processing. While I'm here, do not report current link status if interface is not UP. r232040: Add check for IFF_DRV_RUNNING flag after serving an interrupt and don't give RX path more priority than TX path. Also remove infinite loop in interrupt handler and limit number of iteration to 32. This change addresses system load fluctuations under high network load. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T03:54:19.727024Z K 7 svn:log V 532 MFC r232145: Use correct Config registers for RTL8139 family. Unlike RTL8168 and RTL810x family , RTL8139 has different register map for Config registers. While here, follow the lead of re(4) in WOL configuration. - Disable WOL_UCAST and WOL_MCAST capabilities by default. - Config5 register write does not need to unlock EEPROM access on RTL8139 family but unlocking EEPROM access does not affect its operation and make it consistent with re(4). Reported by: Matt Renzelmann mjr <> cs dot wisc dot edu END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T03:55:45.111294Z K 7 svn:log V 532 MFC r232145: Use correct Config registers for RTL8139 family. Unlike RTL8168 and RTL810x family , RTL8139 has different register map for Config registers. While here, follow the lead of re(4) in WOL configuration. - Disable WOL_UCAST and WOL_MCAST capabilities by default. - Config5 register write does not need to unlock EEPROM access on RTL8139 family but unlocking EEPROM access does not affect its operation and make it consistent with re(4). Reported by: Matt Renzelmann mjr <> cs dot wisc dot edu END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T03:56:52.495685Z K 7 svn:log V 532 MFC r232145: Use correct Config registers for RTL8139 family. Unlike RTL8168 and RTL810x family , RTL8139 has different register map for Config registers. While here, follow the lead of re(4) in WOL configuration. - Disable WOL_UCAST and WOL_MCAST capabilities by default. - Config5 register write does not need to unlock EEPROM access on RTL8139 family but unlocking EEPROM access does not affect its operation and make it consistent with re(4). Reported by: Matt Renzelmann mjr <> cs dot wisc dot edu END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:27:01.267836Z K 7 svn:log V 928 MFC r232246: Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to extract a link status of PHY when parent driver is re(4). RGEPHY_MII_SSR register does not seem to report correct PHY status on some integrated PHYs used with re(4). Unfortunately, RealTek PHYs have no additional information to differentiate integrated PHYs from external ones so relying on PHY model number is not enough to know that. However, it seems RGEPHY_MII_SSR register exists for external RealTek PHYs so checking parent driver would be good indication to know which PHY was used. In other words, for non-re(4) controllers, the PHY is external one and its revision number is greater than or equal to 2. This change fixes intermittent link UP/DOWN messages reported on RTL8169 controller. Also, mii_attach(9) is tried after setting interface name since rgephy(4) have to know parent driver name. PR: kern/165509 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:29:06.403345Z K 7 svn:log V 928 MFC r232246: Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to extract a link status of PHY when parent driver is re(4). RGEPHY_MII_SSR register does not seem to report correct PHY status on some integrated PHYs used with re(4). Unfortunately, RealTek PHYs have no additional information to differentiate integrated PHYs from external ones so relying on PHY model number is not enough to know that. However, it seems RGEPHY_MII_SSR register exists for external RealTek PHYs so checking parent driver would be good indication to know which PHY was used. In other words, for non-re(4) controllers, the PHY is external one and its revision number is greater than or equal to 2. This change fixes intermittent link UP/DOWN messages reported on RTL8169 controller. Also, mii_attach(9) is tried after setting interface name since rgephy(4) have to know parent driver name. PR: kern/165509 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:30:46.493762Z K 7 svn:log V 928 MFC r232246: Prefer RL_GMEDIASTAT register to RGEPHY_MII_SSR register to extract a link status of PHY when parent driver is re(4). RGEPHY_MII_SSR register does not seem to report correct PHY status on some integrated PHYs used with re(4). Unfortunately, RealTek PHYs have no additional information to differentiate integrated PHYs from external ones so relying on PHY model number is not enough to know that. However, it seems RGEPHY_MII_SSR register exists for external RealTek PHYs so checking parent driver would be good indication to know which PHY was used. In other words, for non-re(4) controllers, the PHY is external one and its revision number is greater than or equal to 2. This change fixes intermittent link UP/DOWN messages reported on RTL8169 controller. Also, mii_attach(9) is tried after setting interface name since rgephy(4) have to know parent driver name. PR: kern/165509 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:36:22.252623Z K 7 svn:log V 299 MFC r232848: Add workaround for PCI-X BCM5704 controller that live behind AMD-8131 PCI-X bridge. The bridge seems to reorder write access to mailbox registers such that it caused watchdog timeouts by out-of-order TX completions. Tested by: Michael L. Squires siralan dot org > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:37:42.666770Z K 7 svn:log V 299 MFC r232848: Add workaround for PCI-X BCM5704 controller that live behind AMD-8131 PCI-X bridge. The bridge seems to reorder write access to mailbox registers such that it caused watchdog timeouts by out-of-order TX completions. Tested by: Michael L. Squires siralan dot org > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:39:10.765852Z K 7 svn:log V 299 MFC r232848: Add workaround for PCI-X BCM5704 controller that live behind AMD-8131 PCI-X bridge. The bridge seems to reorder write access to mailbox registers such that it caused watchdog timeouts by out-of-order TX completions. Tested by: Michael L. Squires siralan dot org > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:47:06.453059Z K 7 svn:log V 838 MFC r232849-232850: r232849: Show PCI bus speed and width as well as running mode of PCI-X device in device attach. This would help to narrow down issue to a specific controller and operating mode of the controller. While I'm here rename BGE_MISCCFG_BOARD_ID with BGE_MISCCFG_BOARD_ID_MASK. r232850: Make if_ierrors updated whenever any of the following counters are updated. o Number of times NIC ran out of RX buffer descriptors o Number of inbound packet errors o Number of inbound packets that were chosen to be discarded Previously only the discarded packet counter was used to update if_ierrors. This change fixes wrong if_ierrors counter on BCM570[0-4] controllers. For BCM5705 and later controllers bge(4) already correctly counted it. Reported by: Eugene Grosbein rdtc dot ru> END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:49:57.382550Z K 7 svn:log V 838 MFC r232849-232850: r232849: Show PCI bus speed and width as well as running mode of PCI-X device in device attach. This would help to narrow down issue to a specific controller and operating mode of the controller. While I'm here rename BGE_MISCCFG_BOARD_ID with BGE_MISCCFG_BOARD_ID_MASK. r232850: Make if_ierrors updated whenever any of the following counters are updated. o Number of times NIC ran out of RX buffer descriptors o Number of inbound packet errors o Number of inbound packets that were chosen to be discarded Previously only the discarded packet counter was used to update if_ierrors. This change fixes wrong if_ierrors counter on BCM570[0-4] controllers. For BCM5705 and later controllers bge(4) already correctly counted it. Reported by: Eugene Grosbein rdtc dot ru> END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T04:51:04.550878Z K 7 svn:log V 838 MFC r232849-232850: r232849: Show PCI bus speed and width as well as running mode of PCI-X device in device attach. This would help to narrow down issue to a specific controller and operating mode of the controller. While I'm here rename BGE_MISCCFG_BOARD_ID with BGE_MISCCFG_BOARD_ID_MASK. r232850: Make if_ierrors updated whenever any of the following counters are updated. o Number of times NIC ran out of RX buffer descriptors o Number of inbound packet errors o Number of inbound packets that were chosen to be discarded Previously only the discarded packet counter was used to update if_ierrors. This change fixes wrong if_ierrors counter on BCM570[0-4] controllers. For BCM5705 and later controllers bge(4) already correctly counted it. Reported by: Eugene Grosbein rdtc dot ru> END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T05:14:04.453892Z K 7 svn:log V 679 MFC r232951,232953,233158: r232951: fxp(4) does not handle deferred dma map loading. Tell bus_dmamap_load(9) that it should return immediately with error when there are insufficient mapping resources. r232953: Fix white space nits. r233158: Do not change current media when driver is already running. If driver is running driver would have already completed flow control configuration. This change removes unnecessary media changes in controller reconfiguration cases such that it does not trigger link reestablishment for configuration change requests like promiscuous mode change. Reported by: Many Tested by: Mike Tancsa sentex dot net> END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T05:15:44.386048Z K 7 svn:log V 679 MFC r232951,232953,233158: r232951: fxp(4) does not handle deferred dma map loading. Tell bus_dmamap_load(9) that it should return immediately with error when there are insufficient mapping resources. r232953: Fix white space nits. r233158: Do not change current media when driver is already running. If driver is running driver would have already completed flow control configuration. This change removes unnecessary media changes in controller reconfiguration cases such that it does not trigger link reestablishment for configuration change requests like promiscuous mode change. Reported by: Many Tested by: Mike Tancsa sentex dot net> END K 10 svn:author V 7 yongari K 8 svn:date V 27 2012-03-26T05:17:59.062682Z K 7 svn:log V 679 MFC r232951,232953,233158: r232951: fxp(4) does not handle deferred dma map loading. Tell bus_dmamap_load(9) that it should return immediately with error when there are insufficient mapping resources. r232953: Fix white space nits. r233158: Do not change current media when driver is already running. If driver is running driver would have already completed flow control configuration. This change removes unnecessary media changes in controller reconfiguration cases such that it does not trigger link reestablishment for configuration change requests like promiscuous mode change. Reported by: Many Tested by: Mike Tancsa sentex dot net> END K 10 svn:author V 7 pluknet K 8 svn:date V 27 2012-03-26T09:31:15.220015Z K 7 svn:log V 93 MFC r227214 (by antoine, partially): Add more obsolete files. PR: misc/165523 (RELENG_9) END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2012-03-26T09:34:17.218189Z K 7 svn:log V 311 - Add knlist_init_rw_reader() function to kqueue(9). Function acquired reader lock if needed. Assert check for reader or writer lock (RA_LOCKED / RA_UNLOCKED) - While here, add knlist_init_mtx.9 to MLINKS and fix some style(9) issues Reviewed by: glebius Approved by: ae(mentor) MFC after: 2 weeks END K 10 svn:author V 6 ivoras K 8 svn:date V 27 2012-03-26T11:48:47.951018Z K 7 svn:log V 99 Add MySQL port 3306 Obtained from: http://www.iana.org/assignments/port-numbers MFC after: 1 week END