ĵm177659 171 1490 147 196 415 123 510 510 116 236 957 428 258 277 202 513 342 197 245 240 853 224 201 564 223 355 198 160 681 762 208 182 188 193 137 190 248 291 327 148 148 195 383 337 180 229 381 253 254 139 509 448 331 176 133 367 233 491 97 123 231 308 211 270 152 158 155 264 194 469 164 234 508 238 344 379 1348 185 174 518 662 365 173 213 1299 481 251 225 309 183 485 455 224 678 236 188 252 167 190 195 174 173 135 112 221 129 131 220 141 133 145 351 280 279 496 160 256 165 164 233 737 679 181 275 248 317 260 297 411 252 285 202 97 284 242 147 254 181 126 890 202 537 473 173 661 205 547 244 288 169 972 2305 471 282 745 235 181 394 175 194 199 170 164 160 156 165 250 156 326 291 164 353 K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-27T04:34:17.000000Z K 7 svn:log V 1396 MFamd64 with few changes: 1. Add support for automatic promotion of 4KB page mappings to 2MB page mappings. Automatic promotion can be enabled by setting the tunable "vm.pmap.pg_ps_enabled" to a non-zero value. By default, automatic promotion is disabled. Tested by: kris 2. To date, we have assumed that the TLB will only set the PG_M bit in a PTE if that PTE has the PG_RW bit set. However, this assumption does not hold on recent processors from Intel. For example, consider a PTE that has the PG_RW bit set but the PG_M bit clear. Suppose this PTE is cached in the TLB and later the PG_RW bit is cleared in the PTE, but the corresponding TLB entry is not (yet) invalidated. Historically, upon a write access using this (stale) TLB entry, the TLB would observe that the PG_RW bit had been cleared and initiate a page fault, aborting the setting of the PG_M bit in the PTE. Now, however, P4- and Core2-family processors will set the PG_M bit before observing that the PG_RW bit is clear and initiating a page fault. In other words, the write does not occur but the PG_M bit is still set. The real impact of this difference is not that great. Specifically, we should no longer assert that any PTE with the PG_M bit set must also have the PG_RW bit set, and we should ignore the state of the PG_M bit unless the PG_RW bit is set. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2008-03-27T04:55:06.000000Z K 7 svn:log V 54 Fix typo and wording glitch. Submitted by: Ben Kaduk END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-27T05:03:26.000000Z K 7 svn:log V 104 When building a kernel module, define MAXCPU the same as SMP so that modules work with and without SMP. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-27T11:54:20.000000Z K 7 svn:log V 322 Add kernel module support for nfslockd and krpc. Use the module system to detect (or load) kernel NLM support in rpc.lockd. Remove the '-k' option to rpc.lockd and make kernel NLM the default. A user can still force the use of the old user NLM by building a kernel without NFSLOCKD and/or removing the nfslockd.ko module. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-27T11:55:03.000000Z K 7 svn:log V 31 Add nfslockd and krpc modules. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-27T13:46:27.000000Z K 7 svn:log V 417 MFC rev. 1.682 of sys/amd64/amd64/machdep.c rev. 1.16 of sys/amd64/ia32/ia32_signal.c rev. 1.33 of sys/amd64/linux32/linux32_sysvec.c rev. 1.666 of sys/i386/i386/machdep.c rev. 1.152 of sys/i386/linux/linux_sysvec.c rev. 1.39 of sys/i386/svr4/svr4_machdep.c rev. 1.402 of sys/pc98/pc98/machdep.c Modify the signal handler frame setup code to clear the DF {e,r}flags bit on the amd64/i386 for the signal handlers. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-27T13:53:52.000000Z K 7 svn:log V 417 MFC rev. 1.682 of sys/amd64/amd64/machdep.c rev. 1.16 of sys/amd64/ia32/ia32_signal.c rev. 1.33 of sys/amd64/linux32/linux32_sysvec.c rev. 1.666 of sys/i386/i386/machdep.c rev. 1.152 of sys/i386/linux/linux_sysvec.c rev. 1.39 of sys/i386/svr4/svr4_machdep.c rev. 1.402 of sys/pc98/pc98/machdep.c Modify the signal handler frame setup code to clear the DF {e,r}flags bit on the amd64/i386 for the signal handlers. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-27T15:11:02.000000Z K 7 svn:log V 24 Remove the '-k' option. END K 10 svn:author V 6 cokane K 8 svn:date V 27 2008-03-27T15:54:45.000000Z K 7 svn:log V 140 MFC: MFC of rev 1.40 to properly add the module dependency on mem, so that it will be loaded on-demand with this module. Approved by: imp END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-27T17:11:38.000000Z K 7 svn:log V 861 MFC aac.c r1.129 aac_ioctl.h r1.12: Add ioctls FSACTL_SEND_LARGE_FIB, FSACTL_SEND_RAW_SRB, FSACTL_LNX_SEND_LARGE_FIB, and FSACTL_LNX_SEND_RAW_SRB, and correct size checks on FIBs passed in from userspace. Both changes were obtained from Adaptec's driver build 15317. Adaptec's commandline RAID tool arcconf uses these ioctls when creating a RAID-10 array (and probably other operations too). aac.c r1.130: Restore creation of passthrough devices with newer controller firmware by putting the correct size in the fib header. Presumably the older firmware silently ignored a bad size field. (This change tested with a 3805 controller. Passthrough devices were created when running firmware build 12814, but not 15323 or later. With this change they're created for both old and new firmware versions.) Submitted by: Adaptec END K 10 svn:author V 7 iedowse K 8 svn:date V 27 2008-03-27T18:02:30.000000Z K 7 svn:log V 331 Add IFF_NEEDSGIANT to IFF_CANTCHANGE, to prevent user-level code from clearing the IFF_NEEDSGIANT flag on Giant-locked interfaces. In particular, wpa_supplicant was doing this on USB interfaces, causing panics when Giant-locked code was then called without Giant. Submitted by: Alexey Popov Reviewed by: rwatson MFC after: 3 days END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-27T20:04:20.000000Z K 7 svn:log V 165 Switch from timeval to bintime, to use 1/(2^20) of seconds instead of microseconds. It allows to use bit shifts instead of some heavy 64bit mul/div math operations. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-27T20:38:03.000000Z K 7 svn:log V 180 Remove option headers that do not exist and are not used from the Makefiles in sys/modules. (opt_devfs.h, opt_bdg.h, opt_emu10kx.h and opt_uslcom.h) Approved by: rwatson (mentor) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-27T20:47:21.000000Z K 7 svn:log V 106 MFC aac.c r1.127 Avoid holding the aac_io_lock over copyout. Submitted by: Achim Leubner @ Adaptec. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-27T23:02:30.000000Z K 7 svn:log V 420 Remove ng_setisr() call from ng_dequeue(). It is useless as we any way will never exit ngintr(), while there is some ready requests on the queue. It was made years ago with hope of parallel queue processing by several net threads. But even if we have several threads sometimes, we have no rights to process queue in parallel as it will break original requests serialization that is critically important for some setups. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-27T23:21:25.000000Z K 7 svn:log V 250 The sources covered by Sun's CDDL have been repo copied below the src/cddl and src/sys/cddl directories per the core@ decision following the license review. This change modifies the affected Makefiles to reference the sources in their new location. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-28T00:08:47.000000Z K 7 svn:log V 105 Remove files that have been repo copied to their new location in cddl-specific parts of the source tree. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-28T00:14:33.000000Z K 7 svn:log V 148 Instruments buffer lock objects in order to track correctly consumers consumers in locking operations. While here, operates some style(9) cleanups. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-28T00:28:45.000000Z K 7 svn:log V 148 Remove the last 3 files I missed. These have been repo copied to the new location under a cddl part of the tree following the core@ license review. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-28T01:21:21.000000Z K 7 svn:log V 756 In revision 1.70, 1.71 and 1.84 re(4) tried to workaround checksum offload bugs by manual padding for short IP/UDP frames. Unfortunately it seems that these workaround does not work reliably on newer PCIe variants of RealTek chips. To workaround the hardware bug, always pad short frames if Tx IP checksum offload is requested. It seems that the hardware has a bug in IP checksum offload handling. NetBSD manually pads short frames only when the length of IP frame is less than 28 bytes but I chose 60 bytes to safety. Also unconditionally set IP checksum offload bit in Tx descriptor if any TCP or UDP checksum offload is requested. This is the same way as Linux does but it's not mentioned in data sheet. Obtained from: NetBSD Tested by: remko, danger END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-28T02:48:16.000000Z K 7 svn:log V 127 _lockmgr_args() accepts a 'char *' string as file, so modify _BUF_LOCK() and _BUF_TIMELOCK() prototypes accordingly with this. END K 10 svn:author V 2 ps K 8 svn:date V 27 2008-03-28T04:29:27.000000Z K 7 svn:log V 109 Add support to mincore for detecting whether a page is part of a "super" page or not. Reviewed by: alc, ups END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-28T06:31:12.000000Z K 7 svn:log V 468 When retasting, wither any existing GEOMs of the same class. This allows the class to create a different GEOM for the same provider as well as avoid that we end up with multiple GEOMs of the same class with the same name. For example, when a disk contains a PC98 partition table but only MBR is supported, then the partition table can be treated as a MBR. If support for PC98 is later loaded as a module, the MBR scheme is pre-empted for the PC98 scheme as expected. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-03-28T06:50:06.000000Z K 7 svn:log V 127 Support gif_interface values that don't follow the pattern gif###. Remove ancient compatablity support for gif_interface="NO". END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-03-28T07:57:52.000000Z K 7 svn:log V 259 Add support for hardwiring ppp sessions to particular devices with new per-profile variables of the form ppp__unit. No ppp_unit variable is supported since tying the same unit to more than one profile won't work. PR: conf/122127 MFC after: 1 week END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-03-28T08:19:03.000000Z K 7 svn:log V 102 Use ; instead of : to end a line. Submitted by: Niclas Zeising END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-28T09:50:32.000000Z K 7 svn:log V 68 Minor changes to improve compatibility with older FreeBSD releases. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2008-03-28T10:13:20.000000Z K 7 svn:log V 583 MFC rev. 1.12 of sys/compat/linux/linux_futex.c MFC rev. 1.3 of sys/compat/linux/linux_futex.h: o Add stub support for some new futex operations, so the annoying message is not printed. o Don't warn about FUTEX_FD not being implemented and return ENOSYS instead of 0 (eg. success). o Clear FUTEX_PRIVATE_FLAG as we actually implement only private futexes so there is no reason to return ENOSYS when app asks for a private futex. We don't reject shared futexes because they worked just fine with our implementation so far. Approved by: kib (mentor) Tested by: bsam END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-28T12:30:12.000000Z K 7 svn:log V 665 b_waiters cannot be adequately protected by the interlock because it is dropped after the call to lockmgr() so just revert this approach using something similar to the precedent one: BUF_LOCKWAITERS() just checks if there are waiters (not the actual number of them) and it is based on newly introduced lockmgr_waiters() which returns if the lockmgr has waiters or not. The name has been choosen differently by old lockwaiters() in order to not confuse them. KPI results enriched by this commit so __FreeBSD_version bumping and manpage update will be happening soon. 'struct buf' also changes, so kernel ABI is disturbed. Bug found by: jeff Approved by: jeff, kib END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-28T12:31:26.000000Z K 7 svn:log V 111 Bump __FreeBSD_version in order to reflect BUF_LOCKWAITERS() reintegration and lockmgr_waiters() introduction. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-03-28T14:20:06.000000Z K 7 svn:log V 87 Add Qualcomm ZTE CMDMA MSM modem to the list of supported modems. MFC after: 1 week END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-28T15:28:20.000000Z K 7 svn:log V 93 If we're returning successfully from bus_dmamem_alloc, don't record a KTR of error = ENOMEM. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-03-28T15:28:59.000000Z K 7 svn:log V 98 Add Qualcomm, Inc. ZTE CDMA Technologies MSM to the list of supported devices. MFC after: 1 week END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-28T17:58:55.000000Z K 7 svn:log V 42 Add support for PC-9800 partition tables. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-28T18:13:09.000000Z K 7 svn:log V 93 Add a couple of missing NIC driver modules. Approved by: rwatson (mentor) MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-28T18:13:38.000000Z K 7 svn:log V 152 MFC aac.c r1.133: Correct data direction flags in aac_bio_command() in the !AAC_FLAGS_RAW_IO && AAC_FLAGS_SG_64BIT case. Submitted by: Adaptec END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-28T19:07:25.000000Z K 7 svn:log V 195 Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls. RAID tools (e.g. arcconf) need this to be able to create arrays larger than 2TB. Submitted by: Adaptec, via driver build 15317 END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-28T20:59:45.000000Z K 7 svn:log V 232 MFC rev 1.2 410.logincheck Add a missing ;. PR: misc/122069 Submitted by: taku@tekipaki.jp MFC after: 3 days Approved by: imp (mentor, implicit trivial change). Approved by: imp (mentor, implicit) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-28T21:30:37.000000Z K 7 svn:log V 51 Document lockmgr_waiters(9). Reviewed by: attilio END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-28T22:16:18.000000Z K 7 svn:log V 57 Forced commit to note that these files were repo copied. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-28T23:25:58.000000Z K 7 svn:log V 98 ARC-1680 is supported. Submitted by: Steven Hartland MFC after: 3 days END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2008-03-29T00:24:36.000000Z K 7 svn:log V 287 Make ALTQ cope with disappearing interfaces (particularly common with mpd and netgraph in gernal). This also allows to add queues for an interface that is not yet existing (you have to provide the bandwidth for the interface, however). PR: kern/106400, kern/117827 MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-29T03:48:06.000000Z K 7 svn:log V 244 Initialize the head pointer in kld_current_sos() to NULL to avoid returning a junk pointer and possibly causing a seg fault if we don't have any non-kernel klds (or are unable to walk the list due to core / kernel mismatch). MFC after: 1 week END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-29T04:29:50.000000Z K 7 svn:log V 88 Eliminate an #if 0/#endif that was unintentionally introduced by the previous revision. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-29T06:54:13.000000Z K 7 svn:log V 136 Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair of pptpgre and ksocket nodes for all calls between two peers. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-29T07:06:13.000000Z K 7 svn:log V 287 - Use vm_object_reference_locked() directly from vm_object_reference(). This is intended to get rid of vget() consumers who don't wish to acquire a lock. This is functionally the same as calling vref(). vm_object_reference_locked() already uses vref. Discussed with: alc END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-29T10:06:30.000000Z K 7 svn:log V 159 - Add a man page for cpuset(), cpuset_setid(), and cpuset_getid() and hook it up to the build. Reviewed by: brueffer (skeleton and formatting assistance) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-29T10:26:29.000000Z K 7 svn:log V 160 - Add a man page for cpuset_getaffinity() and cpuset_setaffinity() and hook it up to the build. Reviewed by: brueffer (skeleton and formatting assistance) END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-29T13:15:33.000000Z K 7 svn:log V 48 Adding glabel alias killed gpart alias; fix it. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-29T13:44:36.000000Z K 7 svn:log V 414 MFC rev 1.84 route.c In route.c in newroute() there's a call to exit(0) if the command was 'get'. Since rtmsg() always gets called and returns 0 on success and -1 on failure, it's possible to exit with a suitable exit code by calling exit(ret != 0) instead, as is done at the end of newroute(). PR: bin/112303 Submitted by: bruce@cran.org.uk MFC after: 1 week Approved by: imp (mentor, implicit) END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-29T13:53:07.000000Z K 7 svn:log V 353 MFC rev 1.134 ObsoleteFiles.inc Document the removal data for usbdevs.h and usbdevs_data.h, sort the entry into it's correct place (behind 200407XX before 200406XX because we have an explicit date here). PR: misc/122098 Submitted by: "John Hein" MFC after: 3 days Approved by: imp (mentor, implicit) END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-29T16:19:35.000000Z K 7 svn:log V 238 Document modff() and modfl(). Technically, modff() and modfl() live in libm, while modf() lives in libc due to historical mistakes. I'm claiming in the manpage that they all live in libm, since programmers should not rely on the mistake. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-29T16:37:59.000000Z K 7 svn:log V 84 Fix some rather obscene code that has ambiguous if...if...else... constructs in it. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-29T16:38:29.000000Z K 7 svn:log V 41 Include math.h for the fmaf() prototype. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-29T17:33:29.000000Z K 7 svn:log V 271 Change the order from SI_ORDER_FIRST to SI_ORDER_ANY (within SI_SUB_DRIVERS) to avoid loading schemes before all the GEOM classes have been loaded and initialized. Otherwise we may end up using mutexes that haven't been initialized (due to g_retaste() posting an event). END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-29T17:44:40.000000Z K 7 svn:log V 141 Remove options MK_LIBKSE and DEFAULT_THREAD_LIB now that we no longer build libkse. This should fix WITHOUT_LIBTHR builds as a side effect. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-29T17:46:03.000000Z K 7 svn:log V 398 Change kgdb_parse() to use wrapped versions of parse_expression() and evaluate_expression() so that any errors are caught and cause the function to return to 0. Otherwise the errors posted an exception (via longjmp()) that aborted the current operation. This fixes the kld handling for older kernels (6.x and 7.x) that don't have the full pathname stored in the kernel linker. MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-29T17:47:12.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-29T18:07:06.000000Z K 7 svn:log V 32 Add missing library dependency. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-29T18:13:15.000000Z K 7 svn:log V 139 Don't always link statically with libwrap. By the time amd(8) runs, /usr/lib should have already been mounted. Found by: make checkdpadd END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-29T20:48:47.000000Z K 7 svn:log V 216 MFC: rev. 1.31 key.c Import change from KAME, rev. 1.362 kame/kame/sys/netkey/key.c In case of "new SA", we must check the hard lifetime of the old SA to find out if it is not permanent and we can delete it. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-29T20:51:09.000000Z K 7 svn:log V 119 MFC: rev. 1.32 key.c Fix a bug that when getting/dumping the soft lifetime we reported the hard lifetime instead. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-29T22:53:54.000000Z K 7 svn:log V 178 MFC stdio.h: 1.61 Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX in sys/syslimits.h). awk/Makefile: 1.17 Allow awk to handle 64 files instead of just 20. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-29T22:53:58.000000Z K 7 svn:log V 60 There is no need to erase hook->hk_node before freing hook. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-29T23:00:29.000000Z K 7 svn:log V 62 MFC rev. 1.21: Drop Giant lock before to destroy the kthread. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-29T23:15:04.000000Z K 7 svn:log V 59 MFC rev. 1.45: Fix a lock leak in the NTFS locking scheme. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-29T23:24:54.000000Z K 7 svn:log V 170 - Simplify null_hashget() and null_hashins() by using vref() rather than a complex series of steps involving vget() without a lock type to emulate the same thing. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-29T23:30:40.000000Z K 7 svn:log V 100 - Use vget() to lock the vnode rather than refing without a lock and locking in separate steps. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-29T23:36:26.000000Z K 7 svn:log V 375 - Don't allow calls to vn_lock() with no lock type requested. Callers which simply want a reference should use vref(). Callers which want to check validity need to hold a lock while performing any action based on that validity. vn_lock() would always release the interlock before returning making any action synchronous with the validity check impossible. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-30T00:27:48.000000Z K 7 svn:log V 72 Use new atomic_fetchadd() primitive instead of looping atomic_cmpset(). END K 10 svn:author V 4 csjp K 8 svn:date V 27 2008-03-30T02:19:27.000000Z K 7 svn:log V 140 Un-break the build by adding a thread argument. This was removed in -CURRENT but this change has not been MFCed yet. Submitted by: attilo END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-03-30T02:42:39.000000Z K 7 svn:log V 412 Add a new function is_default_interface() which determines if this interface is one with the default route (or there isn't one). Use it to decide if we should adjust the default route and /etc/resolv.conf. Fix the delete of the default route. The if statement was totally bogus and the delete only worked due to a typo. [1] Reported by: Jordan Coleman [1] MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-30T05:39:24.000000Z K 7 svn:log V 145 MFC rev. 1.607 of sys/amd64/amd64/pmap.c rev. 1.609 of sys/i386/i386/pmap.c Prevent the overflow in the calculation of the next page directory. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-30T07:53:51.000000Z K 7 svn:log V 251 - Account all node stats at the shape mode. - Do not check destination hook presence, it will be done by netgraph. - Use u_int instead of int in some places to simplify type conversions. - Use NG_SEND_DATA_ONLY() macro instead of selfmade equivalent. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-30T08:01:48.000000Z K 7 svn:log V 286 MFC ng_pptpgre.c rev. 1.41-1.42 Rewrite node to support multiple hooks, alike to ng_l2tp, to use one pair of pptpgre and ksocket nodes for all calls between two peers. This patch modifies node's API by adding new "session_%04x" hook names support, while keeping backward compatibility. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T09:19:09.000000Z K 7 svn:log V 1250 Merge amd64/machdep.c:1.680, amd64/mp_watchdog.c:1.6, uart_dev_at91usart.c:1.13, scsi_low.h:1.9, subr_ntoskrnl.c:1.94, OsdDebug.c:1.14, dcons_os.c:1.20, ofw_consle.c:1.37, dev/sio.c:1.473, syscons.c:1.454, uart_core.c:1.23, union_subr.c:1.96, i386/machdep.c:1.664, i386/mp_watchdog.c:1.6, ia64/machdep.c:1.228, kern_clock.c:1.206, kern_shutdown.c:1.186, subr_kdb.c:1.25, subr_witness.c:1.239, vfs_subr.c:1.711, ng_base.c:1.140, cbus/sio.c:1.247, pc98/machdep.c:1.399, aim/machdep.c:1.107, pswitch.c:1.7, mac_test.c:19.3, psycho.c:1.73, sparc64/machdep.c:1.140, sparc64/trap.c:1.89, hvcons.c:1.7, sun4v/machdep.c:1.17, sun4v/trap.c:1.17, kdb.h:1.6 from HEAD to RELENG_7: Add a new 'why' argument to kdb_enter(), and a set of constants to use for that argument. This will allow DDB to detect the broad category of reason why the debugger has been entered, which it can use for the purposes of deciding which DDB script to run. Assign approximate why values to all current consumers of the kdb_enter() interface. For ABI/KPI reasons, the MFC creates a new function, kdb_enter_why(), with the new argument, updating existing consumers to use that, preserving kdb_enter() with the current argument, and wrapping it around kdb_enter_why(). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T09:20:13.000000Z K 7 svn:log V 89 Bump __FreeBSD_version in RELENG_7 to 700102 to reflect the addition of kdb_enter_why(). END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-30T09:35:04.000000Z K 7 svn:log V 82 Don't assume that there is readable data on the stream after the fragment header. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-30T09:36:17.000000Z K 7 svn:log V 425 Don't call xdrrec_skiprecord in the non-blocking case. If __xdrrec_getrec has returned TRUE, then we have a complete request in the buffer - calling xdrrec_skiprecord is not necessary. In particular, if there is another record already buffered on the stream, xdrrec_skiprecord will discard both this request and the next one, causing the call to xdr_callmsg to fail and the stream to be closed. Sponsored by: Isilon Systems END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-30T11:31:14.000000Z K 7 svn:log V 568 - Consistently return EDEADLK when presented with a new set that is incompatible with existing bindings. - Try to copyout the setid in cpuset() before migrating the proc to the setid in case the user has supplied a bad buffer. - Rename cpuset_root() and cpuset_base() to cpuset_ref{root,base} to be more descriptive and free cpuset_root to be used as a different type of symbol. - Make cpuset_root the cpuset_t set of all cpus in the system. This should contain the same bitmask as all_cpus presently. - Add a CPU_CMP() macro to compare two sets. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-30T13:56:13.000000Z K 7 svn:log V 268 MFC to RELENG_7: Add files to remove when MK_GCOV, MK_IPX or MK_NCP are defined. PR: 120492 PR: 121118 PR: 121121 Submitted by: KAMIYA Satosi, Richard Tector Approved by: rwatson (mentor) MFC after: 1 month END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-30T14:06:43.000000Z K 7 svn:log V 81 MFC: nfs_srvsock.c rev. 1.106, 1.107 Don't call nfs_realign while holding locks. END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2008-03-30T16:49:19.000000Z K 7 svn:log V 115 Improve style a little and remove one always-true condition. Approved by: portmgr (pav) Approved by: kib (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:03:58.000000Z K 7 svn:log V 1201 Merge files:1.1259, db_command.c:1.75, db_command.h:1.14, db_lex.c:1.23, db_lex.h:1.15, db_main.c:1.7, db_script.c:1.1-1.2, ddb.h:1.45 from HEAD to RELENG_7: Add a simple scripting facility to DDB(4), allowing the user to define a set of named scripts. Each script consists of a list of DDB commands separated by ";"s that will be executed verbatim. No higher level language constructs, such as branching, are provided for: scripts are executed by sequentially injecting commands into the DDB input buffer. Four new commands are present in DDB: "run" to run a specific script, "script" to define or print a script, "scripts" to list currently defined scripts, and "unscript" to delete a script, modeled on shell alias commands. Scripts may also be manipulated using sysctls in the debug.ddb.scripting MIB space, although users will prefer to use the soon-to-be-added ddb(8) tool for usability reasons. Scripts with certain names are automatically executed on various DDB events, such as entering the debugger via a panic, a witness error, watchdog, breakpoint, sysctl, serial break, etc, allowing customized handling. Remove duplicate $FreeBSD$ that snuck in. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:07:10.000000Z K 7 svn:log V 384 Merge Makefile:1.169, ddb/Makefile:1.1, ddb.8:1.1, ddb.c:1.1, ddb.h:1.1, ddb_script.c:1.1 from HEAD to RELENG_7: Add command-line tool ddb(8), which allows DDB(4) scripts to be managed from userspace. It is largely a wrapper for sysctl() calls, but because the sysctls for adding and removing scripts are awkward to use directly, this provides an easier-to-use interface. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:09:34.000000Z K 7 svn:log V 154 Merge ddb.4:1.44 from HEAD to RELENG_7: Add description of 'debug.ddb.capture.data' sysctl to DBD output capture section, missed in previous commit. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:10:35.000000Z K 7 svn:log V 128 Merge ddb.4:1.45 from HEAD to RELENG_7: Add SCRIPTING section to describe new DDB scripting facilities. Update copyright. END K 10 svn:author V 3 bde K 8 svn:date V 27 2008-03-30T17:17:42.000000Z K 7 svn:log V 216 Fix a missing mask in a hi+lo decomposition. Thus bug made the extra precision in software useless, so hypotf() had some errors in the 1-2 ulp range unless there is extra precision in hardware (as happens on i386). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:20:04.000000Z K 7 svn:log V 87 Merge kerneldump.h:1.9 from HEAD to RELENG_7: Minor style consistency improvements. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:20:40.000000Z K 7 svn:log V 388 Merge kerneldump.h:1.10 from HEAD to RELENG_7: Define a new kernel dump "architecture", TEXTDUMPMAGIC, which is used to identify textdumps in the swap/dump partition. While textdumps aren't really an architecture, they are architecture-neutral and so don't really correspond to any existing architecture. Define a version number for textdumps, KERNELDUMP_TEXT_VERSION, of 1. END K 10 svn:author V 3 bde K 8 svn:date V 27 2008-03-30T17:28:27.000000Z K 7 svn:log V 362 Use the expression fabs(x+0.0)-fabs(y+0.0) instead of fabs(x+0.0)+fabs(y+0.0) when mixing NaNs. This improves consistency of the result by making it harder for the compiler to reorder the operands. (FP addition is not necessarily commutative because the order of operands makes a difference on some machines iff the operands are both NaNs.) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-30T17:55:18.000000Z K 7 svn:log V 127 Merge bpf_filter.c:1.30 from HEAD to RELENG_7: Improve convergence of bpf_filter.c toward style(9). Submitted by: csjp END K 10 svn:author V 3 bde K 8 svn:date V 27 2008-03-30T18:07:12.000000Z K 7 svn:log V 585 Use fabs[f]() instead of bit fiddling for setting absolute values. This makes little difference in float precision, but in double precision gives a speedup of about 30% on amd64 (A64 CPU) and i386 (A64). This depends on fabs[f]() being inline and efficient. The bit fiddling (or any use of SET_HIGH_WORD(), which libm does too much because it was best on old 32-bit machines) always causes packing overheads and sometimes causes stalls in the packing, since it operates on only part of a variable in the double precision case. It apparently did cause stalls in a critical path here. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-30T18:16:33.000000Z K 7 svn:log V 139 lockmgrs need to be released before to be destroyed and draining doesn't make an exception. Add correct stub for it. Reviewed by: rwatson END K 10 svn:author V 6 matteo K 8 svn:date V 27 2008-03-30T19:39:29.000000Z K 7 svn:log V 93 Add -P option to allow binding to a specific port. PR: bin/109494 Submitted by: mtm END K 10 svn:author V 6 matteo K 8 svn:date V 27 2008-03-30T19:42:34.000000Z K 7 svn:log V 156 MFC rev. 1.97-1.98 Fix printing of unionfs mounts when using the -p option Fix mount -p and mount -u -ocurrent on gjournaled FS PR: bin/75585, bin/120162 END K 10 svn:author V 6 matteo K 8 svn:date V 27 2008-03-30T19:57:23.000000Z K 7 svn:log V 72 MFC rev. 1.6 Fix incorrect handling of malloc failures PR: bin/83369 END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:01:50.000000Z K 7 svn:log V 98 Implement hypotl(). This is bde's conversion of fdlibm hypot(), with minor fixes for ld128 by me. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:02:03.000000Z K 7 svn:log V 102 Implement cabsl() in terms of hypotl(). Submitted by: Steve Kargl END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:03:06.000000Z K 7 svn:log V 82 Alias hypotl() and cabsl() for platforms where long double is the same as double. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:03:29.000000Z K 7 svn:log V 81 Document hypotl(). Submitted by: Steve Kargl END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:03:46.000000Z K 7 svn:log V 43 Hook hypotl() and cabsl() up to the build. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:07:15.000000Z K 7 svn:log V 20 Implement csqrtl(). END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-30T20:08:59.000000Z K 7 svn:log V 128 Eliminate an unnecessary printf() from kmem_suballoc(). The subsequent panic() can be extended to convey the same information. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:09:51.000000Z K 7 svn:log V 37 Add some minimal tests for csqrtl(). END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:47:26.000000Z K 7 svn:log V 39 Implement remquol() based on remquo(). END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:47:42.000000Z K 7 svn:log V 127 Implement remainderl() as a wrapper around remquol(). The extra work remquol() performs to compute the quotient is negligible. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:48:02.000000Z K 7 svn:log V 49 Hook remquol() and remainderl() up to the build. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T20:48:33.000000Z K 7 svn:log V 41 Test remainderl() and remquol() as well. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-30T21:21:53.000000Z K 7 svn:log V 53 Add assembly versions of remquol() and remainderl(). END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-30T23:09:14.000000Z K 7 svn:log V 255 Better implement I-cache invalidation. The previous implementation was a kluge. This implementation matches the behaviour on powerpc and sparc64. While on the subject, make sure to invalidate the I-cache after loading a kernel module. MFC after: 2 weeks END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-31T02:55:49.000000Z K 7 svn:log V 183 Rewrite rwlock to user atomic operations to change rwlock state, this eliminates internal mutex lock contention when most rwlock operations are read. Orignal patch provided by: jeff END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-31T04:03:14.000000Z K 7 svn:log V 182 Padding more bytes than necessary one broke another variants of PCIe RealTek chips. Only pad IP packets if the payload is less than 28 bytes. Obtained from: NetBSD PR: kern/122221 END K 10 svn:author V 4 bmah K 8 svn:date V 27 2008-03-31T04:38:58.000000Z K 7 svn:log V 402 New release notes: kern.features, superpages, em(4)/igb split, malo(4), mxge firmware 1.4.29 update, bpf(4) zerocopy, kgdb(1) add-kld, procstat(1), realpath(1) -q (+MFC), top(1) -P, hostapd 0.5.10, WPA supplicant 0.5.10, GNOME 2.22 (+MFC). Modified release notes: Add cpuset(2) manpage reference, make wpi(4) note reflect reality, tzdata2008b. MFCs noted: ddb(4) output capture, ddb(4) scripting. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2008-03-31T05:06:00.000000Z K 7 svn:log V 67 MFCs noted: BTX real mode, TCP options processing fix, hptrr 1.2. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2008-03-31T05:12:35.000000Z K 7 svn:log V 162 MFC: ddb(4) output capture, ddb(4) scripting, BTX real mode, gptboot, wpi(4) fixes, hptrr(4) 1.2 update, chflags(1) -v, realpath(1) -q, tzdata2008b, GNOME 2.22. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-03-31T06:20:46.000000Z K 7 svn:log V 68 Include Guido's license information from the pattern-matching code. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-03-31T06:24:39.000000Z K 7 svn:log V 67 Include an extra byte for the trailing NUL. Pointy hat: Me END K 10 svn:author V 6 matteo K 8 svn:date V 27 2008-03-31T06:49:03.000000Z K 7 svn:log V 137 MFC rev. 1.10 of cryptotest.c and rev. 1.3 of cryptostats.c Add missing includes and correct argument to sysctlbyname PR: misc/120274 END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-31T07:47:08.000000Z K 7 svn:log V 643 - Don't free snapdata structures when they are no longer in use. Keeping the lockmgr lock valid allows us to switch the v_lock pointer in snapshot vnodes between the embedded lockmgr lock and snapdata lock without needing the vnode interlock to protect against races - Keep unused snapdata structures in a list. - Add a function to lock the devvp and allocate a snapdata to it or acquire a new one without races. The old function was safe from creation races because we set the mount flag when creating snapshots and thus serializing them. However, it might have been subject to destroying races. Reviewed by: tegge END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-31T07:55:45.000000Z K 7 svn:log V 585 - Since rev 1.142 of ffs_snapshot.c the interlock has not been required to protect the v_lock pointer. Removing the interlock acquisition here allows vn_lock() to proceed without requiring the interlock at all. - If the lock mutated while we were sleeping on it the interlock has been dropped. It is conceivable that the upper layer code was relying on the interlock and LK_NOWAIT to protect the identity or state of the vnode while acquiring the lock. In this case return EBUSY rather than trying the new lock to prevent potential races. Reviewed by: tegge END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-31T10:06:12.000000Z K 7 svn:log V 90 MFC: 1.44: Fix splitting into words of the .for expression to allow for spaces in values. END K 10 svn:author V 7 ganbold K 8 svn:date V 27 2008-03-31T10:28:09.000000Z K 7 svn:log V 178 Improve some quotes of Chinggis Khan. Remove militant and moralized quotes of Chinggis Khan. Add one more quote of Chinggis Khan. Reviewed by: yar Approved by: keramida(mentor) END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T11:53:03.000000Z K 7 svn:log V 155 Add the utility function vn_commname() to retrieve the command name from the vfs namecache, when available. Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T11:55:10.000000Z K 7 svn:log V 224 Add the constant definition needed by the implementation of the openat() and the related syscalls. Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T11:57:18.000000Z K 7 svn:log V 167 Add the support for the O_EXEC open(2) mode, as specified by the POSIX Extended API Set Part 2 extension specification. Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:01:21.000000Z K 7 svn:log V 204 Add the support for the AT_FDCWD and fd-relative name lookups to the namei(9). Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:04:20.000000Z K 7 svn:log V 318 Implement the openat(2), faccessat(2), fchmodat(2), fchownat(2), fstatat(2), futimesat(2), linkat(2), mkdirat(2), mkfifoat(2), mknodat(2), readlinkat(2), renameat(2), symlinkat(2) syscalls. Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:05:52.000000Z K 7 svn:log V 159 Implement the fexecve(2) syscall. Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:06:55.000000Z K 7 svn:log V 192 Add the openat(), fexecve() and other *at() syscalls to the table. Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:08:30.000000Z K 7 svn:log V 109 Add the freebsd32 compatibility shims for the *at() syscalls. Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:12:27.000000Z K 7 svn:log V 6 Regen END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-31T12:14:04.000000Z K 7 svn:log V 191 Add the libc glue and headers definitions for the *at() syscalls. Based on the submission by rdivacky, sponsored by Google Summer of Code 2007 Reviewed by: rwatson, rdivacky Tested by: pho END K 10 svn:author V 3 flz K 8 svn:date V 27 2008-03-31T12:45:17.000000Z K 7 svn:log V 149 Retire pkg_sign. It was used to embed signatures in gzip'ed packages. It's not relevant since we've changed to bzip2 compression. MFC after: 1 week END K 10 svn:author V 3 das K 8 svn:date V 27 2008-03-31T13:11:45.000000Z K 7 svn:log V 55 Remove a (bogus) remnant of debugging this on sparc64. END K 10 svn:author V 3 pav K 8 svn:date V 27 2008-03-31T13:32:55.000000Z K 7 svn:log V 161 Double up the necessary size of /usr/obj to 800MB PR: misc/99735 Reported by: Philip M. Gollucci , Maxim Konovalov END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-31T13:56:15.000000Z K 7 svn:log V 89 Accept empty -T arguments. Proposed by: clemens fischer END K 10 svn:author V 3 skv K 8 svn:date V 27 2008-03-31T14:11:37.000000Z K 7 svn:log V 34 Fix punctiation. Approved by: ru END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T14:32:06.000000Z K 7 svn:log V 794 MFC - diff reduction w/ HEAD aac.c 1.131: Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling): - Resource allocation in aac_alloc (moved from from aac_init) - Interrupt setup in aac_setup_intr (from aac_attach) - Container probing in aac_get_container_info (from aac_startup and aac_handle_aif) - Firmware status check moved to aac_check_firmware from aac_init aac.c 1.132, aac_cam.c 1.31, aad_debug.c 1.24, aac_disk.c 1.44, aac_pci.c 1.67, aacvar.h 1.50: Diff reduction to Adaptec's driver (around build 15317): catch up with a change in debugging routines. The fwprintf macro in the AAC_DEBUG case (mapping to printf) isn't from the Adaptec driver. aac.c 1.135: Add \n to the end of a printf string and remove it from panic strings. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T14:44:08.000000Z K 7 svn:log V 106 MFC aac.c 1.121: Correct calculation of aac_sg_tablesize. Obtained from: Adaptec, via driver b11669 END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-31T15:38:07.000000Z K 7 svn:log V 444 Fix handling of create operation together with setting other parameters: o mark cmds/parameters to indicate they are potential arguments to a clone operation (e.g. vlantag) o when handling a create/clone operation do the callback on seeing the first non-clone cmd line argument so the new device is created and can be used; and re-setup operating state to reflect the newly created device Reviewed by: Eugene Grosbein MFC after: 2 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T17:04:10.000000Z K 7 svn:log V 377 MFC aac.c 1.131: Diff reduction to Adaptec driver build 15317 (refactoring and code shuffling): - Resource allocation in aac_alloc (moved from from aac_init) - Interrupt setup in aac_setup_intr (from aac_attach) - Container probing in aac_get_container_info (from aac_startup and aac_handle_aif) - Firmware status check moved to aac_check_firmware from aac_init END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-31T18:49:09.000000Z K 7 svn:log V 81 add include path required to find ah_osdep.h PR: kern/122145 MFC after: 3 days END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T19:21:49.000000Z K 7 svn:log V 565 MFC >2TB support aac.c 1.134, aac_disk.c 1.45, aacreg.h 1.25, aacvar.h 1.51: Add 64-bit array support for RAIDs > 2TB. This corresponds to ~ Adaptec driver build 15317. Tested on: Adaptec 2230S, Firmware 4.2-0 (8205) ICP ICP5085BL, Firmware 5.2-0 (12814) aac.c 1.136, aac_ioctl.h 1.13: Implement FSACTL_LNX_GET_FEATURES and FSACTL_GET_FEATURES ioctls. RAID tools (e.g. arcconf) need this to be able to create arrays larger than 2TB. Submitted by: Adaptec, via driver build 15317 The RELENG_7 and HEAD drivers are in sync as of this commit. END K 10 svn:author V 4 fjoe K 8 svn:date V 27 2008-03-31T19:28:13.000000Z K 7 svn:log V 111 Conditionally add mklocale and gencat to bootstrap-tools to allow to build RELENG_5 on later FreeBSD versions. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T19:50:53.000000Z K 7 svn:log V 451 MFC aac.c 1.130: Restore creation of passthrough devices with newer controller firmware by putting the correct size in the fib header. Presumably the older firmware silently ignored a bad size field. (This change tested with a 3805 controller. Passthrough devices were created when running firmware build 12814, but not 15323 or later. With this change they're created for both old and new firmware versions.) Submitted by: Adaptec END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T20:03:31.000000Z K 7 svn:log V 148 MFC aac.c 1.125, aac_pci.c 1.66, aacreg.h:1.24: Add family support to allow the driver to attach to new devices that share the same interface. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T20:11:46.000000Z K 7 svn:log V 192 MFC aac_cam.c 1.30: Merge from Adaptec a 64 bit fix and a workaround for luns != 0 returning CAM_SEL_TIMEOUT on SAS controllers, which prevented passthrough devices from being created. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-31T21:02:27.000000Z K 7 svn:log V 75 reduce the size of the jumbo ring on i386 and disable pcpu cluster caching END K 10 svn:author V 6 scottl K 8 svn:date V 27 2008-03-31T21:54:05.000000Z K 7 svn:log V 876 The MPT driver treats the "core" module with the same importance and abstraction as the RAID and CAM modules, making it nearly impossible for enough initialization to be done in time for the RAID module to know whether to attach. On top of this, no reset was being done on the controller on attach, in violation of the spec. Additionally, the port enable step was being deferred to the end of the attach process, long after it should have been done to ensure reliable operation from the controller. Fix all of these with a few hacks to force the "attach" and "enable" steps of the core module early on, and ensure that a reset and port enable also happens early on. In the future, the driver needs to be refactored to eliminate the core module abstraction, clean up withe reset/enable steps, and defer event messages until all of the modules are available to recieve them. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T21:57:24.000000Z K 7 svn:log V 2207 Merge files:1.1260, db_capture.c:1.2, db_command.c:1.76, db_textdump.c:1.1, ddb.h:1.46, kern_shutdown.c:1.187 from HEAD to RELENG_7: Add textdump(4) facility, which provides an alternative form of kernel dump using mechanically generated/extracted debugging output rather than a simple memory dump. Current sources of debugging output are: - DDB output capture buffer, if there is captured output to save - Kernel message buffer - Kernel configuration, if included in kernel - Kernel version string - Panic message Textdumps are stored in swap/dump partitions as with regular dumps, but are laid out as ustar files in order to allow multiple parts to be stored as a stream of sequentially written blocks. Blocks are written out in reverse order, as the size of a textdump isn't known a priori. As with regular dumps, they will be extracted using savecore(8). One new DDB(4) command is added, "textdump", which accepts "set", "unset", and "status" arguments. By default, normal kernel dumps are generated unless "textdump set" is run in order to schedule a textdump. It can be canceled using "textdump unset" to restore generation of a normal kernel dump. Several sysctls exist to configure aspects of textdumps; debug.ddb.textdump.pending can be set to check whether a textdump is pending, or set/unset in order to control whether the next kernel dump will be a textdump from userspace. While textdumps don't have to be generated as a result of a DDB script run automatically as part of a kernel panic, this is a particular useful way to use them, as instead of generating a complete memory dump, a simple transcript of an automated DDB session can be captured using the DDB output capture and textdump facilities. This can be used to generate quite brief kernel bug reports rich in debugging information but not dependent on kernel symbol tables or precisely synchronized source code. Most textdumps I generate are less than 100k including the full message buffer. Using textdumps with an interactive debugging session is also useful, with capture being enabled/disabled in order to record some but not all of the DDB session. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T22:00:27.000000Z K 7 svn:log V 374 Merge Makefile:1.401, ddb.4:1.46, textdump.4:1.1 from HEAD to RELENG_7: Add textdump(4) man page to describe the textdump facility and provide some stock formulas for use. Update ddb(4) to reference the textdump(4) page, list the textdump commands, and suggest using them with scripts and output capture. Update HISTORY section. Hook up textdump(4) to build. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T22:02:28.000000Z K 7 svn:log V 185 Merge ddb.4:1.47, textdump.4:1.2 from HEAD to RELENG_7: Minor formatting tweaks; recommend "call doadump; reset" over "panic" from a script as the DDB panic command is unreliable. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T22:03:54.000000Z K 7 svn:log V 648 Merge savecore.8:1.26, savecore.c:1.79 from HEAD to RELENG_7: Teach savecore(8) how to extract textdump(4) dumps. Update savecore(8) man page to reflect textdump additions. Merge savecore.c:1.80 from HEAD to RELENG_7: Compare kernel dump header magic with textdump magic using strncmp() rather than the memcmp() which is used for regular dumps: the textdump string is one character shorter, so we need to stop comparing at the end of the string. Use independent version checking logic for architecture-specific version number vs. textdump version number, as the version sequences may (someday) differ. Run into by: rrs END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T22:04:27.000000Z K 7 svn:log V 138 Merge ddb.8:1.2 from HEAD to RELENG_7: Minor formatting tweaks. Point at ddb(4) and textdump(4) man pages for more script examples. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T22:05:09.000000Z K 7 svn:log V 85 Merge db_textdump.c:1.2 from HEAD to RELENG_7: Refine textdump comments slightly. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-31T22:09:00.000000Z K 7 svn:log V 297 Merge db_capture.c:1.3 from HEAD to RELENG_7: Rename DB_ constants in db_capture.c to DDB_ so that when they are exposed as kernel compile options, they have more meaningful names. PR: 119993 MFC after: 2 months Suggested by: Scot Hetzel END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-31T23:16:05.000000Z K 7 svn:log V 80 MFC aac.c r1.126: Do not recursively acquire aac_io_lock in aac_ioctl_event. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-04-01T00:09:29.000000Z K 7 svn:log V 99 Acquire Giant in aac_cam_event for xpt_release_simq. Not necessary with MPSAFE CAM so not an MFC. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-01T00:21:49.000000Z K 7 svn:log V 102 return EAGAIN early rather than running bunch of code later, micro optimize static branch prediction. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2008-04-01T01:48:08.000000Z K 7 svn:log V 74 remove warnings for 64bit aware platforms. Approved by: thompsa (mentor) END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-04-01T01:48:09.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_7'. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-04-01T01:48:10.000000Z K 7 svn:log V 64 This commit was manufactured by cvs2svn to create tag 'v0_5_10'. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2008-04-01T01:55:19.000000Z K 7 svn:log V 60 Add malo driver to the build Approved by: thompsa (mentor) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-01T06:23:08.000000Z K 7 svn:log V 69 Restore normal pthread_cond_signal path to avoid some obscure races. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-01T06:56:11.000000Z K 7 svn:log V 153 Normally, we are often reading local time rather than setting time zone, replace mutex with rwlock, this should eliminate lock contention in most cases. END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2008-04-01T07:20:04.000000Z K 7 svn:log V 60 Connect malo.4 to the build. Approved by: thompsa (mentor) END K 10 svn:author V 4 rink K 8 svn:date V 27 2008-04-01T07:36:30.000000Z K 7 svn:log V 232 MFC: Commit cmx(4), a driver for Omnikey CardMan 4040 PCMCIA smartcard readers. PR: kern/114582 Submitted by: Daniel Roethlisberger Reviewed by: imp, myself Tested by: johans, myself END K 10 svn:author V 4 rink K 8 svn:date V 27 2008-04-01T07:57:48.000000Z K 7 svn:log V 197 MFC: Import uslcom(4) from OpenBSD - this is a driver for Silicon Laboratories CP2101/CP2102 based USB serial adapters. Reviewed by: imp, emaste Obtained from: OpenBSD END K 10 svn:author V 4 rink K 8 svn:date V 27 2008-04-01T07:59:39.000000Z K 7 svn:log V 71 Add cmx.4 file forgotten in previous cmx(4) MFC. Noticed by: brueffer END K 10 svn:author V 4 rink K 8 svn:date V 27 2008-04-01T08:05:30.000000Z K 7 svn:log V 259 MFC: Some PS/2 mice (at least the A4Tech X-7xx) need to be set to Intelli mode first before they can be set to Explorer mode. PR: kern/118578 Submitted by: Andriy Gapon (I added some comments) Reviewed by: philip END