summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* vt(4): Add PIO_VFONT_DEFAULT ioctl to restore the default builtin fontdumbbell2014-10-311-0/+5
| | | | | | | | | | | | | To restore the default font using vidcontrol(1), use the "-f" flag without an argument: vidcontrol -f < /dev/ttyv0 PR: 193910 Differential Revision: https://reviews.freebsd.org/D971 Submitted by: Marcin Cieslak <saper@saper.info> Reviewed by: ray@, emaste@ Approved by: ray@ MFC of: r273544
* MFC 258028:hselasky2014-10-311-1/+1
| | | | | Unbreak build of RSU module. Use the real product name for Edimax rsu(4) id.
* MFC r264801, r264802, r264934, r273181, r273216 and r273252:hselasky2014-10-313-5/+39
| | | | Add more USB IDs.
* MFC r269575, r269576 and r269578:hselasky2014-10-315-3/+22
| | | | | | | | - Add a second Huawei SCSI eject command as USB mode switch config files sometimes use one or the other. Maybe newer Huawei modems switched. - Return USB_ERR_INVAL if the eject method is not known. PR: 145319
* MFC r264923:hselasky2014-10-312-648/+703
| | | | Remove device type from the uftdi_devs table, enhance the jtag-skip feature.
* MFC r269569:hselasky2014-10-314-14/+5
| | | | | | | | Remove unused defines. Fix some device_printf's that were missing '\n' at the end or had spelling errors. PR: 145319
* MFC r271159, r271168 and r271680:hselasky2014-10-314-0/+323
| | | | Add USB LED driver for the Dream Cheeky WebMail Notifier.
* MFC r273733, r273740 and r273773:hselasky2014-10-303-23/+26
| | | | | | | | | | The SYSCTL data pointers can come from userspace and must not be directly accessed. Although this will work on some platforms, it can throw an exception if the pointer is invalid and then panic the kernel. Add a missing SYSCTL_IN() of "SCTP_BASE_STATS" structure. Sponsored by: Mellanox Technologies
* MFC r273359:yongari2014-10-281-0/+6
| | | | | | | It seems multicast filtering of RTL8168F does not work. Workaround the silicon bug by accepting any multicast packets. PR: 193488
* MFC r263710, r273377, r273378, r273423 and r273455:hselasky2014-10-2728-261/+271
| | | | | | | - De-vnet hash sizes and hash masks. - Fix multiple issues related to arguments passed to SYSCTL macros. Sponsored by: Mellanox Technologies
* MFC r272733, r272807 and r272822:hselasky2014-10-273-11/+83
| | | | | Add support for disabling USB enumeration or USB port power in general or on selected USB HUBs.
* MFC r273328: Add another PCI ID for JMB368 PATA controller.mav2014-10-272-0/+2
|
* MFC r273282: Fail to probe on simplebus nodes that lack a "ranges" property.ian2014-10-261-1/+7
|
* MFC r272334, r273004:ian2014-10-261-33/+115
| | | | | | | | Return the actual baud rate programmed in the hardware rather than 115200. This allows the "3wire" entry in /etc/ttys (with no speed specified) to work. Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on each byte sent or received.
* MFC r272109, r272181:ian2014-10-266-104/+70
| | | | | | | | | Replace multiple nearly-identical copies of code to walk through an FDT node's interrupts=<...> property creating resource list entries with a single common implementation. This change makes ofw_bus_intr_to_rl() the one true copy of that code and removes the copies of it from other places. This also adds handling of the interrupts-extended property.
* MFC 271546:ian2014-10-263-0/+256
| | | | | Create an interface and support routines for drivers that handle IO pin multiplexing and configuration based on FDT data.
* MFC r270957, r270959:ian2014-10-263-0/+297
| | | | | Create an interface for drivers to enable or disable their clocks as listed in the clocks=<...> properties of their FDT data.
* MFC r270953, r270958, r270960, r271190, r271199, r271202:ian2014-10-262-4/+176
| | | | | | | | | | | | Create a mechanism for looking up a device_t associated with an ofw/fdt xref handle, and for registering that association. Also use the same data for faster translations between node and xref handles. Add OF_xref_from_device() so that there's no need to have an intermediate call to ofw_bus_get_node() to lookup info that's already in the xreflist. When registering an association between a device and an xref phandle, create an entry in the xref list if one doesn't already exist for the given handle.
* MFC r270945:ian2014-10-269-11/+26
| | | | | Rename OF_xref_phandle() to OF_node_from_xref() and add a new function that provides the inverse translation, OF_xref_from_node().
* MFC r268633, r271046:ian2014-10-252-105/+544
| | | | | | | | | | | | | | | | | | | | | Fixes and enhancements for the if_cgem driver... - miibus fixes as suggested by Yonghyeon Pyun. - enable VLAN MTU support. - fix a few WITNESS complaints in cgem_attach(). - have cgem_attach() properly init the ifnet struct before calling mii_attach() to fix panic when using e1000phy. - fix ethernet address changing. - fix transmit queue overflow handling. - tweak receive queue handling to reduce receive overflows. - bring out MAC statistic counters to sysctls. - add e1000phy to config file. - implement receive hang work-around described in reference guide. - change device name from if_cgem to cgem to be consistent with other interfaces. Fix the Zedboard/Zynq ethernet driver to handle media speed changes so that it can connect to switches at speeds other than 1gb.
* MFC r273448:kevlo2014-10-251-0/+6
| | | | | | | | Fix the kernel panic in hostap mode. rvp->beacon_mbuf was NULL in run_update_beacon(). PR: 189405 Submitted by: Gabor Simon <gabor.simon75 at gmail.com>
* MFC r273577:delphij2014-10-244-5/+5
| | | | | | | Return BUS_PROBE_DEFAULT instead of BUS_PROBE_VENDOR or 0 for in-tree driver. This change was verified by Microsoft. Instant MFC approved by: re (kib)
* vt(4): Refuse to load a font if hw.vga.textmode is selecteddumbbell2014-10-231-0/+3
| | | | | | | | Before, the font was loaded and the window size recalculated, giving an unusable terminal, even if the actual font didn't change. Reported by: beeessdee@ruggedinbox.com MFC of: r273330
* MFC r273402:gjb2014-10-211-2/+1
| | | | | | | | | | Fix an issue where a FreeBSD virtual machine provisioned in the Microsoft Azure service does not recognize the second attached disk on the system. PR: 194376 Insta-MFC OK: re (rodrigc) Sponsored by: The FreeBSD Foundation
* MFC: r273034brueffer2014-10-211-0/+2
| | | | | | Add one more AMD Kaveri APU device ID. Submitted by: Remy Nonnenmacher <remy.nonnenmacher@activnetworks.com>
* MFC r272730,273018:yongari2014-10-213-191/+1355
| | | | | | | | | | | | | | | | | | Add support for QAC AR816x/AR817x Gigabit/Fast Ethernet controllers. These controllers seem to have the same feature of AR813x/AR815x and improved RSS support(4 TX queues and 8 RX queues). alc(4) supports all hardware features except RSS. I didn't implement RX checksum offloading for AR816x/AR817x just because I couldn't get confirmation from the Vendor whether AR816x/AR817x corrected its predecessor's RX checksum offloading bug on fragmented packets. This change adds supports for the following controllers. o AR8161 PCIe Gigabit Ethernet controller o AR8162 PCIe Fast Ethernet controller o AR8171 PCIe Gigabit Ethernet controller o AR8172 PCIe Fast Ethernet controller o Killer E2200 Gigabit Ethernet controller Relnotes: yes
* MFC r272729,272732:yongari2014-10-211-2/+18
| | | | | | Add new quirk PCI_QUIRK_MSI_INTX_BUG to pci(4). QAC AR816x/E2200 controller has a silicon bug that MSI interrupt does not assert if PCIM_CMD_INTxDIS bit of command register is set.
* MFC r272721:yongari2014-10-214-21/+6
| | | | | | Fix a long standing bug in MAC statistics register access. One additional register was erroneously added in the MAC register set such that 7 TX statistics counters were wrong.
* MFC r272812: Make iSCSI connection close somewhat less aggressive.mav2014-10-203-24/+5
| | | | | | It allows to push out some final data from the send queue to the socket before its close. In particular, it increases chances for logout response to be delivered to the initiator.
* MFC r271395 (by trasz):mav2014-10-201-2/+12
| | | | | | | Make sure we handle less than zero timeouts in iSCSI initiator and target in a reasonable way. Sponsored by: The FreeBSD Foundation
* MFC r271073:yongari2014-10-201-9/+16
| | | | | | Do not blindly announce 1000baseT half-duplex capability in autonegotiation. Some controllers like cgem(4) do not support half-duplex at gigabit speeds.
* MFC r271975:rpaulo2014-10-202-19/+226
| | | | | | | | | | | | | | Improvements to asmc(4): 1. changed the code so that 2**16 keys are supported 2. changed the number of possible fans in a system from 2 to 6 3. added write support for some fan sysctls 4. added a new sysctl which shows the ID of the fan 5. added four more apple models with their temperature keys 6. changed the maxnumber of temperature keys from 36 to 80 7. replaced several fixed buf sizes to sizeof buf Obtained from: Denis Ahrens denis at h3q.com
* MFC r273219: Do nothing in vt_upgrade if there is no vt driveremaste2014-10-201-0/+2
| | | | | | | Previously, if no drivers attached at boot we would panic with "vtbuf_fill_locked begin.tp_row 0 must be < screen height 0". PR: 192248
* MFC r273135:hselasky2014-10-181-1/+0
| | | | | | | | | | | | | | | | | Update the OFED Linux compatibility layer and Mellanox hardware driver(s): - Properly name an inclusion guard - Fix compile warnings regarding unsigned enums - Add two new sysctl nodes - Remove all empty linux header files - Make an error printout more verbose - Use "mod_delayed_work()" instead of cancelling and starting a timeout. - Implement more Linux scatterlist functions. Sponsored by: Mellanox Technologies
* MFC r273112: Set the DROP_EN bit before the RX queue is brought up and active.adrian2014-10-181-0/+14
| | | | | | | | | | | | | | | He noticed issues setting this bit in SRRCTL after the queue was up, so doing it from the sysctl handler isn't enough and may not actually work correctly. This commit doesn't remove the sysctl path or try to change its behaviour. I'll talk with others about how to finish fixing that before I tackle that. PR: kern/194311 Submitted by: luigi MFC after: 3 days Sponsored by: Norse Corp, Inc
* MFC r272761:kib2014-10-151-2/+2
| | | | | | | | | Add an argument to the x86 pmap_invalidate_cache_range() to request forced invalidation of the cache range regardless of the presence of self-snoop feature. MFC r272943: MFi386 r272761.
* MFC r272756: Properly report 12Gbps connection rate.mav2014-10-152-0/+4
| | | | Reviewed by: kadesai, slm
* vt(4): Don't recalculate buffer size if we don't know screen sizedumbbell2014-10-131-1/+2
| | | | | | | | | | | | | (MFC of r272537) When the screen size is unknown, it's set to 0x0. We can't use that as the buffer size, otherwise, functions such as vtbuf_fill() will fail. This fixes a panic on RaspberryPi, where there's no vt(4) backend configured early in boot. PR: 193981 Tested by: danilo@
* vt(4): Save/restore keyboard mode & LED states when switching windowdumbbell2014-10-132-36/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | (MFC of r272416) Add new functions to manipulate these mode & state, instead of calling kbdd_ioctl() everyhere. This fixes at least two bugs: 1. The state of the Scroll Lock LED and the state of scroll mode could be out-of-sync. For instance, if one enables scroll mode on window #1 and switches to window #2, the LED would remain on, but the window wouldn't be in scroll mode. Similarily, when switching between a console and an X.Org session, the LED states could be inconsistent with the real state. 2. When exiting from an X.Org session, the user could be unable to type anything. The workaround was to switch to another console window and come back. Differential Revision: https://reviews.freebsd.org/D821 Reviewed by: ray@ Approved by: ray@ Tested by: kwm@
* MFC r271784 - Fix the handling of EOP in status descriptors for if_igb(4)adrian2014-10-112-9/+8
| | | | | | | | | | | | | and don't double-free mbufs. Like ixgbe(4) chipsets, EOP is only set on the final descriptor in a chain of descriptors. So, to free the whole list of descriptors, we should free the current slot _and_ the assembled list of descriptors that make up the fragment list. The existing code was setting discard once it saw EOP + an error status; it then freed all the subsequent descriptors until the next EOP. That's totally the wrong order.
* MFC r271645 - Set DROP_EN on each RX queue if transmit flow-control is disabled.adrian2014-10-111-0/+13
| | | | | | | | | | | | | | | | | This allows the NIC to drop frames on the receive queue and not cause the MAC to block on receiving to _any_ queue. Tested: igb0@pci0:5:0:0: class=0x020000 card=0x152115d9 chip=0x15218086 rev=0x01 hdr=0x00 vendor = 'Intel Corporation' device = 'I350 Gigabit Network Connection' class = network subclass = ethernet Discussed with: Eric Joyner <eric.joyner@intel.com> MFC after: 1 week Sponsored by: Norse Corp, Inc.
* MFC r271648 - The error bits are not valid with EOP=0; so intermediaryadrian2014-10-112-8/+1
| | | | | | | fragments should not be discarded. Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com> Sponsored by: Verisign, Inc.
* Merge r271647 - Fix a double-free of mbufs in rx_ixgbe_discard().adrian2014-10-111-6/+7
| | | | | | | | fmp->buf at the free point is already part of the chain being freed, so double-freeing is counter-productive. Submitted by: Marc De La Gueronniere <mdelagueronniere@verisign.com> Sponsored by: Verisign, Inc.
* MFC r272713:bz2014-10-101-1/+1
| | | | | | | | | | | Since introducing the extra mapping in r250103 (head) for architectural performance events we have actually counted 'Branch Instruction Retired' when people asked for 'Unhalted core cycles' using the 'unhalted-core-cycles' event mask mnemonic. Reviewed by: jimharris Discussed with: gnn, rwatson Sponsored by: DARPA/AFRL
* MFC r272308: Fix old iSCSI initiator to work with new CAM locking.mav2014-10-061-19/+14
| | | | | | | | This switches code to using xpt_rescan() routine, irrelevant to locking. Using xpt_action() directly requires knowledge about higher level locks, that SIM does not need to have. This code is obsolete, but that is not a reason to crash.
* MFC r272111luigi2014-10-061-15/+10
| | | | | fix a panic when passing ifioctl from a netmap file descriptor to the underlying device. This needs to be merged to 10.1
* MFC r272480:hselasky2014-10-061-9/+12
| | | | | When we fail to get a USB reference we should just return, because there are no more references held.
* MFC r272410:hselasky2014-10-062-0/+2
| | | | | | Add new USB ID. PR: 194091
* MFC r272349, r272422 and r272479:hselasky2014-10-062-8/+16
| | | | | | | | | | - Fix XHCI driver for devices which have more than 15 physical root HUB ports. The current bitmap array was too small to hold more than 16 bits and would at some point toggle the context size, which then would trigger an enumeration fault and cause a fallback to the EHCI companion controller, if any. - Make sure we always set the maximum number of valid contexts. - Set default cycle state in case of early interrupts.
* MFC r272254:hselasky2014-10-022-22/+45
| | | | | | | | Instead of creating the full range of possible ports, try to figure out the actual number of so-called "embedded jacks" which are present when a USB MIDI device is attaching. Approved by: re, gjb
OpenPOWER on IntegriCloud