Го177313 180 188 193 149 262 338 474 474 370 365 202 157 194 621 186 208 276 265 379 522 522 490 490 567 751 456 1209 1209 220 254 676 166 513 203 226 479 332 153 159 194 194 212 285 615 164 165 420 165 154 440 265 110 246 229 317 262 469 262 190 654 813 214 443 477 277 178 180 224 425 251 172 173 173 222 189 389 117 114 261 163 240 178 457 400 263 232 447 388 341 226 230 259 137 164 250 218 120 197 129 145 187 196 191 224 158 204 140 391 144 241 172 183 115 246 286 399 258 144 131 263 165 804 184 595 204 199 182 137 142 247 146 187 138 186 110 156 267 305 227 228 149 378 227 208 252 385 334 566 602 175 454 516 161 342 179 741 328 159 271 671 284 167 331 321 269 204 241 150 273 204 438 190 258 365 343 409 455 243 148 1279 198 K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-17T18:27:23.000000Z K 7 svn:log V 96 MFC: Calculate the number of pages the GATT spans instead of assuming it always spans 33 pages. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-17T18:27:28.000000Z K 7 svn:log V 97 Simplify fcntl(SVR4_F_DUP2FD) code now that FreeBSD has F_DUP2FD. Approved by: rwatson (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-17T18:31:06.000000Z K 7 svn:log V 57 MFC: Use cpu_feature2 and don't free anything in detach. END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-17T18:31:43.000000Z K 7 svn:log V 165 Initialize variable "now" before using it (it is used by the LEFTEARTH macro) PR: 121418 Submitted by: Atsuo Ohki Approved by: rwatson (mentor) MFC after: 1 month END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-17T18:57:07.000000Z K 7 svn:log V 241 MFC to RELENG_7 Remove a superfluous line in run_interrupt_driven_config_hooks(), next_entry is already initialized during TAILQ_FOREACH_SAFE(). PR: kern/119604 Approved by: rwatson (mentor) MFC after: 1 month END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-17T19:05:36.000000Z K 7 svn:log V 377 MFC to RELENG_7 - Make Disk_Names() behave as documented in libdisk(3): return an array of disk names, where you must free each pointer, as well as the array by hand. [1] - Destaticize "disks" in Disk_Names, it has no reasons to be static. PR: kern/96077 [1] PR: kern/114110 [1] MFC after: 1 month Approved by: rwatson (mentor) END K 10 svn:author V 7 antoine K 8 svn:date V 27 2008-03-17T19:08:32.000000Z K 7 svn:log V 377 MFC to RELENG_6 - Make Disk_Names() behave as documented in libdisk(3): return an array of disk names, where you must free each pointer, as well as the array by hand. [1] - Destaticize "disks" in Disk_Names, it has no reasons to be static. PR: kern/96077 [1] PR: kern/114110 [1] MFC after: 1 month Approved by: rwatson (mentor) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-03-17T19:57:21.000000Z K 7 svn:log V 274 MFC r1.71: Some PIIX4 chipsets need to be told to generate Stop Breaks by setting the appropriate bit in the DEVACTB register. This change allows the C2 state on those systems to work as expected. Reviewed by: njl Submitted by: Andriy Gapon END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-03-17T20:52:10.000000Z K 7 svn:log V 269 MFC: if_gem.c 1.46; if_gem_pci.c 1.24; if_gemreg.h 1.6; if_gemvar.h 1.16 o In preparation for basing a new driver on this one: - ANSIfy - try to bring closer to style(9) - remove banal comments. o Add my copyright for having done lots of fixes and improvements. END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-03-17T20:53:22.000000Z K 7 svn:log V 106 MFC: 1.46 - Fix some style bugs. - Replace hard-coded functions names missed in rev. 1.44 with __func__. END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-17T22:08:31.000000Z K 7 svn:log V 64 Don't abuse stack space while in kernel land, use heap instead. END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-17T22:16:19.000000Z K 7 svn:log V 100 MFC revision 1.25: Don't abuse stack space while in kernel land, use heap instead. PR: kern/121693 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-17T22:42:01.000000Z K 7 svn:log V 528 Simplify the interrupt code a bit: - Always include the ie_disable and ie_eoi methods in 'struct intr_event' and collapse down to one intr_event_create() routine. The disable and eoi hooks simply aren't used currently in the !INTR_FILTER case. - Expand 'disab' to 'disable' in a few places. - Use function casts for arm and i386:intr_eoi_src() instead of wrapper routines since to trim one extra indirection. Compiled on: {arm,amd64,i386,ia64,ppc,sparc64} x {FILTER, !FILTER} Tested on: {amd64,i386} x {FILTER, !FILTER} END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-17T23:02:56.000000Z K 7 svn:log V 93 Don't cache ptr to nat rule in case of tablearg argument. Bug spotted by: Dyadchenko Mihail END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-17T23:08:42.000000Z K 7 svn:log V 114 MFC revision 1.182: Don't cache ptr to nat rule in case of tablearg argument. Bug spotted by: Dyadchenko Mihail END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-03-18T00:26:01.000000Z K 7 svn:log V 182 MFC: Add structures to hold SDP parameters for the NAP, GN and PANU profiles. It should be mentioned that a somewhat similar patch was submitted by Rako < rako29 at gmail dot com > END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-03-18T00:29:26.000000Z K 7 svn:log V 171 MFC: Add support for the NAP, GN and PANU profiles to the sdpd(8). It should be mentioned that a somewhat similar patch was submitted by Rako < rako29 at gmail dot com > END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T00:42:26.000000Z K 7 svn:log V 282 MFC: if_npe.c 1.8, if_gem.c 1.47, if_msk.c 1.27, if_nfe.c 1.25, if_wpi.c 1.6 - Retire npe_defrag(), gem_defrag(), msk_defrag(), nfe_defrag(), and re_defrag() and use m_collapse() instead. - Replace a reference to ath_defrag() in a comment in if_wpi.c with m_collapse(). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T01:01:18.000000Z K 7 svn:log V 425 MFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_7 Workaround GMAC hardware hang of Yukon II on the receipt of pause frames. This bug seems to happen on certain hardware model/revision (e.g. 88E8053) but it's not identified which hardwares are affected. Revision 1.4 of if_mskreg.h was not enough to workaround the bug. To workaround it, inrease GMAC FIFO threshold by one FIFO word to flush received pause frames. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T01:27:15.000000Z K 7 svn:log V 425 MFC: if_msk.c 1.29, if_mskreg.h 1.12 to RELENG_6 Workaround GMAC hardware hang of Yukon II on the receipt of pause frames. This bug seems to happen on certain hardware model/revision (e.g. 88E8053) but it's not identified which hardwares are affected. Revision 1.4 of if_mskreg.h was not enough to workaround the bug. To workaround it, inrease GMAC FIFO threshold by one FIFO word to flush received pause frames. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T01:31:37.000000Z K 7 svn:log V 393 MFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_7 To overcome hardware checksum offload bug msk(4) used to compute TCP/UDP checksum in driver for short frames. For frames that requires hardware VLAN tag insertion, the checksum offload trick does not work due to changes of checksum offset in mbuf after the VLAN tag. Disable hardware checksum offload for VLAN interface to fix the bug. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T01:33:47.000000Z K 7 svn:log V 393 MFC: if_msk.c 1.30, if_msk.c 1.31 to RELENG_6 To overcome hardware checksum offload bug msk(4) used to compute TCP/UDP checksum in driver for short frames. For frames that requires hardware VLAN tag insertion, the checksum offload trick does not work due to changes of checksum offset in mbuf after the VLAN tag. Disable hardware checksum offload for VLAN interface to fix the bug. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T01:53:46.000000Z K 7 svn:log V 470 MFC if_lge.c rev 1.53 to RELENG_7: Plug memory leak in jumbo buffer allocation failure path. Patch in the PR was modified to check active jumbo buffers in use and other possible jumbo buffer leak. Jumbo buffer usage in lge(4) still wouldn't be reliable due to lack of driver lock in local jumbo buffer allocator. Either introduce a new lock to protect jumbo buffer or switch to UMA backed page allocator for jumbo frame is required. PR: kern/78072 END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T02:01:21.000000Z K 7 svn:log V 654 MFC if_lge.c rev 1.53 to RELENG_6: Plug memory leak in jumbo buffer allocation failure path. Patch in the PR was modified to check active jumbo buffers in use and other possible jumbo buffer leak. Jumbo buffer usage in lge(4) still wouldn't be reliable due to lack of driver lock in local jumbo buffer allocator. Either introduce a new lock to protect jumbo buffer or switch to UMA backed page allocator for jumbo frame is required. I've removed informational device_printf in lge_free_jumbo_mem as lge_dev member variable in softc does not exist on RELENG_6. if_printf can't be used as sc->lge_ifp could be NULL. PR: kern/78072 END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-18T02:06:51.000000Z K 7 svn:log V 359 - Copy signal mask out before THR_UNLOCK(), because THR_UNLOCK() may call _thr_suspend_check() which messes sigmask saved in thread structure. - Don't suspend a thread has force_exit set. - In pthread_exit(), if there is a suspension flag set, wake up waiting- thread after setting PS_DEAD, this causes waiting-thread to break loop in suspend_common(). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T02:11:40.000000Z K 7 svn:log V 1111 MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_7: Fix link state handling in bfe(4). o conversion to callout(9) API. o add a missing driver lock in bfe_ifmedia_sts(). o use our callout to drive watchdog timer. o restart Tx routine if pending queued packets are present in watchdog handler. o unarm watchdog timer only if there are no queued packets. o don't blindly reset phy and let phy driver handle link change request in bfe_init_locked(). o return the status of mii_mediachg() to caller in bfe_ifmedia_upd(). Previously it always returned 0 to caller. o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE in bfe_start_locked(). o implement miibus_statchg method that keeps track of current link state changes as well as negotiated speed/duplex/ flow-control configuration. Reprogram MAC to appropriate duplex state. Flow-control configuration was also implemented but commented out at the moment. The flow-control configuration will be enabled again after we have general flow-control framework in mii layer. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-18T02:17:36.000000Z K 7 svn:log V 1111 MFC if_bfe.c rev 1.44, if_bfereg.h rev 1.11 to RELENG_6: Fix link state handling in bfe(4). o conversion to callout(9) API. o add a missing driver lock in bfe_ifmedia_sts(). o use our callout to drive watchdog timer. o restart Tx routine if pending queued packets are present in watchdog handler. o unarm watchdog timer only if there are no queued packets. o don't blindly reset phy and let phy driver handle link change request in bfe_init_locked(). o return the status of mii_mediachg() to caller in bfe_ifmedia_upd(). Previously it always returned 0 to caller. o add check for IFF_DRV_RUNNING flag as well as IFF_DRV_OACTIVE in bfe_start_locked(). o implement miibus_statchg method that keeps track of current link state changes as well as negotiated speed/duplex/ flow-control configuration. Reprogram MAC to appropriate duplex state. Flow-control configuration was also implemented but commented out at the moment. The flow-control configuration will be enabled again after we have general flow-control framework in mii layer. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-18T03:55:12.000000Z K 7 svn:log V 125 - Integrate 1.133 vendor driver changes - update some copyrights - add improved support for delayed ack - fix issue with fec END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-03-18T06:18:49.000000Z K 7 svn:log V 156 Fix --fast-read by decrementing the remaining patterns to be matched, instead of incrementing. Pointy hat: me Thanks to: Tomasz Przygoda MFC after: 3 days END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-18T06:52:15.000000Z K 7 svn:log V 583 Almost seven years ago, vm/vm_page.c was split into three parts: vm/vm_contig.c, vm/vm_page.c, and vm/vm_pageq.c. Today, vm/vm_pageq.c has withered to the point that it contains only four short functions, two of which are only used by vm/vm_page.c. Since I can't foresee any reason for vm/vm_pageq.c to grow, it is time to fold the remaining contents of vm/vm_pageq.c back into vm/vm_page.c. Add some comments. Rename one of the functions, vm_pageq_enqueue(), that is now static within vm/vm_page.c to vm_page_enqueue(). Eliminate PQ_MAXCOUNT as it no longer serves any purpose. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2008-03-18T08:36:19.000000Z K 7 svn:log V 71 Fix the debugging output - the '0x' was duplicated from the %p option. END K 10 svn:author V 6 adrian K 8 svn:date V 27 2008-03-18T08:39:11.000000Z K 7 svn:log V 417 Sign-extend the 48-bit AMD PMC counter before treating it to a 64-bit 2's compliment. The 2's compliment transform is done so a "count down" sampling interval can be converted into a "count up" PMC value. a 2's complimented 'count down' value is written to the PMC counter; then the read-back counter is reverted via another 2's compliment. PR: kern/121660 Reviewed by: jkoshy Approved by: jkoshy MFC after: 1 week END K 10 svn:author V 4 lulf K 8 svn:date V 27 2008-03-18T08:48:51.000000Z K 7 svn:log V 109 - Fix a memory leak when re-discovering a gvinum configuration. Approved by: pjd (mentor) MFC after: 1 week END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-18T11:37:57.000000Z K 7 svn:log V 129 Merge TODO:1.4 from HEAD to RELENG_7: Remove namecache performance-tuning todo for Coda: we now use the FreeBSD name cache. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-18T11:40:49.000000Z K 7 svn:log V 382 Merge TODO:1.5, cnode.h:1.29, coda_kernel.h:1.8, coda_psdev.c:1.48 from HEAD to RELENG_7: Remove custom queue macros in Coda, replacing them with queue(9) tailq macros. The only semantic change was the need to add a vc_opened field to struct vcomm since we can no longer use the request queue returning to an uninitialized state to hold whether or not the device is open. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-18T11:45:30.000000Z K 7 svn:log V 235 Merge ffs_vfsops.c:1.337 from HEAD to RELENG_7: Move setting of MNTK_MPSAFE flag before UFS1 extended attribute auto-start so that the flag is set before we start performing I/O in the auto-start routine. Suggested by: kib END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-18T11:49:11.000000Z K 7 svn:log V 62 MFC: Fix panic on e.g. "kldload /dev/null". PR: kern/121427 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-18T13:31:45.000000Z K 7 svn:log V 67 Catch up to intr_event_create() prototype change. Pointy hat: jhb END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-18T14:39:05.000000Z K 7 svn:log V 100 MFC Revision 1.25: Don't abuse stack space while in kernel land, use heap instead. PR: kern/118432 END K 10 svn:author V 3 ume K 8 svn:date V 27 2008-03-18T15:04:05.000000Z K 7 svn:log V 101 Change .8s port name restriction to .15s. This change corresponds to inet.c 1.13. MFC after: 1 week END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-18T17:32:10.000000Z K 7 svn:log V 118 MFC: -Move ipfw's nat code into its own kld: ipfw_nat. -Raise a bit ipfw kld priority to avoid race on ipfw_nat load. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-18T17:33:03.000000Z K 7 svn:log V 192 MFC rev. 1.25 Add session ID hashing to speedup incoming packets dispatch in case of many connections working via the same tunnel. For example, in case of full "client <-> LAC <-> LNS" setup. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-03-18T17:39:42.000000Z K 7 svn:log V 522 MFC: Improve apply callback error reporting: Before this patch callback returned result of the last finished call chain. Now it returns last nonzero result from all call chain results in this request. As soon as this improvement gives reliable error reporting, it is now possible to remove dirty workaround in ng_socket, made to return ENOBUFS error statuses of request-response operations. That workaround was responsible for returning ENOBUFS errors to completely unrelated requests working at the same time on socket. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-18T17:43:36.000000Z K 7 svn:log V 72 MFC: Use real mode to invoke BIOS routines rather than virtual 86 mode. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-18T17:44:28.000000Z K 7 svn:log V 73 MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode. END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-03-18T18:21:39.000000Z K 7 svn:log V 326 Add PSM and Load Factor SDP parameters to the BNEP based profiles (NAP, GN and PANU). No reason to not to support them. Separate SDP parameters data structures for the BNEP based profiles. Generalize Service Availability SDP parameter creation. Requested by: Iain Hibbert < plunky at rya-online dot net > MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-18T18:28:09.000000Z K 7 svn:log V 73 MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-18T18:42:59.000000Z K 7 svn:log V 62 Don't call nfs_realign while holding locks. Reviewed by: kib END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2008-03-18T18:52:52.000000Z K 7 svn:log V 343 MFC if_wpi.c r1.9-10, if_wpireg.h r1.3, if_wpivar.h r1.2 Update wpi(4) with stability fixes - remove second taskqueue - busdma 16k alignment workaround - use busdma instead of external mbuf storage on Rx - locking fixes - net80211 state change fixes - improve scanning reliability - improve radio hw switch interaction - consolidate callouts END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-18T21:45:27.000000Z K 7 svn:log V 172 add reject+blackhole keywords to install entries with RTF_BLACKHOLE and RTF_REJECT, respectively PR: bin/79228 Submitted by: Dan Lukes MFC after: 2 weeks END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-18T23:32:45.000000Z K 7 svn:log V 17 Fix printf args. END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-03-19T00:06:30.000000Z K 7 svn:log V 152 Add mandatory "security description" SDP parameter to the PANU profile Pointed-out by: Iain Hibbert < plunky at rya-online dot net > MFC after: 3 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-03-19T01:11:39.000000Z K 7 svn:log V 132 MFC icsphy(4) to RELENG_6. icsphy(4) is required to support PHYs found on Xbox and VIA Rhine ethernet controllers. PR: kern/121459 END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2008-03-19T05:07:49.000000Z K 7 svn:log V 221 Clarify that the ELF library only sets the sh_entsize field of a section header entry if the application is not taking charge of ELF object layout. Update (c) years, and bump the manual page's date. Submitted by: kaiw END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2008-03-19T06:06:34.000000Z K 7 svn:log V 166 Ensure that the section header table is written out in an order consistent with the section indices returned to the application by elf_ndxscn(). Submitted by: kaiw END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T06:19:01.000000Z K 7 svn:log V 375 - Relax requirements for p_numthreads, p_threads, p_swtick, and p_nice from requiring the per-process spinlock to only requiring the process lock. - Reflect these changes in the proc.h documentation and consumers throughout the kernel. This is a substantial reduction in locking cost for these fields and was made possible by recent changes to threading support. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T06:20:21.000000Z K 7 svn:log V 168 - Restore the NULL check for td_cpuset. This can happen if a partially constructed thread was torn down as is the case when we fail to allocate a kernel stack. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-19T06:38:21.000000Z K 7 svn:log V 94 if passed thread pointer is equal to current thread, pass -1 to kernel to speed up searching. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T07:13:24.000000Z K 7 svn:log V 560 - Fix the last of the threading bugs that were introduced as far back as 1.38 in 2001. Break out of the FOREACH_THREAD_IN_PROC loop when we've discovered a new proc in the chain. - Increment i and check for maxlockdepth once per matching process not once per thread. This didn't properly terminate the loop before. - Fix a bug which has existed potentially since rev 1.1. waitblock->lf_next can be NULL when a thread has been woken-up but not yet scheduled. Check for this condition rather than blindly dereferencing. Found by: libMicro END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T07:22:07.000000Z K 7 svn:log V 719 - Add a facility similar to LOCK_PROFILING under SLEEPQUEUE_PROFILING. Keep a simple (wmesg, count) tuple in a hash to keep track of how many times we sleep at each wait message. We hash on message and not channel. No line number information is given as typically wait messages are not used in more than one place. Identical strings defined at different addresses will show up with seperate counters. - Use debug.sleepq.enable to enable, .reset to reset, and .stats dumps stats. - Do an unsynchronized check in sleepq_switch() prior to switching before calling sleepq_profile() which uses a global lock to synchronize the hash. Only sleeps which actually cause a context switch are counted. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-03-19T07:27:24.000000Z K 7 svn:log V 121 Oops. Use atomic_add_long() for atomic_fetchadd_long() (not atomic_add_int()) for sparc64 and sun4v. Noticed by: marius END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T07:33:16.000000Z K 7 svn:log V 349 - Remove stale comment. - In the last revision the code was changed to use maxfilesperproc rather than the per-process file limit to restrict the size of the poll array. This eliminates a significant source of process lock contention in multithreaded programs and is cheaper. This had been committed with the wrong batch of changes. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T07:35:14.000000Z K 7 svn:log V 383 - At the top of sleepq_catch_signals() lock the thread and check TDF_NEEDSIGCHK before doing the very expensive cursig() and related locking. NEEDSIGCHK is updated whenever our signal mask change or when a signal is delivered and should be sufficient to avoid the more expensive tests. This eliminates another source of PROC_LOCK contention in multithreaded programs. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-19T07:36:37.000000Z K 7 svn:log V 183 - Remove some dead code and comments related to KSE. - Don't set tdq_lowpri on every switch, it should be precisely maintained now. - Add some comments to sched_thread_priority(). END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-03-19T07:52:07.000000Z K 7 svn:log V 86 Remove extra uihold() call that accidentally sneak in during perforce change @125544. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-19T08:13:04.000000Z K 7 svn:log V 84 - Trim trailing spaces. - Use a different sigmask variable name to avoid confusing. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-19T09:33:07.000000Z K 7 svn:log V 127 don't reduce new thread's refcount if current thread can not set cpuset for it, since the new thread will reduce it by itself. END K 10 svn:author V 7 sobomax K 8 svn:date V 27 2008-03-19T09:58:25.000000Z K 7 svn:log V 328 Revert previous change - it appears that the limit I was hitting was a maxsockets limit, not maxfiles limit. The question remains why those limits are handled differently (with error code for maxfiles but with sleep for maxsokets), but those would be addressed in a separate commit if necessary. Requested by: rwhatson, jeff END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-03-19T10:56:51.000000Z K 7 svn:log V 158 Fix two bugs introduced in conversion to FreeBSD source tree: Off by one error in length calcuation of string records. Don't attempt to free stack variable. END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-19T11:28:13.000000Z K 7 svn:log V 79 Explicitate the newpacket size. Bug pointed out by: many Pointy hat to: me :( END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-19T11:29:26.000000Z K 7 svn:log V 80 MFC: explicitate newpacket size. Bug pointed out by: many Pointy hat to: me :( END K 10 svn:author V 4 piso K 8 svn:date V 27 2008-03-19T11:50:45.000000Z K 7 svn:log V 80 MFC: explicitate newpacket size. Bug pointed out by: many Pointy hat to: me :( END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-03-19T12:20:44.000000Z K 7 svn:log V 129 Add support for MACHINE_ARCH == mips, plus a few generic CPU types that will be supported in the forth coming FreeBSD/mips port. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-03-19T12:33:25.000000Z K 7 svn:log V 97 Fix a regression from the last revision - don't edit the ns_rec list while not holding the lock. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2008-03-19T12:44:23.000000Z K 7 svn:log V 296 A multicast test. The mctest program acts as both a source and a sink for multicast packets. Parameters for the interface, packet size, number of packets, and interpacket gap may be given on the command line. The sink records how many packets were missed, and at what time each packet arrived. END K 10 svn:author V 3 gnn K 8 svn:date V 27 2008-03-19T13:57:21.000000Z K 7 svn:log V 25 Add the correct license. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:44:48.000000Z K 7 svn:log V 19 Disable CVS build. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-03-19T14:44:55.000000Z K 7 svn:log V 168 Be sure to run rc.d/zfs before mountcritremote. This way we can for example configure devfs rules in /etc/devfs.conf for ZVOLs. Submitted by: Yarema END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:46:59.000000Z K 7 svn:log V 68 Import of 1.11 branch snapshot - using the 10-March-2008 code base. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:46:59.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r177391, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-03-19T14:47:00.000000Z K 7 svn:log V 82 This commit was manufactured by cvs2svn to create tag 'cvs-vendor-v1_11_20080310'. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:49:14.000000Z K 7 svn:log V 361 Merge rev 1.7: always upload new files, even if the timestamps match, rev 1.2: fix a problem sometimes seen when doing checkouts from a local repo and committing via remote cvs (a cvs -d override of the mismatched CVS/Root files was missing) into cvs 1.11-20080310. Note that rev 1.4 (default CVS_RSH to "ssh") will not be handled thru the vendor's config.h. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:50:22.000000Z K 7 svn:log V 304 Merge rev 1.21: change default from "rsh" to "ssh", rev 1.14: comprehensive -T CVS/Template support, rev 1.9: new long flag that causes cvs to ignore the CVSROOT/passwd file, rev 1.3: support for checking out from a read-only repository, rev. 1.2: support for local $Id$ keyword into cvs 1.11-20080310. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:55:59.000000Z K 7 svn:log V 167 Merge rev 1.3 (catch write-lock attempts immediately if running in read-only mode) & rev 1.2 (check out from read-only repository support) into version 1.11-20080310. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T14:56:41.000000Z K 7 svn:log V 136 Merge rev. 1.2 ("iso8601" option keyword) into version 1.11-20080310. Note the vendor added our '-n' feature to the offical code base. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:00:43.000000Z K 7 svn:log V 351 Merge rev 1.25 ("iso8601" option keyword), rev 1.17 (environtmental var "CVS_OPTIONS"), rev 1.14 ('-g' option to support shared-group access), rev 1.7 ('-R' read-only repository mode), rev 1.6 (support for checking out from a read-only repository), revs 1.4 & 1.5 ("tagexpand=") into version 1.11-20080310. Note the vendor accepted my "blame" alias. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:05:27.000000Z K 7 svn:log V 292 Merge rev 1.2 (extensions to the $CVSROOT/config syntax) and rev 1.4 (1.12 CVSROOT/config keyword expansion forward compatability) into version 1.11-20080310. Note the vendor has also added some forward compatability support. We should determine if we can live with just the vendor's method. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:06:50.000000Z K 7 svn:log V 245 Merge rev 1.28 (CAN-2005-0753 / FreeBSD-SA-05:05.cvs fixes), rev 1.27 ("iso8601" option keyword) revs 1.12/1.10/1.5/1.4 ($CVSHeader$ support) rev 1.2 ($CVS_LOCAL_BRANCH_NUM support for local commit feature of cvsup) into version 1.11-20080310. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:07:28.000000Z K 7 svn:log V 130 Merge rev 1.9 (update "-T" Template support) and rev 1.2 (-D'date' option with -r'branch' on update) into version 1.11-20080310. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:08:01.000000Z K 7 svn:log V 134 Merge rev 1.9 (new long flag to ignore the CVSROOT/passwd file) rev 1.2 (local tag/$Id$ keyword support) into version 1.11-20080310. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:10:20.000000Z K 7 svn:log V 163 Actually our rev 1.21(change default from "rsh" to "ssh") tweaking is moving to gnu/usr.bin/cvs/lib/config.h.proto. So the rev 1.21 no longer is applicable here. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:11:46.000000Z K 7 svn:log V 42 We use the stock versions of these files. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:15:26.000000Z K 7 svn:log V 69 Remove FreeBSD ID's so these are exact copies of the vendor sources. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:18:03.000000Z K 7 svn:log V 154 + Make it clear this was taken from the CVS 1.11 branch on 10-March-2008. + Depend on $CVSDIR/configure also - so things get properly remade if we tweak. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:19:42.000000Z K 7 svn:log V 122 Update for version 1.11-20080310. Make our changes to CVS_RSH & CVS_SSH settings here instead of contrib/cvs/src/cvs.h. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-03-19T15:21:44.000000Z K 7 svn:log V 25 Re-enable the CVS build. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-19T16:29:07.000000Z K 7 svn:log V 104 MFC: Add constants for the various fields in MTRR registers and apply style(9). No functional changes. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-19T16:31:32.000000Z K 7 svn:log V 37 MFC: Minimize diffs with i686_mem.c. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-19T16:33:58.000000Z K 7 svn:log V 53 MFC: Break up the logic in the mem_drvinit routines. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-19T16:37:24.000000Z K 7 svn:log V 95 MFC: Use a runtime mask for the PhysBase and PhysMask fields in variable sized MTRR registers. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-19T16:39:07.000000Z K 7 svn:log V 103 MFC: Relax the BIOS/OS sempahore handoff code to workaround different hard hangs on boot and shutdown. END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-03-19T20:24:35.000000Z K 7 svn:log V 99 Rename vm_pageq_requeue() to vm_page_requeue() on account of its recent migration to vm/vm_page.c. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-19T20:56:51.000000Z K 7 svn:log V 129 fix link management bug and conditionally allow the PHY to be kept on at all times for allowing non-conformant link state checks END K 10 svn:author V 6 julian K 8 svn:date V 27 2008-03-19T22:29:11.000000Z K 7 svn:log V 63 Replace really convoluted code that simplifies to "a ^= 0x01;" END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T01:30:49.000000Z K 7 svn:log V 110 - Add an option to compile in SCHED_STATS. - Add some more information about SLEEPQUEUE_PROFILING to NOTES. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T01:32:48.000000Z K 7 svn:log V 47 - Directly include opt_sched.h in sched_4bsd. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T02:14:02.000000Z K 7 svn:log V 297 - Move maybe_preempt() from kern_switch.c to sched_4bsd.c. This is function is only used by 4bsd. - Create a new runq_choose_fuzz() function rather than polluting runq_choose() with 4BSD specific code. - Move the fuzz sysctl into sched_4bsd.c - Remove some dead code from kern_switch.c END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-03-20T02:16:44.000000Z K 7 svn:log V 48 Virgin import (trimmed) of Bzip2 version 1.0.5. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-03-20T02:16:44.000000Z K 7 svn:log V 144 This commit was generated by cvs2svn to compensate for changes in r177420, which included commits to RCS files with non-trunk default branches. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-03-20T02:16:45.000000Z K 7 svn:log V 76 This commit was manufactured by cvs2svn to create tag 'bzip2-vendor-v1_0_5'. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-03-20T02:45:32.000000Z K 7 svn:log V 87 Update upgrade instructions to reflect 1.0.5 import; add FREEBSD-vendor metadata file. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-03-20T02:56:24.000000Z K 7 svn:log V 19 Resolve conflicts. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T03:05:17.000000Z K 7 svn:log V 152 - Don't call the empty sched_newproc() function. sched_newproc() already existed as sched_fork() which is a non empty function in both schedulers. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T03:06:33.000000Z K 7 svn:log V 192 - ULE and 4BSD share only one line of code from sched_newthread() so implement the required pieces in sched_fork_thread(). The td_sched pointer is already setup by thread_init anyway. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T03:07:57.000000Z K 7 svn:log V 305 - There is no sense in calling sched_newthread() at thread_init() and thread_fini(). The schedulers initialize themselves properly during sched_fork_thread() anyhow. fini is only called when we're returning the memory to the allocator which surely doesn't care what state the memory is in. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T03:09:15.000000Z K 7 svn:log V 164 - Remove the unused and redundant sched_newproc() function. - Remove the unused and redundant sched_newthread() which peaks into scheduler private structures. END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-20T03:09:59.000000Z K 7 svn:log V 52 add support for %b printing of request + xfer flags END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-20T03:11:07.000000Z K 7 svn:log V 39 add some debug msgs for tracking xfers END K 10 svn:author V 5 bland K 8 svn:date V 27 2008-03-20T04:10:52.000000Z K 7 svn:log V 168 Improve VT_WAITACTIVE semantics. - Wait for requested vty activation regardless its open state. - Remove redundant console cleanup. Approved by: kib MFC after: 1 week END K 10 svn:author V 5 kevlo K 8 svn:date V 27 2008-03-20T05:05:37.000000Z K 7 svn:log V 71 - Add the Corega CG-WLUSB2GL from NetBSD - Add the Corega CG-WLUSB2GPX END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-20T05:35:02.000000Z K 7 svn:log V 709 Don't re-initialize the interface if it is already running. This one line change makes the following code found in many ethernet device drivers (at least em, igb, ixgbe, and cxgb) gratuitous case SIOCSIFADDR: if (ifa->ifa_addr->sa_family == AF_INET) { /* * XXX * Since resetting hardware takes a very long time * and results in link renegotiation we only * initialize the hardware only when it is absolutely * required. */ ifp->if_flags |= IFF_UP; if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) { EM_CORE_LOCK(adapter); em_init_locked(adapter); EM_CORE_UNLOCK(adapter); } arp_ifinit(ifp, ifa); } else error = ether_ioctl(ifp, command, data); break; END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-20T05:45:27.000000Z K 7 svn:log V 90 forced commit to add that the fix in the previous commit was submitted by Devon H. O'Dell END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-20T05:51:16.000000Z K 7 svn:log V 501 - Restore runq to manipulating threads directly by putting runq links and rqindex back in struct thread. - Compile kern_switch.c independently again and stop #include'ing it from schedulers. - Remove the ts_thread backpointers and convert most code to go from struct thread to struct td_sched. - Cleanup the ts_flags #define garbage that was causing us to sometimes do things that expanded to td->td_sched->ts_thread->td_flags in 4BSD. - Export the kern.sched sysctl node in sysctl.h END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2008-03-20T06:19:34.000000Z K 7 svn:log V 109 back out last change as Sam believes that it breaks multicast - need to revisit after following up with pyun END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:04:48.000000Z K 7 svn:log V 101 MFC: rev. 1.62 In the description of the password field, -w was meant, not the nonexistant -p flag. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:09:07.000000Z K 7 svn:log V 85 MFC: rev. 1.29 Device counts are long gone, also remove the outdated FILES section. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:11:24.000000Z K 7 svn:log V 40 MFC: rev. 1.18 Fix AUTHORS formatting. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:15:03.000000Z K 7 svn:log V 45 MFC: rev. 1.23 Device counts are long gone. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-20T08:27:14.000000Z K 7 svn:log V 150 Make pthread_mutexattr_settype to return error number directly and conformant to POSIX specification. Bug reported by: modelnine at modelnine dt org END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:34:24.000000Z K 7 svn:log V 49 MFC: rev. 1.4 + 1.5 Correct bpf data-link type. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:46:27.000000Z K 7 svn:log V 90 Oops, add back the SYNOPSIS section header I accidently removed in the previous revision. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-03-20T08:59:04.000000Z K 7 svn:log V 41 MFC: Use a standard section 4 SYNOPSIS. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-20T09:35:44.000000Z K 7 svn:log V 90 Preserve application code's errno in rtld locking code, it attemps to keep any case safe. END K 10 svn:author V 3 des K 8 svn:date V 27 2008-03-20T09:53:45.000000Z K 7 svn:log V 18 Fix usage string. END K 10 svn:author V 3 des K 8 svn:date V 27 2008-03-20T09:55:27.000000Z K 7 svn:log V 64 s/wait/delta/ to avoid namespace collision. MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2008-03-20T10:15:45.000000Z K 7 svn:log V 174 "track" is a script I've used for ages to track the progress of a build. Unlike whereintheworld, it continuously monitors the log file; it also produses less verbose output. END K 10 svn:author V 3 mtm K 8 svn:date V 27 2008-03-20T10:53:18.000000Z K 7 svn:log V 212 MFC: The check for errors from the mount command did not work as intended because another command (echo) is executed between the mount command and the check. Reported by: Sergey Baturov END K 10 svn:author V 5 edwin K 8 svn:date V 27 2008-03-20T11:27:15.000000Z K 7 svn:log V 132 MFC of 1.48 Add projects-all collection to cvs-supfile PR: misc/121680 Submitted by: "Philip M. Gollucci" END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-03-20T11:47:08.000000Z K 7 svn:log V 136 pthread_mutexattr_destroy() was accidentally broken in last revision, unbreak it. We should really start compiling this with warnings. END K 10 svn:author V 3 sos K 8 svn:date V 27 2008-03-20T11:54:26.000000Z K 7 svn:log V 57 Fix Problem with Intel Matrix RAID. Fix from PR/121899. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-20T12:56:49.000000Z K 7 svn:log V 283 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 END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-20T13:07:25.000000Z K 7 svn:log V 134 MFC: Restore the original hid_is_collection() test and fallback to testing the interface class, subclass, and protocol if that fails. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-20T15:24:49.000000Z K 7 svn:log V 115 Fix the leak of the vmspace on the fork when the process limits are exceeded. Pointy hat to: me MFC after: 3 days END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-20T15:54:19.000000Z K 7 svn:log V 159 map device 5; the optional USB controller on Gateworks 2348 boards shows up here instead of the minipci slot at J4 Reviewed by: cognet, imp MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-20T16:04:13.000000Z K 7 svn:log V 292 Correct cache handling for xfer requests marked URQ_REQUEST: many (if not all uses) involve a read but usbd_start_transfer only does a PREWRITE; change this to BUS_DMASYNC_PREREAD | BUS_DMASYNC_PREWRITE as I'm not sure if any users do write+read. Reviewed by: cognet, imp MFC after: 1 month END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-20T16:08:42.000000Z K 7 svn:log V 241 Do not dereference cdev->si_cdevsw, use the dev_refthread() to properly obtain the reference. In particular, this fixes the panic reported in the PR. Remove the comments stating that this needs to be done. PR: kern/119422 MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-20T16:19:25.000000Z K 7 svn:log V 473 Workaround design botch in usb: blindly mixing bus_dma with PIO does not work on architectures with a write-back cache as the PIO writes end up in the cache which the sync(BUS_DMASYNC_POSTREAD) in usb_transfer_complete then discards; compensate in the xfer methods that do PIO by pushing the writes out of the cache before usb_transfer_complete is called. This fixes USB on xscale and likely other places. Sponsored by: hobnob Reviewed by: cognet, imp MFC after: 1 month END K 10 svn:author V 8 rdivacky K 8 svn:date V 27 2008-03-20T17:03:55.000000Z K 7 svn:log V 504 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 MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2008-03-20T17:44:58.000000Z K 7 svn:log V 83 add usb devices and more wlan stuff now that usb is functional MFC after: 1 month END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-20T17:59:19.000000Z K 7 svn:log V 358 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). END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-03-20T20:33:48.000000Z K 7 svn:log V 420 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 5 kmacy K 8 svn:date V 27 2008-03-20T20:52:37.000000Z K 7 svn:log V 67 pay attention to default cluster limits when sizing receive queues END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-20T21:13:14.000000Z K 7 svn:log V 247 MFC rev 1.45 agp_i810.c Add resume support to the agp_i810 family. Submitted by: "Robert Noland" Reviewed by: anholt Approved by: anholt, imp (mentor) MFC after: 1 week Approved by: imp (mentor) END K 10 svn:author V 3 sos K 8 svn:date V 27 2008-03-20T21:21:31.000000Z K 7 svn:log V 87 Unbreak the last commit. Changes from the PM WIP sneaked in and caused compile errors. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-20T21:24:32.000000Z K 7 svn:log V 648 Implement a BUS_BIND_INTR() method in the bus interface to bind an IRQ resource to a CPU. The default method is to pass the request up to the parent similar to BUS_CONFIG_INTR() so that all busses don't have to explicitly implement bus_bind_intr. A bus_bind_intr(9) wrapper routine similar to bus_setup/teardown_intr() is added for device drivers to use. Unbinding an interrupt is done by binding it to NOCPU. The IRQ resource must be allocated, but it can happen in any order with respect to bus_setup_intr(). Currently it is only supported on amd64 and i386 via nexus(4) methods that simply call the intr_bind() routine. Tested by: gallatin END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-20T21:53:27.000000Z K 7 svn:log V 235 Explicitly use spinlock_enter/exit rather than locking the icu_lock spin lock in the 8259A drivers as these drivers are only used on UP systems. This slightly reduces the penalty of an SMP kernel (such as GENERIC) on a UP x86 machine. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-20T22:36:49.000000Z K 7 svn:log V 65 The last commit was: Approved by: imp (mentor) Noticed by: rink END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-21T02:31:55.000000Z K 7 svn:log V 174 Resolve __error()'s PLT early so that it needs not to be resolved again, otherwise rwlock is recursivly called when signal happens and the __error was never resolved before. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-21T08:23:25.000000Z K 7 svn:log V 577 - Add a new td flag TDF_NEEDSUSPCHK that is set whenever a thread needs to enter thread_suspend_check(). - Set TDF_ASTPENDING along with TDF_NEEDSUSPCHK so we can move the thread_suspend_check() to ast() rather than userret(). - Check TDF_NEEDSUSPCHK in the sleepq_catch_signals() optimization so that we don't miss a suspend request. If this is set use the expensive signal path. - Set NEEDSUSPCHK when creating a new thread in thr in case the creating thread is due to be suspended as well but has not yet. Reviewed by: davidxu (Authored original patch) END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-03-21T10:00:05.000000Z K 7 svn:log V 190 - Reduce contention on the global bdonelock and bpinlock by using a pool mutex to protect these sleep/wakeup/counter races. This still is preferable to bloating each bio with a mtx. END K 10 svn:author V 4 kaiw K 8 svn:date V 27 2008-03-21T11:10:20.000000Z K 7 svn:log V 74 Add MLINK for archive_write_close. Approved by: jkoshy(mentor), kientzle END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-21T12:33:00.000000Z K 7 svn:log V 238 Reduce the acquisition of the vnode interlock in the ffs_read() and ffs_extread() when setting the IN_ACCESS flag by checking whether the IN_ACCESS is already set. The possible race there is admissible. Tested by: pho Submitted by: jeff END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-03-21T12:38:44.000000Z K 7 svn:log V 228 Reduce contention on the vnode interlock by not acquiring the BO_LOCK around the check for the BV_BKGRDINPROG in the brelse() and bqrelse(). See the comment for the explanation why it is safe. Tested by: pho Submitted by: jeff END K 10 svn:author V 6 syrinx K 8 svn:date V 27 2008-03-21T13:21:08.000000Z K 7 svn:log V 173 MFC: src/contrib/bsnmp/snmpd/main.c: Revision 1.1.1.14 Vendor patch: Prevent bsnmpd from dumping core when a module's init hook returns an error. Approved by: bz (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-21T15:23:24.000000Z K 7 svn:log V 111 MFC: Fix bug that prevented all CPUs that were marked as interrupt receivers from being used in certain cases. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-21T15:34:39.000000Z K 7 svn:log V 148 MFC: Add constants for the different memory types in the SMAP table and use the SMAP types and constants from in the boot code. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-03-21T15:40:33.000000Z K 7 svn:log V 58 MFC: Use the SMAP data from the loader if it is provided. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-21T16:38:42.000000Z K 7 svn:log V 178 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 END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-21T18:31:42.000000Z K 7 svn:log V 112 Add ';' missed with the SYSINIT changes. Not noticed by tb as TCP_SIGNATURE is not in LINT. MFC after: 1 month END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-03-21T20:16:25.000000Z K 7 svn:log V 343 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 3 imp K 8 svn:date V 27 2008-03-21T20:38:28.000000Z K 7 svn:log V 98 No need to be gratuitously style(9) non-compliant here, even though C++ lets me get away with it. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-21T23:00:13.000000Z K 7 svn:log V 166 MFC: rev. 1.115 ip6_output.c Replace the function name in two identical printfs by __func__, __LINE__ so we can distinguish them when people report a problem. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-21T23:03:32.000000Z K 7 svn:log V 273 MFC: rev. 1.8 ip6_ipsec.c, 1.4 ip6_ipsec.h #if 0 out a currently unsued (and incomplete) function: ip6_ipsec_mtu(). No need to compile 'dead' code. I am leaving it in because we will have to review the concept and should use the common function in various places. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-21T23:08:36.000000Z K 7 svn:log V 251 MFC: rev. 1.9 ip6_ipsec.c, 1.116 ip6_output.c Correct reference counting on the SP for outgoing IPv6 IPsec connections. PR: 121374 Reported by: Cyrus Rahman (crahman gmail.com) Tested by: Cyrus Rahman (crahman gmail.com) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-21T23:15:01.000000Z K 7 svn:log V 317 MFC: rev. 1.30 key.c Remove the "Fast " from the "Fast IPsec: Initialized Security Association Processing." printf. People kept asking questions about this after the IPsec shuffle. This still is the Fast IPsec implementation so no worries that it would be any slower now. There are no functional changes. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-03-21T23:22:07.000000Z K 7 svn:log V 363 MFC: rev. 1.9 ip_ipsec.c, 1.117 ip6_output.c, 1.18 ipsec_output.c Correct IPsec behaviour with a 'use' level in SP but no SA available. In that case return an continue processing the packet without IPsec. PR: 121384 Reported by: Cyrus Rahman (crahman gmail.com) Tested by: Cyrus Rahman (crahman gmail.com) [slightly older version] END K 10 svn:author V 8 ambrisko K 8 svn:date V 27 2008-03-22T02:57:49.000000Z K 7 svn:log V 145 Add in a compat. mode so you can either open the card's device node or directly open mfi0 and specify the card you want to talk to in the ioctl. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-03-22T05:40:44.000000Z K 7 svn:log V 52 Use linker set to collection all target operations. END K 10 svn:author V 6 alfred K 8 svn:date V 27 2008-03-22T07:29:45.000000Z K 7 svn:log V 1182 Fix a race where timeout/untimeout could cause crashes for Giant locked code. The bug: There exists a race condition for timeout/untimeout(9) due to the way that the softclock thread dequeues timeouts. The softclock thread sets the c_func and c_arg of the callout to NULL while holding the callout lock but not Giant. It then drops the callout lock and acquires Giant. It is at this point where untimeout(9) on another cpu/thread could be called. Since c_arg and c_func are cleared, untimeout(9) does not touch the callout and returns as if the callout is canceled. The softclock then tries to acquire Giant and likely blocks due to the other cpu/thread holding it. The other cpu/thread then likely deallocates the backing store that c_arg points to and finishes working and hence drops Giant. Softclock resumes and acquires giant and calls the function with the now free'd c_arg and we have corruption/crash. The fix: We need to track curr_callout even for timeout(9) (LOCAL_ALLOC) callouts. We need to free the callout after the softclock processes it to deal with the race here. Obtained from: Juniper Networks, iedowse Reviewed by: jhb, iedowse MFC After: 2 weeks. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-03-22T08:55:23.000000Z K 7 svn:log V 101 Merge in_pcb.c:1.200 from HEAD to RELENG_7: Fix indentation for a closing brace in in_pcballoc(). END