summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
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@
2010-03-25Fix & vs. && in the kqfilter code.Owain Ainsworth
Based on a comparison with the apm code. ok deraadt@, kettenis@
2010-02-26initialise 's' before first use in the unlikely error path; from cnstTheo de Raadt
2010-01-13Make sure that acpitz is always the last one to replace the globalMarco Peereboom
cpu_setperf pointer so that it is always the first to be notified of any changes. This fixes the reported "creeping up" of performance level when using apmd and several overheating issues people reported. Tested by many, ok kettenis with a large XXX on it.
2010-01-04turn off verboseTheo de Raadt
2009-12-09disable useles printMarco Peereboom
2009-12-05Until we have better hooks and a proper framework, do not do the lidTheo de Raadt
suspend. It is neat but annoying without a 'button'.
2009-12-05Use new acpi_maptable on AMLOP_LOAD operations; do not panic if bad checksumJordan Hargrave
fixes Thinkpad SL300, maybe others
2009-12-04KNF whitespace, from Brad. ok jordan@Stuart Henderson
2009-12-01Fix dmesg printing of error.Marco Peereboom
2009-11-26Visual (and on some machines, audio) feedback while the machine isMike Larkin
resuming via calls to aml _SST method. This also makes the "moon" LED on thinkpads to blink during resume and cease when resume is completed. ok pirofti@
2009-11-26If the EC is in burst mode use the fast delay to meet the requirementsTheo de Raadt
of the spec, instead of using tsleep and screwing up. from canacar, ok kettenis jsing pirofti
2009-11-26Toggle into "cold" when we we disable interrupts, because tsleepingTheo de Raadt
in the AML interpreter and context switching into userland processes tends to sometimes pop the ACPI trampoline page out of our address space. Makes lots more machines work. ok kettenis mlarkin
2009-11-25Suspend when the lid closes (but not when it opens again).Mark Kettenis
ok deraadt@, mlarkin@, pirofti@
2009-11-25Thinkpad button suspends; ok mlarkinTheo de Raadt
2009-11-25Handle the notification types for LID and Sleep button a bit moreTheo de Raadt
specifically. On some thinkpads we get 0x02 for the Fn button, which means that it is going to handle the next bit for us. After that, we get an suspend key event in acpithinkpad. ok pirofti
2009-11-24in the resume path evaluate _WAK before dealing with device driversJonathan Gray
like the spec says, not after. ok mlarkin@
2009-11-24Reporting battery insert/removal was debug code. dmesg is notTheo de Raadt
a place to spam informational messages about unimportant events. That is what the sensor framework is for (and that is already done) ok kettenis
2009-11-24abort suspends on SMP systems until that gets written; ok mlarkinTheo de Raadt
2009-11-23pci should return the result of it's children's suspend/resume calls backMike Larkin
to its parent. handle suspend failure case and unwind if devices have an activate function that returns failure. ok deraadt@, kettenis@
2009-11-23acpi* devices need to call their children on suspend/resume.Mike Larkin
ok deraadt@
2009-11-23Remove ACPI_SLEEP_ENABLED checks.Paul Irofti
This enables by default the suspend/resume paths in the kernel. Okay deraadt@.
2009-11-23knf and spacing that are super annoyingTheo de Raadt
2009-11-23knfTheo de Raadt
2009-11-23Add missing acpivar.h changes from previous commit.Mike Larkin
2009-11-23Hook up Theo's new children suspend/resume function, as well as more ACPIMike Larkin
suspend/resume glue. ok deraadt@
2009-11-23Fix pckbd and acpihpet suspend/resume cases to fit with the future frameworkPaul Irofti
that's going to get in really soon. Okay mlarkin@, deraadt@.
2009-11-13Initialize uninititialized variable.Jordan Hargrave
Not an issue as it does get initialized correctly before use, but reduces warning.
2009-11-02Remove unused member(s) of `struct acpi_softc'.Mark Kettenis
ok deraadt@, krw@, marco@
2009-10-26Do not do strncmp comparisons on dv_xname because longer device names whichTheo de Raadt
look similar could arrive in the future. Instead, compare directly against dv_cfdata->cf_driver->cd_name Issue originally spotted by miod
2009-10-26Verify checksum+address when loading ACPI tables.Jordan Hargrave
Some systems had invalid entries in RSDT/XSDT. ok marco@
2009-10-16Added argument for xconvert for length conversionJordan Hargrave
2009-10-15Implement passive cooling for acpitz; works for some overheating machinesJordan Hargrave
Counter in parent for disabling setperf when passive cooling enabled ok marco@
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-09-14simplify code in preparation for other things. tested by many.Federico G. Schwindt
2009-09-04Add common framework for storing device listsJordan Hargrave
Useful for acpitz, acpipwrres, etc.
2009-09-02Invoke malloc() with the correct sizeof value in acpipwrres_foundcons().Miod Vallat
This was harmless but eating too much memory. ok pirofti@
2009-08-29typos in commentsMiod Vallat
2009-08-21Remove unused codeJordan Hargrave
2009-08-12Add wake support to acpihpet(4).Paul Irofti
Patch initially from mlarkin@. KNF and refactoring by me. Okay deraadt@.
2009-07-23New aibs(4) driver for ASUSTeK AI Booster (ACPI ATK0110) hardware monitoring,Constantine A. Murenin
with sensor state support through limits provided by the ACPI. Tested on several ASUS motherboards kindly networked by Sam Fourman Jr. ok deraadt marco jordan
2009-07-20KNF fixesJordan Hargrave
2009-07-17Cleaned up parsing of While loops; iterative If statementJordan Hargrave
ok marco@
2009-07-15missing va_end in aml_seterror; ok marco@Martynas Venckus
2009-06-23Ignore the PCT if the PSS has zero entries, only becameGordon Willem Klok
a problem after we started striking entires for containing junk and /* should never happen */ happened. Fixes PR 6175 confirmed by submiter: nick templeton nick @ nicktempleton.com ok marco@