summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-04-11sync with libdrm 2.4.53jsg1-1/+23
2014-04-10marking the isr as MPSAFE snuck in with r1.76.dlg1-2/+2
while it might be ok (and hasnt actually blown up since i committed that) id rather review the code and enable it explicitely.
2014-04-09apparently NVM is a type of mass storage nowdlg1-1/+2
2014-04-09syncderaadt2-2/+14
2014-04-09I have seen a Hitachi ISP2100 in the wild, and next time do not wantderaadt1-1/+5
to scan for the product ID again.
2014-04-09remove an abstraction that just wraps a straight malloc on attach fordlg1-18/+9
the sc_devs array.
2014-04-09some mild knfdlg1-12/+31
2014-04-07Add MSI support for xhci(4). Also add a quirk for some of the Frescobrad1-2/+12
Logic controllers, taken from the Linux kernel. ok mpi@
2014-04-07- Remove a enumerator for supported sensors, makes better usage of our usb api;andre1-136/+197
- Allocate/enable sensors wich match both: the static usage table of supported usage IDs and the usages supported by the device; - Do not attach when no sensors can be allocated; - Makes device querying smarter: query the device just once for values stored in the same reportid reply payload. - Use sensor_status. ok mpi@
2014-04-07Use the `use_polling' hack to make sure usb_delay_ms() will notmpi1-1/+5
call tsleep(9) on resume. deraadt@ pointed that this not needed for powerdown since `cold' is set. Another approach would be to call delay() directly in the reset functions, but let stay coherent with the other HC drivers.
2014-04-07regenbrad2-2/+7
2014-04-07Add Fresco Logic FL1400.brad1-1/+2
2014-04-07When iterating through fabric ports, start at our own port ID. It doesn'tjmatthew1-2/+3
matter if we don't see ourselves, and if we pick another starting point, the first port we see might disappear half way through (I have seen this happen), which makes it more complicated to identify when we're back at the start.
2014-04-07reduce the diff to linux for drm pci vid/pid testsjsg17-196/+205
ok kettenis@
2014-04-07ISP2322 chips need a different firmware image to other 2300s, so until wejmatthew1-15/+38
add that, don't try loading firmware for them.
2014-04-06Rework the command polling loop in a similar fashion as was done for qla(4).kettenis1-27/+17
2014-04-06Clear the interrupt before reading the response queue pointer register inkettenis1-3/+4
the interrupt handler as well. See rev 1.12.
2014-04-05set adapter buswidth according to the number of loop ids supported by thejmatthew3-10/+13
firmware (2048 for 2k login firmware, 256 otherwise) pointed out by deraadt@, ok dlg@
2014-04-04Rework the command polling loop so it can handle multiple responses in a singlejmatthew1-29/+17
interrupt. With this we can talk to Hitachi disk arrays, which sometimes return so much sense data that a status continuation response is generated in addition to the normal status response. tested by deraadt@
2014-04-03regenmiod2-4/+16
2014-04-03XIRING Ximax CDC adaptermiod1-1/+5
2014-04-03Add the missing 6322 PCI id.brad1-1/+3
ok jmatthew@
2014-04-03XHCI -> xHCI to be consistent with device names.mpi1-2/+2
2014-04-01Move some duplicated code implementing Linux compatibility APIs and stick itkettenis4-73/+69
in a seperate header file. This will become a dumping ground for similar code. ok jsg@
2014-03-31Slightly better debugging code.kettenis1-15/+16
2014-03-31Force the detach of all USB devices by disconnecting the root hubsmpi1-40/+61
before suspending the machine. Prior to this commit, devices were logically disconnected after resuming the machine leading to funny races since the controller was reset in between. ok deraadt@
2014-03-31Change the order of operations during a suspend/resume cycle andmpi1-3/+4
call bufq_quiesce() after executing the DVACT_QUIESCE handlers. This should be safe since no disk nor controller drivers have such handler but it will allow us to detach sd(4) devices attached to a USB bus. Another benefit pointed out by kettenis@ is that drivers that need to read a firmware from the disk should be able to do it at resume time in a DVACT_WAKEUP handler. ok kettenis@, deraadt@
2014-03-31Rather than scanning local loop ids sequentially, just ask the chip whichjmatthew3-18/+75
local devices it has logged in to. This will also be useful for hotplug later on.
2014-03-31qle dvas straddle 4 byte boundaries, so best to treat them as twodlg2-9/+21
u_int32_ts rather than u_int64_ts. ok jmatthew@
2014-03-31the hardware expects ahci_cmd_table to be 128 byte aligneddlg1-2/+2
2014-03-31move the last htoleXX things to htolemXX where possible.dlg1-33/+31
ok jmatthew@
2014-03-31ahci dva things are 64bit and surprisingly aligned nicely to 64bit too.dlg2-12/+8
ok jmatthew@
2014-03-31replace bzero with memsetdlg1-10/+10
2014-03-31massage the prdt (what an sgl is on every other chip) loading withdlg2-39/+28
better ops and alignment. ok jmatthew@ who was cruel and made me test hibernate before he oked it.
2014-03-31dva on ahci is 64bitdlg1-2/+2
2014-03-30Eliminates struct pcred by moving the real and saved ugids intoguenther1-31/+31
struct ucred; struct process then directly links to the ucred Based on a discussion at c2k10 or so before noting that FreeBSD and NetBSD did this too. ok matthew@
2014-03-30drm/radeon: disable pll sharing for DP on DCE4.1jsg1-2/+16
From Alex Deucher 2e673e623ba5a604c02fadcad9bf75e6a0ee9705 in ubuntu 3.8 9ef4e1d000a5b335fcebfcf8aef3405e59574c89 in mainline linux
2014-03-30drm/radeon: fix missing bo reservationjsg1-1/+7
From Christian Koenig ea0e5ee12a70badcdfee846bfaf5d4338dc285ca in ubuntu 3.8 5e386b574cf7e1593e1296e5b0feea4108ed6ad8 in mainline linux
2014-03-30drm/i915/dp: add native aux defer retry limitjsg1-5/+12
From Jani Nikula b4cdadf2591e12c61f895556cf93a8b61a36892c in ubuntu 3.8 f51a44b9a6c4982cc25bfb3727de9bb893621ebc in mainline linux
2014-03-30drm/i915/dp: increase native aux defer retry timeoutjsg1-3/+3
From Jani Nikula 6048560066737a87621b9169ef4bdab0e3cef620 in ubuntu 3.8 04eada25d1f72efdecd32d702706594f81de65d5 in mainline linux
2014-03-30drm/i915: Prevent MI_DISPLAY_FLIP straddling two cachelines on IVBjsg1-1/+15
From Ville Syrjala 0828f7607cee51cabf00b984dad3a8ef200beb41 in ubuntu 3.8 f66fab8e1cd6b3127ba4c5c0d11539fbe1de1e36 in mainline linux
2014-03-30drm/i915: Add intel_ring_cachline_align()jsg2-2/+24
From Ville Syrjala 0320c449d2a820ed2a1972e23d8f20f8024a5872 in ubuntu 3.8 753b1ad4a281b0663329409d410243e91825c323 in mainline linux
2014-03-30correct the value of DRM_MAJOR for non i386 platformsjsg1-1/+5
ok matthieu@
2014-03-29It's been a quarter century: we can assume volatile is present with that name.guenther4-9/+9
ok dlg@ mpi@ deraadt@
2014-03-28if you split a 64bit thing into two 32bit halves, it helps to writedlg1-2/+2
half of the source value to both the hi and lo parts. writing both of the source halves to just lo isnt going to work good. found by naddy@. sorry guys.
2014-03-28Reduce uvm include madness. Use <uvm/uvm_extern.h> instead ofmpi8-17/+19
<uvm/uvm.h> if possible and remove double inclusions. ok beck@, mlarkin@, deraadt@
2014-03-28Do not declare a struct as const if we write to it, fix build on sparc64mpi1-2/+2
reported by brad@.
2014-03-28If a command is submitted when the hardware is already gone, it willmpi1-7/+7
obviously time out. That is what happen when pipes are closed after unplugging an xhci(4) express card for example. In such case, make sure the command TRB is reset.
2014-03-28specify at least the alignment the hardware requires, and in some casesdlg1-16/+16
the alignment the driver guarantees. with and ok jmatthew@
2014-03-27unbreak mfii after i changed the layout of some structures it borrowsdlg1-7/+11
from mpii. disappointment from deraadt@