summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
...
* Detect, report and use 8-bit bus if is available.ian2015-02-271-4/+16
| | | | | Differential Revision: https://reviews.freebsd.org/D1921 Submitted by: Michal Meloun
* MMC: Signal HC capability to (e)MMC.ian2015-02-271-1/+1
| | | | | | | | | | | Summary: For new eMMC chips, we must signal controller HC capability in OP_COND command. Reviewers: imp, ian Reviewed By: ian Differential Revision: https://reviews.freebsd.org/D1920
* sfxge: expect required init_state on data path and in periodic callsarybchik2015-02-275-17/+18
| | | | | | | | | With the patch applied the number of instruction events is 1% less and number of mispredicted branch events is 5% less under multistream TCP traffic load close to line rate. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* Add FreeBSD stable/10 version checks for the availability of theken2015-02-262-2/+4
| | | | | | | | | | | | | CDAI_FLAG_NONE advanced information CCB flag. Support for the flag was merged to stable/10 in r279329, and the __FreeBSD_version in stable/10 was bumped to 1001510. Check for that version in the mps(4) and mpr(4) drivers when determining whether to use the flag. Sponsored by: Spectra Logic MFC after: 3 days
* For some uniformity move ahci_ch_init() call under the lock.mav2015-02-261-1/+1
| | | | | Submitted by: Dmitry Luhtionov <dmitryluhtionov@gmail.com> MFC after: 2 weeks
* Migrate using CPU_ZERO() + CPU_SET() -> CPU_SETOF().adrian2015-02-254-8/+4
| | | | | | | | | Tested: * ixgbe, igb, RSS enabled Submitted by: jhb Sponsored by: Norse Corp, Inc.
* Add ugen keyword to USB pnpinfo. Remove extra space from existing pnpinfo.hselasky2015-02-251-6/+14
| | | | | | | PR: 198015 PR: 198019 PR: 198026 MFC after: 1 week
* sfxge: use tab to indent instead of spacesarybchik2015-02-251-1/+1
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: correct limit for number of Rx queuesarybchik2015-02-251-1/+1
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* Change uses of taskqueue_start_threads_pinned() -> ↵adrian2015-02-244-8/+28
| | | | | | | taskqueue_start_threads_cpuset() Differential Revision: https://reviews.freebsd.org/D1897 Reviewed by: jfv
* - Updated all files with 2015 Avago copyright, and updated LSI's copyrightslm2015-02-2423-259/+577
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | dates. - Changed all of the PCI device strings from LSI to Avago Technologies (LSI). - Added a sysctl variable to control how StartStopUnit behavior works. User can select to spin down disks based on if disk is SSD or HDD. - Inquiry data is required to tell if a disk will support SSU at shutdown or not. Due to the addition of mpssas_async, which gets Advanced Info but not Inquiry data, the setting of supports_SSU was moved to the mpssas_scsiio_complete function, which snoops for any Inquiry commands. And, since disks are shutdown as a target and not a LUN, this process was simplified by basing it on targets and not LUNs. - Added a sysctl variable that sets the amount of time to retry after sending a failed SATA ID command. This helps with some bad disks and large disks that require a lot of time to spin up. Part of this change was to add a callout to handle timeouts with the SATA ID command. The callout function is called mpssas_ata_id_timeout(). (Fixes PR 191348) - Changed the way resets work by allowing I/O to continue to devices that are not currently under a reset condition. This uses devq's instead of simq's and makes use of the MPSSAS_TARGET_INRESET flag. This change also adds a function called mpssas_prepare_tm(). - Some changes were made to reduce code duplication when getting a SAS address for a SATA disk. - Fixed some formatting and whitespace. - Bump version of mps driver to 20.00.00.00-fbsd PR: 191348 Reviewed by: ken, scottl Approved by: ken, scottl MFC after: 2 weeks
* cxgbe(4): allow tx hardware checksumming on the netmap interface.np2015-02-241-6/+9
| | | | | | | | | It is disabled by default but users can set IFCAP_TXCSUM on the netmap ifnet (ifconfig ncxl0 txcsum) to override netmap and force the hardware to calculate and insert proper IP and L4 checksums in outbound frames. MFC after: 2 weeks
* cxgbe(4): set up congestion management for netmap rx queues.np2015-02-243-4/+38
| | | | | The hw.cxgbe.cong_drop knob controls the response of the chip when netmap queues are congested.
* cxgbe(4): do not set the netmap rxq interrupts on a hair-trigger.np2015-02-241-2/+4
| | | | MFC after: 2 weeks
* cxgbe(4): wait for the hardware to catch up before destroying a netmap txq.np2015-02-241-5/+10
| | | | MFC after: 2 weeks
* cxgbe(4): request an automatic tx update when a netmap txq idles.np2015-02-241-1/+2
| | | | MFC after: 2 weeks
* Enable 'receive timeout' interrupt allowing us to notbr2015-02-241-10/+25
| | | | | | | | loose 'rx buffer full' event. This fixes operation on ARMv8 Foundation Model. Sponsored by: DARPA, AFRL
* Ensure that the XHCI driver will refresh the control endpoint settingshselasky2015-02-241-0/+7
| | | | | | | when re-enumerating a FULL speed device. Else the wrong max packet setting might be used when trying to re-enumerate a FULL speed device. MFC after: 3 days
* Add native netmap support to ixl.luigi2015-02-243-0/+514
| | | | | | | | | | | | | Preliminary tests indicate 32 Mpps on tx, 24 Mpps on rx with source and receiver on two different ports of the same 40G card. Optimizations are likely possible. The code follows closely the one for ixgbe so i do not expect stability issues. Hardware kindly supplied by Intel. Reviewed by: Jack Vogel MFC after: 1 week
* sfxge: add put-list high watermarkarybchik2015-02-242-0/+9
| | | | | | | It is interesting to know how long put-list grows. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: use goto to cleanup to avoid duplicate cleanup codearybchik2015-02-241-11/+13
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* Correct a typo.yongari2015-02-241-1/+1
| | | | Reported by: jmg
* Previous version of mbufq were fine initialized by M_ZERO, whileglebius2015-02-231-0/+3
| | | | | | new one require explicti initialization. Reported by: royger
* Add support for the DWC OTG v2 chipset found in the STM32F4 series ofhselasky2015-02-232-11/+48
| | | | | | | processors. Make sure we pullup the data lines in device mode when we power on the port. MFC after: 1 week
* add MODULE_VERSION, needed to track module dependenciesluigi2015-02-231-0/+1
| | | | MFC after: 3 days
* sfxge: implement if_get_counter callbackarybchik2015-02-225-2/+91
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: add common code support for changing TX queue pacearybchik2015-02-223-0/+73
| | | | | | | | | | | | | To delay packets from a particular TX queue by a particular time, write a value into the TX Pace table s.t. pace time <= TX Pace Clock Period * (2 ^ pace value) - the TX pace clock is 1/13 of the system clock, so its period should be 104 or 52 ns depending on whether turbo mode is active. EFX_TX_PACE_CLOCK_BASE added by me. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: correct event queue interrupt moderation timer quantaarybchik2015-02-225-7/+11
| | | | | | Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: DMA allocated memory is set to zeros because of BUS_DMA_ZERO flagarybchik2015-02-222-2/+0
| | | | | | | It is not required to set it to zeros once again. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: do no allow EFSYS_MEM_ALLOC sleeparybchik2015-02-221-1/+5
| | | | | | | | | It solves locking problem when EFSYS_MEM_ALLOC is called in the context holding a mutex (not allowed to sleep). E.g. on interface bring up or multicast addresses addition. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: assert event queue lock in event handlersarybchik2015-02-221-0/+19
| | | | | | | It is useful to highlight lock context. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: pass correct address to free allocated memory in the case of load errorarybchik2015-02-221-2/+2
| | | | | | | | | It is one more place missed in the previous fix. Most likely is was just memory leak on the error handling path since typically efsys_mem_t is filled in by zeros on allocation. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: using bus_space_*_stream_* API for better portabilityarybchik2015-02-221-35/+64
| | | | | | | | Host-bus byte order translation is not requred. Submitted by: Artem V. Andreev <Artem.Andreev at oktetlabs.ru> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: add missing Siena sensors to common codearybchik2015-02-221-0/+30
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: add missing common code NVRAM types and map from MCDIarybchik2015-02-222-0/+12
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: add new identities to Siena static configarybchik2015-02-221-1/+3
| | | | | | Submitted by: Andrew Jackson <ajackson at solarflare.com> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: TxQ block level should use EFX_TXQ_LIMIT as maximum TxQ sizearybchik2015-02-221-7/+13
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: use sparse index to retrieve sensor valuearybchik2015-02-221-4/+6
| | | | | | Submitted by: Andrew Jackson <ajackson at solarflare.com> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: use macros to acquire and release BAR locks everywherearybchik2015-02-221-10/+10
| | | | | | | It was the result of invalid merge of the patch from out-of-tree driver. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: packet can't require more than n_dma_seg descriptors plus onearybchik2015-02-221-2/+2
| | | | | | | | Use remaining number of DMA segment instead of maximum number in mapping when checking space for one more TSO segment packet. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: use common definitions of MC shared memory offsets and PDU lengtharybchik2015-02-221-17/+12
| | | | | | Submitted by: Ben Hutchings Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: synchronize EF10 registers headerarybchik2015-02-221-2/+134
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: style fixes and cleanuparybchik2015-02-229-16/+21
| | | | | | | | | | Sync endif comment with conditional. BOOTROM and SIENA_BOOTROM are the same, but highlight that it is Siena. Restore commented out assertion. Sync comments with out-of-tree driver. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: allow TX and RX queue limits to be changedarybchik2015-02-214-6/+20
| | | | | | | | | | | | | | | Before the common code had hard coded limits on the IDs RXQs and TXQs could be created with which were suited for the Windows driver with VMQ, and so would prevent queues with IDs greater than or equal to 259 (for TXQs) or 768 (for RXQs) from being created. This change allows the limits to be set in efsys.h, so that all 1024 queues can be created during new manftest tests. Also, the descriptor cache sizes were also hard coded to values suited to the smaller queue counts, and so it was necessary to make them configurable as well. Submitted by: Mark Spender <mspender at solarflare.com> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: check allocations are non-NULL before freeing themarybchik2015-02-211-6/+14
| | | | | | | | | Caught when efx_filter_init() failed and called efx_filter_fini() in the teardown path. Submitted by: Andrew Lee <alee at solarflare.com> Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: keep fw and driver view of autoneg parameters consistentarybchik2015-02-211-0/+13
| | | | | | | | | Previously the driver's view was the expected outcome of any reconfiguration even if that reconfiguration failed. Submitted by: Ben Horgan Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: never set RX_DESCQ_EN during self-testarybchik2015-02-211-1/+1
| | | | | | | | | | We must not enable RX queues with random parameters when they are mapped into a VF with an untrusted driver. It's probably not a good idea to do this anyway, so take this bit out of the table test masks. Submitted by: Ben Hutchings Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* sfxge: more accurate calculation of maximum number of TSO segmentsarybchik2015-02-212-4/+14
| | | | | Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
* cxgbe(4): there is no need to force an "unimplemented" panic needlessly.np2015-02-201-3/+0
| | | | | The calls to free_nm_txq and free_nm_rxq are made just a few lines prior to the panic.
* sfxge: reap Tx descriptors on unblockarybchik2015-02-201-1/+4
| | | | | | | | | Otherwise when processing finally comes to efx_tx_qdesc_post() it could be insufficient space between reaped and added to post pending descriptors. Sponsored by: Solarflare Communications, Inc. Approved by: gnn (mentor)
OpenPOWER on IntegriCloud