summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Fix Coverity defects in isci(4) driver.jimharris2012-02-076-61/+50
| | | | | Sponsored by: Intel Approved by: scottl
* Acquire the adapter lock before updating fields of the filter structure.np2012-02-071-10/+10
| | | | | Submitted by: gnn (different version) MFC after: 3 days
* Remove if_start from cxgb and cxgbe.np2012-02-074-50/+2
| | | | | Submitted by: jhb MFC after: 3 days
* cxgbe: reduce diffs with other branches.np2012-02-074-0/+28
| | | | | | Will help future MFCs from HEAD. MFC after: 3 days
* Contribute some example code which demonstrates how to initialise theadrian2012-02-061-2/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | radar parameters for the AR5416 and later NICs. These parameters have been tested on the following NICs: * AR5416 * AR9160 * AR9220 * AR9280 And yes, these will return radar pulse parameters and (for AR9160 and later) radar FFT information as PHY errors. This is again not enough to do radar detection, it's just here to faciliate development and validation of radar detection algorithms. The (pulse, not FFT) decoding code for AR5212, AR5416 and later NICs exist in the HAL. This code is disabled for now as generating radar PHY errors can quickly cause issues in busy environment.s Some further debugging of the RX path is needed. Finally, these parameters are likely not useful for the AR5212 era NICs. The madwifi-dfs branch should have suitable example parameters for the 11a era NICs.
* Remove extra semicolon.mav2012-02-051-1/+1
| | | | Submitted by: emaste
* Fix the netback driver build for i386.ken2012-02-021-0/+2
| | | | | | | | | | | | | netback.c: Add missing VM includes. xen/xenvar.h, xen/xenpmap.h: Move some XENHVM macros from <machine/xen/xenpmap.h> to <machine/xen/xenvar.h> on i386 to match the amd64 headers. conf/files: Add netback to the build. Submitted by: jhb MFC after: 3 days
* Use new OSS-based BSD-licensed header for cs sound driver.pfg2012-02-013-18/+3557
| | | | | | | | | | | | | | | | | The cs driver requires a table with firmware values. An alternative firmware is available in a similar Open Sound System driver. This is actually a partial revert of Revision 77504. Special thanks to joel@ for patiently testing several replacement attempts. The csa driver and the complete sound system are now free of the GPL. Tested by: joel Approved by: jhb (mentor) MFC after: 3 weeks
* Adjust mvs(4) to handle interrupt cause reg depending on the actual number ofraj2012-02-012-10/+16
| | | | | | | | | | | | | | | | channels available - current code treats bits 4:7 in 'SATAHC interrupt mask' and 'SATAHC interrupt cause' as flags for SATA channels 2 and 3 - for embedded SATA controllers (SoC) these bits have been marked as reserved in datasheets so far, but for some new and upcoming chips they are used for purposes other than SATA Submitted by: Lukasz Plachno Reviewed by: mav Obtained from: Semihalf MFC after: 2 weeks
* Support AR9281/AR5B91 - a 1x2 stream device based on the AR9280.adrian2012-01-312-4/+9
| | | | | | | | | | | | | | | | * Override the TX/RX stream count if the EEPROM reports a single RX or TX stream, rather than assuming the device will always be a 2x2 strea device. * For AR9280 devices, don't hard-code 2x2 stream. Instead, allow the ar5416FillCapabilityInfo() routine to correctly determine things. The latter should be done for all 11n chips now that ar5416FillCapabilityInfo() will set the TX/RX stream count based on the active TX/RX chainmask in the EEPROM. Thanks to Maciej Milewski for donating some AR9281 NICs to me for testing.
* Correctly fetch the TX/RX stream count from the HAL.adrian2012-01-311-2/+2
| | | | Pointy hat to: me
* Make sound(4) more flexible in setting soft buffer and block sizes whenmav2012-01-313-25/+53
| | | | | | | | | | | | | | | | | | | hardware imposes strict limitations on hard buffer and block sizes. Previous code set soft buffer to be no smaller then hard buffer. On some cards with fixed 64K physical buffer that caused up to 800ms play latency. New code allows to set soft buffer size down to just two blocks of the hard buffer and to not write more then that size ahead to the hardware buffer. As result of that change I was able to reduce full practically measured record-playback loop delay in those conditions down to only about 115ms with theoretical playback latency of only about 50ms. New code works fine for both vchans and direct cases. In both cases sound(4) tries to follow hw.snd.latency_profile and hw.snd.latency values and application-requested buffer and block sizes as much as limitation of two hardware blocks allows. Reviewed by: silence on multimedia@
* Add isci(4) driver for amd64 and i386 targets.jimharris2012-01-31256-0/+111924
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The isci driver is for the integrated SAS controller in the Intel C600 (Patsburg) chipset. Source files in sys/dev/isci directory are FreeBSD-specific, and sys/dev/isci/scil subdirectory contains an OS-agnostic library (SCIL) published by Intel to control the SAS controller. This library is used primarily as-is in this driver, with some post-processing to better integrate into the kernel build environment. isci.4 and a README in the sys/dev/isci directory contain a few additional details. This driver is only built for amd64 and i386 targets. Sponsored by: Intel Reviewed by: scottl Approved by: scottl
| * Rebase user/jimharris/isci branch from head.jimharris2012-01-3179-6338/+22082
| |\
| * | Fix ATAPI code path to ensure bus_dma_segment structures are only usedjimharris2012-01-302-2/+4
| | | | | | | | | | | | | | | | | | | | | within bus_dmamap_load context. Sponsored by: Intel Reported by: Sohaib Ahsan <sohaib dot ahsan intel com>
| * | Rebase user/jimharris/isci branch from head.jimharris2012-01-26382-16444/+79558
| |\ \
| * | | Add all isci driver source code to sys/dev/isci for the Intel C600jimharris2012-01-25255-0/+111908
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Patsburg) integrated SAS controller. sys/dev/isci contains all files specific to FreeBSD. sys/dev/isci/scil contains OS-agnostic library maintained by Intel and modified to best integrate into FreeBSD kernel build environment. Sponsored by: Intel Reviewed by: scottl
| * | | Modify GENERIC, files and options for isci (Intel C600 SAS controller) driver.jimharris2012-01-061-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Also add brief README and cleanup Makefile. Reviewed by: scottl sbruno
* | | | Fix a spelling mistake in the surprise link down error constant.jhb2012-01-311-1/+1
| | | | | | | | | | | | | | | | Submitted by: glebius
* | | | Isolate v_caddr_t in the ie driver.pluknet2012-01-311-0/+3
| | | | | | | | | | | | | | | | Submitted by: Bruce Evans on net@
* | | | Just in case, clear stream interrupts before enabling them.mav2012-01-311-0/+2
| |_|/ |/| |
* | | Radar API related fixes.adrian2012-01-305-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * For legacy NICs, the combined RSSI should be used. For earlier AR5416 NICs, use control chain 0 RSSI rather than combined RSSI. For AR5416 > version 2.1, use the combined RSSI again. * Add in a missing AR5212 HAL method (get11nextbusy) which may be called by radar code. This serves no functional change for what's currently in FreeBSD.
* | | Wrap the bool typedefjfv2012-01-301-0/+2
| | |
* | | Improve media status reporting, when the driver knows...imp2012-01-301-2/+3
| | |
* | | New hardware support: Intel X540 adapter support added.jfv2012-01-3022-3605/+6100
| | | | | | | | | | | | | | | | | | Some shared code reorganization along with the new adapter. Sync changes to OACTIVE in igb into this driver. Misc small fixes.
* | | Add a constant for the PCI-e surprise link down uncorrectable error.jhb2012-01-301-0/+1
| | |
* | | Fix typo in comments.mav2012-01-301-1/+1
| | |
* | | GS105v3 exhibit the same behavioreadler2012-01-291-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | PR: docs/135999 Submitted by: Boris Kochergin <spawky@acm.poly.edu> No objection from: jfv Approved by: cperciva MFC after: 3 days
* | | Oops, commit a missing implementation change.adrian2012-01-281-2/+9
| | | | | | | | | | | | | | | Whilst I'm here, add a comment about what would happen in this function if hypothetically you had a radar pattern matching detector written.
* | | Change the prototype so the radar enable can fail.adrian2012-01-281-1/+1
| | |
* | | Two changes from my DFS work:adrian2012-01-281-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | * Grab the net80211com lock when calling ieee80211_dfs_notify_radar(). * Use the tsf extend function to turn the 64 bit base TSF into a per- frame 64 bit TSF. This will improve radiotap logging (which will now have a (more) correct per-frame TSF, rather then the single TSF64 value read at the beginning of ath_rx_proc().
* | | Avoid to check the same cache line/variable from all the lockingattilio2012-01-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | primitives by breaking stop_scheduler into a per-thread variable. Also, store the new td_stopsched very close to td_*locks members as they will be accessed mostly in the same codepaths as td_stopsched and this results in avoiding a further cache-line pollution, possibly. STOP_SCHEDULER() was pondered to use a new 'thread' argument, in order to take advantage of already cached curthread, but in the end there should not really be a performance benefit, while introducing a KPI breakage. In collabouration with: flo Reviewed by: avg MFC after: 3 months (or never) X-MFC: r228424
* | | Fix HBR enabling condition. cchs is from 0 to 7, not from 1 to 8.mav2012-01-281-1/+1
| | |
* | | pmc_*_initialize may return NULL if the CPU is not supported, so checkemaste2012-01-281-1/+1
| | | | | | | | | | | | | | | | | | that md is not null before dereferencing it. PR: kern/156540
* | | Implement OF_printf() using kvprintf() directly, avoiding to use amarius2012-01-271-4/+18
| | | | | | | | | | | | buffer and allowing to handle newlines properly
* | | Using ATA_CAM along with ATAPI DMA causes data corruption with ALI_NEWmarius2012-01-272-0/+8
| | | | | | | | | | | | | | | | | | and CMD controllers for reasons unknown so disable it. PR: 164226
* | | Some laptops have weak power controllers that cannot tolerate multipleimp2012-01-271-0/+7
| | | | | | | | | | | | | | | | | | cards powering up at once. Work around the easy case (multiple cards inserted on boot) with a short sleep and a long comment. This improves reliability on those laptops with power hungry cards.
* | | On state changes from RUN to anything else the AGGR sessions arebschmidt2012-01-271-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | cleared/dropped leading to qid2tap[n] being NULL as there no longer is a tap. Now, if there have been lots of frames queued the firmware processes and returns those after the tap is gone. Tested by: osa MFC after: 1 week
* | | Minor cleanups to the csa snd driver.pfg2012-01-262-23/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove unneeded temporary variable (data) to better match the OSS code. Remove some unused constants and type definitions. Tested by: joel Approved by: jhb (mentor) MFC after: 3 weeks
* | | Bring in the LSI-supported version of the mps(4) driver.ken2012-01-2624-1297/+10530
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This involves significant changes to the mps(4) driver, but is not a complete rewrite. Some of the changes in this version of the driver: - Integrated RAID (IR) support. - Support for WarpDrive controllers. - Support for SCSI protection information (EEDP). - Support for TLR (Transport Level Retries), needed for tape drives. - Improved error recovery code. - ioctl interface compatible with LSI utilities. mps.4: Update the mps(4) driver man page somewhat for the driver changes. The list of supported hardware still needs to be updated to reflect the full list of supported cards. conf/files: Add the new driver files. mps/mpi/*: Updated version of the MPI header files, with a BSD style copyright. mps/*: See above for a description of the new driver features. modules/mps/Makefile: Add the new mps(4) driver files. Submitted by: Kashyap Desai <Kashyap.Desai@lsi.com> Reviewed by: ken MFC after: 1 week
* | | Update PCI IDs for ciss controllers that are supported by this driver.sbruno2012-01-261-2/+9
| | | | | | | | | | | | | | | | | | Submitted by: scott.benesh@hp.com Obtained from: Yahoo! Inc and HP MFC after: 1 week
* | | Xen netback driver rewrite.ken2012-01-263-1249/+4723
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | share/man/man4/Makefile, share/man/man4/xnb.4, sys/dev/xen/netback/netback.c, sys/dev/xen/netback/netback_unit_tests.c: Rewrote the netback driver for xen to attach properly via newbus and work properly in both HVM and PVM mode (only HVM is tested). Works with the in-tree FreeBSD netfront driver or the Windows netfront driver from SuSE. Has not been extensively tested with a Linux netfront driver. Does not implement LRO, TSO, or polling. Includes unit tests that may be run through sysctl after compiling with XNB_DEBUG defined. sys/dev/xen/blkback/blkback.c, sys/xen/interface/io/netif.h: Comment elaboration. sys/kern/uipc_mbuf.c: Fix page fault in kernel mode when calling m_print() on a null mbuf. Since m_print() is only used for debugging, there are no performance concerns for extra error checking code. sys/kern/subr_scanf.c: Add the "hh" and "ll" width specifiers from C99 to scanf(). A few callers were already using "ll" even though scanf() was handling it as "l". Submitted by: Alan Somers <alans@spectralogic.com> Submitted by: John Suykerbuyk <johns@spectralogic.com> Sponsored by: Spectra Logic MFC after: 1 week Reviewed by: ken
* | | Press some more info into the PCM device name:mav2012-01-261-8/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - add "+HP" in case of headphones redirection; - add device type for analog devices, if all pins have the same. As result now it may look like "Analog 5.1+HP/2.0" or "Front Analog Mic". I hope it will be more useful than long and confusing. MFC after: 2 months Sponsored by: iXsystems, Inc.
* | | Fix typo in r230571.mav2012-01-261-1/+1
| | | | | | | | | | | | Submitted by: trasz
* | | ixgbe changes:luigi2012-01-264-44/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - remove experimental code for disabling CRC - use the correct constant for conversion between interrupt rate and EITR values (the previous values were off by a factor of 2) - make dev.ix.N.queueM.interrupt_rate a RW sysctl variable. Changing individual values affects the queue immediately, and propagates to all interfaces at the next reinit. - add dev.ix.N.queueM.irqs rdonly sysctl, to export the actual interrupt counts Netmap-related changes for ixgbe: - use the "new" format for TX descriptors in netmap mode. - pass interrupt mitigation delays to the user process doing poll() on a netmap file descriptor. On the RX side this means we will not check the ring more than once per interrupt. This gives the process a chance to sleep and process packets in larger batches, thus reducing CPU usage. On the TX side we take this even further: completed transmissions are reclaimed every half ring even if the NIC interrupts more often. This saves even more CPU without any additional tx delays. Generic Netmap-related changes: - align the netmap_kring to cache lines so that there is no false sharing (possibly useful for multiqueue NICs and MSIX interrupts, which are handled by different cores). It's a minor improvement but it does not cost anything. Reviewed by: Jack Vogel Approved by: Jack Vogel
* | | Add another bunch of CODEC IDs.mav2012-01-263-13/+136
| | |
* | | Add some node debugging which has helped me track down which particularadrian2012-01-261-0/+7
| | | | | | | | | | | | concurrent vap->iv_bss free issues have been occuring.
* | | Include opt_wlan.h before net80211 includes; so IEEE80211_* configurationadrian2012-01-261-0/+2
| | | | | | | | | | | | | | | | | | | | | flags are correctly handled. This is required for this to load when IEEE80211_DEBUG_REFCNT is defined.
* | | Update sbp_targ such that it can actually handle multiple CTIO's during ↵sbruno2012-01-251-79/+314
| |/ |/| | | | | | | | | operation PR: kern/119575
* | Oops, fix the loader tunable name added in r230551.mav2012-01-251-2/+2
| |
OpenPOWER on IntegriCloud