;153940 60 1204 151 215 511 200 159 187 252 132 150 286 239 154 434 286 274 188 138 155 144 155 878 281 751 662 187 236 122 170 363 208 204 143 237 347 154 181 195 155 164 203 450 2211 173 152 560 256 161 273 469 429 429 443 375 187 246 178 575 206 162 K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-12-31T14:39:20.000000Z K 7 svn:log V 1105 MI changes: - provide an interface (macros) to the page coloring part of the VM system, this allows to try different coloring algorithms without the need to touch every file [1] - make the page queue tuning values readable: sysctl vm.stats.pagequeue - autotuning of the page coloring values based upon the cache size instead of options in the kernel config (disabling of the page coloring as a kernel option is still possible) MD changes: - detection of the cache size: only IA32 and AMD64 (untested) contains cache size detection code, every other arch just comes with a dummy function (this results in the use of default values like it was the case without the autotuning of the page coloring) - print some more info on Intel CPU's (like we do on AMD and Transmeta CPU's) Note to AMD owners (IA32 and AMD64): please run "sysctl vm.stats.pagequeue" and report if the cache* values are zero (= bug in the cache detection code) or not. Based upon work by: Chad David [1] Reviewed by: alc, arch (in 2004) Discussed with: alc, Chad David, arch (in 2004) END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-12-31T14:44:49.000000Z K 7 svn:log V 54 Say some words about the removed PQ_* kernel options. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-12-31T16:32:27.000000Z K 7 svn:log V 117 Update for new devices, including the AMD 8111. Also mention amdsmb(4) for SMBus 2.0 functionality of the AMD 8111. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-12-31T17:58:28.000000Z K 7 svn:log V 418 It is next year in Asia already, so jump the gun a little and commit the year bump. # If we behaved like book publishers, we'd do this in July. I can't find # a good reference for why they do it then, but it has been explained to # me that copyrights in the last 1/2 of the year expire as if they were # published in the following year. I can't confirm this info, but if you # have a pointer, please send it to me. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-12-31T20:00:12.000000Z K 7 svn:log V 107 Remove K&R vestige. It is no longer necessary to concatenate strings using /**/. A simple space will do. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-12-31T20:04:39.000000Z K 7 svn:log V 67 Remove extra debugging that crept in with the integration from p4. END K 10 svn:author V 6 avatar K 8 svn:date V 27 2006-01-01T01:28:31.000000Z K 7 svn:log V 92 Adding another multi-byte characters related regression test for recent nmount(2) adoption. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2006-01-01T05:35:57.000000Z K 7 svn:log V 154 Unbreak kernel build. A happy new year to all. Submitted by: Goran Gajic , bz Pointy hat to: netchild Appologies to: all END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-01T08:26:39.000000Z K 7 svn:log V 40 Remove stray debug from p4 integration. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-01T08:31:48.000000Z K 7 svn:log V 54 MFC revision 1.236: Add code to report zombie state. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2006-01-01T11:01:01.000000Z K 7 svn:log V 193 Use the correct shared-library version number (the same as the one used by the standalone version of heimdal GSS-API). If any compat issues arise, I may increment the version number once more. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2006-01-01T16:02:12.000000Z K 7 svn:log V 142 Document that '#' starts a comment. PR: 85103 Submitted by: garys Obtained from: pdksh manual Patch from: Daniel Gerzo (with changes by me) END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-01T18:16:13.000000Z K 7 svn:log V 60 Fix another xruns counting logic, this time, for recording. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2006-01-01T20:19:49.000000Z K 7 svn:log V 339 - Fix possible memory leak due to repetetive strdup(3) without matching free(3). - print_recsrc() should honor shortflag and give appropriate output for later consumption by /etc/rc.d/mixer. This will ensure that recording device selections survived across reboot. Output everything to stdout instead if stderr. MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-01T20:40:08.000000Z K 7 svn:log V 193 Remove left-over #ifdef alpha routines. They aren't used by any of our drivers, and don't appear to be necessary for GENERIC and LINT on the alpha. They don't belong in a MI header anyway... END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-01T20:59:28.000000Z K 7 svn:log V 181 Define __HAVE_ACPI and/or __PCI_REROUTE_INTERRUPT, as appropriate for each platform. These will be used in the pci code in preference to the complicated #ifdefs we have there now. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-01T21:04:31.000000Z K 7 svn:log V 96 Use __HAVE_ACPI and __PCI_REROUTE_INTERRUPT as appropriate rather than the complicated #ifdefs. END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-01T22:33:45.000000Z K 7 svn:log V 46 MFC 1.26: unbreak handling of turboG channels END K 10 svn:author V 6 scottl K 8 svn:date V 27 2006-01-01T22:52:21.000000Z K 7 svn:log V 60 Use the correct units when handling the hw.physmem tunable. END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2006-01-01T22:54:49.000000Z K 7 svn:log V 47 Whitespace after switch. Inspired by: OpenBSD END K 10 svn:author V 8 jmallett K 8 svn:date V 27 2006-01-01T22:59:54.000000Z K 7 svn:log V 58 NUL terminate buffer from fgetln(3). From fgsch@OpenBSD. END K 10 svn:author V 2 dd K 8 svn:date V 27 2006-01-02T01:50:30.000000Z K 7 svn:log V 786 Add a -P option to allow skipping newfs when using a vnode-backed disk. Apparently some people want to use mdmfs as mount_* as a shortcut for mounting existing file-based file systems. Note that unlike in the patches from the submitters, this option is not available in compat mode. Compat mode was supposed to support only things that mount_mfs used to support. To use this option from fstab, mdmfs should be called mount_md, not mount_mfs. This distinction has not always upkept for new options, and those can't be fixed now without breaking people's systems, but new options should not usually be allowed in compat mode. (Not sure why -F is allowed there at all.) PR: 57641 Submitted by: Ruben de Groot Submitted independently by: Wojciech A. Koszek, for Urzad Miasta Czestochowa END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-01-02T07:29:22.000000Z K 7 svn:log V 187 Request boot floppy after loading mfsroot floppy because beastie.4th exists in boot floppy. Submitted by: Nobuyuki Koganemaru < n-kogane at syd dot odn dot ne dot jp > MFC after: 1 week END K 10 svn:author V 5 brian K 8 svn:date V 27 2006-01-02T08:36:25.000000Z K 7 svn:log V 656 Add a -s flag for the same functionality as strace. Introduce a Name type which is a String type that has no -s limitations applied to it. Change most Strings in the code to Names and add a few extra syscalls, namely munmap, read, rename and symlink. This was enough to facilitate following file descriptor allocations in the code more easily and getting a hint at what's being read/written from/to files. More syscalls should really be added. While here, fix an off-by-one bug in the buffer truncation code and add a fflush so that truss's output reflects the syscall that the program is stuck in. Sponsored by: Sophos/Activestate MFC after: 2 weeks END K 10 svn:author V 5 brian K 8 svn:date V 27 2006-01-02T08:51:21.000000Z K 7 svn:log V 567 Remove broken code that mucks about with tcsetpgrp() -- even if su isn't the foreground process. Hopefully this won't break PAM, but I couldn't find any useful information about ache's theory that it will. Specifically, this change fixes the following: # sh # echo $$ # su - root -c id & # echo $$ The PID output changes as su seems to be kill -STOP'ing itself and catching the parent shell in the process. This is especially bad if you add a ``su - user -c command &'' to an rc script! Sponsored by: Sophos/Activestate Not objected to by: des END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-02T09:36:53.000000Z K 7 svn:log V 91 Read time_second directly rather than calling getmicrotime(). Obtained from: DragonflyBSD END K 10 svn:author V 5 brian K 8 svn:date V 27 2006-01-02T09:46:38.000000Z K 7 svn:log V 141 Handle the case (that I just broke) where the following hangs: $ su # kill -STOP $$ Pointed out by: David Xu END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-02T09:50:34.000000Z K 7 svn:log V 26 Minor whitespace cleanup. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2006-01-02T10:03:35.000000Z K 7 svn:log V 78 Temporarily disable the kerberos5 lib32 build while I try to fix it properly. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2006-01-02T11:28:42.000000Z K 7 svn:log V 270 Fix the amd64 (and presumably ia64) lib32 build by ensuring that the heimdal GSS-API mechanism uses its own version of gssapi.h, including all the implementation-dependant pollution contained therein. This moves the file off the vendor branch, sadly. Submitted by: bz END K 10 svn:author V 4 ceri K 8 svn:date V 27 2006-01-02T12:53:48.000000Z K 7 svn:log V 114 MFC r1.111: Document the pfsync(4) specific maxupd parameter, with text mostly taken from OpenBSD's manpage. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-01-02T13:29:58.000000Z K 7 svn:log V 110 Add EXTPORTSDIR like EXTSRCDIR and EXTDOCDIR. PR: misc/83287 Submitted by: Gabor Kovesdan MFC after: 1 week END K 10 svn:author V 4 nyan K 8 svn:date V 27 2006-01-02T13:31:09.000000Z K 7 svn:log V 50 Add EXTDOCDIR and EXTPORTSDIR. MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-02T16:57:20.000000Z K 7 svn:log V 144 update erp information element in the beacon frame to reflect changes in the bss Reviewed by: avatar Obtained from: atheros MFC after: 2 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2006-01-02T17:16:27.000000Z K 7 svn:log V 254 enable "aggressive mode" only when operating in ap or station mode; in particular this fixes use of wme in adhoc demo mode, it wasn't possible to set the txop limit because the aggressive mode logic would override Reviewed by: apatti MFC after: 2 weeks END K 10 svn:author V 3 dfr K 8 svn:date V 27 2006-01-02T17:52:16.000000Z K 7 svn:log V 62 Revert the previous change - the lib32 build should work now. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-02T22:23:03.000000Z K 7 svn:log V 85 It is better to use time_uptime here since it is monotonic. Pointed out by: glebius END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-02T22:29:41.000000Z K 7 svn:log V 99 Reset the route expiry time on each update rather than always letting them get GC'd and recreated. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-02T22:44:54.000000Z K 7 svn:log V 59 Reorganise bridge_rtupdate slightly to reduce duplication. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-02T23:02:43.000000Z K 7 svn:log V 68 Fix a brain-o in the last commit, the conditional was always false. END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-03T03:16:53.000000Z K 7 svn:log V 110 Minor style(9) hacking, plus use a macro in place of (struct resource *)~0UL (what the heck does that mean?). END K 10 svn:author V 3 imp K 8 svn:date V 27 2006-01-03T03:36:17.000000Z K 7 svn:log V 357 Use the child to allocate the resource rather than bridge, since we're allocating a resource that's in the card itself. Remove more now-redundant resource_list_add, and now-redunant code that lives in the pci layer. # This fixes the atheros card that I have which had its CIS in one of # the BARs. Don't know yet if this fixes the amd64 issues reported. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-01-03T06:14:07.000000Z K 7 svn:log V 2113 - Tx side bus_dmamap_load_mbuf_sg(9) support. This reduces bookkeeping requiried to keep consistent softc state before/after callback function invocation and supposed to be sligntly faster than previous one as it wouldn't incur callback overhead. With this change callback function was gone. - Decrease TI_MAXTXSEGS to 32 from 128. It seems that most mbuf chain length is less than 32 and it would be re-packed with m_defrag(9) if its chain length is larger than TI_MAXTXSEGS. This would protect ti(4) against possible kernel stack overflow when txsegs[] is put on stack. Alternatively, we can embed the txsegs[] into softc. However, that would waste memory and make Tx/Rx speration hard when we want to sperate Tx/Rx handlers to optimize locking. - Fix dma map tracking used in Tx path. Previously it used the dma map of the last mbuf chain in ti_txeof() which was incorrect as ti(4) used dma map of the first mbuf chain when it loads a mbuf chain with bus_dmamap_load_mbuf(9). Correct the bug by introducing queues that keep track of active/inactive dma maps/mbuf chain. - Use ti_txcnt to check whether driver need to set watchdog timer instead of blidnly clearing the timer in ti_txeof(). - Remove the 3rd arg. of ti_encap(). Since ti(4) now caches the last descriptor index(ti_tx_saved_prodidx) used in Tx there is no need to pass it as a fuction arg. - Change data type of producer/consumer index to int from u_int16_t in order to remove implicit type conversions in Tx/Rx handlers. - Check interface queue before getting a mbuf chain to reduce locking overhead. - Check number of available Tx descriptores to be 16 or higher in ti_start(). This wouldn't protect Tx descriptor shortage but it would reduce number of bus_dmamap_unload(9) calls in ti_encap() when we are about to running out of Tx descriptors. - Command NIC to send packets ony when the driver really has packets enqueued. Previously it always set TI_MB_SENDPROD_IDX which would command NIC to DMA Tx descriptors into NIC local memory regardless of Tx descriptor changes. Reviewed by: scottl END K 10 svn:author V 7 yongari K 8 svn:date V 27 2006-01-03T06:35:16.000000Z K 7 svn:log V 77 MFC 1.20 to RELENG_6. Remove "nodevice snd_es137x" as it is supported now. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2006-01-03T08:15:33.000000Z K 7 svn:log V 56 MFC: EtherIP support, adding gif interfaces to bridges. END K 10 svn:author V 5 brian K 8 svn:date V 27 2006-01-03T09:17:04.000000Z K 7 svn:log V 465 Fix the other su bug reintroduced two commits ago, namely $ su % kill -STOP $$ where su is executing (t)csh. csh's job handling is a little more special than that of (a)sh, bash and even zsh and blows up a little more spectacularly. This modification restores the original mucking about with the tty pgrp, but is careful to only do it when su (or su's child) is the foreground process. While I'm here, fix a STDERR_FILENO spelling as suggested by bde. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-03T09:49:10.000000Z K 7 svn:log V 159 When returning EIO from DEVFSIO_RADD ioctl, drop the exclusive rule lock. Otherwise the system comes to a rather sudden and grinding halt. MFC after: 1 week END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2006-01-03T13:30:23.000000Z K 7 svn:log V 65 Remove in-progress wait code to sync with libpthread's behavior. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2006-01-03T14:00:22.000000Z K 7 svn:log V 176 Back out VFS_LOCK_GIANT.9:1.4, due to losing a race in change/update against revision 1.3. No need to include mount.h twice, once will be quite enough. Pointed out by: simon END K 10 svn:author V 5 brian K 8 svn:date V 27 2006-01-03T15:34:27.000000Z K 7 svn:log V 374 For the ``#ifdef NOTYET'' code that allows calling non-async-safe functions in the child after a fork() from a threaded process, use __sys_setprocmask() rather than setprocmask() to keep our signal handling sane. Without this fix, signals are essentially ignored in said child and things such as protection violations result in an endless busy loop. Reviewed by: deischen END K 10 svn:author V 6 emaste K 8 svn:date V 27 2006-01-03T16:34:55.000000Z K 7 svn:log V 333 MFC kern_clock.c:1.181 In watchdog_config enable the software watchdog iff the WD_ACTIVE flag is set. When watchdogd(1) is terminated intentionally it clears the bit, which should then disable it in the kernel. PR: kern/74386 Submitted by: Alex Hoff Approved by: rwatson (mentor) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2006-01-03T16:43:33.000000Z K 7 svn:log V 333 MFC kern_clock.c:1.181 In watchdog_config enable the software watchdog iff the WD_ACTIVE flag is set. When watchdogd(1) is terminated intentionally it clears the bit, which should then disable it in the kernel. PR: kern/74386 Submitted by: Alex Hoff Approved by: rwatson (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-03T17:00:38.000000Z K 7 svn:log V 350 - Don't list sleep() in the NAME section as we haven't had a sleep() function in years. - Change the 'ident' paramters to 'wchan' to match . - Use 'otherwise' in place of 'else' in one place so that this reads like English rather than C. - Document the new msleep_spin() function. - Add history notes for msleep() and msleep_spin(). END K 10 svn:author V 5 brian K 8 svn:date V 27 2006-01-03T17:01:43.000000Z K 7 svn:log V 280 This signal handling code is worse than a no-op. If a signal is received during the msleep, the msleep is retried indefinitely as it just keeps returning ERESTART because of the pending signal. Instead, just don't PCATCH - the signal can wait. Sponsored by: Sophos/ActiveState END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-03T20:19:34.000000Z K 7 svn:log V 95 Release the pci_link acpi serial lock if a link device has no actual links. MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2006-01-03T20:26:03.000000Z K 7 svn:log V 152 - Explicitly validate an empty filter to match bpf_filter() comment[1]. - Do not use BPF JIT compiler for an empty filter. [1] Pointed out by: darrenr END K 10 svn:author V 4 jkim K 8 svn:date V 27 2006-01-03T20:34:41.000000Z K 7 svn:log V 85 Correctly check the filter length. I committed the wrong version. Pointy hat to me. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-03T20:39:38.000000Z K 7 svn:log V 482 Fix a couple of issues with the ibcs2 module event handler. First, return success instead of EOPNOTSUPP when being loaded. Secondly, if there are no ibcs2 processes running when a MOD_UNLOAD request is made, break out to return success instead of falling through into the default case which returns EOPNOTSUPP. With these fixes, I can now kldload and subsequently kldunload the ibcs2 module. PR: kern/82026 (and several duplicates) Reported by: lots of folks MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2006-01-03T20:43:01.000000Z K 7 svn:log V 113 MFC: Fix a deadlock in the recently added printf to warn about spin locks that are not in the static order list. END K 10 svn:author V 3 des K 8 svn:date V 27 2006-01-03T21:32:02.000000Z K 7 svn:log V 70 Don't use threads when there's no real reason to. MFC after: 2 weeks END