Age | Commit message (Collapse) | Author |
|
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
|
|
over smbus
currently disabled because it conflicts with acpibat
ok deraadt, kettenis
|
|
The DSDT on at MacBooks takes many different and beneficial code
paths when the OS reports to be Darwin, but due to the way it checks
OSI, we can't just add Darwin to the aml_valid_osi array since later
checks for Windows variants will supersede the Darwin check.
Fixes suspend and keeps Thunderbolt ports powered up after resume.
One regression is that the acpibat driver no longer attaches and
will require an ACPI Smart Battery driver, which is in the works.
Adapted from a similar change in the Linux kernel from 2014.
ok deraadt
|
|
|
|
before.
|
|
able to fit "Hyper_V_Gen_Counter_V1".
ok mlarkin@ deraadt@
|
|
of a OEM0 ACPI table. acpihve(4) feeds this data into the kernel
entropy pool.
This is less interesting for machines with rdrand, but there are still
pre ivy bridge machines running Hyper-V (including parts of Azure).
ok mikeb@ reyk@ deraadt@ mlarkin@
|
|
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@
|
|
ok deraadt@
|
|
ok jca@ (a while back)
|
|
This change was prompted by a report from Ilya Kaliman where acpiec(4)
failed to initialize on his Acer Aspire S7.
Further investigations showed that the machine had 4 instead of 2 resources
defined inside the EC device which is a violation of all existing ACPI
revisions.
We now handle such machines by using the aml resource parser directly, which
lead to the removal of the existing one from acpiec.c, and ignoring extra
resources (although they are reported in the dmesg).
In the process I also done a couple of more style(9) fixes.
Suggested by and ok guenther@
|
|
This is needed by an upcoming acpiec commit that handles machines breaking
the current ACPI specifications.
Change suggested by and ok kettenis@, guenther@
|
|
ok kettenis@
|
|
telling the audio subsystem about this later on in boot. (Mute state
is maintained by the BIOS over a suspend, hibernate, reboot, etc -- this
may be last missing piece of the puzzle we tore our hair out in Brisbane)
diagnosis and code by Anton Lindqvist, ok ratchov
|
|
these occurring recently.
|
|
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@
|
|
the normal one
ok kettenis@ mlarkin@
|
|
and improve the output for those we might.
output examples from mikeb@
ok kettenis@
|
|
device
reported by Callum R. Davies
|
|
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@
|
|
The second argument of aml_showvalue() was probably supposed to set
the verbosity level through dnprintf() but in fact it does nothing.
OK deraadt@
|
|
the chromebook pixel
|
|
required in order to talk to certain i2c slave devices behind dwiic
|
|
- read CLR_INTR register when disabling interrupts
|
|
- move power control into a dedicated function
- sprinkle aml_freevalue
|
|
Fixes at least one machine that woke up from sleep / poweroff immediately.
ok kettenis@, tested by kettenis and martijn@
|