aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* MFC r338038: Extending the delay cycles to give the codec more time to pump ↵Tai-hwa Liang2018-08-261-1/+1
| | | | | | | | | | | | | | | | ADC data across the AC-link. Without this patch, some CS4614 cards will need users to reload the driver manually or the hardware won't be initialised properly. Something like: # kldload snd_csa # kldunload snd_csa # kldload snd_csa Tested with: Terratec SiXPack 5.1+ Notes: svn path=/stable/7/; revision=338329
* MFC r336438David C Somayajulu2018-08-091-13/+29
| | | | | | | | | | | | | Fixes for the following issues: 1. Fix taskqueues drain/free to fix panic seen when interface is being bought down and in parallel asynchronous link events happening. 2. Fix bxe_ifmedia_status() Submitted by:Vaishali.Kulkarni@cavium.com and Anand.Khoje@cavium.com Notes: svn path=/stable/7/; revision=337514
* MFC r333004David C Somayajulu2018-05-091-5/+5
| | | | | | | | | | | Fix Issue with adding MultiCast Addresses. When multicast addresses are added/deleted, the delete the multicast addresses previously programmed in HW and reprogram the new set of multicast addresses. Submitted by:Vaishali.Kulkarni@cavium.com Notes: svn path=/stable/7/; revision=333441
* MFC r314365David C Somayajulu2017-03-245-83/+334
| | | | | | | | | | | | | | 1. state checks in bxe_tx_mq_start_locked() and bxe_tx_mq_start() to sync threads during interface down or detach. 2. add sysctl to set pause frame parameters 3. increase max segs for TSO packets to BXE_TSO_MAX_SEGMENTS (32) 4. add debug messages for PHY 5. HW LRO support restricted to FreeBSD versions 8.x and above. Submitted by: Vaishali.Kulkarni@cavium.com Notes: svn path=/stable/7/; revision=315885
* MFC r298591David C Somayajulu2016-05-101-2/+2
| | | | | | | | 1. Removed -Wno-shift-negative-value from Makefile 2. Fixed warning its absence caused in bxe_elink.c Notes: svn path=/stable/7/; revision=299308
* MFC r298496David C Somayajulu2016-05-101-141/+0
| | | | | | | Remove Unused/Dead Code Notes: svn path=/stable/7/; revision=299307
* MFC r298294David C Somayajulu2016-05-103-67/+169
| | | | | | | | | | | | 1. modify fwdump (a.k.a grcdump) so that grcdump memory is allocated and freed on as needed basis. 2. grcdump can be taken at failure points by invoking bxe_grc_dump() when trigger_grcdump sysctl flag is set. When grcdump is taken grcdump_done sysctl flag is set. 3. grcdump_done can be monitored by the user to retrieve the grcdump Notes: svn path=/stable/7/; revision=299306
* MFC r297884David C Somayajulu2016-04-193-5/+400
| | | | | | | | | Add support for Flash Update Submitted by:nrapendra.singh@qlogic.com;vaishali.kulkarni@qlogic.com;davidcs@freebsd.org Notes: svn path=/stable/7/; revision=298291
* MFC r297873David C Somayajulu2016-04-192-23/+63
| | | | | | | | | | | | 1. Process tx completions in bxe_periodic_callout_func() and restart transmissions if possible. 2. For SIOCSIFFLAGS call bxe_init_locked() only if !BXE_STATE_DISABLED 3. remove code not needed in bxe_init_internal_common() Submitted by:vaishali.kulkarni@qlogic.com;venkata.bhavaraju@qlogic.com Notes: svn path=/stable/7/; revision=298290
* MFC r297155David C Somayajulu2016-04-062-26/+70
| | | | | | | Modifications to achieve a common source base from FreeBSD7.x thru 10.x Notes: svn path=/stable/7/; revision=297625
* MFC r296579David C Somayajulu2016-03-141-27/+118
| | | | | | | | Fix code so that buf_ring allocation for Tx Queues and their mutexes is done during during bxe_attach() and freed during bxe_detach() Notes: svn path=/stable/7/; revision=296879
* MFC r296071David C Somayajulu2016-03-0919-89662/+103265
| | | | | | | | Upgrade the firmware carried in driver and loaded during hardware initialization (a.k.a STORM firmware) to version 7.13.1 (latest version) Notes: svn path=/stable/7/; revision=296583
* MFC r295830David C Somayajulu2016-02-254-1064/+110
| | | | | | | Remove dead code. Code Cleanup. Improve clarity in debug messages Notes: svn path=/stable/7/; revision=296044
* MFC r295823David C Somayajulu2016-02-252-42/+56
| | | | | | | | Modified the use of bxe_grc_dump() function so that it can be invoked directly at any potential error path, where a fwdump is needed. The fwdump (a.k.a grcdump) is stored in a driver buffer. The sysctl grcdump_done indicates if a fwdump was taken and waiting to be retrieved. The sysctl trigger_grcdump can be used to manually trigger a fwdump. Notes: svn path=/stable/7/; revision=296043
* MFC r292639David C Somayajulu2016-01-135-2/+2782
| | | | | | | Add support for firmware dump (a.k.a grcdump) Notes: svn path=/stable/7/; revision=293799
* MFC r292638David C Somayajulu2016-01-133-4/+23
| | | | | | | | | | | | | Check for packet_length is greater than 60 bytes as well as packet_length is greater than len_on_bd, before invoking the routine to handle jumbo over SGL (bxe_service_rxsgl()). Add counters for number of jumbo_over_SGL packets (rx_bxe_service_rxsgl) and erroneous jumbo_over_SGL packets (rx_erroneous_jumbo_sge_pkts) Fix formatting in bxe_sysctl_state() Notes: svn path=/stable/7/; revision=293798
* MFC r289199David C Somayajulu2016-01-131-1/+4
| | | | | | | Add support for reading device temperature Notes: svn path=/stable/7/; revision=293797
* MFC r286887: Using the error return code documented in the comment.Tai-hwa Liang2015-09-171-1/+1
| | | | | | | | | | | Though there is no direct midi_uninit() caller amongst existing drivers at this moment, a quick experiment indicates that EBUSY gives users more precise error message once drivers start to honour this result. For example, emu_midi_detach() should check the result of mpu401_uninit() and block module unloading if there is any MIDI I/O in progress. Notes: svn path=/stable/7/; revision=287888
* MFC r286886: Fixing typo as well as improving readability of a few comments.Tai-hwa Liang2015-09-161-6/+11
| | | | Notes: svn path=/stable/7/; revision=287858
* MFC r285973David C Somayajulu2015-08-052-22/+15
| | | | | | | | | | | | | | | | | - Avoid lock contention in the if_transmit callback by using trylock and enqueueing the frames when it fails. This way there is some latency removed from the transmitting path. - If IFF_DRV_OACTIVE is set (and also if IFF_DRV_RUNNING is not) just enqueue the desired frames and return successful transmit. This way we avoid to return errors on transmit side and resulting in possible out-of-order frames. Please note that IFF_DRV_OACTIVE is set everytime we get the threshold ring hit, so this can be happening quite often. Submitted by: Attilio.Rao@isilon.com Notes: svn path=/stable/7/; revision=286301
* MFC r285340:Dimitry Andric2015-07-281-1/+1
| | | | | | | | | | | | | Fix swapped copyin(9) arguments in cxgb's iwch_arm_cq() function. Detected by clang 3.7.0 with the warning: sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c:309:18: error: variable 'rptr' is uninitialized when used here [-Werror,-Wuninitialized] chp->cq.rptr = rptr; ^~~~ Notes: svn path=/stable/7/; revision=285942
* MFC r284739David C Somayajulu2015-06-301-3/+7
| | | | | | | | | tx_mtx should be grabbed before calling buf_ring_dequeue_sc() Submitted by: Attilio.Rao@isilon.com Notes: svn path=/stable/7/; revision=284981
* MFC r284470David C Somayajulu2015-06-302-1/+3
| | | | | | | | | | In bxe_set_mc_list(): added missing BXE_MCAST_UNLOCK() In __ecore_vlan_mac_h_exec_pending(): need to check for ECORE_PENDING Submitted by:gary.zambrano@qlogic.com Notes: svn path=/stable/7/; revision=284980
* MFC r284335David C Somayajulu2015-06-303-79/+47
| | | | | | | | | | | | | PHY LOCK acquires the hardware lock via bxe_acquire_phy_lock() and releases it via bxe_release_phy_lock(). It was simply acquiring a mutex earlier which can cause the PHY to use bogus values. Fixes intermittent link failures. bxe_ioctl() completes all functions within its context as opposed to a taskqueue earlier. bxe_handle_rx_mode_tq() no longer required. bxe_set_rx_mode() handles the functionality within its context Submitted by:gary.zambrano@qlogic.com Notes: svn path=/stable/7/; revision=284979
* MFC r283274David C Somayajulu2015-05-303-44/+49
| | | | | | | | | | Add stat counters for Jumbo Frames using SGE ring. Also remove the checks for IFCAP_LRO in bxe_alloc_fp_buffers() and bxe_pf_rx_q_prep() since both TPA and Jumbo can use SGE ring. Submitted by:gary.zambrano@qlogic.com Notes: svn path=/stable/7/; revision=283763
* MFC r283269David C Somayajulu2015-05-291-27/+79
| | | | | | | Submitted by: gary.zambrano@qlogic.com Notes: svn path=/stable/7/; revision=283761
* MFC r281006David C Somayajulu2015-04-071-1/+8
| | | | | | | When an mbuf allocation fails in the receive path, the mbuf containing the received packet is not sent to the host network stack and is reused again on the receive ring. Remaining received packets in the ring are not processed in that invocation of bxe_rxeof() and defered to the task thread Notes: svn path=/stable/7/; revision=281219
* MFC r271728David C Somayajulu2014-09-221-3/+12
| | | | | | | For ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() check bxe_debug flag before printing error message. Notes: svn path=/stable/7/; revision=271986
* MFC r268854David C Somayajulu2014-09-125-1/+35
| | | | | | | | | Initiate error recovery stats fail to update after 3 retries. Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to panic only if ECORE_STOP_ON_ERROR is defined. Notes: svn path=/stable/7/; revision=271479
* MFC r265703David C Somayajulu2014-05-124-42/+30
| | | | | | | | | | | Modify Copyright information and other strings to reflect Qlogic Corporation's purchase of Broadcom's NetXtreme business. Added clean option to Makefile Submitted by: David C Somayajulu (davidcs@freebsd.org) QLogic Corporation Notes: svn path=/stable/7/; revision=265920
* MFC r265411David C Somayajulu2014-05-1022-176/+22
| | | | | | | | | | Modify Copyright information to reflect Qlogic Corporation's purchase of Broadcom's NetXtreme business Submitted by:David C Somayajulu (davidcs@freebsd.org) QLogic Corporation Notes: svn path=/stable/7/; revision=265794
* MFC 262999Eric Davis2014-03-211-78/+36
| | | | | | | | | | Fixed MSI interrupt allocation and handling. Fixed a DMA mapping leak that occurs when defragmenting packet chains. Approved by: davidch (mentor) Notes: svn path=/stable/7/; revision=263584
* Merged r260415 from head.Eric Davis2014-01-072-4/+32
| | | | | | | Approved by: davidch Notes: svn path=/stable/7/; revision=260427
* MFC Broadcom 10Gb bxe driverEric Davis2014-01-0522-0/+177989
| | | | | | | | | Merged r255736, r255861, r256299, r256341, r258187, r259928, r260113 Approved by: davidch (mentor) Notes: svn path=/stable/7/; revision=260357
* MFC r260112:Dimitry Andric2014-01-041-0/+6
| | | | | | | In sys/dev/sound/pci/maestro.c, #if 0 two unused static functions. Notes: svn path=/stable/7/; revision=260298
* MFC r260057:Dimitry Andric2014-01-041-15/+2
| | | | | | | | | | In sys/dev/scc, remove unused static function scc_setmreg(). While here, invoke scc_getmreg() in two more places where it can be used. Reviewed by: marcel Notes: svn path=/stable/7/; revision=260287
* MFC r260042:Dimitry Andric2014-01-041-5/+0
| | | | | | | | Remove superfluous old-style rcsid[] from if_my.c. There is already an __FBSDID() at the top of the file. Notes: svn path=/stable/7/; revision=260277
* MFC r260040:Dimitry Andric2014-01-041-1/+1
| | | | | | | | | In sys/dev/mcd/mcd.c, mark the static const COPYRIGHT string as __used, so it ends up in the object file, and no warnings are emitted about it being actually unused. Notes: svn path=/stable/7/; revision=260276
* MFC r260038:Dimitry Andric2014-01-041-0/+2
| | | | | | | In sys/dev/en/midway.c, #if 0 an unused static function. Notes: svn path=/stable/7/; revision=260275
* MFC r260016:Dimitry Andric2014-01-041-5/+0
| | | | | | | | Remove superfluous old-style rcsid[] from if_sk.c. There is already an __FBSDID() at the top of the file. Notes: svn path=/stable/7/; revision=260265
* MFC r252262:Jim Harris2013-07-031-4/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | For ATA_PASSTHROUGH commands, pretend isci(4) supports multiword DMA by treating it as UDMA. This fixes a problem introduced in r249933/r249939, where CAM sends ATA_DSM_TRIM to SATA devices using ATA_PASSTHROUGH_16. scsi_ata_trim() sets protocol as DMA (not UDMA) which is for multi-word DMA, even though no such mode is selected for the device. isci(4) would fail these commands which is the correct behavior but not consistent with other HBAs, namely LSI's. smh@ did some further testing on an LSI controller, which rejected ATA_PASSTHROUGH_16 commands with mode=UDMA_OUT, even though only a UDMA mode was selected on the device. So this precludes adding any kind of mode detection in CAM to determine which mode to use on a per-device basis. Note: The reasons behind this change do not apply to stable/7. This MFC is to keep the driver consistent across stable branches and current. Sponsored by: Intel Notes: svn path=/stable/7/; revision=252647
* MFC r249815Sean Bruno2013-05-081-0/+13
| | | | | | | | | Return a lun count of 1 and a lun id of 0 when CAM attempts a REPORT_LUNS command on a disk device. This quieseces some noise on the console that recently appeared. Notes: svn path=/stable/7/; revision=250369
* MFC r249349Sean Bruno2013-04-251-3/+8
| | | | | | | Repair camcontrol output and use CAM defined values for string sizes Notes: svn path=/stable/7/; revision=249900
* MFC r249170Sean Bruno2013-04-191-3/+5
| | | | | | | | | Notify CAM on state* change to a logical volume not status. This resolves the issues reported regarding camcontrol devlist not showing the rebuild states of volumes unless an explicit camcontrol rescan was executed. Notes: svn path=/stable/7/; revision=249653
* MFC: r247632Marius Strobl2013-03-081-10/+11
| | | | | | | | | | | | | - Complete r231621 (MFC'ed to stable/7 in r232094) by also blacklisting the bridge used by VMware for PCIe devices. While at it, update the comment now that we know that MSI-X doesn't work with ESXi 5.1 for Intel 82576 either and the underlying issue is a bug in the MSI-X allocation code of the hypervisor. Reported by: Harald Schmalzbauer - Make the nomatch table const. Notes: svn path=/stable/7/; revision=248054
* MFC r247334:Xin LI2013-03-011-1/+1
| | | | | | | | | | | | Correct a typo introduced in r153575, which gives inverted logic when handling blocking semantics when seeding. PR: kern/143298 Submitted by: James Juran <james juran baesystems com> Reviewed by: markm Notes: svn path=/stable/7/; revision=247511
* MFC r245459Sean Bruno2013-01-313-18/+42
| | | | | | | | | | | | | | | | | | | | | | Satisfy the intent of kern/151564: [ciss] ciss(4) should increase CISS_MAX_LOGICAL to 107 Submitter wanted to increase the number of logical disks supported by ciss(4) by simply raising the CISS_MAX_LOGICAL value even higher. Instead, consult the documentation for the raid controller (OPENCISS) and poke the controller bits to ask it for how many logical/physical disks it can handle. Revert svn R242089 that raised CISS_MAX_LOGICAL to 64 for all controllers. For older controllers that don't support this mechanism, fallback to the old value of 16 logical disks. Tested on P420, P410, P400 and 6i model ciss(4) controllers. This should will be MFC'd back to stable/9 stable/8 and stable/7 after the MFC period. Notes: svn path=/stable/7/; revision=246163
* MFC: r241875Marius Strobl2013-01-271-2/+0
| | | | | | | | Remove support for using Giant for locking within mpt(4). Finer grained locking has been working fine for ~5.5 years by now. Notes: svn path=/stable/7/; revision=245989
* MFC: r241875Marius Strobl2013-01-273-117/+0
| | | | | | | | Remove support for using Giant for locking within mpt(4). Finer grained locking has been working fine for ~5.5 years by now. Notes: svn path=/stable/7/; revision=245988
* MFC: r241874Marius Strobl2013-01-275-252/+30
| | | | | | | | After r241858 (MFC'ed to stable/7 in r242287), remove the remainder of FreeBSD ~4 support from mpt(4). Notes: svn path=/stable/7/; revision=245985