summaryrefslogtreecommitdiffstats
path: root/sys/dev
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* MFC r274020:hselasky2014-11-291-2/+2
| | | | Reduce boot verbosity.
* MFC r274724:np2014-11-262-0/+3
| | | | cxgbe(4): figure out the max payload size and save it for later.
* vt(4): Support syscons' SC_HISTORY_SIZE to configure history sizedumbbell2014-11-221-1/+6
| | | | | | | | | | Therefore, to set histry size to 2000 lines, add the following line to your kernel configuration file: options SC_HISTORY_SIZE=2000 The default history remains at 500 lines. MFC of: r274117
* drm: Take vt(4) default mode from loader tunablesdumbbell2014-11-222-182/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, vt(4) gets the "preferred mode" from DRM, when using a DRM video driver as its backend. The preferred mode is usually the native screen resolution. Now, if this mode isn't appropriate, a user can use loader tunables to select a mode. The tunables are read in the following order: 1. kern.vt.fb.modes.$connector_name 2. kern.vt.fb.default_mode For example, to set a 1024x768 mode, no matter the connector: kern.vt.fb.default_mode="1024x768" To set a 800x600 mode only on the laptop builtin screen: kern.vt.fb.modes.LVDS-1="800x600" Beside r274031, this MFC includes: r274049: drm: When reading connector mode tunables, list connectors ... and their associated tunables. This gives a way to know the list of available connectors, no matter the driver. The problem is that xrandr(1) can list connectors but it uses a different naming. r274050: vt(4): Document kern.vt.fb.default_mode and kern.vt.fb.modes.* Those tunables are used to set a specific mode in vt(4) instead of using the default mode. Differential Revision: https://reviews.freebsd.org/D1098 Reviewed by: ak@, emaste@, kwm@ r274051: vt(4): Improve the description of kern.vt.fb.modes.$connector Differential Revision: https://reviews.freebsd.org/D1098 Submitted by: emaste@ r274053: vt(4): Start new sentences on their own lines Submitted by: brueffer@ MFC of: r274031, r274049, r274050, r274051, r274053
* drm: Lower priority of three messages related to invalid EDIDdumbbell2014-11-222-4/+4
| | | | | | | | | Like in r259717, the prority goes from "error" to "debug" to avoid spamming logs when the connectors are polled. PR: 194770 Submitted by: Larry Rosenman <ler@lerctr.org> MFC of: r273962, r274587
* vt(4): Fix keyboard allocation when kbdmux(4) isn't useddumbbell2014-11-221-1/+1
| | | | | | | | | | The problem was that only the kbdmux keyboard index was saved in vd->vd_keyboard. This index is -1 when kbdmux isn't used. In this case, the keyboard was correctly allocated, but the returned index was discarded. PR: 194718 MFC of: r273973
* vt(4): Adjust the cursor position after changing the window sizedumbbell2014-11-222-0/+13
| | | | | | | | | | | | | | | | A new terminal_set_cursor() is added: it wraps the existing teken_set_cursor() function. In vtbuf_grow(), the cursor position is adjusted at the end of the function. In vt_change_font(), we call terminal_set_cursor() just after terminal_set_winsize_blank(), while the terminal is mute. This fixes a bug where, after loading a kernel video driver which increases the terminal window size, the cursor remains at its old position, in other words, in the middle of the display content. PR: 194421 MFC of: r273932
* MFC r274227:hselasky2014-11-192-0/+4
| | | | Add new USB IDs.
* MFC r274379:kib2014-11-181-0/+58
| | | | Initial attachment of the agp(4) to Haswell IGP.
* MFC r274378:kib2014-11-181-1/+2
| | | | Attach agp_i810 to non-VGA display class.
* MFC r274377:kib2014-11-181-8/+43
| | | | On 965 and higher, map GTT as write-combining.
* MFC r274351:np2014-11-175-15/+15
| | | | cxgbe(4): adjust PMRX and PMTX parameters.
* MFC r273164:trasz2014-11-151-10/+8
| | | | | | | | | When removing an iSCSI session, check whether all conditions match, not if any of them matches. This fixes "iscsictl -Rn" removing unrelated sessions. PR: 194034 Sponsored by: The FreeBSD Foundation
* MFC r271328:np2014-11-121-1/+1
| | | | Whitespace nit.
* MFC r273615:np2014-11-122-9/+33
| | | | | | | | | cxgbe(4): bump up PF4's share of some global resources. This increases the size of the per-port RSS slice and also allows the driver to use a larger number of tx and rx queues. S2curity:
* MFC r273280:np2014-11-121-1/+3
| | | | cxgb(4): reset the PHY if it generates an interrupt for no apparent reason.
* MFC r272190:np2014-11-121-0/+4
| | | | cxgbe(4): explicitly set various if_hw_tso* values.
* MFC r272936:mav2014-11-111-0/+5
| | | | | Update isp_tgt_map and send new arrival notification if target that departed earlier has returned. Previously that code worked only once, confusing CTL.
* MFC Intel I40E drivers: r274205,r274218, and r274228jfv2014-11-1010-11342/+1292
| | | | | The MFC was pushed early as it fixes a panic in the exiting driver of 10.1 that Intel discovered in validation.
* MFC r273236:markj2014-11-061-13/+9
| | | | | | Use pmc_destroy_pmc_descriptor() to actually free the pmc, which is consistent with pmc_destroy_owner_descriptor(). Also be sure to destroy PMCs if a process exits or execs without explicitly releasing them.
* MFC r271946 and r272595:hselasky2014-11-035-7/+9
| | | | | | | | | Improve transmit sending offload, TSO, algorithm in general. This change allows all HCAs from Mellanox Technologies to function properly when TSO is enabled. See r271946 and r272595 for more details about this commit. Sponsored by: Mellanox Technologies
* MFC r273728:kib2014-11-032-4/+10
| | | | | Add a method to iicbus to request IIC_M_NOSTOP behaviour for multibyte transfers to be default.
* MFC 273598 273602 273607 273613 273647:rpaulo2014-11-031-6/+75
| | | | Userland HPET support.
* MFC r273551:rpaulo2014-11-011-0/+7
| | | | | | | puc(4): add an entry for the Oxford Semiconductor OXPCIe952 1S1P card. Submitted by: Alex Burlyga <alex.burlyga.ietf at gmail.com>
* 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.
OpenPOWER on IntegriCloud