summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2014-07-12add a size argument to free. will be used soon, but for now default to 0.tedu79-364/+364
after discussions with beck deraadt kettenis.
2014-07-12To enable Intel XHCI host controller, re-route all of usb port to xhciyuo2-3/+52
instead of connected to ehci. ok mpi@
2014-07-12Rework zyd(4)'s register read/write methods to eliminate race conditions.stsp2-65/+93
Read commands were issued via asynchronous transfers and replies were expected after a fixed tsleep() timeout. Upon timeout zyd simply freed the xfer even if it was still in-flight within the USB stack. This could cause havoc such as making all USB ports on the system unusable until reboot. ehci_freex: xfer=0xfffffe811e63e9d8 not busy, 0x4f4e5155 ("busy" here would indicate the xfer is done and marked for being freed) To fix this, issue read commands with synchronous transfers so the xfer can always complete. Split read/write code paths into separate methods. Add a flag that tells us if a reply was received in interrupt context while the read path waited in tsleep(). With and ok mpi@
2014-07-12remove ifdef'd out valleyview/baytrail device listsjsg1-9/+1
on linux versions before 3.11 i915_pci_probe() doesn't match valleyview unless i915_preliminary_hw_support is specified as a module parameter. our drm code is currently based on linux 3.8, so it seems unlikely that the valleyview support we have works.
2014-07-12Remove the qli driver for QLogic 4010 & 4022 iSCSI.jsg3-1821/+1
It was never enabled and is apparently unfinished. ok deraadt@ krw@ claudio@ kettenis@
2014-07-12regenjsg2-2/+17
2014-07-12add some more matrox devices found in serversjsg1-1/+4
2014-07-12regenyuo2-7/+7
2014-07-12fix location of 7 Series xHCI entryyuo1-2/+2
no side effect
2014-07-12Add a function to drop all clean pages on the page daemon queues and callkettenis1-2/+4
it when we hibernate. ok mlarkin@, miod@, deraadt@
2014-07-12Use the correct poll interval for HS root hub before it gets copied, nompi1-2/+2
real impact since this descriptor is not used in the kernel. From NetBSD.
2014-07-12Kill a bunch of DVACT_DEACTIVATE handlers whose only purpose were tompi26-655/+156
set the 'dying' flag of a device. Such handlers are useless now that usbd_detach() already set this flag. Even if the purpose of this flag is questionnable on OpenBSD because DVACT_DEACTIVATE acts as a pre-detach event, this is just a first small step towards the simplification of the autoconf(9) device states. This cleaning is now possible thanks to the work of pirofti@ to convert all the USB drivers to properly use usbd_is_dying(). Discussed many times with deraadt@
2014-07-12essentially mechanical conversion of softraid rebuild fromblambert3-4/+7
workq to taskq ok jsing@
2014-07-12Remove incorrect comment about how autoconf(9) works and documentmpi1-16/+3
that usbd_detach() should only be called by the thread doing USB bus exploration to prevent attach/detach races.
2014-07-12Only detach the USB device you disconnected, fix a regression reportedmpi1-3/+7
by guenther@. While here set the dying flag of the disconnected device so that most of the DVACT_ACTIVATE handlers can go.
2014-07-12Preread the thermal zone trip points before reading the temperature value.mlarkin1-4/+18
This is needed on some (specifically HP) machines to avoid _TMP reporting a bogus temperature value (temperatures > 4,000 degC), which causes acpitz to automatically shut down the machine because it thinks it's floating in lava. Also ensure that we can accept a temperature reading of 0 degC - we were previously interpreting 0 degC as "bad temperature data" and not attaching the thermal zone device. Some machines have ephemeral temperature sensors that come and go (eg in docks) and we want to make sure we attach those even if they report back 0 degC on initialization. Fixes some machines with "failed to read _TMP" errors. ok deraadt, tested and verified by a few folks on tech@ who were seeing the thermal zone shutdown isue.
2014-07-11"It's not the years, honey; it's the mileage."tedu14-5352/+2
bluetooth support doesn't work and isn't going anywhere. the current design is a dead end, and should not be the basis for any future support. general consensus says to whack it so as to not mislead the unwary.
2014-07-11Remove redundant mask check in the interrupt routine.pirofti1-3/+2
We return earlier if the interrupt is masked. Discussed with and okay mpi@
2014-07-11Fix invocation of _OSC. We were passing the capabilities in the wrong DWORDkettenis1-27/+63
and specifyig the wrong DWORD count. Moreover we should not evaluate _PDC if _OSC is present. Might not be perfect yet, but what we had previously was uterrly and totally wrong. ok guenther@
2014-07-11add sensors to export what the actual size of the balloon is and what itjasper1-1/+24
should be, in bytes. currently uses SENSOR_INTEGER as sensor type, this may change in the future in favor of a new sensor type. ok sf@
2014-07-11Fix debug printf formating and kill some trailing whitespaces while here.mpi1-18/+14
2014-07-11Be less verbose with task debug messages and kill some trailingmpi1-20/+17
whitespaces while here.
2014-07-11It's init as a process that's special, not init's original thread.guenther4-9/+9
Remember initprocess instead of initproc. ok matthew@ blambert@
2014-07-11Flush the buffercache to 16MB on hibernate and restore its previous maxmlarkin1-1/+7
size (kern.bufcachepercent) on resume, for better hibernate performance. ok beck@
2014-07-10Do not set the bus dying flag during DVACT_DEACTIVATE otherwise thempi3-15/+3
explore thread will not disconnect the root hub. The flag will be set before detaching the children, like it is done during a suspend- resume cycle. Fix a panic when unplugging a cardbus *hci(4).
2014-07-10remove most of the boolean_t infection outside uvm/ddb/pmap; ok jsgderaadt8-36/+32
2014-07-10remove unneeded headerblambert1-2/+1
ok mlarkin@
2014-07-10Stop using a shutdown hook for softraid(4) and explicitly shutdownmpi2-19/+13
the disciplines right after vfs_shutdown(). This change is required in order to be able to set `cold' to 1 before traversing the device (mainbus) tree for DVACT_POWERDOWN when halting a machine. Yes, this is ugly because sr_shutdown() needs to sleep. But at least it is obvious and hopefully somebody will be ofended and fix it. In order to properly flush the cache of the disks under softraid0, sr_shutdown() now propagates DVACT_POWERDOWN for this particular subtree of devices which are not under mainbus. As a side effect sd(4) shutdown hook should no longer be necessary. Tested by stsp@ and Jean-Philippe Ouellet. ok deraadt@, stsp@, jsing@
2014-07-10Always assign the device address found by the USB stack even if itmpi2-9/+10
does not match the hardware address. This change only matters for xHCI buses where the controller assigns device addresses. But it is the simplest way to comply with the stack requirement of assigning the first `logical' address to the root hub device. Device addresses are not much used anyway and a cleanup will follow to avoid possible confusions. This makes usbdevs(8) correctly report devices connected to xhci(4).
2014-07-10Show eeprom version of ath devices in dmesg; ok reykstsp1-1/+6
2014-07-10record the size of the rx rings so we can wrap around them correctly.dlg1-1/+2
fixes a panic, reported by paul de weerd.
2014-07-10Print an understandable error message when we fail to read the reportmpi1-3/+3
descriptor. Pointed out by benno@
2014-07-10rings that dont rx packets dont need to be refilled.dlg1-1/+4
2014-07-09regenbrad2-6/+6
2014-07-09shorten a bitbrad1-3/+3
2014-07-09- do the actual viomb_deflate() after printing the debug messagejasper1-7/+6
- whitespace cleanup ok sf@
2014-07-09regensasano2-6/+51
2014-07-09add devices for DM&P Vortex86EX SoCsasano1-3/+12
ok by miod@ and deraadt@
2014-07-09autoconf(9) is your friend and it knows you more than you think. Itmpi4-95/+46
even knows your children! So let him handle the seperation correctly. Do not rewrite your own custom config_detach_children(9) and as a bonus start removing the usbd_port tentacles from the stack. ok pirofti@, yuo@, miod@, deraadt@
2014-07-09Use the correct rf revision number for AR2425 radios. When read fromstsp1-1/+2
hardware the revision is zero. Linux also hardcodes this value. ok reyk
2014-07-09Now that the stack handles properly the xhci(4) way of setting anmpi1-43/+47
address, kill some no longer true comments and create a proper function to assign an address. For the moment, an address is assigned when setting up a slot for a new device.
2014-07-09Adds an optional bus function to set the address of a new device andmpi7-38/+41
explicitly set it when required. Right now xhci(4) does not need such function because it assigns addresses when the first pipe of a device is opened. ok yuo@, pirofti@
2014-07-09Kill unused shutdown hook pointers.mpi3-8/+4
ok miod@, deraadt@, tedu@
2014-07-09avoid being too smart when filling the rx ring.dlg1-2/+2
2014-07-09dont try to be smart about avoiding the use of too many descriptorsdlg1-2/+7
when filling the rx ring. trust the hwm. problem found by sthen@
2014-07-08Recognize (and ignore) ``black button'' presses. ok beck@miod1-1/+3
2014-07-08decouple struct uvmexp into a new file, so that uvm_extern.h and sysctl.hderaadt22-66/+21
don't need to be married. ok guenther miod beck jsing kettenis
2014-07-08undo accidentally committed changesstsp2-4/+2
2014-07-08Remove left-over call to removed function m_clsetwms().stsp3-5/+5
ok mpi
2014-07-08cut things that relied on mclgeti for rx ring accounting/restriction overdlg27-265/+353
to using if_rxr. cut the reporting systat did over to the rxr ioctl. tested as much as i can on alpha, amd64, and sparc64. mpi@ has run it on macppc. ok mpi@