summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-04-24no need to check for default_chip_map twice in one if statementjsg1-2/+1
2014-04-24Change the usbd_*_report() family of functions to take a usbd_devicempi5-157/+70
and a infaceno argument instead of an iface pointer. While here, remove some unused functions and inlined usbd_read_report_desc since it is used only once. This is part of plumbing required to convert the various USB HID devices to handle multiples report IDs. ok andre@
2014-04-24match some more intel sata devices in ide modejsg1-1/+73
2014-04-24regenjsg2-17/+67
2014-04-24add some more intel sata devices in ide modejsg1-4/+14
2014-04-23Document RTS5227 support in rtsx(4).stsp1-2/+2
2014-04-23rename some hardware revisions to match FreeBSDjsg2-17/+17
2014-04-23add support for RTL8168EPjsg2-2/+5
From Edward O'Callaghan via FreeBSD
2014-04-23While we always mask the revision with 0x7c800000 linux uses a tablejsg2-16/+2
that masks with either 0x7c800000 or 0x7cf00000 depending on the chip. Some of the hardware revisions I previously added can't be matched with the current mask, these are already handled by other revision defines so remove them. When masking the revision defines with 0x7c800000: RL_HWREV_8106E_SPIN1 is the same as RL_HWREV_8106E RL_HWREV_8168G_SPIN1 is the same as RL_HWREV_8168G RL_HWREV_8168G_SPIN2 is the same as RL_HWREV_8168GU
2014-04-23Add support for RTL8168GUjsg2-2/+5
from Rafael Neves
2014-04-22Remove RX checksum offloading support. The chip is too limited, andnaddy2-200/+3
examining higher protocol layers to adjust the checksum and calculate the pseudo-header in the driver is too complex to be worthwhile. ok henning@
2014-04-22Remove some altq tentacles.mpi1-2/+2
ok pelikan@, henning@
2014-04-22If VLAN_HWTAGGING is disabled, we tell the chip not to strip thenaddy1-2/+3
tag from the received frame. Do not add the tag from the receive descriptor in this case so that the packet isn't tagged twice. Matches FreeBSD. ok brad@
2014-04-22move vscsi from using scsi_req_probe and scsi_req_detach to usingdlg1-8/+68
the newly minted scsi_probe and scsi_detach respectively from a task it runs itself. the probe and detach ioctls requests work the same before and after this change, but this paves the way for vscsi being able to report the status of these requests back to userland. discussed with claudio@ tested with current iscsid and an md3200i
2014-04-21Simplify the update process a bit. Don't try to skip parts based on whatjmatthew1-9/+5
we think might have changed, since the update steps depend on each other too much for that to really work anyway.
2014-04-21In qla_get_port_name_list, handle malloc failure, skip special fabric ports,jmatthew1-3/+27
and set location on ports as best we can. Take the port mutex too.
2014-04-20regenstsp2-2/+7
2014-04-20Add device ID for Ralink (now branded Mediatek) MT7601 USB wifi devicestsp1-1/+2
2014-04-20Update hotplug. Add qle_get_port_name_list, use it to discover localjmatthew2-133/+274
loop ports and other fabric ports that have logged in to us, and check that we're still logged in to other fabric ports. Rearrange the update processing loop so we attach and detach targets last, since we need to get all the way through before we've identified what's gone missing. Handle fabric port login errors a bit more usefully too.
2014-04-19kill checksum offloading in sk.henning1-102/+1
it was RX only, nothing on the TX side rather complex, might eat up (or more) offloading benefits in many cases the hardware miscomputes the cksums sometimes, so we don't trust it claiming a cksum is bad and re-do the cksum verification in sw then... (but we trust it to not mark bad ones good? hmmmmmmmmm.) diff was on tech for 3 months, nobody disagreed, everybody who spoke up agrees or doesn't care. pretty exactly a revert of the cksum offloading addition years ago, tested by several, the only report i quickly find now is from David Higgs <higgsd at gmail dot com>, thanks!
2014-04-19sigh, another driver fiddling with altq outside #ifdef ALTQhenning1-5/+2
2014-04-19another questionable "optimization": de used tulip_ifstart_one insteadhenning1-26/+1
of tulip_ifstart if the sendqueue was empty, but only if altq wasn't compiled in (i. e., that's a _compile time_ decision and not based on wether altq was actually used). just use tulip_ifstart all the time, as before in our regular kernels. kill tulip_ifstart_one completely. makes sense to sthen
2014-04-18For the WSDISPLAY_COMPAT_USL protocol, send the synchronizing signals toguenther1-11/+11
the process, not just the thread. ok kettenis@
2014-04-18reaching into altq unconditionally (and w/o ifdef ALTQ) is bad, mmkay?henning1-5/+1
2014-04-18Have each thread keeps its own (counted!) reference to the process's ucredsguenther1-86/+48
to avoid possible use-after-free references when swapping ids in threaded processes. "Do I have the right creds?" checks are always made with the threads creds. Inspired by FreeBSD and NetBSD "right time" deraadt@
2014-04-18Also match RTS5227 in rtsx(4). Works for me on the THinkPad X240.claudio1-1/+2
This will give us basic support there are a few extra bits in the linux driver we ignore for now. Something to look at in the future. OK stsp@ mlarkin@ kettenis@
2014-04-18Implement qle_fabric_plogo and let qle_fabric_plogi look at the response thatjmatthew2-25/+88
comes back, so later on we can work out what to do when logins fail
2014-04-18Rework the command polling loop so it can handle multiple responses in a singlejmatthew1-28/+17
interrupt, as done in qla(4).
2014-04-17When iterating through fabric ports, start at our own port ID, so we canjmatthew1-2/+2
reliably tell when we've been through the whole list.
2014-04-17Copy out all mbox registers after a mailbox operation completes.jmatthew2-64/+43
Simplifies things a bit and makes pre- and post- attach operations work the same.
2014-04-17In debug output, print loop ids as decimals and port ids as 24bit hex.jmatthew1-8/+8
Fix some parameters and wording too.
2014-04-16set ourselves up to respect the max data transfer size.dlg1-4/+11
2014-04-16print the board name and firmware revision like we do on mpii anddlg2-2/+54
nvme and other stuff.
2014-04-16have nvme_poll return the status bigs from the completion ringdlg2-35/+64
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 smalldlg4-46/+496
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 argumentmpi11-63/+64
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.dlg4-57/+58
2014-04-14Always copy out all mailbox registers and use msleep in a loop to ensure thatjmatthew3-69/+62
post-attach mailbox operations work reliably.
2014-04-13wrap a long linederaadt1-2/+3
2014-04-13Fix a badly worded debug message that implied the entire machine was goingmlarkin1-2/+2
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.jmatthew1-10/+9
Fix some parameters and wording too.
2014-04-13perform the same ACPITZ_INIT operation as attach does, at DVACT_WAKEUPderaadt1-2/+17
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 testsjsg1-9/+9
2014-04-12drm/ttm: don't oops if no invalidate_caches()jsg1-4/+6
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 setupjsg1-2/+2
From Alex Deucher 20b03e738e7ded3ab66dd7dd3c3ac198c8531381 in ubuntu 3.8 d03874c881a049a50e12f285077ab1f9fc2686e1 in mainline linux
2014-04-12drm/radeon: TTM must be init with cpu-visible VRAM, v2jsg1-1/+4
From Lauri Kasanen 7e88b3ea565f869721b8ac011ee73b95b773e938 in ubuntu 3.8 14eedc32a3c0ec9dd70448a73763ee21feae3111 in mainline linux
2014-04-12nvm admin command opcodesdlg1-1/+14
2014-04-12start working on a driver for non volatile memory express controllers.dlg5-1/+699
2014-04-12regendlg2-2/+7
2014-04-12fake toydlg1-1/+2