jmcneill
c93b203331
If the thermal zone has a _PSL method, print a list of processors
...
associated with the zone at attach time.
acpitz0 at acpi0 (THM0)
acpitz0: levels: critical 127.0 C, passive cooling
acpitz1 at acpi0 (THM1): cpu0 cpu1
acpitz1: levels: critical 100.0 C, passive 95.5 C, passive cooling
2011-01-18 21:15:54 +00:00
jmcneill
2dd19c519d
Use AcpiOsReadPort/AcpiOsWritePort instead of inb/outb so I can get rid of
...
of the i386 and x86_64 ifdefs.
2011-01-18 18:56:25 +00:00
jmcneill
138a9407d2
use PRIx64 instead of llx, fixes build on amd64
2011-01-17 17:32:11 +00:00
jmcneill
8ddcdc25a9
acpiwdrt needs sysmon_wdog
2011-01-17 15:55:24 +00:00
jmcneill
27686d11fe
Add a driver for ACPI "Watchdog Resource Table" devices.
...
acpiwdrt0 at acpi0: mem 0xfed01000,0xfed01004
acpiwdrt0: PCI 0:000:00:0 vendor 0x1106 product 0x3337
acpiwdrt0: watchdog interval 1-1023 sec.
2011-01-17 15:49:13 +00:00
jruoho
f82830f374
Postpone the sensor update with sysmon_taskq(9).
2011-01-13 14:25:33 +00:00
jruoho
3c51ce4b05
Upon request from jmcneill@, put the check back that prevents unnecessary
...
readings during the sysmon_envsys(9) poll cycle. Some systems (notably,
Asus EeePC) have so badly implemented AML that reading the values via
envstat(8) alone can cause considerable delays.
2011-01-13 13:05:13 +00:00
jruoho
f861d1bc75
Clean-up acpi_print(). XXX: The 'acpiverbose' module is still broken...
2011-01-13 05:58:05 +00:00
jruoho
710112e7c7
Scan for docking stations.
2011-01-13 05:14:48 +00:00
jruoho
3dd22c3c2c
Do not try to attach more ACPI CPUs than the amount of "real" CPUs.
2011-01-13 04:18:19 +00:00
jruoho
99d6864d21
Move the function that counts the CPUs from acpicpu(4) to the MD layer.
2011-01-13 03:40:50 +00:00
jruoho
c2df94f224
Disable all GPEs when entering S5. Also add a comment that the function
...
acpi_enter_sleep_state() must be called with interrupts enabled.
2011-01-11 20:35:24 +00:00
jruoho
322f6c439c
Regen.
2011-01-10 17:04:55 +00:00
jruoho
93da29999d
Add SMO1200 (yet another TPM chip). From ThinkPad x201i.
2011-01-10 17:04:22 +00:00
jruoho
2304727048
Small clean-up in the match and attach functions. Namely, use the attach
...
args instead of referencing the global softc. No functional change.
2011-01-10 09:07:27 +00:00
jruoho
f640132d0b
Convert aprint_error(9) to ACPI_DEBUG_PRINT.
2011-01-09 16:22:07 +00:00
jruoho
1b00e79140
Remove also rest of the ACPI_DEVICE_POWER checks.
2011-01-09 16:15:25 +00:00
jruoho
930b9f2eb4
After consulting jmcneill@, set the state to D0 ("on") upon shutdown and
...
detach. A safety measure so that we do not accidentally fry anything.
2011-01-09 15:43:20 +00:00
jruoho
37f5de3ab8
Add a dummy-driver for ACPI fans.
2011-01-09 15:12:33 +00:00
jruoho
019ba6b902
Use acpi_power_register() for consistency. No functional change.
2011-01-09 14:58:10 +00:00
jruoho
1dee4ee9e2
We use config_defer(9) now when scanning power resource and wake-up
...
capabilities, so do not fail in acpi_power_register() if ACPI_DEVICE_POWER is
not set in struct acpi_devnode::ad_flags.
2011-01-09 14:56:06 +00:00
jruoho
c40255f958
Print a message if ACPI 4.0 functionality is present (in which case the
...
driver should be updated).
2011-01-09 09:47:55 +00:00
jruoho
74a4ee7fc0
Rearrange (use two tabs).
2011-01-09 05:06:17 +00:00
jruoho
f422341f8e
Regen.
2011-01-09 04:59:00 +00:00
jruoho
04e39f05b5
Add INTC0102 (Intel TPM chip). From ThinkPad T500.
2011-01-09 04:58:34 +00:00
cegger
21fd508d09
use aprint_error_dev
2011-01-07 14:08:29 +00:00
jruoho
ef2b108701
Fix a comment.
2011-01-06 18:57:22 +00:00
jruoho
0af1ebd4ab
Split the code that makes a string from ACPI_DEVICE_INFO::Name to a function.
2011-01-06 07:05:00 +00:00
jruoho
1bb3132df6
Move the ACPI_ACTIVATE_DEV block around for clarity.
2011-01-06 06:49:12 +00:00
jruoho
e067d18bf0
Add a driver for ACPI power meters.
2011-01-05 20:08:12 +00:00
jruoho
d982261b67
Adjust previous slightly.
2011-01-05 08:08:47 +00:00
jruoho
740a9e0c0e
Make a two-pass scan for acpinodebus. This should ensure that devices such
...
as acpiec(4) are attached before anything else. Numerous bugs are expected
to be fixed with this change.
2011-01-05 07:58:04 +00:00
jruoho
c96fe4ba5e
Revert the changes made in the commit:
...
"Do not queue functions via sysmon_taskq(9) in the pmf(9) resume hooks.
There is a small and unlikely race when the drivers are loaded as modules;
suspend, resume, queue a function, and immediately unload the module."
Queueing the checks in the resume hooks was observed to improve the resume
time by several seconds (!) on a system with poorly implemented AML code.
The observed race condition is a wider issue related to modules; things like
sysmon_taskq(9) should be modified to allow cancelling of queued functions.
2011-01-04 05:48:48 +00:00
jruoho
a26fa60e11
Fix previous.
2011-01-04 04:28:48 +00:00
jruoho
6a3b9e2cde
Scan for devices that are "hot-pluggable".
2011-01-03 08:50:23 +00:00
jruoho
6248a51d8a
Adjust error messages for the previous commit.
2011-01-02 12:06:02 +00:00
jruoho
e008cf160e
Use "real" device names for the hw.acpi.wake and hw.acpi.power sysctl(8)
...
trees. For instance, instead of hw.acpi.wake.DURT, we have hw.acpi.wake.wm0
for wm(4). This is a temporary solution, but without solving the big
abstraction questions, this is the best we can do.
2011-01-02 06:05:47 +00:00
jruoho
9a11653a7b
Print a warning if the BIOS thinks that the timer is unreliable. However, do
...
not touch the quality of the timecounter(9) based on this information.
2011-01-02 05:48:55 +00:00
jruoho
8aaffbf4e9
Include <dev/acpi/acpi_pci.h>.
2010-12-31 14:05:15 +00:00
jruoho
396210649d
acpi_pcidev_find_dev(): take struct acpi_devnode as a parameter.
2010-12-31 10:56:39 +00:00
jruoho
aa705fc95d
Move the function that finds a device_t for the corresponding ACPI device
...
node from ACPIVERBOSE to the ACPI PCI code.
2010-12-31 10:23:44 +00:00
jruoho
b99cdd8ef8
Move the ACPI sleep-specific sysctl variables to hw.acpi.sleep. The old
...
machdep-variables are provided for backwards compatibility (eventually these
should be removed). All ACPI sysctl variables are now under hw.acpi.
2010-12-31 09:19:43 +00:00
jruoho
77f707c929
Use "temperature #" and "fan speed #" rather than "TMP#" and "FAN#" for the
...
sensor names. Remove white space. No functional change.
2010-12-31 08:17:54 +00:00
jruoho
3dc9396c46
Regen.
2010-12-30 19:38:03 +00:00
jruoho
47c7d9897b
Add IBM0079.
2010-12-30 19:37:39 +00:00
jruoho
a5a73b2a05
Change the default behavior to enforce the maximum frequency when the
...
firmware requests to do so. This cures severe overhating (> 120 C) observed
on many laptops, being also on par with the specification(s). This can be
reverted by using the new "hw.acpi.cpu.dynamic" sysctl variable.
2010-12-30 12:05:02 +00:00
jruoho
82e1351b37
Regen.
2010-12-22 22:29:19 +00:00
jruoho
e3cfc8ab23
Add IPI0001, an identifier for ipmi(4). From Dell M710.
2010-12-22 22:28:35 +00:00
jruoho
8e53b1ce30
Use branch annotations in couple of places. Add two comments.
2010-12-20 08:13:04 +00:00
jruoho
e1de74391b
Add AMD C1E quirk. Tested by cegger@.
...
(a) This should be removed once C-states are supported.
(b) As there seems to be no reliable way to detect whether C1E is present,
the quirk blindly assumes that C1E is used on families 10h and 11h.
2010-11-30 04:31:00 +00:00