ƒ¯?177493 166 898 179 167 436 393 141 139 163 444 203 146 135 552 281 476 233 411 450 207 231 308 168 149 134 240 435 303 440 181 253 284 186 532 246 310 494 1559 254 233 154 127 265 2541 141 286 437 535 218 126 466 390 492 404 328 261 2261 224 349 197 319 328 204 361 361 444 300 365 217 455 652 667 143 285 363 292 124 237 136 110 184 237 168 137 117 237 136 260 223 237 659 170 139 127 156 755 144 133 164 295 125 142 113 236 362 192 155 422 182 843 403 184 132 121 231 171 111 174 111 224 228 98 162 159 251 238 173 299 222 525 155 228 149 348 261 152 165 213 232 272 175 2598 98 166 142 169 125 203 208 202 1701 124 139 677 132 357 297 328 302 1282 157 181 263 473 277 127 247 K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-22T09:15:16.000000Z K 7 svn:log V 804 - Complete part of the unfinished bufobj work by consistently using BO_LOCK/UNLOCK/MTX when manipulating the bufobj. - Create a new lock in the bufobj to lock bufobj fields independently. This leaves the vnode interlock as an 'identity' lock while the bufobj is an io lock. The bufobj lock is ordered before the vnode interlock and also before the mnt ilock. - Exploit this new lock order to simplify softdep_check_suspend(). - A few sync related functions are marked with a new XXX to note that we may not properly interlock against a non-zero bv_cnt when attempting to sync all vnodes on a mountlist. I do not believe this race is important. If I'm wrong this will make these locations easier to find. Reviewed by: kib (earlier diff) Tested by: kris, pho (earlier diff) END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-22T09:59:20.000000Z K 7 svn:log V 83 Add POSIX pthread API pthread_getcpuclockid() to get a thread's cpu time clock id. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-22T12:05:35.000000Z K 7 svn:log V 75 MFC: lockd.c 1.21, 1.22 rpc.lockd.8 1.18 Add the "-h " option. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-22T12:50:43.000000Z K 7 svn:log V 341 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 END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2008-03-22T14:06:01.000000Z K 7 svn:log V 296 Reset the internal state used for the 'getopts' built-in when 'shift' or 'set' are used to modify the arguments. Not doing so caused random memory reads or null pointer dereferences when 'getopts' was called again later (SUSv3 says getopts produces unspecified results in this case). PR: 48318 END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2008-03-22T14:07:49.000000Z K 7 svn:log V 45 Add a test case for options.c revision 1.26. END K 10 svn:author V 4 kris K 8 svn:date V 27 2008-03-22T15:13:26.000000Z K 7 svn:log V 46 MFC: Repair handling of X11BASE and LOCALBASE END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-22T16:18:07.000000Z K 7 svn:log V 71 correct syslog mask so LOG_DEBUG msgs are not lost MFC after: 2 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-22T16:24:02.000000Z K 7 svn:log V 351 Defer state change on disassociate to avoid unnecessarily dropping the lease: track the current bssid and if it changes (as reported in an assoc/reassoc) event only then kick the state machine. This gives us immediate response when roaming but otherwise causes us to fallback on the normal state machine. Reviewed by: brooks, jhb MFC after: 3 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-22T16:27:47.000000Z K 7 svn:log V 110 (finally) add the hal status to the diagnostic generated after a failed ath_hal_reset call MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-22T16:32:52.000000Z K 7 svn:log V 54 In abort2(2): Accept a NULL arg pointer if nargs == 0 END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-22T16:39:30.000000Z K 7 svn:log V 43 sync w/ p4: minor cleanups to improve msgs END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-22T16:53:28.000000Z K 7 svn:log V 459 Improve mac+phy configuration so that hints can be used to describe layouts different than the defaults: o hint.npe.0.mac="A", "B", etc. specifies the window for MAC register accesses o hint.npe.0.mii="A", "B", etc. specifies PHY registers o hint.npe.1.phy=%d specifies the PHY to map to a port This allows devices like NSLU to be setup w/o code changes and will also be used for forthcoming support for more Avila boards. Reviewed by: imp MFC after 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-22T16:55:51.000000Z K 7 svn:log V 188 add hints to specify how NPE ports are mapped to MAC+PHY; these could be commented out as they just duplicate the defaults that are built into the code Reviewed by: imp MFC after: 1 week END K 10 svn:author V 6 qingli K 8 svn:date V 27 2008-03-22T18:13:39.000000Z K 7 svn:log V 380 Reuse the mbuf that was just retrieved from the receive ring if mbuf exhaustion is encountered. There was a fix made previously for this problem but the solution (breaking out of the receive loop) does not seem to work. mbuf reuse strategy is already adopted by other drivers such as if_bge. The problem was recreated and the patch is also verified in the same test environment. END K 10 svn:author V 6 cognet K 8 svn:date V 27 2008-03-22T20:34:07.000000Z K 7 svn:log V 137 We need to prototype _start() as well, as we use it to test if we're running from flash or from RAM. Reported by: imp MFC After: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-23T01:23:35.000000Z K 7 svn:log V 315 Add g_retaste(), which given a class will present all non-open providers to it for tasting. This is useful when the class, through means outside the scope of GEOM, can claim providers previously unclaimed. The g_retaste() function posts an event which is handled by the g_retaste_event(). Event suggested by: phk END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-23T01:31:59.000000Z K 7 svn:log V 354 Redefine G_PART_SCHEME_DECLARE() from populating a private linker set to declaring a proper module. The module event handler is part of the gpart core and will add the scheme to an internal list on module load and will remove the scheme from the internal list on module unload. This makes it possible to dynamically load and unload partitioning schemes. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-23T01:42:19.000000Z K 7 svn:log V 113 - Pass BO_MTX(bo) to lockmgr in vtruncbuf, we don't own the vnode interlock here anymore. Reported by: kris END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-03-23T01:42:47.000000Z K 7 svn:log V 135 Instead of making a single geom_part.ko module, make a module for each partitioning scheme. The gpart code is currently non- optional. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-23T01:44:28.000000Z K 7 svn:log V 214 - Only return 1 from sync_vnode() in cases where the vnode is still at the head of the sync list. This prevents sched_sync() from re-queueing a vnode which may have been freed already. Discussed with: kib END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-23T02:03:06.000000Z K 7 svn:log V 72 Remove commented out code, thread suspension is done in thread library. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-23T02:10:44.000000Z K 7 svn:log V 53 MFC Revision 1.6: > Use macro THR_CLEANUP_PUSH/POP. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-23T02:17:13.000000Z K 7 svn:log V 38 MFC: Add manual for sem_timedwait(). END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2008-03-23T03:01:10.000000Z K 7 svn:log V 143 Remove comment about "-r" flag from readlabel. "-r" is a no-op. The is comment is left over from the old disklabel command. Reviewed by: phk END K 10 svn:author V 4 bmah K 8 svn:date V 27 2008-03-23T04:12:07.000000Z K 7 svn:log V 341 New release notes: KSE removed, cmx(4), uslcom(4), sf(4) update, re(4) update, vr(4) update, TCP options padding fix, ata(4) spindown, hptrr(4) 1.2, mmap(2)/ZFS fix, chflags(1) -v/-f, cp(1) -a, find(1) primaries to match GNU find, split(1) -n, tar(1) -Z, bzip2 1.0.5. Modified release notes: CVS post-1.11.12 snapshot from 10 March 2008. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-23T04:59:13.000000Z K 7 svn:log V 206 Always honor configured VLAN/checksum offload capabilities. Previously re(4) used to blindly enable VLAN hardware tag stripping and Rx checksum offload regardless of enabled optional features of interface. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-23T05:06:16.000000Z K 7 svn:log V 343 VLAN hardware tag information should be set for all desciptors of a multi-descriptor transmission attempt. Datasheet said nothing about this requirements. This should fix a long-standing VLAN hardware tagging issues with re(4). Reported by: Giulio Ferro ( auryn AT zirakzigil DOT org ) Tested by: Giulio Ferro ( auryn AT zirakzigil DOT org ) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-23T05:13:45.000000Z K 7 svn:log V 85 Some RealTek chips are known to be buggy on DAC handling, so disable DAC by default. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-23T05:31:35.000000Z K 7 svn:log V 156 For MSI capable hardwares, enable MSI enable bit in RL_CFG2 register. If MSI was disabled by hw.re.msi_disable tunable expliclty clear the MSI enable bit. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-23T05:35:18.000000Z K 7 svn:log V 187 MSI handling on some RealTek chips are broken so disable it by default. Reported by: Giulio Ferro ( auryn AT zirakzigil DOT org ) Tested by: Giulio Ferro ( auryn AT zirakzigil DOT org ) END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-23T06:52:01.000000Z K 7 svn:log V 94 MFC rev. 1.292: Fix the leak of the vmspace on the fork when the process limits are exceeded. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-23T07:07:27.000000Z K 7 svn:log V 439 Prevent the overflow in the calculation of the next page directory. The overflow causes the wraparound with consequent corruption of the (almost) whole address space mapping. As Alan noted, pmap_copy() does not require the wrap-around checks because it cannot be applied to the kernel's pmap. The checks there are included for consistency. Reported and tested by: kris (i386/pmap.c:pmap_remove() part) Reviewed by: alc MFC after: 1 week END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-23T09:38:11.000000Z K 7 svn:log V 152 - Restore kse.h in this directory so other tools don't find it by mistake. - Restore the ability to debug kse coredumps in 8.0. Suggested by: marcel END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-03-23T13:41:54.000000Z K 7 svn:log V 212 When updating the install list for files which have had local changes merged with upgrade changes, don't try to compute the SHA256 hash of files which don't exist. Reported by: Jaakko Heinonen MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-23T13:45:24.000000Z K 7 svn:log V 401 Yield the cpu in the kernel while iterating the list of the vnodes belonging to the mountpoint. Also, yield when in the softdep_process_worklist() even when we are not going to sleep due to buffer drain. It is believed that the ULE fixed the problem [1], but the yielding seems to be needed at least for the 4BSD case. Discussed: on stable@, with bde Reviewed by: tegge, jeff [1] MFC after: 2 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-23T20:38:01.000000Z K 7 svn:log V 1465 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. However, these changes enable me to remove a work-around from pmap_promote_pde(), the superpage promotion procedure. (Note: The AMD processors that we have tested, including the latest, the Phenom, still exhibit the historical behavior.) Acknowledgments: After I observed the problem, Stephan (ups) was instrumental in characterizing the exact behavior of Intel's recent TLBs. Tested by: Peter Holm END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-23T22:34:16.000000Z K 7 svn:log V 159 Insulate inpcb consumers outside the stack from the lock type and offset within the pcb by adding accessor functions. Reviewed by: rwatson MFC after: 3 weeks END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-03-23T22:44:56.000000Z K 7 svn:log V 138 Protect the setting of the fsbase/gsbase MSR registers and the pcb_[fg]sbase values with a critical section, like the rest of the kernel. END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-03-23T22:45:51.000000Z K 7 svn:log V 60 Move pcb_flags to make trivially better use of cache lines. END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-03-23T22:46:37.000000Z K 7 svn:log V 33 Export TDP_KTHREAD to asm files. END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-23T23:04:09.000000Z K 7 svn:log V 172 Correct an error in pmap_mincore() when applied to a 2MB page mapping: Use PG_PS_FRAME, not PG_FRAME, to obtain the physical address of the 2MB physical page from the PDE. END K 10 svn:author V 5 peter K 8 svn:date V 27 2008-03-23T23:09:06.000000Z K 7 svn:log V 2445 First pass at (possibly futile) microoptimizing of cpu_switch. Results are mixed. Some pure context switch microbenchmarks show up to 29% improvement. Pipe based context switch microbenchmarks show up to 7% improvement. Real world tests are far less impressive as they are dominated more by actual work than switch overheads, but depending on the machine in question, workload, kernel options, phase of moon, etc, a few percent gain might be seen. Summary of changes: - don't reload MSR_[FG]SBASE registers when context switching between non-threaded userland apps. These typically cost 120 clock cycles each on an AMD cpu (less on Barcelona/Phenom). Intel cores are probably no faster on this. - The above change only helps unthreaded userland apps that tend to use the same value for gsbase. Threaded apps will get no benefit from this. - reorder things like accessing the pcb to be in memory order, to give prefetching a better chance of working. Operations are now in increasing memory address order, rather than reverse or random. - Push some lesser used code out of the main code paths. Hopefully allowing better code density in cache lines. This is probably futile. - (part 2 of previous item) Reorder code so that branches have a more realistic static branch prediction hint. Both Intel and AMD cpus default to predicting branches to lower memory addresses as being taken, and to higher memory addresses as not being taken. This is overridden by the limited dynamic branch prediction subsystem. A trip through userland might overflow this. - Futule attempt at spreading the use of the results of previous operations in new operations. Hopefully this will allow the cpus to execute in parallel better. - stop wasting 16 bytes at the top of kernel stack, below the PCB. - Never load the userland fs/gsbase registers for kthreads, but preserve curpcb->pcb_[fg]sbase as caches for the cpu. (Thanks Jeff!) Microbenchmarking this code seems to be really sensitive to things like scheduling luck, timing, cache behavior, tlb behavior, kernel options, other random code changes, etc. While it doesn't help heavy userland workloads much, it does help high context switch loads a little, and should help those that involve switching via kthreads a bit more. A special thanks to Kris for the testing and reality checks, and Jeff for tormenting me into doing this. :) This is still work-in-progress. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-24T00:29:01.000000Z K 7 svn:log V 47 Label inp as unused in the non-INVARIANTS case END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-24T04:11:40.000000Z K 7 svn:log V 192 - Remove an old comment; vnodes have been working without Giant for years now. - Clarify the locking required for VI_DOOMED in preparation for simplifications to vget() and vn_lock(). END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-24T04:17:35.000000Z K 7 svn:log V 343 - Don't acquire the vnode interlock in _vn_lock() unless no lock type is requested. Handle this case specially before the while loop. - Use the held vnode lock to check for VI_DOOMED. The vnode lock and interlock must both be held to set VI_DOOMED so either one held, even shared, is sufficient to check it. No objection by: kib END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-24T04:22:58.000000Z K 7 svn:log V 441 - Greatly simplify vget() by removing the guarantee that any new references to a vnode with VI_OWEINACT set will force the vinactive() call. The kernel makes no guarantees about which reference was the last to close a file or when the actual inactive processing will happen. The previous code was designed to preserve existing semantics in the face of shared locks, however, this was unnecessary. Discussed with: mckusick END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-24T05:21:10.000000Z K 7 svn:log V 123 remove unneccessary tcbinfo lock acquisitions - set tp to null affter calling enter_timewait as we no longer own the inpcb END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-24T09:47:44.000000Z K 7 svn:log V 35 Fix bugs in the previous revision. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-24T10:39:34.000000Z K 7 svn:log V 371 MFC rev 1.9 tinybsd Alert properly when we have stale mounts left after interupting a tinybsd build. If we do not do this, we can accidentally remove critical files from directories like /lib (if mounted). PR: misc/121763 Submitted by: Richard Arends < richard at unixguru dot nl > MFC after: 3 days Approved by: imp (mentor, implicit) END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-24T10:43:41.000000Z K 7 svn:log V 295 MFC rev 1.9 drm_pciids.h MFC rev 1.7 i915_dma.c Add the i915 GME device to DRM. PR: kern/121808 Submitted by: Volker Werth Approved by: imp (mentor, implicit for trivial changes) MFC after: 3 days Approved by: imp (mentor, implicit) END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-24T10:46:00.000000Z K 7 svn:log V 397 MFC rev 1.73 newfs.8 Replace reference from vinum.8 to gvinum.8, it was advised in the PR to replace this with vinum.4, but that's the kernel interface manual, which is not appropriate in my understanding. I think that gvinum is a suitable replacement for this. PR: docs/121938 Submitted by: "Federico" MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-24T12:33:28.000000Z K 7 svn:log V 312 Fix splitting into words of the .for expression to allow for spaces in values. Without this change, the following valid call broke due to parsing of .MAKEFLAGS in bsd.symver.mk: cd /usr/src/lib/libc && make -n DEBUG_FLAGS="-DFOO -DBAR" Spotted by: Igor Sysoev Submitted by: Maxim Dounin, ru MFC after: 1 week END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-24T13:09:55.000000Z K 7 svn:log V 235 MFC rev. 1.210 of sys/kern/kern_conf.c rev. 1.236 of sys/sys/conf.h Fix two races in the handling of the d_gianttrick for the D_NEEDGIANT drivers. Do not free the memory allocated for the gianttrick cdevsw while holding the dev_mtx. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-24T13:12:43.000000Z K 7 svn:log V 168 MFC rev. 1.24 of sys/fs/devfs/devfs_rule.c rev 1.218 of sys/vm/vm_mmap.c Do not dereference cdev->si_cdevsw, use the dev_refthread() to properly obtain the reference. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2008-03-24T13:49:17.000000Z K 7 svn:log V 2166 Introduce support for zero-copy BPF buffering, which reduces the overhead of packet capture by allowing a user process to directly "loan" buffer memory to the kernel rather than using read(2) to explicitly copy data from kernel address space. The user process will issue new BPF ioctls to set the shared memory buffer mode and provide pointers to buffers and their size. The kernel then wires and maps the pages into kernel address space using sf_buf(9), which on supporting architectures will use the direct map region. The current "buffered" access mode remains the default, and support for zero-copy buffers must, for the time being, be explicitly enabled using a sysctl for the kernel to accept requests to use it. The kernel and user process synchronize use of the buffers with atomic operations, avoiding the need for system calls under load; the user process may use select()/poll()/kqueue() to manage blocking while waiting for network data if the user process is able to consume data faster than the kernel generates it. Patchs to libpcap are available to allow libpcap applications to transparently take advantage of this support. Detailed information on the new API may be found in bpf(4), including specific atomic operations and memory barriers required to synchronize buffer use safely. These changes modify the base BPF implementation to (roughly) abstrac the current buffer model, allowing the new shared memory model to be added, and add new monitoring statistics for netstat to print. The implementation, with the exception of some monitoring hanges that break the netstat monitoring ABI for BPF, will be MFC'd. Zerocopy bpf buffers are still considered experimental are disabled by default. To experiment with this new facility, adjust the net.bpf.zerocopy_enable sysctl variable to 1. Changes to libpcap will be made available as a patch for the time being, and further refinements to the implementation are expected. Sponsored by: Seccuris Inc. In collaboration with: rwatson Tested by: pwood, gallatin MFC after: 4 months [1] [1] Certain portions will probably not be MFCed, specifically things that can break the monitoring ABI. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2008-03-24T13:50:39.000000Z K 7 svn:log V 130 Catch netstat up for the new bpf stats structures. Print 64 bit values properly. Sponsored by: Seccuris Inc MFC after: 4 months END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-24T14:28:33.000000Z K 7 svn:log V 252 MFC to RELENG_7: Make sysctl_kern_arnd return a random buffer instead of a random long, as it is expected by userland (stack protector guard setup for example). PR: 119129 Approved by: rwatson (mentor) MFC after: 1 month END K 10 svn:author V 4 csjp K 8 svn:date V 27 2008-03-24T14:30:01.000000Z K 7 svn:log V 103 Bump the FreeBSD version for zerocopy bpf buffers and changes to the bpf(4) monitoring ABI/structures. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-24T14:46:40.000000Z K 7 svn:log V 222 Don't remove usr/include/fs/nwfs and usr/include/netncp, as they are always recreated during installworld (they are in BSD.include.dist). Reported by: Pawel Worach Approved by: rwatson (mentor) X-MFC: with revision 1.13 END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-24T14:55:09.000000Z K 7 svn:log V 236 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. Submitted by: sakane via gnn MFC after: 3 days END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-24T15:01:20.000000Z K 7 svn:log V 112 Fix a bug that when getting/dumping the soft lifetime we reported the hard lifetime instead. MFC after: 3 days END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-03-24T16:25:26.000000Z K 7 svn:log V 267 MFC: Separate SDP parameters data structures for the BNEP based profiles. Generalize Service Availability SDP parameter creation. Add mandatory "security description" SDP parameter to the PANU profile Pointed-out by: Iain Hibbert < plunky at rya-online dot net > END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-03-24T16:26:38.000000Z K 7 svn:log V 267 MFC: Separate SDP parameters data structures for the BNEP based profiles. Generalize Service Availability SDP parameter creation. Add mandatory "security description" SDP parameter to the PANU profile Pointed-out by: Iain Hibbert < plunky at rya-online dot net > END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-24T16:38:47.000000Z K 7 svn:log V 348 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 4 jkim K 8 svn:date V 27 2008-03-24T17:16:25.000000Z K 7 svn:log V 206 MFC: 1.80-1.83 Prefer clock_gettime(2) over gettimeofday(2) and use CLOCK_MONOTONIC_FAST. It is only used to track elapsed time and it does not have to be precise. Fix compiler warnings and style(9) bugs. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-03-24T17:23:25.000000Z K 7 svn:log V 271 MFC: 1.80-1.83 - Prefer clock_gettime(2) over gettimeofday(2) and use CLOCK_MONOTONIC as it is only used to track elapsed time.[1] - Fix compiler warnings and style(9) bugs. [1] CLOCK_MONOTONIC is used on here because CLOCK_MONOTONIC_FAST is unimplemented on RELENG_6. END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-03-24T17:23:53.000000Z K 7 svn:log V 121 Split the registers into two halves in preparation for SBus support. Obtained from: NetBSD (loosely) MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-03-24T17:38:24.000000Z K 7 svn:log V 359 - Const'ify the dc_devs array. - Correct the maxsize parameter when creating the mbufs busdma tag to reflect the actual requirement of dc(4). - Move the KASSERT in dc_newbuf() to the right spot. - Also convert the TX side to take advantage of bus_dmamap_load_mbuf_sg(9). - Move the comment regarding dc_start_locked() to the right spot. MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-03-24T17:49:06.000000Z K 7 svn:log V 556 - Take advantage of bus_dmamap_load_mbuf_sg(9). - Take advantage of m_collapse(9). - Sync with other NIC drivers and prepend a TX mbuf if the first attempt to load it fails with an error other than EFBIG and stop trying instead of freeing it and keeping on trying to enqueue more mbufs. Also ensure the driver queue isn't empty before trying to enqueue mbufs in order to reduce locking operations. - In xl_ifmedia_upd() add a missing XL_UNLOCK(). [1] - Const'ify the xl_devs array. - Remove an outdated comment. PR: 113406 [1] MFC after: 1 month END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-03-24T17:49:34.000000Z K 7 svn:log V 573 MFC: 1.24-1.26 - Check device masks and bypass printing headers if capable device does not exist. /etc/rc.d/mixer tried to restore non-existent recording source because /var/var/db/mixer*-state contains '=rec' for example. - Remove hardcoded mixer2 and mixer3 and do the right thing. - Replace getopt(3) with hand-rolled option parser. It was not able to handle 'mixer -rec mic' although it is a valid command. - Make '-s' and '-S' mutualy exclusive as mixer(8) says. - Do not re-read recording source unless it has been modified. - Clean up code and fix style(9) nits. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-03-24T17:50:24.000000Z K 7 svn:log V 50 MFC: 1.26 Update list of possible mixer devices. END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-03-24T17:57:01.000000Z K 7 svn:log V 189 - Const'ify the bus_stream_asi and bus_type_asi arrays. - Replace hard-coded functions names missed in bus_machdep.c rev. 1.44 with __func__. - Break some long lines. MFC after: 1 month END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T19:01:29.000000Z K 7 svn:log V 270 o add M_PROTO[678]; they'll be needed by net80211 vap code o sort mbuf flags together and extend values to 32 bits o write M_COPYFLAGS in terms of M_PROTOFLAGS o move M_COPYFLAGS and M_PROTOFLAGS up to be together with flag defs Reviewed by: rwatson MFC after: 3 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-24T19:23:33.000000Z K 7 svn:log V 196 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. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T19:46:53.000000Z K 7 svn:log V 32 Import of WPA supplicant 0.5.10 END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T19:46:53.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r177568, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T19:57:51.000000Z K 7 svn:log V 44 resolve merge conflicts MFC after: 3 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T19:59:12.000000Z K 7 svn:log V 18 update for 0.5.10 END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T20:13:41.000000Z K 7 svn:log V 92 add syslog support (committed on vendor branch as it's been sent upstream) PR: bin/116190 END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T20:13:41.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r177572, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T20:19:20.000000Z K 7 svn:log V 76 enable syslog support and add -s option to the man page MFC after: 3 weeks END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-24T20:24:04.000000Z K 7 svn:log V 43 change inp_wlock_assert to inp_lock_assert END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T21:06:16.000000Z K 7 svn:log V 25 Import of hostapd 0.5.10 END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T21:06:16.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r177576, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T21:08:25.000000Z K 7 svn:log V 44 resolve merge conflicts MFC after: 3 weeks END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-24T21:15:24.000000Z K 7 svn:log V 163 Merge kernel.h:1.138 from HEAD to RELENG_7: Add a new kernel startup event for DDB services, which will include DDB output capture, scripting, and textdumps. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T21:20:35.000000Z K 7 svn:log V 130 add support for driver-based RADIUS ACL's (committed on vendor branch as it's been sent upstream) Submitted by: Chris Zimmermann END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-24T21:20:35.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r177580, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-24T21:24:10.000000Z K 7 svn:log V 562 Merge files:1.1258, db_capture.c:1.1, db_command.c:1.74, db_input.c:1.37, db_main.c:1.6, db_output.c:1.38, ddb.h:1.44 from HEAD to RELENG_7: Add a new DDB(4) facility, output capture. Input and output from DDB may be captured to a memory buffer for later inspection using sysctl(8), or in the future, to a textdump. A new DDB command, "capture", is added, which accepts arguments "on", "off", "reset", and "status". A new DDB sysctl tree, debug.ddb.capture, is added, which can be used to resize the capture buffer and extract buffer contents. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-24T21:25:08.000000Z K 7 svn:log V 74 Merge ddb.4:1.43 from HEAD to RELENG_7: Document DDB capture facility. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-03-24T22:16:46.000000Z K 7 svn:log V 46 Remove redundant inclusions of net/bpfdesc.h. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-03-24T22:21:32.000000Z K 7 svn:log V 34 Fix build with option BPF_JITTER. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-03-24T22:23:22.000000Z K 7 svn:log V 63 Belatedly add BPF_JITTER in NOTES for supported architectures. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-24T22:55:22.000000Z K 7 svn:log V 662 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. Together with appropriate user-level support (by latest mpd5) it gives huge performance benefits for case of multiple active calls between two peers because of avoiding data duplication and extra socket processing. On my benchmarks I have got more then 10 times speedup for the 200 simultaneous PPTP calls between two peers. In conclusion, it allows now to build effective "clients <=> PAC <=> PNS" setups. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-24T22:57:55.000000Z K 7 svn:log V 53 Spell "blackhole" correctly and fix one grammar nit. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-03-25T02:44:06.000000Z K 7 svn:log V 39 Vendor import of tzdata version 2008b. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-03-25T02:44:07.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create tag 'tzdata2008b'. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-03-25T02:56:25.000000Z K 7 svn:log V 200 MFV of tzdata2008a Changes: - Calcutta -> Kolkata - Iraq DST changes - Syria DST changes - Saigon -> Ho_Chi_Minh - Cuba DST changes - New area America/Argentina/San_Luis Approved by: grog@ (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-03-25T03:04:54.000000Z K 7 svn:log V 31 Fix double patch on this file. END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-03-25T03:43:19.000000Z K 7 svn:log V 48 MFC of tzdata2008b Approved by: grog@ (mentor) END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-03-25T03:50:01.000000Z K 7 svn:log V 19 MFC of tzdata2008b END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2008-03-25T06:32:33.000000Z K 7 svn:log V 139 Add support for Marvell Libertas 88W8335 based PCI network adapters. Reviewed by: sam, many wireless people Approved by: thompsa (mentor) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-25T07:41:33.000000Z K 7 svn:log V 265 Check for a NULL free buffer pointer in BPF before invoking bpf_canfreebuf() in order to avoid potentially calling a non-inlinable but trivial function in zero-copy buffer mode for every packet received when we couldn't free the buffer anyway. MFC after: 4 months END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T09:11:53.000000Z K 7 svn:log V 100 Fixed type of the fourth argument of cpuset_{get,set}affinity(2) to be size_t. Prodded by: davidxu END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T09:14:17.000000Z K 7 svn:log V 64 Regen after changing prototypes of cpuset_{get,set}affinity(). END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T09:39:02.000000Z K 7 svn:log V 330 Replaced the misleading uses of a historical artefact M_TRYWAIT with M_WAIT. Removed dead code that assumed that M_TRYWAIT can return NULL; it's not true since the advent of MBUMA. Reviewed by: arch There are ongoing disputes as to whether we want to switch to directly using UMA flags M_WAITOK/M_NOWAIT for mbuf(9) allocation. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T09:48:10.000000Z K 7 svn:log V 91 Fixed mis-implementation of pthread_mutex_get{spin,yield}loops_np(). Reviewed by: davidxu END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-03-25T11:31:16.000000Z K 7 svn:log V 745 Adjust recognize-shared-libraries regex to avoid matching symlinks to shared libraries. This fixes a problem which resulted in 6.x->7.x upgrades having the /usr/lib/libpthread.so -> libthr.so symlink missing; what happened was that the old libpthread.so symlink pointed to /lib/libpthread.so.2 -- which matched the "/lib/*\.so\.[0-9]+" regex -- but the new symlink didn't, so FreeBSD Update got confused and deleted the symlink as part of its "remove old shared libraries" step. To recreate the symlink (which I understand is necessary for ports like KDE to build) on a 7.x system which FreeBSD Update upgraded from 6.x: # ln -s libthr.so /usr/lib/libpthread.so Reported by: Dmitry RCL Rekman Help diagnosing bug from: kris MFC after: 7 days END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-03-25T12:13:12.000000Z K 7 svn:log V 305 Add /boot/device.hints to the list of files which will have local modifications merged. I had initially expected that people would put any local changes into /boot/loader.conf, but it turns out that editing /boot/device.hints is something many people do. Suggested by: Jaakko Heinonen MFC after: 1 week END K 10 svn:author V 3 ume K 8 svn:date V 27 2008-03-25T13:14:29.000000Z K 7 svn:log V 92 MFC 1.31: Change .8s port name restriction to .15s. This change corresponds to inet.c 1.13. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T13:20:52.000000Z K 7 svn:log V 41 Fix build. Reported by: ache, tinderbox END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T13:28:12.000000Z K 7 svn:log V 30 Compile libthr with warnings. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-25T15:16:19.000000Z K 7 svn:log V 136 Add a missing ;. PR: misc/122069 Submitted by: taku@tekipaki.jp MFC after: 3 days Approved by: imp (mentor, implicit trivial change). END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T15:33:00.000000Z K 7 svn:log V 80 Compile libthr with warnings. (Somehow this file sneaked from initial commit.) END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T15:44:49.000000Z K 7 svn:log V 20 s/M_TRYWAIT/M_WAIT/ END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-25T15:47:22.000000Z K 7 svn:log V 83 Add code that should catch the most common case when date/time is set incorrectly. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-25T18:09:20.000000Z K 7 svn:log V 19 MFC of tzdata2008b END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-25T18:34:04.000000Z K 7 svn:log V 128 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 3 jhb K 8 svn:date V 27 2008-03-25T19:34:47.000000Z K 7 svn:log V 135 Add entries for the cpuset-related system calls. The existing system calls can be used on little endian systems. Pointy hat to: jeff END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-25T19:35:34.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-25T20:32:19.000000Z K 7 svn:log V 65 Bring this manpage more in line with other wlan driver manpages. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T20:36:32.000000Z K 7 svn:log V 67 enable dynamic addition of "show all" commands MFC after: 3 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T21:22:43.000000Z K 7 svn:log V 158 IFM_IEEE80211_IBSSMASTER hasn't been used in many years; replace it with IFM_IEEE80211_WDS which will be used by the forthcoming vap code MFC after: 3 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T21:23:32.000000Z K 7 svn:log V 145 expose if_purgemaddrs, it will be used by the vap code unless someone redesigns the mcast support code in the next few weeks MFC after: 3 weeks END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T21:30:01.000000Z K 7 svn:log V 81 add __noinline Submitted by: imp Reviewed by: kan (long ago) MFC after: 3 weeks END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-25T21:39:06.000000Z K 7 svn:log V 203 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) Submitted by: Adaptec END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T21:47:03.000000Z K 7 svn:log V 129 fix botched merge of syslog support to the vendor branch; these files were off the branch so we need to pull the changes back up END K 10 svn:author V 6 scottl K 8 svn:date V 27 2008-03-25T22:38:45.000000Z K 7 svn:log V 429 Implement taskqueue_block() and taskqueue_unblock(). These functions allow the owner of a queue to block and unblock execution of the tasks in the queue while allowing tasks to continue to be added queue. Combining this with taskqueue_drain() allows a queue to be safely disabled. The unblock function may run (or schedule to run) the queue when it is called, just as calling taskqueue_enqueue() would. Reviewed by: jhb, sam END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T23:35:32.000000Z K 7 svn:log V 63 add some CDMA modems Submitted by: Jared Go MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-25T23:46:24.000000Z K 7 svn:log V 135 split out tty create part of ucom_attach into ucom_attach_tty so derived drivers can use it Submitted by: Jared Go MFC after: 3 weeks END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-26T03:12:00.000000Z K 7 svn:log V 57 Enable the automatic creation of superpage reservations. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-26T06:45:28.000000Z K 7 svn:log V 253 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 END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-26T07:32:08.000000Z K 7 svn:log V 163 Fix some "in in" typos in comments. PR: 121490 Submitted by: Anatoly Borodin Approved by: rwatson (mentor), jkoshy MFC after: 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T13:03:51.000000Z K 7 svn:log V 60 Remove old sysctl stuff which is long gone in other arch's. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T13:25:27.000000Z K 7 svn:log V 73 The RTC related pscnt and psdiv variables have no business being public. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-26T14:22:22.000000Z K 7 svn:log V 117 MFC aac.c r1.128: Change spelling and eliminate a typo in comments to reduce diffs with Adaptec's vendor driver. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-26T14:46:43.000000Z K 7 svn:log V 136 MFC aac.c r1.123: Dequeue all events in aac_release_command (instead of just one) so that there's no risk of them getting stranded. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T15:03:24.000000Z K 7 svn:log V 179 Rename timer0_max_count to i8254_max_count. Rename timer0_real_max_count to i8254_real_max_count and make it static. Rename timer_freq to i8254_freq and make it a loader tunable. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-26T15:09:15.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 3 dfr K 8 svn:date V 27 2008-03-26T15:23:12.000000Z K 7 svn:log V 2504 Add the new kernel-mode NFS Lock Manager. To use it instead of the user-mode lock manager, build a kernel with the NFSLOCKD option and add '-k' to 'rpc_lockd_flags' in rc.conf. Highlights include: * Thread-safe kernel RPC client - many threads can use the same RPC client handle safely with replies being de-multiplexed at the socket upcall (typically driven directly by the NIC interrupt) and handed off to whichever thread matches the reply. For UDP sockets, many RPC clients can share the same socket. This allows the use of a single privileged UDP port number to talk to an arbitrary number of remote hosts. * Single-threaded kernel RPC server. Adding support for multi-threaded server would be relatively straightforward and would follow approximately the Solaris KPI. A single thread should be sufficient for the NLM since it should rarely block in normal operation. * Kernel mode NLM server supporting cancel requests and granted callbacks. I've tested the NLM server reasonably extensively - it passes both my own tests and the NFS Connectathon locking tests running on Solaris, Mac OS X and Ubuntu Linux. * Userland NLM client supported. While the NLM server doesn't have support for the local NFS client's locking needs, it does have to field async replies and granted callbacks from remote NLMs that the local client has contacted. We relay these replies to the userland rpc.lockd over a local domain RPC socket. * Robust deadlock detection for the local lock manager. In particular it will detect deadlocks caused by a lock request that covers more than one blocking request. As required by the NLM protocol, all deadlock detection happens synchronously - a user is guaranteed that if a lock request isn't rejected immediately, the lock will eventually be granted. The old system allowed for a 'deferred deadlock' condition where a blocked lock request could wake up and find that some other deadlock-causing lock owner had beaten them to the lock. * Since both local and remote locks are managed by the same kernel locking code, local and remote processes can safely use file locks for mutual exclusion. Local processes have no fairness advantage compared to remote processes when contending to lock a region that has just been unlocked - the local lock manager enforces a strict first-come first-served model for both local and remote lockers. Sponsored by: Isilon Systems PR: 95247 107555 115524 116679 MFC after: 2 weeks END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-26T15:24:02.000000Z K 7 svn:log V 7 Regen. END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-26T15:28:56.000000Z K 7 svn:log V 71 Add \n to the end of a printf string and remove it from panic strings. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-26T15:39:44.000000Z K 7 svn:log V 50 Add some regression tests for posix record locks. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-26T15:41:00.000000Z K 7 svn:log V 77 Bump __FreeBSD_version for the addition of 'l_sysid' to the flock structure. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-26T15:42:22.000000Z K 7 svn:log V 33 Fix the __FreeBSD_version check. END K 10 svn:author V 4 lulf K 8 svn:date V 27 2008-03-26T16:28:50.000000Z K 7 svn:log V 109 MFC Revision 1.27 - Fix a memory leak when re-discovering a gvinum configuration. Approved by: pjd (mentor) END K 10 svn:author V 4 lulf K 8 svn:date V 27 2008-03-26T16:33:57.000000Z K 7 svn:log V 114 MFC Revision 1.27 - Fix a memory leak when re-discovering a gvinum configuration. Approved by: pjd (mentor) END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-26T16:53:27.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 phk K 8 svn:date V 27 2008-03-26T20:09:21.000000Z K 7 svn:log V 1607 The "free-lance" timer in the i8254 is only used for the speaker these days, so de-generalize the acquire_timer/release_timer api to just deal with speakers. The new (optional) MD functions are: timer_spkr_acquire() timer_spkr_release() and timer_spkr_setfreq() the last of which configures the timer to generate a tone of a given frequency, in Hz instead of 1/1193182th of seconds. Drop entirely timer2 on pc98, it is not used anywhere at all. Move sysbeep() to kern/tty_cons.c and use the timer_spkr*() if they exist, and do nothing otherwise. Remove prototypes and empty acquire-/release-timer() and sysbeep() functions from the non-beeping archs. This eliminate the need for the speaker driver to know about i8254frequency at all. In theory this makes the speaker driver MI, contingent on the timer_spkr_*() functions existing but the driver does not know this yet and still attaches to the ISA bus. Syscons is more tricky, in one function, sc_tone(), it knows the hz and things are just fine. In the other function, sc_bell() it seems to get the period from the KDMKTONE ioctl in terms if 1/1193182th second, so we hardcode the 1193182 and leave it at that. It's probably not important. Change a few other sysbeep() uses which obviously knew that the argument was in terms of i8254 frequency, and leave alone those that look like people thought sysbeep() took frequency in hertz. This eliminates the knowledge of i8254_freq from all but the actual clock.c code and the prof_machdep.c on amd64 and i386, where I think it would be smart to ask for help from the timecounters anyway [TBD]. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T20:26:12.000000Z K 7 svn:log V 32 Eliminate unnecessary #includes END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T20:28:52.000000Z K 7 svn:log V 47 Remove two variables which are handled MI now. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-26T20:48:07.000000Z K 7 svn:log V 584 Fix a nit with the 'nofoo' options where 'foo' is mapped to 'nonofoo' (such as 'atime' vs 'noatime'). The filesystems will always see either 'nofoo' or 'nonofoo', never plain 'foo'. As such, their list of valid mount options should include 'nofoo' instead of 'foo'. With this fix, you can do 'mount -u -o atime' on a FFS filesystem that isn't marked as noatime without getting an error. You can also update a noatime FFS filesystem mounted via mount(2) (e.g. 6.x /sbin/mount binary) to 'atime' using nmount(2) (e.g. 7.x /sbin/mount binary). MFC after: 1 week Reviewed by: crodig END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-26T21:19:03.000000Z K 7 svn:log V 40 Some minor code and math optimizations. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-26T21:29:13.000000Z K 7 svn:log V 260 Add a comment explaining that we initialize the 'a' buffer for zero-copy to the store buffer position on the BPF descriptor, and the 'b' buffer as the free buffer in order to fill them in the order documented in bpf(4). MFC after: 4 months Suggested by: csjp END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T21:33:41.000000Z K 7 svn:log V 204 Make speaker a pseudo device driver instead of attaching to a PnP id. If somebody cleaned this code up to proper style(9), it could become a great educational starting point for aspiring kernel hackers. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-03-26T21:54:48.000000Z K 7 svn:log V 232 Allow the characters .-+/ to appear in ppp profile names by folding them to _ when evaluating ppp__nat and ppp__mode. Document the per-profile variables. PR: conf/121452, conf/122127 (partial) MFC after: 1 week END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T22:02:51.000000Z K 7 svn:log V 209 Further cleanup of sound generation in syscons: The timer_spkr_*() functions take care of the enabling/disabling of the speaker. Test on the existence of timer_spkr_*() functions, rather than architectures. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-26T22:12:00.000000Z K 7 svn:log V 1188 Back in the good old days, PC's had random pieces of rock for frequency generation and what frequency the generated was anyones guess. In general the 32.768kHz RTC clock x-tal was the best, because that was a regular wrist-watch Xtal, whereas the X-tal generating the ISA bus frequency was much lower quality, often costing as much as several cents a piece, so it made good sense to check the ISA bus frequency against the RTC clock. The other relevant property of those machines, is that they typically had no more than 16MB RAM. These days, CPU chips croak if their clocks are not tightly within specs and all necessary frequencies are derived from the master crystal by means if PLL's. Considering that it takes on average 1.5 second to calibrate the frequency of the i8254 counter, that more likely than not, we will not actually use the result of the calibration, and as the final clincher, we seldom use the i8254 for anything besides BEL in syscons anyway, it has become time to drop the calibration code. If you need to tell the system what frequency your i8254 runs, you can do so from the loader using hw.i8254.freq or using the sysctl kern.timecounter.tc.i8254.frequency. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-26T23:02:17.000000Z K 7 svn:log V 66 Removed no longer existing CTL_MACHDEP defines. Inspired by: phk END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-26T23:43:11.000000Z K 7 svn:log V 90 Allow an application to define FOPEN_MAX (like we allow for OPEN_MAX in sys/syslimits.h). END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-03-27T01:23:59.000000Z K 7 svn:log V 166 Really, smb_iod_main() is not totally MPSAFE, so just acquire and drop Giant around it in order to assume MPSAFETY. Reported by: jhb, rwatson Pointy hat to: attilio END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-27T01:33:26.000000Z K 7 svn:log V 381 Allow awk (the one true one!) to handle 64 files instead of just 20. The current FreeBSD syscall generation script uses all 20 and I need another open file. It's a shame that something named as the 'one-true-awk' is so limited by an old denition like FOPEN_MAX when it could just make the file handling dynamic. This is done to avoid touching contrib sources on a vendor branch. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-27T01:53:44.000000Z K 7 svn:log V 185 Generate another function for the DTrace syscall provider to specify the syscall argument types. This code is only compiled into the systrace kernel modul and has no effect otherwise. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-03-27T01:55:06.000000Z K 7 svn:log V 36 Regen after makesyscalls.sh change. END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-03-27T03:30:14.000000Z K 7 svn:log V 151 Remove the C flag from slip.log. The current slip userbase does not justify the presence of a (usually empty) /var/log/slip.log on every FreeBSD box. END