Age | Commit message (Collapse) | Author |
|
access support. This fixes machines where the AML doesn't check whether
support for this OperationRegion type has been registered by the OS.
ok mlarkin@
|
|
the SMBIOS table. Some machines even have IPMI defined in both tables.
This attachment driver makes ipmi(4) available via ACPI. There can only
attach one ipmi(4) device, either on ACPI or SMBIOS.
Akin to the SMBIOS-attached ipmi(4) this driver is disabled by default.
Feedback from jsg@
ok deraadt@
|
|
The account flag `ASU' will no longer be set but that makes suser()
mpsafe since it no longer mess with a per-process field.
No objection from millert@, ok tedu@, bluhm@
|
|
are pushed to disk. Dangling vnodes (unlinked files still in use) and
vnodes undergoing change by long-running syscalls are identified -- and
such filesystems are marked dirty on-disk while we are suspended (in case
power is lost, a fsck will be required). Filesystems without dangling or
busy vnodes are marked clean, resulting in faster boots following
"battery died" circumstances.
Tested by numerous developers, thanks for the feedback.
|
|
save dirty memory to the hibernate space.
|
|
of allocating the hibernate playpen.
|
|
output to the disks.
This is part of a larger suspend/resume filesystem-safety diff, which
has been worked on for a couple of months already. Tests by job, krw,
beck, benno, and others. Sometimes even by snapshot users...
|
|
|
|
Diff from jcs@, ok pirofti@
|
|
a time-of-day clock device based on the GetTime() and SetTime() services.
The virtual memory mappings for the runtime services calls are implemented
through a separate pmap that is only activated when we make a runtime services
call.
ok tom@, visa@
tested by naddy@
|
|
if we didn't attach a device driver to avoid enumerating them again in
the acpi device tree walk.
ok deraadt@
|
|
mwait info against CPUID is wrong; loosen the test per Intel's suggestion.
While here, fix the wrapping of dmesg lines when reporting bogus C-state
info.
ok mlarkin@ kettenis@ (who pointed out the email from Intel)
|
|
ok mlarkin@
|
|
provide the OEM defined regions that are used by the AML on some
Cherryview-based machines.
ok mlarkin@
|
|
ok kettenis
|
|
ok deraadt@, mpi@
|
|
|
|
If frequency of an invariant (non-stop) time stamp counter is measured
using an independent working timecounter that has a known frequency, we
can assume that the measured TSC frequency is as good as the resolution
of the timecounter that we use to perform the measurement. This lets us
switch from this high quality but expensive source to the cheaper TSC
without sacrificing precision on a wide range of modern CPUs.
From Adam Steen <adam@adamsteen.com.au> with tweaks from reyk@ and myself.
Tested by brynet@, sthen@ and others, OK mlarkin, sthen
|
|
not set in all code paths.
found by clang -Wuninitialized; OK deraadt@
|
|
|
|
are returned since extras may be OEM-specific values we end up
ignoring anyway, such as on the Lenovo X1C 5th Gen which returns 21
elements.
ok mpi
|
|
we don't try to attach them again.
ok jcs@, mlarkin@, stsp@
|
|
This change makes the Asus E200HA keyboard work.
Original analysis and patch by Cesare Gargano
ok kettenis@
|
|
a lot of.
put the spam behind an ACPITHINKPAD_DEBUG define which can be used
when adding support for actually useful buttons.
previous version ok deraadt, phessler, and kettenis
|
|
ok kettenis@
|
|
successfully but has an unexpected length, as on the X1C gen 5
tested by naddy
|
|
ACPI 4.0 deprecated _BIF for battery status so some newer machines
are exporting _BIX which extends _BIF's package with a few extra
fields. When using _BIX, export the new discharge cycle count as a
sensor.
feedback from kettenis and anton
ok deraadt
|
|
as "not configured".
ok mikeb@, millert@, deraadt@
|
|
Noticed and reported by Fasse:
fasse dot f2 at gmail dot com
Thanks.
|
|
assignment outside of the conditional.
ok stsp@
|
|
now this only contains definitions for parsing the EFI memory map.
I anticipate adding limited support for the EFI system table and some of
the EFI runtime services, but not much more.
ok mlarkin@, patrick@, tom@
|
|
ok mlarkin
|
|
From Anton Lindqvist (anton.lindqvist(at)gmail.com)
|
|
could be running inside a driver that will be force-detached, or due
to tsleep end up disrupting the softstate/hardstate contract. At
suspend time, quisce all these callbacks by waiting for completion.
This issue has never been observed for real, but may be implicated in
suspend/resume failures.
ok kettenis guenther mlarkin
|
|
|
|
From Anton Lindqvist (anton.lindqvist(at)gmail.com)
|
|
|
|
need to call hibernate_free() to clean up a partial mess.
ok mlarkin kettenis
|
|
ambient light sensor.
ok jung
|
|
of the HID device, gets SCI events working properly.
But still keep ACPIDEV_POLL enabled just in case some systems never
generate these, like acpibat does.
|
|
|
|
ok jcs
|
|
|
|
Selectively enabling burst mode seems to have broken more machines
than it helped. On MacBooks, EC_STAT_OBF occasionally won't show up
when trying to read a byte of data when bursting hasn't been
enabled, so acpiec_wait can spin forever.
This again breaks on ECs that don't do burst at all, like the Chrome
EC, but those are much more scarce than MacBooks at this time. A
machine/bios-dependent check could be added later to disable
bursting on certain machines.
Discussed with deraadt
|
|
|
|
machdep.lidaction=0 # do nothing
machdep.lidaction=1 # suspend
machdep.lidaction=2 # hibernate
lidsuspend is just an alias for lidaction, so if you change one, the
other one will have the same value. The plan is to remove
machdep.lidsuspend eventually when people have upgraded their
/ets/sysctl.conf.
discussed with deraadt, who came up with the new MIB name
no objections mlarkin
ok stsp halex jcs
|
|
for further work in the area.
idea and ok deraadt
ok mlarkin
|
|
ok kettenis
|
|
|
|
from Anton Lindqvist
|