ƒ´!189560 177 271 163 183 207 161 140 233 463 609 444 654 177 454 341 1279 132 138 169 125 179 136 130 126 259 143 359 124 184 549 183 169 234 412 472 153 1056 301 167 164 220 271 177 110 151 129 206 254 220 194 118 513 278 123 335 168 172 167 1000 337 375 434 208 378 784 282 262 168 292 157 172 173 390 756 145 128 196 155 635 154 648 468 408 225 519 584 155 262 155 298 294 131 285 116 215 325 267 120 467 301 198 368 153 236 179 262 306 206 154 250 130 181 188 168 647 296 432 188 215 204 216 152 262 390 182 118 132 125 162 129 186 220 125 136 211 132 179 1216 244 152 144 126 135 138 176 135 136 273 369 712 227 207 133 119 104 7802 155 147 121 366 771 435 142 111 188 330 167 227 138 249 165 129 255 142 97 145 266 332 K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T07:47:03.356568Z K 7 svn:log V 174 Change the flags to bus_dmamem around to allow it to sleep waiting for resources during allocation, but not during map load. Also, zero the buffers here. MFC after: 3 days END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T07:49:13.244446Z K 7 svn:log V 67 There is no need to sync these buffers to swap. MFC after: 3 days END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T07:50:27.883679Z K 7 svn:log V 87 Clean up the printing on amd64. Should also be consistent on i386. MFC after: 3 days END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T07:55:18.934684Z K 7 svn:log V 110 Consistently use kdev for the kernel device. Submitted by: vehemens MFC after: 3 days END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-09T07:56:40.237774Z K 7 svn:log V 65 Report current link state while auto-negotiation is in progress. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-09T08:01:40.261460Z K 7 svn:log V 44 For unknown speed, explicitly set IFM_NONE. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-09T08:09:06.722425Z K 7 svn:log V 136 Use mii_phy_add_media() and remove setting each media type. While I'm here, don't set mii_anegticks as it's set by mii_phy_add_media(). END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-09T08:17:46.897275Z K 7 svn:log V 366 For IP1001 PHYs, read auto-negotiation advertisement register to get default next page configuration. While I'm here explicitly set IP1000PHY_ANAR_CSMA bit. This bit is read-only and always set by hardware so setting it has no effect but it would clear the intention. With this change controllers that couldn't establish 1000baseT link should work. PR: kern/130846 END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T08:18:40.374631Z K 7 svn:log V 512 Merge r189285 Disable INTx when enabling MSI/MSIX This addresses interrupt storms that were noticed after enabling MSI in drm. I think this is due to a loose interpretation of the PCI 2.3 spec, which states that a function using MSI is prohibitted from using INTx. It appears that some vendors interpretted that to mean that they should handle it in hardware, while others felt it was the drivers responsibility. This fix will also likely resolve interrupt storm related issues with devices other than drm. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T08:25:05.422538Z K 7 svn:log V 347 Merge r189367,189447 Extend the management of PCIM_CMD_INTxDIS. We now explicitly enable INTx during bus_setup_intr() if it is needed. Several of the ata drivers were managing this bit internally. This is better handled in pci and it should work for all drivers now. We also mask INTx during bus_teardown_intr() by setting this bit. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-09T10:45:58.732548Z K 7 svn:log V 557 Add a new thread-private flag, TDP_AUDITREC, to indicate whether or not there is an audit record hung off of td_ar on the current thread. Test this flag instead of td_ar when auditing syscall arguments or checking for an audit record to commit on syscall return. Under these circumstances, td_pflags is much more likely to be in the cache (especially if there is no auditing of the current system call), so this should help reduce cache misses in the system call return path. MFC after: 1 week Reported by: kris Obtained from: TrustedBSD Project END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-09T11:18:41.609695Z K 7 svn:log V 81 Remove two now-defunct KSE fields from struct thread: td_uuticks and td_usticks. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-09T13:11:16.490758Z K 7 svn:log V 357 Trim comments about the MP-safety of various bits of the amd64/i386 system call entry path and i386 IP checksum generation: we now assume all code is MPSAFE unless explicitly marked otherwise. Remove XXX Giant comments along similar lines: the code by the comments either doesn't need or doesn't want Giant (especially the NMI handler). MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-09T13:12:48.513356Z K 7 svn:log V 244 Use a u_int for p_lock instead of a char: this avoids a (somewhat unlikely but not impossible given modern thread counts) wrap-around, and the compiler was padding it out to an int (at least) anyway. MFC after: 3 days (but confirm ABI impact) END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:20:23.654623Z K 7 svn:log V 1185 Fix a long-standing bug in newbus. It was introduced when subclassing was introduced. If you have a bus, say cardbus, that is derived from a base-bus (say PCI), then ordinarily all PCI drivers would attach to cardbus devices. However, there had been one exception: kldload wouldn't work. The problem is in devclass_add_driver. In this routine, all we did was call to the pci device's BUS_DRIVER_ADDED routine. However, since cardbus bus instances had a different devclass, none of them were called. The solution is to call all subclass devclasses, recursively down the tree, of the class that was loaded. Since we don't have a 'children class' pointer, we search the whole list of devclasses for a class whose parent matches. Since just done a kldload time, this isn't as bad as it sounds. In addition, we short-circuit the whole process by marking those classes with subclasses with a flag. We'll likely have to reevaluate this method the number of devclasses with subclasses gets large. This means we can remove the "cardbus" lines from all the PCI drivers since we have no cardbus specific attach device attachments in the tree. # Also: minor tweak to an error message END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:23:54.663115Z K 7 svn:log V 40 remove now-redunant cardbus attachment. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:25:34.097033Z K 7 svn:log V 46 remove now-redunant cardbus attachment lines. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:26:55.816367Z K 7 svn:log V 77 o Add declarations for a few more nodes widely used. o Minor formatting nit. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:27:33.687379Z K 7 svn:log V 33 Fix prototypes to be consistent. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:29:13.346311Z K 7 svn:log V 87 __LP64__ is what's defined, not _LP64_, according to the manual (and also experience). END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:30:00.395161Z K 7 svn:log V 44 Make generic_intr routines match prototype. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-09T13:32:19.871027Z K 7 svn:log V 38 Prefer prototypes to k&r definitions. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2009-03-09T14:04:18.061614Z K 7 svn:log V 29 MFC: r189298 Xref glxsb(4). END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T15:25:46.876296Z K 7 svn:log V 162 MFp4 //depot/projects/usb@158916 USB mouse patch to address complicated data reporting descriptors. Reported by: Boris Kotzev Submitted by: Hans Petter Selasky END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-09T16:51:40.515799Z K 7 svn:log V 51 Add igmp(4) man page, do not connect to build yet. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T17:05:31.315346Z K 7 svn:log V 262 Install libusb20.so.1 as libusb.so.1, there will be a followup commit to the ports tree so that programs use libusb from the base by default. Thanks to Stanislav Sedov for sorting out the ports build. Bump __FreeBSD_version to 800069 Help and testing by: stas END K 10 svn:author V 2 ru K 8 svn:date V 27 2009-03-09T17:07:27.329872Z K 7 svn:log V 33 MFC: Spell 'Yugoslav' correctly. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T17:09:46.973851Z K 7 svn:log V 88 libusb20 is now installed as libusb, remove the version number from the directory name. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-09T17:16:29.849222Z K 7 svn:log V 456 - Make it possible to disable GPT support by setting LOADER_NO_GPT_SUPPORT in make.conf or src.conf. - When GPT is enabled (which it is by default), use memory above 1 MB and leave the memory from the end of the bss to the end of the 640k window purely for the stack. The loader has grown and now it is much more common for the heap and stack to grow into each other when both are located in the 640k window. PR: kern/129526 MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T17:38:14.600044Z K 7 svn:log V 87 Commit missed file in r189587, update directory name for libusb. Spotted by: rdivacky END K 10 svn:author V 4 csjp K 8 svn:date V 27 2009-03-09T17:42:18.182243Z K 7 svn:log V 76 Mark the bsdextended rules sysctl as being mpsafe. Discussed with: rwatson END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-09T17:42:34.446378Z K 7 svn:log V 137 Manual merge of r189368 due to different ata layout in stable. Remove the local management of INTx as this is now taken care of by pci. END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-09T17:53:05.352961Z K 7 svn:log V 319 Merge IGMPv3 and Source-Specific Multicast (SSM) to the FreeBSD IPv4 stack. Diffs are minimized against p4. PCS has been used for some protocol verification, more widespread testing of recorded sources in Group-and-Source queries is needed. sizeof(struct igmpstat) has changed. __FreeBSD_version is bumped to 800070. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-09T19:04:53.961636Z K 7 svn:log V 379 Move the debug.hashstat sysctl tree under DIAGNOSTIC. I measured the debug.hashstat.rawnchash sysctl in particular as taking 7 milliseconds on a 3GHz Intel Xeon (4x2) running 7.1. It accounted for almost a quarter of the total runtime of 'sysctl -a'. It also performs lots of copyout's while holding the namecache lock (this does not attempt to fix that). MFC after: 2 weeks END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-03-09T19:22:45.822350Z K 7 svn:log V 60 - Point libusb users to the ports collection UPDATING file. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-09T19:35:20.774812Z K 7 svn:log V 963 Adjust some variables (mostly related to the buffer cache) that hold address space sizes to be longs instead of ints. Specifically, the follow values are now longs: runningbufspace, bufspace, maxbufspace, bufmallocspace, maxbufmallocspace, lobufspace, hibufspace, lorunningspace, hirunningspace, maxswzone, maxbcache, and maxpipekva. Previously, a relatively small number (~ 44000) of buffers set in kern.nbuf would result in integer overflows resulting either in hangs or bogus values of hidirtybuffers and lodirtybuffers. Now one has to overflow a long to see such problems. There was a check for a nbuf setting that would cause overflows in the auto-tuning of nbuf. I've changed it to always check and cap nbuf but warn if a user-supplied tunable would cause overflow. Note that this changes the ABI of several sysctls that are used by things like top(1), etc., so any MFC would probably require a some gross shims to allow for that. MFC after: 1 month END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-03-09T19:46:19.880838Z K 7 svn:log V 209 Don't call into the TTY layer when inside kdb. We should just leave the underlying TTY objects alone when scrolling around in KDB. It should be handled by Syscons exclusively. Reported by: pluknet gmail com END K 10 svn:author V 4 stas K 8 svn:date V 27 2009-03-09T19:56:37.892973Z K 7 svn:log V 74 - Fix a typo. Spotted by: Steve Kargl END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T20:05:46.987418Z K 7 svn:log V 68 Fix musb_otg.h include filename. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T20:08:08.649590Z K 7 svn:log V 123 MFp4 //depot/projects/usb 158942,158948 Allow USB to be compiled without ugen support. Submitted by: Hans Petter Selasky END K 10 svn:author V 3 mav K 8 svn:date V 27 2009-03-09T20:48:57.190006Z K 7 svn:log V 178 Add type specific suspend/resume ata channel functions. Add checks to avoid crash on detached channel resume. Add placeholder for possible type-specific suspend/resume routines. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T22:42:01.159004Z K 7 svn:log V 81 Update 20090309 to say that libmap.conf entries for libusb are no longer needed. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T22:43:00.819804Z K 7 svn:log V 14 Fix spelling. END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-09T22:54:17.810318Z K 7 svn:log V 59 Fix uninitialized use of ifp for ii. Found by: Peter Holm END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-09T23:04:06.064429Z K 7 svn:log V 37 remove ar9160Detach; it does nothing END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-09T23:10:19.321288Z K 7 svn:log V 113 replace if_watchdog w/ private callout; probably can merge this with the calibration work sometime in the future END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-09T23:16:02.239572Z K 7 svn:log V 161 Add cfid, a disk interface to CFI flash devices; this enables construction of flash-based filesystems. Note this is not interlocked against the raw CFI device. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-09T23:18:07.029871Z K 7 svn:log V 123 Fix up the entries for libusb, it seems it existed back in 2002 so it was getting removed again. Reported by: Steve Kargl END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-09T23:18:36.919621Z K 7 svn:log V 101 add geom_redboot, a geom module that exports RedBoot FIS partitions as named slices in dev/redboot/* END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-09T23:25:34.111393Z K 7 svn:log V 26 add cfid and geom_redboot END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-03-10T02:12:03.052564Z K 7 svn:log V 420 Eliminate the last use of the recursive mapping to access user-space page table pages. Now, all accesses to user-space page table pages are performed through the direct map. (The recursive mapping is only used to access kernel-space page table pages.) Eliminate the TLB invalidation on the recursive mapping when a user-space page table page is removed from the page table and when a user-space superpage is demoted. END K 10 svn:author V 6 marcel K 8 svn:date V 27 2009-03-10T06:21:52.451620Z K 7 svn:log V 182 Fix a buglet in revision 189401: when restoring a 64-bit BAR, write the upper 32-bits in the adjacent bar. The consequences of the buglet were severe enough though: a machine check. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-03-10T07:50:59.851803Z K 7 svn:log V 26 More bug and style fixes. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-10T09:33:22.912734Z K 7 svn:log V 238 Rename files that collide on case-insensitive file systems by encoding colliding upper case letters as the lower case letter with a '_' in front. MFC after: 3 days Discussed with: ed Spotted by: Michael David Crawford END K 10 svn:author V 3 dfr K 8 svn:date V 27 2009-03-10T10:59:30.924966Z K 7 svn:log V 76 Port Xen HVM support forward from 6.x. Add support for TSO/LRO to netfront. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-10T11:04:19.692872Z K 7 svn:log V 76 Remove now-unused INP_UNMAPPABLEOPTS. MFC after: 3 days Discussed with: bz END K 10 svn:author V 4 nyan K 8 svn:date V 27 2009-03-10T11:14:03.560331Z K 7 svn:log V 74 Restore the return statement. It was accidentally removed by rev 188429. END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-03-10T11:28:54.760517Z K 7 svn:log V 908 Make a 1:1 mapping between syscons stats and terminal emulators. After I imported libteken into the source tree, I noticed syscons didn't store the cursor position inside the terminal emulator, but inside the virtual terminal stat. This is not very useful, because when you implement more complex forms of line wrapping, you need to keep track of more state than just the cursor position. Because the kernel messages didn't share the same terminal emulator as ttyv0, this caused a lot of strange things, like kernel messages being misplaced and a missing notification to resize the terminal emulator for kernel messages never to be resized when using vidcontrol. This patch just removes kernel_console_ts and adds a special parameter to te_puts to determine whether messages should be printed using regular colors or the ones for kernel messages. Reported by: ache Tested by: nyan, garga (older version) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-10T11:46:41.901545Z K 7 svn:log V 240 Merge r183430 from vendor/top/dist to head/contrib/top, although with record-only mergeinfo because an automated merge is confused by the flattening that took place: Move install to install-sh to prevent name-clashes. MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-10T12:10:50.836882Z K 7 svn:log V 282 When freeing all the resources of the card, it is better to turn off the PORTEN and MEMEN bits in the command register than to zero the bars. Use pci_write_ivar directly instead of a one-line wrapper that adds no value. Track verbosity changes in pci. Remove a stray blank line. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2009-03-10T14:28:19.100368Z K 7 svn:log V 340 Disable zerocopy by default for now. It's causing some problems in pcap consumers which fork after the shared pages have been setup. pflogd(8) is an example. The problem is understood and there is a fix coming in shortly. Folks who want to continue using it can do so by setting net.bpf.zerocopy_enable to 1. Discussed with: rwatson END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-10T14:29:34.458912Z K 7 svn:log V 111 Be compatible with LibUSB from sourceforge and close the handle after reset Submitted by: Hans Petter Selasky END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-03-10T14:35:21.993555Z K 7 svn:log V 285 Do not use bypass for vop_vptocnp() from nullfs, call standard implementation instead. The bypass does not assume that returned vnode is only held. Reported by: Paul B. Mahol , pluknet Reviewed by: jhb Tested by: pho, pluknet END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-10T14:52:17.338411Z K 7 svn:log V 687 Add tcpp -- TCP parallelism microbenchmark. This tool creates large numbers of TCP connections, each of which will transmit a fixed amount of data, between client and server hosts. tcpp can use multiple workers (typically up to the number of hardware cores), and can use multiple source IPs in order to use an expanded port/IP 4-tuple space to avoid problems from reusing 4-tuples too quickly. Aggregate bandwidth use will be reported after a client run. While by no means a perfect tool, it has proven quite useful in generating and optimizing TCP stack lock contention by easily generating high-intensity workloads. It also proves surprisingly good at finding device driver bugs. END K 10 svn:author V 5 guido K 8 svn:date V 27 2009-03-10T15:19:49.991273Z K 7 svn:log V 187 When swap resides on a mirror and it is not stopped, the mirror is degraded upon the next reboot and will have to be rebuild. Thus call swapoff when rebooting (read: when stopping swap1) END K 10 svn:author V 5 guido K 8 svn:date V 27 2009-03-10T15:23:43.765551Z K 7 svn:log V 167 When attaching a geli on boot make sure that it is detached upon last close. (needed for a gmirror to properly shutdown upon reboot when a geli is on top the gmirror) END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T15:25:19.757065Z K 7 svn:log V 76 Update top and systat for vfs.bufcache now being a long rather than an int. END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T15:26:50.877613Z K 7 svn:log V 199 Add an ABI compat shim for the vfs.bufspace sysctl for sysctl requests that try to fetch it as an int rather than a long. If the current value is greater than INT_MAX it reports a value of INT_MAX. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-10T15:49:43.612147Z K 7 svn:log V 61 Update libusb.3 name and add mlinks for usb.3 and libusb20.3 END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-10T15:54:37.503753Z K 7 svn:log V 76 Remove these files, they refer to module bundles that do not exist anymore. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T16:42:49.371372Z K 7 svn:log V 81 catch up with r189306; handle delayed activation of resources Submitted by: jhb END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T17:00:28.901249Z K 7 svn:log V 297 - Remove a recently added comment from kernel_sysctlbyname() that isn't needed. - Move the release of the sysctl sx lock after the vsunlock() in userland_sysctl() to restore the original memlock behavior of minimizing the amount of memory wired to handle sysctl requests. MFC after: 1 week END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T17:16:16.630010Z K 7 svn:log V 663 Small cleanup of memory resource allocation from Cambria branch: o encode need for A4 bus space tag hackery according to the memory address; checking for "uart" breaks down with the GPS chip support which is also a uart but does not require the same hackery o encode the correct memory window instead of carving up all of i/o space, potentially with a larger window than a device should have; this likely should be handled in the drivers by using a proper bus alloc call but since some drivers depend on the bus support to figure this out we cannot simply mod them o add optional GPS and RS485 support (conditionally as the support isn't ready yet) END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T17:19:45.470274Z K 7 svn:log V 53 bring in ddb "show gpio" support from Cambria branch END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T17:28:23.771276Z K 7 svn:log V 36 MFC: Push down Giant inside sysctl. END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-10T17:48:49.525873Z K 7 svn:log V 103 Don't print inm_print() chatter when KTR_IGMPV3 is not enabled in the KTR_COMPILE mask. Found by: gnn END K 10 svn:author V 3 gnn K 8 svn:date V 27 2009-03-10T17:54:04.388264Z K 7 svn:log V 63 Complete removal of cardbus_write_ivar which was left hanging. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-10T17:57:41.098798Z K 7 svn:log V 538 Remove unused v6 macro aliases for inpcb fields: in6p_ip6_nxt in6p_vflag in6p_flags in6p_socket in6p_lport in6p_fport in6p_ppcb Remove unused v6 macro aliases for inpcb flags: IN6P_HIGHPORT IN6P_LOWPORT IN6P_ANONPORT IN6P_RECVIF IN6P_MTUDISC IN6P_FAITH IN6P_CONTROLOPTS References to in6p_lport and in6_fport in sockstat are also replaced with normal inp_lport and inp_fport references. MFC after: 3 days Reviewed by: bz END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T18:16:03.739164Z K 7 svn:log V 62 MFC: Add sysctl_rename_oid() and use it in device_set_unit(). END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T18:41:06.245109Z K 7 svn:log V 555 - Remove code to set SAVENAME for CREATE or RENAME requests that get a -ve hit in the name cache. cache_lookup() doesn't actually return ENOENT for such requests to force the filesystem to do an explicit lookup, so this was effectively dead code. - Grab the nfsnode mutex while writing to n_dmtime. We don't grab the lock when comparing the time against the cached directory mod time (just as we don't when comparing ctime's for +ve name cache hits) since the attribute caching is already racy for NFS clients as it is. Discussed with: bde END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T18:57:10.856305Z K 7 svn:log V 375 MFC: Expand the scope of the sysctllock sx lock to protect the sysctl tree itself. This also includes changes to the ia64 machine check code to defer adding machine check records to the sysctl tree, removing Giant from the CAM code that created dynamic sysctls, and tweaking the teardown of da(4) and cd(4) peripheral devices to not hold locks when freeing the sysctl tree. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T19:15:35.853159Z K 7 svn:log V 315 o add missing bus_release_resource and bus_deactivate_resource that just operate on the resource (we have no local resources to manage); this fixes drivers that alloc/release resources in their probe method and then do it again in attach o while here add some prints to catch failures and massage style a bit END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T19:18:11.611461Z K 7 svn:log V 132 turn off inclusion of FCS in rx'd frames; we don't use it anywhere and dhclient gets annoyed when it receives FCS in frames via bpf END K 10 svn:author V 3 gnn K 8 svn:date V 27 2009-03-10T19:22:45.747343Z K 7 svn:log V 426 Update the Chelsio driver to the latest bits from Chelsio Firmware upgraded to 7.1.0 (from 5.0.0). T3C EEPROM and SRAM added; Code to update eeprom/sram fixed. fl_empty and rx_fifo_ovfl counters can be observed via sysctl. Two new cxgbtool commands to get uP logic analyzer info and uP IOQs Synced up with Chelsio's "common code" (as of 03/03/09) Submitted by: Navdeep Parhar at Chelsio Reviewed by: gnn MFC after: 2 weeks END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T19:33:50.378678Z K 7 svn:log V 491 MFC: Add a flag to tag individual sysctl leaf nodes as MPSAFE. Tag the following nodes as MPSAFE: - All standalone INT/LONG sysctls. - kern.proc.* - All name-cache related sysctls. - vm.loadavg - vm.vmtotal - vm.stats.(sys|vm).* - sysctl.name2oid - kern.ident, kern.osrelease, kern.version, etc. - kern.arandom - security.jail.jailed - kern.devname Other changes: - Remove GIANT_REQUIRED from vmtotal(). - Add conditional Giant locking around the vrele() in sysctl_kern_proc_pathname(). END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T19:35:37.109896Z K 7 svn:log V 63 mark device capable of vlan-size frames Obtained from: netbsd END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-10T19:35:41.264597Z K 7 svn:log V 165 Make sure HID has a default usage, this fixes recent mouse problems. Tested by: Renato Botelho Tested by: beech (earlier version) Submitted by: Hans Petter Selasky END K 10 svn:author V 7 delphij K 8 svn:date V 27 2009-03-10T21:13:26.298222Z K 7 svn:log V 59 Reflect license change from NetBSD. Obtained from: NetBSD END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T21:27:15.382763Z K 7 svn:log V 205 In the ABI shim for vfs.bufspace, rather than truncating values larger than INT_MAX to INT_MAX, just go ahead and write out the full long to give an error of ENOMEM to the user process. Requested by: bde END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-10T21:28:43.118674Z K 7 svn:log V 201 - Make maxpipekva a signed long rather than an unsigned long as overflow is more likely to be noticed with signed types. - Make amountpipekva a long as well to match maxpipekva. Discussed with: bde END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T21:47:17.973538Z K 7 svn:log V 39 map CS0 on 2358 so flash is accessible END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T21:49:22.448368Z K 7 svn:log V 192 add IXP4XX_FLASH_SIZE config knob that can be used to override the default flash size; this is necessary at the moment because we map all of flash at boot, eventually we'll do this on the fly END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T21:49:51.999731Z K 7 svn:log V 24 configure flash support END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-10T22:04:52.680902Z K 7 svn:log V 122 Restore blank line removed when fixing my earlier botch. Never do just one last change before bed... Pointy had to: imp END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-10T22:29:42.327387Z K 7 svn:log V 232 choose the size of the last region for d_stripsize instead of the first; this fixes geom_redboot on boards that have multiple parts/regions as it uses the value to locate the FIS directory which is in the last erase region of flash END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-10T22:35:45.807630Z K 7 svn:log V 170 Prefer ENETDOWN to ENXIO when returning queuing errors due to a link down, interface down, etc, with if_cxgb's if_transmit routine. MFC after: 3 days Reviewed by: kmacy END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-11T00:12:45.033662Z K 7 svn:log V 28 switch to !legacy usb stack END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-11T00:29:22.228948Z K 7 svn:log V 370 Add INP_INHASHLIST flag for inpcb->inp_flags to indicate whether or not the inpcb is currenty on various hash lookup lists, rather than using (lport != 0) to detect this. This means that the full 4-tuple of a connection can be retained after close, which should lead to more sensible netstat output in the window between TCP close and socket close. MFC after: 2 weeks END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-11T00:58:22.606412Z K 7 svn:log V 204 MFC r188548 Check the exit flag at the start of the taskqueue loop rather than the end. It is possible to tear down the taskqueue before the thread has run and the taskqueue loop would sleep forever. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-11T01:03:32.793377Z K 7 svn:log V 101 MFC r189360 Add Mobile Action MA-620 Infrared Adapter. Manually merged due to different codebase. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-11T01:12:52.177489Z K 7 svn:log V 275 o disallow write to RedBoot and FIS directory partitions; these are painful to resurrect (maybe honor foot shooting bit in kern.geom_debugflags) o fix match macro so we now recognize we want to merge FIS dir with RedBoot config parameters even if we don't actually do it END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:47:32.581624Z K 7 svn:log V 57 Merge r189045 Remove the PZERO priority from mtx_sleep. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:49:22.215591Z K 7 svn:log V 139 Merge r189046 There is no reason to hold the lock here. When I was LOCK_PROFILING this was pretty high up and there is no reason for it. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:50:53.053320Z K 7 svn:log V 83 Merge r189047 The vblank_swap ioctl was fundamentally race prone. Get rid of it. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:53:21.697616Z K 7 svn:log V 165 Merge 189048 The i915 driver was the only consumer of locked task support. Now that it doesn't use it anymore, get right of the taskqueue and locked task support. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:54:41.233226Z K 7 svn:log V 209 Merge r189049 This was part of a sync to the code that Intel is shipping in linux. - Remove the old TTM interface - Move register definitions to i915_reg.h - Overhaul the irq handler END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:56:17.028951Z K 7 svn:log V 109 Merge r189050 Add some vblank related debugging and replace the DRM_WAIT_ON macro with a localized version. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:57:20.532923Z K 7 svn:log V 58 Merge r189051 Prepare the radeon driver for MSI support. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T01:58:37.538036Z K 7 svn:log V 153 Merge r189052 Turn on MSI if the card supports it. There is a blacklist for chips which report that they are capable of MSI, but don't work correctly. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T02:00:13.096533Z K 7 svn:log V 34 Merge r189053 Remove D_NEEDGIANT END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T02:13:46.781797Z K 7 svn:log V 85 Merge r189054 The GM45 handles vblank differently. Pull the changes from Intel in. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T02:36:20.760589Z K 7 svn:log V 92 Merge r189099 Fix up some ioctl permissions issues long overlooked. Submitted by: jkim@ END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T02:37:52.177748Z K 7 svn:log V 72 Merge r189128 Add a tuneable to allow disabling msi on drm at runtime. END K 10 svn:author V 7 rnoland K 8 svn:date V 27 2009-03-11T02:39:02.711542Z K 7 svn:log V 550 Merge 189130 Initialize the vblank structures at load time. Previously we did this at irq install/uninstall time, but when we vt switch, we uninstall the irq handler. When the irq handler is reinstalled, the modeset ioctl happens first. The modeset ioctl is supposed to tell us that we can disable vblank interrupts if there are no active consumers. This will fail after a vt switch until another modeset ioctl is called via dpms or xrandr. Leading to cases where either interrupts are on and can't be disabled, or worse, no interrupts at all. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-03-11T03:00:40.765395Z K 7 svn:log V 198 kern_alq.c: - Remove cruft that's not really needed anymore. - Simplify/improve accounting in alq_doio(). - Fix a bug in alq_writen()'s accounting. alqtest.c: - General improvements to the output. END K 10 svn:author V 10 nwhitehorn K 8 svn:date V 27 2009-03-11T03:19:19.798349Z K 7 svn:log V 331 Change the PVO zone for fictitious pages to the unmanaged PVO zone, to match the unmanaged flag set in the PVO attributes. Without doing this, pmap_remove() could try to remove fictitious pages (like those created by mmap of physical memory) from the wrong UMA zone, causing a panic. Reported by: Justin Hibbits MFC after: 1 week END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-11T04:56:30.820658Z K 7 svn:log V 92 Fix a possible NULL pointer access at controller attach. Submitted by: Hans Petter Selasky END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-11T04:58:21.505728Z K 7 svn:log V 118 MFp4 //depot/projects/usb 158981,159016,159024 Sync support for ATMEGA DCI parts. Submitted by: Hans Petter Selasky END K 10 svn:author V 8 kientzle K 8 svn:date V 27 2009-03-11T05:11:57.168117Z K 7 svn:log V 106 Hack: *Temporarily* disable reading extended attributes from disk, as it seems to be badly broken on ZFS. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-11T07:22:11.476413Z K 7 svn:log V 123 Add 3 new cards that I found today in akihabara... Toshiba LANCT00A TDK LAK-CD011 TJ PTJ-LAN/T PC-NIC ENCC 990010759-001A END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-11T08:11:11.718419Z K 7 svn:log V 60 Add entry for Hitachi HT-4840-11, which is a fe-based card. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-11T08:12:28.247593Z K 7 svn:log V 169 Add support for Hitachi HT-4840-11. This card is supposedly just like the J181, but not quite. This card's CIS has some quirks that means we have to ignore CFE's 1-9. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-11T08:14:44.527288Z K 7 svn:log V 297 Allow zero length memroy space descriptor sections. It is apparently legal in the spec. Add newline to the verbose messages we print when debugging when this happens. The Hitachi HT-4840-11 is the only card to hit these in years, and it works well enough if we're liberal about what we accept. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-11T08:15:17.419340Z K 7 svn:log V 90 Remove old compat method that's no longer needed (and hasn't been since just before 6.0). END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-11T08:19:31.534878Z K 7 svn:log V 26 Minor nits notice by jhb@ END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-11T08:25:18.946818Z K 7 svn:log V 36 K&R -> ANSI C function definitions. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-11T08:28:24.777613Z K 7 svn:log V 29 Remove extra tab characters. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-11T08:41:57.849333Z K 7 svn:log V 66 Remove return statement at the end of function that returns void. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-11T08:49:17.522117Z K 7 svn:log V 33 style(9) - space after keywords. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-11T09:06:39.052676Z K 7 svn:log V 90 s/u_int8_t/uint8_t/g s/u_int16_t/uint16_t/g s/u_int32_t/uint32_t/g s/u_int64_t/uint64_t/g END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-11T09:57:11.449820Z K 7 svn:log V 123 Replace local CRC32 routine with ether_crc32_be(). This should have happened long time ago. Also simplify Rx filter logic. END K 10 svn:author V 3 phk K 8 svn:date V 27 2009-03-11T10:37:02.389063Z K 7 svn:log V 33 Some improvements to recoverdisk END K 10 svn:author V 3 phk K 8 svn:date V 27 2009-03-11T11:42:17.527210Z K 7 svn:log V 44 One Pp is more than enough. Says: brueffer END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-03-11T12:53:16.056819Z K 7 svn:log V 118 Enable advisory file locking for devfs vnodes. Reported by: Timothy Redaelli MFC after: 1 week END K 10 svn:author V 5 guido K 8 svn:date V 27 2009-03-11T12:55:12.576812Z K 7 svn:log V 38 Backout previous commit due to PEBKAC END K 10 svn:author V 4 nyan K 8 svn:date V 27 2009-03-11T13:15:42.526618Z K 7 svn:log V 86 Move the PC98_[MS]ID_* defines from g_part_pc98.c to diskpc98.h. Reviewed by: marcel END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-11T14:13:47.327192Z K 7 svn:log V 1122 Add a new internal mount flag (MNTK_EXTENDED_SHARED) to indicate that a filesystem supports additional operations using shared vnode locks. Currently this is used to enable shared locks for open() and close() of read-only file descriptors. - When an ISOPEN namei() request is performed with LOCKSHARED, use a shared vnode lock for the leaf vnode only if the mount point has the extended shared flag set. - Set LOCKSHARED in vn_open_cred() for requests that specify O_RDONLY but not O_CREAT. - Use a shared vnode lock around VOP_CLOSE() if the file was opened with O_RDONLY and the mountpoint has the extended shared flag set. - Adjust md(4) to upgrade the vnode lock on the vnode it gets back from vn_open() since it now may only have a shared vnode lock. - Don't enable shared vnode locks on FIFO vnodes in ZFS and UFS since FIFO's require exclusive vnode locks for their open() and close() routines. (My recent MPSAFE patches for UDF and cd9660 already included this change.) - Enable extended shared operations on UFS, cd9660, and UDF. Submitted by: ups Reviewed by: pjd (ZFS bits) MFC after: 1 month END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-11T14:39:55.397509Z K 7 svn:log V 151 Gah, fix the code to match the comment. For non-open lookups use a shared vnode lock for the leaf vnode if LOCKSHARED is set. Submitted by: rdivacky END K 10 svn:author V 3 alc K 8 svn:date V 27 2009-03-11T14:55:04.252544Z K 7 svn:log V 60 Optimize the inner loop of pmap_copy(). MFC after: 6 weeks END K 10 svn:author V 3 dfr K 8 svn:date V 27 2009-03-11T15:30:12.917008Z K 7 svn:log V 52 Merge in support for Xen HVM on amd64 architecture. END K 10 svn:author V 3 phk K 8 svn:date V 27 2009-03-11T16:32:00.558375Z K 7 svn:log V 34 Fix printf warnings on amd64 etc. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-11T17:14:17.418432Z K 7 svn:log V 43 add %b format strings for use by athdecode END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-11T17:15:33.816562Z K 7 svn:log V 46 add athdecode, an app to decode register logs END K 10 svn:author V 2 ed K 8 svn:date V 27 2009-03-11T17:40:39.852811Z K 7 svn:log V 85 Also use %zu to print the allocation size when malloc(3) fails. Discussed with: phk END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-11T17:41:46.624801Z K 7 svn:log V 43 add athpoke, a tool to peek/poke registers END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-11T17:46:01.442522Z K 7 svn:log V 44 move shared register support code to common END K 10 svn:author V 3 kib K 8 svn:date V 27 2009-03-11T19:45:52.839366Z K 7 svn:log V 180 Do not double-free the struct inode when insmntque failed. Default insmntque destructor reclaims the vnode, and ufs_reclaim frees the memory. Reviewed by: tegge MFC after: 3 days END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-11T21:48:36.045238Z K 7 svn:log V 276 Add a new type of KTRACE record for sysctl(3) invocations. It uses the internal sysctl_sysctl_name() handler to map the MIB array to a string name and logs this name in the trace log. This can be useful to see exactly which sysctls a thread is invoking. MFC after: 1 month END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2009-03-11T22:00:03.096839Z K 7 svn:log V 615 When writing out updated pollfd records when returning from poll(), only copy out the revents field, not the whole pollfd structure. Otherwise, if the events field is updated concurrently by another thread, that update may be lost. This issue apparently causes problems for the JDK on FreeBSD, which expects the Linux behavior of not updating all fields (somewhat oddly, Solaris does not implement the required behavior, but presumably our adaptation of the JDK is based on the Linux port?). MFC after: 2 weeks PR: kern/130924 Submitted by: Kurt Miller Discussed with: kib END K 10 svn:author V 3 jhb K 8 svn:date V 27 2009-03-11T22:13:12.376593Z K 7 svn:log V 134 MFC: Make cd9660 MPSAFE and able to use shared vnode locks for pathname lookups. Also, disable operations on character device nodes. END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-03-11T22:33:18.813989Z K 7 svn:log V 113 - Remove the system directory to to a better re-import where we don't have to deal with conflicts when MFHing. END K 10 svn:author V 4 lulf K 8 svn:date V 27 2009-03-11T22:43:31.664145Z K 7 svn:log V 40 - Re-import of the gvinum project code. END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-12T00:03:55.931963Z K 7 svn:log V 27 add more register bit defs END K 10 svn:author V 3 sam K 8 svn:date V 27 2009-03-12T00:09:29.393305Z K 7 svn:log V 12 add asserts END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-12T01:14:47.582893Z K 7 svn:log V 7704 bus_dma(9) conversion and make txp(4) work on all architectures. o Header file cleanup. o bus_dma(9) conversion. - Removed all consumers of vtophys(9) and converted to use bus_dma(9). - Typhoon2 functional specification says the controller supports 64bit DMA addressing. However all Typhoon controllers are known to lack of DAC support so 64bit DMA support was disabled. - The hardware can't handle more 16 fragmented Tx DMA segments so teach txp(4) to collapse these segments to be less than 16. - Added Rx buffer alignment requirements(4 bytes alignment) and implemented fixup code to align receive frame. Previously txp(4) always copied Rx frame to align it on 2 byte boundary but its copy overhead is much higher than unaligned access on i386/amd64. Alignment fixup code is now applied only for strict-alignment architectures. With this change i386 and amd64 will get instant Rx performance boost. Typhoon2 datasheet mentions a command that pads arbitrary bytes in Rx buffer but that command does not work. - Nuked pointer trick in descriptor ring. This does not work on sparc64 and replaced it with bcopy. Alternatively txp(4) can embed a 32 bits index value into the descriptor and compute real buffer address but it may make code complicated. - Added endianness support code in various Tx/Rx/command/response descriptor access. With this change txp(4) should work on all architectures. o Added comments for known firmware bugs(Tx checksum offloading, TSO, VLAN stripping and Rx buffer padding control). o Prefer faster memory space register access to I/O space access. Added fall-back mechanism to use alternative I/O space access. The hardware supports both memory and I/O mapped access. Users can still force to use old I/O space access by setting hw.txp.prefer_iomap tunable to 1 in /boot/loader.conf. o Added experimental suspend/resume methods. o Nuke error prone Rx buffer handling code and implemented local buffer management with TAILQ. Be definition the controller can't pass the last received frame to host if no Rx free buffers are available to use as head and tail pointer of Rx descriptor ring can't have the same value. In that case the Rx buffer pointer in Rx buffer ring still holds a valid buffer and txp_rxbuf_reclaim() can't fill Rx buffers as the first buffer is still valid. Instead of relying on the value of Rx buffer ring, introduce local buffer management code to handle empty buffer situation. This should fix a long standing bug which completely hangs the controller under high network load. I could easily trigger the issue by sending 64 bytes UDP frames with netperf. I have no idea how this bugs was not fixed for a long time. o Converted ithread interrupt handler to filter based one. o Rearranged txp_detach routine such that it's now used for general clean-up routine. o Show sleep image version on device attach time. This will help to know what action should be taken depending on sleep image version. The version information in datasheet was wrong for newer NV images so I followed Linux which seems to correctly extract version numbers from response descriptors. o Firmware image is no longer downloaded in device attach time. Now it is reloaded whenever if_init is invoked. This is to ensure correct operation of hardware when something goes wrong. Previously the controller always run without regard to running state of firmware. This change will add additional controller initialization time but it give more robust operation as txp(4) always start off from a known state. The controller is put into sleep state until administrator explicitly up the interface. o As firmware is loaded in if_init handler, it's now possible to implement real watchdog timeout handler. When watchdog timer is expired, full-reset the controller and initialize the hardware again as most other drivers do. While I'm here use our own timer for watchdog instead of using if_watchdog/if_timer interface. o Instead of masking specific interrupts with TXP_IMR register, program TXP_IER register with the interrupts to be raised and use TXP_IMR to toggle interrupt generation. o Implemented txp_wait() to wait a specific state of a controller. o Separate boot related code from txp_download_fw() and name it txp_boot() to handle boot process. o Added bus_barrier(9) to host to ARM communication. o Added endianness to all typhoon command processing. The ARM93C always expects little-endian format of command/data. o Removed __STRICT_ALIGNMENT which is not valid on FreeBSD. __NO_STRICT_ALIGNMENT is provided for that purpose on FreeBSD. Previously __STRICT_ALIGNMENT was unconditionally defined for all architectures. o Rewrote SIOCSIFCAP ioctl handler such that each capability can be controlled by ifconfig(8). Note, disabling VLAN hardware tagging has no effect due to the bug of firmware. o Don't send TXP_CMD_CLEAR_STATISTICS to clear MAC statistics in txp_tick(). The command is not atomic. Instead, just read the statistics and reflect saved statistics to the statistics. dev.txp.%d.stats sysctl node provides detailed MAC statistics. This also reduces a lot of waste of CPU cycles as processing a command ring takes a very long time on ARM93C. Note, Rx multicast and broadcast statistics does not seem to right. It might be another bug of firmware. o Implemented link state change handling in txp_tick(). Now sending packets is allowed only after establishing a valid link. Also invoke link state change notification whenever its state is changed so pseudo drivers like lagg(4) that relies on link state can work with failover or link aggregation without hacks. if_baudrate is updated to resolved speed so SNMP agents can get correct bandwidth parameters. o Overhauled Tx routine such that it now honors number of allowable DMA segments and checks for 4 free descriptors before trying to send a frame. A frame may require 4 descriptors(1 frame descriptor, 1 or more frame descriptors, 1 TSO option descriptor, one free descriptor to prevent descriptor wrap-around) at least so it's necessary to check available free descriptors prior to setting up DMA operation. o Added a sysctl variable dev.txp.%d.process_limit to control how many received frames should be served in Rx handler. Valid ranges are 16 to 128(default 64) in unit of frames. o Added ALTQ(4) support. o Added missing IFCAP_VLAN_HWCSUM as txp(4) can offload checksum calculation as well as VLAN tag insertion/stripping. o Fixed media header length for VLAN. o Don't set if_mtu in device attach, it's already set in ether_ifattach(). o Enabled MWI. o Fixed module unload panic when bpf listeners are active. o Rearranged ethernet address programming logic such that it works on strict-alignment architectures. o Removed unused member variables in softc. o Added support for WOL. o Removed now unused TXP_PCI_LOMEM/TXP_PCI_LOIO. o Added wakeup command TXP_BOOTCMD_WAKEUP definition. o Added a new firmware version query command, TXP_CMD_READ_VERSION. o Removed volatile keyword in softc as bus_dmamap_sync(9) should take care of this. o Removed embedded union trick of a structure used to to access a pointer on LP64 systems. o Added a few TSO related definitions for struct txp_tcpseg_desc. However TSO is not used at all due to the limitation of hardware. o Redefined PKT_MAX_PKTLEN to theoretical maximum size of a frame. o Switched from bus_space_{read|write}_4 to bus_{read|write}_4. o Added a new macro TXP_DESC_INC to compute next descriptor index. Tested by: don.nasco <> gmail dot com END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-12T01:17:35.122458Z K 7 svn:log V 59 Uncomment txp(4), txp(4) should work on all architectures. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-12T01:21:48.536934Z K 7 svn:log V 51 Add txp(4) to the list of drivers supporting ALTQ. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2009-03-12T01:27:15.437574Z K 7 svn:log V 25 Xref altq.4 and bump .Dd END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2009-03-12T02:32:54.259358Z K 7 svn:log V 269 MFp4 //depot/projects/usb 159004,159053,159091 More HID parsing fixes for usb mice. - be less strict on the last HID item usage. - preserve item size and count accross items - improve default HID usage selection. Tested by: ache Submitted by: Hans Petter Selasky END K 10 svn:author V 7 weongyo K 8 svn:date V 27 2009-03-12T02:51:55.293871Z K 7 svn:log V 674 o change a lock model based on HAL preemption lock to a normal mtx. Based on the HAL preemption lock there is a problem on SMP machines and causes a panic. o When a device detached the current tactic to detach NDIS USB driver is to call SURPRISE_REMOVED event. So it don't need to call ndis_halt_nic() again. This fixes some page faults when some drivers work abnormal. o it assumes now that URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER is in DISPATCH_LEVEL (non-sleepable) and as further work URB_FUNCTION_VENDOR_XXX and URB_FUNCTION_CLASS_XXX should be. Reviewed by: Hans Petter Selasky Tested by: Paul B. Mahol END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-12T03:09:11.941641Z K 7 svn:log V 342 Merge the open source Atheros HAL from HEAD to STABLE. This adds support for the AH_SUPPORT_AR5416 kernel configuration option, and removes the ath_rate* and ath_hal modules. Their kernel options are not however removed -- please see UPDATING. Tested on an IBM/Lenovo T43 and ASUS EeePC 701 in both STA and HostAP modes. Submitted by: sam END K 10 svn:author V 6 obrien K 8 svn:date V 27 2009-03-12T04:44:09.723014Z K 7 svn:log V 47 Don't need to set symbol, default value is OK. END K 10 svn:author V 5 kmacy K 8 svn:date V 27 2009-03-12T06:24:00.530395Z K 7 svn:log V 17 fix build issues END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T06:25:30.616004Z K 7 svn:log V 96 Better name for this routine... it doesn't reset the card, but resets the power to the card... END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T06:30:59.552484Z K 7 svn:log V 237 Check the Disk FUNCE recorded in the CIS to see if we should probe for both disks, or if we should suppress the slave drive. Default to suppressing the slave, in the case that this REQIURED tuple turns out to not actually be present... END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T06:32:30.662125Z K 7 svn:log V 75 Make the bit-bang callbacks for i2c implementation match their prototypes. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T06:35:00.712130Z K 7 svn:log V 134 o writereg needs to return a vlue. o Add TJ PTJ-LAN_T card. Some more work may be needed to make this actually function correctly. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T06:36:44.430384Z K 7 svn:log V 46 read_ivar takes a uintptr_t * not a u_char *. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T07:18:27.517238Z K 7 svn:log V 156 Fix the whitespace in this file to be consistent with itself and with the rest of the project's files. s/sn_/fe_/ in a routine name that I copied from sn. END K 10 svn:author V 3 pho K 8 svn:date V 27 2009-03-12T07:56:19.842556Z K 7 svn:log V 73 Added test scenario for duplicate free in ffs_getextattr() with UFS_ACL. END K 10 svn:author V 8 lstewart K 8 svn:date V 27 2009-03-12T08:27:54.135254Z K 7 svn:log V 32 Merge r189554:189729 from head. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T08:42:27.985287Z K 7 svn:log V 162 Move the deactivation of the device's BAR to before the loop where we turn deactivate the resources. While this likely doesn't matter, it is likely to be safer. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2009-03-12T09:52:42.984656Z K 7 svn:log V 45 txp(4) should work on all architectures now. END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T09:53:24.746926Z K 7 svn:log V 6 Bump! END K 10 svn:author V 3 imp K 8 svn:date V 27 2009-03-12T09:56:15.239616Z K 7 svn:log V 53 Update the projects tree to a newer FreeBSD current. END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-12T10:34:16.851159Z K 7 svn:log V 173 Make semaphore debugging output more useful. PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127545 MFC after: 5 days Submitted by: Philip Semanchuk END K 10 svn:author V 3 bms K 8 svn:date V 27 2009-03-12T10:36:39.462006Z K 7 svn:log V 239 Ensure that the semaphore value is re-checked after sem_lock is re-acquired, after the condition variable is signalled. PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/127545 MFC after: 5 days Reviewed by: attilio END