Во(264888 112 341 364 116 195 282 167 183 203 131 1307 188 204 166 361 240 197 289 2056 449 731 285 203 106 139 244 129 129 930 209 210 136 117 114 349 448 1096 336 218 176 153 128 292 236 306 220 189 432 538 466 466 322 322 327 327 627 627 435 435 330 243 243 567 567 666 666 445 445 400 400 179 179 373 466 282 292 152 912 131 182 117 363 212 183 124 120 147 205 350 263 380 654 426 152 213 137 226 425 145 338 175 249 157 223 147 204 264 552 722 902 317 177 252 K 10 svn:author V 8 rmacklem K 8 svn:date V 27 2014-04-24T20:47:58.729520Z K 7 svn:log V 243 The PR reported that the old NFS server did not set uio_td == NULL for the VOP_READ() call. This patch fixes both the old and new server for this case. PR: 185232 Submitted by: PR had patch for old server Reviewed by: kib MFC after: 2 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2014-04-24T20:53:09.262124Z K 7 svn:log V 268 Correct min/max cluster counts for FAT12/16/32 FAT12 1..4084 FAT16 4085..65524 FAT32 65525.. This is required for interoperability with other FAT implementations, and in particular UEFI. Obtained from: NetBSD Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:17:48.482762Z K 7 svn:log V 24 More like gone in 11... END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:17:53.520778Z K 7 svn:log V 102 Channel my inner hobgoblin and make all functions enclosed in () instead of some in () and some in {} END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:18:01.398694Z K 7 svn:log V 189 Turns out that bash whines line a spoiled three year old when it encounters empty function. Put the 'true' passifier back. This effectively backs out r264857. Submitted by: Garrett Cooper END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:18:06.181133Z K 7 svn:log V 75 Always define LIBLDNS. We don't need to only define it when it is enabled. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:18:14.143313Z K 7 svn:log V 91 LIBMILTER can be defined always. No need to restrict to only when we're building sendmail. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:18:22.014305Z K 7 svn:log V 110 Don't need to make these conditional on MK_LIBCPLUSPLUS. They can be defined all the time without ill effect. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T21:18:29.392848Z K 7 svn:log V 39 LIBUNBOUND can be unconditionally set. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2014-04-24T22:28:53.108109Z K 7 svn:log V 1210 Merge from CheriBSD: commit 003649d9622ce252a2794ae5891ee7e7c209caca Author: Robert N. M. Watson Date: Wed Feb 5 18:32:09 2014 +0000 Teach the FreeBSD/beri boot to "auto-detect" whether argument 4 (a3) is a memory size of pointer to a struct bootinfo * by looking at its value and seeing whether it is pointer-like. If a pointer, assume it's a bootinfo and extract memsize from it instead; otherwise, use it as memsize directly. This allows kernels to support bootinfo being passed by loader (and boot2) while still supporting older Miniboot setups. commit f7045af9a1e92b6bd92541fe5d25abf66d824e8f Author: Robert N. M. Watson Date: Thu Feb 6 13:45:34 2014 +0000 When the module metadata pointer is available from loader, use it in the kernel. commit 52e0e1ff2cba9dfcfab9e1d0a31fb7fdf7317450 Author: Robert N. M. Watson Date: Thu Feb 6 19:57:48 2014 +0000 In the BERI kernel boot code, extract 'boothowto' (which includes boot flags such as '-s') and 'envp' from passed module data. Booting to single-user mode using boot flags now works. Sponsored by: DARPA, AFRL END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-04-24T23:10:24.229946Z K 7 svn:log V 93 Fix ah_powerMode to be set at the correct place for the AR5210. Tested: * AR5210, STA mode END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-04-24T23:11:18.844766Z K 7 svn:log V 108 Fix the AR5210 HAL code to store the association ID and restore it upon reset. Tested: * AR5210, STA mode END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-04-24T23:11:36.462200Z K 7 svn:log V 71 Fix the AR5211 power mode tracking stuff. Tested: * AR5211, STA mode END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-04-24T23:12:40.801603Z K 7 svn:log V 265 Modify the ioctl path to support querying things if the vap state is SLEEP rather than RUN. Without this things like 'ifconfig wlan0 list sta' don't work when the NIC is power save. Tested: * AR5212, STA mode (with powersave) * AR5416, STA mode (with powersave) END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T23:17:31.676792Z K 7 svn:log V 147 Use MK_OPENLDAP in preference to WITH_OPENLDAP and make it a default NO option to match the opt-in nature of the historical nature of this option. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-24T23:17:40.411903Z K 7 svn:log V 104 Add option WITHOUT_VI to not build/install vi. vi was the largest binary without a knob to turn it off. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2014-04-24T23:28:09.470962Z K 7 svn:log V 193 Fix beri_simplebus probing. It's not allowed to have two modules on the same bus with the same name. Tweak the description so it's clear the BERI version attached. Sponsored by: DARPA, AFRL END K 10 svn:author V 7 asomers K 8 svn:date V 27 2014-04-24T23:56:56.851633Z K 7 svn:log V 1958 Fix subnet and default routes on different FIBs on the same subnet. These two bugs are closely related. The root cause is that ifa_ifwithnet does not consider FIBs when searching for an interface address. sys/net/if_var.h sys/net/if.c Add a fib argument to ifa_ifwithnet and ifa_ifwithdstadddr. Those functions will only return an address whose interface fib equals the argument. sys/net/route.c Update calls to ifa_ifwithnet and ifa_ifwithdstaddr with fib arguments. sys/netinet/in.c Update in_addprefix to consider the interface fib when adding prefixes. This will prevent it from not adding a subnet route when one already exists on a different fib. sys/net/rtsock.c sys/netinet/in_pcb.c sys/netinet/ip_output.c sys/netinet/ip_options.c sys/netinet6/nd6.c Add RT_DEFAULT_FIB arguments to ifa_ifwithdstaddr and ifa_ifwithnet. In some cases it there wasn't a clear specific fib number to use. In others, I was unable to test those functions so I chose RT_DEFAULT_FIB to minimize divergence from current behavior. I will fix some of the latter changes along with PR kern/187553. tests/sys/netinet/fibs_test.sh tests/sys/netinet/udp_dontroute.c tests/sys/netinet/Makefile Revert r263738. The udp_dontroute test was right all along. However, bugs kern/187550 and kern/187553 cancelled each other out when it came to this test. Because of kern/187553, ifa_ifwithnet searched the default fib instead of the requested one, but because of kern/187550, there was an applicable subnet route on the default fib. The new test added in r263738 doesn't work right, however. I can verify with dtrace that ifa_ifwithnet returned the wrong address before I applied this commit, but route(8) miraculously found the correct interface to use anyway. I don't know how. Clear expected failure messages for kern/187550 and kern/187552. PR: kern/187550 PR: kern/187552 Reviewed by: melifaro MFC after: 3 weeks Sponsored by: Spectra Logic END K 10 svn:author V 6 adrian K 8 svn:date V 27 2014-04-25T01:20:10.767152Z K 7 svn:log V 353 Add a SLEEP->SCAN transition. Without this a disassociate or scan request during SLEEP results in a hang. Whilst I'm here, add in some disabled code that will transition to RUN if there's multicast traffic. It's not needed for Atheros hardware but it may be for other hardware. Tested: * AR5416, STA mode (powersave) * AR5212, STA mode (powersave) END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-25T01:38:57.113021Z K 7 svn:log V 638 Refactor make-memstick.sh to avoid creating the 'dangerously dedicated' partition scheme, reported to cause the memstick.img to fail to boot. Similar to how make-memstick.sh worked on stable/8, use makefs(8) to create the actual filesystem. Then calculate the size of the resulting image file, create the GPT partition scheme, then dd(1) the filesystem created with makefs(8) to the freebsd-ufs GPT partition. This was tested on a known-working machine[1] for regression, and a known-not-working machine[2] to ensure the boot issue has been resolved. Testers: myself [1], db [2] MFC After: 1 week Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-25T01:55:14.953099Z K 7 svn:log V 192 Style cleanup - Indent 1 full tab where needed - Use $() for shell exec - Insert a space between '$(( ))' parens MFC After: 1 week X-MFC-With: r264907 Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T02:29:29.885046Z K 7 svn:log V 110 Put my inner hobgoblin on a leash: These routines, at least, needed to be {} so they don't run in a subshell. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-04-25T04:01:25.410802Z K 7 svn:log V 10 Constify. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2014-04-25T04:49:27.855966Z K 7 svn:log V 43 MFC r258195+r264361: nc from OpenBSD 5.5. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-04-25T08:01:22.036645Z K 7 svn:log V 149 Add preliminary support for the Realtek RTL8188EUS and RTL8188ETV chipsets. Committed over the TP-LINK TL-WN725N v2 (RTL8188EUS) on amd64 with WPA. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-04-25T09:53:15.310984Z K 7 svn:log V 32 MFC r264653: Add new USB quirk. END K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-04-25T09:54:42.373739Z K 7 svn:log V 32 MFC r264653: Add new USB quirk. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2014-04-25T11:36:11.366917Z K 7 svn:log V 833 The current API for adding rules with pool addresses is the following: - DIOCADDADDR adds addresses and puts them into V_pf_pabuf - DIOCADDRULE takes all addresses from V_pf_pabuf and links them into rule. The ugly part is that if address is a table, then it is initialized in DIOCADDRULE, because we need ruleset, and DIOCADDADDR doesn't supply ruleset. But if address is a dynaddr, we need address family, and address family could be different for different addresses in one rule, so dynaddr is initialized in DIOCADDADDR. This leads to the entangled state of addresses on V_pf_pabuf. Some are initialized, and some not. That's why running pf_empty_pool(&V_pf_pabuf) can lead to a panic on a NULL table address. Since proper fix requires API/ABI change, for now simply plug the panic in pf_empty_pool(). Reported by: danger END K 10 svn:author V 6 tychon K 8 svn:date V 27 2014-04-25T13:38:18.446214Z K 7 svn:log V 113 Provide a very basic stub for the 8042 PS/2 keyboard controller. Reviewed by: jhb Approved by: neel (co-mentor) END K 10 svn:author V 7 asomers K 8 svn:date V 27 2014-04-25T14:35:30.761894Z K 7 svn:log V 113 Style fixes, mostly trailing whitespace elimination. No functional change. Reported by: pho MFC after: 3 weeks END K 10 svn:author V 8 bdrewery K 8 svn:date V 27 2014-04-25T15:27:19.917788Z K 7 svn:log V 39 Fix spelling error. MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2014-04-25T16:53:42.305169Z K 7 svn:log V 24 Import ACPICA 20140424. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2014-04-25T16:54:28.702313Z K 7 svn:log V 21 Tag ACPICA 20140424. END K 10 svn:author V 6 grehan K 8 svn:date V 27 2014-04-25T17:35:34.117991Z K 7 svn:log V 253 Respect and track the enable bit in the PCI configuration address word. Ignore writes, and return 0xff's, on config accesses when not set. Behaviour now matches that seen on h/w. Found with a NetBSD/amd64 guest. Reviewed by: tychon MFC after: 3 weeks END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-25T18:46:54.239185Z K 7 svn:log V 355 Revert r264907 and r264908: Restore make-memstick.sh back to its original state to unbreak booting for machines that do not support GPT. I have in-progress work to keep the MBR layout and add the EFI partition, but it is not yet ready, and does need at least one full release build to be certain it does not break. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-25T19:13:57.574729Z K 7 svn:log V 1002 Remove device type from the uftdi_devs table, enhance the jtag-skip feature. Device type and revision is now determined from the bcdDevice field and doesn't need to be in the table at all. The feature that skips creation of /dev/ttyU* entries for jtag and gpio interfaces is enhanced: - The feature is now optional, but enabled by default. A tunable and sysctl are available to control it: hw.usb.uftdi.skip_jtag_interfaces. - We no longer assume interface #0 is the only jtag interface. Up to eight interfaces per chip can be flagged as jtag. (Current ftdi chips support a max of 4 interfaces; this leaves room for growth.) - Some manufacturers don't change the product ID or use the same ID for different devices intended for both serial-comms and jtag/gpio use. Often while the product ID is the same, the product name string is different, so it's now possible to search for the product name in a table of strings and get the set of non-tty interfaces from that table. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:00.543889Z K 7 svn:log V 243 Remove NO_CTF, exccept as an undocumented compatibility option. Convert all other uses to MK_CTF=no. Set MK_CTF=no rather than the indirect WITHOUT_CDDL in filemon regression. It is expected that NO_CTF will be removed in FreeBSD 12 entirely. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:05.615186Z K 7 svn:log V 125 Eliminate last vestigies of NO_MAN= in the tree. Also, remove ineffectual NOMAN= lines. These don't change the build at all. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:13.310007Z K 7 svn:log V 84 Kill last remaining NO_INSTALLLIB in tree by converting it over to MK_INSTALLIB=no. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:18.080332Z K 7 svn:log V 61 NO_DEBUG_FILES -> MK_DEBUG_FILES=no in last remaining place. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:26.386382Z K 7 svn:log V 36 Spell NO_PROFILE= as MK_PROFILE=no. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:37.084110Z K 7 svn:log V 199 Now that all the NO_foo expressed in this loop have been removed from the tree, start warning that NO_foo is deprecated. It was supposed to be gone from the tree as a user-setting a long time ago... END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:45.130571Z K 7 svn:log V 143 Eliminate NO_INCS. It is used one place, and MK_TOOLCHAIN=no will handle the job just as well. Opt for simplicity rather than one more option. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:53.315967Z K 7 svn:log V 213 Split up the options into those used only by bsd.mk.* or sys.mk and the rest. Add note of caution for the surprises that popped up. MK_SSP is the only one used by sys.mk, and it likely needs even extra attention. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-25T19:25:57.819002Z K 7 svn:log V 127 Generalize FOO.clang to FOO.${COMPILER_TYPE}. There's no reason these need to be clang specific. Also generalize things a bit. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-25T19:43:18.544052Z K 7 svn:log V 97 Fix indentation for diff reduction with commits to follow. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-25T19:47:27.360065Z K 7 svn:log V 339 The FTDI product ID we've been calling BEAGLEBONE is actually TI XDS100V2, a jtag debugging product, which was used on early Beaglebone boards (later boards used a standard FTDI 2232C product ID). Change the name accordingly, and also add an entry for XDS100V3, the latest version of that product which has its own new product ID number. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-25T21:11:00.105915Z K 7 svn:log V 445 Add a separate script to build the memstick.img and the mini-memstick.img with UEFI support. As the comments in the file suggest, 1) there must be existing ${.OBJDIR}/usr/src/release/{release,bootonly}; 2) TARGET/TARGET_ARCH must be amd64; and 3) it must be a vt(4)-enabled kernel with vt_efifb (*not* vt_vga). This script is not hooked into release/Makefile in any way until further testing is complete. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:20:22.687751Z K 7 svn:log V 370 MFC: r260041 Record the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number, i. e. the POSIX:5.6.1 st_ino field, which can be used to detect hard links in the file system. This is also the default in mkisofs(8) and according to its man page, no system only being able to cope with Rock Ridge version 1.10 is known to exist. PR: 185138 Submitted by: Kurt Lidl END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:20:28.283178Z K 7 svn:log V 370 MFC: r260041 Record the IEEE P1282 Rock Ridge version 1.12 POSIX File Serial Number, i. e. the POSIX:5.6.1 st_ino field, which can be used to detect hard links in the file system. This is also the default in mkisofs(8) and according to its man page, no system only being able to cope with Rock Ridge version 1.10 is known to exist. PR: 185138 Submitted by: Kurt Lidl END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:24:33.845238Z K 7 svn:log V 226 MFC: r260044 Free the MSI again on detach if allocated. Arguably, this code would be better off living in aac_pci.c, but it doesn't seem worth creating a aac_pci_detach() and it's also not the first PCI-specific bit in aac.c END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:24:53.792927Z K 7 svn:log V 226 MFC: r260044 Free the MSI again on detach if allocated. Arguably, this code would be better off living in aac_pci.c, but it doesn't seem worth creating a aac_pci_detach() and it's also not the first PCI-specific bit in aac.c END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:28:39.446192Z K 7 svn:log V 231 MFC: r260045 - Simplify MSI allocation and release. For a single one, we don't need to fiddle with the MSI count and pci_release_msi(9) is smart enough to just do nothing in case of INTx. - Don't allocate MSI as RF_SHAREABLE. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:28:41.708747Z K 7 svn:log V 231 MFC: r260045 - Simplify MSI allocation and release. For a single one, we don't need to fiddle with the MSI count and pci_release_msi(9) is smart enough to just do nothing in case of INTx. - Don't allocate MSI as RF_SHAREABLE. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:32:34.761936Z K 7 svn:log V 531 MFC: r260050, r261528 - Switch to using the common MII bitbang'ing code instead of duplicating it. - Based on lessons learnt with dc(4) (see r185750), add bus space barriers to the MII bitbang read and write functions as well as to instances of page switching. - Add missing locking to ed_ifmedia_{upd,sts}(). - Canonicalize some messages. - Based on actual functionality, ED_TC5299J_MII_DIROUT should be rather named ED_TC5299J_MII_DIRIN. - Remove unused headers. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:32:38.599130Z K 7 svn:log V 531 MFC: r260050, r261528 - Switch to using the common MII bitbang'ing code instead of duplicating it. - Based on lessons learnt with dc(4) (see r185750), add bus space barriers to the MII bitbang read and write functions as well as to instances of page switching. - Add missing locking to ed_ifmedia_{upd,sts}(). - Canonicalize some messages. - Based on actual functionality, ED_TC5299J_MII_DIROUT should be rather named ED_TC5299J_MII_DIRIN. - Remove unused headers. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:42:46.262963Z K 7 svn:log V 339 MFC: r260053 - There's no need to keep track of resource IDs. - Simplify MSI allocation and release. For a single one, we don't need to fiddle with the MSI count and pci_release_msi(9) is smart enough to just do nothing in case of INTx. - Don't allocate MSI as RF_SHAREABLE. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:42:52.044982Z K 7 svn:log V 339 MFC: r260053 - There's no need to keep track of resource IDs. - Simplify MSI allocation and release. For a single one, we don't need to fiddle with the MSI count and pci_release_msi(9) is smart enough to just do nothing in case of INTx. - Don't allocate MSI as RF_SHAREABLE. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-25T21:47:24.873883Z K 7 svn:log V 237 Add a UEFI kernel configuration to include the VT kernel, and replace the vt_vga driver with vt_efifb. This is intended to help with snapshot builds only. There is no intention to MFC this commit. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:58:16.066242Z K 7 svn:log V 147 MFC: r260086 - Probe with BUS_PROBE_DEFAULT instead of 0. - Remove clearing PCIM_CMD_INTxDIS; pci(4) will do that as appropriate since r189367. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T21:58:28.759641Z K 7 svn:log V 147 MFC: r260086 - Probe with BUS_PROBE_DEFAULT instead of 0. - Remove clearing PCIM_CMD_INTxDIS; pci(4) will do that as appropriate since r189367. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:01:02.799737Z K 7 svn:log V 471 MFC: r260058 - Remove a redundant variable in mpt_pci_attach(). - #if 0 the currently unused paired port linking and unlinking of dual adapters. - Simplify MSI/MSI-X allocation and release. For a single one, we don't need to fiddle with the MSI/MSI-X count and pci_release_msi(9) is smart enough to just do nothing in case of INTx. - Canonicalize actions taken on attach failure and detach. - Remove the remainder of incomplete support for older FreeBSD versions. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:01:05.441026Z K 7 svn:log V 471 MFC: r260058 - Remove a redundant variable in mpt_pci_attach(). - #if 0 the currently unused paired port linking and unlinking of dual adapters. - Simplify MSI/MSI-X allocation and release. For a single one, we don't need to fiddle with the MSI/MSI-X count and pci_release_msi(9) is smart enough to just do nothing in case of INTx. - Canonicalize actions taken on attach failure and detach. - Remove the remainder of incomplete support for older FreeBSD versions. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:04:33.508097Z K 7 svn:log V 570 MFC: r260061 - Add support for using MSI instead of INTx, controllable via the tunable hw.ral.msi_disable (defaulting to using MSI). - Probe with BUS_PROBE_DEFAULT instead of 0. - Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0 devices. - Use PCIR_BAR instead of a homegrown macro. - There's no need to keep track of resource IDs. - Release resources again in case attaching fails. - Quiesce the interrupt before detaching. - Sprinkle const. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. - Trim headers. - Nuke dupe $FreeBSD$. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:04:40.367262Z K 7 svn:log V 570 MFC: r260061 - Add support for using MSI instead of INTx, controllable via the tunable hw.ral.msi_disable (defaulting to using MSI). - Probe with BUS_PROBE_DEFAULT instead of 0. - Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0 devices. - Use PCIR_BAR instead of a homegrown macro. - There's no need to keep track of resource IDs. - Release resources again in case attaching fails. - Quiesce the interrupt before detaching. - Sprinkle const. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. - Trim headers. - Nuke dupe $FreeBSD$. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:19:06.976781Z K 7 svn:log V 349 MFC: r260063 - Probe with BUS_PROBE_DEFAULT instead of 0. - Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0 devices. - Use PCIR_BAR instead of a homegrown macro. - There's no need to keep track of resource IDs. - Quiesce the interrupt before actually detaching. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:19:18.066513Z K 7 svn:log V 349 MFC: r260063 - Probe with BUS_PROBE_DEFAULT instead of 0. - Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0 devices. - Use PCIR_BAR instead of a homegrown macro. - There's no need to keep track of resource IDs. - Quiesce the interrupt before actually detaching. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:23:26.536146Z K 7 svn:log V 304 MFC: r260064 - Probe with BUS_PROBE_DEFAULT instead of 0. - Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0 devices. - There's no need to keep track of resource IDs. - Quiesce the interrupt before actually detaching. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-25T22:23:38.383256Z K 7 svn:log V 304 MFC: r260064 - Probe with BUS_PROBE_DEFAULT instead of 0. - Nuke code setting PCI_POWERSTATE_D0; pci(4) already does that for type 0 devices. - There's no need to keep track of resource IDs. - Quiesce the interrupt before actually detaching. - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-26T00:40:02.774018Z K 7 svn:log V 84 MFC: r264831 Add quirk to configure headphones redirection on Intel DH87RL boards. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-26T00:40:16.010618Z K 7 svn:log V 84 MFC: r264831 Add quirk to configure headphones redirection on Intel DH87RL boards. END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-26T00:51:07.042496Z K 7 svn:log V 280 MFC r264794: Move xdev knobs from release/arm/release.sh and into an XDEV_FLAGS variable in ${KERNCONF}.conf file. Local changes: Fix XDEV_FLAGS for stable/10 branch, in particular, remove WITH_GCC_BOOTSTRAP=1 and add WITH_GNUCXX=1. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 3 gjb K 8 svn:date V 27 2014-04-26T00:55:36.347281Z K 7 svn:log V 373 MFC r264794: Move xdev knobs from release/arm/release.sh and into an XDEV_FLAGS variable in ${KERNCONF}.conf file. Local changes: Fix XDEV_FLAGS for stable/9 branch, in particular, remove all *_CLANG* knobs, and move WITH_GCC=1 to XDEV_FLAGS. This is effectively a no-op on stable/9, and merged for tracking purpose only. Sponsored by: The FreeBSD Foundation END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-26T01:00:28.367360Z K 7 svn:log V 186 MFC: r264832 - Sprinkle const and static as appropriate. - Convert the remainder of snd_hda(4) to take advantage of nitems(). - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 6 marius K 8 svn:date V 27 2014-04-26T01:00:37.400584Z K 7 svn:log V 196 MFC: r264832 (partial) - Sprinkle const and static as appropriate. - Convert the remainder of snd_hda(4) to take advantage of nitems(). - Use DEVMETHOD_END. - Use NULL instead of 0 for pointers. END K 10 svn:author V 7 trociny K 8 svn:date V 27 2014-04-26T08:05:16.836199Z K 7 svn:log V 56 Define startup order the same way as it is in dummynet. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-04-26T11:50:25.304734Z K 7 svn:log V 819 r261913 broke DES passwords, because the only way they could work, since they don't have an easily recognizable signature, was if they were the default. This commit rewrites crypt_set_format(3) etc to address this: - Use a pointer instead of an index to identify the default format. This pointer is initialized at compile time to point to the first first element in the list of supported formats, eliminating the need for crypt_setdefault(). Using a pointer also simplifies iterating through the list. - Associate DES with the magic string "_", which takes care of the Extended DES format. - Finally, as a special case, if the salt does not match any known magic string but matches ^[./0-9A-Za-z]{13}$, it is assumed to be a DES password and is passed on to crypt_des(). MFC after: 1 week END K 10 svn:author V 3 des K 8 svn:date V 27 2014-04-26T12:16:40.138099Z K 7 svn:log V 39 Note that the bug was fixed, and when. END K 10 svn:author V 3 des K 8 svn:date V 27 2014-04-26T12:18:17.610080Z K 7 svn:log V 90 Add sysctl OIDs showing the actual size and capacity of the swap zone. MFC after: 1 week END K 10 svn:author V 5 markm K 8 svn:date V 27 2014-04-26T12:19:40.984007Z K 7 svn:log V 23 MFC - tracking commit. END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-04-26T13:05:56.532559Z K 7 svn:log V 265 date(1): Add "-R" flag to use RFC 2822 date and time output format As stated in the man page, this is equivalent to use "%a, %d %b %Y %T %z" as the output format while LC_TIME is set to the "C" locale. This is compatible with date(1) from the GNU core utilities. END K 10 svn:author V 5 markm K 8 svn:date V 27 2014-04-26T13:21:28.893014Z K 7 svn:log V 117 Correctly set the sysctl format to Alphanumeric, rather than letting it default. Approved by: security-officer(des) END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2014-04-26T13:53:04.886391Z K 7 svn:log V 86 date(1): Forgot to update manpage date in r264968 MFC after: 1 week MFC with: 264968 END K 10 svn:author V 5 markm K 8 svn:date V 27 2014-04-26T13:55:03.728947Z K 7 svn:log V 30 Improve lockless ring buffer. END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2014-04-26T14:39:58.982339Z K 7 svn:log V 26 Initialize rssi variable. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-26T14:52:03.699098Z K 7 svn:log V 50 Unify sa_equal() macro usage. MFC after: 2 weeks END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-26T16:12:39.610194Z K 7 svn:log V 107 Remove sa_equal() definition since it is already defined in net/route.h. Noted by: ian MFC after: 2 weeks END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-26T16:34:22.665139Z K 7 svn:log V 249 Add generation of an EFI filesystem to hold boot1.efi. This is a near-exact copy of the code from boot1.chrp again. The resulting image is installed to /boot/boot1.efifat. If dd'ed to an 800K "efi" partition, it should result in a bootable system. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-26T16:46:33.561327Z K 7 svn:log V 165 Use "hash" value in rtalloc_mpath_fib() instead of RTF_ANNOUNCE flag. Hashing method is the same as in in6_src.c. (Probably we need better one). MFC after: 2 weeks END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-26T16:48:09.250344Z K 7 svn:log V 287 Stop calling imx51_ccm_foo() clock functions from imx6 code. Instead define a few imx_ccm_foo() functions that are implemented by the imx51 or imx6 ccm code. Of course, the imx6 ccm code is still more a wish than reality, so for now its implementations just return hard-coded numbers. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-26T16:55:38.686126Z K 7 svn:log V 553 Add EFI support to the installer. This requires that the kernel provide a sysctl to determine what firmware is in use. This sysctl does not exist yet, so the following blocks are in front of the wheels: - I've provisionally called this "hw.platform" after the equivalent thing on PPC - The logic to check the sysctl is short-circuited to always choose BIOS. There's a comment in the top of the file about how to turn this off. If IA64 acquired a boot1.efifat-like thing (probably with very few modifications), the same code could be adapted there. END K 10 svn:author V 3 imp K 8 svn:date V 27 2014-04-26T16:58:35.604234Z K 7 svn:log V 333 make_dtb.sh is designed to be used in a kernel build environment where MACHINE is defined to the target's value, not the host's value. However, in Makefile.inc1, it is still defined to be the host's value. Make the makedtb target work by expanding TARGET in the existance test, and passing MACHINE=$TARGET in the call to make_dtb.sh END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-26T17:51:41.056353Z K 7 svn:log V 52 Apparently this is supposed to be FAT32, not FAT12. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-26T17:56:39.916884Z K 7 svn:log V 120 The freescale imx uart driver works for the whole i.MX family, so rename the header file to not have "5xx" in the name. END K 10 svn:author V 8 andreast K 8 svn:date V 27 2014-04-26T19:30:04.138979Z K 7 svn:log V 40 Fix gcc build, initialize off variable. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-26T20:03:04.352910Z K 7 svn:log V 133 Flesh out imx_uart_init() so that we're not relying on u-boot to init the hardware (meaning uarts other than the console will work). END K 10 svn:author V 6 scottl K 8 svn:date V 27 2014-04-26T20:27:54.330600Z K 7 svn:log V 329 Retire smp_active. It was racey and caused demonstrated problems with the cpufreq code. Replace its use with smp_started. There's at least one userland tool that still looks at the kern.smp.active sysctl, so preserve it but point it to smp_started as well. Discussed with: peter, jhb MFC after: 3 days Obtained from: Netflix END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-26T20:27:58.894201Z K 7 svn:log V 53 Reword a comment block a bit; no functional changes. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-26T21:03:41.591374Z K 7 svn:log V 240 Decouple RTM_CHANGE from RTM_GET handling in rtsock.c:route_output(). RTM_CHANGE is now handled inside route.c:rtrequest1_fib() as it should be. Note change change handler is a separate function rtrequest1_fib_change(). MFC after: 1 month END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-26T22:32:04.090853Z K 7 svn:log V 78 Determine fibnum once in the beginning of route_output(). MFC after: 1 month END K 10 svn:author V 4 neel K 8 svn:date V 27 2014-04-26T22:37:56.778497Z K 7 svn:log V 155 A VMCS is always inactive when it exits the vmx_run() loop. Remove redundant code and the misleading comment that suggest otherwise. Reviewed by: grehan@ END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-26T22:42:21.890529Z K 7 svn:log V 60 Remove useless `register' declarations. MFC after: 1 month END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-26T23:09:01.622177Z K 7 svn:log V 130 Call cpu_icache_sync_range() rather than sync_all since we know the range and flushing the entire icache is needlessly expensive. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-26T23:22:49.774913Z K 7 svn:log V 55 Use logical rather than bitwise OR in if() expression. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-27T00:40:18.218585Z K 7 svn:log V 103 Make a dual-boot BIOS/UEFI memstick image. Testing required before this gets renamed make-memstick.sh. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-27T00:45:08.200014Z K 7 svn:log V 163 Revert to FAT12. This file system is apparently too small for FAT32, even if the old (pre r264889) newfs_msdos allowed it. And FAT12 seems to work perfectly well. END K 10 svn:author V 3 ian K 8 svn:date V 27 2014-04-27T00:46:01.505018Z K 7 svn:log V 459 Provide a proper armv7 implementation of icache_sync_all rather than using armv7_idcache_wbinv_all, because wbinv_all doesn't broadcast the operation to other cores. In elf_cpu_load_file() use icache_sync_all() and explain why it's needed (and why other sync operations aren't). As part of doing this, all callers of cpu_icache_sync_all() were inspected to ensure they weren't relying on the old side effect of doing a wbinv_all along with the icache work. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-27T01:06:02.631097Z K 7 svn:log V 621 Add script to setup bootable CD ISOs for both BIOS and EFI systems. Tested and working on QEMU. Actually using this script as the regular image generator, like with the memstick one, will require that the kernel support EFI too. In particular, the following two things are required: 1. vt(9) be the default console driver 2. vt_efifb and vt_vga be able to coexist usefully in the same kernel One other note here is that this requires newfs_msdos and mdconfig, which is really ugly. NetBSD's makefs at least seems to support FAT now. If that actually works, it should be imported and we can get rid of the mdconfig mess. END K 10 svn:author V 4 jmmv K 8 svn:date V 27 2014-04-27T01:15:10.087432Z K 7 svn:log V 808 MFC various moves of tools/regressions/ tests to the new infrastructure. - r263220 Migrate tools/regression/sbin/ to the new tests layout. - r263222 Add Makefile missed in r263220. - r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout. - r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout. - r263345 Expand tabs that sneaked in into spaces. - r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout. - r263348 Add Makefiles missed in r263346. - r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout. - r263388 Mark multi_test as requiring /usr/share/dict/words. - r263814 Fix path to the run.pl script to let these tests run. - r264742 Prevent building tests when bootstrapping make. This is 'make tinderbox' clean. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-27T02:19:53.129310Z K 7 svn:log V 216 Disable vga if EFI framebuffer present. vt(9) should handle this internally based on efifb's higher priority, but it doesn't, and this at least lets us build a kernel that boots on both BIOS and EFI systems for now. END K 10 svn:author V 8 melifaro K 8 svn:date V 27 2014-04-27T02:20:09.386814Z K 7 svn:log V 80 Move up fibnum to ensure it is always defined. Found by: ian MFC with: r264987 END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2014-04-27T02:20:51.474293Z K 7 svn:log V 151 Increase the maximum framebuffer size to more reasonable values reflecting the high-resolution boot consoles present on Open Firmware and EFI systems. END