summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2016-01-04mark the driver MPSAFE. most of this is cleaning up the oactive handling.David Gwynne
if there's lingering bugs we'll deal with them in tree. ok jmatthew@
2016-01-03Fix typo in comment.Mark Kettenis
Pointed out by mlarkin@
2016-01-03Add support for 100 series to pchtemp(4).Daniel Dickman
ok kettenis@
2016-01-01Reimplement vga_put() such that it compiles on i386 as well.Mark Kettenis
2015-12-31regenMark Kettenis
2015-12-31Add some XEON-D devices.Mark Kettenis
2015-12-31Make ixgbe_start() mpsafe. This means the driver will no longer grab theMark Kettenis
kernel lock in the rx and tx path anymore. While there seems to be a small decrease in forwarding performance with our default network stack settings, Performance whiel receiving manymore packets than we can handle is better. And this change opens the road for future improvements in the network stack. ok dlg@, mpi@
2015-12-3182544 on pcix busses needs a workaround that effectively doublesDavid Gwynne
the possible number of slots a packet can use on the tx ring. to make it easier to reserve and account for space on the ring, half the number of dma descriptors on those chips so the number of slots can stay the same. ok claudio@
2015-12-31Add pchtemp(4) a driver for the thermal sensor on recent Intel PCHs.Mark Kettenis
2015-12-31Provide a minimal implementation of the Linux vga_get/vga_put API and use itMark Kettenis
in inteldrm(4). The Intel integrated graphics device has a major design flaw where it needs legacy VGA io access to disable VGA mode completely. This only works if legacy VGA io routing is setup such that it actually reaches the IGD. This typically isn't the case if the primary VGA device is a discrete graphics device. To make sure we don't whack that device we have to temporarily route legacy VGA io access to the IGD. Fixes the "black screen" issue reported by Timo Myrra and others.
2015-12-31Unconditionally set the "switchcookie". Fixes synchronous VT switching.Mark Kettenis
Matches what radeondrm(4) already did.
2015-12-29regenMark Kettenis
2015-12-29Intel C610 Thermal SensorMark Kettenis
2015-12-29Tweak previous by de-indenting label and replacing remaining continuesmmcc
with gotos. supported by kettenis@, ok sobrado@
2015-12-29shuffle tx code slightly and mark bge_start as mpsafe.David Gwynne
reviewed by jmatthew@ ok kettenis@
2015-12-29Set UltraDMA transfer mode. Some (early?) SATA drives, such as the MaxtorMark Kettenis
7Y250M0, refuse to do DMA unless the transfer mode has been set. This causes reads (and presumably writes) to time out. Unlike the wdc code, this only sets the UltraDMA transfer mode. If we ever want to support ancient PATA drivers through the atascsi layer, we probably need to set the PIO and/or MWDMA transfer modes as well. ok jmatthew@, dlg@)
2015-12-29Remove NULL-checks before free().mmcc
ok tb@
2015-12-281. Add a loop_end label to the outer loopmmcc
2. Replace a continue statement in an inner loop with goto loop_end This fixes a simple logical bug found with Coccinelle. ok kettenis@
2015-12-28Rework re_start and re_txeof to only check the producer/consumer ringJonathan Matthew
positions when deciding how much work to do, and to adjust rl_tx_free with atomic operations; split the flag that indicates whether we're using timer based interrupts or not out into a separate field so it can be changed from interrupt context without needing a lock; take the kernel lock when calling re_init and re_start from interrupt context; add an interrupt barrier in re_stop; and finally mark the interrupt handler as mpsafe. started by Jim Smith a while ago, mostly finished up at n2k15 tested by dlg@, chris@ and Dimitris Papastamos on various hardware ok dlg@
2015-12-28use ulmin when looking at uio_resid to prevent wrapping around.Ted Unangst
from Martin Natano (and also reported by Stefan Kempf)
2015-12-27set sensor type later on initJoerg Jung
2015-12-27fold for loops back into a wait function in a similar manner as acpiec doesJoerg Jung
2015-12-27rename kbdled to backlight and mention chip model in commentJoerg Jung
2015-12-27extra taskq is gone, so also remove the no longer needed init variableJoerg Jung
2015-12-27simplify and unify keyboard backlight hooks, doing the same kassert instead ofJoerg Jung
for-loop as acpithinkpad does
2015-12-27with Mark's fix in previous commit the extra taskq for delayed initializationJoerg Jung
and updates is no longer needed and can be removed, so simplify things and initialize the sensors on attach and update them through the sensors task
2015-12-26Add support for the Perle Speed8 LE.Mark Kettenis
2015-12-26regenMark Kettenis
2015-12-26Add Perle Speed8 LE.Mark Kettenis
2015-12-25enable iso keyboard munge fix for macbookair6,2Joerg Jung
ok jcs
2015-12-24more e-mail -> emailmmcc
2015-12-24Remove a couple NULL-checks before free().mmcc
ok sf@
2015-12-23add aml_freevalue in a couple places, avoid storing a result thatJoshua Stein
would need to be freed in a couple other places with deraadt
2015-12-23Drop unused goto label.Visa Hankala
2015-12-22Make xs_setprop a bit more useful by removing property nodesMike Belopuhov
when NULL or zero length value was specified.
2015-12-22Implement a bus_dma(9) abstraction on top of Grant Table APIMike Belopuhov
2015-12-22Remove obsolete comment.Mark Kettenis
2015-12-22The Apple SMC is implemented on a H8S/2117 chip. Communication with the chipMark Kettenis
becomes much more reliably if we pay attention to the IBF and OBF flags. This removes the need for excessive delays and retries, making operations complete in microseconds instead of seconds. This diff also removes flushing the read buffer after a read operations. This doesn't seem to be necessary, but we might need to put that back if the length of a reply changes for some keys. ok jung@, deraadt@
2015-12-21add virtio-console driverStefan Fritsch
This patch adds a new driver for use of virtio-console devices as ttys. It's still in an early state and not compiled by default, yet. Currently it is only wired into amd64. i386 is still missing. Discussed with uebayasi@, deraadt@
2015-12-21Goto a loop_end label rather than using a continue statement for anmmcc
error condition in an inner loop. Found with Coccinelle. Pointed out by tedu@, ok kettenis@ and deraadt@ about three months ago.
2015-12-21Introduce xen_intr_mask and xen_intr_unmask primitivesMike Belopuhov
Mask the event port during xen_intr_establish, but don't set the masked flag in the intsrc. By providing mask and unmask routines we allow the device to decide when to perform these actions. The port will still be unmasked during xen_intr_enable. This allows netfront to fulfil the intr_barrier pattern requirements fairly easily and at the same time should be sufficient for diskfront that doesn't need to fiddle with interrupt masking.
2015-12-21Cleanup hypercall subsystem type definesMike Belopuhov
2015-12-21Don't unmask the port in xen_intr_establishMike Belopuhov
2015-12-20Advertise support for DRM version 1.4. We have support for all the necessaryMark Kettenis
features, and some code (such as the Xorg modesetting driver) actually checks the version. With this change the PCI-based probe method in that driver works. ok jsg@
2015-12-20Do not delay video(4) attachment if the device does not need to loadMartin Pieuchot
a firmware. Regression spotted by deraadt@
2015-12-19Replace 'arc4random() % x' by 'arc4random_uniform(x)'.tb
Diff by Matthew Martin, thanks! ok djm@, tedu@
2015-12-19Remove code that has been unused ever since we removed the agp ioctl interface.Mark Kettenis
ok mpi@
2015-12-19Move agp_generic_enable() prototype to agpvar.h to unbreak the build onMark Kettenis
macppc.
2015-12-19Prevent GPU lockups with KMS & AGP-enable on Uninorth (G4) machines.Martin Pieuchot
Based on linux commit 5613beb46d54da6ef7f1c4589e9f2e60eeb10721 found by jsg@. KMS is now usable on Uninorth machines but X11 output is still corrupted. ok kettenis@
2015-12-19Do not match Uninorth bridges until we have a working KMS with AGPMartin Pieuchot
support for G4 machines. This allows us to enable agp(4) again for G5 machines. ok kettenis@