summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2010-08-08Close race between the acpi thread and wscons ioctls running in processMark Kettenis
context. We might rip this out post-release and replace it with a solution that serializes things in a more obvious way. ok deraadt@, miod@ and "those crazy texans who ok anything"
2010-08-08suspend/resume support for auich, and some infrastructure in ac97Jacob Meuser
"commit" deraadt
2010-08-08fix broken english in commented out printf.Miod Vallat
2010-08-08Stop recursion introduced in rev 1.42, by reverting most of that commit.Mark Kettenis
We keep the busy diagnostic for now. ok deraadt@
2010-08-08Try to save the vga hardware state around suspend, and also redisplay theMiod Vallat
textmode video memory contents if we had to POST the vga bios. ok deraadt@ kettenis@
2010-08-08activate function for suspend/restore; from mglockerTheo de Raadt
2010-08-08Try and improve legacy controller emulation heuristics; if we think we shouldMiod Vallat
not attach pckbd but pms attaches, then we are on real hardware, and should attach pckbd anyway. No known regression on legacy free systems; makes the few machines which required device flags changes in UKC work out of the box again. ok deraadt@
2010-08-08Make sure hw.revision_id gets initialized before it's used by em_set_mac_type()Mark Kettenis
and move it back to the location where it was before rev. 1.239, while keeping the horrible override for em_pchlan. From Holger Mikolon. ok jsg@, deraadt@
2010-08-08Be consistent in function naming. No functional changes.Marcus Glocker
OK deraadt@
2010-08-08convert printf()s that can happen in the resume path to DPRINTF()s.Jacob Meuser
silencing requested by deraadt
2010-08-08at resume time, re-nable the AMDPM_RNGEN bitTheo de Raadt
2010-08-08silence BIOS takeover failure messages on unsuspendsTheo de Raadt
2010-08-08highly recommend that DVACT_{SUSPEND,RESUME} return 0 unless you want to ↵Theo de Raadt
trigger a broken code path
2010-08-08Report the acpi sleep states when on a RAMDISK; ok krwTheo de Raadt
2010-08-07Revert 1.123. Hangs RTL8168C/8111C (0x3c00) afterChristian Weisgerber
ifconfig re0 up ifconfig re0 down dhclient re0 ok krw@, deraadt@
2010-08-07quiet "missed interrupt" messages. requested by deraadt.Jacob Meuser
2010-08-07restore unsolicited responses from volume knob widgetsJacob Meuser
tested by deraadt
2010-08-07break statements even on default casesTheo de Raadt
2010-08-07Suspend/resume for agp_amd.cOwain Ainsworth
Note: the unconditional restore of the status register is ok because all of the bits are either ones we want to preserve or read-only. ok deraadt@
2010-08-07Suspend/resume handler for viaagp.Owain Ainsworth
ok deraadt@.
2010-08-07save/restore functions for aliagp.Owain Ainsworth
Very similar to other agp suspend functions. ok kettenis@, deraadt@.
2010-08-07Suspend/resume handler for sisagp save/restoring the gtt window/size andOwain Ainsworth
tlb enable states before we go down and whacking them back in on bringup. ``commit'' deraadt@
2010-08-07Save and restore registers on suspend/resume.Owain Ainsworth
An earlier iteration of this fixed the "no X, suspend, resume, startx, boom" problem for sthen on his machine. ok deraadt@
2010-08-07Enforce acpi register access rescrictions.Mark Kettenis
ok mlarkin@, deraadt@, tested by marco@
2010-08-07Enforce acpi register access rescrictions.Mark Kettenis
ok mlarkin@, deraadt@, tested by marco@
2010-08-07Generate power change events for APM. Makes powerup and powerdown scriptsCan Erkin Acar
work with ACPI. ok deraadt@, phessler@, feedback kettenis@
2010-08-07The wakeup of the acpi thread is not needed. This code is being calledTheo de Raadt
from inside the thread context, and will unwind into the middle of acpi_thread, where it will check these variables ok jordan marco kettenis canacar
2010-08-07Unmap registers upon detach. Avoid panics when detaching a partially attachedMark Kettenis
device. Found out the hard way by hotplugging an unsupported "Soft-Mac" device. ok deraadt@
2010-08-07Add resume support for serial consoles.Mark Kettenis
Tested by sthen@, ok deraadt@
2010-08-07upon resume, notify all the acpiac and acpibat drivers to updateTheo de Raadt
their status. some laptops do not do this automatically. ok kettenis canacar
2010-08-07In the resume case we need to check IFF_UPTheo de Raadt
2010-08-07In fxp_pci_activate use the correct softc's; then use a workq since someTheo de Raadt
fxp's need load firmwares..... tested by sebastia
2010-08-07No "\n" needed at the end of panic() strings.Kenneth R Westerback
Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
2010-08-06Always call _PSW on _LID devices that support it to enable lid open toMarco Peereboom
resume the machine. Conversely disable it when the machine wakes up. Tested by several ok deraadt
2010-08-06com@isa suspend and resume; logic cloned from ../puc/com_puc.cTheo de Raadt
ok kettenis
2010-08-06Initial stab at making com@puc suspend and resume properly. Works fineMark Kettenis
for using cu(1) between two OpenBSD machines. Probably doesn't work for serial consoles but we don't support those on puc(4) anyway. ok deraadt@
2010-08-06Initial stab at making com@puc suspend and resume properly. Works fineMark Kettenis
for using cu(1) between two OpenBSD machines. Probably doesn't work for serial consoles but we don't support those on puc(4) anyway. ok deraadt@
2010-08-06repost hp g62Marco Peereboom
ok deraadt
2010-08-06As part of a revamp of the PM1/GPE code, I write this diff to look forTheo de Raadt
unmanaged EN & STS bits in the PM1 register at interrupt time and report them. As a side effect this splits the STS acknowledgement into two writes (for power, and sleep) instead of one. The printf that is added (to spot unmanaged STS bits) has not yet been triggered as far as we know. Before the "write to PM1 registers at the right offset" diff went in, this was not neccessary. But newer thinkpads do not have a working soft power button without this diff. We have no idea why. ok mlarkin kettenis
2010-08-06ca_activate for suspend/resume; tested by andrew@afresh1.comTheo de Raadt
2010-08-06save/restore the *correct* clock gating registers on suspend/resumeOwain Ainsworth
instead of accidentally writing zeros to ones that may not even exist on the chipset we're running on. problem noted by damien@, fix by me. been in theo's tree a couple of days. ``commit'' deraadt@.
2010-08-06Previous code to handle suspend/resume for intagp assumed thatOwain Ainsworth
everything was unbound before we go down. Due to software fallbacks from the vt-switched X this is not strictly true, so save/restore the gtt (which is stored in a BAR and thus volatile). i915 and i945 still have some (unrelated) coruption on dzen2 on resume which I am looking for still (theory: fence registers), but this helps a LOT of machines. ``commit'' deraadt@. tested by many (and in snaps the last few days.
2010-08-06reenabling unsolicited responses in the resume path was lost inJacob Meuser
rev 1.172. restore it so headphone/speaker switching can work after resume. ok deraadt
2010-08-06no need to save/restore the state of the master volumeJacob Meuser
ok deraadt
2010-08-06ok, that is the last of the easy chips to check for register saves. i'mTheo de Raadt
going to give up on reading gobs of crap for a while and hope that someone else takes on the next few.
2010-08-06ACPI suspend/resume for bwi(4). Initial diff from todd@, finished andMarcus Glocker
tested by me on X40 with a BCM4306. OK deraadt@
2010-08-06ca_activate function for suspend/resume; tested by mlarkinTheo de Raadt
2010-08-06since r1.171 pin widgets get fully reinitialized on resume, whichJacob Meuser
means they lose their quirk fixups. check for widget quirks and apply as necessary. ok deraadt
2010-08-06ca_activate function for nfe(4) for suspend/resumeMike Larkin
tested on nvidia mcp51 ok deraadt@
2010-08-06another set of chips which do not need register rewrites at resume timeTheo de Raadt