summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* MFC r208021thompsa2010-05-171-2/+2
| | | | | Fix return values for usb_find_busses() and usb_find_devices(). We should try to return the actual number of busses and devices.
* MFC r208020thompsa2010-05-174-2/+8
| | | | Fix header file compliancy with libusb 1.0 from sourceforge.
* MFC r208048thompsa2010-05-171-0/+1
| | | | Allow the USB_REQ_DEBUG to be enabled in the kernel conf.
* MFC r208019thompsa2010-05-174-596/+947
| | | | Sync run(4) driver from author's site.
* MFC r208018thompsa2010-05-171-24/+163
| | | | | | | Reduce diffs to p4. Add test code for delaying or failing usb control requests, disabled by default under ifdef USB_REQ_DEBUG.
* MFC r208017thompsa2010-05-171-2/+2
| | | | Fix possibly wrong bit masking.
* MFC r208016thompsa2010-05-172-0/+2
| | | | Add new FTDI USB device ID.
* MFC r208015thompsa2010-05-171-1/+1
| | | | Increase the max ports to 12, 3G devices exist where the ppp endpoint is #9.
* MFC r208014thompsa2010-05-171-9/+20
| | | | | | | | Back out r203140 which was causing problems when the first and the last microframe slot was not in the smask. The problem was that the EHCI driver was then thinking that the transfer was immediately complete in some cases. Which could lead to freeze-like situations, which can be recovered by unplugging the USB device.
* MFC r208013thompsa2010-05-171-1/+4
| | | | Add missing ifdefs for usb power saving support.
* MFC r208011thompsa2010-05-171-0/+1
| | | | Add the ASUS MyPal A730W device id.
* MFC r208010thompsa2010-05-171-2/+4
| | | | Provide more information about the device location in the USB system.
* MFC r208009thompsa2010-05-172-0/+15
| | | | Enable support for mouse panning wheels.
* MFC r208008thompsa2010-05-175-54/+158
| | | | | | | | | If a USB device is suspended and a USB set config request is issued when the USB enumeration lock is locked, then the USB stack fails to resume the device because locking the USB enumeration lock is part of the resume procedure. To solve this issue a new lock is introduced which only protects the suspend and resume callbacks, which can be dropped inside the usbd_do_request_flags() function, to allow suspend and resume during so-called enumeration operations.
* MFC r208007thompsa2010-05-171-2/+2
| | | | Staticise usb_ref_device and usb_unref_device.
* MFC r208006thompsa2010-05-172-0/+8
| | | | | | | Add quirks for the Alcor SDCR_6362 Card Reader, Freecom HDD storage device and Samsung YP_U4 music player. PR: usb/145265, usb/146104
* MFC r207404thompsa2010-05-171-1/+1
| | | | usb_controller.c requires opt_ddb.h
* MFC r206638thompsa2010-05-171-3/+1
| | | | | Use the UIPROTO_BOOT_KEYBOARD #define from usb.h rather than a local (almost identically named) local #define.
* MFC r203148thompsa2010-05-173-3/+231
| | | | Uuencode the rt2870 firmware into ascii like the other firmware blobs.
* MFC r208030:trasz2010-05-171-0/+4
| | | | | Add missing check to prevent local users from panicing the kernel by trying to set malformed ACL.
* MFC r207971:yongari2010-05-171-13/+52
| | | | | | Document undocumented tunables and sysctl variables. While here use actual string to specify width as well as using Cm to set command argument.
* MFC r207853:yongari2010-05-171-4/+4
| | | | Now sge(4) supports TCP segmentation offload (TSO).
* MFC r207852:yongari2010-05-171-50/+14
| | | | | | | | | | | | | SiS190 supports RX 10 bytes padding, CRC stripping as well as VLAN hardware tag insertion/stripping. Remove conditional code that disables these hardware features on SiS190. Also nuke RX fixup code which is no more required on strict-alignment architectures because SiS190 supports RX 10 bytes padding. Now all hardware features except jumbo frame and WOL are supported. Thanks to Masa Murayama who confirmed SiS190 also has the same hardware features of SiS191. I guess the only difference between SiS191 and SiS190 would be jumbo frame support. It will be implemented in near future.
* MFC r207851:yongari2010-05-172-15/+103
| | | | | | | | | | | | | | Implement TSO and TSO over VLAN. Increase number of allowed fragmentation of mbuf chain to 32 from 16 because TSO can send 64KB sized packet which in turn requires long list of mbuf chain. Due to lack of documentation, I'm not sure whether driver have to pull up ethernet/IP/TCP header with options to make controller work but driver have to parse TCP header to update pseudo TCP checksum anyway. The controller expects pseudo TCP checksum computed by upper stack and the checksum should follow the MS NDIS specification to make TSO work. Tested by: xclin <xclin <> cs dot nctu dot edu dot tw >
* MFC r207832:yongari2010-05-173-78/+242
| | | | | | | | | | | | | | | | | | | | | | | Export hardware MAC statistics through sysctl node. Previously fxp(4) already used to extract most hardware MAC statistics but it didn't show them. With this change, all MAC statistics counters are exported. Because there are a couple of new counters for 82558 and 82559, enable extended MAC statistics functionality to get these counters. Accoring to public data sheet, 82559 MAC statistics return 24 DWORD counters(3 counters are unknown at this moment) so increase MAC counter structure to meet the MAC statistics block size. The completion of MAC counter dump is now checked against FXP_STATS_DR_COMPLETE status code which is appended at the end of status block. Previously fxp(4) ignored the status of the FXP_SCB_COMMAND_CU_DUMPRESET command. fxp(4) does not wait for the completion of pending command before issuing FXP_SCB_COMMAND_CU_DUMPRESET. Instead it skips the command and try it next time. This scheme may show better performance but there is chance to loose updated counters after stopping controller. So make sure to update MAC statistics in fxp_stop(). While I'm here move sysctl node creation to fxp_sysctl_node(). Tested by: Larry Baird < lab <> gta dot com >
* MFC r207750:yongari2010-05-171-4/+13
| | | | | | | | | | | | | | | | | 8255x configure command requires number of bytes of configuration table. The default size of the configuration table was 22 bytes. To use extended feature of 82550/82551 the configuration table size was expanded to 32 bytes. The added configuration for 82550/82551 specifies VLAN hardware tagging and IPSec configuration as well as TCO. To make configuration easier fxp(4) used a configuration template and the template was copied to configuration table. After that, some parameters of the configuration table was changed depending on controller type and operation mode. However the size of template was 22 bytes so some configuration parameters were not properly initialized on 82550/82551. Fix this by increasing the template size. For 82557, 82558 and 82559 the size of the configuration is still 22 bytes.
* MFC: Locks SPTREE when setting some SP entries to state DEAD.vanhu2010-05-171-0/+6
| | | | | | | This can prevent kernel panics when updating SPs while there is some traffic for them. Obtained from: NETASQ
* MFC r207553, r207555, r207651:mm2010-05-172-24/+35
| | | | | | | | | | | | | | | Implement the no_user_check option to pam_krb5. This option is available in the Linux implementation of pam_krb5 and allows to authorize a user not known to the local system. Ccache is not used as we don't have a secure uid/gid for the cache file. Usable for authentication of external kerberos users (e.g Active Directory) via PAM from applications like Cyrus saslauthd, PHP or perl. PR: bin/146186 Approved by: deplhij (mentor)
* Since sometimes developer activity the week before a code freeze starts causeskensmith2010-05-171-2/+2
| | | | | the stable branch to be a little less reliable than normal mark the stable/8 branch as 8.1-PRERELEASE to warn users.
* MFC r207848:kib2010-05-171-4/+4
| | | | | The thread_unsuspend() requires both process mutex and process spinlock locked. Postpone the process unlock till the thread_unsuspend() is called.
* MFC r207847:kib2010-05-171-1/+4
| | | | | | For detach procfs ctl command, also clear P_STOPPED_TRACE process stop flag, and for each thread, TDB_SUSPEND debug flag, same as it is done by exit1() for orphaned debugee.
* MFC: r207785rmacklem2010-05-172-4/+4
| | | | Fix typos in macros.
* MFC: r207764rmacklem2010-05-171-2/+34
| | | | | | Patch the experimental NFS client so that it works for NFSv2 by adding the necessary mapping from NFSv3 procedure numbers to NFSv2 procedure numbers when doing NFSv2 RPCs.
* MFC: r207689rmacklem2010-05-171-4/+4
| | | | | | | If the "-alldirs" export option was used for the V4: line, mountd would crash in check_options() since dp == NULL for the V4: line. This patch moves the check for options allowed on the V4: line to ahead of where dp is used to avoid this crash.
* MFC r207944: sh: Fix pathname expansion with quoted slashes like *\/.jilles2010-05-162-9/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These are git commits 36f0fa8fcbc8c7b2b194addd29100fb40e73e4e9 and d6d06ff5c2ea0fa44becc5ef4340e5f2f15073e4 in dash. Because this is the first code I'm importing from dash to expand.c, add the Herbert Xu copyright notice which is in dash's expand.c. When pathname expanding *\/, the CTLESC representing the quoted state was erroneously taken as part of the * pathname component. This CTLESC was then seen by the pattern matching code as escaping the '\0' terminating the string. The code is slightly different because dash converts the CTLESC characters to backslashes and removes all the other CTL* characters to allow substituting glob(3). The effect of the bug was also slightly different from dash (where nothing matched at all). Because a CTLESC can escape a '\0' in some way, whether files were included despite the bug depended on memory that should not be read. In particular, on many machines /*\/ expanded to a strict subset of what /*/ expanded to. Example: echo /*"/null" This should print /dev/null, not /*/null. PR: bin/146378 Obtained from: dash
* MFC 207985rrs2010-05-161-3/+2
| | | | | | Fix an old long time bug in generating a fwd-tsn. This would appear when greater than the size of mbuf TSN's would need to be skipped.
* MFC 207983rrs2010-05-162-4/+5
| | | | | | | | | More PR-SCTP bugs: - Make sure that when you kick the streams you add correctly using a 16 bit unsigned. - Make sure when sending out you allow FWD-TSN to skip over and list the ACKED chunks in the stream/seq list (so the rcv will kick the stream)
* MFC 207966 (for Michael)rrs2010-05-162-16/+0
| | | | Get rid of unused constants.
* MFC of 207963rrs2010-05-161-36/+13
| | | | | | | | | This fixes PR-SCTP issues: - Slide the map at the proper place. - Mark the bits in the nr_array ONLY if there is no marking. - When generating a FWD-TSN we allow us to skip past ACKED chunks too.
* MFC of 207924:rrs2010-05-164-7/+22
| | | | | | | | This fixes a bug with the one-2-one model socket when a user sets up a socket to a server sends data and closes the socket before the server has called accept(). It used to NOT work at all. Now we add a flag to the assoc and defer assoc cleanup so that the accept will succeed
* MFC r208036:zec2010-05-161-1/+1
| | | | | | | | | | Increase the target buffer for performing NGM_ASCII2BINARY conversion from 2000 bytes to 20 Kbytes, which now matches the buffer size used for NGM_BINARY2ASCII conversions. The aim of this change is to allow for bigger binary structures to be managed via netgraph ASCII messages, until we come up with an API improvement which would get rid of such arbitrary hardcoded limits.
* MFC r207680:zec2010-05-166-8/+115
| | | | | | | Add an optional "persistent" flag to ng_hub and ng_bridge, which if set, disables automatic node shutdown when the last hook gets disconnected. Reviewed by: julian
* MFC r207817: builtin(1): sh has no @ builtin command.jilles2010-05-161-2/+2
|
* MFC r207816: Document clock and pshared condvar attributes.jilles2010-05-163-11/+107
| | | | | | | Note: clock accepts CLOCK_VIRTUAL and CLOCK_PROF too, but this seems broken as it simply waits for the difference of the current and given value of the clock as if it were CLOCK_MONOTONIC. So document only CLOCK_REALTIME and CLOCK_MONOTONIC as allowed.
* Merge r199631: Handle current work directories of arbitrary length.stefanf2010-05-161-22/+29
|
* MFC r207935: sh: Add some simple testcases for pathname expansion.jilles2010-05-151-0/+61
|
* MFC r207821: Generate some tests for sh's case commandjilles2010-05-154-1/+256
| | | | | | | from the fnmatch tests. I'm committing the generated files because I don't like a build dependency for the sh(1) tests, and they are small and will not change much.
* MFC r207481, r207956:mm2010-05-152-0/+30
| | | | | | | | | | | | | | | MFC r207481 [1]: Add sysctl and loader tunable vfs.zfs.txg.write_limit_override. This tunable improves fine-tuning of ZFS write throttling. MFC r207956 [2]: Fix possible hang when replaying large truncations. OpenSolaris onnv revision: 7904:6a124a4ca9c5 PR: kern/146108 [1] Suggested by: Nikolay Denev <ndenev at gmail.com> [1] Obtained from: OpenSolaris (Bug ID 6761624) [2] Approved by: pjd, delphij (mentor)
* Missing fix in lem code to limit WOL to MAGIC,jfv2010-05-143-2/+6
| | | | | and made code backward compatible to 7.3 with conditionals around the buf_ring_free call.
* MFC 208060:dougb2010-05-1423-60/+60
| | | | Remove trailing white space. No functional changes.
OpenPOWER on IntegriCloud