summaryrefslogtreecommitdiff
path: root/sys/dev
AgeCommit message (Collapse)Author
2010-08-18- in STA mode, when associated, stop receiving beacons from other BSS.Damien Bergamini
tested by ray@ - no periodic PA calibration for the Osprey (AR9380)
2010-08-17regenJasper Lievisse Adriaanse
2010-08-17- TI doesn't mean Texas IntelJasper Lievisse Adriaanse
2010-08-17Power management for PCI devices. For now just put everything in the D3Mark Kettenis
(deepest sleep) state upon suspend, and restore power upon resume. ok deraadt@
2010-08-12homogeneous style.Damien Bergamini
no binary change.
2010-08-12Enable periodic (every 4 minutes) power amplifier calibrationDamien Bergamini
on AR9285 and AR9287.
2010-08-12no need to set these pointers to NULL, softc is already zeroed.Damien Bergamini
2010-08-12For chips in open-loop power control mode, periodically (every 30 secs)Damien Bergamini
compensate Tx gain for temperature changes.
2010-08-12Fix look-up of the power control digital-to-analog converter (PCDAC)Damien Bergamini
value in the Tx gain table. This fixes AR9280/AR9281 chips in open-loop power control mode, like the high power solution found in the Acer Aspire One. tested by ray@
2010-08-12Fix a ton of space and tab violations. No binary change.Marco Peereboom
ok oga
2010-08-12Fix a one character typo that broke interrupt handling on ironlake.Owain Ainsworth
we disable the interrupt while we are handling it (this is required according to intel) but instead of writing the version with the master enable bit back to the Interrupt Enable Register, we wrote it to the Interrupt Indication Register, so after the first interrupt we only got lucky due to shared interrupts when we were after anything. s/IIR/IMR/ on that one call and it works. tested by guenther@ and marco@ and myself. Fixes hangs when waiting for the chip which were unstuck by moving the mouse.
2010-08-12Instead of returning EBUSY when the busy flag is set in the ioctl, sleepOwain Ainsworth
until whoever has it is done with it. This is kept as flag/sleep condvars instead of a rwlock because later we may want to quiesce the handler before suspend to make sure nothing is sleeping on a chip that is about to be whacked (doing so will change the proc so rwlocks won't work). ok damien@
2010-08-12Reset the chip upon suspend, to make sure it stops DMA. Reset it again uponMark Kettenis
resume to make sure the chip is initialized the same way as upon attach. Fixes memory corruption after resume on the Dell Inspirion 4150. ok deraadt@
2010-08-12Initialize xs to NULL in gdt_intr() since it now might be used beforeMatthew Dempsky
otherwise assigned. ok krw@
2010-08-11Use the correct offsets when reading/writing to DCA_TXCTRL in the 82599Jonathan Gray
case. Adapted from Intel code in FreeBSD and tested on 82598/82599.
2010-08-11Typo in comment: auhtorized->authorizedRay Lai
2010-08-11Fix two problems in gdt, introduced in 4.7. Eliminate a use-after-freeKenneth R Westerback
of xs for xs->flags. Avoid calling scsi_done() twice when sync'ing disks during shut down. scsi_done() problem found by Federico Giannici. Feedback and fixes from matthew@ and dlg@. Testing of various versions by Federico and sthen@ via Pierre Berthier. ok matthew@ deraadt@
2010-08-09sync hardware and software buffer positions on resumeJacob Meuser
ok deraadt
2010-08-08Fix re_stop() invocation (normally #ifdef'd out) to use new parameterKenneth R Westerback
list. ok deraadt@
2010-08-08suspend/resume handler for radeondrmOwain Ainsworth
All the software state is in the xserver, so all we can do is save restore the interrupt enable bits (which are expected to persist). tested by sthen. ok deraadt@.
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