aboutsummaryrefslogtreecommitdiff
path: root/sys
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-102-3/+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-0920-89662/+103266
| | | | | | | | 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
* Return the timestamps from the corresponding namecache entry on a negativeJohn Baldwin2016-02-021-0/+1
| | | | | | | | | | | namecache hit. This was ommitted due to a merging error in r238913. The effect was to usually break caching of negative name lookups in the NFS client. Submitted by: bde Notes: svn path=/stable/7/; revision=295160
* 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 r287698: Fixing a memory leak on module unloading.Tai-hwa Liang2015-10-261-0/+1
| | | | Notes: svn path=/stable/7/; revision=289988
* MFC r238980:Tai-hwa Liang2015-10-241-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Just like the other file systems found in /sys/fs, g_vfs_open() should be paried with g_vfs_close(). Though g_vfs_close() is a wrapper around g_wither_geom_close(), r206130 added the following test in g_vfs_open(): if (bo->bo_private != vp) return (EBUSY); Which will cause a 'Device busy' error inside reiserfs_mountfs() if the same file system is re-mounted again after umount or mounting failure: (case 1, /dev/ad4s3 is not a valid REISERFS partition) # mount -t reiserfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Invalid argument # mount -t msdosfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Device busy (case 2, /dev/ad4s3 is a valid REISERFS partition) # mount -t reiserfs -o ro /dev/ad4s3 /mnt # umount /mnt # mount -t reiserfs -o ro /dev/ad4s3 /mnt mount: /dev/ad4s3: Device busy On the other hand, g_vfs_close() 'fixed' the above cases by doing an extra step to keep 'sc->sc_bo->bo_private' and 'cp->private' pointers synchronised. Reviewed by: kib Notes: svn path=/stable/7/; revision=289889
* MFC r286888: Using consistent coding style to deal with error inside the loop.Tai-hwa Liang2015-10-071-2/+2
| | | | Notes: svn path=/stable/7/; revision=288988
* 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 281887:John Baldwin2015-06-028-8/+8
| | | | | | | | Reassign copyright statements on several files from Advanced Computing Technologies LLC to Hudson River Trading LLC. Notes: svn path=/stable/7/; revision=283927
* 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 r283254:Dimitry Andric2015-05-281-2/+4
| | | | | | | | | | | | | | | | | Ensure that the static structs emitted by the MODULE_DEPEND() and MODULE_VERSION() macros don't end up as .comm symbols, when all the version fields are zero. Normally, such symbols will end up in .bss, but for kernel module version objects, this can lead to "garbage" version numbers. Fix this by instructing the compiler to always put these structs in the .data segment instead. Reported by: delphij, ae Notes: svn path=/stable/7/; revision=283642
* 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 r271727David C Somayajulu2014-09-221-5/+0
| | | | | | | Remove clean option form Makefile Notes: svn path=/stable/7/; revision=271985
* MFC r271726David C Somayajulu2014-09-221-5/+0
| | | | | | | Remove clean option in Makefile Notes: svn path=/stable/7/; revision=271984
* 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 r237398:Alexander Motin2014-06-041-1/+1
| | | | | | | | | | | | | In camisr() clear CAM_SIM_ON_DONEQ flag after camisr_runqueue() purged SIM done queue. Clearing it before caused extra SIM queueing in some cases. It was invisible during normal operation, but during USB device unplug and respective SIM destruction it could keep pointer on SIM without having counted reference and as result crash the system by use afer free. PR: usb/168743 Notes: svn path=/stable/7/; revision=267052
* MFC r265703David C Somayajulu2014-05-125-42/+35
| | | | | | | | | | | 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-1023-176/+27
| | | | | | | | | | 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
* MFC r261618:Xin LI2014-02-221-0/+1
| | | | | | | | | | | | | | | | In g_eli_crypto_hmac_init(), zero out after using the ipad buffer, k_ipad. Note that the two consumers in geli(4) are not affected by this issue because the way the code is constructed and as such, we believe there is no security impact with or without this change with geli(4)'s usage. Reported by: Serge van den Boom <serge vdboom.org> Reviewed by: pjd Notes: svn path=/stable/7/; revision=262319
* Revert MFC of r258821 - it was already handled by MFC of r239672.Peter Wemm2014-01-081-4/+2
| | | | | | | Pointy hat to: peter Notes: svn path=/stable/7/; revision=260437
* Merged r260415 from head.Eric Davis2014-01-072-4/+32
| | | | | | | Approved by: davidch Notes: svn path=/stable/7/; revision=260427
* MFC r258821 - fix tcp simultaneous closePeter Wemm2014-01-071-2/+4
| | | | | | | PR: kern/99188 Notes: svn path=/stable/7/; revision=260421
* MFC Broadcom 10Gb bxe driverEric Davis2014-01-0531-0/+178034
| | | | | | | | | 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 r260095:Dimitry Andric2014-01-046-16/+17
| | | | | | | | | | | | | For sys/boot/i386 and sys/boot/pc98, separate flags to be passed directly to the linker (LD_FLAGS) from flags passed indirectly, via the compiler driver (LDFLAGS). This is because several Makefiles under sys/boot/i386 and sys/boot/pc98 use ${LD} directly to link, and the normal LDFLAGS value should not be used in these cases. Notes: svn path=/stable/7/; revision=260291
* MFC r260103:Dimitry Andric2014-01-041-10/+0
| | | | | | | | | | In sys/amd64/amd64/pmap.c, remove static function pmap_is_current(), which has been unused since r189415. Reviewed by: alc Notes: svn path=/stable/7/; revision=260289
* 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