ƒ¸A178128 149 211 222 166 173 497 472 532 319 122 130 313 257 1259 168 171 117 305 284 304 141 388 168 198 259 121 127 159 641 155 416 416 475 210 146 363 893 127 335 195 1540 315 311 416 1099 1099 1099 215 146 141 185 210 123 246 225 161 136 252 141 167 136 10665 163 220 190 305 149 140 241 213 112 277 242 181 171 173 247 103 551 719 317 248 150 122 177 166 281 243 355 121 408 355 176 170 280 420 217 296 156 387 387 1212 209 597 123 320 360 399 140 143 160 172 204 304 202 164 1036 164 171 158 126 153 112 287 198 115 165 521 389 371 246 105 377 242 199 238 265 450 334 113 121 280 136 707 707 987 184 171 237 182 K 10 svn:author V 3 sos K 8 svn:date V 27 2008-04-11T22:56:27.000000Z K 7 svn:log V 118 Fix badly placed '{' Dont leak requests on busdma failure (not that we'd get anywhere anyhow). Reported by: antoine@ END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-04-11T22:59:33.000000Z K 7 svn:log V 126 Add atomic operations for ZFS/sparc64. Approved by: core, pjd Obtained from: OpenSolaris (w/ adaptations) MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-04-11T23:04:36.000000Z K 7 svn:log V 71 Hook up ZFS to the sparc64 build. Approved by: pjd MFC after: 2 weeks END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-04-11T23:10:39.000000Z K 7 svn:log V 80 - Pass the irq and not the vector to intr_event_create(). Reviewed by: marcel END K 10 svn:author V 7 davidch K 8 svn:date V 27 2008-04-11T23:10:40.000000Z K 7 svn:log V 400 - Fixed a problem with the send chain consumer index which would cause TX traffic to sit in the send chain until a received packet kick started the interrupt handler. This would cause extremely slow performance when used with NFS over UDP. - Removed untested polling code. - Updated copyright year in the file header. - Removed inadvertent ^M's created by DOS text editor. MFC after: 2 weeks END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-04-11T23:38:07.000000Z K 7 svn:log V 376 MFC: if_dc.c 1.194; if_dcreg.h 1.55 - Const'ify the dc_devs array. - Correct the maxsize parameter when creating the mbufs busdma tag to reflect the actual requirement of dc(4). - Move the KASSERT in dc_newbuf() to the right spot. - Also convert the TX side to take advantage of bus_dmamap_load_mbuf_sg(9). - Move the comment regarding dc_start_locked() to the right spot. END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-04-11T23:41:43.000000Z K 7 svn:log V 436 MFC: if_dc.c 1.195, 1.194; if_dcreg.h 1.55 - Fix function prototype for device_shutdown method. - Const'ify the dc_devs array. - Correct the maxsize parameter when creating the mbufs busdma tag to reflect the actual requirement of dc(4). - Move the KASSERT in dc_newbuf() to the right spot. - Also convert the TX side to take advantage of bus_dmamap_load_mbuf_sg(9). - Move the comment regarding dc_start_locked() to the right spot. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-11T23:52:52.000000Z K 7 svn:log V 222 MFC: - add _umtx_op_err function to improve stability because of errno changed by application signal handler code. - use kernel based userland rwlock to implement pthread_rwlock, improve performance in most cases. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-12T02:42:54.000000Z K 7 svn:log V 26 MFC: retire type umtx_t. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-12T02:54:59.000000Z K 7 svn:log V 34 MFC: Preserve and restore errno. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-04-12T03:09:51.000000Z K 7 svn:log V 220 Make the software emulator for long doubles set the FPU exception flags appropriately. The next step is to make it raise a SIGFPE if any exceptions are unmasked. Thanks to remko for access to a sparc64 box for testing. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-04-12T03:10:13.000000Z K 7 svn:log V 164 Fix some bugs that caused sparc64's quad precision sqrt to get the wrong answer for virtually all inputs. Thanks to remko for access to a sparc64 box for testing. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-04-12T03:11:36.000000Z K 7 svn:log V 1165 Make several changes to the way printf handles hex floating point (%a): 1. Previously, printing the number 1.0 could produce 0x1p+0, 0x2p-1, 0x4p-2, or 0x8p-3, depending on what happened to be convenient. This meant that printing a value as a double and printing the same value as a long double could produce different (but equivalent) results. The change is to always make the leading digit a 1, unless the number is 0. This solves the aforementioned problem and has several other advantages. 2. Use the FPU to do rounding. This is far simpler and more portable than manipulating the bits, and it fixes an obsure round-to-even bug. It also raises the exceptions now required by IEEE 754R. The drawbacks are that it is usually slightly slower, and it makes printf less effective as a debugging tool when the FPU is hosed (e.g., due to a buggy softfloat implementation). 3. On i386, twiddle the rounding precision so that (2) works properly for long doubles. 4. Make several simplifications that are now possible due to (2). 5. Split __hldtoa() into a separate file. Thanks to remko for access to a sparc64 box for testing. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-04-12T03:11:56.000000Z K 7 svn:log V 76 Updates for changes in the way printf() handles hex floating point numbers. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-12T04:07:20.000000Z K 7 svn:log V 75 MFC revision 1.43: Reduce lock contention by replacing mutex with rwlock. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2008-04-12T05:49:05.000000Z K 7 svn:log V 25 Correct an obvious typo. END K 10 svn:author V 3 flz K 8 svn:date V 27 2008-04-12T11:23:21.000000Z K 7 svn:log V 212 MFC: Add support for Verizon v740 to ubsa(4). src/sys/dev/usb/usbdevs: rev 1.345 -> 1.346 src/sys/dev/usb/ubsa.c: rev 1.34 -> 1.35 PR: usb/122610 Submitted by: Randi Harper END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-12T12:04:09.000000Z K 7 svn:log V 188 Match the Mac Pro with 8 cores. This machine reports 35 temperature sensors and some fans. As I don't own this machine, I could not test this patch. Obtained from: applesmc Linux driver. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-12T12:06:00.000000Z K 7 svn:log V 208 Update the list of Cx states when ACPICA notifies us. Usually, this notification is sent when the AC plug is plugged in/out. This is required on some laptops, namely the MacBooks. Silence on: freebsd-acpi END K 10 svn:author V 4 kris K 8 svn:date V 27 2008-04-12T12:17:49.000000Z K 7 svn:log V 48 Trylocks were implemented, remove stale comment END K 10 svn:author V 6 marius K 8 svn:date V 27 2008-04-12T13:41:32.000000Z K 7 svn:log V 292 MFC: tlb.h 1.27; cache.c 1.21; cheetah.c 1.6; mp_machdep.c 1.38; pmap.c 1.171; spitfire.c 1.6; tlb.c 1.9 - Do as the comment in pmap_bootstrap() suggests and flush all non-locked TLB entries possibly left over by the firmware and also do so while bootstrapping APs. - Use __FBSDID. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-04-12T13:51:18.000000Z K 7 svn:log V 72 Add missing stubs for spinlocks cpuset and intrcnt. Submitted by: kris END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-04-12T13:56:17.000000Z K 7 svn:log V 101 - Remove a stale comment. - Add an extra assertion in order to catch malformed requested operations. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-12T14:04:08.000000Z K 7 svn:log V 163 MFp4: k8temp, a driver to monitor AMD K8 CPU temperature via builtin sensors. Based on the Linux driver by the same name. Tested by: many (see freebsd-amd64) END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-12T14:08:24.000000Z K 7 svn:log V 26 MFp4: k8temp(4) man page. END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-12T14:20:22.000000Z K 7 svn:log V 32 Connect k8temp(4) to the build. END K 10 svn:author V 3 das K 8 svn:date V 27 2008-04-12T14:53:52.000000Z K 7 svn:log V 67 Unbreak the build for arm and powerpc. Pointy hat to yours truly. END K 10 svn:author V 5 ariff K 8 svn:date V 27 2008-04-12T15:07:32.000000Z K 7 svn:log V 546 - Add codec id for Sigmatel STAC9205 - Fix speaker issues with Dell Vostro 1500 (GPIO0) Tested by: John Wright - Apply ridiculous quirk on Asus A8X series (A8JC, A8M, A8xx, etc). These different laptop series share simmilar pci id, hardware codecs, etc. but works differently. A slight difference in connection type for widget #26 is used to differentiate it. Tested by: eric baumbach - Apply GPIO0 quirk for ASUS G2K laptop - Sort ASUS ids accordingly. Submitted by: jkim MFC after: 3 days END K 10 svn:author V 3 sos K 8 svn:date V 27 2008-04-12T17:21:22.000000Z K 7 svn:log V 63 Dont call hw.status recursively. Spotted by: Marcel Moolenaar END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2008-04-12T18:26:48.000000Z K 7 svn:log V 320 MFC: Make ALTQ cope with disappearing interfaces (particularly common with mpd and netgraph in gernal). This also allows to add queues for an interface that is not yet existing (you have to provide the bandwidth for the interface, however). PR: kern/106400, kern/117827 Tested by: Florian Smeets, Boris S. END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2008-04-12T19:52:13.000000Z K 7 svn:log V 320 MFC: Make ALTQ cope with disappearing interfaces (particularly common with mpd and netgraph in gernal). This also allows to add queues for an interface that is not yet existing (you have to provide the bandwidth for the interface, however). PR: kern/106400, kern/117827 Tested by: Florian Smeets, Boris S. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-04-12T19:57:30.000000Z K 7 svn:log V 378 - Re-introduce WITNESS support for lockmgr. About the old implementation the only one difference is that lockmgr*() functions now accept LK_NOWITNESS flag which skips ordering for the instanced calling. - Remove an unuseful stub in witness_checkorder() (because the above check doesn't allow ever happening) and allow witness_upgrade() to accept non-try operation too. END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-04-12T20:18:02.000000Z K 7 svn:log V 113 LK_NOWITNESS can be used now in lockmgr*() functions in order to skip witness(4) checks on a per-instance basis. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-12T20:26:07.000000Z K 7 svn:log V 54 Remove a trailing comma which FlexeLint whines about. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-12T20:35:56.000000Z K 7 svn:log V 270 Emit summaries of struct c(alender)t(ime) <-> struct timespec conversions under bootverbose. Struct ct is used for setting/reading real time clocks and I'm about to Do Things to some of those, so a bit of preemptive debugging is in order. Remove a pointless __inline. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-12T20:46:06.000000Z K 7 svn:log V 800 Move i386 to generic RTC handling code. Make clock_if.m and subr_rtc.c standard on i386 Add hints for "atrtc" driver, for non-PnP, non-ACPI systems. NB: Make sure to install GENERIC.hints into /boot/device.hints in these! Nuke MD inittodr(), resettodr() functions. Don't attach to PHP0B00 in the "attimer" dummy driver any more, and remove comments that no longer apply for that reason. Add new "atrtc" device driver, which handles IBM PC AT Real Time Clock compatible devices using subr_rtc and clock_if. This driver is not entirely clean: other code still fondles the hardware to get a statclock interrupt on non-ACPI timer systems. Wrap some overly long lines. After it has settled in -current, this will be ported to amd64. Technically this is MFC'able, but I fail to see a good reason. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-12T21:51:54.000000Z K 7 svn:log V 35 fix printf type confusion on amd64 END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-04-13T01:20:47.000000Z K 7 svn:log V 238 struct lock_instance and struct lock_list_entry don't need to be in the public namespace for WITNESS as they are only used internally so just move them in the private namespace for the subsystem (with all related supporting definitions). END K 10 svn:author V 7 attilio K 8 svn:date V 27 2008-04-13T01:21:56.000000Z K 7 svn:log V 99 Use a "rel" memory barrier for disowning the lock as it cames from an exclusive locking operation. END K 10 svn:author V 6 qingli K 8 svn:date V 27 2008-04-13T05:45:14.000000Z K 7 svn:log V 1443 This patch provides the back end support for equal-cost multi-path (ECMP) for both IPv4 and IPv6. Previously, multipath route insertion is disallowed. For example, route add -net 192.103.54.0/24 10.9.44.1 route add -net 192.103.54.0/24 10.9.44.2 The second route insertion will trigger an error message of "add net 192.103.54.0/24: gateway 10.2.5.2: route already in table" Multiple default routes can also be inserted. Here is the netstat output: default 10.2.5.1 UGS 0 3074 bge0 => default 10.2.5.2 UGS 0 0 bge0 When multipath routes exist, the "route delete" command requires a specific gateway to be specified or else an error message would be displayed. For example, route delete default would fail and trigger the following error message: "route: writing to routing socket: No such process" "delete net default: not in table" On the other hand, route delete default 10.2.5.2 would be successful: "delete net default: gateway 10.2.5.2" One does not have to specify a gateway if there is only a single route for a particular destination. I need to perform more testings on address aliases and multiple interfaces that have the same IP prefixes. This patch as it stands today is not yet ready for prime time. Therefore, the ECMP code fragments are fully guarded by the RADIX_MPATH macro. Include the "options RADIX_MPATH" in the kernel configuration to enable this feature. Reviewed by: robert, sam, gnn, julian, kmacy END K 10 svn:author V 6 qingli K 8 svn:date V 27 2008-04-13T06:12:13.000000Z K 7 svn:log V 219 These files handle the radix tree for the ECMP routes. The original code from KAME did not take care of address aliases or multiple ip addresses that have the same prefix. Reviewed by: rwatson, gnn, sam, kmacy, julian END K 10 svn:author V 4 nyan K 8 svn:date V 27 2008-04-13T06:18:34.000000Z K 7 svn:log V 217 MFi386: RTC related cleanups. - Use generic RTC handling code. - Make clock_if.m and subr_rtc.c standard. - Nuke MD inittodr(), resettodr() functions. - Add new "pcrtc" device driver. - Add hints for "pcrtc" driver. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-13T06:25:43.000000Z K 7 svn:log V 323 Merge in the mips specific configuration files and such from the merged juniper and mips2 code base. This represents the work of Juniper Engineers, plus Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard, Randall Stewert and others that have contributed to the mips2 and/or mips2-jnpr perforce branches. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-13T07:07:57.000000Z K 7 svn:log V 1005 FreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64, mips32r2 and mips64r2 (and close relatives) processors. There presently is support for ADMtek ADM5120, A mips 4Kc in a malta board, the RB533 routerboard (based on IDT RC32434) and some preliminary support for sibtye/broadcom designs. Other hardware support will be forthcomcing. This port boots multiuser under gxemul emulating the malta board and also bootstraps on the hardware whose support is forthcoming... Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard, Randall Stewert and others that have contributed to the mips2 and/or mips2-jnpr perforce branches. Juniper contirbuted a generic mips port late in the life cycle of the misp2 branch. Warner Losh merged the mips2 and Juniper code bases, and others list above have worked for the past several months to get to multiuser. In addition, the mips2 work owe a debt to the trail blazing efforts of the original mips branch in perforce done by Juli Mallett. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-13T07:27:37.000000Z K 7 svn:log V 1005 FreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64, mips32r2 and mips64r2 (and close relatives) processors. There presently is support for ADMtek ADM5120, A mips 4Kc in a malta board, the RB533 routerboard (based on IDT RC32434) and some preliminary support for sibtye/broadcom designs. Other hardware support will be forthcomcing. This port boots multiuser under gxemul emulating the malta board and also bootstraps on the hardware whose support is forthcoming... Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard, Randall Stewert and others that have contributed to the mips2 and/or mips2-jnpr perforce branches. Juniper contirbuted a generic mips port late in the life cycle of the misp2 branch. Warner Losh merged the mips2 and Juniper code bases, and others list above have worked for the past several months to get to multiuser. In addition, the mips2 work owe a debt to the trail blazing efforts of the original mips branch in perforce done by Juli Mallett. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-13T07:44:55.000000Z K 7 svn:log V 1005 FreeBSD/mips port. The FreeBSD/mips port targets mips32, mips64, mips32r2 and mips64r2 (and close relatives) processors. There presently is support for ADMtek ADM5120, A mips 4Kc in a malta board, the RB533 routerboard (based on IDT RC32434) and some preliminary support for sibtye/broadcom designs. Other hardware support will be forthcomcing. This port boots multiuser under gxemul emulating the malta board and also bootstraps on the hardware whose support is forthcoming... Oleksandr Tymoshenko, Wojciech Koszek, Warner Losh, Olivier Houchard, Randall Stewert and others that have contributed to the mips2 and/or mips2-jnpr perforce branches. Juniper contirbuted a generic mips port late in the life cycle of the misp2 branch. Warner Losh merged the mips2 and Juniper code bases, and others list above have worked for the past several months to get to multiuser. In addition, the mips2 work owe a debt to the trail blazing efforts of the original mips branch in perforce done by Juli Mallett. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-04-13T07:48:05.000000Z K 7 svn:log V 120 Add missing device in tunefs entry. PR: docs/122702 Submitted by: Yoshihiro Ota MFC After: 3 days END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-04-13T08:05:08.000000Z K 7 svn:log V 50 Use calloc() instaed of zeroing memory ourselves. END K 10 svn:author V 2 bz K 8 svn:date V 27 2008-04-13T10:22:59.000000Z K 7 svn:log V 50 Fix the build in case RADIX_MPATH is not defined. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-04-13T11:05:59.000000Z K 7 svn:log V 91 I keep taking timemachines to get back in time. Update the year to 2008. Noticed by: ceri END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-13T14:40:02.000000Z K 7 svn:log V 114 Add support for Asus EeePC backlight control. Submitted by: Akira Funahashi MFC after: 1 week END K 10 svn:author V 3 sos K 8 svn:date V 27 2008-04-13T16:05:34.000000Z K 7 svn:log V 31 Fix identify of slave devices. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-04-13T19:54:54.000000Z K 7 svn:log V 150 Add the bootcode verb for installing boot code. Boot code is supported for the MBR, GPT and PC98 schemes, where GPT installs boot code into the PMBR. END K 10 svn:author V 3 alc K 8 svn:date V 27 2008-04-13T21:08:34.000000Z K 7 svn:log V 132 Initialize the vm object's flags to include OBJ_NOSPLIT, just like the vm objects that are used by System V shared memory segments. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-13T21:20:26.000000Z K 7 svn:log V 69 Get rid of an empty RTC implementation and hook up genclock instead. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-13T21:38:05.000000Z K 7 svn:log V 44 Make this compile also on non-IPv6 kernels. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-04-13T21:45:52.000000Z K 7 svn:log V 155 Make naming of include guards for MAC Framework include files more consistent with other kernel include guards (don't start with _SYS). MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-13T22:04:56.000000Z K 7 svn:log V 49 fix comments for these files. Noticed by: stass END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2008-04-13T22:06:56.000000Z K 7 svn:log V 71 Use __FBSDID() for $FreeBSD$ IDs in the audit code. MFC after: 3 days END K 10 svn:author V 6 qingli K 8 svn:date V 27 2008-04-13T23:04:46.000000Z K 7 svn:log V 41 Make this file compile on IPv6 kernels. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-14T06:21:34.000000Z K 7 svn:log V 10566 MFC sf(4) to latest HEAD. o sf(4) repocopied from sys/pci to sys/dev/sf 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. o Import AIC-6915 firmware for GFP from Adaptec. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-14T06:25:32.000000Z K 7 svn:log V 67 MFC vlan.4, rev 1.45 to RELENG_7. sf(4) gained VLAN_MTU support. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-14T06:28:21.000000Z K 7 svn:log V 123 MFC sf.4 rev 1.25 to RELENG_7. Document two new sysctl variables, dev.sf.%d.int_mod and dev.sf.%d.stats. Xref vlan(4). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-14T06:30:46.000000Z K 7 svn:log V 94 MFC GENERIC rev 1.131 to RELENG_7. Uncomment sf(4), sf(4) should work on all architectures. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-14T07:57:15.000000Z K 7 svn:log V 212 atrtc.c is a repocopy of the RTC device driver from i386/isa/clock.c In addition to the device driver functionality, it exposes a number of functions which various other bits of code use to fondle the RTC chip. END K 10 svn:author V 3 phk K 8 svn:date V 27 2008-04-14T08:00:00.000000Z K 7 svn:log V 57 Convert amd64 and i386 to share the atrtc device driver. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-14T08:08:40.000000Z K 7 svn:log V 44 don't include pthread_np.h, it is not used. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-04-14T09:22:48.000000Z K 7 svn:log V 148 When calling lf_advlock to unlock a record, make sure that ap->a_fl->l_type is F_UNLCK otherwise we trigger a LOCKF_DEBUG panic. MFC after: 3 days END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-14T14:32:32.000000Z K 7 svn:log V 120 1) adds some additional logging 2) changes to use a inqueue_bytes calculated value in max_len calc's. MFC after: 1 week END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-14T14:33:07.000000Z K 7 svn:log V 20 New logging values. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-14T14:34:29.000000Z K 7 svn:log V 184 Protection against errant sender sending a stream seq number out of order with no missing TSN's (a cisco box has this problem which will make a ssn be held forever). MFC after: 1 week END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-14T16:50:55.000000Z K 7 svn:log V 148 MFC: 1.31 - Add ASUS G2K laptop support. - Add DLED and GLED found on newer ASUS laptops. - Turn on BLED, TLED, and WLED by default as other OSes. END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-14T18:06:04.000000Z K 7 svn:log V 89 Add pru_flush routine so a transport can flush itself during Shutdown MFC after: 1 week END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-14T18:12:37.000000Z K 7 svn:log V 79 - Have SCTP use the new pru_flush functionality PR: 122710 MFC after: 1 week END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-14T18:13:33.000000Z K 7 svn:log V 81 Use the pru_flush infrastructure to avoid a panic PR: 122710 MFC after: 1 week END K 10 svn:author V 3 sos K 8 svn:date V 27 2008-04-14T18:34:24.000000Z K 7 svn:log V 154 Fix problem with slave devices. Fix or rather bring ENOMEM problems back to the state it was before. Temporarily disable PortMultipliers on AHCI devices. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2008-04-14T18:56:48.000000Z K 7 svn:log V 9 style(9) END K 10 svn:author V 8 mckusick K 8 svn:date V 27 2008-04-14T20:15:53.000000Z K 7 svn:log V 453 restore(8) does not check for write failure while building two temp files containing directory and ownership data. If /tmp fills, the console is blasted with zillions of "file system full" errors, and restore continues on, even though directory and/or ownership data has been lost. This is particularly likely to happen when running from the live CD, which has little /tmp space. PR: bin/93603, also probably bin/107213 Fix from: Ken Lalonde END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-04-14T20:34:45.000000Z K 7 svn:log V 623 Revision 1.9 changes the delivery mode from the magic constant 0 (i.e. fixed delivery) to SAPIC_DELMODE_LOWPRI. While the commit log doesn't mention the change in behaviour, it is believed to be deliberate. In the last 5.5 years this hasn't been a problem. Nor do I think did it make any difference, but who knows. However, I do know that it break SMP support for Montecito-based machines. Switch back to fixed-CPU delivery so that SMP works again. This gives me some time to look more closely at the problem, as well as make sure the I-cache validation as it's implemented currently is sufficient in SMP configurations... END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-15T00:46:15.000000Z K 7 svn:log V 220 Don't touch MSI enable bit in RL_CFG2 register. For unknown reason clearing MSI enable bit for MSI capable hardwares resulted in Tx problems. MSI enable bit is set only when MSI is requested from user. Tested by: remko END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-15T00:50:01.000000Z K 7 svn:log V 154 Remove M_SKIP_FIREWALL abuse and add more appropriate check. Pointyhat to: jkim Reported by: Eugene Grosbein (eugen at kuzbass dot ru) MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-15T02:09:28.000000Z K 7 svn:log V 58 Remove $P4$ tag. Rumor has it that p4 importer hates it. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-15T02:10:14.000000Z K 7 svn:log V 30 This file is unused on amd64. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-15T02:11:57.000000Z K 7 svn:log V 85 Copied from amd64, where it wasn't used, into mips, where it wasn't used. Remove it. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-15T02:50:07.000000Z K 7 svn:log V 74 This isn't used, so remove it. It isn't relevant to most mips platforms. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2008-04-15T04:17:13.000000Z K 7 svn:log V 184 Use a ndis_ prefix on the C variable instead of directly using the .sys filename, this would fail if the filename started with a number. PR: bin/84911 Submitted by: Fredrik Lindberg END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2008-04-15T04:44:32.000000Z K 7 svn:log V 146 If the .inf file did not have a Default entry for the registry key then write out a blank value and close the brackets on the ndis_regvals array. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-04-15T05:02:42.000000Z K 7 svn:log V 259 Support and switch to the ULE scheduler: o Implement IPI_PREEMPT, o Set td_lock for the thread being switched out, o For ULE & SMP, loop while td_lock points to blocked_lock for the thread being switched in, o Enable ULE by default in GENERIC and SKI, END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-04-15T05:14:42.000000Z K 7 svn:log V 30 Bootstrap the build of btxld. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-15T05:31:19.000000Z K 7 svn:log V 315 Add copyright notice and license to reflect origin of most of the routines in this file. Remove 'place holder' copyright since the amount that's actually original is small relative to the length of the file. The contents of this file appear to have originated at DECWRL by way of NetBSD. Noticed by: Simon Burge END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-15T05:35:00.000000Z K 7 svn:log V 262 This file shows signs of heavy borrowing from NetBSD's cache.c file, so credit its authors with contributions to this file. Remove prototype copyright notice, although one might be warranted if someone wanted to claim it badly enough. Noticed by: Simon Burge. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-15T08:33:32.000000Z K 7 svn:log V 80 Implement POSIX function tcgetsid() which returns session id. PR: stand/107561 END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-04-15T10:02:24.000000Z K 7 svn:log V 79 MFC: 1.85: Fix printing of sockaddr prefixes in verbose mode. PR: bin/122403 END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-04-15T16:54:39.000000Z K 7 svn:log V 186 Fix possible buffer overrun on 64-bit arch when generating MAC address for tap interface. Reported by: Marc Lorner < marc dot loerner at hob dot de > Reviewed by: bms MFC after: 3 days END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-04-15T17:02:23.000000Z K 7 svn:log V 324 Use genclock for RTC handling. This eliminates the MD versions for inittodr() and resettodr(). Have nexus double as the clock device, because it's the firmware that provides RTC services. We could create a special (pseudo-) device for it, but that wasn't superior enough to actually do it. Maybe later... Requested by: phk END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-15T17:08:24.000000Z K 7 svn:log V 123 Revert the previous commit and use M_PROMISC flag instead. It is safer because it will never be used for outgoing packets. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-15T17:41:52.000000Z K 7 svn:log V 202 MFC: 1.95, 1.96 - Add write(2) support for psm(4) in native operation level. Now arbitrary commands can be written to /dev/psm%d and status can be read back from it. - Clean up and fix style(9) nits. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-15T17:43:40.000000Z K 7 svn:log V 63 Bump __FreeBSD_version to reflect write(2) support for psm(4). END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-04-15T20:23:59.000000Z K 7 svn:log V 293 MFC: Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server mode at boot time. Multiple profiles can be started at the same time. The whole idea is very similar to the ppp rc script. Document Bluetooth knobs in rc.conf(5) Set defaults for the rfcomm_pppd_server rc script END K 10 svn:author V 4 emax K 8 svn:date V 27 2008-04-15T20:31:14.000000Z K 7 svn:log V 293 MFC: Add rfcomm_pppd_server rc script to allow start rfcomm_pppd(8) in server mode at boot time. Multiple profiles can be started at the same time. The whole idea is very similar to the ppp rc script. Document Bluetooth knobs in rc.conf(5) Set defaults for the rfcomm_pppd_server rc script END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-04-15T21:15:32.000000Z K 7 svn:log V 1118 Several changes breaking netgraph module ABI collected together: - reorder structures fields (XX_refs) a bit to group fields modified same time together. According to my tests it gives up to 10% SMP performance benefit on real workload due to reduced inter-CPU cache trashing. - change q_flags from long to int as long is not really needed there and it's usage with atomics is argued by some people. - move NGF_WORKQ flag into the separate field q_flags2 as it protected by queue mutex instead of node writer protection used by the rest of flags. - move nd_work queue entry to ng_queue structure to which it is more related and make it STAILQ instead of TAILQ as now it is a classic FIFO. - remove q_node pointer from ng_queue structure as it is not really needed. - reimplement item queue using STAILQ instead of own equal implementation. As soon as BT subsystem has own item queues using ng_item.el_next update it also. - change depth field in ng_item from uintptr_t to u_int. It was made uintptr_t to keep ABI compatibility. Reviewed by: julian, emax Tested with: Netperf cluster END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-04-15T22:34:39.000000Z K 7 svn:log V 113 MFC rev 1.20: Declare _ppp_profile_cleaned, _punct, and _punct_c local in ppp_start_profile(). Reported by: yar END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-04-15T22:37:43.000000Z K 7 svn:log V 501 MFC revs 1.17-1.20, the functional components of which are: 1.17: Allow the characters .-+/ to appear in ppp profile names by folding them to _ when evaluating ppp__nat and ppp__mode. Document the per-profile variables. 1.18: Add support for hardwiring ppp sessions to particular devices with new per-profile variables of the form ppp__unit. No ppp_unit variable is supported since tying the same unit to more than one profile won't work. PR: conf/121452, conf/122127 END K 10 svn:author V 6 rpaulo K 8 svn:date V 27 2008-04-15T22:47:01.000000Z K 7 svn:log V 28 style(9). Noticed by: jkim END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-04-15T22:48:56.000000Z K 7 svn:log V 224 When sending packets directly to the DHCP server, use a socket and send directly rather than bogusly sending it out as a link layer broadcast (which fails to be received on some networks). PR: bin/96018 MFC after: 2 weeks END K 10 svn:author V 6 brooks K 8 svn:date V 27 2008-04-15T23:03:35.000000Z K 7 svn:log V 264 Add very limited support for the isc-dhclient. It will almostly certaintly only work if there's just one interface doing dhcp. This version implements the same logic as the version in the PR, but uses pgrep to be less verbose. PR: conf/95905 MFC after: 1 week END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-04-15T23:29:51.000000Z K 7 svn:log V 301 Fix one-byte buffer overflow: NUL gets written to the buffer, but isn't counted in the width specification in scanf. This is not a security problem, since this function is only used to parse a user's configuration file. Submitted by: Joerg Sonnenberger Obtained from: dragonflybsd MFC after: 1 week END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-16T00:17:24.000000Z K 7 svn:log V 44 Mention support for nForce MCP73. Touch Dd. END K 10 svn:author V 7 davidxu K 8 svn:date V 27 2008-04-16T03:19:11.000000Z K 7 svn:log V 47 _vfork is not in libthr, remove the reference. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-16T05:06:11.000000Z K 7 svn:log V 68 FreeBSD/mips libc support. Merged from perforce mips2-jnpr branch. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-16T05:08:27.000000Z K 7 svn:log V 80 Turns out the machine/asm.h isn't needed here, since SYS.h already included it. END K 10 svn:author V 3 imp K 8 svn:date V 27 2008-04-16T05:11:25.000000Z K 7 svn:log V 111 Doh! Extra mips in the path. Remove these and wait until tomorrow when I have more brain cells to try again. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-04-16T09:08:54.000000Z K 7 svn:log V 211 MFC: nlm_prot_impl.c 1.5, clnt_rc.c 1.3 Avoid error cascades when trying to monitor a host that doesn't resolve in DNS. Tighten error handling when attempting to communicate with the userland part of rpc.lockd. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-04-16T09:09:50.000000Z K 7 svn:log V 109 Tighten up the error-handling in nlm_get_rpc. While I'm here, fix a couple of spelling mistakes in comments. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-04-16T09:09:51.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-04-16T11:33:32.000000Z K 7 svn:log V 943 Move the head of byte-level advisory lock list from the filesystem-specific vnode data to the struct vnode. Provide the default implementation for the vop_advlock and vop_advlockasync. Purge the locks on the vnode reclaim by using the lf_purgelocks(). The default implementation is augmented for the nfs and smbfs. In the nfs_advlock, push the Giant inside the nfs_dolock. Before the change, the vop_advlock and vop_advlockasync have taken the unlocked vnode and dereferenced the fs-private inode data, racing with with the vnode reclamation due to forced unmount. Now, the vop_getattr under the shared vnode lock is used to obtain the inode size, and later, in the lf_advlockasync, after locking the vnode interlock, the VI_DOOMED flag is checked to prevent an operation on the doomed vnode. The implementation of the lf_purgelocks() is submitted by dfr. Reported by: kris Tested by: kris, pho Discussed with: jeff, dfr MFC after: 2 weeks END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2008-04-16T11:33:33.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_7'. END K 10 svn:author V 3 kib K 8 svn:date V 27 2008-04-16T13:03:12.000000Z K 7 svn:log V 79 Man pages for the openat(2), fexecve(2) and related syscalls. Reviewed by: ru END K 10 svn:author V 3 flz K 8 svn:date V 27 2008-04-16T13:05:35.000000Z K 7 svn:log V 66 Fix pkg_info when specifying a remote package. MFC after: 1 week END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-04-16T14:08:12.000000Z K 7 svn:log V 34 Fix compilation with LOCKF_DEBUG. END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-04-16T14:44:43.000000Z K 7 svn:log V 62 Connect newly added manpages to the build. Submitted by: kib END K 10 svn:author V 2 ru K 8 svn:date V 27 2008-04-16T14:57:40.000000Z K 7 svn:log V 21 Sort MAN and MLINKS. END K 10 svn:author V 4 kris K 8 svn:date V 27 2008-04-16T16:47:14.000000Z K 7 svn:log V 193 Replace callout_init(..., 1) with callout_init(..., CALLOUT_MPSAFE) for better grep-compliance and to standardize with the rest of the kernel. Reviewed by: jhb MFC after: 1 week END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-16T17:24:18.000000Z K 7 svn:log V 105 Allow SCTP to compile without INET6. PR: 116816 Obtained from tuexen@fh-muenster.de: MFC after: 2 weeks END K 10 svn:author V 3 rrs K 8 svn:date V 27 2008-04-16T17:40:30.000000Z K 7 svn:log V 23 Fixes typo's in sctp.c END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-04-16T18:40:52.000000Z K 7 svn:log V 69 Style fixes to opendir.c: - Use /*- for copyright block; - ANSIfy. END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-04-16T18:50:04.000000Z K 7 svn:log V 426 MFC rev 1.431 menus.c Remove ftp.hk.super.net, the DNS isn't pointing to anything at the moment. I tested this as well as the submitter and couldn't resolve this either, since I dont want to "announce" dead mirrors, I'll remove it from the list. PR: 122567 Submitted by: vs Approved by: imp (mentor, implicit for trivial changes) MFC after: 1 week Approved by: imp (mentor, implicit) END K 10 svn:author V 5 remko K 8 svn:date V 27 2008-04-16T18:54:08.000000Z K 7 svn:log V 294 MFC rev 1.4 gjournal.8 Add missing device in tunefs entry. PR: docs/122702 Submitted by: Yoshihiro Ota MFC After: 3 days MFC rev 1.5 gjournal.8 I keep taking timemachines to get back in time. Update the year to 2008. Noticed by: ceri END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-04-16T18:59:36.000000Z K 7 svn:log V 274 Implement fdopendir(3) by splitting __opendir2() into two parts, the upper part deals with the usual __opendir2() calls, and the rest part with an interface translator to expose fdopendir(3) functionality. Manual page was obtained from kib@'s work for *at(2) system calls. END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-16T19:25:39.000000Z K 7 svn:log V 152 Add stubs for syscalls introduced in Linux 2.6.17 kernel. Some GNU libc version started using them before 2.6.17 was officially out. MFC after: 3 days END K 10 svn:author V 4 jkim K 8 svn:date V 27 2008-04-16T19:27:36.000000Z K 7 svn:log V 12 Regenerate. END K 10 svn:author V 3 mav K 8 svn:date V 27 2008-04-16T19:52:29.000000Z K 7 svn:log V 284 Use separate UMA zone for data items allocation. It is a partial rev. 1.149 rework. It allows to save several percents of CPU time on SMP by using UMA's internal per-CPU allocation limits instead of own global variable each time updated with atomics. Tested with: Netperf cluster END K 10 svn:author V 4 stas K 8 svn:date V 27 2008-04-16T21:15:10.000000Z K 7 svn:log V 148 - Correctly destroy assoiciated ucom device on detach. MFC after: 2 weeks Reported by: Ilya Bakulin Approved by: imp, cognet END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-04-16T23:28:12.000000Z K 7 svn:log V 103 Allocate a stack (with optional guard pages) for thread0 and switch to it before calling mi_startup(). END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-04-17T00:00:41.000000Z K 7 svn:log V 140 Fix logic error in sshd(8) concerning the handling of failed attempts to bind ports for X11 forwarding. Security: FreeBSD-SA-08:05.openssh END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-04-17T00:00:54.000000Z K 7 svn:log V 167 Fix logic error in sshd(8) concerning the handling of failed attempts to bind ports for X11 forwarding. Security: FreeBSD-SA-08:05.openssh Approved by: so (cperciva) END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2008-04-17T00:02:20.000000Z K 7 svn:log V 352 Forced commit to note that the previous commit message should have been: Fix logic error in sshd(8) concerning the handling of failed attempts to bind ports for X11 forwarding. [SA-08:05] Fix issues with threaded programs calling fork(2). [EN-08:01] Security: FreeBSD-SA-08:05.openssh Errata: FreeBSD-EN-08:01.libpthread Approved by: so (cperciva) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2008-04-17T00:37:40.000000Z K 7 svn:log V 238 Simplify the pmap_zero_page family of functions by making use of the fact that we have a 1:1 mapping by virtue of the BATs. Eliminate the now unused moea_rkva_alloc(), moea_pa_map() and moea_pa_unmap() functions. Pointed out by: grehan. END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-04-17T00:53:13.000000Z K 7 svn:log V 17 MFC: bzip2 1.0.5 END K 10 svn:author V 7 delphij K 8 svn:date V 27 2008-04-17T01:02:03.000000Z K 7 svn:log V 25 Mention bzip2 1.0.5 MFC. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-04-17T01:23:39.000000Z K 7 svn:log V 188 MFC. The great CDDL file move. These files were repocopied for HEAD. The repo copy process renames tags, adding a prefix of 'old_', so the history for these files is in old_RELENG_7 etc. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-04-17T02:41:04.000000Z K 7 svn:log V 45 MFC. Par of the big CDDL file move I missed. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-17T04:16:50.000000Z K 7 svn:log V 610 MFC if_rl.c, rev 1.174 to RELENG_7. It seems that RealTek 8129/8139 chip reports invalid length of received frame under certain conditions. wpaul said the length 0xfff0 is special meaning that indicates hardware is in the process of copying a packet into host memory. But it seems there are other cases that hardware is busy or stuck in bad situation even if the received frame length is not 0xfff0. To work-around this condition, add a check that verifys that recevied frame length is in valid range. If received length is out of range reinitialize hardware to recover from stuck condition. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-17T04:18:29.000000Z K 7 svn:log V 610 MFC if_rl.c, rev 1.174 to RELENG_6. It seems that RealTek 8129/8139 chip reports invalid length of received frame under certain conditions. wpaul said the length 0xfff0 is special meaning that indicates hardware is in the process of copying a packet into host memory. But it seems there are other cases that hardware is busy or stuck in bad situation even if the received frame length is not 0xfff0. To work-around this condition, add a check that verifys that recevied frame length is in valid range. If received length is out of range reinitialize hardware to recover from stuck condition. END K 10 svn:author V 4 jeff K 8 svn:date V 27 2008-04-17T04:20:10.000000Z K 7 svn:log V 893 - Make SCHED_STATS more generic by adding a wrapper to create the variables and sysctl nodes. - In reset walk the children of kern_sched_stats and reset the counters via the oid_arg1 pointer. This allows us to add arbitrary counters to the tree and still reset them properly. - Define a set of switch types to be passed with flags to mi_switch(). These types are named SWT_*. These types correspond to SCHED_STATS counters and are automatically handled in this way. - Make the new SWT_ types more specific than the older switch stats. There are now stats for idle switches, remote idle wakeups, remote preemption ithreads idling, etc. - Add switch statistics for ULE's pickcpu algorithm. These stats include how much migration there is, how often affinity was successful, how often threads were migrated to the local cpu on wakeup, etc. Sponsored by: Nokia END K 10 svn:author V 7 yongari K 8 svn:date V 27 2008-04-17T04:22:32.000000Z K 7 svn:log V 88 MFC if_nfe.c rev 1.28, if_nfereg.h rev 1.12 to RELENG_7. Add support for MCP73 chips. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2008-04-17T04:27:44.000000Z K 7 svn:log V 74 MFC: rev. 1.102 sf(4) should work on all archs now, remove it from here. END K 10 svn:author V 2 jb K 8 svn:date V 27 2008-04-17T04:59:18.000000Z K 7 svn:log V 145 MFC. Step 2 of the big CDDL file move. Use the files in their new locations. The next step will be to remove the files from their old locations. END K 10 svn:author V 3 dfr K 8 svn:date V 27 2008-04-17T07:53:48.000000Z K 7 svn:log V 90 MFC: smbfs_vnops.c 1.68 - make sure l_type is F_UNLCK when trying to unlock a byte range. END