summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* MFC r272765: Remove one second wait for threads exit from icl_conn_close().mav2015-01-031-5/+3
| | | | Switch it from polling with pause() to using cv_wait()/cv_signal().
* MFC r274033 (by trasz):mav2015-01-031-3/+3
| | | | s/icl_pdu_new/icl_pdu_new_empty/g; no functional changes.
* MFC r274036 (by trasz):mav2015-01-033-9/+9
| | | | | s/icl_pdu_new_bhs/icl_pdu_new/; no functional changes, just a little nicer code.
* MFC r275864: Make sequence numbers checks more strict.mav2015-01-032-21/+31
| | | | | | | | While we don't support MCS, hole in received sequence numbers may mean only PDU loss. While we don't support lost PDU recovery, terminate the connection to avoid stuck commands. While there, improve handling of sequence numbers wrap after 2^32 PDUs.
* MFC r275335:bryanv2015-01-011-417/+422
| | | | | | | | | | Cleanup and performance improvement of the virtio_blk driver - Add support for GEOM direct completion. Depending on the benchmark, this tends to give a ~30% improvement w.r.t IOPs and BW. - Remove an invariants check in the strategy routine. This assertion is caught later on by an existing panic. - Rename and resort various related functions to make more sense.
* MFC r264400,r265836:ngie2014-12-312-2/+2
| | | | | | | | | | | | | | r264400: NO_MAN= has been deprecated in favor of MAN= for some time, go ahead and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit. r265836: Remove last two NO_MAN= in the tree. In both of these cases, MAN= is what is needed.
* MFC r275951: Log mmc and sd command failures.ian2014-12-271-0/+31
|
* MFC r275944, r275946, r275949, r275950:ian2014-12-272-12/+39
| | | | | | | | | | | Add code to set and reset open-drain mode on the bus when requested. When command and data interrupts have been aggregated together, don't do the data-completed processing if a command-error interrupt is also asserted. Add a new sdhci quirk, SDHCI_QUIRK_WAITFOR_RESET_ASSERTED, to work around TI OMAP controllers which will return the reset-in-progress bit as zero if you read the status register too fast after setting the reset bit.
* MFC r274967:ian2014-12-271-0/+10
| | | | Add busdma sync ops before reading and after modifying the descriptor rings
* MFC r274641, r274644, r274822, r276049:ian2014-12-274-5/+86
| | | | | | | | | | | Allow i2c bus speed to be configured via hints, FDT data, and sysctl. Implement bus speed setting for OMAP4, AM335x, and imx5/6. Fix the i2c bus speed divisors for TI OMAP4 and AM335x to give the advertised 100, 400, and 1000 KHz speeds. PR: 195009
* MFC r274412, r274413, r274414: Bugfixes for imx5/6 pinctrl driver.ian2014-12-271-6/+5
|
* MFC r275960:kib2014-12-271-1/+1
| | | | Increase allowed size of the microcode blob to 32KB.
* MFC r274926: Squelch a (bogus) gcc used before init warningian2014-12-271-0/+1
|
* MFC 276174:scottl2014-12-262-2/+5
| | | | | | | Fix tunable and sysctl handling of the fail_on_task_timeout knob. Reviewed by: emax Obtained from: Netflix, Inc.
* MFC r274188, r274189:ian2014-12-262-2/+2
| | | | DMA tag alignment should be 1 (not 0) when a device can dma at any address.
* MFC r275790 and r275791:hselasky2014-12-262-8/+8
| | | | | Resolve USB driver identification conflict. Regenerate etc/devd/usb.conf.
* MFC r259675, r262128, r262129, r275605, r276239 and r276240:hselasky2014-12-262-7/+52
| | | | | | | | Add more USB quirks. PR: 178771 PR: 180617 PR: 195372
* MFC r275925: Slightly polish iSCSI parameters negotiation.mav2014-12-261-0/+4
|
* MFC r275118: Some microoptimizations.mav2014-12-262-14/+13
|
* MFC r275112:mav2014-12-261-3/+3
| | | | | | | Make isp_find_pdb_by_*() search for targets in portdb in reverse order. Records with target_mode == 1 are allocated from the end of portdb, so it seems logical to start search from the end not traverse whole array.
* MFC r272223:smh2014-12-211-2/+8
| | | | | | Prevent possible use after free in ahci direct mode Sponsored by: Multiplay
* MFC r268156:smh2014-12-211-5/+1
| | | | | | | | Various bugfixes from Stefano GarzarellaA This has been proved to fix reproducable panics on 10.x. Sponsored by: Multiplay
* MFC r274819:smh2014-12-2132-139/+141
| | | | | | | | | Prevent overflow issues in timeout processing MFC r274852: Fix build with asr driver Sponsored by: Multiplay
* MFC r269615:smh2014-12-213-176/+59
| | | | | | Various fixes to hptrr(4) Sponsored by: Multiplay
* MFC r269613:smh2014-12-213-183/+58
| | | | | | Various fixes to hptnr(4) Sponsored by: Multiplay
* MFC r267290:smh2014-12-213-47/+51
| | | | | | Make the hpt27xx(4) driver MPSAFE Sponsored by: Multiplay
* MFC r266772:smh2014-12-211-172/+102
| | | | | | Various cleanups and fixes including switching from timeout to callout Sponsored by: Multiplay
* MFC r272000:smh2014-12-216-21/+27
| | | | | | Switch from timeout(9) to callout(9) Sponsored by: Multiplay
* MFC r272735:smh2014-12-217-7673/+8383
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support upto 256VD. MFC r272737: Support 32-bit linux binaries on FreeBSD 64bit. MFC r272738: Fix the minor svn add issue. MFC r272739: Extended MSI-x vectors support for Invader and Fury(12Gb/s HBA). MFC r272740: Add d_poll support. MFC r272741: Fix leak of mfi cmd in the passthru and correctly limit oustanding. MFC r272742: Import vendor Phase 6.5 driver MFC r272744: Style (9) fixes. MFC r273040: Fix for build issue on i386.xen and amd64.xen. Sponsored by: Multiplay
* MFC: r274487smh2014-12-214-373/+253
| | | | | | Lock iir(4) and mark it MPSAFE. Sponsored by: Multiplay
* MFC 272897:jhb2014-12-161-7/+37
| | | | | | | | | | Various fixes to stats: - Read the counts of received, dropped, and transmitted management packets and add sysctl nodes for them. - Fix the total octets received/transmitted to read all 64 bits of the counters. - Add missing sysctl nodes for rlec, tncrs, fcruc, tor, and tot. - Remove spurious spaces.
* MFC r275606:hselasky2014-12-152-0/+9
| | | | Add more U3G USB IDs.
* MFC r275624:hselasky2014-12-151-0/+1
| | | | | | Add port routing support for Wildcat Point. PR: 195793
* MFC r274843, r274845:mav2014-12-061-52/+69
| | | | | | | | Move icl_pdu_get_data() and xpt_done() out of initiator's session lock. During heavy reads data copying in icl_pdu_get_data() may consume large percent of CPU time. Moving it out of the lock significantly reduces lock hold time and respectively lock congestion on read operations.
* MFC r272937: Fix r272936 build with old GCC.mav2014-12-051-1/+2
|
* MFC r268395:mav2014-12-051-1/+1
| | | | | | | Pass correct command that should be aborted to ISPCTL_ABORT_CMD. This makes XPT_ABORT to work for me on initiator side of isp(4). Previous code was trying to abort the XPT_ABORT itself and failed.
* MFC r274922:dim2014-12-041-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the following -Werror warning from clang 3.5.0, while building the ath kernel module: sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: error: taking the absolute value of unsigned type 'unsigned int' has no effect [-Werror,-Wabsolute-value] if (abs(lp[0] * EEP_SCALE - target) < EEP_DELTA) { ^ sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs' #define abs(_a) __builtin_abs(_a) ^ sys/dev/ath/ath_hal/ar5212/ar5212_reset.c:2642:7: note: remove the call to '__builtin_abs' since unsigned values cannot be negative sys/dev/ath/ah_osdep.h:74:18: note: expanded from macro 'abs' #define abs(_a) __builtin_abs(_a) ^ 1 error generated. This warning occurs because both lp[0] and target are unsigned, so the subtraction expression is also unsigned, and calling abs() is a no-op. However, the intention was to look at the absolute difference between the two unsigned quantities. Introduce a small static function to clarify what we're doing, and call that instead. Reviewed by: adrian Differential Revision: https://reviews.freebsd.org/D1212
* MFC r275110:hselasky2014-12-032-0/+2
| | | | | | Add new USB quirk. PR: 195372
* MFC r275124: Fix WWNN/WWPN generation for virtual channels.mav2014-12-031-6/+3
|
* MFC r275123: Fix incorrect check, blocking MULTIID functionality.mav2014-12-031-1/+1
|
* MFC r275101:mav2014-12-0311-0/+52
| | | | Add bunch of PCI IDs of Intel Wildcat Point (9 Series) chipsets.
* MFC r274821:brooks2014-12-022-2/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge from CheriBSD: commit d0c7d235c09fc65dbdb278e7016a96f79c6a49cc Make the Altera JTAG UART device driver slightly more forgiving of the foibles of a sub-par hrdware interface by increasing the timeout for spotting JTAG polling from one to two seconds. commit 19ed45a18832560dab967c179d83b71081c3a220 Update comment. commit 8edfe803f033cc8e33229f99894c2b7496a44d5f Add a comment about a device-driver race condition that could cause the BERI pipeline to wedge awaiting JTAG in the event that both the low-level console and the tty layer decide to write to the JTAG FIFO just before JTAG is disconnected. Resolving this race is a bit tricky as it looks like there isn't a way to 'give the character back' to the tty layer when we discover the race. The easy fix is to drop the character, which we don't yet do, but perhaps should as that is a better outcome than wedging the pipeline. commit 2ea26cf579c9defcf31e413e7c9b0fbc159237fc Add a comment about an inherent race with hardware in the Altera JTAG UART's low-level console code. Submitted by: rwatson Sponsored by: DARPA, AFRL
* MFC r274820:brooks2014-12-021-13/+0
| | | | | | | | Merge from CheriBSD (2e28d2a3090239b30481f35dc452ad95a5c57389): Remove initalized, but unused devname variable Sponsored by: DARPA, AFRL
* MFC r269634:tijl2014-12-022-4/+10
| | | | | | | | | | | | | | drm: fix usage of vm_phys_fictitious_to_vm_page vm_phys_fictitious_to_vm_page should not be called directly, even when operating on a range that has been registered using vm_phys_fictitious_reg_range. PHYS_TO_VM_PAGE should be used instead because on arches that use VM_PHYSSEG_DENSE the page might come directly from vm_page_array. Reported by: nwhitehorn Tested by: nwhitehorn, David Mackay <davidm.jx8p@gmail.com> Sponsored by: Citrix Systems R&D
* MFC r273969:tijl2014-12-021-2/+1
| | | | Use default memory type for TTM buffer objects that may be cached.
* MFC r273862,273902:tijl2014-12-027-60/+55
| | | | | | | | | | | | | | | Port the TTM AGP backend to the FreeBSD agp driver and enable AGP support in the radeonkms driver. Note: In PCI mode virtual addresses on the graphics card that map to system RAM are translated to physical addresses by the graphics card itself. In AGP mode address translation is done by the AGP chipset so fictitious addresses appear on the system bus. For the CPU cache management to work correctly when the CPU accesses this memory it needs to use the same fictitious addresses (and let the chipset translate them) instead of using the physical addresses directly. Reviewed by: kib
* MFC r273856,273863,273963-273965tijl2014-12-028-69/+130
| | | | | | | | | | | | | - Add two new functions to the AGP driver KPI to bind/unbind arbitrary sets of pages into the GTT. - Avoid possible overflow in agp_generic_alloc_memory. - In agp(4) avoid the need to flush all cpu caches with wbinvd between updating the GTT and flushing the AGP TLB by storing the GTT in write-combining memory. - In agp_amd_bind_page don't flush the AGP TLB. It's done by the calling function. - agp_generic_unbind_memory: flush AGP TLB before unwiring pages agp_bind_pages: assert that pages have been wired down
* MFC r274918:hselasky2014-12-011-2/+13
| | | | | | | | | Don't use the synchronization endpoint unless referenced by the isochronous endpoint descriptor used for the data transfers, hence the synchronization feature might not be supposed to be supported [yet]. This makes seamless playback synced with the USB HOST clock work with the DN32-USB module for Midas audio systems and possibly other similar products from Klark Teknik.
* MFC r274325:bryanv2014-11-291-7/+6
| | | | | | | | | Enable LRO by default when available on vtnet interfaces The prior change to not enable LRO by default has confused several people. The configurations where LRO is problematic is not the typical use case for VirtIO, and due to other issues, this often requires checksum offloading to be disabled anyways.
* MFC r273515, r274055, r274063, r274215, r274065, r274502:bryanv2014-11-292-0/+1484
| | | | Add VirtIO console driver.
OpenPOWER on IntegriCloud