| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
ok deraadt@
|
|
|
|
| |
ok mpi@
|
|
|
|
| |
pointed out by stsp@
|
|
|
|
| |
ok mlarkin@
|
|
|
|
|
|
|
| |
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 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...
|
|
|
|
| |
ok mlarkin@
|
|
|
|
| |
ok kettenis
|
|
|
|
| |
ok deraadt@, mpi@
|
|
|
|
|
|
|
| |
This change makes the Asus E200HA keyboard work.
Original analysis and patch by Cesare Gargano
ok kettenis@
|
|
|
|
| |
ok kettenis@
|
|
|
|
|
|
|
|
|
|
| |
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@
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
| |
need to call hibernate_free() to clean up a partial mess.
ok mlarkin kettenis
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
over smbus
currently disabled because it conflicts with acpibat
ok deraadt, kettenis
|
|
|
|
| |
before.
|
|
|
|
|
|
| |
able to fit "Hyper_V_Gen_Counter_V1".
ok mlarkin@ deraadt@
|
|
|
|
|
|
|
|
|
|
| |
uses the mapping between AML nodes and PCI devices that we establish.
Because _INIT methods may end up calling aml_rdpciaddr(), make sure we
create that mapping early. Also handle devices that aren't actually present.
These devices are now included in the mapping and reads will return an
all-ones patterm whereas writes are a no-op..
ok mlarkin@
|
|
|
|
|
|
|
| |
This is needed by an upcoming acpiec commit that handles machines breaking
the current ACPI specifications.
Change suggested by and ok kettenis@, guenther@
|
|
|
|
|
|
|
|
|
|
|
|
| |
when acpicpu tries to attach, leading to a NULL dereference. The ACPI
processor object on the Dells where this was reported is bogus and useless
anyway so apply the same test when deciding whether to attach to processor
objects as acpicpu would when matching them to cpus.
Problem reported by Eivind Eide (xenofil (at) gmail.com) and
Johan Huldtgren (johan+openbsd-bugs (at) huldtgren.com).
Testing by Eivind Eide.
ok kettenis@ mlarkin@
|
|
|
|
|
|
|
| |
This fixes the problem that long-running machines which were not
shut down properly would reboot with a badly offset system time.
hints and ok kettenis@
|
|
|
|
|
|
| |
Fixes at least one machine that woke up from sleep / poweroff immediately.
ok kettenis@, tested by kettenis and martijn@
|
|
|
|
|
|
| |
acpicpu(4) drivers to the right cpu(4).
ok mlarkin@, guenther@
|
|
|
|
|
|
|
|
| |
attempt to attach acpitimer(4) if the timer isn't present.
Pointed out by jcs@
ok jcs@
|
|
|
|
|
|
|
|
|
|
|
| |
we attach the device itself. The _DEP methode, introduced in ACPI 5.0,
is a hint that the device in question depends on OpRegion support from
the devices listed by _DEP, so we have to order them the proper way.
To prevent us from attaching those devices again when we encounter them
later walking down the device tree, keep track of our attempts to
attach a device driver to them using aflag in the aml_node structure.
ok guenther@
|
|
|
|
|
|
| |
report it in the dmesg.
OK deraadt@, mlarkin@.
|
|
|
|
|
|
| |
driver.
ok mpi@
|
|
|
|
|
|
|
| |
us from reporting devices as "not configured" that aren't actually present,
and allows us to remove duplicated code from several drivers.
ok deraadt@, ok jsg@
|
|
|
|
|
|
| |
a platform-specific method of controlling the backlight.
ok millert@, mlarkin@, jung@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
gettinga bit of the burden. And it really isn't how our autoconf
framework is supposed to work for busses that can be enumerated. All
the drivers already check for a matching _HID in their attach
function. So we can just drop the checks in acpi_foundhid() and let
the drivers sort themselves out.
Print a "not configured" line for devices for which we don't attach adriver.
This may be a bit much as there are devices for which we will not have a
driver. This will be removed if it causes too much dmesg spam.
ok deraadt@, mlarkin@
|
|
|
|
| |
kernel can find and attach dwiic(4) and sdhc(4).
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
SPL_TYPx, SLP_EN and WAK_STS using the new SLEEP_STATUS_REG and
SLEEP_CONTROL_REG registers. Makes the transition into S5 (powerdown) work
on the ASUS X205TA.
ok deraadt@, mlarkin@
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on the Samsung ATIV Book 9 laptop. This initial version only
supports ACPI config/attachment.
Add ihidev, a HID-over-i2c driver largely based on uhidev. dwiic
handles attaching ihidev devices found in ACPI.
Add ims, a HID-over-i2c mouse/trackpad driver to get basic cursor
and button functionality from HID-compliant i2c trackpads.
ok kettenis deraadt
|
| |
|
|
|
|
|
|
|
| |
by emulating the PM_CNT register such that SCI_EN is always enabled. It also
skip attaching acpitimer(4) since the relevant registers are no longer there.
ok deraadt@, mlarkin@
|
|
|
|
|
|
|
|
| |
been enabled and don't bother enabling it again if it is. This should fix
systems that don't implement legacy mode and therefore set ACPI_ENABLE and
ACPI_DISABLE to zero.
ok mlarkin@, yasuoka@
|