summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2010-07-21in the acpi GPE handler, late ack level interrupts not edge interrupts.Theo de Raadt
Duh.
2010-07-21spacing and indents that are driving me crazyTheo de Raadt
2010-07-21clean up a pile of prototypes and shred some macros which were just coveringTheo de Raadt
for ones everyone knows better
2010-07-21Merge the edge and level gpe handlers into one (now possible since theTheo de Raadt
gpe structure tells us whether the gpe is edge or level)
2010-07-21delete #if 0 code we are not going to use; ok marcoTheo de Raadt
2010-07-20make the mask code for acpi_enable_onegpe() match other similar codeTheo de Raadt
2010-07-20print the temperature readings that make us go down; ok kettenisTheo de Raadt
2010-07-20removed an unused protoTheo de Raadt
2010-07-20Handle the acpi interrupt controller with proper edge/level handling,Theo de Raadt
wrapped in spltty to avoid racing against the interrupt controller. Repair the gpe bit masking code while there, and do operations in the right order ok kettenis mlarkin, help from jordan at figuring out the order of operations.
2010-07-20tsleep() and EWOULDBLOCK was being used incorrectly for fixed minumumTheo de Raadt
delays. tsleep() on an unknown wait channel, to ensure the minimum is met, and that wakeup()'s don't make the delay get restarted over and over.. ok kettenis mlarkin
2010-07-20In acpiec_wait() we want to tsleep on an un-known channel, so thatTheo de Raadt
we don't get woken up early by a wakeup() ok kettenis; deeply tested on many machines by mlarkin
2010-07-20remove prototypes for functions that do not exist; ok jordanTheo de Raadt
2010-07-20When we're preparing to go to sleep, only call bufq_restart() if otherMatthew Dempsky
preparations failed. ok kettenis@, thib@, deraadt@
2010-07-19permit compilation with ACPI_DEBUGTheo de Raadt
2010-07-19there is no need for a seperate dsdt_softc pointer; dsdt does not have aTheo de Raadt
softc but is just a part of the single acpi driver. ok jordan
2010-07-19acpi_delay() is no longer needed; ok jordanTheo de Raadt
2010-07-18Clear event status on resume, to avoid going back to sleep/reboot/shutdownMike Larkin
immediately after resume. Tested by a bunch of people on hackers@ on various hardware. Fixes at least Toshiba NB200 and Gateway LT3103u. ok marco
2010-07-13delete unnccessary includeTheo de Raadt
2010-07-13rename some thread related interfaces so they are logicalTheo de Raadt
2010-07-10Verify _ADR bdf is correct (some systems return 0xffff)Jordan Hargrave
Works on Dell x9xx and Studio 1555
2010-07-09Clear the noiseJordan Hargrave
2010-07-08Add mapping for ACPI device to PCI bdf (match autoconf tree)Jordan Hargrave
Simplify resource parsing function to use buffer argument Convert namespace linked lists to use queue macros ok marco@, deraadt@
2010-07-06Use spltty() to lock downcalls from apm against the information beingTheo de Raadt
modified by the acpi thread. ok kettenis
2010-07-06Don't use a workq to do the suspend, because it races aginst the acpiTheo de Raadt
thread. Instead, just tell the acpi thread to do the suspend for us. This makes apmd & zzz work correctly. While here, have acpithinkpad attempt to post the event to apm before prompting the suspend itself. ok kettenis marco mlarkin
2010-07-06spacingTheo de Raadt
2010-07-05Reset register SCI_EN on resume. The ACPI spec clearly states we don't haveMike Larkin
to do this, but many machines don't, or forget to, which leads to all sorts of problems on resume (broken battery stats, overheating, failure to resume more than once, etc). tested by many, ok marco@, deraadt@
2010-07-01do bufq quiesce again, since vnd/the bufq_done call inThordur I. Bjornsson
biodone has been fixed.
2010-07-01Backout recent AML changes, breaks on R210 and othersJordan Hargrave
2010-07-01Simplified aml_parse_resource call, cleanup codeJordan Hargrave
ok marco
2010-07-01Fix subordinate bus # for multi-root PCI busesJordan Hargrave
ok marco, kettenis
2010-06-30Disable/partially backout the bufq quiesce changes as thisThordur I. Bjornsson
is causing havoc with vnds and release must be buildable.
2010-06-30Cleaned up aml name parser, delete unused codeJordan Hargrave
ok marco
2010-06-29Use new ACPI PCI mapping to get _PRT busJordan Hargrave
Delete old unused code ok kettenis
2010-06-29Fix ramdisks (new code was placed inside a SMALL_KERNEL chunk)Theo de Raadt
2010-06-29Add support for mapping ACPI to PCI devicesJordan Hargrave
ok kettenis, deraadt
2010-06-29Call bufq_quiesce() on suspend to stop all I/O and bufq_restart on resume.Mark Kettenis
Makes suspend/resume work much better while doing disk I/O. ok mlarkin@
2010-06-2960 is a more reasonable guess for number of minutes in an hour than 100.Ted Unangst
spotted by TeXitoi. ok deraadt
2010-06-28KNFJordan Hargrave
2010-06-28Add definitions for Intel/AMD IOMMU ACPI tablesJordan Hargrave
2010-06-27Change ACPI namespace to use SIMPLEQ macrosJordan Hargrave
ok mlarkin
2010-06-27Add _acpi_matchhids routine, precursor to pci device matchJordan Hargrave
2010-06-27Clear ACPI fixed event status on resume (power buttons/etc) so that someMike Larkin
machines don't immediately resume after suspending to S3. Tested by kettenis@ and I on 5 or 6 machines, deraadt@ "yeah, looks good"
2010-06-27Cleanup aml_find_node callsJordan Hargrave
2010-06-27Cleaned up acpi_maptable, adds to table list directlyJordan Hargrave
2010-06-19Fix reference counting panic for CondRefJordan Hargrave
Various HP laptops now boot correctly, fixes PR 6276 ok marco@
2010-05-17Put the name string on the stack.Nicholas Marriott
Fixes build with gcc4 which otherwise optimises away the modifications to it, discovered by jakemsr@. ok marco jsg
2010-04-07If we have done a wsdisplay_suspend(), and ACPI decides it does not want toTheo de Raadt
suspend, we must roll back by calling wsdisplay_resume() or the virtual console switching will be locked forever ok oga
2010-04-07Make suspend/resume work on MP machines (running an MP kernel). Joint workMark Kettenis
from mlarkin@ and me, with some amd64 fixes thrown in by deraadt@ ok marco@, deraadt@, pirofti@, mlarkin@
2010-03-31Bring /dev/apm support in line with apm(4). Make the suspend button sendMark Kettenis
a suspend request event to apmd(8) instead of suspending immediately. Also keep track of whether /dev/apm and /dev/apmctl are currently open, such that we can still suspend immediately if apmd(8) isn't running. ok deraadt@, marco@, pirofti@, jsing@, oga@
2010-03-30Prevent the apmd/x races for good.Owain Ainsworth
When we hit suspend time, go through all wsdisplays on the system. if they are in mode MAPPED, but not MODE_DUMBFB then if possible do a full vt switch to a !mapped vt, and prevent switching back until resume time. This has to be called from MD code because this involves userland running so that X can run the vt switch signal handler. This way, any case where we are using the "poke registers from userland" model, we will not be on the hardware when we go down, so the kernel can actually handle thing properly. Tested on several acpi laptops (by kettenis@ and ian@), x40 (me and beck@ at LEAST) and zaurus (me). Maybe others, but if so I forgot who at this time.. Idea from deraadt somewhere over the Faroe Islands (I thought of a similar thing myself a while ago). Much prompting from him. Ok and comments miod@