summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-11-20Silly Linux-style negative errno returns.kettenis1-5/+5
2013-11-20regenmiod1-8/+8
2013-11-20Fix translation table for JIS keys; reported by Nakano Takaharu.miod1-7/+7
2013-11-20in_var.h is not needed.mpi1-16/+15
2013-11-20Instead of comparing the lower and higher addresses of all the multicastmpi1-14/+7
entries to decide if the IFF_ALLMULTI flag should be set, check if there is at least one real range between them. Tested by naddy@
2013-11-20switch to the drm_mm based gtt eviction code from linux 3.8.13jsg4-167/+134
ok kettenis@
2013-11-19Move the GTT management into the inteldrm driver. It is really obvious nowkettenis12-275/+330
that this is necessary as on some hardware we need guard pages between regions that have different cache attributes. Even if this appears to cause regressions on some hardware, this change is a necessary (but not sufficient) step to fix the cache coherency problems on the affected hardware. ok jsg@
2013-11-19Print daddr_t's with %lld, size_t's with %zu, int's with %d andkrw2-21/+24
u_int32_t's with %u. Translate DL_GETPSIZE() results to 512-byte-block values with DL_SECTOBLK(). ok jsing@
2013-11-19backout the DRM_IOCTL_I915_GEM_WAIT commitjsg5-182/+43
it seems to leave X unuseable on resume on at least snb/ivb ok kettenis@
2013-11-19Kill matchlvl usage throughout the usb stack.pirofti6-32/+8
Allows us to move forward on cleaning. Okay mpi@
2013-11-19regenbrad2-4/+14
2013-11-19more 4th gen Intel Core HD Audio idsbrad1-2/+4
2013-11-19oopsderaadt1-2/+2
2013-11-18format string cleanupderaadt1-2/+2
2013-11-18cleanse format stringderaadt1-6/+2
2013-11-18format stringderaadt1-2/+2
2013-11-18Enable MSI on the remaining chipsets.brad2-8/+24
ok naddy@ sthen@
2013-11-18simplify kthread_create(). no more stdargderaadt9-21/+22
ok matthew guenther mikeb
2013-11-18- ansify some function definitionsbrad2-305/+147
- remove return at end of void functions - remove extraneous braces no functional change. ok chris@
2013-11-18Factor out of {split,pci}_status_strings[] the printf formattings bits,guenther1-31/+28
putting them in the actual printf() calls. Shuts up gcc -Wformat=2 and reduces the space spent on string constants. ok deraadt@
2013-11-17Remove some more dead code.kettenis2-25/+2
2013-11-17Implement DRM_IOCTL_I915_GEM_WAIT. Based on an earlier diff from jsg@kettenis5-43/+182
ok jsg@
2013-11-17drm/radeon: fix hw contexts for SUMO2 asicsjsg1-2/+2
From wojciech kapuscinski b71a688b1e56a0a2b4260c2ab0cdf80f67965072 in ubuntu 3.8 50b8f5aec04ebec7dbdf2adb17220b9148c99e63 in mainline linux https://bugs.freedesktop.org/show_bug.cgi?id=63599
2013-11-17drm/i915: Only clear write-domains after a successful wait-seqnojsg1-2/+3
From Chris Wilson 5ca3f11716a0487110745824ad5282bf4c00d211 in ubuntu 3.8 daa13e1ca587bc773c1aae415ed1af6554117bd4 in mainline linux https://bugs.freedesktop.org/show_bug.cgi?id=66163
2013-11-17Sync with libdrm 2.4.47.kettenis3-21/+49
ok jsg@
2013-11-17regenjsg2-10/+15
2013-11-17correct some iodata strings and add ETX-US2jsg2-5/+7
from ISIHARA Takanori
2013-11-17Distinguish between inteldrm and radeondrm.kettenis3-6/+7
ok jsg@, miod@
2013-11-16PAGE_MASK has exactly the opposite meaning in Linux and OpenBSD. Adjust itskettenis1-2/+2
usage in a currently disabled codepath to prevent future surprised.
2013-11-16Remove some dead code.kettenis2-235/+2
2013-11-16Enable 802.11a support. Seems to work fine on:kettenis1-1/+3
wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW2 ok jsg@
2013-11-15Added dev/usb/if_ugl.c, a driver for Genesys Logic GL620USB-Asasano5-4/+955
USB host-to-host link cable. This driver is derived from upl(4).
2013-11-15ansify some function definitions.brad14-1498/+518
no functional change. ok sthen@
2013-11-15Nathan Wheeler has an em which lacks a prom. Rather than fail when noderaadt1-18/+1
MAC address, continue on, because if_etherattach contains logic for this. ok mikeb
2013-11-15Clean-up usbd_abort_pipe() usage.pirofti25-262/+78
This function never fails. So change it's return type to void and adjust the copy-pasted callers that were checking the return. "If it compiles, ok" mpi@
2013-11-15Sort-out activate functionality for ucom(4) and it's parents.pirofti16-111/+44
The child should not have to call the parent for deactivation. The parent should handle it. So kill the activate routine in ucom(4) and adapt the parents to no longer call it. Also remove sc_dying in ucom(4) and use usbd_is_dying() instead. Okay mpi@.
2013-11-15Clean-up the HID environment.pirofti5-61/+36
This set of drivers were very very dirty. i/ Clean-up the match/attach multi-casting hackjob - stop casting aux to every attach arg in existance - be consistent about casting it only to uhidev_attach_arg - fetch the usb_attach_arg from above where needed ii/ Sort out the activate routines - leave the deactivation to the parent (uhidev(4)) - ditch the sc_dying flag in favour of usbd_is_dying() iii/ Get closer to keeping all the usb hid information in the uhidev structure (one uhidev per reportID) - store the usbd_device in the uhidev - use it consistently instead of always peaking at the parent's soft state Okay mpi@
2013-11-15Add missing parenthesis to make tick calculation work as intended. Shouldkrw1-2/+2
fix excessive timeouts and 'Michael mic' errors. Problem pointed out by vigdis via bugs@ ok dlg@
2013-11-14replace workqs with tasks for handling resume. state handling isdlg2-5/+7
still in workqs. from kimberley manning
2013-11-14replace workqs with tasks for handling resumedlg23-75/+87
from kimberley manning
2013-11-14replace workqs with tasks for handling resumedlg4-10/+11
from kimberley manning
2013-11-14replace workqs with tasks for handling resumedlg4-10/+11
from kimberley manning
2013-11-13Polling is done per controller not per interface.pirofti4-20/+19
The controllers are linked through device->bus so the iface is redundant. So fixing usbd_dopoll() to take the device as argument and making usbd_interface2device_handle() private (for now) inside usbdi_util. Tested and okay mpi@
2013-11-13ENOMEM is probably more appropriate than 0 in this error case.mlarkin1-2/+2
2013-11-13Use of uninitialized variable. There are obvious locking problems alsomlarkin1-2/+2
present in this function, but I've been advised to walk away, and it have been this way forever (and this code is not even enabled in GENERIC by default anyway) original bug found by Maxime Villard, thanks.
2013-11-12Use %llu+DL_GETPSIZE() to show partition size. Replace %li+(long) withkrw1-4/+4
%u for u_int32_t d_secsize.
2013-11-11Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().pirofti1-7/+6
Okay mpi@
2013-11-11Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().pirofti4-19/+17
Okay mpi@
2013-11-11Kill commented out code dealing with a non existent sc_dying variable.mpi1-8/+1
2013-11-11Clean-up the activate routines from the uoak*(4) drivers.pirofti4-58/+8
Leave the deactivate bits to the parent. Simplify by making a single dying check in uhidev(4) interrupt routine instead of having each child doing it. Okay mpi@