summaryrefslogtreecommitdiff
path: root/sys/dev/acpi/acpicpu.c
AgeCommit message (Collapse)Author
2009-02-24back out est.c 1.8 and bring acpicpu.c all the way back to 1.47 because ofTheo de Raadt
hanging machines. backed out correctly this time, as pointed out by tedu.
2009-02-24Backout a backout because noone knows what the hell the backout is aTheo de Raadt
backout of. COME ON. Be exact in your commit messages.
2009-02-18Backout PDC & PPC changes because it hangs several laptops.Marco Peereboom
2008-12-22With respect to the previous diff we cannot just call acpicpu_setperfGordon Willem Klok
directly, we must call the global function pointer cpu_setperf because we might be on an MP system and if we don't, we only attempt to change the frequency on a single core. ok marco@
2008-12-22Make acpicpu_setperf behave the same as the ACPI aware EST andGordon Willem Klok
powernow drivers if the _PPC is evaluated because an external change has occured such as being disconnected from wall power and the available states in _PSS change. Have the acpicpu setperf driver register a listner for _PPC changes, that way we are not calling the setperf method twice on powernow machines when an change occurs. ok marco@
2008-11-22Re-enable ACPI PDC support and fetching cpu performance statesGordon Willem Klok
from ACPI for est on amd64. This incorporates a few changes from krw@ to fix minor nits, its unlikely to fix the problems with some machines from acer and dell but lots of machines benefit. ok krw@
2008-10-11Fix various printf constructs either missing arguments or format specifiers.Miod Vallat
2008-08-08'prey' -> 'pray' in comment as prayer rather than predation seemsKenneth R Westerback
the intended meaning.
2008-08-06Backout the acpicpu_setpdc code and the code to allow est to use acpicpuGordon Willem Klok
on amd64. Evaluating the _PDC seems to lead to instability (PR5878 and a report by jmc@) on lower end machines its too close to release and I don't have enough nickels. ok deraadt@
2008-06-15On AMD64 running on Intel processors with EST add support for retreivingGordon Willem Klok
operating points from ACPI. In support of this add evaluation of the _PDC object and give it the capability flags asserting OSPM management of CPU power states. ok marco@, canacar@
2008-06-01Re-enable new parser. Lots of testing by various folks. Fits all mediaMarco Peereboom
now too. ok kettenis deraadt
2008-02-07unbreak build: aml_showvalue() is only available on !SMALL_KERNELPeter Valchev
2008-01-06re-add _PPC.Marco Peereboom
ok gwk@
2007-12-29Remove debug message. Found by Mike Belopuhov, tsk tsk deraadt.Marco Peereboom
2007-12-27Undo previous commit after debating a few corner cases with gwk. ThisMarco Peereboom
needs to be redone in another way.
2007-12-27Add _PPC support. Tested by several people.Marco Peereboom
2007-12-27KNF, no functional changeMarco Peereboom
2007-12-05Add a check for pss len == 0. This is a temporary work around for whenMarco Peereboom
there is no pss available. The real fix will include using both pss and duty cycle methods. ok deraadt
2007-12-03set the value before freeing the result; marco@ ok.Federico G. Schwindt
2007-11-16Fix dmesg output. From form@.Mike Belopuhov
ok deraadt
2007-11-16fix the bus_space #define nightmare, so that amd64 and i386 are much moreTheo de Raadt
uniform. as a result shared code like acpi needs less #ifdef's ok marco kettenis
2007-11-15Nicer dmesg output.Mike Belopuhov
From Oleg Safiullin (form@) ok deraadt
2007-11-12spacingTheo de Raadt
2007-11-12spacingTheo de Raadt
2007-11-12missing :Theo de Raadt
2007-11-03Remove a useless printf, hit if acpicpu is disabled.Gordon Willem Klok
ok beck@
2007-10-08More simple memset(,0,) -> M_ZERO changes. In this batch move toKenneth R Westerback
size(*p) as the first malloc() parameter where p is declared locally and thus easy to check. Add M_ZERO to gpe_table allocation in acpi.c even though there is no obvious bzero or memset nearby.
2007-06-15Check that sc_notify actually points to something before attempting to callGordon Willem Klok
it. Fixes marco@'s post c2k7 panics. ok marco
2007-05-31Make powernow-k8 on amd64 and i386 use the _PSS object from acpi toGordon Willem Klok
retreive p_state data as spelled out in the amd64 bios and kernel developers guide. This code is still a little rough around the edges but has been tested by myself on a tyan machine and by phessler at theapt dot org on an HP DL145. This diff also takes a first stab and cleaning up the acpicpu dmesg spam. ok tedu, marco
2007-05-28fix build when ACPI_DEBUG is definedRobert Nagy
2007-05-28Eliminate unsightly blank lines in dmesg.Kenneth R Westerback
ok marco@
2007-05-06at least always print a new line, even if NOPSSTed Unangst
2007-04-23spacing and some really long linesGordon Willem Klok
2007-04-11Added changes for C-StateJordan Hargrave
ok marco@
2007-01-31Introduce acpi_hasprocfvs thats "ACPI Has Processor Frequency and VoltageGordon Willem Klok
Scalling" a global flag set by acicpu attach to indicate that ACPI is handling fvs through the _PSS objects. This will fix disappearing EST/powernow when booting kernels with acpi enabled, as acpicpu isnt compiled into GENERIC yet. Also in cases where acpicpu is built in and legacy EST/powernow work but acpi is missing the _PSS object, the legacy routines will be used. tested by dim@, and Nick Nauwelaerts <nick AT nauwelaerts.net> ok marco@, dim@
2006-12-29Replace setperf algorithm with a linear version. Also use the aml providedMarco Peereboom
gasio structure when appropriate instead of always assuming 32 bit access. Fixes my Dell laptop and works on others tested.
2006-12-26Add polling to devices that require it such as acpibat and acpitz.Marco Peereboom
Use the same tsleep/wakeup mechanism as the interrupt code to keep it non- concurrent.
2006-12-21more minor knfTheo de Raadt
2006-12-20Decalre extern int cpuspeed in sys/arch/amd64/include/cpu.h like cpuspeedGordon Willem Klok
is declared in the equivalent file on i386 and delete the repeticious declarations already scattered in a few places. Thanks to Will Backman for letting me test this on his machine, ok mk@
2006-12-20"#ifdef is a tool of the weak!"Gordon Willem Klok
Rename pentium_mhz to cpuspeed which is consistant with amd64 making shared ACPI code less nasty. ok marco, deraadt
2006-12-19spacingGordon Willem Klok
2006-12-19Add sanity to check for mfg overriden gasio field.Marco Peereboom
2006-12-19Hook up acpicpu to the hw.setperf mechanism, this allows people runningGordon Willem Klok
ACPI kernels built with the acpicpu diff to scale processor and frequency voltage, various incarnations tested by brad, thib, johan m:son lindman. ok marco
2006-10-12Massive ACPI changesJordan Hargrave
Fixed ACPI leaks new ACPI API ok marco@
2006-03-09Fixed free before malloc. bad marcoJordan Hargrave
ok marco@
2006-03-05Update tables after event.Marco Peereboom
Free memory while at it. Register notify handler and use NULL for PNP id.
2006-03-04oops some debug code was enabled.Marco Peereboom
2006-03-04Add the gasio magic to slow/speed cpu.Marco Peereboom
2006-02-26Print _PCT & _PPC.Marco Peereboom
2006-02-26Print only MHz. Idea from jsg@Marco Peereboom