summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2014-04-16have nvme_poll return the status bigs from the completion ringDavid Gwynne
entry. if i ever implement timeouts ill use high bits in the int or the phase bit to indicate non chip related errors. a successful chip status conveniently maps to 0. how handy. this lets me move the completion handling for the controller identification commands back into the caller. at the moment im just printing out controller and firmware details like we do on mfi/mpii/mfii.
2014-04-15i wanted to work on this in the tree so i could commit lots of smallDavid Gwynne
steps, but unfortunately the next step after "talk to the chips registers" was "get command queues working" which ended up being a huge amount of plumbing. anyway, this lets me successfully run an identify controller command against the chip and should be cut up the right way to be usable for io command submissions. will need to think about how to avoid overflowing rings though.
2014-04-15Modify the uhidev_*_report() methods to always take a report ID argumentMartin Pieuchot
instead of using the default, per-driver, one. This is a step to move away from the 1 report ID <-> 1 driver design which is no longer true since the addition of upd(4). ok andre@
2014-04-14move the hardware structures into ahcireg.h.David Gwynne
2014-04-14Always copy out all mailbox registers and use msleep in a loop to ensure thatJonathan Matthew
post-attach mailbox operations work reliably.
2014-04-13wrap a long lineTheo de Raadt
2014-04-13Fix a badly worded debug message that implied the entire machine was goingMike Larkin
to sleep, instead of just the acpi thread going to sleep.
2014-04-13In debug output, print loop ids as decimals and port ids as 24bit hex.Jonathan Matthew
Fix some parameters and wording too.
2014-04-13perform the same ACPITZ_INIT operation as attach does, at DVACT_WAKEUPTheo de Raadt
time also. Let's commit this idea since it is sound, and keep an eye for reports. discussed months ago with kettenis and mlarkin
2014-04-12simplify flag testsJonathan Gray
2014-04-12drm/ttm: don't oops if no invalidate_caches()Jonathan Gray
From Rob Clark 8af4707afcb6d191b9cc75dfd73b9550e8276253 in ubuntu 3.8 9ef7506f7eff3fc42724269f62e30164c141661f in mainline linux
2014-04-12drm/radeon/atom: select the proper number of lanes in transmitter setupJonathan Gray
From Alex Deucher 20b03e738e7ded3ab66dd7dd3c3ac198c8531381 in ubuntu 3.8 d03874c881a049a50e12f285077ab1f9fc2686e1 in mainline linux
2014-04-12drm/radeon: TTM must be init with cpu-visible VRAM, v2Jonathan Gray
From Lauri Kasanen 7e88b3ea565f869721b8ac011ee73b95b773e938 in ubuntu 3.8 14eedc32a3c0ec9dd70448a73763ee21feae3111 in mainline linux
2014-04-12nvm admin command opcodesDavid Gwynne
2014-04-12start working on a driver for non volatile memory express controllers.David Gwynne
2014-04-12regenDavid Gwynne
2014-04-12fake toyDavid Gwynne
2014-04-11sync with libdrm 2.4.53Jonathan Gray
2014-04-10marking the isr as MPSAFE snuck in with r1.76.David Gwynne
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 nowDavid Gwynne
2014-04-09syncTheo de Raadt
2014-04-09I have seen a Hitachi ISP2100 in the wild, and next time do not wantTheo de Raadt
to scan for the product ID again.
2014-04-09remove an abstraction that just wraps a straight malloc on attach forDavid Gwynne
the sc_devs array.
2014-04-09some mild knfDavid Gwynne
2014-04-07Add MSI support for xhci(4). Also add a quirk for some of the FrescoBrad Smith
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;andre
- 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 notMartin Pieuchot
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-07regenBrad Smith
2014-04-07Add Fresco Logic FL1400.Brad Smith
2014-04-07When iterating through fabric ports, start at our own port ID. It doesn'tJonathan Matthew
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 testsJonathan Gray
ok kettenis@
2014-04-07ISP2322 chips need a different firmware image to other 2300s, so until weJonathan Matthew
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).Mark Kettenis
2014-04-06Clear the interrupt before reading the response queue pointer register inMark Kettenis
the interrupt handler as well. See rev 1.12.
2014-04-05set adapter buswidth according to the number of loop ids supported by theJonathan Matthew
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 singleJonathan Matthew
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-03regenMiod Vallat
2014-04-03XIRING Ximax CDC adapterMiod Vallat
2014-04-03Add the missing 6322 PCI id.Brad Smith
ok jmatthew@
2014-04-03XHCI -> xHCI to be consistent with device names.Martin Pieuchot
2014-04-01Move some duplicated code implementing Linux compatibility APIs and stick itMark Kettenis
in a seperate header file. This will become a dumping ground for similar code. ok jsg@
2014-03-31Slightly better debugging code.Mark Kettenis
2014-03-31Force the detach of all USB devices by disconnecting the root hubsMartin Pieuchot
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 andMartin Pieuchot
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 whichJonathan Matthew
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 twoDavid Gwynne
u_int32_ts rather than u_int64_ts. ok jmatthew@
2014-03-31the hardware expects ahci_cmd_table to be 128 byte alignedDavid Gwynne
2014-03-31move the last htoleXX things to htolemXX where possible.David Gwynne
ok jmatthew@
2014-03-31ahci dva things are 64bit and surprisingly aligned nicely to 64bit too.David Gwynne
ok jmatthew@
2014-03-31replace bzero with memsetDavid Gwynne