summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-05-14wsmoused() called if cmd == WSDISPLAYIO_WSMOUSED only,shadchin2-30/+27
don't need check cmd twice. ok miod@
2014-05-12Move GTT management for Sandy Bridge and up into inteldrm(4). This makeskettenis5-187/+326
it possible to use the non-mappable part of the GTT, prepares the way for using the PPGTT and reduces the diffs with Linux. ok jsg@
2014-05-12Backport FreeBSD's HID parser in order to properly parse `moderm'mpi6-220/+380
input device descriptors, notably if they include an Item with an Usage array (Min-Max range) and others single Usage elements. Tested by many, thanks! ok andre@
2014-05-11The relation between uhci(4), ohci(4) and their root hub device ismpi1-2/+11
delicate. HC drivers do not always accept to be left alone. I don't know if it is a love crisis, but apparently receiving a root hub status change interrupt before having an uhub(4) attached breaks resume. So make sure the root hub is re-attached before interrupt get enabled. It is safe to do it during DVACT_RESUME since attaching root hubs do not require any USB transfer. Based on a diff from yasuoka@, fix a regression introduced in last commit an reported by Abel Abraham Camarillo Ojeda on tech@ and Nils R on bugs@.
2014-05-10Sidestep format string issue by sanitizing a bit of debug code.kettenis1-9/+4
ok deraadt@
2014-05-09Format string fixes and removal of -Wno-format for *ppc kernels.miod1-2/+2
2014-05-09Plug an xfer leak when detaching root hubs.mpi4-47/+17
This leak is similar to the public xfer leak #1 that was affecting device interrupt pipes except that root hubs are rarely detached. Note that this xfer is never associated to any TD and is just used to indicate that some of the HC ports has changed status, so there is no need to flag it as "done" before completing it.
2014-05-08Format string fixes and removal of -Wno-format for hppa kernels.miod1-2/+2
2014-05-08Format string fixes and removal of -Wno-format for arm kernels.miod1-2/+2
2014-05-08Format string fix in disabled code. Format bus_space_handle_t with %xl,sf1-4/+4
cast bus_space_tag_t to (u_long)
2014-05-08Plug one more xfer leak.mpi2-2/+8
Now that aborting interrupt pipes does not prevent us from freeing the associated xfer, make sure to flag this xfer as "done" even if there's no need to abort it in hardware.
2014-05-07Make sure to call uhidev_close() upon detach for every HID driver callingmpi6-6/+25
uhidev_open() at attach time. This plugs up to 3 xfer leaks and a buffer one. ok yuo@
2014-05-06Add support for the Broadcom PHY found on the Octeon-based DSR-500.pirofti2-1/+397
This is an MI driver currently targeting only the BCM53115 model, but other Broadcom devices (specially from the 53XX family) can make use of it as well. The driver currently accounts just for the CPU port. The switch is left in dumb-mode. Further advanced switch control is in the works. Parts of this was inspired by looking at the b53 driver from the OpenWrt project. Thanks! Okay miod@
2014-05-06Regen after Broadcom 53115 addition.pirofti1-1/+3
2014-05-06Add an entry for the Broadcom 53115 model found on the DSR-500.pirofti1-1/+2
Okay miod@
2014-05-06Plug two xfer leaks and a buffer one.mpi1-8/+17
2014-05-05Plug a memory leak, free the keymap's memory on detach.mpi1-1/+3
ok miod@
2014-05-05Plug a memory leak related to HID descriptor parsing.mpi1-1/+2
ok jsg@
2014-05-04format string fixes for bus_addr_t and bus_size_tsf7-20/+20
bus_addr_t and bus_size_t are u_long everywhere ok kettenis@
2014-05-04format string fix for bus_space_tag_tsf1-3/+3
bus_space_tag_t is a pointer everywhere, except on i386, where it's an int. Cast to long. ok kettenis@ 'Right idiom' deraadt@
2014-05-04change type of handle var to u_int16_tsf1-2/+2
This fixes a format string warning. No change to the format string is necessary. suggested by kettenis@
2014-05-04Make use of usbd_xfer_isread() instead of rerolling it everywhere.mpi3-118/+81
This has the side effect of simplifying and reducing the differences between the various *hci_alloc_*_chain() functions since they are the principal place where we want to known if the transfer is a read or a write.
2014-05-04Get rid of EHCI_NULL. No functional change.mpi1-20/+18
2014-05-03drm/radeon: call drm_edid_to_eld when we update the edidjsg1-1/+2
From Alex Deucher 7752811a7d6be680e8f1a87da18e3670633981ee in ubuntu 3.8 16086279353cbfecbb3ead474072dced17b97ddc in mainline linux
2014-05-03Skip intel_crt_init for Dell XPS 8700jsg1-1/+9
From Giacomo Comes 95849485beb5e665d56269cd05c3c19df399fb20 in ubuntu 3.8 10b6ee4a87811a110cb01eaca01eb04da6801baf in mainline linux
2014-05-03drm/i915/tv: fix gen4 composite s-video tv-outjsg1-3/+8
From Jani Nikula 1f2561bd1e2c46145c643673b662c099d2074936 in ubuntu 3.8 e1f23f3dd817f53f622e486913ac662add46eeed in mainline linux
2014-05-03drm/i915: quirk invert brightness for Acer Aspire 5336jsg1-1/+4
From Jani Nikula 083bda2f1130f185eccdf7c5cbbdb53fa88429b1 in ubuntu 3.8 0f540c3a7cfb91c9d7a19eb0c95c24c5de1197d5 in mainline linux
2014-05-02Make acpiprt(4) handle interrupts with non-standard polarity and trigger modekettenis2-26/+88
correctly. Tested by nobody.
2014-05-02Make acpi_mutex_acquire/release actually grab the global lock if it should.kettenis1-11/+3
Get rid of the fake global lock code that these functions were using before. ok pirofti@, mlarkin@
2014-05-01fixed some debug messagessasano1-5/+5
ok by dcoppa@
2014-04-29Get rid of the per-softc freelist of transfer descriptors and use ampi4-82/+52
per-driver pool(9) instead.
2014-04-29Finally plug the public xfer leak #1 in our USB stack.mpi3-19/+9
Every call to usbd_abort_pipe() on an interrupt pipe would simply reset the intrxfer pointer, which would prevent usbd_close_pipe() to free it. Since we abort pipes in a lot of situations: when a device is detached, when a USB-to-serial adapter is closed, when an error occurs, when the machine is suspended, etc, this would result in hundreds of leaked xfers in most of my machines. xhci(4) is not affected, but you can't enable it right now since the stack is not ready :) While here put a KASSERT() to make sure drivers are only calling the interrupt abort method for intrxfer, if that's not the case, please let met know.
2014-04-29regenmcbride2-4/+14
2014-04-29Add Microsoft Wireless Mobile Mouse 3500 and Wireless Arc Mouse.mcbride1-1/+3
ok mpi
2014-04-29Make sure to call uhidev_close() upon detach, plug another xfer leak.mpi1-1/+4
2014-04-29Plug an xfer leak.mpi1-3/+16
2014-04-29Get rid of the per-softc freelist of transfer descriptors and use ampi4-58/+53
per-driver pool(9) instead. With inputs from mikeb@
2014-04-29Remove device white-listing as matching method, relies on on usage idandre1-38/+2
versus supported sensors table filtering. discussed with and ok mpi@
2014-04-28Move an opening brace so a loop that delays while waitingjsg1-3/+3
for hardware to set a ready bit actually delays. ok krw@ deraadt@ 'sounds correct' miod@
2014-04-27Add PME_STATUS and PME_EN bitmasks for the PCI PMCSR register.stsp1-6/+8
ok kettenis@
2014-04-27Start de-obfuscating the HC drivers.mpi5-264/+227
Since pipe methods have an xfer argument, always use it to get acces to various data structure (pipe, bus, device) instead of having a different way to get a pointer to these descriptors in every function. Also kill the {E,U}XFER() macro and use a consistent name accross all the methods for {e,u}hci_xfer.
2014-04-27Do not let the bluetooth HID device, present in Apple machines with USB,mpi1-2/+11
grab the console. This makes ddb(4) usable with any simple wired USB keyboard on G3/G4 machines that do not have adb(4) input devices, on G5s and certainly on some MacBooks too. ok andre@, miod@
2014-04-27transplant hotplug code over from qle(4)jmatthew2-111/+535
2014-04-27When the firmware has already allocated the handle we want to use to log injmatthew1-4/+52
to a port, restart the update process to keep things in sync. Domain controller logins get special handling here because they don't show up in the list of logged in ports.
2014-04-26Get rid of duplication of the global lock code. Allow recursion in allkettenis1-42/+28
code paths. ok pirofti@
2014-04-25Defer the free of the hibernate structures until later, when it is safe tomlarkin1-1/+9
do so. Freeing the hibernate structures too early leads to inadvertent calls into splx when we aren't ready for them yet. Found when trapping splx calls in the resume path. discussed with deraadt@ at m2k14
2014-04-25regenmpi2-2/+107
2014-04-25Add a bunch of GeForce GT{,X} chips listed in nvidia's 334.21 driver.mpi1-1/+22
This includes the GeForce GT 740M submitted by Rafael Neves on tech@, thanks!
2014-04-25Do no reprobe for a supported protocol when enabling a pointingmpi1-2/+2
device of type PMS_STANDARD, probing during autoconf(9) is enough!. In such case, the device can be a simple PS/2 mouse, a unsupported touchpad or a downgraded touchpad if something bad happened. But it is very unlikely that reprobing will improve the situation and transform a standard mouse into a multitouch-aware touchpad ;) This fixes the 12 seconds delay seen on various Dell laptops (E4310 and Latitude D630) when starting Xorg, reported by Kārlis Miķelsons on bugs@. ok stsp@, dcoppa@, shadchin@
2014-04-25don't access a pointer till after the null checkjsg1-3/+4
ok mikeb@