summaryrefslogtreecommitdiff
path: root/sys/dev/acpi
AgeCommit message (Collapse)Author
2018-07-10Make legacy interrupts work in acpipci(4).Mark Kettenis
ok patrick@
2018-07-05Add acpipci(4), a driver that supports generic ECAM-compatible PCI hostMark Kettenis
bridges based on information provided by ACPI. ok mlarkin@
2018-07-04Properly pass around the PCI "chipset tag" in acpi(4) and refactorMark Kettenis
acpimcfg(4) to call an MD initialization functions that sets up a tag for PCI ECAM. ok guenther@, mlarkin@, krw@
2018-07-02Allow pluart(4) to attach to acpi(4).Mark Kettenis
ok mlarkin@, patrick@
2018-07-02Allow xhci(4) to attach to acpi(4).Mark Kettenis
ok dlg@, patrick@, mpi@
2018-07-01acpi: clean up some inconsistent style in the hid matching arraysMike Larkin
ok millert, kettenis, jcs, phessler, deraadt, mpi
2018-07-01Allow ahci(4) to attach to acpi(4).Mark Kettenis
ok deraadt@
2018-07-01Move acpi(4) attach glue into acpi_machdep.c.Mark Kettenis
ok guenther@, deraadt@
2018-07-01Remove semicolon before printing the AML name.Mark Kettenis
spotted by deraadt@
2018-07-01Allow com(4) to attach to acpi(4). For now we will only use this on arm64Mark Kettenis
where this is needed to support serial console in ACPI mode. ok mlarkin@
2018-07-01Add support for _DSD Device Properties.Mark Kettenis
ok mlarkin@
2018-07-01Add definitions for SPCR tables.Mark Kettenis
ok mlarkin@
2018-06-30Typo in comment in previous file which I said I'd address in the originalMike Larkin
commit and forgot to do. (Sufrace -> Surface)
2018-06-30acpisurface(4): driver for Surface Pro 4 and Surface Book hardwareMike Larkin
buttons. ok phessler, deraadt, kettenis
2018-06-30Add intr_enable() function, intended for MI use to amd64 and i386 and useMark Kettenis
this in the acpi(4) suspend/resume code paths. ok deraadt@
2018-06-29Use <stdint.h> types.Mark Kettenis
ok mpi@, jung@, krw@, deraadt@
2018-06-29ACPI: Allow (with warning) GPE handler reassignment, instead of returningMike Larkin
a failure code. ok kettenis
2018-06-26knfMike Larkin
2018-06-26Let acpi(4) pass down the bus dma tag.Mark Kettenis
ok deraadt@
2018-06-25Reorganize acpi(4) code a bit in preparation for upcoming arm64 support.Mark Kettenis
ok deraadt@
2018-06-24If ACPI tables are present, set a global variable to point at theirMark Kettenis
(physical) address such that acpidump(8) can read it and dump the tables on arm64 systems. ok deraadt@
2018-06-12Don't panic on I/O to unregistered regionspaces. Needed to unbreak the GPDMike Larkin
pocket which has a questionable BIOS. The code will now simply printf and return to the caller without doing any I/O in this case. The spec defines this to be undefined behaviour anyway. ok kettenis, deraadt, pirofti
2018-05-23Print a message if AML attempts to access a part of the Operation RegionMark Kettenis
that we haven't implemented yet.
2018-05-22Call acpi_attach_deps() for the child devices before attempting to powerMark Kettenis
them on. Prevents a panic on the AZW Z83-S that is somewhat buggy and checks whether the GPO3 controller is available and then pokes a pin on GPO2. It shouldn't do that but we should make sure all the devices that it depends on attach first anyway. ok patrick@
2018-05-22acpithinkpad(4): add port replicator indicator sensorMike Larkin
Note: the sensor will report state UNKNOWN until at least one port replicator event (docked / undocked) is received. Diff from Tobias Tschinkowitz, thanks. ok stsp@. deraadt@ also ok'ed an earlier version of the diff
2018-05-21Implement GPIO functionality.Mark Kettenis
2018-05-21Add ccpmic(4), a driver for the "Intel" Crystal Cove PMIC. This is actuallyMark Kettenis
a ROHM part (BD2613GW) and once more the datasheet is only available under NDA. Disabled for now until bugs in dwiic(4) are fixed.
2018-05-21Implement power management Operation Region support.Mark Kettenis
2018-05-21Put controllers and child devices in D0 by calling _PS0 when we attach theMark Kettenis
controller. Some BIOSen deliver them to us in D3. Override card detect if ACPI says that the child devices are non-removable. ok mlarkin@
2018-05-21Pass interrupt description along as well.Mark Kettenis
ok mlarkin@
2018-05-20Add tipmic(4), a driver for the "Intel" Dollar Cove TI PMIC. This is actuallyMark Kettenis
a TI part (SND9039) but the datasheet is only available under NDA because it contains "Intel proprietary information". Initial implementation handles the thermal sensors, providing data to acpi(4) which is used by acpitz(4). Power management functionality will be added later. Disabled for now until some bugs in dwiic(4) are fixed.
2018-05-20Pass the acpi node corresponding to the i2c device down as the cookie.Mark Kettenis
ok mlarkin@
2018-05-20Wake up the acpi thread after scheduling a gpio event.Mark Kettenis
ok mpi@
2018-05-19Fix GenericSerialBus support by parsing ExtendedAccessField correctly.Mark Kettenis
ok mlarkin@
2018-05-18This needs some #ifndef SMALL_KERNEL as well. Fixes RAMDISK_CD.Mark Kettenis
2018-05-17Sprinkle some #ifndef SMALL_KERNEL such that RAMDISK kernels cuild again.Mark Kettenis
pointed out by stsp@
2018-05-17Implement GenericSerialBus OpRegion support.Mark Kettenis
ok mlarkin@
2018-05-17Implement LoadTable().Mark Kettenis
ok mlarkin@
2018-04-30Use acpi_register_gpio() to register gpio space like we do for chvgpio(4).Mark Kettenis
ok mpi@
2018-04-28replace add_*_randomness with enqueue_randomness()Jasper Lievisse Adriaanse
this gets rid of the source annotation which doesn't really add anything other than adding complexitiy. randomess is generally good enough that the few extra bits that the source type would add are not worth it. ok mikeb@ deraadt@
2018-04-05typo in printf - was _PRO, should be _PR0Mike Larkin
ok kettenis
2018-03-27Add acpicmos(4), a driver that implements SystemCMOS OperationRegionMark Kettenis
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@
2018-03-14On newer machines IPMI attaches only using the ACPI tables instead ofPatrick Wildt
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@
2018-02-19Remove almost unused `flags' argument of suser().Martin Pieuchot
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@
2018-02-10Syncronize filesystems to disk when suspending. Each mountpoint's vnodesTheo de Raadt
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.
2018-02-08After flushing disks, try again to release all memory. We don't need toTheo de Raadt
save dirty memory to the hibernate space.
2018-02-08Toss all releaseable memory, because fragmentation can get in the wayTheo de Raadt
of allocating the hibernate playpen.
2018-02-08sr_quiesce() is a new approach for ensuring that softraid drainsTheo de Raadt
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...
2018-01-19dwiic: cleanup function prototypes after ACPI/PCI splitJoshua Stein
2018-01-17Disable ACPI burst mode on the 2015 Chromebook Pixel, where it freezes.Anthony J. Bentley
Diff from jcs@, ok pirofti@