aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused macro VT_CONSDEV_DECLARE. Join console device now declared in oneAleksandr Rybalko2014-07-281-48/+0
| | | | | | | | | | place. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=269185
* Update from mav@ - don't break the input switching.Adrian Chadd2014-07-271-6/+0
| | | | Notes: svn path=/head/; revision=269158
* Add support for my Lenovo T400.Adrian Chadd2014-07-272-0/+17
| | | | | | | | | Tested: * Lenovo T400, model w/ P8700 Intel CPU on-board Notes: svn path=/head/; revision=269152
* Add another revision of the AR8327.Adrian Chadd2014-07-261-0/+1
| | | | Notes: svn path=/head/; revision=269147
* Split the XHCI TRB allocations into smaller parts, so that we don'tHans Petter Selasky2014-07-262-22/+22
| | | | | | | | | | end up allocating contiguous busdma buffers above PAGE_SIZE bytes. MFC after: 1 week Tested by: Ruslan Bukin <br@bsdpad.com> Notes: svn path=/head/; revision=269139
* Remove bogus module dependencies.Marcel Moolenaar2014-07-261-2/+0
| | | | Notes: svn path=/head/; revision=269132
* Do not fail the low-level device probe simply because the kernelMarcel Moolenaar2014-07-261-4/+3
| | | | | | | | | | | doesn't have support for the Z8530. Embedded PowerPC platforms typically don't. Fail when the device class we actually need is not present. Obtained from: Juniper Networks, Inc. Notes: svn path=/head/; revision=269131
* Fix for division by zero.Hans Petter Selasky2014-07-264-2/+6
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=269127
* Some hooks in cxgbe(4) for the offloaded iSCSI driver.Navdeep Parhar2014-07-245-15/+371
| | | | | | | | | | | (I'm committing this on behalf of my colleagues in the Storage team at Chelsio). Submitted by: Sreenivasa Honnur <shonnur at chelsio dot com> Sponsored by: Chelsio Communications. Notes: svn path=/head/; revision=269076
* cxgbe(4): Keep track of the clusters that have to be freed by theNavdeep Parhar2014-07-233-29/+94
| | | | | | | | | | | | custom free routine (rxb_free) in the driver. Fail MOD_UNLOAD with EBUSY if any such cluster has been handed up to the kernel but hasn't been freed yet. This prevents a panic later when the cluster finally needs to be freed but rxb_free is gone from the kernel. MFC after: 1 week Notes: svn path=/head/; revision=269032
* Fix the igb(4) redirection table to correctly populate.Adrian Chadd2014-07-231-10/+14
| | | | | | | | | | | This is similar to the ixgbe(4) fix. Tested: * Intel I350 gigabit adapter Notes: svn path=/head/; revision=269009
* Add missing newline to an error message.Navdeep Parhar2014-07-221-1/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=268989
* Remove #ifdef-s to reduce difference to upstream.Aleksandr Rybalko2014-07-221-31/+0
| | | | | | | | | | Pointed by: kib MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=268981
* Simplify r267600, there's no need to distinguish between allocated andNavdeep Parhar2014-07-222-10/+8
| | | | | | | | | inlined mbufs. MFC after: 1 week Notes: svn path=/head/; revision=268971
* Merge change from upstream linux kernel submitted by OpenBSD:Sean Bruno2014-07-212-22/+5
| | | | | | | | | | | | | | | | | | | drm/radeon: fix-up some float to fixed conversion thinkos Spotted by Brad Smith when porting to OpenBSD. Noticed-by: Brad Smith <brad@comstyle.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com> ref: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=1cd73ff7 Remove #ifdef DUMBBELL_WIP in favor of upstream fix. Phabric: https://phabric.freebsd.org/D423 Reviewed by: dumbbell, jkim MFC after: 2 weeks Notes: svn path=/head/; revision=268954
* Hide syscons-specific workaround under DEV_SCEd Maste2014-07-212-3/+5
| | | | | | | | | This change is a bit ugly, but so is the coupling between the i915 driver and syscons. It isn't worth developing a more elegant solution only to support the legacy syscons console. Notes: svn path=/head/; revision=268947
* Add new device ID.Hans Petter Selasky2014-07-202-0/+2
| | | | | | | | MFC after: 1 week PR: 191959 Notes: svn path=/head/; revision=268929
* Add the UDP hash -> RSS mbuf hash type for the ixgbe(4) driver.Adrian Chadd2014-07-201-6/+9
| | | | Notes: svn path=/head/; revision=268917
* Teach ixgbe(4) about rss_gethashconfig().Adrian Chadd2014-07-201-0/+30
| | | | | | | | | | | | | | | | If RSS is enabled, ixgbe(4) will query the RSS API for the types of hashes which should be used. It'll then only enable hashes that are exposed via the RSS layer. This way it won't try to do things like enable UDP hashing if RSS explicitly states that it isn't supported in lookups. Tested: * 82599EB ixgbe(4) NIC Notes: svn path=/head/; revision=268916
* Disable the ixgbe(4) UDP 4-tuple hashing for the time being.Adrian Chadd2014-07-201-1/+11
| | | | | | | | | | | | | A mix of fragmented and non-fragmented UDP in a single stream will end up being hashed differently, resulting in out-of-order behaviour in the receive path. This was done in the linux e1000 driver in 2011. Discussed with: jfv Notes: svn path=/head/; revision=268915
* Correctly program the RSS redirection table entries.Adrian Chadd2014-07-201-3/+9
| | | | | | | | | | Without this, the RSS bucket assignments aren't correct - they're DCBA instead of ABCD in each DWORD. Tested: 82599EB ixgbe(4), TCP and UDP RSS Notes: svn path=/head/; revision=268907
* Fix build by using the driver API (driver converted in r266979 which shouldXin LI2014-07-181-1/+1
| | | | | | | | | | be upstreamed). X-MFC with: r268854 MFC after: 5 days Notes: svn path=/head/; revision=268856
* Initiate error recovery stats fail to update after 3 retries.David C Somayajulu2014-07-185-1/+35
| | | | | | | | | | Change bxe_panic() ECORE_DBG_BREAK_IF() ECORE_BUG() ECORE_BUG_ON() to panic only if ECORE_STOP_ON_ERROR is defined. MFC after:5 days Notes: svn path=/head/; revision=268854
* The description is a bit misleading. Trying to make it more obvious.Hiren Panchasara2014-07-181-1/+1
| | | | | | | | Phabric: https://phabric.freebsd.org/D435 Reviewed by: gnn Notes: svn path=/head/; revision=268847
* Fix an apparent conversion error in bge to the new driver api.Peter Wemm2014-07-181-2/+2
| | | | | | | | | if_multiaddr_array() does the LLADDR work, don't do it twice. This broke IPv6 in "interesting" ways in the FreeBSD.org cluster. Notes: svn path=/head/; revision=268833
* Fix embarassing typos I made.Nathan Whitehorn2014-07-171-5/+5
| | | | | | | Submitted by: rayddteam Notes: svn path=/head/; revision=268796
* Fix a typo.Hiren Panchasara2014-07-171-1/+1
| | | | | | | | PR: 191898 Submitted by: vsjcfm@gmail.com Notes: svn path=/head/; revision=268790
* Allow efifb to be used with xf86-video-scfb. This is important for EFINathan Whitehorn2014-07-161-7/+3
| | | | | | | | | | | | | | systems without either a CSM or real graphics drivers, such as my Lenovo Haswell laptop. This provides working X with the small complication of a console cursor permanently overlaid on the upper-left corner of the screen that will be dealt with later. Also remove some redundant screen clearing. Notes: svn path=/head/; revision=268772
* Allow console drivers active from early boot to be used with xf86-video-scfb,Nathan Whitehorn2014-07-163-37/+64
| | | | | | | | | | | rather than only drivers attached later on. This involves a small amount of code duplication with dev/fb/fbd.c, which will fixed later on. Also improve performance of vt_blank() by making it not read from the framebuffer unnecessarily. Notes: svn path=/head/; revision=268771
* Improve support for Intel Lynx Point USB 3.0 controllers by using theHans Petter Selasky2014-07-161-3/+6
| | | | | | | | | | | | USB 2.0 port mask in addition to the USB 3.0 port mask. The hardware does not always accept when writing -1U to the port switching registers. MFC after: 3 days Tested by: Huang Wen Hui <huanghwh@gmail.com> Notes: svn path=/head/; revision=268735
* Move the "retry:" label so that the calls to m_pullup() areRick Macklem2014-07-151-1/+1
| | | | | | | | | | | | | not done after the call to m_defrag(). This fixes a problem where m_pullup() would prepend an mbuf to the list created by m_defrag() making the chain greater than 32 again. Tested by: rcarter@pinyon.org Reviewed by: yongari, jfv MFC after: 2 weeks Notes: svn path=/head/; revision=268726
* cxgbe(4): Display CF facility correctly in the device log.Navdeep Parhar2014-07-151-0/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=268706
* Allow multi-byte reads in the private CHELSIO_T4_GET_I2C ioctl. TheNavdeep Parhar2014-07-153-37/+92
| | | | | | | | | | | firmware allows up to 48B to be read this way but the driver limits itself to 8B at a time to remain compatible with old cxgbetool binaries. MFC after: 1 week Notes: svn path=/head/; revision=268640
* Fix the Zedboard/Zynq ethernet driver to handle media speed changes soIan Lepore2014-07-141-33/+71
| | | | | | | | | | | | | | | that it can connect to switches at speeds other than 1gb. This requires changing the reference clock speed. Since we still don't have a general clock API that lets a SoC-independant driver manipulate its own clocks, this change includes a weak reference to a routine named cgem_set_ref_clk(). The default implementation is a no-op; SoC-specific code can provide an implementation that actually changes the speed. Submitted by: Thomas Skibo <ThomasSkibo@sbcglobal.net> Notes: svn path=/head/; revision=268633
* On my Lenovo laptop, the firmware maps the EFI framebuffer with MTRRs setNathan Whitehorn2014-07-141-3/+25
| | | | | | | | | | | to uncacheable. This leads to execrable console performance. Once PMAP is up, remap the framebuffer as write-combining. This reduces boot time on my laptop by 60% when booting with EFI. MFC after: 2 weeks Notes: svn path=/head/; revision=268624
* Add a headphone redirection quirk for the Lenovo G580.Mark Johnston2014-07-132-1/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=268584
* Turn off blinking device leds at attach.Hans Petter Selasky2014-07-131-2/+13
| | | | | | | | MFC after: 3 days PR: 183735 Notes: svn path=/head/; revision=268583
* Fix performance problems with AXGE network adapter in RX direction:Hans Petter Selasky2014-07-131-9/+8
| | | | | | | | | | | | | - Remove 4 extra bytes from the ethernet payload. - The maximum RX buffer was incorrectly set. Increase it to 64K for now, until the exact limit is understood. - Enable hardware checksumming again. - Make hardware data structure packed. MFC after: 3 days Notes: svn path=/head/; revision=268582
* Revert r268543.Rui Paulo2014-07-1220-19/+86
| | | | | | | We should probably fix sys/gpio.h instead. Notes: svn path=/head/; revision=268564
* Move iic.h to sys/ so that it's automatically installed in /usr/include/sys.Rui Paulo2014-07-1220-86/+19
| | | | | | | | | | This lets us call iic(4) ioctls without needing the kernel source code and follows the same model of GPIO. MFC after: 3 weeks Notes: svn path=/head/; revision=268543
* cxgbe(4): Add an iSCSI softc to the adapter structure.Navdeep Parhar2014-07-111-0/+1
| | | | Notes: svn path=/head/; revision=268536
* Fix style bug: rename the refcount field of m_ext to ext_cnt, to matchGleb Smirnoff2014-07-114-10/+10
| | | | | | | | | other members. Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=268530
* All mbuf external free functions never fail, so let them be void.Gleb Smirnoff2014-07-117-23/+12
| | | | | | | Sponsored by: Nginx, Inc. Notes: svn path=/head/; revision=268529
* Correct the setting of the VID in transmit descriptors when hardware VLANMark Johnston2014-07-101-1/+1
| | | | | | | | | | tagging is enabled. This was broken in r266978. Reported by: gjb Tested by: gjb Notes: svn path=/head/; revision=268501
* Enable 8051 before downloading firmware.Kevin Lo2014-07-101-3/+5
| | | | | | | Tested by: Carlos Jacobo Puga Medina <cpm at fbsd dot es> Notes: svn path=/head/; revision=268487
* Rework when the Tx queue completion interrupt is enabledBryan Venteicher2014-07-102-65/+155
| | | | | | | | | | | | | | | The Tx interrupt is now kept disabled in the common case, only enabled when the number of free descriptors in the queue falls below a threshold. Transmitted frames are cleared from the VQ before subsequent transmit, or in the watchdog timer. This was a very big performance improvement for an experimental Netmap bhyve backend. MFC after: 1 month Notes: svn path=/head/; revision=268481
* Add accessor to get the number of free descriptors in the virtqueueBryan Venteicher2014-07-102-0/+8
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=268480
* Should check fb_read method presence instead of double check for fb_write.Aleksandr Rybalko2014-07-091-1/+1
| | | | | | | | | Pointed by: emaste Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=268472
* Fix inconsistent token parameters for kbd_allocate() and kbd_release() in vt(4).Aleksandr Rybalko2014-07-091-5/+4
| | | | | | | | | PR: 191306 Submitted by: jau789@gmail.com Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=268460
* Pass correct command that should be aborted to ISPCTL_ABORT_CMD.Alexander Motin2014-07-081-1/+1
| | | | | | | | | | 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 after: 1 week Notes: svn path=/head/; revision=268395