Age | Commit message (Collapse) | Author |
|
Fixes the interrupt storm on the 2009 Mac mini with WOL enabled on its
nfe(4) interface.
ok mlarkin@
|
|
With this change sensorsd(8) now correctly detects state changes when
docking and undocking.
ok mlarkin@
|
|
much help and ok from deraadt@
|
|
modified. Some Sony and Asus laptops don't like this; the read seems to
trigger an unwanted SMI that makes the machine hang. Diagnosed by mpi@
ok mpi@
|
|
|
|
after discussions with beck deraadt kettenis.
|
|
it when we hibernate.
ok mlarkin@, miod@, deraadt@
|
|
This is needed on some (specifically HP) machines to avoid _TMP reporting
a bogus temperature value (temperatures > 4,000 degC), which causes acpitz
to automatically shut down the machine because it thinks it's floating in
lava.
Also ensure that we can accept a temperature reading of 0 degC - we were
previously interpreting 0 degC as "bad temperature data" and not attaching
the thermal zone device. Some machines have ephemeral temperature sensors
that come and go (eg in docks) and we want to make sure we attach those
even if they report back 0 degC on initialization. Fixes some machines
with "failed to read _TMP" errors.
ok deraadt, tested and verified by a few folks on tech@ who were seeing
the thermal zone shutdown isue.
|
|
and specifyig the wrong DWORD count. Moreover we should not evaluate _PDC
if _OSC is present. Might not be perfect yet, but what we had previously
was uterrly and totally wrong.
ok guenther@
|
|
Remember initprocess instead of initproc.
ok matthew@ blambert@
|
|
size (kern.bufcachepercent) on resume, for better hibernate performance.
ok beck@
|
|
ok mlarkin@
|
|
|
|
print a message and ignore the interrupt. There are BIOSen out there with
random garbage in NMI entries for the non-BP CPUs.
|
|
during autoconf makes no sense.
ok deraadt@
|
|
width that isn't compatible with the alignment of the region:
OperationRegion (SATC, SystemMemory, 0xE008800A, 0x04)
Field (SATC, DWordAcc, NoLock, Preserve)
{
STCL, 16
}
DWordAcc means 4-byte access, but 0xE008800A is only 2-byte aligned.
Moreover, the region itself is 4 bytes long. From this I conclude
that 4-byte wide access to a 2-byte aligned address is really wanted
in cases like this.
ok deraadt@
|
|
early during attach if it signals that the device isn't present.
Reduces the noise on machines where the AML provides an (incomplete)
description of the Embedded Controller but doesn't actually have one.
ok mlarkin@, deraadt@
|
|
must use the bus_space(9) API to access it instead of memcpy(9). Also make
sure we properly align access to fields that need more than byte alignment.
ok guenther@
|
|
giving you the original capacity of the battery:
hw.sensors.acpibat0.watthour0=64.07 Wh (last full capacity)
hw.sensors.acpibat0.watthour4=84.24 Wh (design capacity)
hw.sensors.acpibat0.amphour0=2.03 Ah (last full capacity)
hw.sensors.acpibat0.amphour4=4.40 Ah (design capacity)
Diff from Fabian Raetz on tech@, thanks!
ok mlarkin@ zhuk@ armani@ kettenis@
|
|
(used only when ACPI_DEBUG is enabled)
From a diff on tech@ by Fabian Raetz, with a minor change by me, tested
on i386 and amd64 with ACPI_DEBUG enabled and disabled.
|
|
MADT processing if it is missing. This, combined with an earlier diff
from kettenis@ to fix MADT interrupt polarity processing, should resolve
the issues reported with QEMU/KVM ACPI power button presses when using
OpenBSD guests.
ok kettenis@, pirofti@
tested by myself and kettenis for the past few weeks
|
|
correctly.
Tested by nobody.
|
|
Get rid of the fake global lock code that these functions were using before.
ok pirofti@, mlarkin@
|
|
code paths.
ok pirofti@
|
|
do so.
Freeing the hibernate structures too early leads to inadvertent calls into
splx when we aren't ready for them yet. Found when trapping splx calls in
the resume path.
discussed with deraadt@ at m2k14
|
|
to sleep, instead of just the acpi thread going to sleep.
|
|
time also. Let's commit this idea since it is sound, and keep an eye
for reports.
discussed months ago with kettenis and mlarkin
|
|
call bufq_quiesce() after executing the DVACT_QUIESCE handlers.
This should be safe since no disk nor controller drivers have such
handler but it will allow us to detach sd(4) devices attached to a
USB bus.
Another benefit pointed out by kettenis@ is that drivers that need
to read a firmware from the disk should be able to do it at resume
time in a DVACT_WAKEUP handler.
ok kettenis@, deraadt@
|
|
generation x1 carbon that have done away with regular F1-F12 keys
from rivo nurges <rix at estpak.ee> and reportedly tested on x1
carbon, x220, and x61s
|
|
by newer firmware. May cause problems with brightness control on some systems.
"lets see what happens" kettenis@, and.. deraadt@ agrees (..hopefully).
|
|
"mainbus" device. this breaks when mpath is enabled because it
attaches before mainbus and therefore takes the head position.
have autoconf provide device_mainbus() which looks up mainbus_cd,
and use that instead.
discussed with deraadt who just wants mpath stuff to move forward
despite there being many ways to shine this particular turd.
|
|
|
|
AML, and will do WAITOK operations. While cold, that is a bad idea.
We seem to be safe with respect to the spec, I do not see any event
debounce issues here.
ok kettenis, tested by many
|
|
rather than DVACT_RESUME
in snapshots for a long time, looked at by pirofti kettenis mlarkin
|
|
|
|
Put the activate function in the proper place in cfattach.
Tested by jasper@ on eeepc-900
Okay kettenis@
|
|
fadt->hdr_revision <= 1. This is a better check since it checks
the version of the proper descriptor. This allows the alix APU
to reboot since those boards have currently a wrong sc->sc_revision.
Committing this now so that it can be tested easier.
With and OK jsg@ also fine by derradt@
|
|
hibernate goo up after 64KB to avoid posible corruption by buggy BIOS SMM
code. Diff also ensures the first 64KB doesn't get handed to UVM either.
ok deraadt@, tested by many with no regressions reported
|
|
and don't need to disable SMI ownership of the ACPI hardware registers.
ok mlarkin@
|
|
GENERIC.MP.
|
|
there and the AML might reference stuff that isn't there.
|
|
need to do, since we do not use many hpet features.
ok kettenis millert
|
|
spec. More might be required.
ok jordan matthew mlarkin
|
|
|
|
to do this fairly late in the resume to avoid hangs.
ok deraadt@, mlarkin@
|
|
formatting into a local buffer.
ok miod@
|
|
ok deraadt@
|
|
kernel resumes normal (non-cold, able to run processes, etc) operation.
Previously we were relying on specific DVACT_RESUME op's in drivers
creating callback/threads themselves, but that has become too common,
indicating the need for a built-in mechanism.
ok dlg kettenis, tested by a sufficient amount of people
|
|
|
|
for PCI devices. This hook should be called twice, before and after
changing the power state of a PCI device.
Before setting the device to the new state, the ACPI layer will notify
every power resources linked to the device for that state and make sure
they are turned "_ON". After changing the state of the device, it will
decrement the reference of every power resources linked to that device
for the old state and turn them "_OFF" if they are no longer referenced.
This fixes the no-USB after resume problem seen on various ThinkPad,
problem initialy diagnosed with Alexander Polakov.
ok kettenis@, deraadt@
|