ƒ³7175526 138 10223 137 153 219 154 107 317 119 1716 141 144 796 144 202 257 218 190 211 283 334 212 233 206 272 522 150 197 242 287 171 138 3063 323 110 164 166 538 340 271 157 147 795 209 172 175 230 236 128 171 164 153 161 204 161 185 152 204 139 289 220 221 469 120 215 164 306 140 162 154 167 589 591 3093 274 167 276 179 199 247 169 234 257 728 752 145 251 1422 168 1546 340 147 118 126 175 97 104 335 123 156 195 204 143 129 157 373 546 429 302 155 836 216 165 382 156 306 108 556 275 198 152 218 246 246 187 201 218 252 252 1284 315 304 306 276 435 300 223 409 261 K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-01-21T06:38:23.000000Z K 7 svn:log V 10124 Overhaul sf(4) to make it run on all architectures and implement checksum offoload by downloading AIC-6915 firmware. Changes are o Header file cleanup. o Simplified probe logic. o s/u_int{8,16,32}_t/uint{8,16,32}_t/g o K&R -> ANSI C. o In register access function, added support both memory mapped and IO space register acccess. The function will dynamically detect which method would be choosed. o sf_setperf() was modified to support strict-alignment architectures. o Use SF_MII_DATAPORT instead of hardcoded value 0xffff. o Added link state/speed, duplex changes handling task q. The task q is also responsible for flow control settings. o Always hornor link up/down state reported by mii layers. The link state information is used in sf_start() to determine whether we got a valid link. o Added experimental flow-control setup. It was commented out but will be activated once we have flow-cotrol infrastructure in mii layer. o Simplify IFF_UP/IFCAP_POLLING and IFF_PROMISC handling logic. Rx filter always honors promiscuous mode. o Implemented suspend/resume methods. o Reorganized Rx filter routine so promiscuous mode changes doesn't require interface re-initialization. o Reimplemnted driver probe routine such that it looks for matching device from supported hardware list table. This change will help to add newer hardware revision to the driver. o Use ETHER_ADDR_LEN instead of hardcoded value. o Prefer memory space register mapping over I/O space as the hardware requires lots of register access to get various consumer/producer index. Failing to get memory space mapping, sf(4) falls back to I/O space mapping. Use of memory space register mapping requires somewhat large memory space(512K), though. o Switch to simpler bus_{read,write}_{1,2,4}. o Use PCIR_BAR macro to get BARs. o Program PCI cache line size if the cache line size was set to 0 and enable PCI MWI. o Add a new sysctl node 'dev.sf.N.stats' that shows various MAC counters for Rx/Tx statistics. o Add a sysctl node to configure interrupt moderation timer. The timer defers interrupts generation until time specified in timer control register is expired. The value in the timer register is in units of 102.4us. The allowable range for the timer is 0 - 31 (0 ~ 3.276ms). The default value is 1(102.4us). Users can change the timer value with dev.sf.N.int_mod sysctl(8) variable/loader(8) tunable. o bus_dma(9) conversion - Enable 64bit DMA addressing. - Enable 64bit descriptor format support. - Apply descriptor ring alignment requirements(256 bytes alignment). - Apply Rx buffer address alignment requirements(4 bytes alignment). - Apply 4GB boundary restrictions(Tx/Rx ring and its completion ring should live in the same 4GB address space.) - Set number of allowable number of DMA segments to 16. In fact, AIC-6915 doesn't have a limit for number of DMA segments but it would be waste of Tx descriptor resource if we allow more than 16. - Rx/Tx side bus_dmamap_load_mbuf_sg(9) support. - Added alignment fixup code for strict-alignment architectures. - Added endianness support code in Tx/Rx descriptor access. With these changes sf(4) should work on all platforms. o Don't set if_mtu in device attach, it's handled in ether_ifattach. o Use our own callout to drive watchdog timer. o Enable VLAN oversized frames and announce sf(4)'s VLAN capability to upper layer. o In sf_detach(), remove mtx_initialized KASSERT as it's not possible to get there without initialzing the mutex. Also mark that we're about to detaching so active bpf listeners do not panic the system. o To reduce PCI register access cycles, Rx completion ring is directly scanned instead of reading consumer/producer index registers. In theory, Tx completion ring also can be directly scanned. However the completion ring is composed of two types completion(1 for Tx done and 1 and DMA done). So reading producer index via register access would be more safer way to detect the ring wrap-around. o In sf_rxeof(), don't use m_devget(9) to align recevied frames. The alignment is required only for strict-alignment architectures and now the alignment is handled by sf_fixup_rx() if required. The removal of the copy operation in fast path should increase Rx performance a lot on non-strict-alignemnt architectures such as i386 and amd64. o In sf_newbuf(), don't set descriptor valid bit as sf(4) is programmed to run with normal mode. In normal mode, the valid bit have no meaning. The valid bit should be used only when the hardware uses polling(prefetch) mode. The end of descriptor queue bit could be used if needed, but sf(4) relys on auto-wrapping of hardware on 256 descriptor queue entries so both valid and descriptor end bit are not used anymore. o Don't disable generation of Tx DMA completion as said in datasheet and use the Tx DMA completion entry instead of relying on Tx done completion entry. Also added additional Tx completion entry type check in Tx completion handler. o Don't blindly reset watchdog timer in sf_txeof(). sf(4) now unarm the the watchdog only if there are no active Tx descriptors in Tx queue. o Don't manually update various counters in driver, instead, use built-in MAC statistic registers to update them. The statistic registers are updated in every second. o Modified Tx underrun handlers to increase the threshold value in units of 256 bytes. Previously it used to increase 16 bytes at a time which seems to take too long to stabalize whenever Tx underrun occurrs. o In interrupt handler, additional check for the interrupt is performed such that interrupts only for this device is allowed to process descriptor rings. Because reading SF_ISR register clears all interrtups, nuke writing to a SF_ISR register. o Tx underrun is abonormal condition and SF_ISR_ABNORMALINTR includes the interrupt. So there is no need to inspect the Tx underrun again in main interrupt loop. o Don't blindly reinitialize hardware for abnormal interrupt condition. sf(4) reintializes the hardware only when it encounters DMA error which requires an explicit hardware reinitialization. o Fix a long standing bug that incorrectly clears MAC statistic registers in sf_init_locked. o Added strict-alignment safe way of ethernet address reprogramming as IF_LLADDR may return unaligned address. o Move sf_reset() to sf_init_locked in order to always reset the hardware to a known state prior to configuring hardware. o Set default Rx DMA, Tx DMA paramters as shown in datasheet. o Enable PCI busmaster logic and autopadding for VLAN frames. o Rework sf_encap. - Previously sf(4) used to type 0 of Tx descriptor with padding enabled to store driver private data. Emebedding private data structures into descriptors is bad idea as the structure size would be different between 64bit and 32bit architectures. The type 0 descriptor allows fixed number of DMA segments in a descriptor format and provides relatively simple interface to manage multi-fragmented frames. However, it wastes lots of Tx descriptors as not all frames are fragmented as the number of allowable segments in a descriptor. - To overcome the limitation of type 0 descriptor, switch to type 2 descriptor which allows 64bit DMA addressing and can handle unliumited number of fragmented DMA segments. The drawback of type 2 descriptor is in its complexity in managing descriptors as driver should handle the end of Tx ring manually. - Manually set Tx desciptor queue end mark and record number of used descriptors to reclaim used descriptors in sf_txeof(). o Rework sf_start. - Honor link up/down state before attempting transmission. - Because sf(4) uses only one of two Tx queues, use low priority queue instead of high one. This will remove one shift operation in each Tx kick command. - Cache last produder index into softc such that subsequenet Tx operation doesn't need to access producer index register. o Rewrote sf_stats_update to include all available MAC statistic counters. o Employ AIC-6915 firmware from Adaptec and implement firmware download routine and TCP/UDP checksum offload. Partial checksum offload support was commented out due to the possibility of firmware bug in RxGFP. The firmware can strip VLAN tag in Rx path but the lack of firmware assistance of VLAN tag insertion in transmit side made it useless on FreeBSD. Unlike checksum offload, FreeBSD requires both Tx/Rx hardware VLAN assistance capability. The firmware may also detect wakeup frame and can wake system up from states other than D0. However, the lack of wakeup support form D3cold state keep me from adding WOL capability. Also detecting WOL frame requires firmware support but it's not yet known to me whether the firmware can process the WOL frame. o Changed *_ADDR_HIADDR to *_ADDR_HI to match other definitions of registers. o Added definitioan to interrupt moderation related constants. o Redefined SF_INTRS to include Tx DMA done and DMA errors. Removed Tx done as it's not needed anymore. o Added definition for Rx/Tx DMA high priority threshold. o Nuked unused marco SF_IDX_LO, SF_IDX_HI. o Added complete MAC statistic register definition. o Modified sf_stats structure to hold all MAC statistic regiters. o Nuke various driver private padding data in Tx/Rx descriptor definition. sf(4) no longer requires private padding. Also remove unused padding related definitions. This greatly simplifies descriptor manipulation on 64bit architectures. o Becase we no longer pad driver private data into descriptor, remove deprecated/not-applicable comments for padding. o Redefine Rx/Tx desciptor status. sf(4) doesn't use bit fileds anymore to support endianness. Tested by: bruffer (initial version) END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-01-21T06:47:20.000000Z K 7 svn:log V 41 sf(4) gained VLAN_MTU support. Touch Dd. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-01-21T06:51:25.000000Z K 7 svn:log V 57 Uncomment sf(4), sf(4) should work on all architectures. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-01-21T07:35:15.000000Z K 7 svn:log V 122 Document two new sysctl variables, dev.sf.%d.int_mod and dev.sf.%d.stats. Xref vlan(4). Touchd Dd. Reviewed by: brueffer END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T09:00:09.000000Z K 7 svn:log V 57 sf(4) should work on all archs now, remove it from here. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-01-21T09:51:28.000000Z K 7 svn:log V 11 Fix build. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-01-21T12:57:18.000000Z K 7 svn:log V 224 MFC rev. 1.156: In the rev. 1.153, the one place for converting minor number to unit was missed. As result, pty_create_slave() may index out of the names[] bounds, creating wrong slave tty names. Approved by: re (kensmith) END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-21T13:26:33.000000Z K 7 svn:log V 28 Add copyrights. PR: 119136 END K 10 svn:author V 3 bde K 8 svn:date V 27 2008-01-21T13:46:21.000000Z K 7 svn:log V 1622 Fix cutoffs. This is just a cleanup and an optimization for unusual cases which are used mainly by regression tests. As usual, the cutoff for tiny args was not correctly translated to float precision. It was 2**-54 but 2**-24 works. It must be about 2**-precision, since the error from approximating log(1+x) by x is about the same as |x|. Exhaustive testing shows that 2**-24 gives perfect rounding in round-to-nearest mode. Similarly for the cutoff for being small, except this is not used by so many other functions. It was 2**-29 but 2**-15 works. It must be a bit smaller than sqrt(2**-precision), since the error from approximating log(1+x) by x-x*x/2 is about the same as x*x. Exhaustive testing shows that 2**-15 gives a maximum error of 0.5052 ulps in round-to-nearest-mode. The algorithm for the general case is only good for 0.8388 ulps, so this is sufficient (but it loses slightly on i386 -- then extra precision gives 0.5032 ulps for the general case). While investigating this, I noticed that optimizing the usual case by falling into a middle case involving a simple polynomial evaluation (return x-x*x/2 instead of x here) is not such a good idea since it gives an enormous pessimization of tinier args on machines for which denormals are slow. Float x*x/2 is denormal when |x| ~< 2**-64 and x*x/2 is evaluated in float precision, so it can easily be denormal for normal x. This is even more interesting for general polynomial evaluations. Multiplying out large powers of x is normally a good optimization since it reduces dependencies, but it creates denormals starting with quite large x. END K 10 svn:author V 3 des K 8 svn:date V 27 2008-01-21T16:12:05.000000Z K 7 svn:log V 49 Final part of the OpenPAM MFC which CVS botched. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-01-21T17:17:00.000000Z K 7 svn:log V 51 MFC: 1.201 Fix mbuf pool watermark configuration. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-01-21T17:25:48.000000Z K 7 svn:log V 698 Adjust paths for EDITOR and PAGER environment variables in the fixit shell. This would break them for floppy based fixit mode which still seems to use /stand except that vi(1) and more(1) don't exist in /stand on the fixit floppy so it really doesn't matter what these settings are there. These paths work for CD-based fixit mode. This is just "temporary" and on its way to 7.0-REL. I'm too chicken to make what is probably the correct adjustment this close to release. It seems /mnt2 is just a symbolic link, and stuff really gets mounted as /dist. Adjusting paths to that for 8.X is probably the right thing to do and I'll try that after 7.0 is done. Noticed by: gallatin MFC after: 1 day END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-01-21T18:04:41.000000Z K 7 svn:log V 51 MFC: 1.201 Fix mbuf pool watermark configuration. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-01-21T18:44:55.000000Z K 7 svn:log V 106 Remove 5.x and 6.x cruft - source upgrades to RELENG_8 from versions prior to RELENG_7 are not supported. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T18:47:37.000000Z K 7 svn:log V 159 MFC: rev. 1.12 Remove files conditional on the obsolete MK_FORTRAN knob. They are already listed in ObsoleteFiles.inc anyway. Approved by: rwatson (mentor) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T18:49:04.000000Z K 7 svn:log V 120 MFC: rev. 1.592 Remove WITHOUT_FORTRAN from the XMAKE target, it doesn't exist anymore. Approved by: rwatson (mentor) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T18:50:17.000000Z K 7 svn:log V 93 MFC: rev. 1.72 Remove remnants of old *_FORTRAN build flags. Approved by: rwatson (mentor) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T19:52:15.000000Z K 7 svn:log V 113 Document the 'maintainer' target. PR: 119699 Submitted by: Warren Block MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-21T21:19:07.000000Z K 7 svn:log V 186 Replace references to VOP_LOCK() w/o LK_RETRY to vn_lock() with LK_RETRY, avoiding extra error handling, or in some cases, missing error handling. MFC after: 3 days Discussed with: kib END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-21T21:39:08.000000Z K 7 svn:log V 237 Put "coda_rdwr: Internally Opening" printf generated by in-kernel writes to files, such as ktrace output, under CODA_VERBOSE. Otherwise, each such call to VOP_WRITE() results in a kernel printf. MFC after: 3 days Obtained from: NetBSD END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T21:56:02.000000Z K 7 svn:log V 114 MFC: WITHOUT_FORTRAN was removed some time ago. Regen src.conf.5. Approved by: re (kensmith), rwatson (mentor) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T21:58:55.000000Z K 7 svn:log V 135 MFC: rev. 1.592 Remove WITHOUT_FORTRAN from the XMAKE target, it doesn't exist anymore. Approved by: re (kensmith), rwatson (mentor) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T22:00:25.000000Z K 7 svn:log V 108 MFC: rev. 1.72 Remove remnants of old *_FORTRAN build flags. Approved by: re (kensmith), rwatson (mentor) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-21T22:02:21.000000Z K 7 svn:log V 174 MFC: rev. 1.12 Remove files conditional on the obsolete MK_FORTRAN knob. They are already listed in ObsoleteFiles.inc anyway. Approved by: re (kensmith), rwatson (mentor) END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-01-21T22:04:37.000000Z K 7 svn:log V 429 Note change in the supported upgrade path. Prior to this 5.3-release and newer were supported upgrade paths to -current. After today's commits, 6.0-RELEASE and newer is supported for jumping to current. Make that clear in the UPDATING entry. For the pedants out there, upgrading from FreeBSD_version 600029 and newer should still work. This represents a point from May 29, 2005 forward. The prior date was October 16th 2004. END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-21T22:08:05.000000Z K 7 svn:log V 54 Note what options are only for DDS drives. PR: 35608 END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-21T23:09:18.000000Z K 7 svn:log V 100 Note that the punch_fw option does not work in securelevel 3 and Xref init.8. Bump .Dd. PR: 41807 END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-21T23:48:12.000000Z K 7 svn:log V 148 Introduce new encoding: "ASCII" It differs from default C/POSIX "NONE" mainly by stricter 8bit check for mb*towc*/wc*tomb* family, returning EILSEQ END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-01-21T23:54:57.000000Z K 7 svn:log V 191 During PREINIT, when giving the interface the address 0.0.0.0, do it as an alias to avoid distrubing other addresses. PR: bin/119255 Submitted by: Jaakko Heinonen END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-21T23:59:22.000000Z K 7 svn:log V 75 Add a rather basic man page for the coda kernel module. MFC after: 3 days END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-22T00:04:50.000000Z K 7 svn:log V 45 Understand newly introduced "ASCII" encoding END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-22T00:32:53.000000Z K 7 svn:log V 2965 Merge a variety of Coda fixes from HEAD to RELENG_7: coda_vnops.c:1.79: Borrow the VM object associated with an underlying cache vnode with the Coda vnode derived from it, in the style of nullfs. This allows files in the Coda file system to be memory-mapped, such as with execve(2) or mmap(2). Reported by: Rune coda_vnops.c:1.80: Lock the new directory vnode returned by coda_mkdir(), as this is required by FreeBSD's vnode locking protocol. coda_vnops.c:1.81: Use VOP_NULL rather than VOP_PANIC for Coda's vop_print routine, so as to avoid panicking in DDB show lockedvnods. cnode.h:1.22, coda_namecache.h:1.12, coda_psdev.c:1.40, coda_vfsops.c:1.70: Don't declare functions as extern. Move all extern variable definitions to associated .h files, move some extern variable definitions between include files to place them more appropriately. coda_vnops.c:1.82: Don't acquire an additional vnode reference to a vnode when it is opened and then release it when it is closed: we rely on the caller to keep the vnode around with a valid reference. This avoids vrele() destroying the vnode vop_close() is being called from during a call to vop_close(), and a crash due to lockmgr recursing the vnode lock when a Coda unmount occurs. coda_vfsops.c:1.71: Zero mi_rotovp and coda_ctlvp immediately after calling vrele() on the vnodes during coda_unmount() in order to detect errant use of them after the vnode references may no longer be valid. No need to clear the VV_ROOT flag on mi_rootvp flag (especially after the vnode reference is no longer valid) as this isn't done on other file systems. coda_vfsops.c: Rework coda_statfs(): no longer need to zero the statfs structure or fill out all fields, just fill out the ones the file system knows about. Among other things, this causes the outpuf of "mount" and "df" to make quite a bit more sense as /dev/cfs0 is specified as the mountfrom name. coda_vnops.c:1.83: Improve default vnode operation handling for Coda: - Don't specify vnode operations for mknod, lease, and advlock--let them fall through to vop_default. - Implement vop_default with &default_vnodeops, rather than with VOP_PANIC, so that unimplemented vnode operations are handled in more sensible ways than panicking, such as EOPNOTSUPP on ACL queries generated by bsdtar, or mknod. coda_namecache.h:1.13: Remove unused oldhash definition from Coda namecache. coda_vnops.c:1.84: Replace references to VOP_LOCK() w/o LK_RETRY to vn_lock() with LK_RETRY, avoiding extra error handling, or in some cases, missing error handling. Discussed with: kib coda_vnops.c:1.85: Put "coda_rdwr: Internally Opening" printf generated by in-kernel writes to files, such as ktrace output, under CODA_VERBOSE. Otherwise, each such call to VOP_WRITE() results in a kernel printf. Obtained from: NetBSD END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-01-22T07:23:44.000000Z K 7 svn:log V 225 Make -l always have the SUSv2 meaning of "check links." GNU tar changed -l to match SUSv2 a couple of years ago, so bsdtar no longer needs to pander to this particular GNUism. Thanks to: Debian maintainers MFC after: 7 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-22T07:40:21.000000Z K 7 svn:log V 13 Small fixes. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-01-22T07:40:22.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_7'. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-01-22T07:40:23.000000Z K 7 svn:log V 70 This commit was manufactured by cvs2svn to create branch 'RELENG_7_0'. END K 10 svn:author V 8 keramida K 8 svn:date V 27 2008-01-22T11:18:51.000000Z K 7 svn:log V 440 Repeat iostat header after rows-3 instead of a hardcoded 20. Use ioctl() to get the window size in iostat(8), and force a new header to be prepended to the output every time the current window size changes. Change the number of lines before each header to `rows - 3' when the terminal is resized, so that the full terminal length can be used for output lines. PR: bin/119705 Submitted by: keramida Approved by: maxim MFC after: 2 weeks END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-22T12:23:30.000000Z K 7 svn:log V 243 The config-recursive target is not run during the normal install process, move it down to where it belongs. Document 'all-depends-list' target and bump doc date. PR: 119519 Submitted by: Yuri Pankov Reviewed by: flz END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-22T15:05:22.000000Z K 7 svn:log V 174 Quick note on how to disable malloc debugging in the top entry in this file. PR: 83621 Submitted by: Scott Robbins (original version) Reviewed by: imp END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-22T15:56:48.000000Z K 7 svn:log V 61 Xref flopen.3 which references this manual page. PR: 112650 END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-22T15:57:57.000000Z K 7 svn:log V 56 Cleanup after last commit (remove undefined variables). END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-01-22T16:35:10.000000Z K 7 svn:log V 697 In 'fixit mode' running "fsck /dev/ad0s1a" typically complains that it can't find fsck_4.2bsd because there was no fstab file saying what filesystem type it is looking at so it got the filesystem type from the disk's label. When that fails admins who haven't been in this situation before are most likely to try "fsck -t ufs /dev/ad0s1a" because ufs is the type used in fstab files on working systems but that also fails complaining it can't find fsck_ufs. This just sets it up so /stand in the MFS image (/sbin is a symlink to /stand) includes hard links pointing fsck_4.2bsd and fsck_ufs to fsck_ffs which is what is present in /sbin on installed systems. Prodded by: obrien MFC after: 1 day END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-01-22T17:13:40.000000Z K 7 svn:log V 115 MFC: 1.194 Remove BCM5704S specific tunable (hw.bge.fake_autoneg) and auto-detect the condition. PR: kern/118308 END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-01-22T17:30:13.000000Z K 7 svn:log V 79 MFC: 1.201 Fix mbuf pool watermark configuration. Approved by: re (kensmith) END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-01-22T17:53:40.000000Z K 7 svn:log V 82 MFC: 1.26 Check battery presence first before trying to get battery information. END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-22T18:35:23.000000Z K 7 svn:log V 133 Document net.inet.tcp.syncookies_only using a description taken from tcp_syncache.c revision 1.99 of andre's commit log. PR: 107611 END K 10 svn:author V 4 mnag K 8 svn:date V 27 2008-01-22T18:58:48.000000Z K 7 svn:log V 142 - Add new NTP servers provided by NIC.br (http://www.ntp.br) - Remove nonfunctional servers PR: 119884 Approved by: simon MFC after: 3 days END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-22T19:16:09.000000Z K 7 svn:log V 32 Correct a typo. Noticed by: ru END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-22T19:58:30.000000Z K 7 svn:log V 75 Fix lock.9 manpage in order to recall lockmgr_disown() with 'man' command. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-22T20:02:24.000000Z K 7 svn:log V 68 BUF_REFCNT(9) function no more exists, so just axe out the manpage. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-22T20:08:09.000000Z K 7 svn:log V 57 Reflect BUF_REFCNT(9) removal. Pointed out by: brueffer END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-22T20:16:09.000000Z K 7 svn:log V 65 Add the newly added function lockmgr_recursed() to the manpages. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-22T21:26:35.000000Z K 7 svn:log V 107 Add manpages for BUF_RECURSED(9) and BUF_ISLOCKED(9) and connect them to the build. Reviewed by: brueffer END K 10 svn:author V 8 gallatin K 8 svn:date V 27 2008-01-22T22:04:31.000000Z K 7 svn:log V 64 Take advantage of the new physically contiguous 9K jumbos in 8. END K 10 svn:author V 4 bmah K 8 svn:date V 27 2008-01-22T23:05:26.000000Z K 7 svn:log V 92 New release notes: SA-08:01, SA-08:02. Bump copyright date. Approved by: re (implicitly) END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-23T00:04:18.000000Z K 7 svn:log V 59 Bump FreeBSD_version after adding "ASCII" encoding to libc END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-01-23T00:15:22.000000Z K 7 svn:log V 110 MFC: 1.26 Check battery presence first before trying to get battery information. Approved by: re (kensmith) END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-23T00:16:37.000000Z K 7 svn:log V 46 Conditionally add mklocale to bootstrap-tools END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-23T01:57:26.000000Z K 7 svn:log V 195 1) Add (void) cast to _none_init() (while I am here) 2) Fix longstanding segfault in mb/wc code when unknown encoding is specified in the locale file (mb/wc functions becomes NULL in that case). END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-23T02:17:27.000000Z K 7 svn:log V 126 Better fix for longstanding segfault. Don't touch current locale at all on unknown encoding. Previous fix resets it to POSIX. END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-23T03:05:35.000000Z K 7 svn:log V 127 Fix longstanding mb/wc functions segfault if error occurse inside __init(). Currently _EUC_init() only was affected. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-01-23T03:10:18.000000Z K 7 svn:log V 375 - sched_prio() should only adjust tdq_lowpri if the thread is running or on a run-queue. If the priority is numerically raised only change lowpri if we're certain it will be correct. Some slop is allowed however previously we could erroneously raise lowpri for an idle cpu that a thread had recently run on which lead to errors in load balancing decisions. END K 10 svn:author V 4 ache K 8 svn:date V 27 2008-01-23T04:25:10.000000Z K 7 svn:log V 27 "NONE" -> "ASCII" encoding END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-01-23T05:43:26.000000Z K 7 svn:log V 117 Properly pad symlinks when writing cpio "newc" format. Thanks to: Jesse Barker for reporting this. MFC after: 7 days END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-01-23T05:43:27.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_7'. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-01-23T05:47:08.000000Z K 7 svn:log V 208 Explain a subtle API change that was made recently. Even though I believe this is a good change, it does have the potential to break certain clients, so it's good to document the reasoning behind the change. END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2008-01-23T05:48:07.000000Z K 7 svn:log V 43 Track version # from the portable release. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2008-01-23T08:50:34.000000Z K 7 svn:log V 68 o Add boot, gdb, nfsserver and opencrypto dirs to CSCOPEDIRS; sort. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-01-23T11:47:09.000000Z K 7 svn:log V 62 Fix bundle xmit octets stats for packet-split operation mode. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-01-23T11:50:35.000000Z K 7 svn:log V 75 MFC rev 1.71 Fix bundle xmit octets stats for packet-split operation mode. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T12:07:17.000000Z K 7 svn:log V 492 Merge uipc_usrreq.c:1.214 from HEAD to RELENG_7: Move unlock of global UNIX domain socket lock slightly lower in unp_connect(): it is expected to return with the lock held, and two possible error paths otherwise returned with it unlocked. The fix committed here is slightly different from the patch in the PR, but along an alternative line suggested in the PR. PR: 119778 Submitted by: James Juran Approved by: re (gnn) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T12:08:12.000000Z K 7 svn:log V 494 Merge uipc_usrreq.c:1.214 from HEAD to RELENG_7_0: Move unlock of global UNIX domain socket lock slightly lower in unp_connect(): it is expected to return with the lock held, and two possible error paths otherwise returned with it unlocked. The fix committed here is slightly different from the patch in the PR, but along an alternative line suggested in the PR. PR: 119778 Submitted by: James Juran Approved by: re (gnn) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T12:09:43.000000Z K 7 svn:log V 2995 Merge a variety of Coda fixes from HEAD to RELENG_7_0: coda_vnops.c:1.79: Borrow the VM object associated with an underlying cache vnode with the Coda vnode derived from it, in the style of nullfs. This allows files in the Coda file system to be memory-mapped, such as with execve(2) or mmap(2). Reported by: Rune coda_vnops.c:1.80: Lock the new directory vnode returned by coda_mkdir(), as this is required by FreeBSD's vnode locking protocol. coda_vnops.c:1.81: Use VOP_NULL rather than VOP_PANIC for Coda's vop_print routine, so as to avoid panicking in DDB show lockedvnods. cnode.h:1.22, coda_namecache.h:1.12, coda_psdev.c:1.40, coda_vfsops.c:1.70: Don't declare functions as extern. Move all extern variable definitions to associated .h files, move some extern variable definitions between include files to place them more appropriately. coda_vnops.c:1.82: Don't acquire an additional vnode reference to a vnode when it is opened and then release it when it is closed: we rely on the caller to keep the vnode around with a valid reference. This avoids vrele() destroying the vnode vop_close() is being called from during a call to vop_close(), and a crash due to lockmgr recursing the vnode lock when a Coda unmount occurs. coda_vfsops.c:1.71: Zero mi_rotovp and coda_ctlvp immediately after calling vrele() on the vnodes during coda_unmount() in order to detect errant use of them after the vnode references may no longer be valid. No need to clear the VV_ROOT flag on mi_rootvp flag (especially after the vnode reference is no longer valid) as this isn't done on other file systems. coda_vfsops.c: Rework coda_statfs(): no longer need to zero the statfs structure or fill out all fields, just fill out the ones the file system knows about. Among other things, this causes the outpuf of "mount" and "df" to make quite a bit more sense as /dev/cfs0 is specified as the mountfrom name. coda_vnops.c:1.83: Improve default vnode operation handling for Coda: - Don't specify vnode operations for mknod, lease, and advlock--let them fall through to vop_default. - Implement vop_default with &default_vnodeops, rather than with VOP_PANIC, so that unimplemented vnode operations are handled in more sensible ways than panicking, such as EOPNOTSUPP on ACL queries generated by bsdtar, or mknod. coda_namecache.h:1.13: Remove unused oldhash definition from Coda namecache. coda_vnops.c:1.84: Replace references to VOP_LOCK() w/o LK_RETRY to vn_lock() with LK_RETRY, avoiding extra error handling, or in some cases, missing error handling. Discussed with: kib coda_vnops.c:1.85: Put "coda_rdwr: Internally Opening" printf generated by in-kernel writes to files, such as ktrace output, under CODA_VERBOSE. Otherwise, each such call to VOP_WRITE() results in a kernel printf. Obtained from: NetBSD Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T12:16:00.000000Z K 7 svn:log V 177 Merge revisions 1.1 and 1.2 of the coda.4 man page from HEAD to RELENG_7: Add a rather basic man page for the coda kernel module. Small fixes. Approved by: re (kensmith) END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-01-23T12:17:34.000000Z K 7 svn:log V 75 MFC rev 1.71 Fix bundle xmit octets stats for packet-split operation mode. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T12:22:11.000000Z K 7 svn:log V 179 Merge revisions 1.1 and 1.2 of the coda.4 man page from HEAD to RELENG_7_0: Add a rather basic man page for the coda kernel module. Small fixes. Approved by: re (kensmith) END K 10 svn:author V 7 chinsan K 8 svn:date V 27 2008-01-23T16:08:35.000000Z K 7 svn:log V 83 - Document firewall_nat_enable related settings. Tested by: AB MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-23T17:59:27.000000Z K 7 svn:log V 106 MFC: Update openpty(3) manpage for the recent pty fixes and remove some now-unused macros from grantpt.c. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-23T18:03:15.000000Z K 7 svn:log V 154 MFC: Fix some minor issues such as using read/modify/write for updating the configuration register and add a header file to hold HPET register constants. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-23T18:05:34.000000Z K 7 svn:log V 77 MFC: Don't cache the new-bus name of a PCI device in the PCI conf structure. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-01-23T20:05:22.000000Z K 7 svn:log V 136 MFC v1.12: Update EDITOR and PAGER environment variables so they are correct for the CDROM fixit environment. Noticed by: gallatin END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-01-23T20:06:27.000000Z K 7 svn:log V 159 MFC v1.12: Update EDITOR and PAGER environment variables so they are correct for the CDROM fixit environment. Noticed by: gallatin Approved by: re (bmah) END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-01-23T20:19:18.000000Z K 7 svn:log V 630 MFC: Add fsck_4.2bsd and fsck_ufs as hard links to fsck_ffs in /stand on the MFS image so that (for example) "fsck /dev/ad0s1a" will work. Without this you needed (for example) "fsck -t ffs /dev/ad0s1a" (or needed to run fsck_ffs instead of fsck). Versions being MFCed: 1.62 src/release/amd64/boot_crunch.conf 1.62 src/release/i386/boot_crunch.conf 1.12 src/release/ia64/boot_crunch.conf 1.63 src/release/pc98/boot_crunch.conf 1.5 src/release/powerpc/boot_crunch.conf 1.9 src/release/sparc64/boot_crunch.conf 1.2 src/release/sun4v/boot_crunch.conf END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2008-01-23T20:22:48.000000Z K 7 svn:log V 654 MFC: Add fsck_4.2bsd and fsck_ufs as hard links to fsck_ffs in /stand on the MFS image so that (for example) "fsck /dev/ad0s1a" will work. Without this you needed (for example) "fsck -t ffs /dev/ad0s1a" (or needed to run fsck_ffs instead of fsck). Versions being MFCed: 1.62 src/release/amd64/boot_crunch.conf 1.62 src/release/i386/boot_crunch.conf 1.12 src/release/ia64/boot_crunch.conf 1.63 src/release/pc98/boot_crunch.conf 1.5 src/release/powerpc/boot_crunch.conf 1.9 src/release/sparc64/boot_crunch.conf 1.2 src/release/sun4v/boot_crunch.conf Approved by: re (bmah) END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-01-23T20:37:44.000000Z K 7 svn:log V 49 MFen 1.1068.2.20.2.2 Approved by: re (kensmith) END K 10 svn:author V 3 des K 8 svn:date V 27 2008-01-23T20:57:59.000000Z K 7 svn:log V 158 Fix a regression introduced in rev 1.99: replace fclose(f) with a comment explaining why f cannot possibly be a valid FILE * at this point. MFC after: 1 day END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T21:15:51.000000Z K 7 svn:log V 1324 tcp_usrreq.c:1.313 removed tcbinfo locking from tcp_usr_accept(), which while in principle a good idea, opened us up to a race inherrent to the syncache's direct insertion of incoming TCP connections into the "completed connection" listen queue, as it transpires that the socket is inserted before the inpcb is fully filled in by syncache_expand(). The bug manifested with the occasional returning of 0.0.0.0:0 in the address returned by the accept() system call, which occurred if accept managed to execute tcp_usr_accept() before syncache_expand() had copied the endpoint addresses into inpcb connection state. Re-add tcbinfo locking around the address copyout, which has the effect of delaying the copy until syncache_expand() has finished running, as it is run while the tcbinfo lock is held. This is undesirable in that it increases contention on tcbinfo further, but a more significant change will be required to how the syncache inserts new sockets in order to fix this and keep more granular locking here. In particular, either more state needs to be passed into sonewconn() so that pru_attach() can fill in the fields *before* the socket is inserted, or the socket needs to be inserted in the incomplete connection queue until it is actually ready to be used. Reported by: glebius (and kris) Tested by: glebius END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-23T22:21:36.000000Z K 7 svn:log V 77 Support source upgrades from at least 6.0-RELEASE. Reviewed by: imp, obrien END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-23T23:40:22.000000Z K 7 svn:log V 1448 Merge tcp_usrreq.c:1.167 from HEAD to RELENG_7: tcp_usrreq.c:1.313 removed tcbinfo locking from tcp_usr_accept(), which while in principle a good idea, opened us up to a race inherrent to the syncache's direct insertion of incoming TCP connections into the "completed connection" listen queue, as it transpires that the socket is inserted before the inpcb is fully filled in by syncache_expand(). The bug manifested with the occasional returning of 0.0.0.0:0 in the address returned by the accept() system call, which occurred if accept managed to execute tcp_usr_accept() before syncache_expand() had copied the endpoint addresses into inpcb connection state. Re-add tcbinfo locking around the address copyout, which has the effect of delaying the copy until syncache_expand() has finished running, as it is run while the tcbinfo lock is held. This is undesirable in that it increases contention on tcbinfo further, but a more significant change will be required to how the syncache inserts new sockets in order to fix this and keep more granular locking here. In particular, either more state needs to be passed into sonewconn() so that pru_attach() can fill in the fields *before* the socket is inserted, or the socket needs to be inserted in the incomplete connection queue until it is actually ready to be used. Reported by: glebius (and kris) Tested by: glebius Approved: re (kensmith) END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-24T00:39:38.000000Z K 7 svn:log V 243 Add a diagnostic note about "transmission error ... tx underrun, increasing tx start threshold ..." Looking around on the mailing lists, and even having one of these cards I agree the messages should be documented. Bump doc date. PR: 88477 END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-24T05:48:55.000000Z K 7 svn:log V 50 MFC: rev. 1.65 Document the 'maintainer' target. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T07:03:21.000000Z K 7 svn:log V 27 Cosmetique: sort the list. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T07:04:12.000000Z K 7 svn:log V 35 Shorter equivalent of the command. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-01-24T07:11:29.000000Z K 7 svn:log V 78 MFC: rev. 1.65 Document the 'maintainer' target. Approved by: re (kensmith) END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T07:24:30.000000Z K 7 svn:log V 7 Style. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T07:25:13.000000Z K 7 svn:log V 13 Flag a hack. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2008-01-24T07:26:53.000000Z K 7 svn:log V 239 Many improvements that have been collected over time: - Improve error handling for load operations. - Fix a memory corruption bug when using certain linux management apps. - Allocate all commands up front to avoid OOM deadlocks later on. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T07:43:09.000000Z K 7 svn:log V 32 Remove one more alpha leftover. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T07:50:12.000000Z K 7 svn:log V 65 MFC: 1.79: Fix printing of the number of syncache entries added. END K 10 svn:author V 3 des K 8 svn:date V 27 2008-01-24T08:07:52.000000Z K 7 svn:log V 102 MFC: (1.101) replace fclose() with comment explaining why it's incorrect. Approved by: re (kensmith) END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-01-24T08:14:38.000000Z K 7 svn:log V 112 Differentiate between addifaddr and delifaddr for the privilege check. Reviewed by: rwatson MFC after: 2 weeks END K 10 svn:author V 3 des K 8 svn:date V 27 2008-01-24T08:17:17.000000Z K 7 svn:log V 51 MFC: namespace pollution cleanup, NO_PROXY support END K 10 svn:author V 3 des K 8 svn:date V 27 2008-01-24T08:17:50.000000Z K 7 svn:log V 37 MFC: document environment variables. END K 10 svn:author V 3 des K 8 svn:date V 27 2008-01-24T08:20:25.000000Z K 7 svn:log V 65 Previous commit included changes which are invalid for RELENG_6. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-01-24T08:25:59.000000Z K 7 svn:log V 281 Replace the last susers calls in netinet6/ with privilege checks. Introduce a new privilege allowing to set certain IP header options (hop-by-hop, routing headers). Leave a few comments to be addressed later. Reviewed by: rwatson (older version, before addressing his comments) END K 10 svn:author V 7 trhodes K 8 svn:date V 27 2008-01-24T09:46:05.000000Z K 7 svn:log V 449 MFC: : ru 2006-03-15 11:17:31 UTC : : FreeBSD src repository : : Modified files: : usr.sbin/ntp Makefile : usr.sbin/ntp/doc Makefile : Log: : If we don't want HTML docs, we might still want manpages. : If we don't want manpages, we might still want HTML docs. : : Revision Changes Path : 1.12 +0 -3 src/usr.sbin/ntp/Makefile : 1.12 +2 -0 src/usr.sbin/ntp/doc/Makefile PR: 118261 END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-01-24T11:21:54.000000Z K 7 svn:log V 336 Change type of kmem_used() and kmem_size() functions to uint64_t, so it doesn't overflow in arc.c in this check: if (kmem_used() > (kmem_size() * 4) / 5) return (1); With this bug ZFS almost doesn't cache. Only 32bit machines are affected that have vm.kmem_size set to values >=1GB. Reported by: David Taylor END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-01-24T11:24:16.000000Z K 7 svn:log V 209 - Reduce how much ZFS caches by default. This is another change to mitigate 'kmem_map too small panics'. - Print two warnings if there is not enough memory and not enough address space. - Improve comment. END K 10 svn:author V 5 marck K 8 svn:date V 27 2008-01-24T12:09:59.000000Z K 7 svn:log V 61 There is no PUC_FASTINTR option anymore. MFC after: 2 weeks END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-24T12:34:30.000000Z K 7 svn:log V 739 Cleanup lockmgr interface and exported KPI: - Remove the "thread" argument from the lockmgr() function as it is always curthread now - Axe lockcount() function as it is no longer used - Axe LOCKMGR_ASSERT() as it is bogus really and no currently used. Hopefully this will be soonly replaced by something suitable for it. - Remove the prototype for dumplockinfo() as the function is no longer present Addictionally: - Introduce a KASSERT() in lockstatus() in order to let it accept only curthread or NULL as they should only be passed - Do a little bit of style(9) cleanup on lockmgr.h KPI results heavilly broken by this change, so manpages and FreeBSD_version will be modified accordingly by further commits. Tested by: matteo END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-24T12:37:54.000000Z K 7 svn:log V 119 Bump __FreeBSD_version in order to signal: - lockmgr() prototype changing - lockcount() axing - LOCKMGR_ASSERT() axing END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T13:33:00.000000Z K 7 svn:log V 74 MFC: 1.95: Weed out a warning argument that isn't applicable to C++ code. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-01-24T13:48:20.000000Z K 7 svn:log V 290 - sched_4bsd is no longer a default system scheduler on some architectures, so call it "traditional" instead. - sched_ule is no longer buggy or experimental (according to rev. 1.7 of sched_ule(4)), so don't call it experimental (reported by a user on stable@). Reviewed by: rwatson END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-01-24T14:17:52.000000Z K 7 svn:log V 60 Reflect lockcount() axing and lockmgr() prototype changing. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-01-24T15:37:48.000000Z K 7 svn:log V 213 Do not dereference NULL scp in the case the screen is not opened. Instead, return ENXIO to the ioctl caller. Reported and tested by: Pawel Worach Discussed with: markus MFC after: 3 days END K 10 svn:author V 5 rafan K 8 svn:date V 27 2008-01-24T15:47:31.000000Z K 7 svn:log V 14 MFC file 4.21 END K 10 svn:author V 8 dumbbell K 8 svn:date V 27 2008-01-24T17:10:19.000000Z K 7 svn:log V 458 When asked to use kqueue, AIO stores its internal state in the `kn_sdata' member of the newly registered knote. The problem is that this member is overwritten by a call to kevent(2) with the EV_ADD flag, targetted at the same kevent/knote. For instance, a userland application may set the pointer to NULL, leading to a panic. A testcase was provided by the submitter. PR: kern/118911 Submitted by: MOROHOSHI Akihiko MFC after: 1 day END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-24T18:52:26.000000Z K 7 svn:log V 182 MFC: Fix some minor issues such as using read/modify/write for updating the configuration register and add a header file to hold HPET register constants. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-24T18:53:29.000000Z K 7 svn:log V 105 MFC: Don't cache the new-bus name of a PCI device in the PCI conf structure. Approved by: re (kensmith) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-24T19:11:13.000000Z K 7 svn:log V 60 Move the code for working with kld's out into its own file. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-24T19:42:17.000000Z K 7 svn:log V 125 MFC: Add support for booting from GPT-labeled disks from the BIOS. This includes /boot/pmbr, /boot/gptboot, and 'gpt boot'. END K 10 svn:author V 4 lulf K 8 svn:date V 27 2008-01-24T20:23:07.000000Z K 7 svn:log V 152 - Add geom_virstor to the module build. PR: kern/119902 Submitted by: Yoshihiro Ota Approved by: re (kensmith), pjd (mentor) END K 10 svn:author V 4 lulf K 8 svn:date V 27 2008-01-24T20:28:27.000000Z K 7 svn:log V 152 - Add geom_virstor to the module build. PR: kern/119902 Submitted by: Yoshihiro Ota Approved by: re (kensmith), pjd (mentor) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-24T21:37:18.000000Z K 7 svn:log V 95 MFC: Expose smoothed RTT and RTT variance measurements to userland via socket option TCP_INFO. END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-01-24T22:07:03.000000Z K 7 svn:log V 103 Once the release goes out, RELENG_7_* will need approval from so@. Approved by: core (two months ago) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-24T22:23:22.000000Z K 7 svn:log V 125 MFC: Add support for booting from GPT-labeled disks from the BIOS. This includes /boot/pmbr, /boot/gptboot, and 'gpt boot'. END K 10 svn:author V 4 mnag K 8 svn:date V 27 2008-01-25T01:53:08.000000Z K 7 svn:log V 158 MFC: 1.430 - Add new NTP servers provided by NIC.br (http://www.ntp.br) - Remove nonfunctional servers PR: 119884 Approved by: simon END K 10 svn:author V 4 mnag K 8 svn:date V 27 2008-01-25T02:00:24.000000Z K 7 svn:log V 158 MFC: 1.430 - Add new NTP servers provided by NIC.br (http://www.ntp.br) - Remove nonfunctional servers PR: 119884 Approved by: simon END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-25T02:09:38.000000Z K 7 svn:log V 1190 Fix a race in the sleepqueue timeout code that resulted in sleeps not being properly cancelled by a timeout. In general there is a race between a the sleepq timeout handler firing while the thread is still in the process of going to sleep. In 6.x with sched_lock, the race was largely protected by sched_lock. The only place it was "exposed" and had to be handled was while checking for any pending signals in sleepq_catch_signals(). With the thread lock changes, the thread lock is dropped in between sleepq_add() and sleepq_*wait*() opening up a new window for this race. Thus, if the timeout fired while the sleeping thread was in between sleepq_add() and sleepq_*wait*(), the thread would be marked as timed out, but the thread would not be dequeued and sleepq_switch() would still block the thread until it was awakened via some other means. In the case of pause(9) where there is no other wakeup, the thread would never be awakened. Fix this by teaching sleepq_switch() to check if the thread has had its sleep canceled before blocking by checking the TDF_TIMEOUT flag and aborting the sleep and dequeueing the thread if it is set. MFC after: 3 days Reported by: dwhite, peter END K 10 svn:author V 6 emaste K 8 svn:date V 27 2008-01-25T02:41:44.000000Z K 7 svn:log V 219 Calculate baud rate divisor instead of allowing only a fixed set of standard rates. Obtained from OpenBSD src/sys/dev/usb/uftdi.c 1.29 src/sys/dev/usb/uftdireg.h 1.11 OpenBSD revisions noted by: ticso, on hackers END K 10 svn:author V 3 mtm K 8 svn:date V 27 2008-01-25T05:23:01.000000Z K 7 svn:log V 211 Rev. 1.6 made it impossible to use rc.d/kerberos with the krb5 port. Re-implement the change so that the script once again works with the krb5 port. Submitted by: kensmith (slightly modified) MFC after: 3 days END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-01-25T10:12:33.000000Z K 7 svn:log V 213 MFC rev. 1.52: udf_vget() shall vgone() the vnode when the file_entry cannot be allocated or read from the volume. Otherwise, half-constructed vnode could be found later and cause panic when accessed. PR: 118322 END K 10 svn:author V 4 mnag K 8 svn:date V 27 2008-01-25T10:54:40.000000Z K 7 svn:log V 182 MFC: 1.430 - Add new NTP servers provided by NIC.br (http://www.ntp.br) - Remove nonfunctional servers PR: 119884 Approved by: simon Approved by: re (bmah) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-01-25T14:38:27.000000Z K 7 svn:log V 338 Hide ipfw internal data structures behind IPFW_INTERNAL rather than exposing them to all consumers of ip_fw.h. These structures are used in both ipfw(8) and ipfw(4), but not part of the user<->kernel interface for other applications to use, rather, shared implementation. MFC after: 3 days Reported by: Paul Vixie END K 10 svn:author V 3 mtm K 8 svn:date V 27 2008-01-25T15:06:26.000000Z K 7 svn:log V 207 If the rc.conf(5) variable for a script is not enabled do not fail silently. Display a message that the command wasn't run and make possible suggestions for what to do. PR: conf/118770 MFC after: 1 week END K 10 svn:author V 3 mtm K 8 svn:date V 27 2008-01-25T15:54:14.000000Z K 7 svn:log V 130 Clarify in what formats the grouplist for the '-G' switch may be accepted. Submitted by: Eygene Ryabinkin END K 10 svn:author V 3 mtm K 8 svn:date V 27 2008-01-25T16:44:34.000000Z K 7 svn:log V 316 Backout previous commit. It's going to clutter the console during boot and shutdown. I think I'll hide it behind autoboot or maybe take brooks@ suggestion and implement a different command prefix for booting/shutdown purposes, but in any case it needs more thought and attention. Noticed by: ceri Pointyhat to: mtm END K 10 svn:author V 3 jhb K 8 svn:date V 27 2008-01-25T19:24:12.000000Z K 7 svn:log V 168 Update the timestamp regexps in syncstamp() and monostamp() for > 99999 traces where there isn't any leading whitespace before the record number in the ktrdump output. END