summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
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-31Protect mips64 pmap and pvlist structs with a mutex to make pmapVisa Hankala
operations MP-safe. Tested on octeon and sgi (IP27, IP30). Feedback from kettenis@ long ago
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-29store curcpu() in ifq_serializer so we can check it.David Gwynne
this in turn gives us ifq_is_serialized() and an IFQ_ASSERT_SERIALIZED() macro. ok mpi@
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-28Remove description of circular queues and add a small blurb aboutTodd C. Miller
XOR simple queues.
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-27Add missing #include "audio.h". Fixes sndiod pledge issue reported bytb
timo.myyra () wickedbsd ! net, thanks! While there, remove extraneous "pty.h". ok deraadt@
2015-12-27welcome GENERIC.IP27 MP (dual cpu on O350 now)Theo de Raadt
ok visa
2015-12-27If available prefer the rdseed instruction over rdrand when adding entropyJonathan Gray
to the kernel rng. If the rdseed source is empty fallback to rdrand as suggested by naddy. rdrand output comes from a prng that is periodically reseeded. rdseed should give us more bits of entropy. ok naddy@ djm@ deraadt@
2015-12-27wrap "audio" pledge code in NAUDIO > 0, because there are a fewTheo de Raadt
GENERIC kernels which lack audio drivers.
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-25Add IPI logic. Assign two additional interrupts for inter-processorVisa Hankala
signalling as a workaround to a limitation in the hub interrupt code, to allow four CPUs per node. At the moment, multi-node setups are not supported.
2015-12-25Add launch logic for secondary CPUs. The PROM's launch entry point addressVisa Hankala
and function signature are from Linux.
2015-12-25Make interrupt masking MP-aware. Linux IP27 and IP35 ports served as aVisa Hankala
substitute for hardware documentation.
2015-12-25Add timecounter for MP.Visa Hankala
2015-12-25Use the ErrorEPC register for curcpu() on Origin, for now.Visa Hankala
2015-12-24If the GPT header checksum check fails, do *not* say the OpenBSD partitionKenneth R Westerback
starts at sector 1. Instead return -1, as for all other failures during the header check.
2015-12-24Make gpt_chk_mbr() instances even more identicaller by alwaysKenneth R Westerback
returning 0 or 1 since only boolean checks of the result are done. No need for EINVAL as a return value.
2015-12-24Make all instances of gpt_chk_mbr() identical (bar static vsKenneth R Westerback
non-static) by passing disk size as 2nd parameter instead of the different structures holding the disk size info. The fifth copy of gpt_chk_mbr() in fdisk is a little specialer. No functional change.
2015-12-24more e-mail -> emailmmcc
2015-12-24Remove a couple NULL-checks before free().mmcc
ok sf@
2015-12-24Add prototype for gpt_chk_mbr() to i386_installboot.c. Add 'static' toKenneth R Westerback
declarations of gpt_chk_mbr() to match prototypes in efidev.c and softraid.c.
2015-12-24Normalize return values from various exit functions.Mike Larkin
Another diff from Stefan Kempf <sn.kempf at t-online.de>.
2015-12-24Make sure we don't overflow a page during vm_readpage/vm_writepage.Mike Larkin
Noticed over a month ago by Stefan Kempf <sn.kempf at t-online.de>, and I shamefully just got around to committing it. Thanks Stefan.
2015-12-24More adress -> addressmmcc
2015-12-24Argh. The other part the wrong diff was missing.Kenneth R Westerback
Use the size info in struct sr_boot_volume, and not the uninitialized info in the disklabel, when checking the GPT protective MBR. Now both GPT and MBR formatted softraid volumes actually boot. As a bonus add prototype for gpt_chk_mbr().
2015-12-23pledge "audio" code block must be !SMALL_KERNELTheo de Raadt
2015-12-23revert previous:Jasper Lievisse Adriaanse
---------------------------------------------------------------------- revision 1.961 date: 2015/12/22 13:33:26; author: sashan; state: Exp; lines: +153 -44; commitid: oBRhtWcDV0ThviVT; - yet another tiny step towards MP PF. This time we need to make sure statekey attached to packet stays around, while accepted packet is routed through IP stack. OK mpi@, henning@ ---------------------------------------------------------------------- there have been multiple reports of KASSERT(!pf_state_key_isvalid(sk)) being triggered without much effort, so back this out for now.
2015-12-23If PLEDGE_AUDIO is set, allow audio(4) ioctls necessaryAlexandre Ratchov
to use raw audio devices. ok deraadt, semarie
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-23Ooops. Wrong version of the diff committed, with reversed check forKenneth R Westerback
MBR/GPT. Problem found the hard way by Glenn Faustino on tech@
2015-12-23One "sbar" taskq is enough.Mark Kettenis
ok visa@